/* deck.css — minimal case-deck layer on top of styles.css (charul-design.css, unchanged) */

/* Local fonts (offline) */
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --q-accel: var(--accent);
  --q-invest: var(--fill);
  --q-quick: var(--cat-credit);
  --q-depri: #7A828E;
  --amber-text: #8A5A12;
}

html, body { height: 100%; }
body { overflow: hidden; }
.metric__label { font-size: 0.8125rem; }
.metric__note { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Shell ---- */
/* Floating black nav card */
.navcard {
  position: fixed; top: 1.25rem; left: 1.25rem; z-index: 10; width: 200px;
  max-height: calc(100vh - 2.5rem); overflow-y: auto;
  display: flex; flex-direction: column;
  background: #111418; color: rgba(255,255,255,0.62);
  border-radius: 14px; padding: 1rem 0.6rem 0.6rem;
  box-shadow: 0 12px 32px rgba(17,20,24,0.22), 0 2px 6px rgba(17,20,24,0.12);
}
.navcard__client { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: #fff; padding: 0 0.6rem 0.75rem; line-height: 1.25; }
.navcard__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.navcard__list button {
  display: flex; align-items: center; gap: 0.55rem; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer; border-radius: 8px;
  padding: 0.42rem 0.6rem; font: inherit; font-size: 0.9rem; color: inherit;
}
.navcard__list button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: transparent; flex: none; }
.navcard__list button:hover { color: #fff; background: rgba(255,255,255,0.06); }
.navcard__list button.active { color: #fff; background: rgba(255,255,255,0.1); font-weight: 600; }
.navcard__list button.active::before { background: #47BEB0; }
.navcard__foot { display: flex; align-items: center; gap: 0.1rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.1); }
.navcard__foot button { border: 0; background: none; cursor: pointer; color: #fff; font-size: 1rem; padding: 0.2rem 0.5rem; border-radius: 6px; }
.navcard__foot button:hover { background: rgba(255,255,255,0.08); }
.navcard__foot button:disabled { opacity: 0.3; cursor: default; }
.navcard__foot #fs { margin-left: auto; }
.navcard__foot .count { font-family: var(--mono); font-size: 0.8rem; min-width: 3.4rem; text-align: center; }
.stage { height: 100vh; overflow-y: auto; padding-left: 232px; }
.screen { display: none; max-width: 1120px; margin: 0 auto; padding: 2.25rem 2.5rem 4rem; }
.screen.active { display: block; }

/* ---- Type ---- */
.deck-h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 2.5vw, 2.35rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 34ch; margin: 0 0 1.5rem; }
.deck-h1 em { font-style: normal; color: var(--accent); }
.sublabel { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 0.35rem; }
.small { font-size: 0.92rem; color: var(--ink-soft); }
.blank { border-bottom: 2px solid var(--accent); }
.blank--empty { color: var(--amber-text); border-bottom: 2px dashed var(--fill); }
.src { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.src.assume::before { content: "Assumption: "; color: var(--amber-text); }
.missing { color: var(--amber-text); }

/* ---- Plain sections: hairlines, no boxes ---- */
.sec { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.sec p { margin: 0; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; }
.mt { margin-top: 1.75rem; }
ul.plain, ol.plain { margin: 0; padding-left: 1.15rem; }
ul.plain li, ol.plain li { margin-bottom: 0.3rem; }
.line { margin: 0.4rem 0 0; }
.line b { font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th { text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--line-strong); }
.tbl td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.strong { font-weight: 600; }

.screen-error { margin: 1rem 0; }
.fatal { max-width: 40rem; margin: 20vh auto; padding: 0 2rem; }

/* ---- Pitch ---- */
.pitch-lines { font-size: 1.25rem; line-height: 1.75; margin: 0 0 2rem; max-width: 60rem; }

/* ---- Inventory calls ---- */
.call { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; background: none; cursor: pointer; font: inherit; font-size: 0.92rem; padding: 0; color: var(--ink); white-space: nowrap; }
.call::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dotc, var(--ink)); }
.call:hover { text-decoration: underline; }
.call--continue { --dotc: var(--positive); } .call--edit { --dotc: var(--fill); } .call--merge { --dotc: var(--cat-credit); }
.call--stop { --dotc: var(--negative); } .call--start { --dotc: var(--accent); }
.tally { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.7rem; }

/* ---- Grid ---- */
.grid-wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr); gap: 2rem; align-items: start; }
.grid-svg { width: 100%; height: auto; display: block; }
.grid-svg .qname { font-family: var(--body); font-size: 12.5px; font-weight: 600; }
.grid-svg .axis { font-family: var(--body); font-size: 13px; fill: var(--ink-soft); }
.grid-svg .tick { font-family: var(--mono); font-size: 11px; fill: var(--ink-soft); }
.grid-svg .lbl { font-family: var(--body); font-size: 13px; fill: var(--ink); pointer-events: none; }
.grid-svg .lbl.pick { font-weight: 700; }
.grid-svg .dot { cursor: pointer; }
.grid-svg .dot:hover { stroke: var(--ink); stroke-width: 2; }
.grid-svg .sel-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.grid-svg .pick-ring { fill: none; stroke-width: 2; }
.qtag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.qtag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--qc, var(--ink)); }
.detail { padding-top: 0.2rem; }
.detail h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0.4rem 0 0.25rem; }
.detail .scores { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.detail p { margin: 0 0 0.5rem; }
.detail .rule { font-size: 0.92rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.8rem; }

/* ---- Outcome ---- */
.outcome-sentence { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.5; max-width: 34ch; margin: 0 0 0.4rem; }
.bars { display: grid; grid-template-columns: 5rem 1fr; gap: 0.5rem 1rem; align-items: center; max-width: 720px; margin: 1.5rem 0 2rem; }
.bars .bl { font-size: 0.85rem; color: var(--ink-soft); }
.bar { height: 22px; border-radius: 3px; display: flex; align-items: center; padding: 0 0.5rem; font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; min-width: 3rem; }
.bar--base { background: var(--line-strong); color: var(--ink); }
.bar--target { background: var(--accent); color: #fff; }

/* ---- Workflow ---- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0 0.5rem; align-items: baseline; padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.step .who { font-size: 0.8rem; font-weight: 600; white-space: nowrap; color: var(--ink-soft); }
.step .who.ai-led { color: var(--ink); }
.step .who.ai-assisted { color: var(--accent); }
.step .note { grid-column: 2 / -1; font-size: 0.85rem; color: var(--ink-soft); }
.step .note.approve { color: var(--amber-text); }
.step.insertion { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.deleted s { color: var(--ink); }

/* ---- Readiness ---- */
.ready-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.ready-row { display: grid; grid-template-columns: 1fr 2.4rem; gap: 0.1rem 1rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.ready-row .gapline { grid-column: 1 / -1; font-size: 0.88rem; color: var(--ink-soft); }
.rate { width: 2.2rem; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; padding: 0.15rem 0; border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.rate--G { background: color-mix(in srgb, var(--positive) 18%, var(--surface)); color: #135440; }
.rate--Y { background: color-mix(in srgb, var(--fill) 25%, var(--surface)); color: #6B4510; }
.rate--R { background: color-mix(in srgb, var(--negative) 18%, var(--surface)); color: #7A1A14; }
.rate--U { background: none; color: var(--ink); border: 1px dashed var(--ink-soft); }
.verdict { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin: 0 0 1rem; padding-left: 0.8rem; border-left: 3px solid; }
.verdict--R { border-color: var(--negative); } .verdict--Y { border-color: var(--fill); } .verdict--G { border-color: var(--positive); }

/* ---- Economics ---- */
.econ { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.inp { display: grid; grid-template-columns: 1fr 8.5rem; gap: 0 1rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.inp label { font-size: 0.97rem; }
.inp input { width: 100%; font-family: var(--mono); font-size: 0.95rem; text-align: right; padding: 0.3rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.inp input:focus { outline: none; border-color: var(--accent); }
.slider { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); }
.slider input { width: 100%; accent-color: var(--accent); }
.roi { font-family: var(--mono); font-weight: 700; font-size: clamp(2.6rem, 4.5vw, 3.6rem); line-height: 1; display: inline-block; border-bottom: 4px solid var(--accent); padding-bottom: 0.1rem; margin: 0.2rem 0 1rem; }
.roi.neg { border-color: var(--negative); color: var(--negative); }
.lines { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lines td { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; font-family: var(--mono); }
.lines tr.info td { color: var(--ink-soft); }
.lines tr.total td { font-weight: 600; }
.lines tr.net td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; }

/* ---- Pilot ---- */
.dl { display: grid; grid-template-columns: 9rem 1fr; margin: 0; }
.dl dt, .dl dd { padding: 0.45rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl dt { font-weight: 600; font-size: 0.95rem; }
.decide h4 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.decide p { margin: 0; font-size: 0.95rem; }
.decide .c h4 { color: var(--positive); } .decide .v h4 { color: var(--amber-text); } .decide .s h4 { color: var(--negative); }

/* ---- Gantt ---- */
.g-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.6rem; font-size: 0.92rem; }
.g-meta b.over { color: var(--negative); }
.linkbtn { border: 0; background: none; cursor: pointer; font: inherit; font-size: 0.9rem; color: var(--accent); padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.gantt { --label-w: 220px; position: relative; border-top: 1px solid var(--line-strong); }
.g-row { display: grid; grid-template-columns: var(--label-w) 1fr; align-items: center; min-height: 30px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.g-label { padding: 0.15rem 0.75rem 0.15rem 0; font-size: 0.88rem; line-height: 1.2; }
.g-label .note { display: block; font-size: 0.78rem; font-weight: 600; color: var(--negative); }
.g-label .note.moved { color: var(--positive); }
.g-lane { border-bottom: 0; min-height: 26px; }
.g-lane .g-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); padding-top: 0.6rem; }
.g-track { position: relative; height: 30px; }
.g-ticks { min-height: 24px; }
.g-ticks .g-track { height: 24px; }
.tick-l { position: absolute; top: 5px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); transform: translateX(3px); white-space: nowrap; }
.g-grid { position: absolute; top: 0; bottom: 0; left: var(--label-w); right: 0; pointer-events: none; }
.g-grid .gl { position: absolute; top: 0; bottom: 0; border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.g-grid .mk { position: absolute; top: 0; bottom: 0; border-left: 1px dotted var(--ink-soft); }
.ph { position: absolute; top: 6px; height: 18px; border-radius: 3px; overflow: hidden; font-family: var(--mono); font-size: 0.7rem; line-height: 18px; padding: 0 0.35rem; white-space: nowrap; text-overflow: ellipsis; }
.ph--pilot { background: color-mix(in srgb, var(--accent) 45%, #fff); color: var(--ink); }
.ph--scale { background: var(--accent); color: #fff; }
.ph--work { background: var(--line-strong); color: var(--ink); }
.ph--adopt { background: #D9CDB0; color: var(--ink); }
.ph.ag { padding-left: 12px; }
.ph.moved { outline: 2px solid var(--positive); outline-offset: 1px; }
.ph.cancelled { background: var(--line); color: var(--ink-soft); text-decoration: line-through; outline: 1px dashed var(--ink-soft); }
.ph.past::after { content: " →"; }
.gate { position: absolute; top: 8px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: var(--ink); border: 2px solid var(--paper); cursor: pointer; z-index: 3; padding: 0; }
.gate:hover, .gate.sel { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.gate.dashed { background: var(--paper); border: 1.5px dashed var(--ink); cursor: default; }
.gate.d-stop { background: var(--negative); }
.gate.d-revise { background: var(--fill); }
.g-markers { position: relative; height: 2.4rem; margin-left: var(--label-w); }
.g-markers .ml { position: absolute; top: 0.3rem; transform: translateX(-50%); font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }
.g-markers .ml:nth-child(even) { top: 1.3rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.82rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend i { display: inline-block; width: 16px; height: 9px; border-radius: 2px; }
.gate-panel { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.gate-panel .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.7rem; }
.gate-panel h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.gp-btns { display: inline-flex; gap: 0.3rem; }
.gp-btns button { font: inherit; font-size: 0.85rem; padding: 0.2rem 0.65rem; border-radius: 4px; border: 1px solid var(--line-strong); background: none; cursor: pointer; color: var(--ink); }
.gp-btns button.on[data-d="continue"] { background: var(--positive); border-color: var(--positive); color: #fff; }
.gp-btns button.on[data-d="revise"] { background: var(--fill); border-color: var(--fill); color: #fff; }
.gp-btns button.on[data-d="stop"] { background: var(--negative); border-color: var(--negative); color: #fff; }
.consequence { margin: 0.8rem 0 0; font-weight: 600; }

/* ---- Rollout ---- */
.ladder { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ladder li { padding: 0.6rem 0.8rem 0.6rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.ladder li.current, .ladder li.target { color: var(--ink); font-weight: 600; }
.ladder .mark { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.ladder li.target .mark { color: var(--accent); }

/* ---- Decision ---- */
.points { margin: 0 0 1.5rem; padding-left: 1.3rem; font-size: 1.15rem; line-height: 1.5; max-width: 52rem; }
.points li { margin-bottom: 0.6rem; }
.ask { font-size: 1.15rem; font-weight: 600; max-width: 52rem; }

/* ---- Tooltip ---- */
.tip { position: fixed; z-index: 100; max-width: 320px; pointer-events: none; display: none; background: var(--ink); color: #fff; border-radius: 4px; padding: 0.5rem 0.65rem; font-size: 0.85rem; line-height: 1.45; }
