/* ============================================================================
   JJRGA Transformation Dashboard — executive design system
   Direction: enterprise, operational control. Deep navy chrome, warm neutral
   content surfaces, a single restrained brass accent. No gradients-as-decor,
   no rounded-card soup. Type and spacing do the work.
   ============================================================================ */

:root {
  /* ground + chrome */
  --ink:        #0E1C2F;   /* navy chrome (rail, top bar) */
  --ink-2:      #16293F;   /* raised navy (hover, active on dark) */
  --ink-3:      #1F3350;   /* deepest raised navy */
  --ink-line:   #27405C;   /* hairline on navy */

  /* content surfaces (warm neutral, chosen not defaulted) */
  --surface:    #F6F4EF;   /* page background, warm */
  --panel:      #FFFFFF;
  --panel-2:    #FBFAF6;   /* subtle raised */
  --tint:       #F3EEE3;   /* accent-adjacent fill */

  /* borders / lines, warm-biased greys */
  --line:       #E6E0D4;
  --line-soft:  #EFEAE0;
  --line-strong:#D8D0C0;

  /* ink on light */
  --text:       #1A2433;
  --text-2:     #56606F;
  --muted:      #8A93A1;

  /* single accent — brass */
  --accent:     #B3833A;
  --accent-deep:#8C6425;
  --accent-soft:#F0E6D3;

  /* status palette (semantic, separate from accent) */
  --s-planned:    #64748B;
  --s-progress:   #2563EB;
  --s-testing:    #D97706;
  --s-approval:   #7C3AED;
  --s-deployed:   #0D9488;
  --s-accepted:   #15803D;
  --s-blocked:    #DC2626;
  --s-deferred:   #9CA3AF;

  --radius:   10px;
  --radius-sm: 7px;
  --shadow:   0 1px 2px rgba(16,28,47,.04), 0 6px 20px rgba(16,28,47,.06);
  --shadow-lg:0 2px 4px rgba(16,28,47,.06), 0 18px 48px rgba(16,28,47,.12);

  --rail-w: 248px;
  --content-max: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* No overflow-x:hidden guard — wide content must scroll inside its OWN container
   (.table-scroll / .gantt) so real layout defects are never masked by clipping. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; color: var(--text); }
