:root {
  color-scheme: light;
  --ink: #101317;
  --ink-soft: #1a2026;
  --paper: #f3f2ea;
  --paper-strong: #fbfbf6;
  --line: #a8ada7;
  --blue: #1f5eff;
  --yellow: #f7d84b;
  --coral: #ff6c58;
  --mint: #79e5c0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 300px; margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
button, textarea, input { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: -80px; left: 12px; padding: 10px 14px; color: var(--ink); background: var(--yellow); font: 800 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.skip-link:focus { top: 12px; }
.topbar { min-height: 68px; display: flex; align-items: stretch; justify-content: space-between; color: #f7f8f3; background: var(--ink); border-bottom: 1px solid #495058; }
.brand { min-width: 326px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 22px; color: inherit; text-decoration: none; border-right: 1px solid #495058; }
.brand strong, .brand span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.brand strong { font-size: 13px; }
.brand span { color: #9da5ac; font-size: 8px; }
.topbar nav { display: flex; align-items: stretch; margin-left: auto; }
.topbar nav a { min-width: 100px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; color: #ced3d6; border-left: 1px solid #495058; font: 800 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; text-decoration: none; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--ink); background: var(--yellow); outline: 0; }

.scope-band { border-bottom: 1px solid var(--ink); }
.scope-shell { width: min(100%, 1540px); margin: 0 auto; padding: 56px 28px 76px; }
.scope-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 70px; align-items: end; }
.eyebrow { margin: 0; color: var(--blue); font: 800 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.scope-intro h1 { max-width: 940px; margin: 15px 0 0; font: 800 68px/.96 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; text-wrap: balance; overflow-wrap: anywhere; }
.scope-intro > p { max-width: 600px; margin: 0 0 3px; color: #48515a; font-size: 18px; line-height: 1.55; }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border: 1px solid var(--ink); background: var(--paper-strong); }
.trust-strip span { min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-right: 1px solid var(--ink); font: 800 7px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.trust-strip span:last-child { border-right: 0; }
.trust-strip i { width: 7px; height: 7px; flex: 0 0 auto; background: var(--mint); border: 1px solid var(--ink); }

.workbench { display: grid; grid-template-columns: minmax(400px, .82fr) minmax(0, 1.18fr); min-height: 760px; margin-top: 18px; background: var(--paper-strong); border: 1px solid var(--ink); }
.catalog-panel { min-width: 0; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--ink); }
.panel-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-heading > span { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); font: 800 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.panel-heading p { margin: 0; color: #5c6570; font: 800 8px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.panel-heading h2 { margin: 5px 0 0; font: 800 21px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.source-tools { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.file-command { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--ink); cursor: pointer; }
.file-command input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.file-command span { font-size: 18px; line-height: 1; }
.file-command b, .source-tools > span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.file-command b { font-size: 8px; }
.file-command:hover, .file-command:focus-within { background: var(--yellow); }
.source-tools > span { max-width: 260px; color: #697078; font-size: 7px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.editor-field { min-width: 0; display: flex; flex: 1; flex-direction: column; margin-top: 18px; }
.editor-field > span { margin-bottom: 8px; color: #59616a; font: 800 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.editor-field textarea { width: 100%; min-height: 420px; flex: 1; resize: vertical; padding: 16px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 0; font: 500 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; tab-size: 2; }
.editor-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31, 94, 255, .22); }
.editor-meta { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #687079; font: 800 7px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.form-error { color: #b72c2c; text-align: right; }
.input-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.command { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; font: 800 8px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; cursor: pointer; }
.command:hover, .command:focus-visible { background: var(--ink); color: #fff; outline: 0; }
.command--blue { color: #fff; background: var(--blue); }
.command--yellow { background: var(--yellow); }
.command--quiet { color: #667078; border-color: #9aa09c; }
.sample-notice { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px; color: #4d4020; background: #fff3bd; border-left: 4px solid var(--yellow); font: 700 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.sample-notice b { white-space: nowrap; }

.result-panel { min-width: 0; color: #eef1ef; background: var(--ink); }
.result-idle { min-height: 758px; display: flex; flex-direction: column; justify-content: center; padding: 58px; }
.idle-mark { color: var(--yellow); font: 800 48px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.result-idle .eyebrow { margin-top: 28px; color: var(--mint); }
.result-idle h2 { max-width: 720px; margin: 16px 0 0; color: #fff; font: 800 42px/1.04 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; text-wrap: balance; }
.result-idle > p { max-width: 720px; margin: 20px 0 0; color: #bbc2c6; line-height: 1.6; }
.result-idle dl { margin: 38px 0 0; border-top: 1px solid #4a5158; }
.result-idle dl div { display: grid; grid-template-columns: 44px 1fr; min-height: 48px; align-items: center; border-bottom: 1px solid #4a5158; }
.result-idle dt { color: var(--mint); font: 800 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-idle dd { margin: 0; font-size: 13px; font-weight: 700; }
.result-ready { min-height: 100%; padding: 26px; }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid #4e555b; }
.result-header .eyebrow { color: var(--mint); }
.result-header h2 { max-width: 680px; margin: 8px 0 0; color: #fff; font: 800 30px/1.06 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.digest { min-width: 150px; color: #929ca3; text-align: right; font: 800 7px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.digest code { display: block; margin-top: 6px; color: var(--yellow); font-size: 10px; }
.scope-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid #50585f; border-left: 1px solid #50585f; }
.scope-summary div { min-width: 0; min-height: 80px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; border-right: 1px solid #50585f; border-bottom: 1px solid #50585f; }
.scope-summary dt { color: #919ba2; font: 800 7px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.scope-summary dd { margin: 10px 0 0; color: #fff; font: 800 24px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.scope-summary div:nth-child(4) dd { color: var(--coral); }
.scope-summary div:nth-child(5) dd { color: var(--yellow); }
.composition { margin-top: 18px; border: 1px solid var(--coral); }
.composition > header { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 9px 12px; color: var(--ink); background: var(--coral); }
.composition > header span { font: 800 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.composition > header h3 { margin: 0; font: 800 16px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.composition [data-composition-list] > article { padding: 13px; border-top: 1px solid #4e555b; }
.composition [data-composition-list] > article:first-child { border-top: 0; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.severity { min-height: 21px; display: inline-flex; align-items: center; padding: 3px 7px; color: var(--ink); background: var(--yellow); font: 800 7px ui-monospace, SFMono-Regular, Consolas, monospace; }
[data-severity="critical"] .severity { color: #fff; background: #e64040; }
[data-severity="high"] .severity { background: var(--coral); }
.finding-head strong { font: 800 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.finding-copy { margin: 10px 0 0; color: #c1c8cc; font-size: 11px; line-height: 1.55; }
.finding-control { margin: 8px 0 0; color: #f1f3ef; font-size: 11px; line-height: 1.55; }
.finding-control b { color: var(--mint); font: 800 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; border-top: 1px solid #4e555b; border-bottom: 1px solid #4e555b; }
.segmented { display: flex; align-items: stretch; min-height: 34px; }
.segmented button { min-width: 82px; padding: 7px 10px; color: #adb6bb; background: transparent; border: 0; border-right: 1px solid #4e555b; font: 800 7px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; cursor: pointer; }
.segmented button[aria-pressed="true"] { color: var(--ink); background: var(--yellow); }
.tool-toolbar > span { color: #929ba1; font: 800 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-list { border-bottom: 1px solid #4e555b; }
.tool-row { border-top: 1px solid #4e555b; }
.tool-row:first-child { border-top: 0; }
.tool-row > header { min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; cursor: pointer; }
.tool-row > header:hover { background: #1d2329; }
.tool-name { min-width: 0; margin: 0; color: #fff; font: 800 13px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.tool-risk, .tool-gate { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid #667078; font: 800 7px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; white-space: nowrap; }
.tool-row[data-level="critical"] .tool-risk { color: #fff; background: #dd3e3e; border-color: #dd3e3e; }
.tool-row[data-level="high"] .tool-risk { color: var(--ink); background: var(--coral); border-color: var(--coral); }
.tool-row[data-level="elevated"] .tool-risk { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.tool-row[data-level="watch"] .tool-risk { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.tool-details { padding: 0 12px 16px; }
.annotation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #4e555b; border-left: 1px solid #4e555b; }
.annotation-grid div { min-width: 0; padding: 9px; border-right: 1px solid #4e555b; border-bottom: 1px solid #4e555b; }
.annotation-grid span { display: block; color: #89939a; font: 800 6px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.annotation-grid b { display: block; margin-top: 6px; color: #fff; font: 800 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.capability-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.capability-list span { min-height: 24px; display: inline-flex; align-items: center; padding: 4px 8px; color: var(--ink); background: #cad0d3; font: 800 7px ui-monospace, SFMono-Regular, Consolas, monospace; }
.capability-list span[data-active="true"] { background: var(--yellow); }
.tool-findings { margin-top: 12px; border-top: 1px solid #4e555b; }
.tool-findings article { padding: 12px 0; border-bottom: 1px solid #4e555b; }
.tool-policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-left: 3px solid var(--blue); background: #171d22; }
.tool-policy div { min-width: 0; padding: 10px; border-right: 1px solid #394148; }
.tool-policy span { display: block; color: #89939a; font: 800 6px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-policy b { display: block; margin-top: 6px; color: #fff; font: 800 8px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.result-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid #4e555b; }
.result-panel .command { color: #fff; border-color: #7b858c; }
.result-panel .command:hover, .result-panel .command:focus-visible { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.result-panel .command--yellow { color: var(--ink); border-color: var(--yellow); }
.action-status { min-height: 18px; margin: 10px 0 0; color: var(--mint); font: 800 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }

.method-band { color: var(--ink); background: var(--yellow); border-bottom: 1px solid var(--ink); }
.method-shell, .limits-shell { width: min(100%, 1480px); margin: 0 auto; padding: 72px 28px; }
.method-shell > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 56px; }
.method-shell > header .eyebrow { grid-column: 1 / -1; color: #5a4700; }
.method-shell h2, .limits-shell h2 { max-width: 900px; margin: 0; font: 800 44px/1.03 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; text-wrap: balance; }
.method-shell > header > p:last-child { margin: 0; color: #534a23; line-height: 1.6; }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 42px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.control-grid li { min-height: 245px; padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.control-grid span { color: var(--blue); font: 800 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.control-grid h3 { margin: 48px 0 0; font: 800 20px/1.08 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.control-grid p { margin: 14px 0 0; color: #514a28; font-size: 13px; line-height: 1.55; }
.limits-band { color: #f2f5f3; background: var(--blue); border-bottom: 1px solid var(--ink); }
.limits-shell { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); gap: 70px; }
.limits-shell .eyebrow { color: var(--yellow); }
.limits-shell h2 { margin-top: 14px; color: #fff; }
.limits-shell ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.55); }
.limits-shell li { min-height: 54px; display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.55); font-size: 13px; line-height: 1.5; }
.limits-shell nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.limits-shell nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 7px 11px; color: #fff; border: 1px solid rgba(255,255,255,.8); font: 800 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; text-decoration: none; }
.limits-shell nav a:hover, .limits-shell nav a:focus-visible { color: var(--ink); background: var(--yellow); border-color: var(--yellow); outline: 0; }
.footer { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 24px; color: #cfd4d1; background: var(--ink); font: 800 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.footer a { color: inherit; text-decoration: none; }
.footer > span { color: #8f9994; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.footer a:hover { color: var(--yellow); }
.noscript { margin: 0; padding: 14px; color: #fff; background: #a82f2f; }

@media (max-width: 1120px) {
  .scope-intro h1 { font-size: 56px; }
  .workbench { grid-template-columns: 1fr; }
  .catalog-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .result-idle { min-height: 540px; }
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { flex-direction: column; }
  .brand { min-width: 0; border-right: 0; border-bottom: 1px solid #495058; }
  .topbar nav { width: 100%; overflow-x: auto; }
  .topbar nav a { min-width: 92px; flex: 1 0 auto; }
  .scope-shell, .method-shell, .limits-shell { padding-right: 14px; padding-left: 14px; }
  .scope-intro { grid-template-columns: 1fr; gap: 24px; }
  .scope-intro h1 { font-size: 43px; }
  .scope-intro > p { font-size: 16px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip span:nth-child(2) { border-right: 0; }
  .trust-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .catalog-panel, .result-ready { padding: 16px; }
  .source-tools { align-items: flex-start; flex-direction: column; }
  .source-tools > span { max-width: none; text-align: left; }
  .editor-field textarea { min-height: 360px; }
  .result-idle { min-height: 520px; padding: 30px 20px; }
  .result-idle h2 { font-size: 31px; }
  .result-header { flex-direction: column; }
  .digest { text-align: left; }
  .scope-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-row > header { grid-template-columns: minmax(0, 1fr) auto; }
  .tool-gate { grid-column: 1 / -1; justify-self: start; }
  .annotation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-policy { grid-template-columns: 1fr; }
  .tool-policy div { border-right: 0; border-bottom: 1px solid #394148; }
  .method-shell > header, .limits-shell { grid-template-columns: 1fr; gap: 28px; }
  .method-shell > header .eyebrow, .limits-shell nav { grid-column: auto; }
  .method-shell h2, .limits-shell h2 { font-size: 34px; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer > span { text-align: left; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .scope-intro h1 { font-size: 36px; }
  .input-actions .command, .result-actions .command { width: 100%; }
  .sample-notice { flex-direction: column; }
  .tool-toolbar { align-items: stretch; flex-direction: column; padding: 10px 0; }
  .segmented { width: 100%; }
  .segmented button { min-width: 0; flex: 1; }
  .control-grid { grid-template-columns: 1fr; }
  .control-grid li { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
