/* ============================================================
   fnbtoolkit.com — New Product Viability Tool stylesheet
   ------------------------------------------------------------
   This is the SHARED shell stylesheet. Everything here is the
   fixed system that must look identical on every tool — cloned
   verbatim from the live gold standards (bundle-analyser /
   menu-planning-tool). DO NOT restyle it.

   The only place tool-specific CSS lives is the clearly marked
   "BESPOKE ZONE" near the bottom. Reuse the shared components
   (.grid, .panel, inputs, .kpi, .basic, donut classes)
   before inventing anything — see DESIGN-SYSTEM.md §5.
   ============================================================ */

:root{
  /* Primary blue family */
  --blue:#1C5FE5;
  --blue-deep:#1546B8;
  --blue-bright:#3D7BF7;
  --blue-soft:#EAF1FE;
  --blue-tint:#F4F8FF;

  /* Dark / neutral */
  --navy:#0B2545;
  --ink:#10243F;
  --text:#33425A;
  --muted:#647387;
  --line:#E4EAF3;
  --line-2:#d3dcec;
  --surface:#ffffff;
  --logo-gray:#3D4452;

  /* Data-viz ONLY — never for UI chrome */
  --green:#16A363;
  --green-dark:#1d9e75;
  --green-soft:#E3F3EA;
  --amber:#E2A437;
  --amber-dark:#b5731a;
  --gray:#8a8980;
  --red:#C0392B;

  /* Tool internals */
  --input-color:#1546B8;
  --input-fill:#EAF1FE;
  --total-fill:#F4F8FF;
  --kpi-fill:#F4F8FF;

  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--surface);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;
  font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
.wrap{max-width:1560px;margin:0 auto;padding:20px 30px 30px}
.wrap:has(> .foot){padding-bottom:0}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--blue);color:#fff;font-family:var(--font);
  font-weight:700;font-size:13px;padding:10px 16px;border-radius:0 0 9px 0;z-index:300}
.skip-link:focus{left:0}

/* ---- Masthead (title + description only — no buttons) ---- */
.masthead{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;
  background:var(--blue-tint);border-radius:14px;padding:24px 28px 22px;
  border:1px solid var(--line);margin-bottom:20px}
.eyebrow{font-family:var(--font);font-weight:700;font-size:13px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--blue);margin:0 0 12px}
.eyebrow a{color:var(--blue);text-decoration:none;opacity:.8}
.eyebrow a:hover{opacity:1}
h1{font-weight:800;font-size:30px;line-height:1.1;margin:0;letter-spacing:-.02em;color:var(--ink)}
.sub{margin:6px 0 0;color:var(--muted);font-size:13px}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.action-btns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.savenote{font-size:13px;color:var(--muted);margin-left:4px}

/* ---- Royalty / commission toggle + segmented controls ---- */
.royalty-ctrl{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:var(--surface);border:1.5px solid var(--line-2);border-radius:12px;padding:9px 14px}
.royalty-q{font-size:13px;font-weight:600;color:var(--ink);line-height:1.3;max-width:230px}
.switch{position:relative;display:inline-block;width:42px;height:24px;flex:none;cursor:pointer}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch-track{position:absolute;inset:0;background:#cdd6e4;border-radius:999px;transition:background .15s}
.switch-track::before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;
  background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(11,37,69,.3);transition:transform .15s}