h1 { font-size: 2rem; line-height: 1.1; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* ---------------------------------------------------------------- layout -- */
.app { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }

/* left rail */
.rail {
  background: var(--ink); color: #cdd7e4;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid #0a1524;
}
.rail__brand { padding: 22px 22px 18px; border-bottom: 1px solid var(--ink-line); }
.rail__client {
  font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.rail__mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.rail__sub { font-size: .72rem; color: #8294AB; margin-top: 6px; letter-spacing: .02em; }
.rail__nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.navitem {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: #aeb9c7; background: none; border: none; width: 100%; text-align: left;
  font-size: .9rem; font-weight: 500; transition: background .12s, color .12s;
}
.navitem:hover { background: var(--ink-2); color: #e7edf4; }
.navitem.is-active { background: var(--ink-2); color: #fff; }
.navitem.is-active .navitem__dot { background: var(--accent); }
.navitem__dot { width: 7px; height: 7px; border-radius: 50%; background: #3C567A; flex: none; }
.navitem__n { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: #64789a; }
.rail__foot { padding: 14px 22px 18px; border-top: 1px solid var(--ink-line); font-size: .72rem; color: #7f90a6; }
.rail__foot strong { color: #c6d1df; font-weight: 600; }

/* content */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: none; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30;
}
.topbar__title { font-weight: 650; }
.hamburger { background: var(--ink-2); border: 1px solid var(--ink-line); color: #fff; border-radius: 8px; padding: 8px 10px; }

.view { padding: 34px 40px 72px; max-width: var(--content-max); width: 100%; margin: 0 auto; }
.view[hidden] { display: none; }
.view__head { margin-bottom: 24px; }
.view__title { margin-top: 6px; }
.view__lede { color: var(--text-2); max-width: 70ch; margin-top: 8px; }

/* ---------------------------------------------------------------- panels -- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel__pad { padding: 22px 24px; }
.grid { display: grid; gap: 18px; }

/* ------------------------------------------------------- executive overview */
.ov-hero {
  background: var(--ink); color: #eef3f8; border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.ov-hero__eyebrow { color: #93a6bf; overflow-wrap: anywhere; }
.ov-hero__obj { color: #fff; font-size: 1.62rem; line-height: 1.22; margin-top: 12px; max-width: 30ch; }
.ov-hero__meta { display: flex; flex-wrap: wrap; gap: 20px 26px; margin-top: 24px; }
.ov-stat { min-width: 0; flex: 1 1 200px; }
.ov-stat__v { overflow-wrap: anywhere; }
.ov-stat__k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8599b2; }
.ov-stat__v { font-size: 1.08rem; font-weight: 600; color: #fff; margin-top: 3px; }
.ov-stat__v small { font-weight: 500; color: #a9b8cc; font-size: .8rem; }

.ov-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 18px; margin-top: 18px; }
.ov-progress { display: flex; align-items: center; gap: 22px; }
.ring { --p: 0; width: 104px; height: 104px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring__txt { position: absolute; inset: 0; display: grid; place-items: center; }
.ring__pct { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ring__lbl { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); margin-top: -7px; }
.prog-note { font-size: .86rem; color: var(--text-2); }

/* 3-month band */
.band { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.band__card {
  text-align: left; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 16px 18px; transition: box-shadow .14s, transform .14s, border-color .14s;
}
.band__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.band__mo { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.band__phase { font-weight: 650; margin-top: 8px; font-size: 1.02rem; }
.band__obj { color: var(--text-2); font-size: .86rem; margin-top: 7px; }
.band__weeks { margin-top: 12px; font-size: .74rem; color: var(--muted); font-family: var(--mono); }

/* attention + accomplishments columns */
.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.attn-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.attn-item:first-child { border-top: none; }
.attn-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--s-approval); }
.attn-item__t { font-weight: 550; font-size: .92rem; }
.attn-item__m { color: var(--text-2); font-size: .82rem; margin-top: 2px; }
.attn-item__due { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 20px; color: var(--text-2); font-size: .88rem; background: var(--panel-2);
}
.empty strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------- roadmap gantt */
.rm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

/* --- 90-Day Roadmap: month-band timeline (readable, no cramped single row) --- */
.rm-timeline { display: flex; flex-direction: column; gap: 16px; }
.rm-month { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.rm-month__bar { background: var(--ink); color: #fff; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rm-month__name { font-weight: 650; font-size: 1.1rem; }
.rm-month__phase { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.rm-month__obj { color: #b9c6d6; font-size: .84rem; max-width: 56ch; text-align: right; line-height: 1.5; }
.rm-weeks { display: flex; gap: 12px; padding: 16px; }
.rm-wk { flex: 1 1 0; min-width: 0; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--sc); border-radius: var(--radius-sm); padding: 13px 14px 12px; display: flex; flex-direction: column; gap: 9px; transition: box-shadow .14s, transform .12s, border-color .14s; }
.rm-wk:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.rm-wk__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rm-wk__n { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rm-wk__head .chip { font-size: .64rem; padding: 2px 7px; }
.rm-wk__title { font-weight: 600; font-size: .92rem; line-height: 1.32; }
.rm-wk__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 2px; }
.rm-wk__range { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.rm-wk__pct { font-size: .74rem; font-weight: 700; color: var(--accent-deep); }
.rm-month__outcome { border-top: 1px solid var(--line-soft); padding: 12px 20px; font-size: .84rem; color: var(--text-2); background: var(--panel-2); }
.rm-month__outcome .eyebrow { color: var(--accent-deep); margin-right: 8px; }
/* compact view: drop month objective/outcome + week range, keep the plan skimmable */
.rm-timeline.is-compact .rm-month__obj, .rm-timeline.is-compact .rm-month__outcome, .rm-timeline.is-compact .rm-wk__range { display: none; }
@media (max-width: 860px) {
  .rm-month__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rm-month__obj { text-align: left; }
  .rm-weeks { flex-wrap: wrap; }
  .rm-wk { flex: 1 1 150px; }
}
@media (max-width: 520px) { .rm-wk { flex: 1 1 100%; } }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px; font-size: .82rem; color: var(--text-2); font-weight: 500;
}
.toggle input { accent-color: var(--accent); }

.gantt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 6px 16px; box-shadow: var(--shadow); overflow-x: auto; }
.gantt__inner { min-width: 900px; }
.gantt__months { display: grid; grid-template-columns: repeat(14, minmax(0,1fr)); gap: 6px; padding: 8px 12px 10px; }
.gantt__mo { border-radius: 6px 6px 0 0; padding: 9px 14px; color: #fff; font-weight: 600; font-size: .9rem; display:flex; flex-direction: column; align-items:flex-start; gap: 3px; min-width: 0; }
.gantt__mo .eyebrow { color: rgba(255,255,255,.66); font-size: .62rem; }
.gantt__row { display: grid; grid-template-columns: repeat(14, minmax(0,1fr)); gap: 6px; padding: 4px 12px; }
.wk {
  text-align: left; border: 1px solid var(--line); background: var(--panel-2); border-radius: 7px;
  padding: 10px 10px 14px; min-height: 92px; transition: box-shadow .14s, transform .12s, border-color .14s;
  position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
}
.wk:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.wk.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wk__n { font-family: var(--mono); font-size: .66rem; color: var(--muted); letter-spacing: .06em; }
.wk__obj { font-size: .78rem; font-weight: 550; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.wk__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wk__range { font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.wk__status-bar { height: 4px; border-radius: 3px; width: 100%; position: absolute; left: 0; bottom: 0; border-radius: 0 0 7px 7px; }

/* presentation mode: calmer, fewer details */
.gantt.is-present .wk { min-height: 70px; }
.gantt.is-present .wk__range { display: none; }

/* status chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; line-height: 1.4; white-space: nowrap;
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; }

/* ------------------------------------------------------------- week detail */
.wd { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.wk-list { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; }
.wk-list__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; text-align: left; width: 100%;
}
.wk-list__item:hover { background: var(--tint); }
.wk-list__item.is-active { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.wk-list__n { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.wk-list__t { font-size: .84rem; font-weight: 500; line-height: 1.25; }
.wk-list__mo { font-family: var(--mono); font-size: .6rem; letter-spacing:.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; padding-left: 12px; }
.wk-list__mo:first-child { margin-top: 0; }

.detail__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail__range { font-family: var(--mono); font-size: .76rem; color: var(--accent-deep); letter-spacing: .04em; }
.detail__obj { margin-top: 4px; }
.detail__summary { color: var(--text-2); margin-top: 10px; max-width: 72ch; }
.outcome {
  margin-top: 16px; background: var(--tint); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.outcome .eyebrow { color: var(--accent-deep); }
.outcome p { margin-top: 5px; font-size: .92rem; }

.section-label { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; }
.section-label h4 { font-size: .82rem; letter-spacing: .04em; }
.section-label .count { font-family: var(--mono); font-size: .7rem; color: var(--muted); }

.deliv { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--panel); overflow: hidden; }
.deliv__head { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: none; border: none; width: 100%; text-align: left; }
.deliv__head:hover { background: var(--panel-2); }
.deliv__chev { color: var(--muted); transition: transform .16s; font-size: .8rem; }
.deliv.is-open .deliv__chev { transform: rotate(90deg); }
.deliv__t { font-weight: 550; font-size: .92rem; flex: 1; }
.deliv__body { padding: 0 15px 15px 39px; display: none; }
.deliv.is-open .deliv__body { display: block; }
/* (old flat-subgoal list markers removed in v2 — subgoals now render via .sg) */

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.meta-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--panel-2); }
.meta-box h4 { font-size: .78rem; letter-spacing: .03em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.meta-box ul li { padding: 4px 0 4px 16px; position: relative; font-size: .86rem; color: var(--text-2); }
.meta-box ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.callout-note { border-left: 3px solid var(--s-testing); background: #FDF7EC; }
.callout-note li::before { background: var(--s-testing); }
.mgmt-note { border-left: 3px solid var(--s-approval); background: #F6F2FC; }
.mgmt-note li::before { background: var(--s-approval); }

/* ------------------------------------------------------------- progress view */
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 20px; }
.legend .chip { background: var(--panel); border: 1px solid var(--line); }
.tracks { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.track { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--panel); box-shadow: var(--shadow); }
.track__v { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.track__k { font-size: .82rem; color: var(--text-2); margin-top: 2px; }
.track__sub { font-size: .72rem; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.pboard { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pboard th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--mono); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.pboard td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.pboard tr:hover td { background: var(--panel-2); }
.pboard__wk { font-family: var(--mono); color: var(--muted); font-size: .76rem; }

/* ------------------------------------------------------------- impact table */
.impact { width: 100%; border-collapse: collapse; font-size: .88rem; }
.impact th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-family: var(--mono); padding: 11px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.impact td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.impact tr:hover td { background: var(--panel-2); }
.impact .m { font-weight: 550; color: var(--text); }
.pending { color: var(--muted); font-style: italic; }
.src { font-size: .78rem; color: var(--text-2); }

.calc { margin-top: 22px; }
.calc__row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.calc__row:first-of-type { border-top: none; }
.calc input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-family: var(--mono); text-align: right; font-size: .9rem; }
.calc__out { margin-top: 16px; background: var(--tint); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 16px; }
.calc__big { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; color: var(--accent-deep); }
.disclaimer { font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------------- decisions */
.dec { border: 1px solid var(--line); border-left: 3px solid var(--s-approval); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; background: var(--panel); box-shadow: var(--shadow); }
.dec__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dec__t { font-weight: 600; font-size: 1rem; min-width: 0; flex: 1 1 180px; }
.dec__ctx { color: var(--text-2); font-size: .88rem; margin-top: 6px; max-width: 72ch; }
.dec__meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.dec__meta div span { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.dec__meta div strong { font-weight: 550; font-size: .86rem; }

/* ------------------------------------------------------------- reports */
.rpt-schema { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rpt-field { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--panel-2); }
.rpt-field .eyebrow { color: var(--accent-deep); }
.rpt-field p { font-size: .82rem; color: var(--muted); margin-top: 5px; }

/* footer note */
.phase-note {
  margin: 30px auto 0; max-width: var(--content-max);
  font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: center;
  padding: 0 40px;
}
.badge-proto { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #e2d2b0; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }

/* scrim for mobile nav */
.scrim { display: none; position: fixed; inset: 0; background: rgba(10,18,30,.5); z-index: 25; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .topbar { display: flex; }
  .rail {
    position: fixed; left: 0; top: 0; z-index: 40; width: 272px; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .app.nav-open .rail { transform: translateX(0); }
  .app.nav-open .scrim { display: block; }
  .view { padding: 22px 18px 60px; }
  .ov-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .wd { grid-template-columns: 1fr; }
  .wk-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .wk-list__mo { display: none; }
  .wk-list__item { min-width: 190px; }
  .tracks { grid-template-columns: 1fr 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .rpt-schema { grid-template-columns: 1fr; }
  .phase-note { padding: 0 18px; }
}
@media (max-width: 560px) {
  .tracks { grid-template-columns: 1fr; }
  .ov-hero__obj { font-size: 1.3rem; }
  h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ============================================================================
   PHASE 2 — auth, buttons, admin editing, audit, presentation mode
   ============================================================================ */

/* ---------- buttons ---------- */
.btn { border: 1px solid var(--line-strong); background: var(--panel); color: var(--text);
  padding: 9px 15px; border-radius: 8px; font-size: .88rem; font-weight: 600; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: #cdd7e4; border-color: var(--ink-line); }
.btn--ghost:hover { background: var(--ink-2); border-color: var(--accent); color: #fff; }
.btn--tiny { padding: 5px 10px; font-size: .74rem; border-radius: 6px; }
.btn--block { width: 100%; }
.btn--danger { color: var(--s-blocked); border-color: #efc7c7; }
.btn--danger:hover { background: #fdeeee; border-color: var(--s-blocked); }
.linkbtn { background: none; border: none; color: var(--accent-deep); font-size: .78rem; font-weight: 600; padding: 0; text-decoration: underline; }
.linkbtn:hover { color: var(--accent); }

/* ---------- login ---------- */
.login { position: fixed; inset: 0; background: var(--ink); display: grid; place-items: center; padding: 24px; z-index: 100; }
.login[hidden] { display: none; }
.login__card { width: 100%; max-width: 400px; background: var(--panel); border-radius: 14px; padding: 30px 30px 24px; box-shadow: var(--shadow-lg); }
.login__brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; }
.login__sub { color: var(--text-2); font-size: .84rem; margin-top: 6px; }
.login__roles { display: grid; gap: 10px; margin: 22px 0 18px; }
.role-opt { text-align: left; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; transition: border-color .12s, background .12s; }
.role-opt:hover { border-color: var(--line-strong); }
.role-opt.is-active { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 2px var(--accent-soft); }
.role-opt__t { font-weight: 650; font-size: .95rem; }
.role-opt__d { font-size: .8rem; color: var(--text-2); }
.login__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.login__input { width: 100%; margin: 7px 0 14px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: .95rem; }
.login__input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.login__go { width: 100%; padding: 12px; font-size: .95rem; }
.login__err { margin-top: 12px; background: #fdeeee; border: 1px solid #efc7c7; color: var(--s-blocked); border-radius: 8px; padding: 10px 12px; font-size: .84rem; }
.login__err[hidden] { display: none; }
.login__note { margin-top: 18px; text-align: center; font-size: .72rem; color: var(--muted); }

/* ---------- rail actions / role ---------- */
.rail__actions { padding: 10px 14px; border-top: 1px solid var(--ink-line); display: flex; flex-direction: column; gap: 8px; }
.rail__admin { display: flex; gap: 8px; }
.rail__admin .btn--tiny { flex: 1; background: var(--ink-2); color: #cdd7e4; border-color: var(--ink-line); }
.rail__admin .btn--tiny:hover { border-color: var(--accent); color: #fff; }
.rail__role { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.role-badge { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ink-2); color: #9fb0c6; border: 1px solid var(--ink-line); }
.role-badge.is-admin { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- admin editing affordances ---------- */
.admin-only { display: none; }
.is-admin-mode .admin-only { display: inline-flex; }
.edit-btn { background: var(--tint); border: 1px solid var(--line); color: var(--accent-deep); border-radius: 7px; padding: 5px 11px; font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.edit-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.detail__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-select { font-size: .76rem; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 8px; background: var(--panel); color: var(--text); }
.add-row { margin-bottom: 14px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,18,30,.55); display: grid; place-items: start center; z-index: 90; padding: 28px 16px; overflow-y: auto; }
.modal__card { width: 100%; max-width: 720px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); margin-bottom: 40px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); border-radius: 14px 14px 0 0; z-index: 2; }
.modal__title { font-weight: 650; font-size: 1.05rem; }
.modal__x { background: none; border: none; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.modal__body { padding: 20px 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); border-radius: 0 0 14px 14px; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: .9rem; font-family: var(--sans); background: var(--panel); }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field__hint { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.list-hint { font-size: .74rem; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }

/* ---------- audit view ---------- */
.audit-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.audit-row:first-child { border-top: none; }
.audit-ts { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.audit-what strong { font-weight: 650; }
.audit-change { font-size: .84rem; color: var(--text-2); margin-top: 3px; }
.audit-change .old { color: var(--s-blocked); text-decoration: line-through; opacity: .8; }
.audit-change .new { color: var(--s-accepted); font-weight: 600; }
.audit-sig { display: inline-block; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; margin-left: 8px; }

/* evidence + report admin bits */
.evidence-item { display: flex; gap: 8px; align-items: center; font-size: .86rem; padding: 4px 0; }
.evidence-item a { color: var(--accent-deep); }
.rpt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; background: var(--panel); box-shadow: var(--shadow); }
.rpt-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rpt-card h3 { font-size: 1.02rem; }
.rpt-block { margin-top: 10px; }
.rpt-block .eyebrow { color: var(--accent-deep); }
.rpt-block p { font-size: .88rem; color: var(--text-2); margin-top: 3px; white-space: pre-wrap; }

/* overview: expandable technical detail */
.expander { margin-top: 10px; }
.expander > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--accent-deep); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.expander > summary::-webkit-details-marker { display: none; }
.expander > summary::before { content: "▸"; transition: transform .15s; }
.expander[open] > summary::before { transform: rotate(90deg); }

/* ---------- responsibility chips + progress bars ---------- */
.resp-chip { display: inline-flex; align-items: center; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; letter-spacing: .01em; }
.progress-pill { display: inline-flex; align-items: center; gap: 7px; }
.progmini { width: 58px; height: 6px; border-radius: 999px; background: #E7E1D4; overflow: hidden; display: inline-block; }
.progmini__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.progmini__n { font-size: .72rem; font-weight: 600; color: var(--text-2); min-width: 30px; }
.resp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; font-size: .78rem; color: var(--text-2); }
.resp-legend__l { margin-left: -10px; margin-right: 4px; }

/* ---------- rich deliverable cards ---------- */
.deliv--rich .deliv__head { display: flex; align-items: flex-start; gap: 10px 12px; padding: 14px 16px; cursor: pointer; flex-wrap: wrap; }
.deliv--rich .deliv__head:hover { background: var(--panel-2); }
.deliv--rich .deliv__chev { color: var(--muted); transition: transform .16s; margin-top: 2px; font-size: .8rem; flex: none; }
.deliv--rich.is-open .deliv__chev { transform: rotate(90deg); }
.deliv__main { flex: 1 1 180px; min-width: 0; }
.deliv--rich .deliv__t { font-weight: 650; font-size: .96rem; }
.deliv__benefit { color: var(--text-2); font-size: .84rem; margin-top: 3px; }
.deliv__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; min-width: 0; }
.deliv--rich .deliv__body { padding: 4px 16px 18px 42px; display: none; }
.deliv--rich.is-open .deliv__body { display: block; }
.subgoals { display: flex; flex-direction: column; gap: 2px; }
.sg { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.sg:first-child { border-top: none; }
.sg__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative; top: 2px; }
.sg__text { flex: 1; min-width: 0; color: var(--text); }
.sg__status { font-size: .72rem; font-weight: 600; white-space: nowrap; }
.deliv-sub { margin-top: 14px; }
.deliv-sub ul.plain { margin-top: 4px; }
.deliv-sub ul.plain li { font-size: .84rem; color: var(--text-2); padding: 2px 0 2px 14px; position: relative; }
.deliv-sub ul.plain li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.deliv-acc { background: #F2F8F3; border: 1px solid var(--line); border-left: 3px solid var(--s-accepted); border-radius: var(--radius-sm); padding: 10px 14px; }
.deliv-acc p { font-size: .86rem; margin-top: 3px; }

/* ---------- subgoal editor rows ---------- */
.sg-edit { display: grid; grid-template-columns: 1fr 130px 150px 32px; gap: 8px; margin-bottom: 7px; align-items: center; }
.sg-edit input, .sg-edit select { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: .84rem; font-family: var(--sans); }
.sg-edit__x { background: #fdeeee; border: 1px solid #efc7c7; color: var(--s-blocked); border-radius: 7px; font-size: 1rem; line-height: 1; }
@media (max-width: 620px) { .sg-edit { grid-template-columns: 1fr 1fr; } .sg-edit__text { grid-column: 1 / -1; } }

/* ============================================================================
   PRESENTATION MODE
   ============================================================================ */
.present { position: fixed; inset: 0; background: var(--ink); color: #eaf0f7; z-index: 110; display: flex; flex-direction: column; }
.present[hidden] { display: none; }
/* ---- header: compact keynote-player bar (~66px) ---- */
.present__top { flex: none; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--ink-line); }
.present__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.present__name { font-weight: 650; font-size: .95rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.present__cat { flex: none; font-family: var(--mono); font-size: .58rem; letter-spacing: .09em; text-transform: uppercase; color: #93a6bf; border: 1px solid var(--ink-line); background: var(--ink-2); padding: 3px 9px; border-radius: 999px; }
.present__actions { display: flex; align-items: center; gap: 8px; flex: none; position: relative; }
.pbtn { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: 8px; font-size: .82rem; font-weight: 500; font-family: var(--sans); border: 1px solid transparent; padding: 0 14px; color: #cdd7e4; background: transparent; cursor: pointer; transition: background .14s, border-color .14s, color .14s, filter .14s; }
.pbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbtn--ghost { border-color: var(--ink-line); background: var(--ink-2); }
.pbtn--ghost:hover { border-color: #3a5676; color: #fff; }
.pbtn--primary { background: var(--accent); color: #1b1205; font-weight: 650; border-color: var(--accent); }
.pbtn--primary:hover { filter: brightness(1.07); }
.pbtn--icon { width: 34px; padding: 0; color: #9fb0c6; }
.pbtn--icon:hover { background: var(--ink-2); color: #fff; }
.pbtn--icon svg { width: 16px; height: 16px; display: block; }
.pbtn--menu { display: none; }
.present__menu { position: absolute; top: 42px; right: 0; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 186px; box-shadow: var(--shadow-lg); z-index: 20; }
.present__menu[hidden] { display: none; }
.present__menu button { text-align: left; background: none; border: none; color: #cdd7e4; padding: 9px 12px; border-radius: 7px; font-size: .84rem; cursor: pointer; }
.present__menu button:hover { background: var(--ink-3); color: #fff; }
.present__body { flex: 1; display: grid; grid-template-columns: 240px 1fr; min-height: 0; }
.present__chapters { border-right: 1px solid var(--ink-line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.chapnav { text-align: left; background: none; border: none; color: #9fb0c6; padding: 11px 13px; border-radius: 9px; display: flex; gap: 11px; align-items: center; font-size: .86rem; transition: background .12s, color .12s; }
.chapnav:hover { background: var(--ink-2); color: #e7edf4; }
.chapnav.is-active { background: var(--ink-2); color: #fff; }
.chapnav__n { font-family: var(--mono); font-size: .72rem; color: var(--accent); width: 18px; }
.chapnav.is-active .chapnav__n { color: var(--accent); }
.present__stage { position: relative; overflow: hidden; display: flex; }
.stage-slide { position: absolute; inset: 0; padding: 40px 56px; display: flex; flex-direction: column; justify-content: flex-start; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; overflow-y: auto; }
.stage-slide.is-current { opacity: 1; transform: translateY(0); pointer-events: auto; }
.stage-slide__eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.stage-slide__title { font-size: 2.3rem; line-height: 1.1; margin-top: 12px; max-width: 20ch; color: #fff; letter-spacing: -.02em; }
.stage-slide__lede { color: #b9c6d6; font-size: 1.05rem; margin-top: 16px; max-width: 54ch; line-height: 1.55; }
.stage-points { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }
.stage-point { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: #d7e0ea; }
.stage-point__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.stage-weeks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stage-week { border: 1px solid var(--ink-line); background: var(--ink-2); border-radius: 8px; padding: 9px 12px; font-size: .78rem; min-width: 120px; }
.stage-week__n { font-family: var(--mono); font-size: .64rem; color: var(--accent); }
.present__bar { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--ink-line); }
.present__btn { background: var(--ink-2); border: 1px solid var(--ink-line); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1rem; display: grid; place-items: center; }
.present__btn:hover { border-color: var(--accent); }
.present__btn--play { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.present__progress { flex: 1; height: 6px; background: var(--ink-2); border-radius: 999px; position: relative; cursor: pointer; }
.present__progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; width: 0; }
.present__time { font-family: var(--mono); font-size: .74rem; color: #9fb0c6; min-width: 92px; text-align: right; }
.present__transcript { background: var(--ink-2); border-top: 1px solid var(--ink-line); padding: 0 26px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.present__transcript.is-open { max-height: 200px; padding: 16px 26px; overflow-y: auto; }
.present__transcript p { color: #c6d2e0; font-size: .92rem; line-height: 1.6; max-width: 80ch; }
.present__narr-note { font-size: .72rem; color: #8498b0; margin-left: auto; }

@media (max-width: 760px) {
  .present__top { height: 58px; padding: 0 14px; gap: 10px; }
  .present__body { display: flex; flex-direction: column; min-height: 0; }
  .present__chapters { flex: 0 0 auto; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; border-right: none; border-bottom: 1px solid var(--ink-line); padding: 10px; }
  .chapnav { flex: 0 0 auto; min-width: 158px; }
  .present__stage { flex: 1; min-height: 0; }
  .stage-slide { padding: 24px 20px; justify-content: flex-start; }
  .stage-slide__title { font-size: 1.5rem; }
  .present__narr-note { display: none; }
  .present__timeline { min-width: 90px; }
  .field-2 { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================================
   PHASE 3A — presentation entry CTA + guided-scene visuals
   ============================================================================ */

/* Overview CTA (prominent entry point) */
.ov-cta { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 22px; padding: 16px 20px;
  background: var(--accent); border: none; border-radius: 12px; color: #1b1205; text-align: left; cursor: pointer;
  box-shadow: 0 8px 24px rgba(179,131,58,.35); transition: transform .14s, box-shadow .14s; }
.ov-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(179,131,58,.45); }
.ov-cta__play { width: 40px; height: 40px; border-radius: 50%; background: #1b1205; color: var(--accent); display: grid; place-items: center; font-size: 1rem; flex: none; }
.ov-cta__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ov-cta__text strong { font-size: 1.04rem; font-weight: 700; }
.ov-cta__text span { font-size: .84rem; opacity: .8; }
.ov-cta__arrow { font-size: 1.2rem; font-weight: 700; flex: none; }

/* subtle in-stage status key (moved out of the header) */
.stage-legend { position: absolute; left: 56px; bottom: 16px; z-index: 3; pointer-events: none; opacity: .5; }
.stage-legend .st-legend { gap: 14px; }
.stage-legend .st-chip { font-size: .56rem; color: #aebccd; }
.stage-legend .st-chip i { width: 8px; height: 8px; }
@media (max-width: 1000px) { .stage-legend { display: none; } }

/* header collapse: fold secondary nav into a menu on small screens */
@media (max-width: 680px) {
  .present__actions .pbtn--wide { display: none; }
  .present__actions .pbtn--menu { display: inline-flex; }
  .present__cat { display: none; }
  .stage-legend { display: none; }
}

/* seekable timeline + handle + chapter ticks */
.present__timeline { flex: 1; height: 8px; background: var(--ink-2); border-radius: 999px; position: relative; cursor: pointer; }
.present__progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; width: 0; }
.present__ticks span { position: absolute; top: -3px; width: 2px; height: 14px; background: rgba(255,255,255,.18); transform: translateX(-1px); }
.present__handle { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.present__cc-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8498b0; margin-bottom: 6px; }

/* stage visual wrapper */
.stage-visual { margin-top: 26px; }
.scene-eyebrow { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 22px 0 10px; }
.scene-flow { margin-bottom: 8px; }
.scene-note { margin-top: 18px; background: var(--ink-2); border: 1px solid var(--ink-line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 15px; color: #cbd6e3; font-size: .88rem; max-width: 72ch; }

/* current/proposed badges */
.cap-badge { display: inline-block; font-family: var(--mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.cap-now { background: rgba(13,148,136,.2); color: #5eddc9; border: 1px solid rgba(13,148,136,.5); }
.cap-prop { background: rgba(179,131,58,.18); color: #e0b878; border: 1px solid rgba(179,131,58,.45); }

/* flow diagram */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow__step { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 8px; padding: 9px 13px; font-size: .82rem; font-weight: 500; color: #e3eaf3; }
.flow__arrow { color: var(--accent); font-weight: 700; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pillar { background: var(--ink-2); border: 1px solid var(--ink-line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 16px 14px; animation: rise .5s ease both; animation-delay: var(--d); }
.pillar__n { font-family: var(--mono); color: var(--accent); font-size: .8rem; }
.pillar__t { font-weight: 650; margin-top: 6px; color: #fff; }
.pillar__d { font-size: .8rem; color: #a9b8cc; margin-top: 5px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* before / after */
.ba { display: flex; align-items: stretch; gap: 16px; }
.ba__col { flex: 1; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px; padding: 14px 16px; }
.ba__before { opacity: .82; }
.ba__after { border-color: rgba(179,131,58,.4); }
.ba__h { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #93a6bf; margin-bottom: 10px; }
.ba__item { font-size: .86rem; color: #cbd6e3; padding: 5px 0 5px 18px; position: relative; }
.ba__item::before { content: "–"; position: absolute; left: 2px; color: #6b7d94; }
.ba__item--good { color: #fff; }
.ba__item--good::before { content: "✓"; color: var(--accent); font-weight: 700; }
.ba__arrow { align-self: center; color: var(--accent); font-size: 1.5rem; font-weight: 700; }

/* owner-ops tiles */
.opc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opc__tile { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 9px; padding: 13px 14px; }
.opc__t { font-weight: 650; color: #fff; font-size: .9rem; }
.opc__d { font-size: .78rem; color: #a9b8cc; margin-top: 3px; }

/* accountability note + metric chips */
.acc-note { margin-top: 16px; background: var(--ink-2); border-left: 3px solid var(--s-accepted); border-radius: 8px; padding: 12px 15px; color: #d7e0ea; font-size: .92rem; }
.acc-note strong { color: #7ee0a0; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.metric-chip { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 999px; padding: 6px 12px; font-size: .78rem; color: #cbd6e3; }
.metric-chip em { color: #8498b0; font-style: normal; font-family: var(--mono); font-size: .68rem; margin-left: 4px; }

/* hub diagram */
.hub { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hub__spokes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hub__node { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 999px; padding: 9px 18px; font-size: .86rem; color: #e3eaf3; font-weight: 500; }
.hub__core { background: var(--accent); color: #1b1205; font-weight: 700; padding: 12px 26px; border-radius: 10px; font-size: 1.05rem; box-shadow: 0 8px 24px rgba(179,131,58,.3); }
.hub__out { color: #a9b8cc; font-size: .9rem; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .opc { grid-template-columns: 1fr 1fr; }
  .ba { flex-direction: column; }
  .ba__arrow { transform: rotate(90deg); }
  .present__top-actions .present__link { padding: 7px 9px; font-size: .74rem; }
}

/* ============================================================
   Phase 3B — two-deck presentations: cover, status, scenes
   ============================================================ */

/* status taxonomy badges + legend */
.st-badge { display: inline-block; font-family: var(--mono); font-size: .56rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; border: 1px solid transparent; }
.st-live    { background: rgba(13,148,136,.16);  color: #5ee3cf; border-color: rgba(13,148,136,.5); }
.st-proto   { background: rgba(217,119,6,.16);   color: #f2b872; border-color: rgba(217,119,6,.5); }
.st-planned { background: rgba(100,116,139,.18); color: #aebbcd; border-color: rgba(100,116,139,.5); }
.st-data    { background: rgba(91,141,214,.16);  color: #9cc0f0; border-color: rgba(91,141,214,.5); }
.st-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #9fb0c6; }
.st-chip i { width: 9px; height: 9px; border-radius: 3px; }
.st-chip.st-live i { background: #0D9488; } .st-chip.st-proto i { background: #D97706; }
.st-chip.st-planned i { background: #64748B; } .st-chip.st-data i { background: #5B8DD6; }
.present__top-actions .st-legend { margin-right: 4px; }

/* ---------- cover / chooser ---------- */
.cover { flex: 1; overflow-y: auto; padding: 44px 56px 36px; display: flex; flex-direction: column; gap: 30px; }
.cover__eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cover__h1 { font-size: 2.5rem; letter-spacing: -.025em; color: #fff; margin: 12px 0 10px; max-width: 18ch; line-height: 1.08; }
.cover__sub { color: #b9c6d6; font-size: 1.05rem; max-width: 60ch; margin: 0; }
.cover .st-legend { margin-top: 26px; gap: 18px; }
.cover__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.deckcard { text-align: left; background: linear-gradient(180deg, var(--ink-2), var(--ink)); border: 1px solid var(--ink-line); border-radius: 16px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 13px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; cursor: pointer; position: relative; overflow: hidden; }
.deckcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.deckcard.is-rec { border-color: rgba(179,131,58,.6); }
.deckcard.is-rec::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.deckcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.deckcard__step { font-family: var(--mono); font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.deckcard__rec { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #1b1205; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.deckcard__then { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #8498b0; }
.deckcard__kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb0c6; }
.deckcard__title { font-size: 1.5rem; color: #fff; letter-spacing: -.02em; line-height: 1.12; margin: 2px 0; }
.deckcard__blurb { color: #b4c1d2; font-size: .92rem; line-height: 1.55; flex: 1; }
.deckcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.deckcard__meta { font-family: var(--mono); font-size: .72rem; color: #8498b0; }
.deckcard__go { background: var(--accent); color: #1b1205; font-weight: 700; font-size: .82rem; padding: 9px 20px; border-radius: 999px; flex: none; }
.cover__foot { margin-top: auto; text-align: center; color: #6b7d94; font-size: .76rem; }

/* ---------- scene scaffolding / entrance ---------- */
.stage-visual [class*="__"], .stage-visual .kpi, .stage-visual .pill5, .stage-visual .cmp__card,
.stage-visual .inv__card, .stage-visual .ramp__col, .stage-visual .conf__row, .stage-visual .vs__t tr,
.stage-visual .flowx__step, .stage-visual .flowx__arr, .stage-visual .occ__tile, .stage-visual .hub2__node,
.stage-visual .recon__src, .stage-visual .grid-demo__row, .stage-visual .bl__chip { will-change: transform, opacity; }

/* generic rise-in for tagged children once the slide is live */
.kpi, .pill5, .cmp__card, .inv__card, .conf__row, .occ__tile, .hub2__node, .recon__src, .dash__row, .bl__chip, .deckcard { opacity: 0; transform: translateY(12px); }
.stage-slide.is-live .kpi, .stage-slide.is-live .pill5, .stage-slide.is-live .cmp__card,
.stage-slide.is-live .inv__card, .stage-slide.is-live .conf__row, .stage-slide.is-live .occ__tile,
.stage-slide.is-live .hub2__node, .stage-slide.is-live .recon__src, .stage-slide.is-live .dash__row,
.stage-slide.is-live .bl__chip { opacity: 1; transform: translateY(0); transition: opacity .5s ease var(--d,0ms), transform .5s ease var(--d,0ms); }
.cover .deckcard { animation: rise .5s ease both; }
.cover .deckcard:nth-child(2) { animation-delay: .08s; }

/* ---------- KPI counters ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 12px; }
.kpi { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 11px; padding: 15px 12px; text-align: center; }
.kpi__v { font-size: 1.9rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi__l { font-size: .7rem; color: #a9b8cc; margin-top: 5px; line-height: 1.3; }

/* ---------- line chart ---------- */
.chart { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 16px 10px; }
.lc { width: 100%; height: auto; display: block; }
.lc-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.lc-ytick, .lc-xtick { fill: #7c8ba3; font-size: 11px; font-family: var(--mono); }
.lc-ytick { text-anchor: end; } .lc-xtick { text-anchor: middle; }
.lc-line { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.lc-sched { stroke: #B3833A; } .lc-demand { stroke: #5B8DD6; }
.stage-slide.is-live .lc-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease .1s; }
.lc-dot { opacity: 0; }
.stage-slide.is-live .lc-dot { opacity: 1; transition: opacity .3s ease; transition-delay: calc(.6s + var(--i,0) * 70ms); }
.lc-legend { display: flex; gap: 20px; justify-content: center; margin-top: 4px; }
.lc-key { font-size: .78rem; color: #cbd6e3; display: inline-flex; align-items: center; gap: 7px; }
.lc-key::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.lc-key--sched::before { background: #B3833A; } .lc-key--demand::before { background: #5B8DD6; }

/* ---------- ramp bars ---------- */
.ramp { display: flex; align-items: flex-end; gap: 22px; height: 180px; padding: 8px 10px 0; position: relative; }
.ramp__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ramp__bar { width: 70%; max-width: 92px; height: 0; background: linear-gradient(180deg, #16a06a, #0d7d50); border-radius: 7px 7px 0 0; position: relative; display: flex; align-items: flex-start; justify-content: center; }
.stage-slide.is-live .ramp__bar { height: var(--h); transition: height .8s cubic-bezier(.22,.9,.3,1) var(--d,0ms); }
.ramp__v { color: #fff; font-weight: 800; font-size: 1.2rem; margin-top: -26px; font-variant-numeric: tabular-nums; }
.ramp__l { font-size: .74rem; color: #a9b8cc; margin-top: 8px; font-family: var(--mono); }
.ramp__unit { font-size: .74rem; color: #8ba0bb; margin-bottom: 10px; }

/* lab: V1/V2 table + grid side by side */
.lab2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.lab2 .grid-demo { margin-top: 0; }

/* ---------- compare columns ---------- */
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.cmp__card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 16px 18px; }
.cmp--a, .cmp--good { border-top: 3px solid var(--accent); } .cmp--b { border-top: 3px solid #16a06a; }
.cmp--today { border-top: 3px solid #64748B; opacity: .92; }
.cmp__h { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0c6; }
.cmp__big { font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cmp__big:empty { display: none; }
.cmp__sub { font-size: .78rem; color: #9fb0c6; margin-bottom: 8px; }
.cmp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp__list li { font-size: .84rem; color: #cbd6e3; padding-left: 16px; position: relative; }
.cmp__list li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); }
.cmp--today .cmp__list li::before { content: "–"; color: #6b7d94; }

/* ---------- identity reconstruction ---------- */
.recon { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.recon__sources { display: flex; flex-direction: column; gap: 8px; }
.recon__src { background: var(--ink-2); border: 1px solid var(--ink-line); border-left: 3px solid #5B8DD6; border-radius: 8px; padding: 9px 13px; font-size: .86rem; color: #e3eaf3; font-weight: 500; min-width: 170px; }
.recon__src small { display: block; color: #8498b0; font-size: .7rem; font-weight: 400; margin-top: 2px; }
.recon__arrow { color: var(--accent); font-size: 1.6rem; font-weight: 700; }
.recon__ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.recon__ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.rr-track { fill: none; stroke: var(--ink-line); stroke-width: 9; }
.rr-val { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: var(--circ); stroke-dashoffset: var(--circ); }
.stage-slide.is-live .rr-val { stroke-dashoffset: calc(var(--circ) - var(--dash)); transition: stroke-dashoffset 1.1s ease .2s; }
.recon__pct { position: absolute; text-align: center; }
.recon__pct b { font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.recon__pct small { display: block; font-size: .64rem; color: #9fb0c6; }
.recon__out { background: var(--ink-2); border: 1px solid rgba(179,131,58,.4); border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #fff; font-weight: 600; max-width: 190px; }
.recon__out small { display: block; color: #9fb0c6; font-weight: 400; font-size: .72rem; margin-top: 3px; }

/* ---------- source inventory ---------- */
.scene-sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #8498b0; margin: 20px 0 10px; }
.inv { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.inv__card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 11px; padding: 14px; }
.inv__v { font-size: 1.5rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.inv__t { font-weight: 650; color: #fff; font-size: .9rem; margin-top: 2px; }
.inv__d { font-size: .76rem; color: #9fb0c6; margin-top: 3px; }

/* ---------- V1/V2 table ---------- */
.vs { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; overflow: hidden; }
.vs__t { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: fixed; }
.vs__t th { text-align: left; padding: 10px 12px; font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: #9fb0c6; border-bottom: 1px solid var(--ink-line); }
.vs__t th:first-child, .vs__t td:first-child { width: 34%; }
.vs__t th:nth-child(2), .vs__t td:nth-child(2), .vs__t th:last-child, .vs__t td:last-child { text-align: center; }
.vs__t td { padding: 9px 12px; color: #d7e0ea; border-bottom: 1px solid rgba(255,255,255,.05); overflow-wrap: anywhere; }
.vs__t tr:last-child td { border-bottom: none; }
.vs__win { color: #5ee3cf; font-weight: 600; }

/* ---------- confidence list ---------- */
.conf { display: flex; flex-direction: column; gap: 9px; }
.conf__row { display: flex; gap: 12px; align-items: flex-start; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 9px; padding: 11px 14px; }
.conf__tag { flex: none; font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 1px; }
.conf--v { border-left: 3px solid #0D9488; } .conf--v .conf__tag { background: rgba(13,148,136,.18); color: #5ee3cf; }
.conf--p { border-left: 3px solid #D97706; } .conf--p .conf__tag { background: rgba(217,119,6,.18); color: #f2b872; }
.conf--h { border-left: 3px solid #64748B; } .conf--h .conf__tag { background: rgba(100,116,139,.2); color: #aebbcd; }
.conf__txt { font-size: .88rem; color: #d7e0ea; line-height: 1.45; } .conf__txt b { color: #fff; }

/* ---------- schedule grid demo ---------- */
.grid-demo { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.grid-demo__head, .grid-demo__row { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 6px; align-items: center; }
.grid-demo__head { margin-bottom: 7px; }
.grid-demo__day { font-family: var(--mono); font-size: .62rem; color: #8498b0; text-align: center; }
.grid-demo__emp { font-family: var(--mono); font-size: .68rem; color: #9fb0c6; }
.grid-demo__row { margin-bottom: 6px; }
.grid-demo__row i { height: 20px; border-radius: 5px; display: block; opacity: 0; transform: scale(.6); }
.stage-slide.is-live .grid-demo__row i { opacity: 1; transform: scale(1); transition: opacity .35s ease var(--d,0ms), transform .35s ease var(--d,0ms); }
.g-r { background: #B3833A; } .g-z { background: #16a06a; } .g-o { background: rgba(255,255,255,.07); }
.grid-demo__key { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; font-size: .74rem; color: #a9b8cc; }
.grid-demo__key span { display: inline-flex; align-items: center; gap: 6px; }
.grid-demo__key i { width: 13px; height: 13px; border-radius: 4px; }
.grid-demo__key em { color: #7c8ba3; font-style: normal; font-size: .72rem; margin-left: auto; }

/* ---------- sequential flow ---------- */
.flowx { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flowx__step { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 9px; padding: 11px 16px; font-size: .88rem; font-weight: 550; color: #fff; opacity: 0; transform: translateY(8px); }
.flowx__arr { color: var(--accent); font-weight: 700; font-size: 1.1rem; opacity: 0; }
.stage-slide.is-live .flowx__step { opacity: 1; transform: translateY(0); transition: opacity .4s ease var(--d,0ms), transform .4s ease var(--d,0ms); }
.stage-slide.is-live .flowx__arr { opacity: 1; transition: opacity .4s ease var(--d,0ms); }

/* ---------- telegram → goodnotes ---------- */
.tg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tg__phone { width: 270px; background: #0f2236; border: 1px solid var(--ink-line); border-radius: 16px; padding: 14px; opacity: 0; transform: translateX(-14px); }
.tg__ledger { flex: 1; min-width: 240px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 16px; opacity: 0; transform: translateX(14px); }
.stage-slide.is-live .tg__phone, .stage-slide.is-live .tg__ledger { opacity: 1; transform: translateX(0); transition: opacity .5s ease var(--d,0ms), transform .5s ease var(--d,0ms); }
.tg__hdr, .tg__lhdr { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #8498b0; margin-bottom: 9px; }
.tg__bubble { background: #1b3a5c; color: #eaf0f7; border-radius: 12px 12px 12px 3px; padding: 10px 12px; font-size: .82rem; line-height: 1.4; }
.tg__btns { display: flex; gap: 8px; margin-top: 10px; }
.tg__btn { flex: 1; text-align: center; background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: 8px; padding: 8px; font-size: .78rem; color: #cbd6e3; }
.tg__btn--go { background: var(--accent); color: #1b1205; font-weight: 700; border-color: var(--accent); }
.tg__wire { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.tg__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .3; }
.stage-slide.is-live .tg__dot { animation: tgpulse 1.4s ease-in-out infinite; }
.stage-slide.is-live .tg__dot:nth-child(2) { animation-delay: .2s; } .stage-slide.is-live .tg__dot:nth-child(3) { animation-delay: .4s; }
@keyframes tgpulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.tg__wlabel { font-family: var(--mono); font-size: .58rem; color: #8498b0; text-transform: uppercase; letter-spacing: .06em; }
.tg__lrow { display: flex; justify-content: space-between; font-size: .84rem; color: #d7e0ea; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.tg__lrow b { color: #fff; font-variant-numeric: tabular-nums; }
.tg__lnote { font-size: .74rem; color: #9fb0c6; margin-top: 9px; line-height: 1.4; }

/* ---------- owner operations center ---------- */
.occ__screen { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 10px; background: #0f2236; border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px; }
.occ__tile { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 9px; padding: 12px 13px; }
.occ__ic { font-size: 1.1rem; } .occ__t { font-weight: 650; color: #fff; font-size: .86rem; margin-top: 5px; }
.occ__d { font-size: .74rem; color: #9fb0c6; margin-top: 2px; }
.occ__cap { font-size: .8rem; color: #9fb0c6; margin-top: 11px; text-align: center; }

/* ---------- 5 pillars ---------- */
.pills5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.pill5 { background: var(--ink-2); border: 1px solid var(--ink-line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 15px 13px; }
.pill5__n { font-family: var(--mono); color: var(--accent); font-size: .8rem; }
.pill5__t { font-weight: 650; margin-top: 6px; color: #fff; font-size: .92rem; }
.pill5__d { font-size: .78rem; color: #a9b8cc; margin-top: 5px; }

/* ---------- connected hub ---------- */
.hub2 { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 8px 0; }
.hub2__ring { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hub2__node { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 999px; padding: 10px 20px; font-size: .9rem; color: #e3eaf3; font-weight: 500; }
.hub2__core { background: var(--accent); color: #1b1205; font-weight: 700; padding: 13px 30px; border-radius: 12px; font-size: 1.1rem; box-shadow: 0 10px 30px rgba(179,131,58,.3); }
.hub2__out { color: #a9b8cc; font-size: .9rem; max-width: 60ch; }

/* ---------- build loop + metric chips ---------- */
.bl__note { margin-top: 16px; background: var(--ink-2); border-left: 3px solid var(--s-accepted); border-radius: 8px; padding: 12px 15px; color: #d7e0ea; font-size: .92rem; }
.bl__note strong { color: #7ee0a0; }
.bl__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bl__chip { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 999px; padding: 6px 12px; font-size: .78rem; color: #cbd6e3; }
.bl__chip em { color: #8498b0; font-style: normal; font-family: var(--mono); font-size: .68rem; margin-left: 4px; }

/* ---------- live dashboard peek ---------- */
.dash { background: #0f2236; border: 1px solid var(--ink-line); border-radius: 12px; overflow: hidden; }
.dash__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.dash__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-line); }
.dash__url { font-family: var(--mono); font-size: .7rem; color: #8498b0; margin-left: 8px; }
.dash__rows { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dash__row { display: grid; grid-template-columns: 48px 1fr 140px 42px; gap: 10px; align-items: center; font-size: .84rem; }
.dash__wk { font-family: var(--mono); font-size: .66rem; color: var(--accent); }
.dash__title { color: #e3eaf3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__track { height: 7px; background: var(--ink-3); border-radius: 999px; overflow: hidden; }
.dash__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #d6a85a); border-radius: 999px; }
.stage-slide.is-live .dash__fill { width: var(--p); transition: width .9s ease .2s; }
.dash__pct { font-family: var(--mono); font-size: .74rem; color: #cbd6e3; text-align: right; }
.dash__foot { padding: 11px 14px; border-top: 1px solid var(--ink-line); font-size: .78rem; color: #9fb0c6; }

/* boundary / scene notes */
.boundary { margin-top: 16px; background: rgba(13,148,136,.08); border: 1px solid rgba(13,148,136,.35); border-radius: 10px; padding: 12px 15px; font-size: .86rem; color: #cfe8e3; }
.boundary b { color: #fff; }
.scene-note2 { margin-top: 16px; background: var(--ink-2); border: 1px solid var(--ink-line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 15px; color: #cbd6e3; font-size: .86rem; line-height: 1.5; max-width: 76ch; }
.scene-note2 b { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cover { padding: 24px 18px; gap: 20px; }
  .cover__h1 { font-size: 1.7rem; }
  .cover__cards { grid-template-columns: 1fr; }
  .recon { justify-content: center; } .recon__arrow { transform: rotate(90deg); }
  .tg__phone { width: 100%; } .tg__wire { flex-direction: row; width: 100%; justify-content: center; }
  .dash__row { grid-template-columns: 40px 1fr 70px 36px; }
  .ramp { gap: 12px; }
  .present__top-actions .st-legend { display: none; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage-slide.is-live *, .cover .deckcard { transition: none !important; animation: none !important; }
  .kpi, .pill5, .cmp__card, .inv__card, .conf__row, .occ__tile, .hub2__node, .recon__src, .dash__row, .bl__chip, .deckcard,
  .flowx__step, .flowx__arr, .tg__phone, .tg__ledger, .lc-dot, .grid-demo__row i { opacity: 1 !important; transform: none !important; }
  .lc-line { stroke-dashoffset: 0 !important; }
  .stage-slide.is-live .ramp__bar { height: var(--h); } .stage-slide.is-live .rr-val { stroke-dashoffset: calc(var(--circ) - var(--dash)); }
  .stage-slide.is-live .dash__fill { width: var(--p); }
}
