:root {
  --ink: #13212b;
  --muted: #63727c;
  --line: #dbe3e7;
  --soft: #f3f6f7;
  --paper: #ffffff;
  --nav: #101d25;
  --nav-soft: #172a35;
  --accent: #0ea58c;
  --accent-dark: #087866;
  --accent-soft: #def7f1;
  --danger: #c13c47;
  --warning: #c87511;
  --shadow: 0 16px 40px rgba(16, 29, 37, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 18px; color: #dce8eb; background: var(--nav); z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0 8px 28px; color: white; font-size: 18px; text-decoration: none; letter-spacing: -.4px; }
.brand-mark { width: 31px; height: 31px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.large { width: 42px; height: 42px; }
.brand-copy { min-width: 0; display: grid; line-height: 1.05; }
.brand-copy small { max-width: 150px; margin-top: 5px; overflow: hidden; color: #82969e; font-size: 10px; font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 9px; color: #9eb0b8; text-decoration: none; font-weight: 650; transition: .18s ease; }
.nav a:hover { color: white; background: var(--nav-soft); }
.nav a.active { color: white; background: #1a3741; box-shadow: inset 3px 0 var(--accent); }
.nav-icon { width: 20px; color: var(--accent); text-align: center; }
.nav-label { margin: 25px 13px 8px; color: #718790; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.sidebar-user { margin-top: auto; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid #29404b; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #072a24; background: var(--accent); font-weight: 850; }
.user-copy { min-width: 0; display: grid; }
.user-copy strong { overflow: hidden; color: white; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { color: #82969e; font-size: 11px; text-transform: capitalize; }
.sidebar-user form { grid-column: 1 / -1; margin-top: 4px; }
.logout-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border: 1px solid #29404b; border-radius: 8px; color: #b9c8ce; background: transparent; font-size: 12px; font-weight: 750; }
.logout-button:hover { border-color: #3c5964; color: white; background: var(--nav-soft); }
.main-column { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.topbar-context { margin-right: auto; display: grid; line-height: 1.2; }
.topbar-context strong { font-size: 16px; }
.eyebrow { display: block; color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: 1.45px; text-transform: uppercase; }
.eyebrow.light { color: #6ee7cf; }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; }
.content { width: 100%; max-width: 1500px; flex: 1; margin: 0 auto; padding: 44px clamp(22px, 4vw, 58px) 70px; }
.app-footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px clamp(22px, 4vw, 58px) 22px; border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.72); font-size: 12px; }
.app-footer strong { color: var(--accent-dark); font-weight: 780; }
.page-heading { max-width: 850px; margin-bottom: 31px; }
.page-heading.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -1.6px; }
h2 { margin-bottom: 4px; font-size: 20px; line-height: 1.25; letter-spacing: -.45px; }
h3 { margin-bottom: 5px; font-size: 16px; }
.page-heading p, .muted { margin-bottom: 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-weight: 700; text-decoration: none; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 780; text-decoration: none; transition: .18s ease; }
.button.primary { color: white; background: var(--accent-dark); box-shadow: 0 7px 18px rgba(8,120,102,.18); }
.button.primary:hover { background: #075f53; transform: translateY(-1px); }
.button.secondary { border-color: #bfd0d5; background: white; }
.button.ghost { color: var(--muted); background: transparent; }
.button.compact { min-height: 37px; padding: 7px 13px; font-size: 13px; }
.button.full { width: 100%; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 4px rgba(16,29,37,.025); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 2px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { position: relative; overflow: hidden; padding: 21px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: 12px; font-weight: 750; }
.metric-card strong { display: block; margin: 10px 0 3px; font-size: 34px; line-height: 1; letter-spacing: -1px; }
.metric-card small { font-size: 11px; }
.metric-card.accent { border-color: transparent; color: white; background: linear-gradient(135deg, #087866, #0ba28a); }
.metric-card.accent span, .metric-card.accent small { color: #c9fff4; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 22px; align-items: start; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.full-span { grid-column: 1 / -1; }
.sticky-panel { position: sticky; top: 98px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 13px; color: #75848c; background: #f7f9fa; font-size: 10px; letter-spacing: 1px; text-align: left; text-transform: uppercase; }
td { padding: 15px 13px; border-bottom: 1px solid #edf1f2; color: #465761; }
tr:last-child td { border-bottom: 0; }
.record-title { display: grid; color: var(--ink); font-weight: 760; text-decoration: none; }
.record-title:hover { color: var(--accent-dark); }
.record-title small { color: var(--muted); font-size: 11px; font-weight: 550; }
.status, .severity, .role-chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 820; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.status.draft, .status.archived { color: #5e6c74; background: #e9edef; }
.status.in_progress { color: #075e86; background: #dcf2ff; }
.status.in_review, .status.changes_requested { color: #86520a; background: #fff0d2; }
.status.approved, .status.issued, .status.remediated { color: #06715e; background: #dff7f0; }
.status.open { color: #9a3b44; background: #fee8ea; }
.status.large { padding: 8px 13px; }
.severity.critical { color: #8c1b2a; background: #ffdce1; }
.severity.high { color: #a43e20; background: #ffe5d9; }
.severity.medium { color: #88540c; background: #fff0ce; }
.severity.low { color: #17698d; background: #dff4fc; }
.severity.informational { color: #4e5c65; background: #e9eef0; }
.role-chip { color: #32444e; background: #edf2f4; }
.count { color: var(--muted); font-size: 12px; font-weight: 750; }
.severity-list { display: grid; gap: 13px; }
.severity-list > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #edf1f2; text-transform: capitalize; }
.severity-dot { width: 8px; height: 8px; border-radius: 50%; background: #80919a; }
.severity-dot.critical { background: #b72238; }.severity-dot.high { background: #e05b35; }.severity-dot.medium { background: #e3a12b; }.severity-dot.low { background: #2e9bc7; }
.empty-state { padding: 38px 15px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 5px auto 16px; }
.text-link { color: var(--accent-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.toolbar { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 19px; }
.search { max-width: 420px; }
.customer-list { display: grid; }
.customer-row { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #edf1f2; }
.customer-row:last-child { border: 0; }
.customer-row > div:nth-child(2) { display: grid; }
.customer-row span { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; align-items: center; gap: 11px; }
.customer-monogram { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 850; }
.form-panel { max-width: 1000px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label, .stack-form label, .auth-card label, .cia-fieldset label { display: grid; gap: 7px; color: #3c4d56; font-size: 12px; font-weight: 760; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cdd8dc; border-radius: 8px; outline: none; color: var(--ink); background: white; transition: .15s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,140,.11); }
textarea { resize: vertical; }
.form-section { display: grid; grid-template-columns: 38px 1fr; gap: 14px; margin: 8px 0 23px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section p { margin: 0; color: var(--muted); font-size: 13px; }
.section-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 850; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.alert { margin-bottom: 20px; padding: 11px 14px; border-radius: 8px; font-size: 13px; font-weight: 650; }
.alert.error { color: #852b35; background: #ffeaec; }
.alert.success { color: #086c5a; background: #ddf6ef; }
.report-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.report-hero h1 { margin-top: 9px; }
.report-hero p { color: var(--muted); }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.report-meta span { padding: 4px 8px; border-radius: 5px; color: #50616a; background: #e7edef; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.report-stats > div { padding: 16px 19px; border-right: 1px solid var(--line); }
.report-stats > div:last-child { border: 0; }
.report-stats span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.report-stats strong { display: block; margin-top: 4px; font-size: 20px; }
.report-stats .date-value { font-size: 13px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .72fr); gap: 22px; align-items: start; }
.report-main { display: grid; gap: 22px; }
.report-aside { display: grid; gap: 22px; }
.prose-grid { display: grid; gap: 22px; }
.prose-grid p { margin: 0; color: var(--muted); white-space: pre-wrap; }
.finding-list { display: grid; gap: 11px; }
.finding-card { padding: 17px; border: 1px solid var(--line); border-radius: 11px; }
.finding-card > p { color: var(--muted); }
.finding-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.finding-top p { margin: 0; color: var(--muted); font-size: 12px; }
.finding-actions { display: flex; align-items: center; gap: 10px; }
.text-link, .text-button { color: var(--accent-dark); font-size: 12px; font-weight: 780; text-decoration: none; }
.text-button { padding: 0; border: 0; background: transparent; }
.text-button.danger { color: #b42318; }
.report-hero-actions { display: flex; align-items: center; gap: 12px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.evidence-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }
.evidence-preview { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e7eef0; }
.evidence-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.evidence-document { min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--ink); text-decoration: none; background: #edf4f5; }
.evidence-document span { padding: 5px 8px; border-radius: 5px; color: white; background: #b42318; font-size: 10px; font-weight: 850; }
.evidence-copy { display: grid; gap: 4px; padding: 12px 12px 7px; }
.evidence-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.evidence-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.evidence-copy code { color: #64748b; font-size: 10px; }
.evidence-card form { padding: 0 12px 11px; text-align: right; }
.evidence-upload { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 10px; align-items: end; margin-top: 14px; padding: 13px; border: 1px dashed #b8c8cd; border-radius: 9px; background: #f8fafb; }
.evidence-upload label, .logo-upload label { display: grid; gap: 6px; color: #3c4d56; font-size: 11px; font-weight: 760; }
.evidence-upload input[type="file"], .logo-upload input[type="file"] { padding: 8px; background: white; }
.form-actions { display: flex; gap: 10px; }
.cia-row { display: flex; flex-wrap: wrap; gap: 7px; }
.cia-row span { padding: 4px 7px; border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 10px; }
.cia-row strong { color: var(--ink); text-transform: capitalize; }
.cia-fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.cia-fieldset legend { padding: 0 6px; font-size: 12px; font-weight: 800; }
.workflow-current { margin-bottom: 17px; padding: 13px; border-radius: 9px; background: var(--soft); }
.workflow-current span, .workflow-current strong { display: block; }
.workflow-current span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.workflow-current strong { margin-top: 3px; text-transform: capitalize; }
.stack-form { display: grid; gap: 13px; }
.timeline { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.timeline > div { display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.timeline > div > span { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.timeline p { display: grid; margin: 0; font-size: 12px; text-transform: capitalize; }
.timeline small { color: var(--muted); text-transform: none; }
.team-list { display: grid; gap: 10px; }
.team-list > div { display: grid; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.team-list span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.signoff-list { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.signoff-list > div { padding-left: 11px; border-left: 2px solid var(--accent); }
.signoff-list strong, .signoff-list small { display: block; text-transform: capitalize; }
.signoff-list small { color: var(--muted); font-size: 10px; }
.signoff-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.settings-tabs { display: flex; gap: 7px; margin-bottom: 20px; }
.settings-tabs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 12px; font-weight: 750; text-decoration: none; }
.type-list { display: grid; }
.type-list > div { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.type-list small { grid-column: 2; color: var(--muted); }
.divider-top { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.upload-placeholder { padding: 16px; border: 1px dashed #b8c8cd; border-radius: 9px; background: #f8fafb; }
.upload-placeholder p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.branding-block { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.logo-preview { min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }
.logo-preview img { max-width: 100%; max-height: 82px; object-fit: contain; }
.logo-empty { display: grid; justify-items: center; gap: 7px; color: var(--muted); }
.logo-empty span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--accent-dark); font-size: 20px; font-weight: 850; }
.logo-upload { display: grid; gap: 9px; }
.logo-upload p { margin: 0; color: var(--muted); font-size: 11px; }
.logo-upload .button { justify-self: start; }
.inline-actions, .user-controls { display: flex; align-items: center; gap: 9px; }
.user-controls { align-items: flex-start; }
.user-controls form { margin: 0; }
.user-controls details { position: relative; }
.user-controls summary { color: var(--accent-dark); font-size: 12px; font-weight: 780; cursor: pointer; }
.password-reset { position: absolute; right: 0; z-index: 5; width: 280px; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); }
.update-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.update-metrics article { padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.update-metrics span, .update-metrics small { display: block; color: var(--muted); }
.update-metrics span { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.update-metrics strong { display: block; margin: 7px 0 2px; font-size: 19px; }
.update-metrics .small-value { font-size: 14px; }
.update-metrics small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.update-layout { margin-bottom: 22px; }
.update-safety { display: grid; gap: 15px; }
.update-safety > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.update-safety > div > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 850; }
.update-safety p { margin: 0; color: var(--muted); font-size: 12px; }
.update-safety strong { display: block; color: var(--ink); }
.form-grid label small { color: var(--muted); font-weight: 500; }
.approval-check { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; padding: 12px; border-radius: 8px; background: var(--soft); }
.approval-check input { width: auto; margin-top: 3px; }
.recovery-state { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 15px; border-radius: 10px; background: var(--accent-soft); }
.recovery-state p { margin: 3px 0 0; color: #3b665f; font-size: 11px; }
.shield-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent-dark); font-weight: 900; }
.plain-list { display: grid; gap: 10px; padding-left: 18px; color: var(--muted); font-size: 12px; }
.update-history { margin-top: 22px; }
.hash-value { display: grid; }
.hash-value small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.update-error { display: block; max-width: 260px; margin-top: 5px; color: #9b2634; }
.status.update-completed { color: #06715e; background: #dff7f0; }
.status.update-failed, .status.update-rolled_back { color: #9a3b44; background: #fee8ea; }
.status.update-uploaded, .status.update-verifying, .status.update-backing_up, .status.update-applying, .status.update-migrating, .status.update-restarting, .status.update-validating, .status.update-rolling_back { color: #86520a; background: #fff0d2; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: white; }
.auth-visual { min-height: 100vh; display: flex; flex-direction: column; padding: 54px clamp(45px, 7vw, 100px); color: white; background: radial-gradient(circle at 80% 20%, rgba(14,165,140,.23), transparent 30%), linear-gradient(145deg, #0e1c24, #122f39); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.auth-message { max-width: 650px; margin: auto 0; }
.auth-message h1 { max-width: 620px; margin: 15px 0 20px; font-size: clamp(45px, 6vw, 72px); letter-spacing: -3px; }
.auth-message p { max-width: 550px; color: #b3c7cd; font-size: 18px; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 9px; }
.auth-proof span { padding: 7px 10px; border: 1px solid #38525b; border-radius: 999px; color: #aac0c7; font-size: 11px; }
.auth-form-wrap { min-height: 100vh; display: flex; align-items: center; flex-direction: column; padding: 35px; }
.auth-card { width: min(420px, 100%); display: grid; gap: 18px; margin: auto 0; }
.auth-card h2 { margin: -7px 0 -14px; font-size: 30px; }
.auth-note { color: #819098; font-size: 11px; text-align: center; }
.auth-attribution { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding-top: 28px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-attribution strong { color: var(--accent-dark); }
.mobile-logo { display: none; }
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--soft); text-align: center; }
.error-page main { max-width: 480px; padding: 35px; }
.error-code { color: var(--accent); font-size: 70px; font-weight: 900; letter-spacing: -4px; }
.error-page p { color: var(--muted); }
.setup-page { min-height: 100vh; background: linear-gradient(145deg, #0d1b23 0 34%, var(--soft) 34%); }
.setup-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr); gap: 52px; align-items: start; padding: 70px 0; }
.setup-intro { position: sticky; top: 70px; padding: 12px 0; color: white; }
.setup-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 70px; font-size: 20px; }
.setup-step { color: #6ee7cf; font-size: 10px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; }
.setup-intro h1 { margin: 13px 0 18px; font-size: clamp(42px, 5vw, 64px); letter-spacing: -2.7px; }
.setup-intro p { color: #b3c7cd; font-size: 16px; }
.setup-assurance { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.setup-assurance span { padding: 6px 9px; border: 1px solid #35505a; border-radius: 999px; color: #a9bdc4; font-size: 10px; }
.setup-form-panel { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.setup-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 31px; }
.setup-progress span { padding-top: 9px; border-top: 3px solid #d9e2e5; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.setup-progress span.active { border-color: var(--accent); color: var(--accent-dark); }
.setup-form-panel label small { color: var(--muted); font-weight: 500; }
.setup-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.setup-submit p { max-width: 270px; margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid, .report-layout { grid-template-columns: 1fr; }
  .report-aside .sticky-panel { position: static; }
  .settings-grid { grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .update-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; width: 255px; transition: left .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .menu-button { display: block; }
  .two-column { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { min-height: 100vh; }
  .mobile-logo { display: block; color: var(--accent-dark); font-size: 19px; font-weight: 850; }
  .setup-page { background: var(--soft); }
  .setup-shell { grid-template-columns: 1fr; padding: 35px 0; }
  .setup-intro { position: static; padding: 25px; border-radius: 16px; background: var(--nav); }
  .setup-brand { margin-bottom: 36px; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 17px; }
  .topbar .button { display: none; }
  .content { padding: 30px 16px 50px; }
  .page-heading.split, .report-hero { display: block; }
  .page-heading.split .button { margin-top: 18px; }
  .report-hero .status { margin-top: 12px; }
  .metric-grid, .report-stats { grid-template-columns: 1fr 1fr; }
  .update-metrics { grid-template-columns: 1fr; }
  .report-stats > div:nth-child(2) { border-right: 0; }
  .report-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .evidence-grid, .evidence-upload, .branding-block { grid-template-columns: 1fr; }
  .report-hero-actions { align-items: flex-end; flex-direction: column; }
  .cia-fieldset { grid-template-columns: 1fr; }
  .panel { padding: 19px; }
  .setup-shell { width: min(100% - 24px, 1180px); gap: 18px; }
  .setup-form-panel { padding: 21px 17px; }
  .setup-submit { align-items: stretch; flex-direction: column; }
  h1 { font-size: 32px; }
}
