/* Launchpad v3. Brand: charcoal, bone ink, pillar gold; Newsreader for display, Instrument Sans for UI. */
:root {
  --bg: #121212; --panel: #1A1918; --panel2: #201F1D; --line: #2E2C29; --line2: #3A3733;
  --ink: #F3EFE7; --ink2: #BDB6AA; --mute: #8E877C; --gold: #C99A4B; --gold2: #DDB56E;
  --good: #7ED39B; --goodbg: #1E3527; --warn: #F0B955; --warnbg: #3A2C14; --bad: #F0877A; --badbg: #3D1D1A; --info: #8FB3EE; --infobg: #1C2638;
  --c1: #B5832F; --c2: #5F8BD6; --c3: #3FA276; --c4: #B86CC8; --c5: #D9774B;
  --r: 12px; --side: 236px; --on-gold: #161616;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 'Instrument Sans', system-ui, sans-serif; font-feature-settings: 'tnum'; -webkit-font-smoothing: antialiased; }
a { color: var(--gold2); text-decoration: none; } a:hover { color: #E3C48A; }
button { font: inherit; color: inherit; }
.serif { font-family: Newsreader, Georgia, serif; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh;
  /* The sidebar column's fill and rule run the full page height; .side itself stays sticky at 100vh (10-31). */
  background: linear-gradient(to right, transparent calc(var(--side) - 1px), var(--line) calc(var(--side) - 1px), var(--line) var(--side), transparent var(--side)), linear-gradient(to right, var(--sidebg) var(--side), transparent var(--side)); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sidebg); border-right: 1px solid var(--line); padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; }
.brand img { height: 30px; }
.brand b { display: block; font: 500 21px/1 Newsreader, serif; }
.brand span { font-size: 11.5px; color: var(--mute); }
.navh { font: 700 10.5px/1 'Instrument Sans'; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 14px 10px 6px; }
.nav { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--ink2); cursor: pointer; font-weight: 600; font-size: 13.5px; border: 0; background: none; width: 100%; text-align: left; }
.nav:hover { background: var(--panel2); color: var(--ink); }
.nav.on { background: #2A2520; color: var(--ink); box-shadow: inset 2px 0 0 var(--gold); }
.nav .dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.nav .ct { margin-left: auto; font: 700 11px/1 'Instrument Sans'; padding: 3px 7px; border-radius: 999px; background: var(--warnbg); color: var(--warn); }
.nav .ct.hot { background: var(--gold); color: #161616; }
.nav .ct.bad { background: var(--badbg); color: var(--bad); }
.nav .sub { margin-left: auto; font-size: 11px; color: var(--mute); font-weight: 600; }
.sidefoot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--mute); }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(18,18,18,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topin { max-width: 1400px; margin: 0 auto; padding: 12px 28px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.topin h1 { margin: 0; font: 500 26px/1.1 Newsreader, serif; letter-spacing: -.01em; }
.topin .when { color: var(--mute); font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: 600 12px/1 'Instrument Sans'; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: #161616; border-color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.search { flex: 1 1 220px; max-width: 360px; margin-left: auto; position: relative; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line2); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; }
.search .res { position: absolute; top: 40px; left: 0; right: 0; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; max-height: 360px; overflow: auto; z-index: 40; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.search .res div { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.search .res div:hover { background: #2A2724; }
.page { max-width: 1400px; margin: 0 auto; padding: 22px 28px 80px; display: flex; flex-direction: column; gap: 18px; }
.mtop { display: none; }

/* Building blocks */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.card h2 { margin: 0 0 4px; font: 500 19px/1.2 Newsreader, serif; }
.card h3 { margin: 0; font: 700 11px/1 'Instrument Sans'; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.card .sub { color: var(--mute); font-size: 12.5px; margin: 0 0 12px; }
.hrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hrow .sp { margin-left: auto; }
.kpi { overflow: hidden; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: default; }
.kpi.click { cursor: pointer; } .kpi.click:hover { border-color: var(--line2); background: var(--panel2); }
.kpi .l { font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kpi .v { font: 500 30px/1.1 Newsreader, serif; margin-top: 6px; }
.kpi .n { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 'Instrument Sans'; padding: 4px 8px; border-radius: 999px; white-space: nowrap; background: var(--line); color: var(--ink2); }
.tag.good { background: var(--goodbg); color: var(--good); } .tag.warn { background: var(--warnbg); color: var(--warn); }
.tag.bad { background: var(--badbg); color: var(--bad); } .tag.info { background: var(--infobg); color: var(--info); } .tag.gold { background: #3A3020; color: var(--gold2); }
.pd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.pd i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.muted { color: var(--mute); } .ink2 { color: var(--ink2); } .red { color: var(--bad); } .green { color: var(--good); } .amber { color: var(--warn); }
.small { font-size: 12px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .b { font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 600 12.5px/1 'Instrument Sans'; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel2); }
.btn.pri { background: var(--gold); border-color: var(--gold); color: #161616; } .btn.pri:hover { background: var(--gold2); }
.btn.ghost { border-color: transparent; color: var(--ink2); }
.btn:disabled { opacity: .45; cursor: default; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.empty { color: var(--mute); padding: 18px 4px; text-align: center; font-size: 13px; }
.sel, .inp, textarea.inp { background: var(--bg); border: 1px solid var(--line2); color: var(--ink); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
textarea.inp { width: 100%; min-height: 64px; resize: vertical; }

/* Insights */
.ins { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.ins:first-of-type { border-top: 0; }
.ins:hover .t { color: var(--gold2); }
.ins .s { width: 6px; height: 100%; min-height: 34px; border-radius: 3px; }
.ins .t { font-weight: 700; font-size: 14.5px; }
.ins .d { color: var(--ink2); font-size: 13px; margin-top: 3px; }
.sev3 { background: var(--bad); } .sev2 { background: var(--warn); } .sev1 { background: var(--line2); }

/* Tables */
.tw { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--panel); }
table.t th.ns { cursor: default; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr.row { cursor: pointer; } table.t tr.row:hover td { background: #22201E; }
table.t tr.sel td { background: #2A2520; }
table.t td .l2 { color: var(--mute); font-size: 12px; margin-top: 2px; }
.clip { max-width: 380px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more { text-align: center; padding: 10px; }

/* Stage strip */
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 8px; overflow-x: auto; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.stage.on { border-color: var(--gold); }
.stage .n { font: 500 24px/1 Newsreader, serif; margin-top: 4px; }

/* Agenda */
.day { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.day:first-child { border-top: 0; padding-top: 0; }
.dayh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.dayh b { font: 500 17px/1 Newsreader, serif; }
.ag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ag:hover { background: var(--panel2); }
.ag .who { font-weight: 700; }
.ag .items { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; font-size: 12.5px; color: var(--ink2); }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; max-width: 100%; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink2); margin-top: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.tip { position: absolute; pointer-events: none; background: #0E0E0D; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: nowrap; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

/* Business cards */
.biz { cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.biz:hover { border-color: var(--line2); background: var(--panel2); }
.biz .nm { display: flex; align-items: center; gap: 8px; font: 500 18px/1.1 Newsreader, serif; }
.biz .nm i { width: 10px; height: 10px; border-radius: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12.5px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; text-align: right; font-weight: 600; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: #171615; border-left: 1px solid var(--line2); z-index: 51; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.dhead { padding: 16px 20px 0; border-bottom: 1px solid var(--line); }
.dhead h2 { margin: 6px 0 4px; font: 500 24px/1.15 Newsreader, serif; }
.dtabs { display: flex; gap: 2px; overflow-x: auto; margin-top: 10px; }
.dtab { padding: 9px 12px; font-weight: 600; font-size: 13px; color: var(--mute); cursor: pointer; border: 0; background: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.dtab.on { color: var(--ink); border-bottom-color: var(--gold); }
.dbody { padding: 16px 20px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.sect { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.sect h4 { margin: 0 0 8px; font: 700 10.5px/1 'Instrument Sans'; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.li { padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.li:first-of-type { border-top: 0; padding-top: 2px; }
.li:hover .lt { color: var(--gold2); }
.lt { font-weight: 700; }
.tl { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--line); }
.tl:first-of-type { border-top: 0; }
.field { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; align-items: start; }
.field:first-of-type { border-top: 0; }
.pre { white-space: pre-wrap; }
.x { margin-left: auto; }

/* Toast */
.toast { position: fixed; top: 14px; right: 18px; z-index: 60; background: #0E0E0D; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

@media (max-width: 1100px) { .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #151514; position: sticky; top: 0; z-index: 25; }
  .mtop img { height: 24px; }
  .top { position: static; }
  .topin, .page { padding-left: 16px; padding-right: 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .field { grid-template-columns: 1fr; }
  .tw { margin: 0 -18px; }
}
@media (max-width: 520px) { .ins { grid-template-columns: 6px minmax(0, 1fr); } .ins > :last-child { display: none; } .tl { grid-template-columns: 96px minmax(0, 1fr); } .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 24px; } .topin h1 { font-size: 22px; } }
@media (max-width: 900px) { table.t td:first-child { min-width: 200px; } }

/* v3.1 visuals */
.rings { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ring { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 10px; }
.ring.click { cursor: pointer; } .ring.click:hover { background: var(--panel2); }
.ring .rl { font-weight: 700; font-size: 13px; margin-top: 4px; }
.ring .rs { font-size: 11.5px; color: var(--mute); }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb.click { cursor: pointer; } .hb.click:hover .hbl span { color: var(--gold2); }
.hbl { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.hbl span { color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; } .hbl i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.hbt { position: relative; height: 10px; background: #232120; border-radius: 99px; overflow: hidden; }
.hbt .trk { position: absolute; left: 0; top: 0; bottom: 0; background: #3A3733; border-radius: 99px; }
.hbt .val { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.fl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); margin-bottom: 4px; }
.ft { height: 14px; background: #232120; border-radius: 6px; overflow: hidden; } .ft span { display: block; height: 100%; border-radius: 6px; }
.fc { font-size: 11.5px; margin-top: 3px; }
.dash { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
.kpi .spark { margin-top: 6px; }
.kpi .dl { font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.ms { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.ms:first-of-type { border-top: 0; }
.box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #5E5850; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #161616; cursor: pointer; margin-top: 1px; }
.box.on { background: var(--gold); border-color: var(--gold); cursor: default; }
.box.q { background: #3A3020; border-color: var(--gold); color: var(--gold2); }
.ms .done { color: var(--mute); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.embed { width: 100%; border: 0; display: block; background: var(--bg); min-height: 600px; border-radius: 12px; }
.callout { border: 1px solid #6A5020; background: #2A2214; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink2); }
.callout b { color: var(--warn); }
@media (max-width: 1100px) { .s8, .s7, .s6, .s5, .s4 { grid-column: span 12; } .s3 { grid-column: span 6; } }
@media (max-width: 520px) { .s3 { grid-column: span 12; } .lgrid { grid-template-columns: 1fr; } }

.card, .kpi, .sect { overflow-wrap: anywhere; }
.hrow h2 { min-width: 0; }
.hrow .sp { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Agent work + Plays & ideas (v3/work.js) */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.agent { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); cursor: pointer; min-width: 0; }
.agent:hover { border-color: var(--line2); } .agent.on { border-color: var(--gold); } .agent.bad { border-color: #6A2A24; background: #241816; }
.agent .blocks { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin: 8px 0 6px; }
.agent .blocks i { flex: 1; background: var(--c2); border-radius: 2px; min-width: 4px; }
.agent.bad .blocks i { background: var(--bad); }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.feed { max-height: 560px; overflow: auto; }
.fe { display: grid; grid-template-columns: 62px 150px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 2px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.fe:first-child { border-top: 0; } .fe:hover { background: var(--panel2); }
.fe .tag { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.call { border-top: 1px solid var(--line); padding: 9px 2px; cursor: pointer; } .call:first-of-type { border-top: 0; }
.call .hrow { gap: 8px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.idea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); }
.btn[disabled] { opacity: .6; cursor: default; }
@media (max-width: 700px) { .fe { grid-template-columns: 54px minmax(0, 1fr); } .fe > span:nth-child(2) { grid-column: 2; } .fe > span:nth-child(3) { grid-column: 1 / -1; } }

/* Executive deck (v3/deck.js): 16:9 slides scaled to the page; print = one slide per landscape page */
.deckwrap { display: grid; gap: 12px; }
.dk-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; background: #0E0E0E; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dk-frame { display: none; position: absolute; inset: 0; }
.dk-frame.on { display: block; }
.dk-slide { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; transform-origin: 0 0; transform: scale(calc(100cqw / 1280px)); padding: 40px 52px 30px; display: flex; flex-direction: column; background: radial-gradient(1200px 500px at 85% -10%, rgba(201,154,75,.10), transparent 60%), #141312; color: var(--ink); }
.dk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line2); padding-bottom: 14px; margin-bottom: 18px; }
.dk-head h2 { font-size: 38px; margin: 2px 0 0; font-weight: 500; }
.dk-kick { font: 700 12px/1 'Instrument Sans'; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dk-body { flex: 1; min-height: 0; overflow: hidden; font-size: 15px; }
.dk-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.dk-lede { font-family: 'Newsreader', Georgia, serif; font-size: 26px; line-height: 1.35; margin: 4px 0 26px; color: var(--ink); max-width: 1100px; }
.dk-bigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dk-bigs.sm { grid-template-columns: repeat(3, 1fr); } .dk-bigs.col { grid-template-columns: 1fr; }
.dk-big { border: 1px solid var(--line2); background: var(--panel); border-radius: 12px; padding: 14px 16px; }
.dk-big .l { font: 700 11px/1.2 'Instrument Sans'; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.dk-big .v { font-family: 'Newsreader', Georgia, serif; font-size: 40px; line-height: 1.1; margin-top: 8px; }
.dk-bigs.sm .dk-big .v, .dk-bigs.col .dk-big .v { font-size: 30px; }
.dk-big .n { font-size: 12.5px; color: var(--ink2); margin-top: 6px; line-height: 1.35; }
.dk-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; } .dk-3 h3 { font-size: 16px; margin: 0 0 10px; }
.dk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.dk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; } .dk-list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; line-height: 1.4; font-size: 15px; } .dk-list .mk { color: var(--gold); font-weight: 800; }
.dk-cap { font: 700 11px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.dk-kpi { width: 100%; border-collapse: collapse; font-size: 13.5px; } .dk-kpi th { text-align: left; font: 700 10.5px/1 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.dk-kpi td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dk-score td { padding: 10px 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mute); } .dot.green { background: var(--good); } .dot.amber { background: var(--warn); } .dot.red { background: var(--bad); }
.dk-seat .dk-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dk-sum { margin: 0 0 10px; line-height: 1.45; color: var(--ink2); }
.dk-ins { border-left: 3px solid var(--gold); background: #221D14; padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.45; margin-top: 10px; }
.dk-grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dk-card { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: var(--panel); font-size: 13px; }
.dk-ol { margin: 8px 0 6px 18px; padding: 0; display: grid; gap: 6px; line-height: 1.35; }
.dk-thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dk-stage:fullscreen { border-radius: 0; border: 0; background: #000; display: flex; align-items: center; }
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { background: #141312 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .side, .mtop, .top, .noprint, .scrim, .drawer, .toast { display: none !important; }
  .main, .page { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .dk-stage { aspect-ratio: auto; border: 0; border-radius: 0; overflow: visible; container-type: normal; background: none; }
  .dk-frame, .dk-frame.on { display: block; position: relative; width: 1280px; height: 720px; page-break-after: always; break-after: page; overflow: hidden; }
  .dk-slide { transform: none; }
}

/* LP3 tabs (v3/tabs.js): KPI tree */
.ktree { display: grid; gap: 2px; }
.kn { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(120px, auto); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.kt { min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.kb { min-width: 0; } .kv { text-align: right; }
@media (max-width: 520px) { .kn { grid-template-columns: 44px minmax(0, 1fr); } .kv { grid-column: 2; text-align: left; } }
/* ===== CRM slices 1–2 (10-14): product chips, six-area navigation, record pages, pipeline board ===== */
:root { --space1: 4px; --space2: 8px; --space3: 12px; --space4: 16px; --space5: 24px; --rs: 8px; --chip-h: 22px; --pc: #8E877C; --tl-rail: #2E2C29; }

/* Product chip: one label and color per product, everywhere */
.pchip { --pc: #8E877C; display: inline-flex; align-items: center; gap: 5px; height: var(--chip-h); padding: 0 8px 0 7px; border-radius: 999px; font: 700 11px/1 'Instrument Sans'; letter-spacing: .01em; white-space: nowrap; vertical-align: middle;
  color: color-mix(in srgb, var(--pc) 62%, var(--ink)); background: color-mix(in srgb, var(--pc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 34%, transparent); }
.pchip i { width: 7px; height: 7px; border-radius: 2px; background: var(--pc); flex: none; }
.pchips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }

/* Sidebar: six areas, the active one open */
.navarea { display: flex; flex-direction: column; gap: 1px; }
.navarea + .navarea { margin-top: 2px; }
.nav.area { font-size: 14px; color: var(--ink); padding: 8px 10px; }
.nav.area.on { background: transparent; box-shadow: none; color: var(--gold2); }
.nav.child { padding: 6px 10px 6px 22px; font-size: 13px; font-weight: 600; }
.nav.child.on { background: #2A2520; box-shadow: inset 2px 0 0 var(--gold); }
.navarea.on { padding-bottom: 6px; }

/* Header: title, product switcher, search; area sub-navigation underneath */
.ttl { min-width: 0; }
.pswitch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pswitch::-webkit-scrollbar { display: none; }
.pswitch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink2); font: 600 12px/1 'Instrument Sans'; padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pswitch button:hover { color: var(--ink); }
.pswitch button.on { background: var(--ink); color: #161616; }
.pswitch i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.subnav { border-top: 1px solid var(--line); }
.subin { max-width: 1400px; margin: 0 auto; padding: 0 28px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subin::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--mute); font-weight: 600; font-size: 13px; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--gold); }
.subnav .ct, .abtn .ct, .nav.area .ct { font: 700 10.5px/1 'Instrument Sans'; padding: 3px 6px; border-radius: 999px; background: var(--warnbg); color: var(--warn); }
.subnav .ct.hot, .abtn .ct.hot, .nav.area .ct.hot { background: var(--gold); color: #161616; }
.subnav .ct.bad, .abtn .ct.bad, .nav.area .ct.bad { background: var(--badbg); color: var(--bad); }
.nav.area .ct { margin-left: auto; }
.areabar { display: none; }
/* v5 Revenue visuals (v3/rev5-view.js): inline SVG in the colour tokens */
.rv5 { display: grid; gap: 14px; margin-bottom: 14px; }
.rv5-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .rv5-two { grid-template-columns: minmax(0, 1fr); } }
.rv5-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.rv5-row:first-child { border-top: 0; }
.rv5-lab { font-weight: 600; font-size: 13px; }
.rv5-bar { width: 100%; height: 14px; display: block; }
.rv5-fig { grid-column: 2; font-size: 12px; }
.rv5-legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink2); margin-bottom: 6px; }
.rv5-legend.wrap { flex-wrap: wrap; margin-top: 10px; }
.rv5-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rv5-trend svg { width: 100%; height: 140px; display: block; }
.rv5-axis { display: flex; justify-content: space-between; gap: 4px; font-size: 11px; color: var(--mute); margin-top: 6px; }
.rv5-axis span { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rv5-axis b { color: var(--ink); font-weight: 600; font-size: 12px; }
.rv5-stack { margin-top: 8px; } .rv5-stack svg { width: 100%; height: 18px; display: block; border-radius: 4px; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* v5 continuity: the area badge is its own link, breadcrumbs above the title */
.abw { display: flex; align-items: center; gap: 4px; }
.abw > .nav.area { flex: 1; min-width: 0; }
.abw > a.ct { font: 700 10.5px/1 'Instrument Sans'; padding: 3px 6px; border-radius: 999px; background: var(--warnbg); color: var(--warn); margin-right: 10px; text-decoration: none; }
.abw > a.ct.hot { background: var(--gold); color: #161616; }
.abw > a.ct.bad { background: var(--badbg); color: var(--bad); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); margin-bottom: 2px; }
.crumbs a { color: var(--ink2); } .crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line2); }
.ttl > .crumbs { margin: 0 0 4px; font-size: 12px; line-height: 1.3; }
a.kpi { display: block; color: inherit; text-decoration: none; }
/* v5 section switch (?sec=) under a tab that holds several pages */
.secnav .subin { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.secnav .chip { text-decoration: none; }
.secnav .chip .ct.hot { background: var(--gold); color: #161616; }
.secnav .chip .ct { font: 700 10.5px/1 'Instrument Sans'; padding: 2px 5px; border-radius: 999px; background: var(--badbg); color: var(--bad); }

/* Shared bits */
.chip .cnt { font-weight: 700; opacity: .65; margin-left: 2px; }
.chipsep { width: 1px; background: var(--line2); margin: 0 4px; align-self: stretch; }
.inp.filter { width: 240px; max-width: 100%; border-radius: 999px; padding: 7px 12px; }
.sel.sm { padding: 3px 6px; font-size: 12px; border-radius: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space3); align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); }
.seg button { border: 0; background: none; color: var(--ink2); font: 600 12.5px/1 'Instrument Sans'; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--ink); color: #161616; }

/* Record pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--mute); margin-bottom: -6px; }
.crumbs a { color: var(--ink2); } .crumbs a:hover { color: var(--gold2); } .crumbs .sep { color: var(--line2); }
.rec-head { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 2px; }
.rec-kind { font: 700 10.5px/1 'Instrument Sans'; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rec-title { margin: 0; font: 500 34px/1.1 Newsreader, serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rec-sub { color: var(--ink2); font-size: 14px; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.rec-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.rec-main, .rec-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rec-side .sect { padding: 14px 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.rec-main .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { min-width: 0; } .fact.wide { grid-column: 1 / -1; }
.fl { font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.fv { font-size: 13.5px; overflow-wrap: anywhere; }
.dline { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; }
.dline:first-of-type { border-top: 0; padding-top: 2px; }
a.dline:hover .b { color: var(--gold2); }
.dl-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 3px; }
.outcomes { display: flex; flex-direction: column; gap: 10px; }
.outs { display: flex; flex-wrap: wrap; gap: 6px; }
.mtpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line2); border-radius: var(--rs); background: var(--panel2); }

/* Timeline */
.tl-filters { margin-bottom: var(--space3); }
.tline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-day { font: 700 10.5px/1 'Instrument Sans'; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 14px 0 8px 34px; }
.tl-day:first-child { padding-top: 2px; }
.tl-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--tl-rail); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink2); position: relative; z-index: 1; }
.tl-item.d-out .tl-dot { background: var(--infobg); border-color: #2D4466; color: var(--info); }
.tl-item.d-in .tl-dot { background: #3A3020; border-color: #6A5020; color: var(--gold2); }
.tl-item.k-stage .tl-dot { background: var(--goodbg); border-color: #2E5A3D; color: var(--good); }
.tl-body { min-width: 0; padding-top: 2px; }
.tl-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-kind { font-weight: 700; font-size: 13px; }
.tl-when { margin-left: auto; }
.tl-subj { font-weight: 700; margin-top: 5px; overflow-wrap: anywhere; }
.tl-lines { color: var(--ink2); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.tl-text { color: var(--ink2); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.tl-meta { margin-top: 4px; }
.tl-reply { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: #221D14; border-radius: 0 8px 8px 0; color: var(--ink); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Pipeline board: stuck first, days in stage on every card */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.bcol { background: #161514; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; display: flex; flex-direction: column; }
.bcol-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.bcol-b { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; min-width: 0; }
.bcard:hover, .bcard:focus { border-color: var(--line2); background: var(--panel2); outline: none; }
.bcard.stuck { border-color: #6A2A24; box-shadow: inset 3px 0 0 var(--bad); }
.bc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.bc-name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.bc-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.bc-row > :last-child { margin-left: auto; }
.bc-next { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; margin-top: 2px; }
.bc-foot .sel { min-width: 0; max-width: 60%; text-overflow: ellipsis; }
/* Board and funnel per pipeline (one business selected) */
.plbar { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 12px; }
.plbar .chips { flex-wrap: wrap; }
.plfunnel .plprods { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 10px; }
.bempty { color: var(--mute); font-size: 12.5px; text-align: center; padding: 14px 4px; }

@media (max-width: 1100px) { .rec-grid { grid-template-columns: 1fr; } .rec-main .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .areabar { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #151514; scrollbar-width: none; }
  .areabar::-webkit-scrollbar { display: none; }
  .abtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: 600 12.5px/1 'Instrument Sans'; padding: 7px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
  .abtn.on { background: var(--ink); color: #161616; border-color: var(--ink); }
  .subin { padding: 0 16px; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow-x: visible; }
  .bcol-h { position: static; }
  .pswitch { order: 3; }
}
@media (max-width: 520px) {
  .rec-title { font-size: 27px; }
  .facts, .rec-main .facts { grid-template-columns: 1fr 1fr; }
  .tl-when { margin-left: 0; }
  .inp.filter { width: 100%; }
  .hrow .sp { justify-content: flex-start; width: 100%; }
}

/* Slice 3: saved filters (Contacts, Organizations) */
.fbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fbar-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.fbar-row .sel.sm { max-width: min(260px, 100%); }
.inp.sm { padding: 4px 8px; font-size: 12px; border-radius: 6px; width: 160px; max-width: 100%; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.chip.sv { padding: 0; gap: 0; }
.chip.sv button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.chip.sv .svb { padding: 5px 4px 5px 10px; } .chip.sv .svx { padding: 5px 9px 5px 4px; opacity: .65; } .chip.sv .svx:hover { opacity: 1; }
.bcol-sums span { white-space: nowrap; }

/* Slice 4: funnel per product */
.nn { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.nn.est { color: var(--warn); }
.ftitle { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 4px 0 14px; }
.fs { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fsn { font: 500 20px/1 Newsreader, serif; }
.fsb { width: 100%; height: 44px; background: #161514; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.fsb span { display: block; width: 100%; background: var(--c2); border-radius: 4px 4px 0 0; }
.fs.won .fsb span { background: var(--c3); } .fs.lost .fsb span { background: #6B5550; }
.fsl { font-size: 11px; color: var(--mute); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fgrid h3 { margin-bottom: 6px; }
table.ft { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ft td { padding: 5px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.ft td.right { text-align: right; padding-left: 8px; white-space: nowrap; }
table.ft td .nn { display: block; }
.facts.fmx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fmx .fl, .gfacts .fl { font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }

/* Slice 4: progress to $1M */
.goals { display: flex; flex-direction: column; gap: 18px; }
.goal { padding-top: 14px; border-top: 1px solid var(--line); }
.goal:first-child { border-top: 0; padding-top: 0; }
.gtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.gamt b { font: 500 22px/1 Newsreader, serif; }
.gpct { margin-left: auto; font-weight: 700; color: var(--ink2); }
.goalbar { position: relative; height: 14px; background: #161514; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.goalbar > span { display: block; height: 100%; border-radius: 99px; }
.goalbar > i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.goalbar.slim { height: 8px; border: 0; background: var(--line); }
.gfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin-top: 10px; }
.gsrows { display: flex; flex-direction: column; gap: 8px; }
.gsrow { display: grid; grid-template-columns: 96px minmax(60px, 1fr) auto auto; gap: 10px; align-items: center; cursor: pointer; padding: 2px 0; }
.gsrow:hover { background: var(--panel2); }
@media (max-width: 700px) {
  .fgrid, .facts.fmx, .gfacts { grid-template-columns: 1fr; }
  .fstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gsrow { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .gsrow > :last-child { grid-column: 1 / -1; }
}

/* Funnel (viz.js Funnel), scoped class names so view-level .fl/.fs rules can't override it */
.vf { display: grid; gap: 12px; }
.vf-row { display: grid; gap: 5px; }
.vf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vf-label { font-size: 13px; color: var(--ink2); }
.vf-right { display: inline-flex; align-items: baseline; gap: 12px; }
.vf-n { font: 600 15px/1 'Instrument Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.vf-conv { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vf-conv.green { color: #7FC796; } .vf-conv.amber { color: #E3B45C; } .vf-conv.red { color: #F0877A; } .vf-conv.muted { color: var(--mute); }
.vf-of { color: var(--mute); }
.vf-track { height: 12px; background: #232120; border-radius: 6px; overflow: hidden; }
.vf-bar { display: block; height: 100%; border-radius: 6px; }
.vf-foot { font-size: 11.5px; color: var(--mute); }

/* Card check badge (CARD-STANDARD) and Direction center (CRM-SPEC §6) */
.ctxbadge { margin-left: 6px; vertical-align: middle; cursor: help; }
.ctxmiss { padding: 8px 10px; border-radius: 8px; background: var(--warnbg); }
.dirform { display: flex; flex-direction: column; gap: 10px; }
.dirform .dl, .dread .dl { display: block; font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.dirform .inp { width: 100%; box-sizing: border-box; min-height: 34px; }
.dirgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.dirgrid .dfull { grid-column: 1 / -1; }
.dchips, .dbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dread { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; background: var(--panel2); }
.dread p { margin: 0 0 8px; }
.djson { white-space: pre-wrap; word-break: break-word; font-size: 11.5px; color: var(--ink2); }
.dirrow { display: flex; flex-direction: column; gap: 4px; }
.dirrow .dhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dirrow .dmeta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (max-width: 520px) { .dirgrid { grid-template-columns: 1fr; } .dbtns .btn { min-height: 44px; } .dchips .btn { min-height: 40px; } }

/* Gate items (STANDING-ORDERS §AA.4) */
.gi-row { display: block; min-width: 0; }
.gi-pill { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; cursor: pointer; max-width: 100%; flex-wrap: wrap; }
.gi-pill.on, .gi-pill:hover { border-color: var(--gold); }
.gi-bar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gi-bar > span { display: block; height: 100%; background: var(--good); }
.gi-list { margin: 6px 0 2px; padding-left: 2px; }
.gi { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 6px; font-size: 12.5px; padding: 3px 0; }
.gi .done { color: var(--mute); }
/* Progress on Product strategy and Features (10-29): the gate-item pill with a caret, its task list, a roll-up per product */
.prog { margin: 2px 0 4px; min-width: 0; }
.prog-pill b { font-weight: 600; }
.prog-caret { display: inline-block; width: 10px; color: var(--mute); }
.prog .gi-bar { width: 72px; }
.prog-proof { overflow-wrap: anywhere; }
.prog-roll { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.prog-rr { display: grid; grid-template-columns: minmax(90px, 160px) minmax(80px, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.prog-rn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .prog-rr { grid-template-columns: minmax(0, 1fr) auto; } .prog-rb { grid-column: 1 / -1; grid-row: 2; } .prog-rr .nowrap { white-space: normal; } }

/* ---------------------------------------------------------------------------------------------------------------
   10-19 · Truth and cockpit pass. KPI labels in sentence case (no tracked caps), proportional figures in big values,
   the source-age line every view carries, the Workspace label, and the Cockpit (v3/cockpit.js).
   --------------------------------------------------------------------------------------------------------------- */
.kpi .l { font: 600 12px/1.3 'Instrument Sans'; letter-spacing: 0; text-transform: none; color: var(--mute); }
.kpi .v { font-feature-settings: normal; overflow-wrap: anywhere; }
.kpi .n { overflow-wrap: anywhere; }
.ws { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ws i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
/* Source age: green < 8 h, amber older, red past 26 h or the file's own max age, gray = never written */
.ck-src { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mute); }
.srcline .ck-src { margin-top: 0; padding-top: 0; border-top: 0; }
.srcline { margin: -6px 2px 0; }
.ck-age { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ck-age i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); flex: none; }
.ck-age.green i { background: var(--good); } .ck-age.amber i { background: var(--warn); } .ck-age.red i { background: var(--bad); }
.ck-age.amber { color: var(--ink2); } .ck-age.red { color: var(--bad); }
.ck { display: flex; flex-direction: column; gap: 14px; }
.ck-head { margin: -6px 2px 0; }
.ck-card .sub { max-width: 78ch; }
.ck-hl { font: 600 12px/1.3 'Instrument Sans'; color: var(--mute); }
.ck-sv { font: 500 26px/1.15 Newsreader, serif; margin: 2px 0 6px; }
.ck-meter { height: 8px; background: #2A2724; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.ck-meter > span { display: block; height: 100%; background: var(--c1); border-radius: 99px; }
.ck-meter.thin { height: 6px; margin: 0; }
.ck-meter.warn > span { background: #C9853A; }
.ck-live { float: right; font-size: 11px; color: var(--ink3, #9b958d); font-weight: 400; }
.ck-live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4CAF7A; margin-right: 5px; vertical-align: middle; animation: ck-pulse 2s ease-in-out infinite; }
@keyframes ck-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ck-live i { animation: none; } }
/* Money band: hero figure + month rail (small multiples) */
.ck-money { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
.ck-hero { display: flex; flex-direction: column; gap: 4px; padding-right: 24px; border-right: 1px solid var(--line); min-width: 0; }
.ck-hv { font: 500 56px/1.02 Newsreader, serif; letter-spacing: -.02em; margin: 4px 0 2px; }
.ck-hn { color: var(--ink2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ck-mrr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ck-rail-wrap { min-width: 0; display: flex; flex-direction: column; }
.ck-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; flex: 1; }
.ck-mo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ck-col { position: relative; height: 150px; border-bottom: 1px solid var(--line2); margin-bottom: 6px; }
.ck-tgt, .ck-act { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; border-radius: 4px 4px 0 0; }
.ck-tgt { background: var(--line2); }
.ck-act { background: var(--c1); width: 14px; }
.ck-prop { position: absolute; left: calc(50% - 20px); width: 40px; height: 0; border-top: 2px solid var(--ink); }
.ck-prop::after { content: ''; position: absolute; right: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink); }
.ck-key-prop { background: transparent !important; border: 2px solid var(--ink); border-radius: 50% !important; width: 8px !important; height: 8px !important; }
.ck-mo.cur .ck-tgt { background: #4A4540; }
.ck-ml { font-size: 13px; }
.ck-mv { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-rev { margin-top: 8px; color: var(--ink2); }
/* Pipeline pair */
.ck-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ck-pp { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ck-pp:hover { border-color: var(--line2); }
.ck-pv { font: 500 34px/1.1 Newsreader, serif; margin: 2px 0 4px; }
.ck-recon { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ck-stack { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.ck-stack > span { min-width: 3px; }
.ck-recon .legend { margin-top: 0; }
/* Movement chips */
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ck-chip { flex: 1 1 92px; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ck-cv { font: 500 24px/1.1 Newsreader, serif; }
.ck-cl { font-size: 12px; color: var(--ink2); }
.ck-cn { font-size: 11px; color: var(--mute); }
.ck-mini { gap: 12px; }
/* Funnel small multiples */
.ck-funnels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ck-fb { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-fb:hover { border-color: var(--line2); }
.ck-fh { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; }
.ck-fh i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ck-fr { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; }
.ck-fl { color: var(--ink2); }
.ck-ft { height: 8px; background: #2A2724; border-radius: 3px; overflow: hidden; }
.ck-ft > span { display: block; height: 100%; border-radius: 3px; }
.ck-rr { min-height: 16px; }
.ck-fd { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink2); padding-top: 6px; border-top: 1px solid var(--line); }
/* Capacity */
.ck-kv { margin-top: 10px; }
.ck-kv dd { text-align: right; }
/* Needs */
.ck-nc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ck-nc button { border: 1px solid var(--line2); background: transparent; color: var(--ink2); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.ck-nc button b { color: var(--ink); margin-right: 3px; }
.ck-nc button.hot { border-color: var(--gold); }
.ck-li, .ck-win { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.ck-nr { display: inline-flex; gap: 8px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
/* Launch readiness */
.ck-launch { display: flex; flex-direction: column; }
.ck-lr { display: grid; grid-template-columns: 110px minmax(60px, 1fr) 64px minmax(0, 2fr) auto; gap: 10px; align-items: center; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ck-lr:hover { background: var(--panel2); }
.ck-ln { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ln i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ck-lp { font-weight: 700; text-align: right; }
.ck-ld { min-width: 0; }
@media (max-width: 1100px) {
  .ck-money { grid-template-columns: 1fr; gap: 18px; }
  .ck-hero { border-right: 0; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .ck-funnels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ck-pair { grid-template-columns: 1fr; }
  .ck-funnels { grid-template-columns: 1fr; }
  .ck-mini { grid-template-columns: 1fr; }
  .ck-lr { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 4px; }
  .ck-lr .ck-lb { grid-column: 1 / -1; grid-row: 2; }
  .ck-lr .ck-ld { grid-column: 1 / -1; grid-row: 3; }
  .ck-li, .ck-win { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ck-nr { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .ck-hv { font-size: 44px; }
  .ck-rail { gap: 8px; }
  .ck-col { height: 110px; }
  .ck-tgt { width: 18px; } .ck-act { width: 10px; } .ck-prop { width: 30px; left: calc(50% - 15px); }
  .ck-mv { font-size: 11.5px; white-space: normal; }
  .ck-pv { font-size: 28px; }
  .ws { margin-left: 0; }
}

/* Executive layer (10-19, v3/exec.js): sub-brand bar, header scorecards, Executive views, Catch-up session */
.sbin { max-width: 1400px; margin: 0 auto; padding: 0 28px 10px; }
.sbbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.sbbar .pswitch { order: 0; }
.xs { margin-bottom: 14px; }
.xs-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.xs-c { background: var(--panel); padding: 10px 14px; min-width: 0; }
.xs-l { font: 600 11.5px/1.3 'Instrument Sans'; color: var(--mute); }
.xs-v { font: 500 23px/1.15 Newsreader, serif; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xs-n { font-size: 11.5px; color: var(--ink2); margin-top: 2px; overflow-wrap: anywhere; }
.xs-c.miss .xs-v { color: var(--mute); }
.xs-c.miss .xs-n { color: var(--warn); }
.xs-src { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11.5px; color: var(--mute); }
.xs-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink2); margin: 2px 0 12px; }
.xs-mini b { color: var(--ink); margin-right: 3px; }
.xs-mini .amber b { color: var(--warn); } .xs-mini .red b { color: var(--bad); } .xs-mini .green b { color: var(--good); }
.xcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.xcard { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; font: inherit; cursor: pointer; }
button.xcard:hover { border-color: var(--line2); }
div.xcard { cursor: default; }
.xcard.hot { border-color: #6A5020; }
.xcard-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.ck-cta { display: inline-flex; margin-top: 12px; }
/* Launches & gates */
.xg-t { display: inline-flex; align-items: center; gap: 8px; }
.xg-t i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.xg-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 12px; }
.xg-pct b { font: 500 28px/1 Newsreader, serif; }
.xg-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.xg-g { border-bottom: 1px solid var(--line); }
.xg-g summary { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; cursor: pointer; list-style: none; }
.xg-g summary::-webkit-details-marker { display: none; }
.xg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); align-self: center; }
.xg-gt { font-weight: 600; font-size: 13.5px; min-width: 0; }
.xg-meta { display: inline-flex; gap: 8px; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; }
.xg-note { padding: 0 0 10px 20px; white-space: pre-wrap; }
.xg-closed { margin-top: 10px; }
.xg-closed summary { cursor: pointer; color: var(--good); font-weight: 600; }
.xg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xg-chips .tag { white-space: normal; text-align: left; line-height: 1.3; }
/* Target MRR bullets */
.xb { margin: 10px 0 14px; }
.xb-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.xb-t { height: 12px; background: var(--line2); border-radius: 4px; overflow: hidden; }
.xb-t > span { display: block; height: 100%; background: var(--c1); border-radius: 4px; min-width: 0; }
/* Pricing decisions pending (not live) */
.xp-pending { margin-top: 14px; border-color: #6A5020; background: repeating-linear-gradient(135deg, var(--panel), var(--panel) 14px, #1E1C19 14px, #1E1C19 28px); }
/* Catch-up session */
.cu-head { display: flex; flex-direction: column; gap: 12px; }
.cu-prog { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.cu-big { font: 500 48px/1.05 Newsreader, serif; margin: 4px 0 2px; }
.cu-big .muted { font-size: 22px; }
.cu-kv dd { text-align: right; }
.cu-plan { display: flex; flex-wrap: wrap; gap: 6px; }
.cu-plan .chip b { color: var(--ink); }
.cu-keys b { color: var(--ink2); }
.cu-group .sub { margin-bottom: 4px; }
.cu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: 8px; }
.cu-row.cur { background: var(--panel2); box-shadow: inset 2px 0 0 var(--gold); }
.cu-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cu-h { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.cu-name { font-size: 14px; }
.cu-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cu-btns { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.cu-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cu-form .inp { flex: 1 1 260px; min-width: 0; }
.cu-form .cu-date { flex: 0 1 160px; }
/* Case study (sales asset) */
.xcase { display: flex; flex-direction: column; gap: 14px; }
.xcase-hero { padding: 26px 28px; background: linear-gradient(160deg, #221F1B, var(--panel) 60%); }
.xcase-k { font: 700 11px/1 'Instrument Sans'; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); }
.xcase-t { font: 500 32px/1.15 Newsreader, serif; margin: 10px 0 8px; max-width: 30ch; }
.xcase-p { color: var(--ink2); max-width: 70ch; margin: 0 0 18px; }
.xcase-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.xcase-s { border-top: 2px solid var(--gold); padding-top: 8px; min-width: 0; }
.xcase-v { font: 500 28px/1.1 Newsreader, serif; overflow-wrap: anywhere; }
.xcase-l { font-size: 12.5px; color: var(--ink2); }
.xcase-d { font-size: 11px; color: var(--mute); }
.xcase-c h4 { margin: 0 0 6px; }
@media (max-width: 1100px) {
  .xs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xcase-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .sbin { padding: 0 16px 10px; } }
@media (max-width: 700px) {
  .xs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xs-v { font-size: 20px; }
  .xg-top, .cu-prog { grid-template-columns: 1fr; gap: 10px; }
  .cu-row { grid-template-columns: minmax(0, 1fr); }
  .cu-btns { justify-content: flex-start; }
  .cu-btns .btn { min-height: 40px; }
  .xg-g summary { grid-template-columns: 10px minmax(0, 1fr); }
  .xg-meta { grid-column: 2; justify-content: flex-start; }
  .xcase-hero { padding: 20px 18px; }
  .xcase-t { font-size: 25px; }
  .xcase-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- broken and waiting states (10-20)
   One look for "this didn't load": an icon, what happened in plain words, the actions, the detail in small print. */
.lp-fail { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 20px; margin: 4px 0 14px; border: 1px solid #5A3A1E; border-radius: var(--r); background: linear-gradient(180deg, #2A2116 0%, var(--panel) 70%); }
.lp-fail.info { border-color: var(--line2); background: var(--panel); }
.lp-fail .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--warnbg); color: var(--warn); font: 700 18px/1 Newsreader, serif; border: 1px solid #6A5020; }
.lp-fail.info .ic { background: var(--infobg); color: var(--info); border-color: #2C3B57; }
.lp-fail .bd { min-width: 0; flex: 1; }
.lp-fail h2 { margin: 2px 0 6px; font: 500 21px/1.25 Newsreader, serif; color: var(--ink); }
.lp-fail p { margin: 0 0 14px; color: var(--ink2); font-size: 13.5px; line-height: 1.5; max-width: 62ch; }
.lp-fail .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-fail .acts .btn { min-height: 36px; text-decoration: none; }
.lp-fail .det { margin-top: 12px; font-size: 11.5px; color: var(--mute); overflow-wrap: anywhere; }
.lp-wait { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 12px; color: var(--ink2); font-size: 13px; border: 1px dashed var(--line2); border-radius: var(--r); margin-bottom: 12px; }
.lp-wait .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold); animation: lpspin .8s linear infinite; flex: none; }
@keyframes lpspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-wait .spin { animation: none; } }
.embed-head { align-items: center; }
.embed-open { text-decoration: none; }
@media (max-width: 520px) { .lp-fail { flex-direction: column; gap: 10px; padding: 18px 16px; } .lp-fail .acts .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; } .embed-open { width: 100%; justify-content: center; min-height: 44px; } }

/* ---------------------------------------------------------------- cold outbound funnel (Pipeline → Funnel) */
.coldfunnel { margin-bottom: 14px; }
.coldfunnel .fstrip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.cf-note { margin: -6px 0 12px; }
.cf-won { margin-top: 14px; }
.cf-won ul { margin: 6px 0 0; padding-left: 18px; }
.cf-won li { margin: 4px 0; overflow-wrap: anywhere; }
.cf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cf-k .fl { font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.cf-k .fv b { font: 500 24px/1.1 Newsreader, serif; }
.cf-k .nn { display: block; white-space: normal; margin-top: 2px; }
.cf-sub { margin-top: 14px; }
.cf-sub h3 { margin-bottom: 6px; }
@media (max-width: 1100px) { .cf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .coldfunnel .fstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Marketing: what to do next, freshness, scorecard */
.mk-brief { margin-bottom: 14px; }
.mk-ins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; background: var(--panel2); }
.mk-in.bad { border-left-color: var(--bad); } .mk-in.warn { border-left-color: var(--warn); } .mk-in.info { border-left-color: var(--info); } .mk-in.good { border-left-color: var(--good); }
.mk-in .tag { margin-top: 1px; min-width: 56px; justify-content: center; }
.mk-t { font-weight: 600; font-size: 13.5px; }
.mk-d { font-size: 12.5px; color: var(--ink2); margin-top: 2px; line-height: 1.45; }
.mk-n { padding-top: 2px; }
.mk-fl { list-style: none; margin: 0; padding: 0; }
.mk-fl li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.mk-fl li:first-child { border-top: 0; }
.mk-fl-l { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.mk-score .nm { font-size: 12px; font-style: italic; }
@media (max-width: 520px) { .mk-in { grid-template-columns: minmax(0, 1fr) auto; } .mk-in .tag { grid-column: 1; justify-self: start; } .mk-in .mk-tx { grid-column: 1 / -1; } .mk-in .mk-n { grid-row: 1; grid-column: 2; } }

/* Revenue picture (v3/revpic.js): one model behind every revenue number, with its definitions. */
.rv h3.rv-k { margin: 0 0 8px; font: 700 11px/1.2 'Instrument Sans'; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.rv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 6px; }
.rv-col { min-width: 0; }
.rv-row { margin-bottom: 14px; }
.rv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rv-v { font: 500 24px/1.1 Newsreader, serif; color: var(--ink); white-space: nowrap; }
.rv-bar { position: relative; display: flex; gap: 2px; height: 14px; border-radius: 4px; background: var(--line); overflow: visible; }
.rv-bar > span { display: block; height: 100%; min-width: 2px; }
.rv-bar > span:first-child { border-radius: 4px 0 0 4px; }
.rv-tgt { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.rv-tgt-key { display: inline-block; width: 2px !important; height: 12px !important; background: var(--ink); margin-right: 6px; vertical-align: -2px; }
.rv-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 6px; font-size: 13px; }
.rv-figs > div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; color: var(--ink2); }
.rv-figs > div > span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rv-l { display: inline-flex; align-items: center; gap: 4px; }
.rv-def { position: relative; display: inline-flex; }
.rv-q { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--mute); font: 700 10px/1 'Instrument Sans'; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rv-q:hover, .rv-q[aria-expanded="true"] { color: var(--ink); border-color: var(--ink2); }
.rv-pop { position: absolute; top: 22px; left: -8px; z-index: 30; width: min(300px, 80vw); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); font: 500 12.5px/1.45 'Instrument Sans'; color: var(--ink2); text-transform: none; letter-spacing: 0; white-space: normal; text-align: left; }
.rv-pop b { color: var(--ink); }
.rv-deflist { margin-top: 10px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; max-height: 360px; overflow: auto; }
.rv-deflist dl { margin: 0; display: grid; gap: 8px; } .rv-deflist dt { font-weight: 700; color: var(--ink); } .rv-deflist dd { margin: 2px 0 0; font-size: 12.5px; color: var(--ink2); }
.rv-defs { display: inline-flex; flex-direction: column; align-items: flex-end; }
.rv-foot { margin-top: 8px; }
@media (max-width: 760px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-figs { grid-template-columns: 1fr; }
  .rv-pop { position: fixed; top: auto; left: 16px; right: 16px; bottom: 16px; width: auto; }
  .rv-defs { align-items: stretch; }
}
/* Follow-up SLA line on the Command board (v3/sla.js). The box edge carries the state; the text keeps its own colors. */
.sla-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-left-width: 4px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.sla-line.red { border-left-color: var(--bad); } .sla-line.green { border-left-color: var(--good); }
.sla-line a { margin-left: auto; }

/* Act now (W6, v3/act-now-view.js): the first card on the homepage. */
.an { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,154,75,.25); margin-bottom: 16px; }
.an .hrow .sp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.an-pill { font: 700 11px/1 'Instrument Sans'; padding: 4px 8px; border-radius: 999px; background: var(--line); color: var(--ink2); }
.an-pill.good { background: var(--goodbg); color: var(--good); } .an-pill.bad { background: var(--badbg); color: var(--bad); }
.an-pill.new, .an-new { background: var(--gold); color: #161616; }
.an-new { font: 800 10px/1 'Instrument Sans'; letter-spacing: .08em; padding: 4px 7px; border-radius: 999px; }
.an-list { display: flex; flex-direction: column; }
.an-head, .an-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 170px 92px 230px; gap: 12px; align-items: center; }
.an-head { padding: 0 12px 6px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.an-tier { font: 700 10.5px/1 'Instrument Sans'; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 12px 12px 6px; }
.an-row { padding: 10px 12px; border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.an-row.t1 { border-left-color: var(--good); background: rgba(126,211,155,.05); }
.an-row.t2 { border-left-color: var(--bad); }
.an-row.new { background: rgba(201,154,75,.09); }
.an-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.an-title { font-weight: 600; color: var(--ink); }
.an-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-clock.bad { color: var(--bad); font-weight: 700; } .an-clock.warn { color: var(--warn); font-weight: 600; }
.an-usd { font-weight: 700; }
.an-act { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.an-unsaved { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: 8px; background: var(--badbg); color: var(--bad); }
.an-more { margin-top: 10px; }
.an-push { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.an-push textarea { width: 100%; margin-top: 6px; }
@media (max-width: 900px) {
  .an-head { display: none; }
  .an-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'what what' 'when usd' 'clock clock' 'act act'; gap: 6px 10px; }
  .an-what { grid-area: what; } .an-when { grid-area: when; } .an-usd { grid-area: usd; text-align: right; } .an-clock { grid-area: clock; } .an-act { grid-area: act; justify-content: flex-start; }
  .an-act .btn { min-height: 44px; }
  .an-detail { white-space: normal; }
}
.an-divider { margin: 18px 0 4px; padding: 10px 12px 6px; border-top: 2px solid var(--line2); font: 500 17px/1.2 Newsreader, serif; color: var(--ink); }
.an-uns { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; width: 100%; }
.an-uns.fix textarea { width: 100%; min-height: 64px; }
.an-late { margin-left: 8px; }
.an-act { min-width: 0; } .an-act .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Revenue engine (v3/engine.js): counts stay on one line; the play column wraps. */
.engine table.t td { white-space: nowrap; vertical-align: top; }
.engine table.t td:first-child { white-space: normal; min-width: 230px; max-width: 320px; }
@media (max-width: 520px) { .engine table.t td:first-child { min-width: 180px; } }
.engine table.t td .l2 { white-space: normal; }

/* Launch board · remaining items with who does them (strategy.js Remaining, 10-27) */
.lr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.lr-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: start; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.lr-row:first-of-type { border-top: 0; }
.lr-row .tag { justify-self: start; }

/* Follow-ups · send load per mailbox (app.js SendTable, v3/send-load.js, 10-27) */
.sl-auto { margin-bottom: 10px; }
.sl-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
table.sl-tbl th, table.sl-tbl td { padding: 6px 8px; font-variant-numeric: tabular-nums; cursor: default; }
table.sl-tbl th:first-child, table.sl-tbl td:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; }
table.sl-tbl .sl-today { background: rgba(255,255,255,.04); }
table.sl-tbl th.sl-exp, table.sl-tbl td.sl-exp { font-style: italic; }
table.sl-tbl tr.sl-tot td { border-top: 1px solid var(--line2); }

/* Growth → Content: posts with their images (v3/content-view.js, 10-27) */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ct-strip { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ct-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel2); display: flex; flex-direction: column; min-width: 0; }
.ct-thumb { display: block; aspect-ratio: 1 / 1; background: #0E0E0D; border-bottom: 1px solid var(--line); }
.ct-thumb.wide { aspect-ratio: 1200 / 627; }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-thumb.ct-none { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; border: 2px dashed #6A5020; border-radius: 12px 12px 0 0; background: repeating-linear-gradient(45deg, #1D1A15, #1D1A15 10px, #221E17 10px, #221E17 20px); color: var(--warn); font: 700 12px/1.3 'Instrument Sans'; letter-spacing: .04em; text-transform: uppercase; }
.ct-thumb.ct-none.media { border-color: var(--line2); color: var(--ink2); }
.ct-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ct-cap { font-size: 13px; line-height: 1.45; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ct-cap.clamp5 { -webkit-line-clamp: 5; } .ct-cap.clamp3 { -webkit-line-clamp: 3; }
.ct-li { align-self: flex-start; }
.ct-card.compact .ct-body { padding: 8px; gap: 4px; }
.ct-cal { display: flex; flex-direction: column; gap: 10px; }
.ct-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ct-day { border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-height: 90px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-day.today { border-color: var(--warn); }
.ct-dh { font-size: 12px; }
.ct-day .ct-card.compact .ct-thumb.ct-none { font-size: 10px; padding: 6px; }
@media (max-width: 760px) {
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ct-week { grid-template-columns: 1fr; }
  .ct-day.empty-day { display: none; }
  .ct-day { min-height: 0; }
  .ct-day .ct-card.compact { flex-direction: row; }
  .ct-day .ct-card.compact .ct-thumb { width: 96px; flex: 0 0 96px; height: 96px; align-self: flex-start; border-bottom: 0; border-right: 1px solid var(--line); }
  .ct-day .ct-card.compact .ct-thumb.ct-none { border-radius: 12px 0 0 12px; }
}
.ap-post .ct-thumb { margin: -2px 0 10px; border-radius: 10px; border: 1px solid var(--line); max-height: 260px; aspect-ratio: auto; }
.ap-post .ct-thumb img { max-height: 260px; object-fit: contain; }
.ap-post .ct-thumb.ct-none { min-height: 90px; }

/* Revenue picture · how sure the forecast is (revpic.js Sure, 10-27) */
.rv-method { margin: 4px 0 10px; }
.rv-sure { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; overflow-x: auto; }
.rv-sure-t td, .rv-sure-t th { padding: 6px 8px; }

/* Purchases strip (v3/purchases-view.js, 10-27) */
.pu-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.pu-t { margin-top: 4px; }
.pu-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.pu-p { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pu-p[data-status="not sending"] { border-color: #7A3A30; }
@media (max-width: 760px) { .pu-t th:nth-child(5), .pu-t td:nth-child(5) { min-width: 120px; } .pu { overflow-x: auto; } }

/* Freshness guard (v4 PR 2): a view past its SLA says so above its figures. */
.staleban { margin: 8px 2px 0; padding: 8px 12px; border: 1px solid var(--bad); border-left-width: 4px; border-radius: 8px; background: var(--badbg); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.staleban b { color: var(--bad); margin-right: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
/* Stale guard (10-29): the banner stays in view while the page scrolls; figures under it are dimmed, never current. */
.staleban { position: sticky; top: 0; z-index: 5; }
.staleban ul { margin: 4px 0 4px 18px; padding: 0; }
.staleban li { margin: 2px 0; }
.staleban .sbw { color: var(--ink2); }
.asof { margin: 6px 2px 0; font-size: 12px; color: var(--ink2); }
.page.is-stale .x4v, .page.is-stale .ck-pv, .page.is-stale .dk-big .v, .page.is-stale .xs-v, .page.is-stale .cu-big { opacity: .55; }

/* Executive summary (v4 PR 3, v3/exec4.js): five numbers per business, each with its denominator and as-of time. */
.x4 { display: grid; gap: 16px; }
.x4grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.x4grid.one { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.x4n { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.x4l { font-size: 12px; color: var(--ink2); }
.x4v { font-size: 22px; font-variant-numeric: proportional-nums; margin-top: 2px; overflow-wrap: anywhere; }
.x4of { font-size: 13px; color: var(--mute); }
.x4x { font-size: 12px; margin-top: 4px; }
.x4a { font-size: 11px; color: var(--mute); margin-top: 6px; }
.x4n .tag { margin-top: 6px; display: inline-block; }
.x4biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.x4list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.x4list li { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .x4grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .x4biz { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .x4grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .x4biz { grid-template-columns: minmax(0, 1fr); } .x4v { font-size: 20px; } }

/* Runner health (v3/runner-health.js, Today): a dot per recurring job, last proof and backup status. */
.rh { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.rhh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.rhc { display: inline-flex; align-items: center; gap: 5px; }
.rhq { color: var(--bad); font-weight: 600; }
.rhg { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: start; }
.rhgl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); padding-top: 5px; }
.rhrow { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rhi { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 12px; max-width: 100%; }
.rhi.red { border-color: var(--bad); background: var(--badbg); }
.rhi.gray { opacity: .65; }
.rhn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rhp { color: var(--mute); font-size: 11px; white-space: nowrap; }
.rhb { font-size: 10.5px; border-radius: 6px; padding: 0 6px; background: var(--line); white-space: nowrap; }
.rhb.queued, .rhb.claimed { background: #f59e0b; color: #1a1300; }
.rhb.done { background: #16a34a; color: #fff; }
.rhd { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #9ca3af; }
.rhd.green { background: #16a34a; } .rhd.amber { background: #f59e0b; } .rhd.red { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
@media (max-width: 640px) { .rhg { grid-template-columns: minmax(0, 1fr); gap: 4px; } .rhn { max-width: 150px; } }

/* Strategy (v4 PR 4, v3/strategy4.js): recommendations, then plan → indicators → moves per business. */
.s4 { display: grid; gap: 16px; }
.s4chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.s4c { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.s4tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.s4list, .s4ind, .s4mv { margin: 0; padding-left: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.s4list > li { overflow-wrap: anywhere; }
.s4ind, .s4mv { padding-left: 0; list-style: none; }
.s4r .s4rh { overflow-wrap: anywhere; }
.s4empty { margin: 4px 0 0; }
.s4cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 20px; }
.s4cols li, .s4cols .s4p { overflow-wrap: anywhere; }
.s4h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin: 0 0 8px; }
.s4p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.s4p .small { grid-column: 1 / -1; }
@media (max-width: 1000px) { .s4cols { grid-template-columns: minmax(0, 1fr); } }
.s4gap { margin: 8px 0 4px; }

/* Data maturity (v4 PR 5, v3/data4.js): per source connected / fresh / trusted, gaps, rollout, files, systems. */
.dm { display: grid; gap: 16px; }
.dm-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
ul.dm-list[data-dm="sources"] { padding-left: 0; list-style: none; gap: 12px; }
.dm-s { border-bottom: 1px solid var(--line); padding-bottom: 10px; overflow-wrap: anywhere; }
.dm-sh { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.dm-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dm-why { margin-top: 4px; color: var(--bad); }
.dm-list li { overflow-wrap: anywhere; }
@media (max-width: 900px) { .dm-two { grid-template-columns: minmax(0, 1fr); } }
/* Playbooks (v3/playbooks.js): our own products' playbooks, each rate with its n. */
.pbrules, .pbsteps { margin: 0 0 10px; padding-left: 18px; }
.pbrules li, .pbsteps li { margin: 3px 0; overflow-wrap: anywhere; }
.pbc { white-space: nowrap; }
table.t tr.pbtot td { border-top: 2px solid var(--line); }
table.t tr.pbplays td { padding-top: 0; }
.pb { display: grid; gap: 16px; }
/* Strategy benchmark + data strategy, Product (v4 PR 4b) */
.s4bt { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.s4bench { display: grid; gap: 10px; min-width: 0; }
.s4bhead { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.s4seg { flex-wrap: wrap; }
.s4mx { max-height: 520px; overflow: auto; }
.s4mx table.t td, .s4mx table.t th { font-size: 12.5px; }
.s4mx table.t td:first-child { min-width: 120px; }
.s4lv { white-space: nowrap; }
.s4lv .small { white-space: normal; min-width: 140px; }
.s4lv a { color: inherit; }
.s4lv-have { color: var(--good); font-weight: 600; }
.s4lv-lack { color: var(--bad); }
.s4unv { font-style: italic; opacity: .7; }
.s4bcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.s4said { margin: 0; padding-left: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.s4said li, .s4sum, .s4hyp, .s4amt { overflow-wrap: anywhere; }
.s4hyp ul { margin: 4px 0 0; padding-left: 18px; }
.s4data .tw table.t td { overflow-wrap: anywhere; min-width: 90px; }
@media (max-width: 1000px) { .s4bcols { grid-template-columns: minmax(0, 1fr); } }
.pr4 { display: grid; gap: 16px; }
.prlist { margin: 0; padding-left: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.prp { overflow-wrap: anywhere; }
.prh { margin-bottom: 2px; }
.prdl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 12px; margin: 6px 0 0; }
.prdl dt { color: var(--mute); font-size: 12.5px; }
.prdl dd { margin: 0; min-width: 0; }
.prbeats { margin: 0; padding-left: 16px; }
@media (max-width: 700px) { .prdl { grid-template-columns: minmax(0, 1fr); } .prdl dd { margin-bottom: 4px; } }
/* Client cockpit (v3/client.js, #/client/<id> and client.html): one pod client's pipeline, outreach and launch. */
.cl { display: grid; gap: 16px; }
.clkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.clkpis > div { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.clkpis b { font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .clkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clgates { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.clgates li { overflow-wrap: anywhere; }
.clgates li .small { margin-left: 6px; }
.clstale { margin: 0 0 10px; }
.clsa { max-width: 1100px; margin: 0 auto; padding: 16px; }
.cl table.t td { white-space: nowrap; }
.cl table.t td:first-child { white-space: normal; }

/* Decide (v5-B1, v3/decide.js) */
.dc-sec { margin-bottom: 16px; }
.dc-sec > summary { cursor: pointer; list-style: none; }
.dc-sec > summary::-webkit-details-marker { display: none; }
.dc-sec > summary h2::before { content: '▸ '; color: var(--mute); }
.dc-sec[open] > summary h2::before { content: '▾ '; }
.dc-sec > summary h2 { display: inline; }
.dc-card { border-top: 1px solid var(--line); border-left: 3px solid transparent; padding: 12px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 140px; min-width: 0; }
.dc-card.late { border-left-color: var(--bad); }
.dc-card.on { border-left-color: var(--gold); background: var(--panel2); outline: none; }
.dc-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dc-card .dc-t { margin: 0; font: 600 15px/1.3 'Instrument Sans', sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink); flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.dc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; margin: 0; font-size: 12.5px; }
.dc-meta dt { color: var(--mute); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.dc-meta dd { margin: 0; overflow-wrap: anywhere; }
.dc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-btns .btn { max-width: 100%; white-space: normal; text-align: left; }
/* Decide actions (10-29): A/B/C, line picks, the task's inline action and the result in place */
.dc-abc .dc-opt b { display: inline-block; min-width: 1.4em; text-align: center; margin-right: 4px; padding: 0 4px; border-radius: 4px; color: inherit; background: color-mix(in srgb, currentColor 16%, transparent); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.dc-opt.on { border-color: var(--gold); }
.dc-abc .dc-rec { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .85; white-space: nowrap; }
.dc-card:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.dc-pending { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--gold); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.dc-proof > summary { cursor: pointer; }
.dc-proof[open] { display: flex; flex-direction: column; gap: 8px; }
.dc-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 61; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; background: var(--panel2); color: var(--ink); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px 12px; font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow: hidden; overflow-wrap: anywhere; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dc-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; animation: dc-grace linear forwards; }
@keyframes dc-grace { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .dc-toast-bar { animation: none; } }
.dc-picks { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.dc-pg { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dc-pl { display: flex; gap: 6px; align-items: flex-start; overflow-wrap: anywhere; }
.dc-pl input { margin-top: 3px; flex: none; }
.dc-task { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dc-task .dc-links .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.dc-steps { overflow-wrap: anywhere; }
.dc-fl { display: flex; flex-direction: column; gap: 4px; }
.dc-fl .inp { width: 100%; box-sizing: border-box; }
.dc-result { border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.dc-card.dc-closed { opacity: .92; }
@media (max-width: 520px) { .dc-btns .btn { min-height: 44px; } .dc-picks { max-height: 60vh; } }
.dc-links { display: flex; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.dc-sum .pre { max-height: 240px; overflow: auto; }
.dc-done .li { overflow-wrap: anywhere; }
@media (max-width: 720px) { .dc-meta { grid-template-columns: minmax(0, 1fr); } }
/* Decide dependencies and the Friday chain (v5-B2) */
.dc-depgrid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 8px; }
.dc-graph { width: 100%; max-width: 420px; height: auto; display: block; }
.dc-graph .dc-gt { fill: var(--ink); font: 500 11.5px 'Instrument Sans', sans-serif; }
.dc-graph .dc-gt.b { font-weight: 700; }
.dc-graph .dc-gh { fill: var(--mute); font: 700 10px 'Instrument Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.dc-dl { margin: 4px 0 10px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dc-dl li { overflow-wrap: anywhere; }
.dc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.dc-chain { border-color: var(--gold); margin-bottom: 16px; }
.dc-legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dc-leg { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.dc-leg h3 { margin: 0; }
.dc-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dc-need { margin-top: 12px; }
@media (max-width: 900px) { .dc-depgrid, .dc-legs { grid-template-columns: minmax(0, 1fr); } }
/* Executive → Marketing and Sales dashboards (v3/mktsales.js, 10-29) */
.x4dash { display: flex; flex-wrap: wrap; gap: 8px; }
.msd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.msd > * { grid-column: 1 / -1; min-width: 0; } /* v8 QA 11-01: s12 spans made 12 implicit tracks; a chart measured 0 and drew 640 px at 390 */
/* v8 P1: a card heading's product label wraps instead of pushing the Launch board 94px wide (strategy.js LaunchBoard) */
.hrow h2 .pd { white-space: normal; flex-wrap: wrap; min-width: 0; }
.ms-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ms-list li { overflow-wrap: anywhere; }
ul.ms-list[data-ms="won"], ul.ms-list[data-ms="lost"] { padding-left: 18px; list-style: disc; gap: 8px; }
.ms-t { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.ms-th { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ms-why { margin-top: 4px; color: var(--bad); }
.ms-warn { margin-top: 4px; color: var(--warn); overflow-wrap: anywhere; }
.ms-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-size: 13px; }
.ms-three { margin: 6px 0; }
.ms-l { font: 700 10.5px/1.2 'Instrument Sans'; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.ms-top { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.ms-k { overflow-wrap: anywhere; }
.msd .tw { overflow-x: auto; }
@media (max-width: 900px) { .ms-three, .ms-two { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Visuals (10-29, v3/viz5.js)
   One chart palette for the whole Launchpad, dark (default) and light (data-theme="light", the sidebar's theme switch).
   Validated with the dataviz skill's validate_palette.js against each card surface (dark #1A1918, light #FCFBF8):
   categorical slots 1-7 pass every gate in both modes (light: aqua, yellow and magenta sit under 3:1, so every chart
   carries visible labels and a Details table); the funnel's ordinal ramp passes --ordinal in both. Status colors
   only mean state and always ship with their icon and label. */
:root {
  --v-s1: #3987e5; --v-s2: #d95926; --v-s3: #199e70; --v-s4: #c98500; --v-s5: #d55181; --v-s6: #008300; --v-s7: #9085e9;
  --v-o1: #86b6ef; --v-o2: #3987e5; --v-o3: #1c5cab;
  --v-good: #0ca30c; --v-warn: #fab219; --v-serious: #ec835a; --v-crit: #d03b3b;
  --v-grid: #2c2c2a; --v-axis: #383835; --v-track: #3a3833; --v-trend: #8E877C;
  --sidebg: #151514;
}
:root[data-theme="light"] {
  color-scheme: light; --on-gold: #FFFFFF;
  --bg: #F6F4EF; --panel: #FCFBF8; --panel2: #F1EEE7; --line: #E3DFD6; --line2: #D3CEC3;
  --ink: #1B1A18; --ink2: #4F4B45; --mute: #6F6A62; --gold: #8A6420; --gold2: #7A581B;
  --good: #1F7A43; --goodbg: #DFF0E5; --warn: #8A5A00; --warnbg: #FBEFD5; --bad: #B3362B; --badbg: #F8E1DE; --info: #2A5DB0; --infobg: #E2EAF8;
  --v-s1: #2a78d6; --v-s2: #eb6834; --v-s3: #1baf7a; --v-s4: #eda100; --v-s5: #e87ba4; --v-s6: #008300; --v-s7: #6250d6;
  --v-o1: #86b6ef; --v-o2: #2a78d6; --v-o3: #184f95;
  --v-grid: #e1e0d9; --v-axis: #c3c2b7; --v-track: #e4e1d9; --v-trend: #898781;
}
:root[data-theme="light"] .tip, :root[data-theme="light"] .v5tip { background: #FFFFFF; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.v5tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.v5tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.v5tl { font-size: 12px; color: var(--ink2); }
.v5tv { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 2px; overflow-wrap: anywhere; }
.v5of { display: block; font-size: 12px; font-weight: 400; color: var(--ink2); line-height: 1.35; }
.v5spark { display: block; margin-top: 6px; overflow: visible; }
.v5ta { font-size: 11px; color: var(--mute); margin-top: 4px; }
.v5chart { position: relative; min-width: 0; }
.v5chart svg { display: block; overflow: visible; }
.v5ax { font-size: 11px; fill: var(--mute); font-variant-numeric: tabular-nums; }
.v5lab { font-size: 12px; fill: var(--ink2); }
.v5val { font-size: 12px; fill: var(--ink); font-weight: 600; }
.v5mut, .v5val .v5mut { font-size: 11px; fill: var(--mute); color: var(--mute); font-weight: 400; }
.v5h { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.v5h2 { font-size: 12px; fill: var(--ink); font-weight: 600; }
.v5dn { font-size: 24px; fill: var(--ink); font-weight: 600; }
.v5leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink2); margin-top: 8px; }
.v5leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.v5leg i.ring { border: 2px solid var(--ink2); border-radius: 50%; }
.v5leg i.tick { width: 2px; height: 12px; border-radius: 0; background: var(--ink); vertical-align: -2px; }
.v5tip { position: absolute; z-index: 6; pointer-events: none; background: #0E0E0D; color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font-size: 12px; max-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.v5tip .b { font-weight: 600; }
.v5grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px 22px; }
.v5donut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.v5donut .v5ta { flex-basis: 100%; }
.v5dl { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.v5dl li { margin: 3px 0; }
.v5dl i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.v5ic { font-size: 10px; color: var(--ink2); }
.v5d { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.v5d > summary { cursor: pointer; font-size: 12px; color: var(--ink2); }
.v5d[open] > summary { margin-bottom: 8px; }
.v5two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.themesw { background: none; border: 1px solid var(--line2); border-radius: 8px; padding: 3px 8px; font-size: 12px; color: var(--ink2); cursor: pointer; margin: 6px 0; }
@media (max-width: 900px) { .v5tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v5two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .v5tv { font-size: 22px; } .v5grid { grid-template-columns: minmax(0, 1fr); } }
.v5nospark { height: 30px; margin-top: 6px; font-size: 11px; color: var(--mute); display: flex; align-items: center; }
.v5tile.red { border-color: var(--bad); }
/* Light theme: the chrome and the few surfaces drawn with fixed dark colors. */
:root[data-theme="light"] { --sidebg: #EFECE5; }
:root[data-theme="light"] .side, :root[data-theme="light"] .mtop, :root[data-theme="light"] .areabar { background: var(--sidebg); }
:root[data-theme="light"] .top { background: rgba(246,244,239,.94); }
:root[data-theme="light"] .nav.on, :root[data-theme="light"] .nav.child.on, :root[data-theme="light"] table.t tr.sel td { background: #E6DFD0; }
:root[data-theme="light"] .search .res div:hover, :root[data-theme="light"] table.t tr.row:hover td { background: #EEEAE2; }
:root[data-theme="light"] .chip.on { color: #FCFBF8; }
:root[data-theme="light"] .drawer { background: #FCFBF8; }
:root[data-theme="light"] .toast, :root[data-theme="light"] .ct-thumb { background: #FFFFFF; }
:root[data-theme="light"] .hbt, :root[data-theme="light"] .ft, :root[data-theme="light"] .vf-track, :root[data-theme="light"] .ck-meter, :root[data-theme="light"] .ck-ft, :root[data-theme="light"] .fsb, :root[data-theme="light"] .goalbar, :root[data-theme="light"] .bcol { background: #ECE8E0; }
:root[data-theme="light"] .hbt .trk { background: #D3CEC3; }
:root[data-theme="light"] .tag.gold, :root[data-theme="light"] .box.q, :root[data-theme="light"] .tl-item.d-in .tl-dot { background: #F4E9D3; }
:root[data-theme="light"] .callout, :root[data-theme="light"] .dk-ins, :root[data-theme="light"] .tl-reply { background: #F7EFDF; border-color: #C9A96A; }
:root[data-theme="light"] .agent.bad { background: #FBEDEA; border-color: #E2A79F; }
:root[data-theme="light"] .subnav .ct.hot, :root[data-theme="light"] .abtn .ct.hot, :root[data-theme="light"] .nav.area .ct.hot, :root[data-theme="light"] .secnav .chip .ct.hot { color: #FCFBF8; }
:root[data-theme="light"] .pswitch button.on, :root[data-theme="light"] .abtn.on { color: #FCFBF8; }
.v5d > .tw { margin: 0; padding: 0; max-width: 100%; }
/* Revenue → Content → Articles (v3/articles.js, 10-29): per brand stats, blockers and a grid of article cards. */
.art { display: flex; flex-direction: column; gap: 14px; }
.art-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.art-stat { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.art-stat b { font-size: 22px; line-height: 1.1; }
.art-cnt { display: inline-block; margin: 2px 4px 0 0; }
.art-blk { list-style: none; margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--bad); border-radius: 8px; background: var(--badbg); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.art-queue { margin: 0 0 10px; overflow-wrap: anywhere; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.art-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.art-card[data-arts="published"] { border-color: var(--good); }
.art-card[data-arts="failed"] { border-color: var(--bad); }
.art-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.art-title { margin: 0; font-size: 14px; line-height: 1.3; color: var(--ink); }
.art-why { border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 520px) { .art-stats { grid-template-columns: 1fr 1fr; } .art-stats > :last-child { grid-column: 1 / -1; } .art-grid { grid-template-columns: 1fr; } }

/* Chart and KPI kit (v3/kit.js, 10-29): tiles, funnel bars with stage conversion, small multiples, ranked bars,
   planned vs actual, the insights rail and the not-measured chip. Colors are the --v-* tokens above. */
.k-page { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.k-page > .card, .k-main > .card, .k-two > .card { margin: 0; }
.k-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.k-tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.k-tl { font-size: 12px; color: var(--ink2); }
.k-tv { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.k-tvnm { color: var(--mute); }
.k-of { font-size: 12px; font-weight: 400; color: var(--ink2); }
.k-delta { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.k-delta.good { color: var(--v-good); } .k-delta.bad { color: var(--v-crit); }
.k-spark { display: block; margin-top: 6px; overflow: visible; max-width: 100%; }
.k-ta { font-size: 11px; color: var(--mute); margin-top: 4px; }
.k-mut { font-size: 11px; color: var(--mute); font-weight: 400; }
.k-sub { font-size: 12px; color: var(--ink2); margin: 4px 0 6px; font-weight: 600; }
.k-sub ~ .k-sub { margin-top: 14px; }
.k-nm { display: inline-block; max-width: 100%; font-size: 11px; line-height: 1.35; color: var(--ink2); border: 1px dashed var(--line2); border-radius: 999px; padding: 2px 8px; margin-top: 4px; overflow-wrap: anywhere; }
.k-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.k-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.k-funnel { position: relative; min-width: 0; }
.k-frow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.k-flab { display: flex; flex-direction: column; flex: none; font-size: 13px; }
.k-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; flex: 1; }
.k-fbar svg { display: block; flex: 1 1 60px; min-width: 60px; max-width: 100%; }
.k-fval { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.k-fcap { flex-basis: 100%; font-size: 12px; }
.k-conv { font-size: 12px; margin: 4px 0 4px 0; padding-left: 12px; border-left: 2px solid var(--v-axis); }
.k-convr { font-weight: 600; font-variant-numeric: tabular-nums; }
.k-funnel.compact .k-fstage { margin-bottom: 2px; }
.k-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 22px; }
.k-sms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 22px; }
.k-sm { position: relative; min-width: 0; }
.k-sm svg { display: block; overflow: visible; }
.k-smh { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink2); margin-bottom: 2px; }
.k-smh b { color: var(--ink); font-variant-numeric: tabular-nums; }
.k-hbars { position: relative; min-width: 0; }
.k-hrow { display: flex; align-items: center; gap: 8px; margin: 4px 0; min-width: 0; }
.k-hrow.narrow { flex-wrap: wrap; gap: 2px 8px; }
.k-hrow.narrow .k-hlab { flex-basis: 100%; }
.k-hlab { flex: none; font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-hrow svg { display: block; flex: 0 1 auto; }
.k-hval { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-rail { min-width: 0; }
.k-insl { list-style: none; margin: 0; padding: 0; }
.k-ins { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.k-ins:first-child { border-top: 0; padding-top: 0; }
.k-sev { font-size: 11px; line-height: 1.6; }
.k-ins.crit .k-sev { color: var(--v-crit); } .k-ins.warn .k-sev { color: var(--v-warn); } .k-ins.good .k-sev { color: var(--v-good); }
.k-it { overflow-wrap: anywhere; }
.k-own { grid-column: 2; font-size: 11px; color: var(--ink2); }
@media (max-width: 900px) { .k-main, .k-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .k-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k-tv { font-size: 22px; } .k-flab { width: 96px !important; } }
/* Executive and Today (v3/exec5.js, 10-29): Decisions this week, what's working / not. */
.k-dec { list-style: none; margin: 0; padding: 0; }
.k-decr { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.k-decr:first-child { border-top: 0; padding-top: 0; }
.k-decr.late { box-shadow: inset 3px 0 0 var(--v-crit); padding-left: 10px; }
.k-dech { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.k-decn { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--v-track); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.k-dect { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.k-decm { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; margin: 4px 0 6px 26px; font-variant-numeric: tabular-nums; }
.k-deca { margin-left: 26px; }
.k-deca .dc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.k-deca .dc-btns .btn { white-space: normal; text-align: left; max-width: 100%; }
.k-wn { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 22px; }
.k-wnb { min-width: 0; }
.k-wnl { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.45; }
.k-wnl li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; padding: 3px 0; overflow-wrap: anywhere; }
.k-wnl li.good > span { color: var(--v-good); } .k-wnl li.bad > span { color: var(--v-crit); }
.k-wnl li.k-mut { display: block; }
.srcd { margin: 0 0 12px; font-size: 12px; color: var(--ink2); }
.srcd > summary { cursor: pointer; }
.srcd[open] > summary { margin-bottom: 6px; }
/* Surface lead (v3/surface-lead.js, PR 3): tiles and the insights rail ahead of a surface's own charts. */
.k-lead { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; min-width: 0; }
.k-lead > .card { margin: 0; }
/* Data → Analytics (v3/analytics.js, 10-31): range bar, the "No data yet" state and five tiles. Tokens only. */
.an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.an-bar .sp { flex: 1; }
.an-gaps { display: flex; flex-wrap: wrap; gap: 6px; }
.an-empty { font-size: 12px; color: var(--ink2); border: 1px dashed var(--line2); border-radius: var(--r); padding: 10px 12px; overflow-wrap: anywhere; }
.an-empty.small { padding: 6px 8px; font-size: 11px; }
.an .v5tiles.an-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.an .k-two > .card, .an .v5two > .card { margin: 0; min-width: 0; }
@media (max-width: 1100px) { .an .v5tiles.an-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .an .v5tiles.an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Scoreboard (v3/scoreboard.js, 10-31): progress to $1M, launch bars with the blocked-on chip; one-line cards. */
.sb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sb-grid > .card { margin: 0; min-width: 0; }
.sb-big { font-size: 13px; margin-bottom: 8px; } .sb-big b { font-size: 26px; font-weight: 600; }
.sb-launch { display: grid; grid-template-columns: minmax(96px, 150px) minmax(60px, 1fr) auto 92px auto; align-items: center; gap: 6px 10px; }
.sb-launch > .v5leg { grid-column: 1 / -1; }
.sb-row { display: contents; font-size: 12px; cursor: pointer; }
.sb-row > * { font-size: 12px; cursor: pointer; min-width: 0; }
.sb-name { display: flex; align-items: center; gap: 6px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-name i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sb-bar { height: 10px; border-radius: 4px; background: var(--v-track); overflow: hidden; }
.sb-bar > span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.sb-pct { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sb-who { display: flex; flex-wrap: nowrap; gap: 4px; justify-content: flex-end; }
.sb-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; margin-top: 12px; font-size: 12px; }
.sb-plist > span { display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.sb-chip { border: 1px solid var(--line2); border-radius: 999px; padding: 1px 7px; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.sb-chip.owner { border-color: var(--v-crit); color: var(--ink); } .sb-chip.owner > span { color: var(--v-crit); }
.sb-chip.external > span { color: var(--v-warn); } .sb-chip.builder > span { color: var(--v-s1); }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.clamp1.open { display: block; -webkit-line-clamp: unset; }
.k-dec.compact .k-decr { padding: 6px 0; }
.k-dec.compact .k-dect { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.k-dec.compact .k-decm { margin: 2px 0 0 26px; }
details.lc-d > summary { cursor: pointer; list-style: none; margin: 0; }
details.lc-d > summary::-webkit-details-marker { display: none; }
details.lc-d[open] > summary { margin-bottom: 8px; }
@media (max-width: 900px) { .sb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sb-launch { grid-template-columns: 96px minmax(40px, 1fr) auto; } .sb-when { display: none; } .sb-who { grid-column: 1 / -1; justify-content: flex-start; margin-bottom: 4px; } }

/* ---------------------------------------------------------------- Marketing report (11-01, v3/mkt-report.js)
   GA4-style overview on Executive → Marketing. Chart colors are the --v-* tokens above (dark and light); text stays
   in ink tokens; status shows its icon and label, never color alone. */
.mr { display: grid; gap: 14px; margin-bottom: 18px; min-width: 0; }
.mr-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; position: sticky; top: 0; z-index: 5; }
.mr-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.mr-sel select, .mr-dates input { background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
.mr-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.mr-seg button { background: transparent; color: var(--ink2); border: 0; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.mr-seg button + button { border-left: 1px solid var(--line2); }
.mr-seg button.on { background: var(--panel2); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.mr-chk { font-size: 13px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.mr-asof { font-size: 12px; color: var(--mute); margin-left: auto; }
.mr-note { font-size: 12px; color: var(--mute); margin-top: 8px; flex-basis: 100%; }
.mr-status { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.mr-status li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 13px; min-width: 0; }
.mr-status li.bad { border-color: var(--line2); }
.mr-live { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.mr-ic { font-size: 11px; margin-right: 6px; }
.mr-st { font-size: 12px; color: var(--ink2); }
.mr-why { font-size: 12px; color: var(--ink2); margin-top: 4px; overflow-wrap: anywhere; }
.mr-fix { font-size: 12px; margin-top: 4px; color: var(--ink); }
.mr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.mr-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.mr-kl { font-size: 12px; color: var(--ink2); }
.mr-kv { font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.mr-of { font-size: 12px; color: var(--ink2); margin-top: 2px; overflow-wrap: anywhere; }
.mr-dl { display: block; font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mr-dl.up { color: var(--good); } .mr-dl.down { color: var(--bad); }
.mr-spark { display: block; margin-top: 6px; overflow: visible; max-width: 100%; }
.mr-sec { margin: 0; min-width: 0; }
.mr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.mr-line { position: relative; min-width: 0; }
.mr-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mr-next li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.mr-next li:first-child { border-top: 0; }
.mr-rk { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.mr-rt { font-size: 14px; overflow-wrap: anywhere; }
.mr-rd { font-size: 13px; color: var(--ink2); margin-top: 2px; overflow-wrap: anywhere; }
.mr-rr { font-size: 11px; color: var(--mute); margin-top: 3px; }
.mr-tier { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; margin-left: 4px; }
.mr-tier.t1 { background: var(--badbg); } .mr-tier.t2 { background: var(--warnbg); } .mr-tier.t3 { background: var(--infobg); }
.mr-ra { white-space: nowrap; }
.mr-t td, .mr-t th { white-space: nowrap; }
.mr-pg { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.mr-bc { min-width: 150px; }
.mr-bv { font-variant-numeric: tabular-nums; }
.mr-bt { display: block; height: 6px; background: var(--v-track); border-radius: 3px; margin-top: 4px; min-width: 60px; }
.mr-bt i { display: block; height: 100%; background: var(--v-s1); border-radius: 3px; }
.mr-fun { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mr-fl { font-size: 13px; }
.mr-fn { font-size: 12px; color: var(--mute); margin-top: 2px; }
.mr-fb .mr-bt { height: 14px; border-radius: 4px; margin: 4px 0 2px; } .mr-fb .mr-bt i { border-radius: 4px; }
.mr-fb .mr-bv { font-size: 13px; }
.mr-big { font-size: 14px; margin-bottom: 8px; }
.mr-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mr-bars li { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.mr-bars .mr-bt { margin-top: 0; height: 8px; }
.mr-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.mr-empty { font-size: 13px; color: var(--ink2); padding: 8px 0; }
.mr-empty.big { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.mr-gap { height: 16px; }
.mr-key { display: inline-block; width: 12px; height: 2px; vertical-align: 3px; margin-right: 6px; }
.mr-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 8px 0 -4px; }
@media (max-width: 900px) { .mr-two { grid-template-columns: minmax(0, 1fr); } .mr-asof { margin-left: 0; } .mr-ctl { position: static; } }
@media (max-width: 480px) { .mr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mr-kv { font-size: 22px; } .mr-next li { grid-template-columns: 28px minmax(0, 1fr); } .mr-ra { grid-column: 2; justify-self: start; } .mr-pg { max-width: 160px; } }

/* v8 Decide inbox (Naja 11-02: "items run together and the decision buttons don't stand out"). Each card is its own
   surface with space around it; the first is the one decision, high contrast; the recommended option is a large filled
   button, the others outlined, Decline quiet. */
.dc-v8 .dc-strip { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 10px 2px 6px; }
.dc-v8 .dc-strip .dc-keys { margin-left: auto; }
.dc-v8 .dc-sec[data-dc-sec="decide"] { background: transparent; border: 0; padding: 0; box-shadow: none; }
.dc-v8 .dc-sec[data-dc-sec="decide"] > summary { padding: 0 2px 8px; }
.dc-v8 .dc-list { display: flex; flex-direction: column; gap: 14px; }
.dc-v8 .dc-card { border: 1px solid var(--line2); border-left: 4px solid var(--line2); border-radius: var(--r); background: var(--panel); padding: 16px 18px; gap: 10px; }
.dc-v8 .dc-card.late { border-left-color: var(--bad); }
.dc-v8 .dc-card.on { border-left-color: var(--gold); }
.dc-v8 .dc-card .dc-t { font-size: 16.5px; line-height: 1.3; }
.dc-v8 .dc-meta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, .8fr); }
.dc-v8 .dc-usdv { display: block; font: 600 20px/1.15 'Instrument Sans', sans-serif; color: var(--ink); }
.dc-v8 .dc-recb { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 9px 12px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 13%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); font-size: 13.5px; }
.dc-v8 .dc-recb.none { background: transparent; border-style: dashed; border-color: var(--line2); color: var(--mute); }
.dc-v8 .dc-recl { font-weight: 700; font-size: 12.5px; color: var(--gold2); }
.dc-v8 .dc-recb.none .dc-recl { color: var(--mute); }
.dc-v8 .dc-ifno { color: var(--ink2); }
.dc-v8 .dc-abc { gap: 10px; padding-top: 2px; }
.dc-v8 .dc-abc .btn { min-height: 42px; padding: 9px 16px; font-size: 13.5px; border-radius: 10px; border-width: 1.5px; border-color: var(--line2); color: var(--ink); }
.dc-v8 .dc-abc .btn.pri { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.dc-v8 .dc-abc .btn.pri:hover { background: var(--gold2); }
.dc-v8 .dc-abc .btn.pri .dc-rec { border-color: currentColor; opacity: 1; }
.dc-v8 .dc-abc [data-dc="decline"] { border-color: transparent; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.dc-v8 .ctxmiss { padding: 4px 8px; font-size: 12px; background: transparent; border-left: 2px solid var(--warn); border-radius: 0; }
.dc-v8 .dc-more > summary { cursor: pointer; color: var(--ink2); }
.dc-v8 .dc-more[open] { padding-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.dc-v8 .dc-band { font: 700 11px/1 'Instrument Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); padding: 10px 2px 0; }
.dc-v8 .dc-band[data-dc-band="late"] { color: var(--bad); }
.dc-v8 .dc-hero { border: 2px solid var(--gold); border-left-width: 6px; background: var(--panel2); padding: 20px 22px; gap: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.dc-v8 .dc-hero.late { border-color: var(--bad); }
.dc-v8 .dc-eyebrow { font: 700 11.5px/1 'Instrument Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold2); }
.dc-v8 .dc-hero.late .dc-eyebrow { color: var(--bad); }
.dc-v8 .dc-hero .dc-t { font: 500 24px/1.2 Newsreader, Georgia, serif; }
.dc-v8 .dc-hero .dc-usdv { font-size: 28px; }
.dc-v8 .dc-hero .dc-abc .btn { min-height: 48px; font-size: 14.5px; }
.dc-v8 .dc-hero .dc-abc .btn.pri { padding: 12px 22px; font-size: 15.5px; }
.dc-v8 .dc-today-h { font: 500 20px/1.2 Newsreader, Georgia, serif; margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .dc-v8 .dc-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dc-v8 .dc-meta .dc-m-usd { grid-row: 1; grid-column: 1 / -1; }
  .dc-v8 .dc-card { padding: 14px; }
  .dc-v8 .dc-hero { padding: 16px; }
  .dc-v8 .dc-hero .dc-t { font-size: 21px; }
  .dc-v8 .dc-abc { flex-direction: column; align-items: stretch; }
  .dc-v8 .dc-abc .btn { width: 100%; justify-content: flex-start; }
}
/* A task has no recommended option: its primary action is doing it, so the page it opens is the filled button. */
.dc-v8 .dc-task [data-dc="open"] { min-height: 42px; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.dc-v8 .dc-task [data-dc="open"]:hover { background: var(--gold2); color: var(--on-gold); }
.dc-v8 .dc-hero .dc-task [data-dc="open"] { min-height: 48px; padding: 12px 22px; font-size: 15px; }
@media (max-width: 720px) { .dc-v8 .dc-task [data-dc="open"] { width: 100%; } }
/* Decide on a phone: the day's tiles are one swipeable row, so the first decision is near the top. */
@media (max-width: 720px) {
  .dc-v8 > .k-tiles { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .dc-v8 > .k-tiles > * { scroll-snap-align: start; }
}
/* On a phone the Stale banner scrolls with the page: sticky, its several lines covered the card being decided. */
@media (max-width: 720px) { .staleban { position: static; } }
/* Decide's story strip (v3/decide-story.js): revenue against target beside the five campaigns, above the one decision. */
.ds { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: 14px; margin: 4px 0 6px; }
.ds-panel { border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds-eyebrow { font: 700 11px/1 'Instrument Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.ds-big { font: 600 30px/1.1 'Instrument Sans', sans-serif; font-variant-numeric: tabular-nums; }
.ds-of { font-size: 14px; font-weight: 500; color: var(--ink2); }
.ds-bar { position: relative; height: 12px; border-radius: 6px; background: var(--v-track); }
.ds-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--gold); min-width: 3px; }
.ds-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.ds-line b.ink, .ds-line .ink { color: var(--ink); }
.ds-head { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.ds-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ds-c { border: 1px solid var(--line); border-top: 4px solid var(--line2); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--panel2); }
.ds-c.ds-working { border-top-color: var(--good); }
.ds-c.ds-not { border-top-color: var(--bad); }
.ds-c.ds-early { border-top-color: var(--warn); }
.ds-c.ds-paused { border-top-color: var(--mute); opacity: .85; }
.ds-cn { font: 600 14px/1.25 'Instrument Sans', sans-serif; }
.ds-call { font: 700 11px/1 'Instrument Sans', sans-serif; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.ds-call.working { color: var(--good); } .ds-call.not { color: var(--bad); } .ds-call.early { color: var(--warn); } .ds-call.unknown { color: var(--mute); }
.ds-call.working::before { content: '✓ '; } .ds-call.not::before { content: '✕ '; } .ds-call.early::before { content: '… '; } .ds-call.paused { color: var(--mute); } .ds-call.paused::before { content: '❙❙ '; }
.ds-why { margin-top: 2px; }
@media (max-width: 1100px) { .ds { grid-template-columns: minmax(0, 1fr); } .ds-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 720px) { .ds-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(170px, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .ds-c { scroll-snap-align: start; } .ds-big { font-size: 26px; } }
/* Decide: finish the item on the card (v3/decide-act.js). */
.dx { display: flex; flex-direction: column; gap: 10px; }
.dx:empty { display: none; }
.dx-h { font: 700 11px/1 'Instrument Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-bottom: 4px; }
.dx-deals { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.dx-deal { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.dx-deal:first-of-type { border-top: 0; }
.dx-dn { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.dx-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dx-btns .btn { min-height: 36px; border-radius: 8px; }
.dx-date { width: auto; }
.dx-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dx-sl { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dx-pr { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.dx-chk { font-weight: 700; font-size: 12.5px; } .dx-chk.good { color: var(--good); } .dx-chk.bad { color: var(--bad); } .dx-chk.warn { color: var(--warn); }
.dx-copy { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 'Instrument Sans', sans-serif; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 420px; overflow: auto; margin: 6px 0 0; }
@media (max-width: 720px) { .dx-btns .btn { min-height: 44px; } .dx-deal { align-items: stretch; } }
.dx-rec { flex-basis: 100%; order: 3; color: var(--ink); }
.dx-recl { font-weight: 700; color: var(--gold2); }
.dx-deal > .dx-btns { order: 2; }
.dx-deal > .dx-rec { order: 1; }
/* Stale banner on a phone: one line (sources, as-of) with the lines behind Details (app.js StaleBan, v8 11-05). */
.staleban .sb-one { display: none; }
@media (max-width: 720px) {
  .staleban { position: static; }
  .staleban .sb-one { display: inline; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .staleban:not(.open) ul, .staleban:not(.open) .sbw { display: none; }
}
/* Decide: a reply card's draft, editable in place (decide.js ReplyEdit). */
.dc-reply { display: flex; flex-direction: column; gap: 8px; }
.dc-reply-body { width: 100%; min-height: 160px; font: 13.5px/1.5 'Instrument Sans', sans-serif; }
.dc-reply-view b { display: block; margin-bottom: 4px; }
/* Decide, separated and typed (A5, 11-07): type chips with counts; dependency chips on every card; two columns of cards
   from 1600 px (the first card and the dividers span both). */
.dc-v8 .dc-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dc-v8 .dc-types .chip[aria-pressed="true"] { background: var(--v9-accent, var(--ink)); color: var(--v9-accent-ink, #161616); border-color: transparent; }
.dc-v8 .dc-types .chip b { font-variant-numeric: tabular-nums; opacity: .75; }
.dc-v8 .dc-m-dep dd { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-v8 .dc-dep { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); }
.dc-v8 .dc-dep.bad { border-color: var(--bad); color: var(--bad); }
/* A21 (11-07): every group (Yours now, scheduled, paused, agents) sits two across from 1600 px, not just Yours now. */
@media (min-width: 1600px) {
  .dc-v8 .dc-list[data-dc-group] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .dc-v8 .dc-list[data-dc-group] > .dc-hero, .dc-v8 .dc-list[data-dc-group] > .dc-band { grid-column: 1 / -1; }
}
/* Features & enhancements, visual first (A6, 11-07): one line per fact, the bar, the rest behind Details; two columns
   of features from 1600 px. */
[data-fe="root"] .fe-card { display: grid; gap: 6px; }
[data-fe="root"] .fe-acc { font-size: 13.5px; color: var(--ink); }
[data-fe="root"] .fe-acc.miss { color: var(--bad); }
[data-fe="root"] .fe-facts { display: flex; flex-wrap: wrap; gap: 6px; }
[data-fe="root"] .fe-chip { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; }
[data-fe="root"] .fe-chip.bad { border-color: var(--bad); color: var(--bad); }
[data-fe="root"] .fe-more > summary, [data-fe="root"] .fe-how > summary { cursor: pointer; color: var(--mute); }
[data-fe="root"] .fe-how { margin: -4px 0 10px; color: var(--ink2); }
@media (min-width: 1600px) { [data-fe="root"] .ps-list[data-fe="list"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; } }
/* Short decision rows (A32, CPO fix 10, 11-07): every card after the first is one row (type, short title, $, due)
   that opens into the full card. */
.dc-v8 .dc-rowd { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dc-v8 .dc-rowd[open] { border-color: var(--line2); }
.dc-v8 .dc-row { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.dc-v8 .dc-row::-webkit-details-marker { display: none; }
.dc-v8 .dc-row.late { box-shadow: inset 3px 0 0 var(--bad); }
.dc-v8 .dc-rt, .se-type { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; justify-self: start; }
.dc-v8 .dc-rtt { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-v8 .dc-ru { font-variant-numeric: tabular-nums; font-weight: 600; }
.dc-v8 .dc-rd { font-size: 12px; color: var(--mute); white-space: nowrap; }
.dc-v8 .dc-rowd > .dc-card { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
@media (max-width: 640px) { .dc-v8 .dc-row { grid-template-columns: minmax(0, 1fr) auto; } .dc-v8 .dc-rt { grid-column: 1 / -1; } .dc-v8 .dc-rd { grid-column: 1 / -1; } }
/* Decide from options (Naja 11-08): the card face is title, business, $ impact, due, the recommended option and its
   buttons; everything else sits behind the one Details expander. The meta reads as one tight line. */
.dc-meta.dc-meta-t { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.dc-meta.dc-meta-t > div { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.dc-meta.dc-meta-t .dc-usdv { font-size: 14px; }
.dc-v8 .dc-meta.dc-meta-t { grid-template-columns: none; }
.dc-qnote { margin-top: -2px; }
.dc-mbody { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.dc-outs { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dc-more > summary { cursor: pointer; color: var(--ink2); }
@media (max-width: 520px) { .dc-v8 .dc-meta.dc-meta-t .dc-m-usd { grid-row: auto; grid-column: auto; } .dc-meta.dc-meta-t { gap: 2px 14px; } }
.dc-chg > summary { cursor: pointer; color: var(--ink2); }
.dc-chg[open] { display: flex; flex-direction: column; gap: 8px; }
/* Set up with AI, the guided wizard (competitive.json launchpad:guided-onboarding step 1): one section at a time. */
.su-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.su-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); cursor: pointer; font-size: 13px; }
.su-step .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; font-variant-numeric: tabular-nums; }
.su-step.done .n { background: var(--goodbg); border-color: transparent; color: var(--good); }
.su-step.on { border-color: var(--gold); color: var(--ink); }
.su-step.on .n { background: var(--gold); border-color: transparent; color: var(--on-gold); }
.su-step:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.su-q { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; }
@media (max-width: 640px) { .su-step .small { display: none; } }
.su-q .bad { color: var(--bad); }
/* Live draft panel (guided-onboarding step 3): beside the wizard from 1100 px, below it on narrower screens. */
.su-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .su-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } .su-live { position: sticky; top: 12px; } }
.su-live h3 { margin: 0 0 2px; }
.su-live-h { margin: 12px 0 4px; font-weight: 600; font-size: 13px; }
.su-live-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.su-link { background: none; border: 0; padding: 0; color: var(--gold2); cursor: pointer; font: inherit; text-decoration: underline; }
