/* Shared low-fidelity wireframe presentation. No external assets or runtime dependencies. */
:root {
  color-scheme: light;
  --canvas: #f5f6f3;
  --surface: #ffffff;
  --surface-2: #eceeea;
  --text: #182521;
  --muted: #53615b;
  --line: #c9cfca;
  --primary: #215c48;
  --on-primary: #ffffff;
  --accent: #a34d32;
  --on-accent: #ffffff;
  --success: #216343;
  --warning: #805600;
  --danger: #a23b36;
  --info: #315f7c;
  --focus: #a34d32;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --shadow: 0 12px 32px rgb(20 32 27 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
svg.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 16px; background: var(--surface); color: var(--text); border: 2px solid var(--focus); }
.skip-link:focus { top: 12px; }
.review-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.review-header__inner, .review-main, .review-footer { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.review-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding-block: 12px; }
.review-brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.review-brand strong { font-family: var(--font-display); font-size: 20px; }
.review-brand span { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.review-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.review-main { padding-block: 42px 72px; }
.review-intro { max-width: 820px; margin-bottom: 30px; }
.review-intro h1 { margin: 8px 0 12px; font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.025em; }
.review-intro p { margin: 0; color: var(--muted); font-size: 18px; }
.prototype-notice { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; }
.screen-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 42px; padding: 0; list-style: none; }
.screen-nav a { display: block; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 650; }
.screen-nav a:hover { border-color: var(--primary); color: var(--primary); }
.wireframe { margin-top: 64px; }
.wireframe:first-of-type { margin-top: 0; }
.screen-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 28px; align-items: end; margin-bottom: 18px; }
.screen-heading h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.screen-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.screen-number { color: var(--primary); font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.annotations { margin: 16px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.annotations summary { cursor: pointer; font-weight: 700; }
.annotations ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.annotations li + li { margin-top: 6px; }
.review-footer { padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.demo-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Application frame primitives */
.app-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); box-shadow: var(--shadow); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-header__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.app-header__meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 13px; }
.app-body { padding: 24px; }
.app-body--flush { padding: 0; }
.app-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.app-title h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.app-title p { margin: 0; color: var(--muted); }
.app-section { margin-top: 24px; }
.app-section h4, .panel h4 { margin: 0 0 12px; font-size: 16px; }
.app-section h5, .panel h5 { margin: 0 0 8px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.micro { font-size: 12px; }
.mono, .numeric { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.numeric { font-family: var(--font-body); }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--large { gap: 20px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cluster--between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel, .card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel--muted { background: var(--surface-2); }
.panel--accent { border-color: var(--accent); }
.panel--selected { border: 2px solid var(--primary); }
.card { padding: 16px; }
.card h4, .card h5 { margin-top: 0; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.divider { height: 1px; margin-block: 16px; background: var(--line); }
.rule-list, .clean-list { margin: 0; padding: 0; list-style: none; }
.rule-list > li { padding: 12px 8px 16px; border-bottom: 1px solid var(--line); }
.rule-list > li:first-child { padding-top: 8px; }
.rule-list > li:last-child { padding-bottom: 8px; border-bottom: 0; }
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list > li { position: relative; min-height: 34px; padding-left: 46px; counter-increment: steps; }
.step-list > li + li { margin-top: 16px; }
.step-list > li::before { content: counter(steps); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); font-weight: 800; }
.definition-grid { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); gap: 8px 16px; margin: 0; }
.definition-grid dt { color: var(--muted); }
.definition-grid dd { margin: 0; font-weight: 650; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 750; line-height: 1.25; cursor: pointer; }
.button:hover { filter: brightness(.94); text-decoration: none; }
.button--secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button--accent { background: var(--accent); color: var(--on-accent); }
.button--danger { border-color: var(--danger); background: var(--surface); color: var(--danger); }
.button--ghost { border-color: transparent; background: transparent; color: var(--primary); }
.button[aria-disabled="true"], .button:disabled { opacity: .58; cursor: not-allowed; filter: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.text-link { font-weight: 700; }
.badge, .status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.3; }
.status svg { width: 15px; height: 15px; }
.status--success { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); color: var(--success); }
.status--warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); color: var(--warning); }
.status--danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); }
.status--info { border-color: color-mix(in srgb, var(--info) 45%, var(--line)); color: var(--info); }
.status--neutral { color: var(--muted); }
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.banner--warning { border-color: var(--warning); }
.banner--danger { border-color: var(--danger); }
.banner--success { border-color: var(--success); }
.banner > svg { margin-top: 3px; color: var(--info); }
.banner--warning > svg { color: var(--warning); }
.banner--danger > svg { color: var(--danger); }
.banner--success > svg { color: var(--success); }
.banner p { margin: 3px 0 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child, .field-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.input-like { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.input-like--disabled { background: var(--surface-2); color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-box { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--muted); border-radius: 4px; color: var(--on-primary); }
.check-box--checked { border-color: var(--primary); background: var(--primary); }
.check-box svg { width: 15px; height: 15px; }
.meter { height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.meter > span { display: block; height: 100%; background: var(--primary); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.tabs span, .tabs a { padding: 7px 11px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.tabs .is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.kpi { font-family: var(--font-display); font-size: 30px; font-weight: 750; line-height: 1.1; }
.caption { padding: 12px 16px; border-radius: 8px; background: var(--surface); color: var(--text); }
.scene-placeholder { position: relative; display: grid; place-items: center; min-height: 190px; overflow: hidden; padding: 24px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); text-align: center; }
.scene-placeholder strong { color: var(--text); }
.qr-placeholder { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 126px; height: 126px; padding: 8px; border: 1px solid var(--line); background: var(--surface); }
.qr-placeholder span { background: var(--text); }
.qr-placeholder span:nth-child(3n), .qr-placeholder span:nth-child(7n + 1) { background: transparent; }
.code { padding: 8px 12px; border: 1px dashed var(--primary); border-radius: 8px; color: var(--primary); font-family: var(--font-mono); font-size: 23px; font-weight: 800; letter-spacing: .14em; }

/* Fire TV and phone artboards */
.tv-frame { overflow: hidden; border: 8px solid #151b22; border-radius: 18px; background: var(--tv-canvas, var(--canvas)); color: var(--tv-text, var(--text)); box-shadow: var(--shadow); }
.tv-stage { position: relative; min-height: 610px; padding: 34px 42px 28px; background: var(--tv-canvas, var(--canvas)); }
.tv-stage--scene { display: flex; flex-direction: column; }
.tv-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tv-topbar h3 { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1.15; }
.tv-topbar p { margin: 5px 0 0; color: var(--tv-muted, var(--muted)); }
.tv-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 30px; align-items: center; flex: 1; padding-block: 28px; }
.tv-content--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv-panel { padding: 22px; border: 1px solid var(--tv-line, var(--line)); border-radius: 12px; background: var(--tv-surface, var(--surface)); }
.tv-panel h4 { margin: 0 0 12px; font-size: 23px; }
.tv-panel p { color: var(--tv-muted, var(--muted)); }
.tv-action-rail { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--tv-line, var(--line)); border-radius: 10px; background: var(--tv-surface, var(--surface)); }
.tv-action-rail span { color: var(--tv-muted, var(--muted)); font-size: 14px; }
.tv-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 13px 18px; border: 2px solid var(--tv-line, var(--line)); border-radius: 9px; background: var(--tv-surface, var(--surface)); color: var(--tv-text, var(--text)); font: inherit; font-weight: 750; cursor: pointer; }
.tv-button--focus { border-color: var(--tv-focus, var(--focus)); box-shadow: 0 0 0 3px var(--tv-canvas, var(--canvas)), 0 0 0 6px var(--tv-focus, var(--focus)); }
.tv-button--primary { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.tv-choice { width: 100%; text-align: left; }
.tv-choice + .tv-choice { margin-top: 14px; }
.tv-caption { padding: 14px 18px; border-radius: 8px; background: var(--tv-surface, var(--surface)); color: var(--tv-text, var(--text)); font-size: 18px; }
.tv-scene { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--tv-line, var(--line)); border-radius: 12px; background: var(--tv-scene, var(--surface-2)); }
.scene-label { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 8px 11px; border-radius: 6px; background: var(--tv-surface, var(--surface)); color: var(--tv-muted, var(--muted)); font-size: 13px; }
.focus-note { color: var(--tv-focus, var(--focus)); font-size: 13px; font-weight: 800; }
.phone-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 30px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.phone-frame { width: min(100%, 390px); overflow: hidden; border: 8px solid #1b2421; border-radius: 34px; background: var(--canvas); box-shadow: var(--shadow); }
.phone-screen { min-height: 700px; padding: 18px; }
.phone-screen--short { min-height: 580px; }
.phone-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.phone-header h3 { margin: 0; font-family: var(--font-display); font-size: 27px; line-height: 1.15; }
.phone-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.phone-section { margin-top: 18px; }
.phone-section h4 { margin: 0 0 10px; font-size: 16px; }
.phone-tabbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.phone-tabbar a, .phone-tabbar span { padding: 8px 3px; color: var(--muted); text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; }
.phone-tabbar .is-active { color: var(--primary); }
.phone-note { width: min(100%, 390px); padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.record-control { display: grid; place-items: center; width: 96px; height: 96px; margin: 18px auto 8px; border: 3px solid var(--primary); border-radius: 50%; background: var(--surface); color: var(--primary); font: inherit; font-weight: 800; cursor: pointer; }
.symbol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.symbol-cell { display: grid; place-items: center; min-height: 82px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-align: center; }
.symbol-shape { width: 32px; height: 32px; margin-bottom: 8px; border: 3px solid currentColor; transform: rotate(45deg); }
.symbol-shape--circle { border-radius: 50%; transform: none; }
.symbol-shape--triangle { width: 0; height: 0; border: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 32px solid currentColor; transform: none; }

/* Simple map and evidence figures */
.zone-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.zone { min-height: 84px; padding: 12px; border: 2px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-align: left; font: inherit; }
.zone--selected { border-color: var(--primary); }
.zone--warning { border-style: dashed; }
.trend { display: flex; align-items: end; gap: 8px; height: 110px; padding: 12px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trend span { flex: 1; min-width: 12px; background: var(--primary); opacity: .78; }
.lighthouse { position: absolute; left: 18%; bottom: 0; width: 74px; height: 210px; background: var(--tv-surface, var(--surface)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.lighthouse::before { content: ""; position: absolute; left: 12px; top: 18px; width: 50px; height: 24px; background: var(--tv-focus, var(--focus)); }
.moon { position: absolute; right: 10%; top: 12%; width: 86px; height: 86px; border: 2px solid var(--tv-line, var(--line)); border-radius: 50%; background: var(--tv-surface, var(--surface)); }

@media (max-width: 900px) {
  .screen-heading, .split, .split--wide-left, .tv-content, .tv-content--even { grid-template-columns: 1fr; }
  .screen-heading { gap: 10px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-stage { min-height: 0; padding: 28px; }
  .tv-content { flex: initial; }
  .tv-scene { min-height: 230px; }
  .app-header { align-items: flex-start; }
}
@media (max-width: 640px) {
  .review-header__inner, .review-main, .review-footer { width: min(100% - 28px, 1280px); }
  .review-header__inner, .app-header, .app-title { flex-direction: column; align-items: stretch; }
  .review-header__inner { gap: 8px; }
  .review-main { padding-top: 28px; }
  .review-intro p { font-size: 16px; }
  .screen-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-nav a { text-align: center; }
  .wireframe { margin-top: 46px; }
  .app-body { padding: 16px; }
  .app-header__meta { justify-content: flex-start; }
  .grid-2, .grid-3, .definition-grid { grid-template-columns: 1fr; }
  .definition-grid { gap: 3px; }
  .definition-grid dd { margin-bottom: 10px; }
  .button-row, .button-row .button { width: 100%; }
  .phone-grid { padding: 12px; }
  .phone-frame { border-width: 5px; border-radius: 26px; }
  .phone-screen { padding: 15px; }
  .tv-frame { border-width: 4px; border-radius: 12px; }
  .tv-stage { padding: 20px 16px; }
  .tv-topbar { flex-direction: column; }
  .tv-topbar h3 { font-size: 28px; }
  .tv-action-rail { align-items: stretch; flex-direction: column; }
  .tv-action-rail .cluster { align-items: stretch; flex-direction: column; }
  .tv-button { width: 100%; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .data-table tr { padding-block: 10px; border-bottom: 1px solid var(--line); }
  .data-table td { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 10px; padding: 5px 0; border: 0; }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .review-links, .screen-nav, .skip-link, .demo-status { display: none; }
  .review-header__inner, .review-main, .review-footer { width: 100%; }
  .wireframe { break-before: page; margin-top: 20px; }
  .app-frame, .tv-frame, .phone-frame { box-shadow: none; }
  .annotations { display: block; }
  .annotations > * { display: block; }
}
