@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/work/dash-tarnhollow-1.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #F3F0E8; --bg-2: #ECE7DB; --paper: #FBFAF6; --surface: #FFFFFF;
  --ink: #1C2F29; --ink-2: #44554F; --ink-3: #5F6B66; --line: #DDD6C7; --line-2: #C7BEAB;
  --forest: #2C5B4E; --forest-2: #3E7464; --forest-soft: #DCE7E1;
  --gold: #8E6517; --gold-fill: #C08A2C; --gold-soft: #F4E7C9;
  --sky: #2D6C92; --sky-soft: #DCE9F0;
  --slate: #6E757B; --rust: #A33F27; --rust-soft: #F6DDD4; --amber: #835500; --amber-soft: #F7EACB;
  --positive: #2C6A45; --focus: #1B4FD0;
  --state-booked: #2C5B4E; --state-offer: #C08A2C; --state-open: #FBFAF6; --state-blocked: #7C8288;
  --radius: 14px; --radius-s: 9px;
  --shadow: 0 1px 0 rgba(28,47,41,.04), 0 10px 30px -18px rgba(28,47,41,.28);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 'Public Sans', system-ui, sans-serif; font-feature-settings: 'tnum' 1; }
.num, .kpi-value, td, .cell-n { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.mini-h { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 12px 28px; background: rgba(243,240,232,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 34px; height: 34px; }
.brand-name { display: block; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.scope { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; font-size: 13px; color: var(--ink-2); }
.scope b { color: var(--ink); font-weight: 600; }
.sep { color: var(--line-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.synthetic { font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-soft); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Buttons */
.btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background .15s; }
.btn:hover { background: #0F1F1A; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--forest); border-color: var(--forest); }
.btn.primary:hover { background: #224A3F; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--paper); border-color: var(--ink-3); }
.btn.danger { color: var(--rust); border-color: #D9B3A7; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid var(--line); gap: 2px; }
.seg-btn { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg-btn:hover { color: var(--ink); background: rgba(28,47,41,.06); }
.seg-btn[aria-pressed='true'], .seg-btn[aria-checked='true'] { background: var(--ink); color: #fff; }
.seg-btn.solo { border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.seg-btn.solo[aria-pressed='true'] { background: #2A2F45; color: #FFE3B0; border-color: #2A2F45; }

main { padding: 0 28px 40px; max-width: 1760px; margin: 0 auto; }

/* ---------- Intro + KPIs */
.intro { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(560px, 1.12fr); gap: 40px; align-items: center; padding: 34px 0 26px; position: relative; }
.intro::before { content: ''; position: absolute; inset: 0 -28px; background: var(--topo, none) center/cover no-repeat; opacity: .55; pointer-events: none; z-index: -1; }
h1 { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; max-width: 17ch; }
h1 em { font-style: normal; color: var(--forest); }
.lede { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 54ch; }
.lede b { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 138px; position: relative; transition: border-color .15s, transform .15s; }
.kpi-delta { font-weight: 700; color: var(--gold); margin-left: 4px; }
.kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kpi:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.kpi-label .info { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); flex: none; }
.kpi-value { font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.kpi-detail { font-size: 13px; color: var(--ink-2); }
.kpi-tag { align-self: flex-start; margin-top: auto; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.kpi-tag.modeled { background: var(--gold-soft); color: var(--gold); }
.kpi-tag.warn { background: var(--rust-soft); color: var(--rust); }
.kpi-spark { position: absolute; right: 18px; top: 44px; width: 84px; height: 36px; opacity: .9; }

/* ---------- Workspace */
.workspace { display: grid; grid-template-columns: 286px minmax(0, 1fr) 318px; gap: 16px; align-items: stretch; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel-head h2 { font-size: 16px; font-weight: 700; }
.panel-head.tight { margin-top: 6px; }
.panel-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid rgba(28,47,41,.25); }
.sw.booked, .cell.booked { background: var(--state-booked); border-color: var(--state-booked); }
.sw.offer, .cell.offer { background: repeating-linear-gradient(135deg, var(--state-offer) 0 3px, #DDB667 3px 5px); border-color: #9B6E1F; }
.sw.open, .cell.open { background: var(--state-open); border-color: #BDB4A2; }
.sw.blocked, .cell.blocked { background: repeating-linear-gradient(45deg, var(--state-blocked) 0 2px, #C9CDD0 2px 4px); border-color: #5E656B; }

/* ledger matrix */
.matrix { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 3px; align-items: center; }
.matrix .colh { font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: center; padding-bottom: 2px; border-radius: 6px; }
.matrix .colh.cur { color: #fff; background: var(--ink); }
.matrix .rowh { all: unset; font: 500 11px/1 var(--mono); color: var(--ink-2); cursor: pointer; padding: 2px 3px; border-radius: 4px; }
.matrix .rowh:hover, .matrix .rowh.sel { background: var(--ink); color: #fff; }
.matrix .rowh:focus-visible { outline: 2px solid var(--focus); }
.cell { height: 13px; border-radius: 3px; border: 1px solid; position: relative; }
.cell.cur { box-shadow: 0 0 0 1px rgba(28,47,41,.7); }
.cell.open.cur { background: #EDE7DA; }
.cell.selrow { outline: 1px solid rgba(27,79,208,.55); }
.matrix-sep { grid-column: 1 / -1; height: 1px; background: var(--line); margin: 3px 0; }
.zone-tag { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: 2px; letter-spacing: .04em; }
.rvbars { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 3px; align-items: end; margin-top: 4px; }
.rvbars .lbl { font-size: 11px; color: var(--ink-2); font-weight: 600; align-self: center; }
.rvbar { height: 34px; background: var(--state-open); border: 1px solid #CFC7B6; border-radius: 3px; position: relative; overflow: hidden; }
.rvbar > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--state-booked); }
.rvbar.cur { box-shadow: 0 0 0 1.5px var(--ink); }
.rvbar span { position: absolute; inset: auto 0 2px 0; text-align: center; font-size: 10px; color: #fff; font-weight: 600; }
.ledger-foot { font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }

/* stage */
.stage-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage { position: relative; height: clamp(470px, 52vw, 640px); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 18%, #FFFFFF 0%, #F4F0E6 48%, #E5DECF 100%); box-shadow: var(--shadow); transition: background .6s; }
.stage.dusk { background: radial-gradient(120% 90% at 50% 10%, #4A4F6E 0%, #2E3249 55%, #1E2133 100%); }
.scene-host, .map-host { position: absolute; inset: 0; }
.scene-host canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.scene-host canvas:active { cursor: grabbing; }
.scene-labels { position: absolute; inset: 0; pointer-events: none; }
.zone-label { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; transition: opacity .2s; }
.zone-label b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); text-shadow: 0 0 6px #fff, 0 0 2px #fff, 0 0 12px rgba(255,255,255,.8); letter-spacing: .02em; }
.zone-label span { display: block; font-size: 11px; color: var(--ink-2); text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.stage.dusk .zone-label b, .stage.dusk .zone-label span { color: #F5EFE2; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.unit-pin { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; font: 600 12px/1 'Public Sans', sans-serif; padding: 7px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.unit-pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.stage-tools { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stage-tools .seg { backdrop-filter: blur(6px); }
.stage-hint { position: absolute; right: 16px; bottom: 14px; font-size: 12px; color: var(--ink-2); background: rgba(251,250,246,.86); padding: 6px 10px; border-radius: 999px; }
.stage.dusk .stage-hint { background: rgba(30,33,51,.7); color: #E9E3D6; }
.stage-note { position: absolute; top: 66px; left: 14px; max-width: 360px; font-size: 13px; }
.stage-note:empty { display: none; }
.stage-note { background: rgba(251,250,246,.95); border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; }
.unit-card { position: absolute; left: 14px; bottom: 14px; width: min(340px, calc(100% - 28px)); background: rgba(251,250,246,.97); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px -20px rgba(28,47,41,.5); }
.unit-card h3 { font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.unit-card h3 code { font: 500 15px var(--mono); }
.unit-card .uc-zone { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.unit-card .uc-state { margin: 8px 0 6px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.uc-close { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 20px; color: var(--ink-2); }
.uc-close:hover { background: var(--bg-2); }
.stays { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.stays li { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; padding: 5px 8px; border-radius: 8px; background: var(--bg); }
.stays li.offer { background: var(--gold-soft); }
.stays code { font: 500 11.5px var(--mono); color: var(--ink-2); }
.uc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 8px; }
.uc-week div { text-align: center; font-size: 10.5px; color: var(--ink-3); }
.uc-week .cell { height: 16px; }

.days { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; box-shadow: var(--shadow); }
.days-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.replay { display: flex; align-items: center; gap: 6px; }
.rate { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 9px 9px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px; min-height: 44px; position: relative; }
.day:hover { border-color: var(--line-2); }
.day:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.day[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day .d1 { font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; }
.day .d1 span { font-weight: 500; font-size: 12px; opacity: .75; }
.day .d2 { font-size: 12px; opacity: .85; }
.day .dbar { height: 5px; border-radius: 3px; background: #E8E2D5; position: relative; overflow: hidden; }
.day[aria-checked='true'] .dbar { background: rgba(255,255,255,.2); }
.day .dbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--forest-2); }
.day .dbar b { position: absolute; top: 0; bottom: 0; background: var(--state-offer); }
.day[aria-checked='true'] .dbar i { background: #9CC8B6; }
.day .flag { position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }

/* capacity chart */
.cap svg, #capChart svg, #revChart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cap-summary { font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
.meter { height: 10px; border-radius: 6px; background: #ECE6D9; position: relative; overflow: hidden; border: 1px solid var(--line); }
.meter i { position: absolute; top: 0; bottom: 0; left: 0; }
.cap-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--ink-2); }
.cap-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Sections */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.022em; margin-top: 6px; max-width: 30ch; }
.section-lede { max-width: 52ch; color: var(--ink-2); font-size: 15px; }
.planner, .watch, .units, .defs { margin-top: 44px; }
.planner { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.planner-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.conditions { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
.conditions legend { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.cond-group { display: grid; gap: 6px; }
.cond-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 4px 0 2px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; min-height: 44px; }
.radio:hover { border-color: var(--line-2); }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.radio input { margin: 3px 0 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.radio b { display: block; font-size: 14px; font-weight: 600; }
.radio small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.block-note { font-size: 13px; }
.block-note:empty { display: none; }
.note { padding: 10px 12px; border-radius: 10px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note.crit { background: var(--rust-soft); border-color: #E3B6A8; color: #6E2817; }
.note.ok { background: var(--forest-soft); border-color: #B7CFC4; color: #183E33; }
.note.info { background: var(--sky-soft); border-color: #B5CEDD; color: #173E56; }
.note.warn { background: var(--amber-soft); border-color: #E5CE97; color: #5A3B00; }

.option-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt { all: unset; box-sizing: border-box; cursor: pointer; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); display: grid; gap: 8px; align-content: start; position: relative; min-height: 172px; transition: border-color .15s, box-shadow .15s; }
.opt:hover { border-color: var(--line-2); }
.opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt[aria-checked='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 14px 30px -20px rgba(28,47,41,.45); }
.opt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opt h4 { margin: 0; font-size: 15.5px; font-weight: 700; }
.opt p { font-size: 13px; color: var(--ink-2); }
.opt .radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.opt[aria-checked='true'] .radio-dot { border: 5px solid var(--ink); }
.opt .mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 2px; }
.opt .mini div { display: grid; gap: 2px; justify-items: center; }
.opt .mini i { display: block; width: 100%; border-radius: 2px; background: var(--state-offer); }
.opt .mini small { font-size: 10.5px; color: var(--ink-3); }
.opt .mini .over { background: var(--rust); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill svg { width: 12px; height: 12px; }
.pill.ok { background: var(--forest-soft); color: #1D4A3D; }
.pill.crit { background: var(--rust-soft); color: var(--rust); }
.pill.neutral { background: var(--bg-2); color: var(--ink-2); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.unknown { background: #E6E8EB; color: #3F464C; }

.compare { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare caption { text-align: left; padding: 14px 16px 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.compare th, .compare td { padding: 9px 16px; text-align: right; border-top: 1px solid #EEE9DE; }
.compare th[scope='row'] { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { font-size: 13px; font-weight: 700; color: var(--ink); border-top: 0; }
.compare td.sel, .compare th.sel { background: #F6F2E7; }
.compare tr.total td, .compare tr.total th { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line-2); }
.compare .sub { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.verdict { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.verdict h4 { margin: 0 0 4px; font-size: 16px; }
.verdict ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.verdict a { color: inherit; }
.verdict.crit { background: var(--rust-soft); border-color: #E3B6A8; }
.verdict.ok { background: var(--forest-soft); border-color: #B7CFC4; }
.verdict.applied { background: var(--gold-soft); border-color: #E2CB94; }
.omissions { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: 10px; }

/* Watch */
.watch { padding: 28px; background: linear-gradient(180deg, #FBFAF6, #F6F2E8); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.watch-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.speed { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.speed select { min-height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 8px; }
.watch-status { display: grid; gap: 4px; justify-items: end; text-align: right; max-width: 520px; }
.watch-status .big { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.watch-status p { font-size: 13.5px; color: var(--ink-2); }
.check-log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.check-log li { display: grid; grid-template-columns: 96px 110px 1fr; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid #EEE9DE; }
.check-log li time { font-weight: 600; }
.profile { margin: 8px 0 0; display: grid; gap: 8px; font-size: 13px; }
.profile div { display: grid; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid #EAE4D7; }
.profile dt { font-weight: 600; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.profile dd { margin: 0; color: var(--ink); }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Unit table */
.table-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.unit-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.unit-table th, .unit-table td { padding: 6px 10px; border-bottom: 1px solid #EEE9DE; text-align: left; white-space: nowrap; }
.unit-table thead th { position: sticky; top: 0; background: var(--paper); z-index: 1; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.unit-table thead th.cur { background: var(--ink); color: #fff; }
.unit-table .ubtn { all: unset; cursor: pointer; font: 500 12.5px var(--mono); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); min-width: 34px; text-align: center; }
.unit-table .ubtn:hover, .unit-table tr.sel .ubtn { background: var(--ink); color: #fff; border-color: var(--ink); }
.unit-table .ubtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.st i { width: 12px; height: 10px; border-radius: 2px; border: 1px solid; }
.st.open { color: var(--ink-3); }
.unit-table td.cur { background: rgba(28,47,41,.05); }

/* Definitions */
.defs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.def { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.def h3 { font-size: 15px; }
.def p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.def code { font: 500 12px var(--mono); background: var(--bg); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.foot .meta { font: 500 11.5px var(--mono); color: var(--ink-3); }

/* Dialogs */
.dlg { border: 0; padding: 0; border-radius: 20px; background: var(--paper); color: var(--ink); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 40px 80px -30px rgba(15,25,22,.6); }
.dlg.wide { width: min(1080px, calc(100vw - 32px)); }
.dlg.small { width: min(480px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(20,32,28,.45); backdrop-filter: blur(3px); }
.dlg-body { padding: 26px 28px; display: grid; gap: 14px; }
.dlg h2 { font-size: 22px; letter-spacing: -.02em; }
.dlg h3 { font-size: 14px; margin-top: 4px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; position: sticky; bottom: -26px; background: linear-gradient(180deg, rgba(251,250,246,0), var(--paper) 30%); padding: 14px 0 0; }
.dlg-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; }
.formula { font: 500 13px var(--mono); background: var(--bg); padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; }
.impact { width: 100%; border-collapse: collapse; font-size: 13px; }
.impact th, .impact td { text-align: left; vertical-align: top; padding: 10px; border-top: 1px solid #EAE4D7; }
.impact thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 0; }
.diff { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.diff li { font-size: 12.5px; }
.diff .minus { color: #7A2E1C; }
.diff .minus::before { content: '− '; font-weight: 700; }
.diff .plus { color: #1D4A3D; }
.diff .plus::before { content: '+ '; font-weight: 700; }
.ver { font: 500 11.5px var(--mono); color: var(--ink-2); }
.approvals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); margin: 1px 0 0; flex: none; }
.check small { display: block; color: var(--ink-3); font-size: 12px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stages li { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid #EAE4D7; }
.stages li.done { border-color: #B7CFC4; background: var(--forest-soft); }
.stages li.failed { border-color: #E3B6A8; background: var(--rust-soft); }
.receipt { font-size: 13.5px; display: grid; gap: 10px; }
.receipt dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; margin: 0; }
.receipt dt { color: var(--ink-3); }
.receipt dd { margin: 0; }
.ledger-list { font: 500 11.5px/1.6 var(--mono); background: var(--bg); padding: 10px 12px; border-radius: 10px; max-height: 220px; overflow: auto; margin: 0; list-style: none; }

/* Map */
.map-host svg { width: 100%; height: 100%; display: block; }
.map-unit { cursor: pointer; }
.map-unit:focus-visible { outline: none; }
.map-unit:focus-visible rect, .map-unit:focus-visible path { stroke: var(--focus); stroke-width: 1.2; }
.map-unit.sel rect { stroke: var(--ink); stroke-width: 1.1; }

/* Responsive */
@media (max-width: 1360px) {
  .workspace { grid-template-columns: 262px minmax(0, 1fr); }
  .capacity { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .capacity .panel-head { grid-column: 1 / -1; }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .ledger { order: 2; }
  .planner-grid, .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .conditions, .options, .watch-main { min-width: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .option-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  main { padding: 0 16px 32px; }
  .intro::before { inset: 0 -16px; }
  .topbar { grid-template-columns: 1fr auto; padding: 10px 16px; gap: 8px; }
  .scope { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; font-size: 12px; }
  .synthetic { display: none; }
  .capacity { grid-template-columns: 1fr; }
  .stage { height: 420px; }
  .stage-hint { display: none; }
  .unit-card { position: static; width: auto; margin: 0; border-radius: 0; box-shadow: none; border-width: 1px 0 0; }
  .stage:has(.unit-card:not([hidden])) { height: auto; }
  .stage:has(.unit-card:not([hidden])) .scene-host, .stage:has(.unit-card:not([hidden])) .map-host { position: relative; height: 340px; }
  .day-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days-head { flex-wrap: wrap; gap: 6px; }
  .kpi-value { font-size: 30px; }
  .planner, .watch { padding: 18px; border-radius: 16px; }
  .compare { overflow-x: auto; }
  .compare th, .compare td { padding: 8px 10px; }
  .approvals, .stages { grid-template-columns: 1fr; }
  .check-log li { grid-template-columns: 1fr; gap: 2px; }
  .receipt dl { grid-template-columns: 1fr; }
  .dlg-body { padding: 20px; }
  .watch-status { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .cell, .sw, .rvbar { forced-color-adjust: none; }
  .day[aria-checked='true'], .seg-btn[aria-pressed='true'], .opt[aria-checked='true'] { outline: 2px solid CanvasText; }
}
@media print { .topbar, .stage-tools, .replay { display: none; } }

/* =====================================================================
   Tarnhollow · field-map layer (Nov 15, 2026). Research: 12-RV-PARK-DESIGN-RESEARCH.md
   Light daylight surface; palette from the land (timber, meadow, lake); one accent: lake blue.
   The model owns the first screen; everything above it is frosted glass.
   ===================================================================== */
@font-face { font-family: 'Fraunces'; src: url(/assets/fonts/work/dash-tarnhollow-2.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/work/dash-tarnhollow-3.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/work/dash-tarnhollow-4.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/work/dash-tarnhollow-5.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --bg: #F7F4EC; --bg-2: #EDE7D8; --paper: #FFFDF8; --surface: #FFFFFF;
  --ink: #23281F; --ink-2: #474D41; --ink-3: #5F665A; --line: #D9D0BC; --line-2: #BDB298;
  --forest: #2F5D3A; --forest-2: #46744F; --forest-soft: #DDE8DA; --state-booked: #2F5D3A;
  --lake: #2F6E8E; --lake-soft: #DCEAF1; --timber: #5A3E25; --focus: #2F6E8E;
  --radius: 6px; --radius-s: 4px; --shadow: none;
  --glass: rgba(255, 253, 248, .78); --glass-line: rgba(255, 255, 255, .7); --glass-shadow: 0 10px 30px -14px rgba(35, 40, 31, .35), 0 1px 0 rgba(35, 40, 31, .06);
  --top-h: 60px; --display: 'Fraunces', Georgia, serif;
}
body { font-family: 'Public Sans', system-ui, sans-serif; }
.warn-text { color: var(--rust); }

/* slim top bar carries the finding: no title block */
.topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; padding: 0 20px; height: var(--top-h); background: rgba(247, 244, 236, .94); border-bottom: 1px solid var(--line); }
.brand-name { font: 600 18px/1.1 var(--display); letter-spacing: 0; }
.brand-sub { font-size: 11px; }
.mark { width: 30px; height: 30px; }
.headline { min-width: 0; display: flex; align-items: baseline; gap: 14px; overflow: hidden; }
.headline h1 { font: 600 21px/1.2 var(--display); letter-spacing: -.01em; margin: 0; max-width: none; white-space: nowrap; }
.hl-num { color: var(--lake); }
.deck { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; max-width: none; }
.top-actions { gap: 10px; }
.scope { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.scope b { color: var(--ink-2); }
.synthetic { background: transparent; border: 1px dashed var(--line-2); color: var(--timber); border-radius: 3px; }
.btn { border-radius: 4px; }
.btn.ghost { min-height: 40px; }

/* the stage owns the first screen */
main { padding-top: 12px; }
.hero { margin: 0 0 18px; }
.stage { height: calc(100vh - var(--top-h) - 24px); min-height: 560px; max-height: 1100px; border-radius: 8px; border: 1px solid var(--line-2); }
.scene-host, .map-host { position: absolute; inset: 0; }

/* glass */
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: 8px; }
.stage.dusk { --glass: rgba(18, 24, 40, .62); --glass-line: rgba(255, 255, 255, .14); --glass-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
.stage.dusk .glass { color: #EEF1F8; }
.stage.dusk .glass .kpi-label, .stage.dusk .glass .kpi-detail, .stage.dusk .glass .mini-h, .stage.dusk .glass .rail-sub, .stage.dusk .day .d1 span, .stage.dusk .day .d2 { color: #C3CADB; }
.stage.dusk .glass .seg-btn { color: #DDE2EE; }
.stage.dusk .rail-bracket { color: #C3CADB; } .stage.dusk .rail-bracket b { color: #8CC3DE; } .stage.dusk .hl-num { color: #8CC3DE; }

.g-tools { position: absolute; top: 12px; left: 12px; right: auto; padding: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.g-tools .seg { background: transparent; border: 0; padding: 0; backdrop-filter: none; }
.g-tools .seg + .seg, .g-tools .seg + .solo { border-left: 1px solid rgba(35, 40, 31, .14); padding-left: 4px; }
.g-tools .seg-btn.solo { border: 0; background: transparent; }
.seg-btn { min-height: 40px; border-radius: 5px; }
.seg-btn[aria-pressed='true'] { background: var(--lake); color: #fff; }
.seg-btn.solo[aria-pressed='true'] { background: #1F2A44; color: #fff; }

.g-kpis { position: absolute; top: 72px; left: 12px; width: 264px; padding: 4px 16px; }
.kpis { display: block; }
.kpis > div { display: block; }
.kpi { all: unset; box-sizing: border-box; cursor: pointer; display: grid; width: 100%; position: relative; border-bottom: 1px solid rgba(35, 40, 31, .12); padding: 10px 0; }
.kpis > div:last-child .kpi { border-bottom: 0; }
.kpi:hover .kpi-label { text-decoration: underline dotted; text-underline-offset: 3px; }
.kpi:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: block; }
.kpi-value { font: 600 26px/1.05 var(--display); letter-spacing: -.01em; }
.kpi-value small { font-size: 14px; color: var(--ink-3); }
.kpi-detail { font-size: 12px; color: var(--ink-3); }
.kpi.row { grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; }
.kpi.row .kpi-detail { grid-column: 1 / -1; }
.kpi.lead { grid-template-columns: 1fr auto; grid-template-areas: 'l s' 'v s' 'd d' 't t'; padding-top: 12px; }
.kpi.lead .kpi-label { grid-area: l; } .kpi.lead .kpi-value { grid-area: v; font-size: 50px; margin: 2px 0; } .kpi.lead .kpi-detail { grid-area: d; }
.kpi.lead .kpi-spark { grid-area: s; position: static; align-self: end; width: 86px; height: 40px; margin-bottom: 8px; }
.kpi.lead .kpi-tag { grid-area: t; justify-self: start; margin-top: 6px; border-radius: 3px; background: rgba(35, 40, 31, .07); }
.kpi.lead .kpi-tag.modeled { background: var(--gold-soft); }
.kpi.is-warn .kpi-value { color: var(--rust); }
.stage.dusk .kpi { border-color: rgba(255, 255, 255, .12); }

/* night-by-night rail: the headline numbers, inside the hero */
.g-rail { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 10px 10px; display: grid; gap: 6px; }
.rail-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; }
.rail-top .mini-h { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; }
.rail-sub { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.rail-bracket { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.rail-bracket b { font: 600 17px/1 var(--display); color: var(--lake); }
.rail-bracket em { font-style: normal; color: var(--ink-3); }
.replay { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 5px; background: rgba(255, 255, 255, .6); }
.stage.dusk .icon-btn { background: rgba(255, 255, 255, .08); color: #EEF1F8; border-color: rgba(255, 255, 255, .2); }
.day-strip { gap: 6px; }
.day { padding: 7px 9px; border-radius: 5px; border: 1px solid rgba(35, 40, 31, .12); background: rgba(255, 255, 255, .55); display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'd1 d1' 'sq sq' 'd2 hk'; gap: 5px 6px; align-items: baseline; min-height: 44px; color: var(--ink); }
.day:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .8); }
.day[aria-checked='true'] { background: #fff; color: var(--ink); border-color: var(--lake); box-shadow: inset 0 0 0 1px var(--lake); }
.stage.dusk .day { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #EEF1F8; }
.stage.dusk .day[aria-checked='true'] { background: rgba(255, 255, 255, .16); border-color: #8CC3DE; box-shadow: inset 0 0 0 1px #8CC3DE; }
.day .d1 { grid-area: d1; font-size: 13px; display: flex; justify-content: space-between; }
.day .d1 b { font-weight: 700; }
.day .d1 span { font-size: 11.5px; color: var(--ink-3); opacity: 1; }
.sq { grid-area: sq; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.sq i { display: block; height: 7px; border-radius: 1px; background: rgba(35, 40, 31, .1); }
.sq i.on { background: var(--forest); }
.sq i.mod { background: repeating-linear-gradient(135deg, #C08A2C 0 2px, #E8C77F 2px 4px); }
.sq i.blk { background: repeating-linear-gradient(45deg, #7C8288 0 2px, #C9CDD0 2px 4px); }
.stage.dusk .sq i { background: rgba(255, 255, 255, .12); } .stage.dusk .sq i.mod { background: repeating-linear-gradient(135deg, #8CC3DE 0 2px, #3E6F86 2px 4px); } .stage.dusk .sq i.on { background: #FFC46B; box-shadow: 0 0 5px rgba(255, 196, 107, .6); }
.day .d2 { grid-area: d2; font-size: 12px; color: var(--ink-3); opacity: 1; }
.day .d2 b { font: 600 15px/1 var(--display); color: inherit; }
.day[aria-checked='true'] .d2, .stage.dusk .day .d2 b { color: inherit; }
.day .hkv { grid-area: hk; justify-self: end; font-size: 12px; font-weight: 700; }
.day.ok .hkv { color: var(--positive); } .day.zero .hkv, .day.over .hkv { color: var(--rust); }
.stage.dusk .day.ok .hkv { color: #7FDCAA; } .stage.dusk .day.zero .hkv, .stage.dusk .day.over .hkv { color: #FF9C8E; }
.day.over { border-color: rgba(163, 63, 39, .55); }

/* other floating items */
.stage-hint { right: 12px; bottom: auto; top: 12px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); }
.stage-note { left: auto; right: 12px; top: 64px; }
.stage-note:not(:empty) { padding: 10px 12px; }
.unit-card { left: auto; right: 12px; top: 64px; bottom: auto; width: 320px; padding: 14px 16px; }
.unit-card:not([hidden]) ~ .stage-hint { display: none; }
.zone-label b { font-family: var(--display); font-weight: 600; }
.zone-label span { display: none; }
.zone-label em { display: inline-block; margin-top: 3px; font: 600 11.5px/1 'Public Sans', sans-serif; font-style: normal; color: #fff; background: var(--forest); padding: 3px 6px; border-radius: 3px; }
.stage.dusk .zone-label em { background: #FFC46B; color: #1C1204; }

/* below the fold: summary line + three panels */
.lede { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); max-width: 110ch; }
.workspace { grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { border-radius: 6px; border-color: var(--line-2); box-shadow: none; }
.panel-head h2 { display: inline-block; font: 600 15px/1.2 var(--display); letter-spacing: .02em; background: var(--timber); color: #F6EEDD; padding: 5px 11px 4px; border-radius: 3px; box-shadow: inset 0 0 0 1px #3E2A17, inset 0 -2px 0 rgba(0, 0, 0, .18); }
#capChart svg, #revChart svg { max-width: 460px; }
.section-head h2, .opt h4, .verdict h4, .dlg h2, .def h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
.planner, .watch { border-radius: 6px; }

@media (max-width: 1360px) { .workspace { grid-template-columns: 290px minmax(0, 1fr); } .revenue { grid-column: 2; } }
@media (max-width: 1640px) { .scope { display: none; } }
@media (max-width: 1100px) { .deck { display: none; } }
@media (max-width: 900px) {
  :root { --top-h: auto; }
  .topbar { grid-template-columns: 1fr auto; height: auto; padding: 8px 14px; row-gap: 4px; }
  .headline { grid-column: 1 / -1; grid-row: 2; flex-direction: column; gap: 2px; }
  .headline h1 { white-space: normal; font-size: 20px; }
  .deck { display: block; white-space: normal; font-size: 13px; }
  .synthetic { display: none; }
  main { padding: 10px 12px 32px; }
  .stage { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .scene-host, .map-host { position: relative; inset: auto; height: 420px; flex: none; order: 0; }
  .g-rail { position: static; order: 1; margin: 0 8px 8px; }
  .g-kpis { position: static; order: 2; width: auto; margin: 0 8px 8px; }
  .stage-note { order: 3; position: static; margin: 0 8px 8px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .revenue { grid-column: auto; }
  .stage-hint { display: none; }
  .unit-card { position: static; order: 1; width: auto; margin: 0 8px 8px; }
}
@media (max-width: 760px) {
  #camGroup { display: none; }
  .g-tools { right: 12px; }
  .rail-top { grid-template-columns: 1fr auto; } .rail-top .mini-h { display: none; }
  .rail-bracket { font-size: 12px; }
  .day-strip { gap: 3px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .day { grid-template-columns: 1fr; grid-template-areas: 'd1' 'sq' 'd2' 'hk'; padding: 6px 4px; justify-items: center; gap: 4px; }
  .day .d1 span, .day .d2 .of { display: none; }
  .sq { grid-template-columns: repeat(5, 1fr); width: 100%; } .sq i { height: 4px; }
  .day .hkv { justify-self: center; font-size: 11px; }
  .zone-label span { display: none; }
}
/* measured target sizes and contrast fixes */
.seg-btn { min-height: 44px; }
.icon-btn { width: 44px; height: 44px; }
.btn.ghost { min-height: 44px; }
.skip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; top: -70px; }
.kpi.lead .kpi-tag.modeled { color: #6B4A0F; background: #F1E2BF; }
.stage.dusk .kpi.lead .kpi-tag.modeled { color: #2A1C04; background: #F1D59A; }
.unit-table .ubtn { box-sizing: border-box; min-width: 52px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.unit-table th, .unit-table td { vertical-align: middle; }
.speed select { min-height: 44px; }
@media (pointer: coarse) { .matrix .rowh { pointer-events: none; } }
.dlg-x { width: 44px; height: 44px; }
/* site port: the skip link shows below the OpsWorq concept bar */
.skip:focus{top:calc(var(--owb,40px) + 8px);z-index:2147483001}
