/* Final launch cleanup layer v20260529. Loaded after the shared theme files. */

body.portal-page .page-shell > .site-header,
body.procedure-app-page .page-shell > .site-header {
  position: relative !important;
  top: auto !important;
}

body.portal-page .admin-console {
  padding-top: 4px !important;
}

body.portal-page .header-dashboard-link,
body.portal-page .header-routes-link {
  display: none !important;
}

body.portal-page .go-top-button {
  display: none !important;
}

body .header-account-menu:not([open]) .header-account-panel {
  display: none !important;
}

body.portal-page .admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.portal-page .admin-overview-panel {
  min-height: 172px;
}

body.portal-page .portal-case-item {
  display: block !important;
}

body.portal-page .portal-case-item .portal-impact-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.public-checker-page .route-command-copy {
  border: 1px solid rgba(119, 169, 244, 0.22) !important;
  background:
    radial-gradient(circle at 78% 12%, rgba(245, 189, 99, 0.24), transparent 24%),
    radial-gradient(circle at 12% 8%, rgba(47, 120, 242, 0.28), transparent 26%),
    linear-gradient(135deg, #050b19 0%, #0a1c39 48%, #143e74 100%) !important;
  color: #fffdf7 !important;
}

body.public-checker-page .route-command-title,
body.public-checker-page .route-command-line,
body.public-checker-page .route-command-kicker {
  color: #fffdf7 !important;
}

body.public-checker-page .route-command-pills span,
body.public-checker-page .route-proof-status,
body.public-checker-page .route-proof-badge {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 253, 247, 0.92) !important;
  color: #071126 !important;
}

body.procedure-app-page {
  background:
    radial-gradient(circle at 16% 3%, rgba(47, 120, 242, 0.2), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(245, 189, 99, 0.22), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #f4f8fb 44%, #f7f0e6 100%) !important;
}

body.procedure-app-page .procedure-page {
  width: min(1180px, calc(100% - 32px)) !important;
  padding: 14px 0 44px !important;
}

body.procedure-app-page .procedure-header,
body.procedure-app-page .steps-sidebar,
body.procedure-app-page .step-content,
body.procedure-app-page .procedure-sidebar > *,
body.procedure-app-page .proc-not-found {
  border: 1px solid rgba(7, 17, 38, 0.12) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(248, 245, 237, 0.9)) !important;
  box-shadow: 0 12px 30px rgba(8, 22, 50, 0.11) !important;
}

body.procedure-app-page .procedure-header {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
  padding: 18px !important;
}

body.procedure-app-page .procedure-header h1 {
  max-width: 860px !important;
  margin: 0 !important;
  color: #071126 !important;
  font-size: clamp(1.7rem, 3vw, 2.55rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

body.procedure-app-page .procedure-layout {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.45fr) minmax(240px, 0.82fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

body.procedure-app-page .steps-sidebar,
body.procedure-app-page .step-content,
body.procedure-app-page .procedure-sidebar > * {
  padding: 14px !important;
}

body.procedure-app-page .progress-fill {
  background: linear-gradient(90deg, #2f78f2, #f5bd63) !important;
}

body.procedure-app-page .button-primary,
body.procedure-app-page .mark-done-btn {
  border-color: rgba(47, 120, 242, 0.42) !important;
  background: linear-gradient(180deg, #2f78f2, #1558c6) !important;
  color: #ffffff !important;
}

body.procedure-app-page .button-ghost,
body.procedure-app-page .button-secondary,
body.procedure-app-page .back-link-inline {
  border-color: rgba(7, 17, 38, 0.12) !important;
  background: rgba(255, 253, 247, 0.9) !important;
  color: #071126 !important;
}

@media (max-width: 980px) {
  body.portal-page .admin-metrics,
  body.procedure-app-page .procedure-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 720px) {
  body.portal-page .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
