:root {
  color-scheme: dark;
  --bg: #06111d;
  --surface: #0b1a29;
  --surface-2: #102437;
  --surface-3: #142c42;
  --border: #29445a;
  --border-strong: #3b5d75;
  --text: #f3f7fb;
  --muted: #a9bfd0;
  --faint: #7893a8;
  --accent: #34d399;
  --accent-dark: #073f36;
  --blue: #60a5fa;
  --warning: #fbbf24;
  --danger: #fb7185;
  --info: #7dd3fc;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
  --sidebar: 256px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; color: var(--text); background: radial-gradient(circle at 75% -20%, rgba(52, 211, 153, .08), transparent 35%), var(--bg); }
a { color: var(--info); text-underline-offset: 3px; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: #06111d; background: #fff; border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 32px; padding: 28px 20px; background: rgba(7, 20, 33, .96); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: .12em; }
.brand .icon { width: 34px; height: 34px; color: var(--accent); }
.brand div { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 15px; }
.brand span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a, .sidebar nav button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 11px 13px; color: var(--muted); font-size: 14px; font-weight: 650; text-align: left; text-decoration: none; background: transparent; border: 1px solid transparent; border-radius: 8px; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.sidebar nav a:hover, .sidebar nav button:hover, .sidebar nav a.active { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.sidebar nav a.active .icon { color: var(--accent); }
.nav-form { display: block; }
.safety-note { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .28); border-radius: 9px; }
.status-dot { width: 9px; height: 9px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(52, 211, 153, .1); }
.safety-note div { display: flex; flex-direction: column; }
.safety-note strong { font-size: 12px; color: #baf7df; }
.safety-note small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.page { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--border); background: rgba(6, 17, 29, .82); backdrop-filter: blur(12px); }
.eyebrow, .environment, .kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.environment { padding: 7px 10px; color: #baf7df; border: 1px solid rgba(52, 211, 153, .3); border-radius: 999px; }
main { width: min(1320px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 64px); flex: 1; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 56px); color: var(--faint); font-size: 12px; border-top: 1px solid var(--border); }
h1, h2, h3 { margin-top: 0; line-height: 1.18; letter-spacing: -.025em; }
h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 48px); }
h2 { margin-bottom: 10px; font-size: clamp(22px, 2.5vw, 30px); }
h3 { margin-bottom: 8px; font-size: 17px; }
p { margin-top: 0; color: var(--muted); }
.page-heading { margin-bottom: 28px; max-width: 850px; }
.page-heading .kicker { display: block; margin-bottom: 10px; color: var(--accent); }
.page-heading p { max-width: 720px; font-size: 17px; }
.heading-actions { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.action-group { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.action-group form { margin: 0; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; font-weight: 750; font-size: 14px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; border-radius: 8px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.button-primary { color: #042019; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #6ee7b7; border-color: #6ee7b7; }
.button-secondary { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.button-secondary:hover { background: var(--surface-3); }
.button-danger { color: #fecdd3; background: rgba(190, 24, 93, .12); border-color: rgba(251, 113, 133, .42); }
.button-full { width: 100%; }
.panel { padding: clamp(20px, 3vw, 30px); background: linear-gradient(145deg, rgba(16, 36, 55, .88), rgba(11, 26, 41, .96)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.panel-heading .kicker { display: block; margin-bottom: 6px; }
.panel-heading h2 { margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-grid article { min-height: 140px; display: flex; flex-direction: column; justify-content: center; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.metric-grid span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { margin: 5px 0; font-size: 34px; font-variant-numeric: tabular-nums; }
.metric-grid small { color: var(--faint); }
.metric-grid .safe-metric { border-color: rgba(52, 211, 153, .38); background: linear-gradient(145deg, rgba(7, 63, 54, .6), var(--surface)); }
.safe-metric strong { color: var(--accent); font-size: 23px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 13px; text-align: left; border-top: 1px solid var(--border); }
th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td { color: var(--muted); font-size: 14px; }
td small { display: block; margin-top: 3px; color: var(--faint); }
.target-link { color: var(--text); font-weight: 750; }
.number { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; padding: 5px 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; }
.badge-completed, .badge-complete { color: #baf7df; border-color: rgba(52, 211, 153, .4); }
.badge-running, .badge-queued { color: #bae6fd; border-color: rgba(125, 211, 252, .4); }
.badge-failed, .badge-cancelled { color: #fecdd3; border-color: rgba(251, 113, 133, .42); }
.empty-state { padding: 44px 20px; text-align: center; }
.empty-state .icon { width: 34px; height: 34px; color: var(--accent); }
.empty-state p { max-width: 560px; margin: 0 auto; }
.auth-wrap { min-height: 68vh; display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); padding: clamp(24px, 5vw, 42px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.auth-wide .auth-card { width: min(720px, 100%); }
.auth-card .kicker { display: block; margin: 16px 0 8px; color: var(--accent); }
.auth-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--accent); background: var(--accent-dark); border: 1px solid rgba(52, 211, 153, .35); border-radius: 12px; }
.auth-icon .icon { width: 25px; height: 25px; }
.trust-row { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--border); }
.trust-row .icon { color: var(--accent); }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
label, legend { color: var(--text); font-size: 14px; font-weight: 700; }
.field small, fieldset small { color: var(--faint); font-size: 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"] { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--text); background: #071522; border: 1px solid var(--border-strong); border-radius: 8px; }
input::placeholder { color: #66849a; }
fieldset { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; }
.choice-card { position: relative; min-height: 88px; display: flex; align-items: flex-start; gap: 14px; padding: 17px; background: rgba(7, 21, 34, .65); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.choice-card:has(input:checked) { background: rgba(52, 211, 153, .07); border-color: var(--accent); }
.choice-card input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--accent); }
.choice-card > span:not(.choice-tag) { display: grid; gap: 4px; flex: 1; }
.choice-card strong { font-size: 15px; }
.choice-tag { padding: 4px 7px; color: var(--accent); font-size: 9px; letter-spacing: .08em; border: 1px solid rgba(52, 211, 153, .3); border-radius: 999px; }
.verification-choice code { color: #bae6fd; }
.form-panel { max-width: 900px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.guardrail, .target-summary { padding: 16px; background: rgba(251, 113, 133, .06); border: 1px solid rgba(251, 113, 133, .26); border-radius: 8px; }
.guardrail strong { color: #fecdd3; }
.guardrail p { margin: 4px 0 0; font-size: 13px; }
.target-summary { display: grid; background: rgba(52, 211, 153, .06); border-color: rgba(52, 211, 153, .3); }
.target-summary span, .target-summary small { color: var(--muted); }
.target-summary strong { margin: 3px 0; font-size: 21px; }
.progress { max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 28px; padding: 0; list-style: none; }
.progress li { position: relative; display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 12px; }
.progress li::after { content: ""; position: absolute; left: 33px; right: 8px; top: 16px; height: 1px; background: var(--border); z-index: -1; }
.progress li:last-child::after { display: none; }
.progress li > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; }
.progress li.current > span, .progress li.complete > span { color: #062018; background: var(--accent); border-color: var(--accent); }
.progress .icon { width: 16px; height: 16px; }
.progress li.current strong { color: var(--text); }
.alert { padding: 14px 16px; margin-bottom: 18px; color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.alert ul { margin-bottom: 0; }
.alert-error { color: #ffe4e6; background: rgba(190, 24, 93, .14); border-color: rgba(251, 113, 133, .45); }
.alert-success { color: #d1fae5; background: rgba(5, 150, 105, .14); border-color: rgba(52, 211, 153, .42); }
.alert-warning { color: #fef3c7; background: rgba(180, 83, 9, .14); border-color: rgba(251, 191, 36, .42); }
.alert-info { color: #e0f2fe; background: rgba(3, 105, 161, .15); border-color: rgba(125, 211, 252, .42); }
.setup-box { padding: 18px; margin-bottom: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.setup-box h2 { font-size: 18px; }
.setup-box ol { padding-left: 20px; color: var(--muted); }
.secret-list > div { padding: 10px 0; border-top: 1px solid var(--border); }
.secret-list dt { color: var(--faint); font-size: 11px; text-transform: uppercase; }
.secret-list dd { margin: 3px 0 0; }
.secret { display: inline; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
.copy-button { min-height: 44px; margin-left: 10px; padding: 8px 12px; color: var(--text); background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 7px; }
.code-input { text-align: center; font-size: 28px !important; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.break-all { overflow-wrap: anywhere; word-break: break-word; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.agreement { max-height: 430px; overflow-y: auto; padding: 20px; color: var(--muted); background: #05101b; border: 1px solid var(--border-strong); border-radius: 8px; }
.agreement pre { margin: 0; white-space: pre-wrap; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.attestations { padding: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.check-row { min-height: 54px; display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; }
.check-row:first-of-type { border-top: 0; }
.check-row input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); }
.check-row span { color: var(--muted); font-weight: 500; }
.confirmation-field { padding: 18px; border: 1px solid var(--accent); border-radius: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; margin-bottom: 18px; }
.status-hero { display: flex; align-items: center; gap: 15px; margin-top: 16px; }
.status-orb { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 7px rgba(251, 191, 36, .1); }
.status-completed { background: var(--accent); box-shadow: 0 0 0 7px rgba(52, 211, 153, .1); }
.status-failed, .status-cancelled { background: var(--danger); box-shadow: 0 0 0 7px rgba(251, 113, 133, .1); }
.status-hero strong { font-size: 20px; }
.status-hero p { margin: 2px 0 0; }
.severity-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.severity-row div { padding: 12px; text-align: center; background: rgba(6, 17, 29, .5); border: 1px solid var(--border); border-radius: 7px; }
.severity-row strong, .severity-row span { display: block; }
.severity-row strong { font-size: 24px; }
.severity-row span { color: var(--faint); font-size: 11px; }
.agent-timeline { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.agent-timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: flex-start; padding: 17px 0; border-top: 1px solid var(--border); }
.agent-timeline li:first-child { border-top: 0; }
.agent-marker { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.agent-timeline p { margin: 2px 0 0; font-size: 13px; }
.metadata-panel { margin-top: 18px; }
.metadata-panel dl, .report-metadata dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.metadata-panel dl > div, .report-metadata dl > div { padding: 12px 0; border-top: 1px solid var(--border); }
dt { color: var(--faint); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
dd { margin: 4px 0 0; color: var(--text); }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.control-card { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.control-card .icon { color: var(--accent); }
.control-card p { margin: 0; font-size: 14px; }
.prohibited { display: flex; gap: 18px; margin-top: 20px; border-color: rgba(251, 113, 133, .35); }
.prohibited > div:first-child { color: var(--danger); }
.report { display: grid; gap: 34px; }
.report-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.report-header .kicker { color: var(--accent); }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-callout { padding: 24px; background: linear-gradient(135deg, rgba(7, 63, 54, .7), var(--surface)); border: 1px solid rgba(52, 211, 153, .35); border-radius: var(--radius); }
.report-callout span, .report-callout strong { display: block; }
.report-callout span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.report-callout strong { margin: 5px 0; font-size: 32px; }
.report-callout p { margin: 0; }
.severity-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.severity-summary div { padding: 20px; text-align: center; background: var(--surface); border-left: 1px solid var(--border); }
.severity-summary div:first-child { border-left: 0; }
.severity-summary strong, .severity-summary span { display: block; }
.severity-summary strong { font-size: 28px; }
.severity-summary span { color: var(--muted); font-size: 12px; }
.finding-list, .technical-findings { display: grid; gap: 14px; }
.finding { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 9px; }
.finding-critical, .finding-high { border-left-color: var(--danger); }
.finding-medium { border-left-color: var(--warning); }
.finding-low { border-left-color: var(--blue); }
.finding-top { display: flex; gap: 10px; align-items: center; }
.finding-top h3 { margin: 0; }
.severity-label { display: inline-flex; padding: 4px 7px; color: var(--text); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; }
.remedy { padding: 13px; background: rgba(52, 211, 153, .06); border-radius: 7px; }
.remedy p { margin: 3px 0 0; }
.report-limit { padding: 22px; background: rgba(251, 191, 36, .06); border: 1px solid rgba(251, 191, 36, .28); border-radius: var(--radius); }
.report-limit p:last-child { margin-bottom: 0; }
.report-metadata { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.method-list { display: grid; margin-top: 20px; }
.method-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; color: #062018; font-weight: 850; background: var(--accent); border-radius: 50%; }
details { color: var(--muted); }
details summary { min-height: 44px; display: flex; align-items: center; color: var(--info); cursor: pointer; }
details pre { max-height: 360px; overflow: auto; padding: 14px; color: #dbeafe; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; background: #030b12; border: 1px solid var(--border); border-radius: 7px; white-space: pre-wrap; }
.technical-finding { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.technical-finding header { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.finding-id { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
.confidence { color: var(--faint); font-size: 11px; }
.technical-finding h3 { margin: 12px 0 16px; font-size: 22px; }
.technical-finding dl { display: grid; gap: 0; }
.technical-finding dl > div { padding: 13px 0; border-top: 1px solid var(--border); }
.technical-finding dd { color: var(--muted); }

@media (max-width: 980px) {
  :root { --sidebar: 78px; }
  .brand div, .sidebar nav span, .safety-note div { display: none; }
  .sidebar { align-items: center; padding-inline: 12px; }
  .sidebar nav a, .sidebar nav button { width: 50px; justify-content: center; }
  .safety-note { padding: 14px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .heading-actions, .report-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; }
  .sidebar nav { display: flex; flex: 1; justify-content: flex-end; }
  .sidebar nav a, .sidebar nav button { width: 46px; min-height: 46px; }
  .safety-note { display: none; }
  .topbar { min-height: 56px; }
  .environment { display: none; }
  main { padding: 28px 18px; }
  footer { flex-direction: column; }
  .metric-grid, .detail-grid, .control-grid, .form-grid { grid-template-columns: 1fr; }
  .progress li { align-items: flex-start; flex-direction: column; gap: 5px; }
  .progress li::after { left: 32px; right: 0; }
  .choice-tag { display: none; }
  .form-actions, .action-group, .report-actions { width: 100%; }
  .form-actions .button, .action-group .button, .action-group form, .action-group form .button, .report-actions .button { width: 100%; }
  .severity-row, .severity-summary { grid-template-columns: repeat(2, 1fr); }
  .severity-summary div:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .severity-summary div:nth-child(4) { border-top: 1px solid var(--border); }
  .metadata-panel dl, .report-metadata dl { grid-template-columns: 1fr; }
}

/* Polished operations-console layer: motion is meaningful, restrained, and optional. */
:root {
  --accent-2: #67e8f9;
  --violet: #a78bfa;
  --glass: rgba(11, 26, 41, .76);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --shadow-hover: 0 24px 70px rgba(0, 0, 0, .34), 0 0 0 1px rgba(125, 211, 252, .08);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 4%, rgba(103, 232, 249, .09), transparent 30rem),
    radial-gradient(circle at 18% 92%, rgba(167, 139, 250, .07), transparent 34rem),
    linear-gradient(145deg, #06111d 0%, #071827 50%, #06111d 100%);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(125, 211, 252, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--violet));
  box-shadow: 0 0 16px rgba(103, 232, 249, .7);
}

.sidebar {
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(7, 20, 33, .98), rgba(7, 20, 33, .93)),
    radial-gradient(circle at 50% 0, rgba(52, 211, 153, .12), transparent 15rem);
}
.sidebar::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 180px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(52, 211, 153, .08), transparent);
}
.brand .icon { filter: drop-shadow(0 0 12px rgba(52, 211, 153, .32)); }
.sidebar nav a, .sidebar nav button { position: relative; overflow: hidden; }
.sidebar nav a::before, .sidebar nav button::before {
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  content: "";
  border-radius: 999px;
  transform: scaleY(0);
  background: linear-gradient(var(--accent), var(--accent-2));
  transition: transform 220ms var(--ease-out);
}
.sidebar nav a:hover::before, .sidebar nav button:hover::before, .sidebar nav a.active::before { transform: scaleY(1); }
.sidebar nav a.active { box-shadow: inset 0 0 22px rgba(52, 211, 153, .035); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}
.topbar-context { display: grid; gap: 3px; }
.route-context { color: var(--text); font-size: 12px; font-weight: 720; text-transform: capitalize; }
.environment { display: inline-flex; align-items: center; gap: 8px; }
.environment > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .1); }

.page-heading h1 {
  text-wrap: balance;
  background: linear-gradient(105deg, #fff 15%, #d9fdf0 58%, #c7eefe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-heading p { text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.page-heading .kicker::before, .panel-heading .kicker::before, .report-header .kicker::before {
  width: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.panel, .metric-grid article, .control-card, .finding, .technical-finding, .report-callout, .report-metadata {
  --spot-x: 50%;
  --spot-y: 0%;
  position: relative;
  background-image:
    radial-gradient(360px circle at var(--spot-x) var(--spot-y), rgba(103, 232, 249, .065), transparent 55%),
    linear-gradient(145deg, rgba(16, 36, 55, .9), rgba(11, 26, 41, .96));
  transition: transform 240ms var(--ease-out), border-color 240ms ease, box-shadow 240ms ease;
}
.panel::after, .metric-grid article::after, .control-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .025);
  border-radius: inherit;
}
.metric-grid article { overflow: hidden; }
.metric-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  transform: scaleX(.28);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transition: transform 260ms var(--ease-out);
}
.metric-grid article:hover::before { transform: scaleX(1); }
.metric-grid strong, .severity-row strong, .severity-summary strong { font-variant-numeric: tabular-nums; letter-spacing: -.04em; }

.button { position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.button::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .18) 48%, transparent 72%);
  transition: transform 420ms var(--ease-out);
}
.button:hover::after { transform: translateX(110%); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.button:active { transform: translateY(0) scale(.98); }
.button.is-loading::before { width: 14px; height: 14px; content: ""; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-spin 700ms linear infinite; }

input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"] { transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="datetime-local"]:focus { border-color: var(--accent-2); background: #081a29; box-shadow: 0 0 0 4px rgba(103, 232, 249, .09); }
.choice-card { transition: transform 200ms var(--ease-out), border-color 200ms ease, background 200ms ease, box-shadow 200ms ease; }
.choice-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .13); }
.choice-card:has(input:checked) { box-shadow: inset 3px 0 0 var(--accent), 0 12px 34px rgba(0, 0, 0, .12); }

tbody tr { transition: background 180ms ease, transform 180ms var(--ease-out); }
tbody tr:hover { background: rgba(125, 211, 252, .035); }
.target-link { text-decoration-color: rgba(125, 211, 252, .3); transition: color 180ms ease, text-decoration-color 180ms ease; }
.target-link:hover { color: var(--accent-2); text-decoration-color: currentColor; }

.badge { align-items: center; gap: 6px; }
.badge::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; opacity: .85; }
.status-running, .status-queued { animation: status-pulse 1.8s ease-in-out infinite; }
.agent-timeline { position: relative; }
.agent-timeline::before { position: absolute; top: 24px; bottom: 24px; left: 4px; width: 1px; content: ""; background: linear-gradient(var(--accent), var(--border), transparent); }
.agent-marker { position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--surface), 0 0 14px rgba(52, 211, 153, .3); }

.alert { position: relative; padding-right: 48px; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.alert-dismiss { position: absolute; top: 50%; right: 9px; width: 34px; height: 34px; display: grid; place-items: center; color: currentColor; background: transparent; border: 1px solid transparent; border-radius: 7px; transform: translateY(-50%); opacity: .72; }
.alert-dismiss:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.alert.is-dismissing { transform: translateY(-5px); opacity: 0; transition: transform 180ms ease, opacity 180ms ease; }

details summary::after { margin-left: auto; content: "+"; color: var(--accent); font-size: 20px; transition: transform 180ms ease; }
details[open] summary::after { transform: rotate(45deg); }

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .panel:hover, .metric-grid article:hover, .control-card:hover, .finding:hover, .technical-finding:hover { transform: translateY(-3px); border-color: rgba(103, 232, 249, .28); box-shadow: var(--shadow-hover); }
}

@media (max-width: 720px) {
  .sidebar { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
  .sidebar .brand .icon { width: 30px; height: 30px; }
  .topbar { top: 70px; }
  .route-context { font-size: 11px; }
  .page-heading h1 { font-size: clamp(28px, 10vw, 40px); }
  .panel, .metric-grid article { border-radius: 11px; }
}

@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 7px rgba(125, 211, 252, .08); } 50% { box-shadow: 0 0 0 12px rgba(125, 211, 252, .02), 0 0 22px rgba(125, 211, 252, .24); } }
@keyframes ui-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  :root { color-scheme: light; --text: #111827; --muted: #374151; --faint: #4b5563; --surface: #fff; --surface-2: #f8fafc; --surface-3: #f1f5f9; --border: #cbd5e1; }
  body { color: #111827; background: #fff; font-size: 11pt; }
  .sidebar, .topbar, footer, .no-print, .alert { display: none !important; }
  .app-shell { display: block; }
  main { width: auto; padding: 0; }
  .report { gap: 22px; }
  .report-header { padding-bottom: 15px; }
  .panel, .report-callout, .report-metadata, .finding, .technical-finding, .report-limit { color: #111827; background: #fff; box-shadow: none; break-inside: avoid; }
  .method-step, .technical-finding { break-inside: avoid; }
  details { display: block; }
  details > summary { display: none; }
  details > pre { display: block; max-height: none; color: #111827; background: #f8fafc; white-space: pre-wrap; }
  a { color: #111827; text-decoration: none; }
  @page { margin: .6in; }
}
