/* One rule set per component. Templates use these class names only through the Twig components in templates/components. */

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-6); }
.card + .card { margin-top: var(--sp-5); }
.card.hero { padding: var(--sp-8); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.card-head .desc { font-size: var(--fs-sm); color: var(--muted); }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; line-height: 1.3; white-space: nowrap; transition: background var(--ease), border-color var(--ease); }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); transition: background var(--ease), border-color var(--ease), transform var(--ease); } .btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #0A0A0A; transform: translateY(-1px); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); } .btn.quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.btn.sm { padding: 5px 12px; font-size: var(--fs-sm); }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.inline { display: inline; }

/* Pill: status, outcome, role */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.plain::before { display: none; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.seller { background: var(--brand-soft); color: var(--seller); } .pill.buyer { background: var(--warn-soft); color: var(--buyer); } .pill.other { background: var(--neutral-soft); color: var(--other); }

/* Stat tile */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.stat { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: var(--sp-4); min-width: 0; }
.stat .lbl { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.stat .n { font-family: var(--mono); font-size: var(--fs-2xl); font-weight: 500; line-height: 1.15; margin-top: var(--sp-1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .n small { font-size: 14px; color: var(--muted); font-family: var(--sans); }
.stat .sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.stat.good .n { color: var(--good); } .stat.warn .n { color: var(--warn); } .stat.bad .n { color: var(--bad); }

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track); color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table .pct { width: 64px; text-align: right; }

/* Bar */
.bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.bar.good > i { background: var(--good); } .bar.buyer > i { background: var(--buyer); }

/* Charts on the performance pages */
.legend i.k-line { width: 18px; height: 3px; border: 0; background: var(--brand); border-radius: 2px; } .legend i.k-line.good { background: var(--good); }
.legend i.k-dash { width: 18px; height: 0; border: 0; border-top: 2px dashed var(--warn); }
.legend i.k-band { background: var(--brand); opacity: .15; border: 0; }
.legend i.k-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--chart-axis); } .legend i.k-dot.good { background: var(--good); } .legend i.k-dot.bad { background: var(--bad); }
.bar.tickable { position: relative; overflow: visible; }
.bar .tick { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); border-radius: 1px; transform: translateX(-1px); }
.heatmap { width: auto; min-width: min(100%, 720px); }
.heatmap th:first-child, .heatmap td:first-child { width: 200px; }
.heatmap th.hm-head { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; white-space: nowrap; padding: 6px 8px; height: 160px; vertical-align: top; }
.heatmap td.hm { text-align: center; font-family: var(--mono); font-size: var(--fs-xs); width: 56px; min-width: 56px; color: var(--ink); }
.heatmap td.hm.none { color: var(--muted); background: var(--surface-2); }
.hm-k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.hm.h0, .hm-k.h0 { background: var(--bad-soft); } .hm.h1 { background: color-mix(in srgb, var(--bad-soft) 80%, var(--good-soft)); } .hm.h2 { background: color-mix(in srgb, var(--bad-soft) 60%, var(--good-soft)); } .hm.h3 { background: color-mix(in srgb, var(--bad-soft) 40%, var(--good-soft)); } .hm.h4 { background: color-mix(in srgb, var(--bad-soft) 20%, var(--good-soft)); }
.hm.h5, .hm-k.h5 { background: var(--good-soft); } .hm.h6 { background: color-mix(in srgb, var(--good-soft) 85%, var(--good)); } .hm.h7 { background: color-mix(in srgb, var(--good-soft) 70%, var(--good)); } .hm.h8 { background: color-mix(in srgb, var(--good-soft) 55%, var(--good)); } .hm.h9 { background: color-mix(in srgb, var(--good-soft) 40%, var(--good)); }
.hm.h10, .hm-k.h10 { background: color-mix(in srgb, var(--good-soft) 25%, var(--good)); color: var(--on-brand); }

/* Empty state */
.empty { text-align: center; padding: var(--sp-10) var(--sp-5); color: var(--muted); }
.empty .btn { margin-top: var(--sp-4); }