.switch input:checked + .switch-track{background:var(--blue)}
.switch input:checked + .switch-track::before{transform:translateX(18px)}
.switch input:focus-visible + .switch-track{box-shadow:0 0 0 3px rgba(28,95,229,.25)}
.fee-opts{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.fee-opts[hidden]{display:none}
.fee-lab{font-size:13px;font-weight:600;color:var(--muted)}
.fee-seg{display:inline-flex;border:1.5px solid var(--line-2);border-radius:9px;overflow:hidden}
.fee-seg[hidden]{display:none}
.fee-opt{font-family:var(--font);font-size:13px;font-weight:700;color:var(--muted);
  background:var(--surface);border:0;padding:6px 12px;cursor:pointer;line-height:1.4}
.fee-opt + .fee-opt{border-left:1.5px solid var(--line-2)}
.fee-opt.active{background:var(--blue);color:#fff}
.fee-opt:focus-visible{outline:2px solid var(--blue);outline-offset:1px;position:relative;z-index:1}
.btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#royRateCtrl[hidden]{display:none}

/* ---- Control bar / toolbar ----
   Left group (How-to + currency) pinned left via 768-gated margin-right:auto;
   right group (royalty, VAT, Reset, Undo) stays right and drops as one unit. */
.panel.toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px 18px;flex-wrap:wrap;
  padding-top:14px;padding-bottom:14px}
.toolbar-left{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap}
@media(min-width:768px){.toolbar-left{margin-right:auto}}
.toolbar-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.toolbar .royalty-ctrl{border:0;background:transparent;padding:0}
.toolbar .action-btns{gap:8px}

/* VAT field — inline in the toolbar */
.vat-inline{display:flex;align-items:center;gap:8px}
.vat-inline label{font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap}
.vat-inline input[type=number]{width:64px;background:#fff;color:var(--ink);font-family:var(--font);
  font-size:13px;border:none;box-shadow:inset 0 0 0 1px #DCE3EE;border-radius:6px;padding:6px 8px;text-align:center}
.vat-inline .pct{color:var(--muted)}

/* ---- Buttons ---- */
.btn{font-family:var(--font);font-size:14px;font-weight:700;letter-spacing:.01em;
  color:var(--ink);background:var(--surface);
  border:1.5px solid var(--line-2);border-radius:9px;padding:8px 14px;cursor:pointer;
  transition:background .12s,border-color .12s,color .12s;line-height:1}
.btn:hover{border-color:var(--blue);color:var(--blue)}
.btn:active{transform:translateY(1px)}
.btn.small{padding:5px 11px;font-size:13px}
.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue);
  box-shadow:0 6px 18px rgba(28,95,229,.22)}
.btn.primary:hover{background:var(--blue-deep);border-color:var(--blue-deep)}

/* ---- Inputs & controls ---- */
.controls{display:flex;gap:26px;align-items:center;flex-wrap:wrap;margin-bottom:4px}
.ctrl{display:flex;align-items:center;gap:12px;flex:1;min-width:260px;max-width:560px}
.ctrl.narrow{flex:0 0 auto;min-width:0}
.ctrl label{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.ctrl .pct{color:var(--muted)}
.roy-pct{display:inline-flex;align-items:center;gap:3px}
.roy-pct input[type=number],.roy-pct input[type=text]{width:84px;text-align:center;padding:5px 8px;border:none;
  border-radius:6px;font:inherit;font-size:13px;background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px #DCE3EE}
.roy-pct input:focus{box-shadow:inset 0 0 0 2px rgba(28,95,229,.35)}
.roy-pct .pct{color:var(--muted);font-size:13px}
input[type=range]{flex:1;height:4px;-webkit-appearance:none;appearance:none;background:var(--line-2);
  border-radius:3px;outline:none;cursor:pointer}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;
  background:var(--blue);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--blue);cursor:pointer}
input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--blue);
  border:3px solid var(--surface);box-shadow:0 0 0 1px var(--blue);cursor:pointer}
input[type=number]{font-family:var(--font);font-size:13px;color:var(--ink);width:84px;
  text-align:center;border:none;border-radius:6px;padding:5px 8px;
  background:#fff;box-shadow:inset 0 0 0 1px #DCE3EE}
input:focus{outline:2px solid rgba(28,95,229,.35);outline-offset:0}

/* ---- Hints & notes ---- */
.hint{font-size:13px;color:var(--muted);margin:-4px 0 14px;max-width:78ch}
.note-box{font-size:13px;color:var(--text);line-height:1.55;background:#F1F4F8;
  border:1px solid var(--line);border-left:3px solid var(--line-2);border-radius:8px;
  padding:9px 13px;margin:0 0 14px;max-width:78ch}
.note-box strong{color:var(--ink);font-weight:700}

/* ---- Report-details dialog ---- */
dialog#reportDlg{border:1px solid var(--line-2);border-radius:14px;background:var(--surface);
  color:var(--text);padding:24px 26px;width:min(440px,92vw)}