/* Menu (details) */
.menu { position: relative; }
.menu > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); text-decoration: none; }
.menu-panel button.danger { color: var(--bad); }
.menu-panel .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-panel.panel-form { min-width: 300px; padding: var(--sp-4); }
.menu-panel.panel-form .field { margin-bottom: var(--sp-2); }
.menu-panel .head { padding: 8px 10px 4px; font-size: var(--fs-xs); color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

/* Facts block under a page title: label column, value column, stacked */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); max-width: 640px; }
.facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }
.page-head .lede:has(.facts) { max-width: none; }

/* Inline menu opened from a link-styled summary (deal assignment on a call) */
.inline-menu { display: inline-block; }
.inline-menu > summary.linkish { color: var(--link); cursor: pointer; text-decoration: underline; padding: 0; }
.inline-menu .menu-panel { left: 0; right: auto; min-width: 280px; padding: var(--sp-4); }
.inline-menu .field { margin-bottom: var(--sp-2); }
.deal-line { display: inline; }

/* Toast */
.toasts { position: fixed; top: var(--sp-4); right: var(--sp-4); z-index: 40; display: flex; flex-direction: column; gap: var(--sp-2); max-width: 420px; }
.toast { padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--brand); transition: opacity .6s; }
.toast.error { border-left-color: var(--bad); } .toast.success { border-left-color: var(--good); }
.toast.fade { opacity: 0; }
.toast.inline-note { position: static; box-shadow: none; }