dialog#reportDlg::backdrop{background:rgba(11,37,69,.45)}
dialog#reportDlg h2{font-weight:800;font-size:16px;letter-spacing:-.01em;color:var(--ink);margin:0 0 6px}
dialog#reportDlg .hint{margin:0 0 16px}
.dlgfields label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted);margin-bottom:13px}
.dlgfields input,.dlgfields textarea{font-family:var(--font);font-size:13px;color:var(--ink);
  border:1.5px solid var(--line-2);border-radius:9px;padding:7px 10px;background:#fff;width:100%}
.dlgfields textarea{resize:vertical;min-height:78px;line-height:1.5}
.dlgfields input::placeholder,.dlgfields textarea::placeholder{color:var(--muted);opacity:.7}
.lab-opt{font-weight:400;color:var(--muted);text-transform:none;letter-spacing:0}
.char-count{align-self:flex-end;font-size:11px;color:var(--muted);margin-top:-1px}
.dlgfields input[type=file]{font-size:13px;color:var(--text);border:1.5px dashed var(--line-2);
  background:var(--input-fill);padding:9px 10px;border-radius:9px;cursor:pointer;width:100%}
.logo-row{display:flex;align-items:center;gap:12px;margin:-4px 0 13px}
.logo-row img{max-height:48px;max-width:160px;border:1px solid var(--line);border-radius:7px;
  padding:5px 8px;background:#fff;object-fit:contain}
.dlgactions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}

/* ---- Panels ---- */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px 24px;margin-bottom:16px}
.panelrow{display:grid;grid-template-columns:minmax(300px,2fr) 3fr;gap:16px;align-items:start;margin-bottom:16px}
.panelrow .panel{margin-bottom:0;min-width:0}
/* Two panels side-by-side in a .panelrow.flip are EQUAL HEIGHT by default
   (align-items:stretch + .panel height:100%). Do not override with align-items:start. */