/* Form */
.field { display: block; margin-bottom: var(--sp-4); }
.field > span:first-child, .field > .lbl { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 5px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: 4px; }
.field.inline-unit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .field.inline-unit > span:first-child { width: 100%; }
input.short { width: 110px; }
.filters { display: flex; gap: var(--sp-3); align-items: flex-end; flex-wrap: wrap; }
.filters .field { margin: 0; min-width: 180px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); cursor: pointer; }
.consent input { margin-top: 4px; width: 16px; height: 16px; }
.consent b { display: block; margin-bottom: 2px; }
.drop { display: block; border: 1.5px dashed var(--line); border-radius: var(--r); padding: var(--sp-6); text-align: center; color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.drop.over { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand); }
.drop input[type=file] { display: none; }
.drop > span { display: block; }
.drop .file-name { margin-top: 6px; color: var(--ink); font-weight: 600; }
.drop .hint { font-size: var(--fs-xs); margin-top: 4px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.segmented label { padding: 6px 12px; cursor: pointer; font-weight: 500; color: var(--ink-2); border-right: 1px solid var(--line); }
.segmented label:last-child { border-right: 0; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented label:has(input:checked) { background: var(--brand-soft); color: var(--brand); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }

/* Claims (cited statements) */
.claims { list-style: none; padding: 0; }
.claims li { padding: 8px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.claims li:last-child { border-bottom: 0; }
.cite { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.cite.untied { font-style: italic; font-family: var(--sans); }

/* Report pieces */
.headline { font-family: var(--serif); font-weight: 500; font-size: var(--fs-2xl); line-height: 1.25; letter-spacing: -.01em; max-width: 34ch; }
.outcome-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.chart { width: 100%; height: auto; display: block; }
.chart-set .mob { display: none; }
@media (max-width: 720px) { .chart-set .desk { display: none; } .chart-set .mob { display: block; } }
.legend { display: flex; gap: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid var(--line); }
.legend i.k-2 { background: var(--s-2); } .legend i.k-1 { background: var(--s-1); } .legend i.k1 { background: var(--s1); } .legend i.k2 { background: var(--s2); }
.moments { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-3); }
.moment { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.moment .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.moment b { display: block; margin-bottom: 4px; }
.moment blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line); font-family: var(--serif); font-size: var(--fs-md); color: var(--ink-2); background: var(--surface); border-radius: 0 6px 6px 0; }
.moment blockquote.pos { border-left-color: var(--good); } .moment blockquote.neg { border-left-color: var(--bad); }
.moment .why { color: var(--muted); font-size: var(--fs-sm); }
.kind { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kind.buying_signal, .kind.commitment { color: var(--good); } .kind.objection, .kind.risk { color: var(--bad); } .kind.turning_point { color: var(--seller); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.person { border: 1px solid var(--line); border-left: 4px solid var(--other); border-radius: var(--r); padding: 16px 18px; background: var(--surface-2); }
.person.seller { border-left-color: var(--seller); } .person.buyer { border-left-color: var(--buyer); }
.person .ph { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; } .person .ph b { font-size: 16px; }
.person h4 { margin: 10px 0 4px; }
.score-big { display: flex; align-items: baseline; gap: 12px; }
.score-big .n { font-family: var(--mono); font-size: 48px; font-weight: 500; line-height: 1; }
.score-big.good .n { color: var(--good); } .score-big.warn .n { color: var(--warn); } .score-big.bad .n { color: var(--bad); }

/* Deal blockers */
.blockers { list-style: none; padding: 0; margin-top: var(--sp-4); display: flex; flex-direction: column; }
.blocker { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--sp-3); align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.blocker:last-child { border-bottom: 0; }
.blocker .sev { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.blocker.high .sev { color: var(--bad); } .blocker.medium .sev { color: var(--warn); } .blocker.low .sev { color: var(--muted); }
.blocker .cite { white-space: normal; text-align: right; }
@media (max-width: 720px) { .blocker { grid-template-columns: 84px 1fr; } .blocker .cite { grid-column: 2; text-align: left; } }

/* Transcript */
details.transcript > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-weight: 600; }
details.transcript > summary::after { content: 'Show'; font-size: var(--fs-sm); color: var(--link); font-weight: 500; }
details.transcript[open] > summary::after { content: 'Hide'; }
details.transcript[open] > summary { border-radius: var(--r) var(--r) 0 0; }
.turns { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; background: var(--surface); }
.turns.standalone { border-top: 1px solid var(--line); border-radius: var(--r); }
.turn { display: grid; grid-template-columns: 56px 150px 1fr; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; scroll-margin-top: 110px; }
.turn:last-child { border-bottom: 0; }
.turn .id { color: var(--muted); font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.turn .who { font-weight: 600; } .turn .who.seller { color: var(--seller); } .turn .who.buyer { color: var(--buyer); } .turn .who.other { color: var(--other); }
.turn .who small { display: block; font-weight: 400; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.turn.s-2 { background: var(--s-2); } .turn.s-1 { background: var(--s-1); } .turn.s1 { background: var(--s1); } .turn.s2 { background: var(--s2); }
.turn .note { color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; font-style: italic; }
.turn .sig { display: inline-block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.turn.moment-mark { box-shadow: inset 4px 0 0 var(--ink); }
.turn.flash-target { animation: hl 2s ease-out; }
@keyframes hl { from { box-shadow: inset 0 0 0 999px rgba(31,90,140,.18); } to { box-shadow: none; } }
.turn.mini { grid-template-columns: 44px 1fr; } .turn.mini .who, .turn.mini .text { grid-column: 2; }
@media (max-width: 720px) { .turn { grid-template-columns: 44px 1fr; } .turn .who { grid-column: 2; } .turn .text { grid-column: 2; } }

/* Speaker rows on the speaker check: one row per person, roles aligned in one column */
.speakers { display: flex; flex-direction: column; }
.speaker { display: grid; grid-template-columns: minmax(150px, 200px) 1fr auto minmax(170px, 210px); gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-2); }
.speaker:last-child { border-bottom: 0; }
.speaker.head { padding: 0 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.speaker .sample { font-size: var(--fs-sm); color: var(--muted); font-style: italic; margin: 0; }
@media (max-width: 720px) { .speaker { grid-template-columns: 1fr auto; } .speaker .sample, .speaker select { grid-column: 1 / -1; } .speaker.head span:nth-child(2), .speaker.head span:nth-child(4) { display: none; } }

/* Process editor table */
.elements-table td { padding: 6px 4px; }
.elements-table th:nth-child(1), .elements-table td:nth-child(1) { width: 20%; }
.elements-table th:nth-child(4), .elements-table td:nth-child(4) { width: 80px; }

/* Process call sequence editor */
.stages { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-3); }
.stage-row { border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-3) var(--sp-4) var(--sp-4); margin: 0; background: var(--card); }
.stage-row.empty { border-style: dashed; background: transparent; }
.stage-row legend { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.stage-grid { display: grid; grid-template-columns: 72px 1fr 2fr 2fr; gap: var(--sp-3); align-items: start; }
.stage-grid .span-2 { grid-column: 1 / -1; }
.stage-grid textarea { min-height: 72px; }
@media (max-width: 900px) { .stage-grid { grid-template-columns: 72px 1fr; } .stage-grid .span-2 { grid-column: 1 / -1; } }

/* Next-call plan */
.plan-section { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.plan-section:first-of-type { margin-top: var(--sp-3); }
.plan-section h3 { margin: var(--sp-3) 0 var(--sp-2); }
.plan-opening { font-size: var(--fs-lg); line-height: 1.45; color: var(--ink); max-width: 64ch; margin: var(--sp-3) 0; padding-left: var(--sp-3); border-left: 3px solid var(--brand); }
.claims.numbered { list-style: decimal; padding-left: 1.4em; }
.claims.numbered li { display: list-item; }
.claims.numbered li > span:first-child { display: inline; }
.claims.numbered li .cite { margin-left: 8px; }

/* Stakeholder register */
.menu-panel.wide { min-width: min(560px, 92vw); }
.grid-2.tight { gap: var(--sp-2) var(--sp-3); }
.people-table td { vertical-align: top; }
.proposals { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.proposals form.inline { display: inline; flex-shrink: 0; }

/* Plan measured against the call it was made for */
.measured { margin: var(--sp-3) 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.measured-head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.measured-head h3 { margin: 0; }
.measured .big-num { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.measured .big-num small { font-size: .5em; font-weight: 600; margin-left: 1px; }
.human { color: var(--muted); font-style: italic; }
.inline-menu { display: inline-block; margin-left: 6px; }
.inline-menu summary { display: inline; }
.inline-menu .menu-panel { min-width: 320px; left: 0; right: auto; }

/* Call sheet: one screen, big type, nothing to fill in */
.sheet-body { background: var(--bg); color: var(--ink); }
.sheet { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 64px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink); }
.sheet-head .eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.sheet .btn.ghost { background: transparent; }
.sheet-head h1 { margin: 4px 0 0; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }
.sheet-opening { font-size: clamp(18px, 2vw, 24px); line-height: 1.4; margin: var(--sp-4) 0; max-width: 60ch; }
.sheet-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-6); }
.sheet h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); margin: var(--sp-4) 0 var(--sp-2); }
.sheet-list { margin: 0; padding-left: 1.3em; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; }
.sheet-list li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.sheet-list li:last-child { border-bottom: 0; }
.sheet-list.questions li { padding: 10px 0; }
.sheet-list.questions small { display: block; font-size: .7em; color: var(--muted); margin-top: 2px; }
@media (max-width: 800px) { .sheet-cols { grid-template-columns: 1fr; } }
.sheet-progress { display: flex; align-items: baseline; gap: var(--sp-3); flex-shrink: 0; }
.sheet-progress .big-num { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sheet-progress .big-num small { font-size: .5em; font-weight: 600; color: var(--muted); }
.sheet-goals { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.45; margin: var(--sp-2) 0 var(--sp-4); max-width: 70ch; }
.step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: var(--fs-sm); font-weight: 600; margin-right: 12px; flex-shrink: 0; }
.sheet-opening .step-num { vertical-align: middle; }
.checklist { list-style: none; margin: 0; padding: 0; max-width: 78ch; }
.checklist-group { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding: var(--sp-4) 0 var(--sp-1); border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.check label { display: flex; align-items: flex-start; gap: 4px; padding: 12px 8px; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; }
.check label:hover { background: var(--surface-2); }
.check input { width: 24px; height: 24px; margin: 4px 10px 0 0; flex-shrink: 0; accent-color: var(--good); }
.step-body { display: flex; flex-direction: column; gap: 2px; }
.step-sub { font-size: .72em; color: var(--muted); }
.check.done .step-text { text-decoration: line-through; color: var(--muted); }
.check.done .step-num { background: var(--good); border-color: var(--good); color: #fff; }
.check.prior .step-num { border-style: dashed; }
.sheet-foot { margin-top: var(--sp-5); }
@media print { .sheet-head .btn, .sheet-foot { display: none; } .sheet { padding: 0; } .check input { display: none; } }

/* Process performance */
.funnel td.funnel-bar { width: 45%; }
.funnel .bar { min-width: 120px; }

/* Today board */
.today-counts { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: 0 0 var(--sp-4); }
.today-counts .tc { font-size: var(--fs-sm); color: var(--muted); padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); }
.today-counts .tc b { color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.today { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.today-group { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding: var(--sp-4) 0 var(--sp-2); }
.today-group.now { color: var(--bad); }
.today-item a { display: grid; grid-template-columns: 6px 1fr auto; gap: var(--sp-3); align-items: center; padding: 14px 16px 14px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; }
.today-item a:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.today-item .ti-mark { display: block; width: 6px; height: 100%; min-height: 36px; border-radius: 3px; background: var(--line-2); }
.today-item.now .ti-mark { background: var(--bad); }
.today-item.week .ti-mark { background: var(--warn); }
.today-item .ti-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.today-item .ti-title { font-weight: 600; color: var(--ink); }
.today-item .ti-why { font-size: var(--fs-sm); color: var(--ink-2); }
.today-item .ti-meta { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.today-item .ti-deal { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.today-item .ti-age { font-family: var(--mono); }
.today-item .ti-go { color: var(--ink-2); font-size: var(--fs-md); }
@media (max-width: 720px) { .today-item a { grid-template-columns: 6px 1fr; } .today-item .ti-meta { grid-column: 2; justify-content: flex-start; } .today-item .ti-deal { display: none; } }

.today-item .ti-action { display: flex; align-items: center; gap: var(--sp-2); padding: 0 16px 12px 30px; margin-top: -4px; }
.today-item .ti-action select, select.compact { padding: 4px 8px; font-size: var(--fs-sm); }
.facts form.inline { display: inline; }

/* Deal board */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.seg a { padding: 6px 14px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; }
.seg a.on { background: var(--ink); color: var(--surface); }
.board-wrap { overflow-x: auto; padding-bottom: var(--sp-2); margin: 0 calc(-1 * var(--sp-2)); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--sp-3); padding: 0 var(--sp-2); min-width: min-content; }
.board .col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-height: 220px; }
.board .col > header { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.board .col h2 { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; margin: 0; }
.board .col .meta { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.board .col.won > header h2 { color: var(--good); }
.board .col.lost > header h2 { color: var(--muted); }
.board .cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.board .empty { font-size: var(--fs-sm); color: var(--muted); padding: 10px 4px; margin: 0; }
.dcard { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.dcard:hover { border-color: var(--line-2); text-decoration: none; }
.dcard.quiet { border-left-color: var(--bad); }
.dcard .acct { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track); color: var(--muted); }
.dcard .name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.dcard .row1 { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.dcard .row2 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--fs-xs); margin-top: 2px; }
.dcard .row2 .ok { color: var(--good); } .dcard .row2 .warn { color: var(--warn); } .dcard .row2 .bad { color: var(--bad); }
.dcard .row3 { font-size: var(--fs-xs); }

.toast.static { position: static; max-width: none; margin-bottom: var(--sp-4); }
.toast.info { border-left-color: var(--warn); }
.row.between { justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }

.table.narrow { max-width: 560px; }

/* Processing indicator in the sidebar */
.activity { display: flex; align-items: center; gap: 8px; margin: auto var(--sp-2) var(--sp-2); padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
.activity[hidden] { display: none; }
.activity:not([hidden]) + .user { margin-top: 0; }
.activity .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.activity.busy .dot { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.activity.done .dot { background: var(--good); }
.activity a { color: var(--link); }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .activity.busy .dot { animation: none; } }

/* Stage by element matrix */
.matrix td.mx { text-align: center; width: 56px; }
.matrix td.mx input { width: 18px; height: 18px; accent-color: var(--brand); }
.heatmap td.hm.late { box-shadow: inset 0 0 0 2px var(--bad); }
.heatmap td.hm.na { color: var(--muted); background: transparent; }
.heatmap td.hm.settled { color: var(--muted); background: var(--surface-2); }

.matrix td.mx { position: relative; }
.matrix td.mx .inh { display: none; color: var(--muted); font-size: var(--fs-md); }
.matrix td.mx.inherited input { opacity: 0; position: absolute; inset: 0; margin: auto; cursor: pointer; }
.matrix td.mx.inherited .inh { display: inline; }

.disclosure { margin-top: var(--sp-2); } .disclosure q { font-style: italic; color: var(--ink-2); }