.panelrow.flip{grid-template-columns:1fr 1fr;align-items:stretch}
.panelrow.flip .panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column}
@media(max-width:1024px){.panelrow,.panelrow.flip{grid-template-columns:1fr}}
.panel h2{font-weight:800;font-size:16px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink);margin:0 0 14px}
.muted{color:var(--muted);font-weight:400;font-size:13px;text-transform:none;letter-spacing:0}
.paneltop{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.paneltop h2{margin:0}
.hint-tip{display:inline-flex;vertical-align:middle;margin-left:8px;color:var(--muted);cursor:help}
.hint-tip:hover{color:var(--blue)}

/* ---- Charts: legend, donut, generic chart box ---- */
.legend{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:6px}
.legend.left{justify-content:flex-start;margin-bottom:10px}
.legend span{display:flex;align-items:center;gap:6px}
.sw{width:11px;height:11px;border-radius:2px;display:inline-block}
.sw.cos{background:var(--gray)} .sw.roy{background:var(--amber-dark)} .sw.con{background:var(--green-dark)}
.sw.profit{background:var(--green)} .sw.blue{background:var(--blue)}

.chartbox{position:relative;height:300px}            /* generic; set height inline per chart */
.bechartbox{position:relative;height:340px;margin-top:6px}
@media(max-width:640px){.bechartbox{height:240px}}
.donutbox{position:relative;height:220px}
.ct{position:absolute;top:50%;left:50%;transform:translate(-50%,-52%);text-align:center;pointer-events:none}
.cv{display:block;font-weight:800;font-size:20px;color:var(--green);line-height:1}
.cl{display:block;font-size:11px;color:var(--muted);margin-top:4px;text-transform:uppercase;letter-spacing:.04em}
figure{margin:0;text-align:center}
figcaption{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.donutstats{display:flex;flex-direction:column;gap:3px}
.ds-item{padding:3px 2px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line)}
.ds-item:last-child{border-bottom:none}
.ds-lab{font-size:11px;font-weight:600;color:var(--muted);flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-val{font-size:11px;font-weight:700;color:var(--ink);text-align:right;white-space:nowrap}
.ds-val.ds-neg{color:var(--red)}

/* ---- Summary table (generic read-only figures) ---- */
table.summary{width:100%;max-width:760px;border-collapse:collapse;font-size:13px}
.summary th{text-align:center;font-weight:600;color:var(--muted);font-size:11px;padding:6px 10px;border-bottom:1px solid var(--line-2)}
.summary th:first-child{text-align:left}
.summary td{text-align:center;padding:7px 10px;border-bottom:1px solid var(--line)}
.summary td:first-child{text-align:left}
.summary tr:last-child td{border-bottom:none}
.summary tr.tot td{background:var(--blue-tint);font-weight:700}
.delta-pos{color:var(--green)} .delta-neg{color:var(--red)}

/* ---- Editable data grid (DESIGN-SYSTEM §5.6 — ALWAYS reuse, never hand-roll) ---- */
.gridscroll{overflow-x:auto}
.grid-scrollhint{display:none;gap:7px;align-items:flex-start;font-size:13px;color:var(--blue-deep);background:var(--blue-tint);border:1px solid var(--line);border-radius:8px;padding:8px 11px;margin:-2px 0 12px;line-height:1.45}
table.grid{border-collapse:collapse;font-size:13px;width:100%;table-layout:fixed;min-width:760px}
.grid th.rownum{width:30px;text-align:right}
.grid td.rownum{padding:6px 8px;text-align:right;color:var(--muted);font-size:13px;background:#F5F9FE}
.grid th{font-size:11px;font-weight:600;color:var(--muted);text-align:center;padding:7px 8px;
  background:var(--blue-tint);border-bottom:1px solid var(--line-2);white-space:normal;line-height:1.2;vertical-align:bottom}
.grid th.item{text-align:left;width:24%;min-width:150px}
.thsub{display:block;font-weight:400;font-size:11px;color:var(--muted);opacity:.85}
.grid th[data-tip]{cursor:help}
.grid td{padding:0;border-bottom:1px solid var(--line);text-align:center;background:#fff}
.grid td.calc{padding:6px 8px;color:var(--ink);background:#F5F9FE}
.grid td.calc.emph{font-weight:700;color:var(--ink)}
.grid td:not(.calc)+td.calc{border-left:1px solid #DBE5F3}
.grid th,.grid td{border-right:1px solid var(--line)}
.grid th:last-child,.grid td:last-child{border-right:none}
.grid tr:not(.tot):hover td.calc{background:#E9F1FC}
.grid td.item{text-align:left;position:relative}
.eg-badge{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:11px;font-style:normal;letter-spacing:.04em;text-transform:uppercase;color:#b4bdcb;pointer-events:none;white-space:nowrap}
.grid tr.tot td{background:var(--blue-tint);font-weight:700;padding:7px 8px;border-top:1.5px solid var(--line-2)}
.grid input{border:none;background:transparent;color:var(--ink);font-family:var(--font);
  font-size:13px;width:100%;padding:6px 8px;text-align:center;border-radius:0;box-sizing:border-box}
.grid input.name{text-align:left;padding-right:16px}
.grid input::placeholder{color:var(--muted);opacity:.6;font-weight:400}
.grid input:focus{outline:none;background:#fff;box-shadow:inset 0 0 0 2px rgba(28,95,229,.35)}
.grid td.del{padding:0 4px}
.delbtn{border:none;background:none;color:var(--muted);cursor:pointer;font-size:16px;line-height:1;padding:4px 6px;border-radius:6px}
.delbtn:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.delbtn:hover{background:var(--blue-soft);color:var(--blue-deep)}
.metric-note{font-size:13px;color:var(--muted);line-height:1.5;margin:12px 0 0;max-width:78ch}

/* ---- "Your data" cards ---- */
#royaltyPanel[hidden]{display:none}

/* ---- Footer ---- */
.foot{background:#fff;border-top:1px solid var(--line);padding:14px 0;margin-top:0}
.foot .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.foot a,.foot span{font-weight:600;font-size:13px;color:var(--muted);text-decoration:none}
.foot a:hover{color:var(--blue)}

/* ---- Shared mobile (≤640px). Toolbar/datagroup mobile rules live in the
        page's inline <style> 767 block — see index.html. ---- */
@media(max-width:640px){
  h1{font-size:24px}
  .wrap{padding:12px 14px 40px}
  body{font-size:16px}
  .masthead{flex-direction:column;align-items:flex-start;padding:18px 16px 16px}
  .btn{padding:11px 16px;min-height:44px;font-size:14px}
  .btn.small{padding:9px 12px;min-height:40px;font-size:13px}
  .fee-opt{padding:10px 14px;min-height:40px;font-size:13px}
  .fee-opts{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
  .fee-lab{font-size:13px}
  .panel{padding:16px}
  .paneltop{flex-wrap:wrap;gap:8px}
  .paneltop .actions{width:100%;justify-content:flex-start;gap:8px}
  .paneltop .actions .btn{flex:1}
  .controls{flex-direction:column;align-items:stretch;gap:16px}
  .ctrl{min-width:0;width:100%}
  .gridscroll{-webkit-overflow-scrolling:touch}
  .grid input{padding:9px 8px;min-height:42px;font-size:13px}
  table.summary{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}
  .summary th,.summary td{padding:7px 8px;font-size:13px}
  .donutbox{height:min(52vw,220px)}
  /* Comparison tables FILL the panel (beats the generic display:block above) */
  .summary.bd{display:table;width:100%}
}

/* ============================================================
   ╔══════════════════════════════════════════════════════════╗
   ║  BESPOKE ZONE — this tool's own component CSS.             ║
   ║  Everything ABOVE is the shared shell: do not edit it.     ║
   ║  Print styling lives in the SHARED ../../assets/report.css ║
   ║  (rpt-* classes) — only genuinely tool-specific print bits ║
   ║  are at the foot of this zone.                             ║
   ╚══════════════════════════════════════════════════════════╝
   ============================================================ */

/* ---- Canonical standalone inputs (DESIGN-SYSTEM §5.2) — white editable with
   a hairline inset border, centred; read-only/auto fields add .ro (flat grey). */
.basics{display:flex;gap:22px 26px;flex-wrap:wrap;align-items:flex-end}
.basic{display:flex;flex-direction:column;gap:5px}
.basic label{font-size:13px;font-weight:600;color:var(--ink);line-height:1.3}
.basic .basic-sub{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:1px}
.basic .inwrap{display:flex;align-items:center;gap:6px}
.basic .inwrap input.num{width:104px;font-family:var(--font);font-size:13px;font-weight:400;padding:5px 8px;
  text-align:center;border:none;border-radius:6px;background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px #DCE3EE}
.basic .inwrap input.num:focus{outline:none;background:#fff;box-shadow:inset 0 0 0 2px rgba(28,95,229,.35)}
.basic .inwrap input.num.ro{background:#F1F3F7;box-shadow:none;color:var(--muted);cursor:default}
.basic .inwrap input.num.ro:focus{background:#F1F3F7;box-shadow:none}
.in-prefix,.in-suffix{font-size:13px;font-weight:400;color:var(--muted)}
.autofills-arrow{font-size:16px;color:var(--muted);align-self:flex-end;padding-bottom:6px;user-select:none}
@media(max-width:640px){.autofills-arrow{display:none}}

/* Stacked input-group headings (event-P&L / bundle style) */
.input-group-head{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);margin:0 0 12px}
.input-group-head .muted{font-size:11px;font-weight:400;letter-spacing:.02em;text-transform:none}

/* Budget + margin panels sit as equal halves (like bundle's panelrow-inputs) */
.panelrow.panelrow-targets{grid-template-columns:1fr 1fr;align-items:stretch}
.panelrow.panelrow-targets .panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column}
@media(max-width:1024px){.panelrow.panelrow-targets{grid-template-columns:1fr}}

/* Budget on/off toggle row — reuses the standard .switch component */
.budget-toggle{display:flex;align-items:center;gap:12px;margin:2px 0 14px}
#budgetFields[hidden]{display:none}

/* small status line under each target panel (which benchmark is in charge) */
.target-note{font-size:11px;color:var(--muted);line-height:1.5;margin:12px 0 0}
.target-note:empty{display:none}
.target-note b{color:var(--ink);font-weight:700}
.panelrow-targets .panel .target-note{margin-top:auto;padding-top:12px}

/* New product grid — one row, four editable columns */
table.grid.npv-grid{min-width:640px}
.npv-grid th.item{width:34%}

/* Revenue & cost breakdown — two donut cards (clone of menu-planning) */
.bd-charts{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
@media(max-width:1024px){.bd-charts{grid-template-columns:1fr}}
.bd-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.bd-title{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0;text-align:center}
.bd-body{display:flex;gap:28px;align-items:center;justify-content:center}
.bd-body .donutbox{flex:0 0 200px;height:200px}
.bd-body .donutstats{flex:0 0 auto;width:260px;margin-top:0}
@media(min-width:768px){.bd-charts{gap:48px}}
@media(max-width:767px){
  .bd-body{flex-direction:column;gap:14px}
  .bd-body .donutbox{flex:0 0 auto;width:100%;max-width:240px;height:230px;margin:0 auto}
  .bd-body .donutstats{width:100%}
}

/* Cash readout strip under the price chart */
.readout{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.readout-lab{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.cash-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
.cash-kpis .kpi{padding:11px 10px 10px}
.cash-kpis .kpi-num{font-size:16px;margin:6px 0 2px}
@media(max-width:767px){.cash-kpis{grid-template-columns:1fr 1fr}}

/* What-if sliders (price + royalty) — slider track/thumb from the shared shell */
.whatif{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.whatif-row{display:flex;align-items:center;gap:16px;margin-bottom:12px;flex-wrap:wrap}
.whatif-row:last-of-type{margin-bottom:0}
.whatif-lab{flex:none;width:180px;font-size:13px;font-weight:600;color:var(--ink)}
.whatif-row input[type=range]{flex:1;min-width:180px}
.whatif-note{font-size:11px;color:var(--muted);line-height:1.5;margin:12px 0 0}
#whatifRoyRow[hidden]{display:none}
@media(max-width:640px){.whatif-lab{width:100%}}

/* comparison tables (reuse the shared .summary look, like bundle's .summary.bd) */
#compareTable .summary.bd,#forecastTable .summary.bd{width:100%;max-width:none;font-size:13px}
.summary.bd th{font-size:11px;font-weight:700;color:var(--muted)}
.summary.bd tr.sub td{border-top:1px solid var(--line-2);font-weight:700;color:var(--ink)}
.summary.bd tr.tot td{background:var(--blue-tint);font-weight:800;color:var(--ink)}
.summary.bd td.pos{color:var(--green)} .summary.bd td.neg{color:var(--red)}

/* instant tooltip bubble (data-tip), identical to the live tools */
.gtip{position:fixed;z-index:9999;max-width:280px;background:var(--ink);color:#fff;white-space:pre-line;
  font-family:var(--font);font-size:13px;font-weight:600;line-height:1.45;padding:8px 11px;
  border-radius:8px;box-shadow:0 8px 24px rgba(11,37,69,.22);pointer-events:none}

/* Verdict headline + at-a-glance cards come from ../../assets/glance.css
   (.fv-head / .kpi) — only the glance grid width is set here. */
#glancePanel .kpirow{margin-bottom:0}

/* ---- tool-specific print bits (shared scaffold lives in assets/report.css) ---- */
/* Report pies inherit the shared 200px size from assets/report.css — no per-tool override
   (a 220px override here made this tool's donuts larger than every other report). */
