/* OpenPPA - interface styles. Tokens first; components use tokens only. */
:root {
  --paper: #f5f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --ink: #1b2430;
  --ink-2: #4a5663;
  --ink-3: #7a8591;
  --line: #dde2dc;
  --accent: #2f5d8c;
  --accent-soft: #e3ecf5;
  --tobe: #c2410c;
  --tobe-soft: #fbeadf;
  --good: #2e7d4f;
  --warn: #9a6512;
  --bad: #b42318;
  --good-soft: #e3f1e8;
  --warn-soft: #f7eddb;
  --bad-soft: #f8e3e1;
  --q1: #e7eef6; --q2: #e6f2ea; --q3: #fbefe3; --q4: #f6e6e6;
  --c2: #2f8a86; --c3: #b0772b; --c4: #7d62a8; --c5: #5f8a3a; --c6: #a1506a; --c7: #9aa3ad;
  --radius: 6px;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #12161b; --surface: #1a2027; --surface-2: #212932; --ink: #e6eaee; --ink-2: #b3bcc6; --ink-3: #8a95a1;
    --line: #2c353f; --accent: #86afd9; --accent-soft: #22324a; --tobe: #f08a4b; --tobe-soft: #3a2518;
    --good: #6cc38f; --warn: #e0b35a; --bad: #f08778; --good-soft: #1d3326; --warn-soft: #3a2f1a; --bad-soft: #3d2220;
    --q1: #1e2a38; --q2: #1d2e24; --q3: #34281d; --q4: #33201f;
    --c2: #5fc0bb; --c3: #e0a45a; --c4: #b29ae0; --c5: #93c26b; --c6: #db86a0; --c7: #6f7a86;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12161b; --surface: #1a2027; --surface-2: #212932; --ink: #e6eaee; --ink-2: #b3bcc6; --ink-3: #8a95a1;
  --line: #2c353f; --accent: #86afd9; --accent-soft: #22324a; --tobe: #f08a4b; --tobe-soft: #3a2518;
  --good: #6cc38f; --warn: #e0b35a; --bad: #f08778; --good-soft: #1d3326; --warn-soft: #3a2f1a; --bad-soft: #3d2220;
  --q1: #1e2a38; --q2: #1d2e24; --q3: #34281d; --q4: #33201f;
    --c2: #5fc0bb; --c3: #e0a45a; --c4: #b29ae0; --c5: #93c26b; --c6: #db86a0; --c7: #6f7a86;
}

* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 14px/1.45 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num, td.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* shell */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.top-row { display: flex; align-items: center; gap: 12px; width: 100%; }
.top-row .sb { margin-left: auto; flex: 0 1 420px; }
.top-row .who { font-size: 12px; white-space: nowrap; }
.top-row .demo-user { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border: 1px solid var(--accent); background: var(--accent-soft); }
.top-row .demo-user select { font-size: 12px; padding: 2px 4px; border: 0; background: transparent; color: var(--ink); font-weight: 600; max-width: 260px; }
@media (max-width: 640px) { .top-row { flex-wrap: wrap; } .top-row .sb { order: 3; flex: 1 1 100%; margin-left: 0; } .top-row .who { margin-left: auto; } }
.brand b { font-family: var(--font-display); font-size: 19px; letter-spacing: .01em; }
.brand span { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; width: 100%; }
.pickers label { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); }
select, input[type=number], input[type=text] { background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 8px; min-width: 0; }
.layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: calc(100vh - 58px); }
nav.side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); }
nav.side button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 4px; cursor: pointer; color: var(--ink-2); }
nav.side button:hover { background: var(--surface-2); }
nav.side button.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
nav.side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 12px 10px 4px; display: flex; justify-content: flex-start; gap: 6px; align-items: center; font-weight: 500; }
nav.side .grp:hover { background: none; color: var(--ink); }
nav.side .grp .car { font-size: 10px; width: 10px; }
@media (min-width: 821px) { nav.side > button:not(.grp):not(.nav-pin) { padding-left: 38px; } }
nav.side .grp.here { color: var(--accent); font-weight: 700; }
nav.side .nav-pin { align-self: flex-end; padding: 2px 8px; color: var(--ink-3); font-size: 14px; line-height: 1; }
.layout { transition: grid-template-columns .15s ease; }
.layout.nav-min { grid-template-columns: 34px minmax(0, 1fr); }
.layout.nav-min nav.side { padding: 14px 2px; }
.layout.nav-min nav.side .nav-pin { align-self: center; }
@media (min-width: 821px) {
  nav.side button.folded { display: none; }
  .layout.nav-min nav.side > button:not(.nav-pin) { display: none; }
}
main { padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  nav.side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 10px; }
  nav.side .grp, nav.side .nav-pin { display: none; }
  .layout.nav-min { grid-template-columns: 1fr; }
  nav.side button { white-space: nowrap; }
}

/* blocks */
.head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.head p { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.panel > h3 { margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.tile .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.tile .val { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); font-weight: 600; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--surface); font-weight: 600; }
.btn.tobe { background: var(--tobe); border-color: var(--tobe); color: var(--surface); font-weight: 600; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 2px 4px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* chips */
.chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.chip.model { background: var(--good-soft); border-color: transparent; color: var(--good); }
.chip.borrowed { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.extrapolated { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.fallback { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.chip.pass { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.fail { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pos { color: var(--good); }
.neg { color: var(--bad); }

/* tables */
.tbl { overflow-x: auto; max-height: 520px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-2);
  padding: 7px 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.num, th.num { text-align: right; }
tr.sel td { background: var(--accent-soft); font-weight: 600; }
tr.sel td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
tbody tr:hover td { background: var(--surface-2); cursor: default; }
tbody tr.click:hover td { cursor: pointer; }

/* charts */
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--ink-2); font: 11px var(--font-body); }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .axis { stroke: var(--ink-3); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* simulator */
.sim { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .sim { grid-template-columns: 1fr; } }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions-list { display: grid; gap: 6px; }
.act { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--surface-2); font-size: 12px; }
.act b { font-weight: 600; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kpi .tile .val { font-size: 20px; }
.kpi .asis { color: var(--ink-3); font-size: 12px; font-family: var(--font-mono); }
.risk { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 7px 9px; border-radius: 4px; background: var(--warn-soft);
  color: var(--ink); font-size: 12px; }
.risk b { color: var(--warn); }
.notice { padding: 10px 12px; border-radius: 4px; background: var(--accent-soft); font-size: 13px; }
.err { padding: 10px 12px; border-radius: 4px; background: var(--bad-soft); color: var(--bad); font-size: 13px; }
.empty { padding: 24px; text-align: center; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) { .fade { animation: fade .25s ease-out; } @keyframes fade { from { opacity: .4; } to { opacity: 1; } } }
.brand { align-items: center; }
.brand .name { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.brand .name .by { color: var(--ink-2); font-weight: 600; font-size: 12px; }
.brand .logo { flex: none; display: block; object-fit: contain; }

/* report controls */
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.tbl-tools { display: flex; justify-content: flex-end; margin-bottom: 4px; }
@media (max-width: 720px) { .tabs.scroll { flex-wrap: nowrap; overflow-x: auto; } .tabs.scroll button { white-space: nowrap; } }

/* phase 3 */
.chip.band-high { background: var(--tobe-soft); border-color: transparent; color: var(--tobe); }
.chip.band-medium { background: var(--surface-2); border-color: transparent; color: var(--ink-2); }
.chip.band-low { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip.fallback-muted { background: var(--surface-2); color: var(--ink-3); }
.grid2.scen { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); align-items: start; }
.timeline { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.tl { border-left: 2px solid var(--line); padding: 2px 0 2px 10px; }
.tl.status { border-color: var(--accent); }
.review textarea, .review input[type=text] { width: 100%; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) { .grid2.scen { grid-template-columns: 1fr; } }

/* phase 4 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dims { display: grid; gap: 10px; margin-top: 10px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 3px 0; }
.bar i { display: block; height: 100%; background: var(--ink-3); }
.bar i.s-pass { background: var(--good); } .bar i.s-warn { background: var(--warn); } .bar i.s-fail { background: var(--bad); }
.pickers .chip { font-size: 12px; }

/* KPI deep dive */
:root { --bar-a: rgba(196, 160, 110, 0.45); --bar-b: rgba(160, 180, 110, 0.45); --bar-c: rgba(130, 140, 150, 0.28); }
.dd td.dd-c { position: relative; white-space: nowrap; }
.dd td.dd-c .ddbar { position: absolute; left: 4px; top: 5px; bottom: 5px; border-radius: 2px; max-width: calc(100% - 8px); }
.dd td.dd-c span { position: relative; }
.dd tr.dd-total td { background: var(--surface-2); font-weight: 600; }
.dd tr.dd-l1 td { border-top: 1px solid var(--line); }
.dd .dd-tog { display: inline-block; width: 14px; margin-right: 6px; color: var(--accent); }


/* Business picker: filled with the business colour so it is always clear which business is shown */
.pickers label.biz { gap: 0; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--biz); }
.pickers label.biz span { background: var(--biz); color: var(--surface); font-weight: 700; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 10px; align-self: stretch; display: flex; align-items: center; }
.pickers label.biz select { border: 0; border-radius: 0; font-weight: 700; font-size: 13px; color: var(--biz); background: var(--surface);
  padding: 5px 8px; }
.pickers label.biz select option { color: var(--ink); font-weight: 400; }

/* Planner › SKU range: where a delisted SKU's volume goes */
.stack { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--surface-2); margin-top: 6px; }
.stack i { display: block; height: 100%; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pl-chips .chip { display: inline-flex; align-items: center; gap: 4px; }
.pl-chips button.chip { cursor: pointer; border: 1px solid var(--line); }
.pl-chips button.chip.on { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.pl-chips .btn.link { padding: 0 2px; line-height: 1; }
.sim-focus { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--accent-soft); }
.sim-focus .pl-chips { margin-top: 0; }

/* scenario journey: uses the app's own tokens, fonts and components; only the opportunity colours are its own */
.jx { --j-shadow: none; --j-ring: 0 0 0 2px var(--accent-soft);
  --op-price: #5fd4ea; --op-dist: #a8743a; --op-delist: #1f2937; --op-reno: #e5737b; --op-inno: #f2c200; --op-none: #dfe2ea; --op-trade: #7c6bd6;
  display: grid; gap: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jx { --op-price: #67d9ee; --op-dist: #c28a4e; --op-delist: #e5e7eb; --op-reno: #f08a91; --op-inno: #f7cf2a; --op-none: #3a4257; --op-trade: #a395f0; }
}
:root[data-theme="dark"] .jx { --op-price: #67d9ee; --op-dist: #c28a4e; --op-delist: #e5e7eb; --op-reno: #f08a91; --op-inno: #f7cf2a; --op-none: #3a4257; --op-trade: #a395f0; }
.journey { padding-bottom: 72px; grid-template-columns: minmax(0, 1fr); min-width: 0; }   /* wide tables scroll in their own box, never the page */
.journey > * { min-width: 0; }
.jx select:focus, .jx input:focus, .jx textarea:focus, .j-multi[open] summary { outline: none; border-color: var(--accent); box-shadow: var(--j-ring); }
.jx .seg button.on { background: var(--accent); color: var(--surface); }
.jx textarea, .j-modal textarea { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font: inherit; }

/* start */
.j-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.j-hero h2 { margin: 0; }
.j-hero p { margin: 4px 0 0; max-width: 62ch; color: var(--ink-2); }
.j-hero .tag { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.j-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.j-tile { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.j-tile span { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.j-tile b { font-size: 14px; }
.j-tile small { color: var(--ink-3); font-size: 12px; }
.j-tile:hover { transform: translateY(-2px); box-shadow: var(--j-shadow); border-color: var(--accent); }
.j-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.j-tile.on span { background: var(--accent); color: var(--surface); }
.j-form { display: grid; gap: 12px; max-width: 680px; margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); }
.j-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.j-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.j-form input[type=text], .j-form textarea, .j-form select, .j-side textarea { width: 100%; }
label.j-check { display: flex; flex-direction: row; align-items: center; gap: 7px; font-size: 13px; font-weight: 400; color: var(--ink); cursor: pointer; }
label.j-check input { accent-color: var(--accent); width: 15px; height: 15px; }
label.j-check i, .j-legend i, .j-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
label.j-check.off { color: var(--ink-3); cursor: not-allowed; }
.j-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; position: relative; }
.j-card { position: relative; padding: 0 14px 0 0; }
.j-card .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--surface); font-weight: 600; font-size: 13px; position: relative; z-index: 1; margin-bottom: 10px; }
.j-card::before { content: ""; position: absolute; top: 15px; left: 30px; right: 0; height: 2px; background: var(--accent-soft); }
.j-card:last-child::before { display: none; }
.j-card p { margin: 4px 0 0; }

/* planner */
.j-filters label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.j-legend { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.j-legend span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.j-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.j-layout.with-side { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 900px) { .j-layout.with-side { grid-template-columns: 1fr; } }
table.j-grid { border-collapse: separate; border-spacing: 8px; width: 100%; margin: -8px; }
.j-grid th, .j-grid td { padding: 8px; vertical-align: top; text-align: left; border: 0; }
.j-grid thead th { font-size: 12px; font-weight: 600; text-align: left; color: var(--ink); padding: 4px 8px; border-bottom: 2px solid var(--accent-soft); }
.j-grid tbody th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; white-space: nowrap; width: 1%; color: var(--accent); background: var(--accent-soft); border-radius: var(--radius); text-align: center; vertical-align: middle; }
.j-grid td { min-width: 200px; max-width: 340px; background: var(--surface-2); border-radius: var(--radius); }
.j-grid td:empty { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 7px); }
.j-grid tbody th, .j-grid thead th:first-child { position: sticky; left: 0; z-index: 1; }
.j-grid thead th:first-child { background: var(--surface); border: 0; }
.j-cell { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.j-cell:last-child { margin-bottom: 0; }
.j-item { display: grid; grid-template-columns: auto 6px 1fr; gap: 2px 8px; align-items: stretch; width: 100%; padding: 8px 10px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 12px; color: var(--ink); transition: background .15s; }
.j-item:hover, .j-skurow:hover { background: var(--accent-soft); }
.j-item.on, .j-skurow.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.j-item .p { align-self: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.j-item .bars { display: flex; flex-direction: column; width: 6px; min-height: 30px; border-radius: 3px; overflow: hidden; }
.j-item .bars i { flex: 1; }
.j-item .bars i.none, .j-skurow .hbar i.none { background: var(--op-none); }
.j-item .t { align-self: center; line-height: 1.3; min-width: 0; white-space: normal; overflow-wrap: anywhere; color: var(--ink-2); }
.j-item.ticked .t, .j-skurow.ticked .t { font-weight: 700; color: var(--ink); }
.j-item .sg { grid-column: 3; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.j-skurow { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; width: 100%; padding: 6px 10px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; font-size: 11.5px; color: var(--ink-2); }
.j-skurow .hbar { display: flex; height: 8px; border-radius: 3px; overflow: hidden; }
.j-skurow .hbar i { flex: 1; }
.j-skurow .t { line-height: 1.3; overflow-wrap: anywhere; min-width: 0; white-space: normal; }
.rec-a { color: var(--good); } .rec-r { color: var(--bad); } .rec-m { color: var(--warn); }
.j-rec b { margin-left: 8px; }
.j-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; align-items: end; }
.j-filters label.j-fl { display: grid; gap: 3px; color: var(--ink-2); align-items: start; }
.j-bar .j-multi, .j-bar .j-multi summary, .j-scope .j-multi, .j-scope .j-multi summary { display: block; width: 100%; }
/* a long choice (e.g. a PPG name) is cut with "…" inside its own cell instead of pushing into the next one */
.j-bar > *, .j-bar .j-fl, .j-bar .j-multi, .j-scope .j-fl, .j-scope .j-multi { min-width: 0; }
.j-bar .j-multi summary { max-width: 100%; }
.j-bar-btn { flex-wrap: nowrap; }
.j-bar-btn .btn { padding-left: 10px; padding-right: 10px; }
.j-pass { margin-left: 18px; }
.j-pass > span { display: inline-flex; align-items: center; gap: 4px; }
.j-multi summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-bar-btn { display: inline-flex; gap: 6px; align-self: end; }
.j-multi .pop input[type=text] { width: 100%; padding: 5px 8px; }
.j-multi .pop label.all { border-bottom: 1px solid var(--line); padding-bottom: 6px; font-weight: 600; }
.j-cont { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--tobe-soft); display: grid; gap: 10px; }
.j-cont-scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }
.j-cont-n { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.j-cont-n > div { background: var(--surface); border-radius: var(--radius); padding: 8px 12px; }
.j-side { display: grid; gap: 8px; position: sticky; top: 8px; max-height: calc(100vh - 100px); overflow: auto; }
.j-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
.j-kv div { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); }
.j-kv b { font-size: 13px; }
.j-opps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.j-sku { border-radius: var(--radius); background: var(--surface-2); padding: 10px; display: grid; gap: 6px; }
.j-side-foot { justify-content: space-between; position: sticky; bottom: -18px; background: var(--surface); padding: 10px 0; margin-top: 4px; border-top: 1px solid var(--line); }
.jx .tbl { border: 0; border-radius: var(--radius); }
.jx .tbl thead th { background: var(--surface-2); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--ink-2); }
.jx .tbl td { border-color: var(--line); }
tr.j-kid td { background: var(--surface-2); font-size: 12px; }
.j-exp { padding: 0 6px 0 0 !important; }

/* multi-select */
.j-multi { position: relative; display: inline-block; }
.j-multi summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 26px 7px 10px; background: var(--surface); min-width: 96px; position: relative; color: var(--ink); }
.j-multi summary::-webkit-details-marker { display: none; }
.j-multi summary::after { content: "▾"; position: absolute; right: 9px; color: var(--ink-3); }
.j-multi .pop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 190px; max-height: 260px; overflow: auto; display: grid; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--j-shadow); }

/* step bar */
.j-steps { position: sticky; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 8px 10px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .10); z-index: 6; }
.j-steps button.j-name { color: var(--accent); font-weight: 600; font-size: 12px; margin-right: 4px; background: var(--accent-soft); border-radius: var(--radius); padding: 6px 10px; border: 0; cursor: pointer; max-width: 190px; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.j-steps button.st { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 7px 4px 4px; border-radius: var(--radius); cursor: pointer; color: var(--ink-3); font-size: 12px; }
.j-steps button.st i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-style: normal; font-size: 11px; font-weight: 600; }
.j-steps button.st.done i { background: var(--accent-soft); color: var(--accent); }
.j-steps button.st.on { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.j-steps button.st.on i { background: var(--accent); color: var(--surface); }
/* a step that holds changes: its tick is filled in the step's colour, with how many products it changes */
.j-steps button.st.chg { color: var(--ink); font-weight: 600; }
.j-steps button.st.chg i { background: var(--stc); color: var(--surface); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--stc); }
.j-steps button.st .st-n { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; align-self: center; line-height: 1; background: var(--stc); color: var(--surface); font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; }
.j-steps .arr { flex: 0 1 12px; min-width: 4px; height: 2px; background: var(--line); border-radius: 2px; }
@media (max-width: 1250px) { .j-steps { flex-wrap: wrap; border-radius: var(--radius); } }
.j-steps .btn { padding: 6px 14px; }

/* pricing & distribution table */
.j-pd { overflow: auto; max-height: calc(100vh - 300px); border-radius: var(--radius); }
.j-pd table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 12px; }
.j-pd th, .j-pd td { padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.j-pd thead { position: sticky; top: 0; z-index: 3; }
.j-pd thead th { background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink); text-align: left; }
.j-pd thead tr.setall th { background: var(--surface); text-transform: none; letter-spacing: 0; }
.j-pd th.grp { text-align: center; border-left: 1px solid var(--line); }
.j-pd th.num, .j-pd td.num { text-align: right; font-variant-numeric: tabular-nums; }
.j-pd .stick { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 500; max-width: 260px; white-space: normal; min-width: 220px; border-right: 1px solid var(--line); }
.j-pd tbody th.tick { box-shadow: inset 4px 0 0 var(--op-price); }
.j-pd tbody tr.ed th, .j-pd tbody tr.ed td { background: var(--accent-soft); }
.j-pd .res { background: var(--accent-soft); z-index: 1; overflow: hidden; text-overflow: ellipsis; }
.j-pd .res.first { border-left: 2px solid var(--accent); box-shadow: -8px 0 8px -6px rgba(0, 0, 0, 0.25); }   /* the table scrolls sideways under the pinned results */
.j-pd tfoot .res, .j-pd thead .res { background: var(--accent-soft); }
.j-pd thead th.res { white-space: normal; line-height: 1.2; }
.j-pd tfoot { position: sticky; bottom: 0; z-index: 3; }
.j-pd tfoot th, .j-pd tfoot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); }
.j-pd select { padding: 4px 6px; border-radius: var(--radius); }
.jx input.j-num { padding: 4px 6px; border-radius: var(--radius); text-align: right; }
.jx .pos { color: var(--good); } .jx .neg { color: var(--bad); }
.j-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.j-sum > div { padding: 12px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 2px; }

/* journey round 2 and 3: step tables and the four-tab summary */
.j-count { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.j-count b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.j-pd tbody tr.grp-row th, .j-pd tbody tr.grp-row td { background: var(--surface-2); font-weight: 600; }
.j-pd tbody th.kid { font-weight: 400; padding-left: 26px; color: var(--ink-2); }
.j-pd tbody th.tick-d { box-shadow: inset 4px 0 0 var(--op-delist); }
.j-pd tbody th.tick-r { box-shadow: inset 4px 0 0 var(--op-reno); }
.j-pd tbody tr.tot th, .j-pd tbody tr.tot td, .jx .tbl tr.tot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); }
.j-pd label.j-check { font-size: 12px; }
.j-tl { }
.j-tl .val small { font-size: 12px; font-weight: 400; color: var(--ink-3); font-family: var(--font-body, inherit); }
table.j-st { width: 100%; }
.j-st th, .j-st td { white-space: nowrap; }
.j-st tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.j-st tr.dif td, .j-st tr.dif th { border-top: 2px solid var(--line); font-weight: 600; }
.j-st tr.dif small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.j-st tr.stp th { font-weight: 400; font-size: 12px; }
.j-st tr.stp td { padding: 4px 8px; min-width: 96px; }
.j-sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; }
.j-sq.cur { background: var(--op-none); } .j-sq.new { background: var(--accent); }
.j-bar2 { position: relative; height: 14px; background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat; }
.j-bar2 i { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.j-bar2 i.up { background: var(--good); } .j-bar2 i.dn { background: var(--bad); }
.j-bar2 i.up.ix { background: repeating-linear-gradient(135deg, var(--good) 0 3px, var(--good-soft) 3px 6px); } .j-bar2 i.dn.ix { background: repeating-linear-gradient(135deg, var(--bad) 0 3px, var(--bad-soft) 3px 6px); }
tr.stp.ix th { font-style: italic; }
.j-rk { white-space: normal; line-height: 2.2; }
.j-band { padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-weight: 600; text-align: center; }
.j-item.ab { cursor: default; grid-template-columns: auto 6px 1fr; }
.j-item.ab .sg { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.j-scale { display: inline-grid; gap: 3px; }
.j-scale .bar { display: flex; justify-content: space-between; align-items: center; min-width: 220px; min-height: 22px; padding: 2px 8px; border-radius: 6px; font-size: 11px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 42%, var(--surface)), var(--surface) 50%, color-mix(in srgb, var(--good) 42%, var(--surface))); }
.j-scale em { font-style: normal; font-family: var(--font-mono); color: var(--ink); }

/* journey: (i) icons, hover cards, dialogs */
.j-i { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 3px; border-radius: 50%; border: 1px solid var(--ink-3); color: var(--ink-3); font: italic 600 9px/1 Georgia, serif; text-transform: none; letter-spacing: 0; cursor: help; vertical-align: middle; user-select: none; }
.j-i:hover, .j-i:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.j-tip { position: fixed; z-index: 60; transform: translateX(-50%); width: max-content; max-width: 280px; padding: 8px 10px; border-radius: var(--radius); background: #1f2433; color: #fff; font: 400 12px/1.4 var(--font-body, system-ui, sans-serif); text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); pointer-events: none; }
.j-hc { position: fixed; z-index: 60; width: 244px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 12px; pointer-events: none; display: grid; gap: 3px; }
.j-hc b { font-size: 12px; margin-bottom: 3px; overflow-wrap: anywhere; }
.j-hc div { display: flex; justify-content: space-between; gap: 10px; }
.j-hc span { color: var(--ink-2); } .j-hc em { font-style: normal; font-family: var(--font-mono); color: var(--ink); }
.j-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(15, 18, 30, .38); }
.j-modal.quiet { background: rgba(15, 18, 30, .12); pointer-events: none; }
.j-modal .box { width: min(420px, calc(100vw - 32px)); padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 48px rgba(0, 0, 0, .3); display: grid; gap: 12px; }
.j-modal .box h3 { margin: 0; } .j-modal .box p { margin: 0; color: var(--ink-2); }
.j-modal .box.sm { width: auto; grid-auto-flow: column; align-items: center; padding: 14px 20px; }
.j-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: jspin .8s linear infinite; }
@keyframes jspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .j-spin { animation: none; } }
.j-busy { opacity: .45; }
.jx .btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.j-dt { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); cursor: help; }
.j-dt.off { background: var(--surface-2); color: var(--ink-3); }
.j-pd tbody th.tick-b { box-shadow: inset 4px 0 0 var(--op-dist); }
.j-comm { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 12px; }
.j-comm div { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 10px; }
.j-acc { justify-self: start; } .j-codes { padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 2px; overflow-wrap: anywhere; }
.j-ar { font-style: normal; font-size: 9px; color: var(--ink-3); } .j-ar.pos { color: var(--good); } .j-ar.neg { color: var(--bad); }
.j-item.ab .sg em { font-style: normal; font-size: 9px; }
.j-fl > span { display: inline-flex; align-items: center; }

/* journey: comments, demand-transfer window */
.j-cm { margin-left: 6px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 12px; padding: 0 3px; border-radius: 4px; }
.j-cm:hover, .j-cm.has { color: var(--accent); } .j-cm.has { background: var(--accent-soft); }
button.j-dt { border: 0; cursor: pointer; font: inherit; }
.j-modal .box.wide { width: min(620px, calc(100vw - 32px)); }
.j-modal .box textarea, .j-modal .box select { border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 8px; background: var(--surface); color: var(--ink); width: 100%; font: inherit; }
.j-modal .box select { width: auto; }
.j-dtw { display: grid; gap: 14px; }
.j-dt3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.j-dt3 > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-2); }
.j-dt3 b { font-size: 20px; font-variant-numeric: tabular-nums; }
.j-dtg { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.j-dtl { display: grid; gap: 5px; flex: 1; min-width: 220px; font-size: 12px; }
.j-dtl div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.j-dtl i { width: 12px; height: 12px; border-radius: 3px; } .j-dtl em { font-style: normal; font-family: var(--font-mono); }

.j-applied { font-size: 11px; color: var(--muted, #6b7280); white-space: nowrap; margin-top: 2px; text-align: right; }
.j-warn { font-size: 11px; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 2px 6px; margin-top: 3px; text-align: left; white-space: normal; max-width: 220px; margin-left: auto; line-height: 1.35; }

/* ---- Calendar */
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.cal-grid { display: grid; gap: 6px; }
.cal-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.cal-p { display: grid; align-content: center; gap: 1px; padding: 4px 8px; background: var(--surface-2); border-radius: var(--radius); }
.cal-weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal-wk { display: grid; gap: 1px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 12px; }
.cal-wk .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-wk .w { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }
.cal-wk.hol { border-color: var(--hc); background: color-mix(in srgb, var(--hc) 16%, var(--surface)); }
.cal-wk .h { font-size: 11px; font-weight: 600; color: var(--ink); }
@media (max-width: 700px) { .cal-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* "why did this line move?" */
.j-why { font-weight: 400; white-space: normal; max-width: 340px; line-height: 1.3; margin-top: 2px; }
.j-why .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.j-why .btn.link { padding: 0 2px; font-size: 11px; }
#why-box .box { text-align: left; font-weight: 400; white-space: normal; max-height: calc(100vh - 64px); overflow: auto; }
.why-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.why-sec h4 { margin: 4px 0; font-size: 13px; }
.why-sum { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.why-sum h4 { margin: 0 0 4px; font-size: 13px; }
.why-sum ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; line-height: 1.45; }
.why-det-h { margin: 12px 0 4px; font-size: 13px; }
details.why-sec { border-top: 1px solid var(--line, #e3e3e3); padding: 6px 0; }
details.why-sec > summary { cursor: pointer; font-size: 13px; list-style-position: outside; margin-left: 14px; }
details.why-sec[open] > summary { margin-bottom: 6px; }
.why-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; color: var(--ink); }
.why-steps li { line-height: 1.4; }
/* help centre */
.help-list { display: grid; gap: 8px; }
.help-item { padding: 10px 14px; scroll-margin-top: 140px; }
.help-pin { border: 2px solid var(--accent); padding: 14px 16px; }
.help-pin .help-t { cursor: default; }
.help-pin .help-t b { font-size: 16px; }
.help-t { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; width: 100%; }
.help-t b { flex: 1; }
.help-t:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.help-b { margin-top: 8px; display: grid; gap: 8px; color: var(--ink); line-height: 1.5; }
.help-b p, .help-b ul { margin: 0; } .help-b ul { padding-left: 20px; display: grid; gap: 4px; }
#help-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; background: var(--surface); color: var(--ink); font: inherit; }
/* worked examples and "about this page" */
.ex-list { display: grid; gap: 8px; }
.ex-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.ex-item p { margin: 2px 0 0; }
.pagebar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: -4px 0 6px; flex-wrap: wrap; }
.pagebar > .about { flex: 1; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.crumbs .btn.link { padding: 2px 0; }
.crumbs .sep { color: var(--ink-3); }
.crumbs .cur { color: var(--ink-2); font-weight: 600; }
.crumb-clear { font: inherit; font-size: 14px; line-height: 1; width: 24px; height: 24px; display: inline-grid; place-items: center; margin-left: 18px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; }
.crumb-clear:hover { background: var(--surface-2); color: var(--bad, #c0392b); }
.about { display: grid; justify-items: end; margin: -4px 0 6px; }
.about-box { justify-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; margin-top: 4px; }
.about-box p, .about-box ul { margin: 4px 0 0; } .about-box ul { padding-left: 18px; display: grid; gap: 3px; }
.about-box .btn.link { padding: 0; text-align: left; white-space: normal; display: inline; line-height: 1.4; }
.why-btn { font: inherit; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 9px; margin-left: 4px; cursor: pointer; white-space: nowrap; }
.why-btn:hover { background: var(--accent); color: #fff; }
.why-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.j-why { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }

/* "Open with" menu on the scenario list */
.openwith { position: relative; display: inline-block; }
.ow-menu { position: fixed; z-index: 60; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 4px; display: grid; }
.ow-menu button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); display: grid; gap: 2px; font: inherit; }
.ow-menu button:hover, .ow-menu button:focus { background: var(--accent-soft); outline: none; }
.ow-menu .chip { margin-left: 6px; }
.j-extra h3 { font-size: 14px; }
.j-extra-l { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }

/* review panel: the result the approver signs off */
.rv-result { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.rv-result table { width: 100%; }
.rv-risks { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }

/* plain-English model quality */
.q-sec { border-top: 1px solid var(--line); padding: 8px 0; }
.q-sec h4 { margin: 0 0 4px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.q-sec ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.45; }

.gr-ex-l { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.45; }

/* the one-line "why it moved" summary above Why?, highlighted */
.why-lines { display: grid; gap: 2px; min-width: 0; }
.why-l { display: block; font-size: 11.5px; line-height: 1.35; padding: 1px 6px; border-left: 3px solid var(--line); border-radius: 3px; background: var(--surface-2); color: var(--ink);
  max-width: 330px; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.why-l.you { border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.why-l.gain { border-left-color: var(--good); background: var(--good-soft); }
.why-l.loss { border-left-color: var(--warn); background: var(--warn-soft); }

.fit-why { margin-left: 4px; font-size: 10.5px; padding: 0 7px; }
.fit-box { max-width: 640px; }
.fit-box h4 { margin: 10px 0 2px; }

/* universal search (Ctrl/Cmd+K) */
.sb { position: relative; flex: 0 1 300px; min-width: 200px; }
.sb-in { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-3); }
.sb.open .sb-in, .sb-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sb-in input[type=text] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; padding: 0; color: var(--ink); outline: none; box-shadow: none; }
.sb-x { border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.sb-in kbd { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink-3); }
.sb-drop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; width: min(560px, calc(100vw - 32px)); max-height: 64vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.22); overflow: hidden; }
.sp-foot kbd { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink-3); background: var(--surface-2, var(--surface)); }
.sp-list { overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.sp-hint { padding: 8px 10px; color: var(--ink-3); font-size: 13px; }
.sp-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-radius: 6px; padding: 7px 10px; cursor: pointer; color: var(--ink); font: inherit; }
.sp-row.on { background: var(--accent-soft); }
.sp-kind { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.sp-row.on .sp-kind { color: var(--accent); }
.sp-main { display: grid; min-width: 0; }
.sp-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-go { font-size: 12px; color: var(--ink-3); visibility: hidden; white-space: nowrap; }
.sp-row.on .sp-go { visibility: visible; color: var(--accent); }
.sp-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.sp-foot .muted { margin-left: auto; }
@media (max-width: 640px) { .sb { flex: 1 1 100%; } .sb-in kbd, .sp-foot .muted, .sp-go { display: none; } .sb-drop { left: 0; right: auto; width: calc(100vw - 32px); } .sp-row { grid-template-columns: 58px minmax(0, 1fr); } }
/* planner suggestion: Why? */
.j-cardwrap { position: relative; }
.j-cardwrap .sug-why { position: absolute; right: 8px; bottom: 6px; font-size: 10px; padding: 0 7px; }
.sug-box .sg-chip { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); }
.sug-t { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0 4px; }
.sug-t th, .sug-t td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.sug-t th { color: var(--ink-3); font-weight: 600; }
.sug-t td:nth-child(n+2):nth-child(-n+4), .sug-t th:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.rec-none { color: var(--ink-3); }
.fit-box.sug-box { max-width: 760px; }
.sug-tw { overflow-x: auto; }
.j-cardwrap .j-item .sg { padding-right: 52px; }

/* pop-ups never run off the window: they scroll inside, with the title and close button kept in view */
.j-modal .box { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.j-modal .fit-box.sug-box { width: min(560px, calc(100vw - 32px)); max-height: min(78vh, 640px); padding-top: 0; gap: 8px; }
.sug-box > .row:first-child { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.sug-box > .row:first-child h3 { font-size: 16px; }
.sug-box ul { font-size: 12.5px; }
.j-rec .j-i { margin-left: 3px; }

/* executive export menu */
.exp-wrap { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.exp-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 40; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; display: grid; }
.exp-menu button { display: grid; gap: 2px; text-align: left; background: none; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; color: var(--ink); font: inherit; }
.exp-menu button:hover, .exp-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.exp-msg { max-width: 260px; }
.warn-chip { background: var(--warn-soft, #fff3d6); color: var(--warn, #9a6700); font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 600; }

/* Help › Case studies: a printable story page built from the app's own tokens */
.cs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.cs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; border-top: 4px solid var(--accent); }
.cs-card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.cs-card p { margin: 0; color: var(--ink-2); }
.cs-card-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.cs-label { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 2px 9px; }
.cs-moves { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.cs-move i, .cs-strip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-page { max-width: 1080px; width: 100%; margin: 0 auto; display: grid; gap: 22px; }
.cs-page section { min-width: 0; }
.cs-hero { padding: 26px 24px 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--line); display: grid; gap: 10px; }
.cs-eyebrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.cs-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; max-width: 40ch; }
.cs-sub { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 75ch; }
.cs-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-kpi { border-top: 3px solid var(--accent); }
.cs-kpi .val { font-size: 30px; }
.cs-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cs-glance div { padding: 10px 14px; border-right: 1px solid var(--line); }
.cs-glance div:last-child { border-right: 0; }
.cs-glance dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.cs-glance dd { margin: 3px 0 0; font-size: 14px; }
.cs-h { font-family: var(--font-display); font-size: 21px; margin: 0 0 10px; }
.cs-lead { margin: 0 0 12px; color: var(--ink-2); max-width: 80ch; }
.cs-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
.cs-two p { margin: 0 0 10px; line-height: 1.55; }
.cs-chal { display: grid; gap: 8px; }
.cs-chal div { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.cs-chal span { color: var(--ink-2); font-size: 14px; }
.cs-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; counter-reset: cs; }
.cs-strip li { counter-increment: cs; display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.cs-strip li::before { content: counter(cs); position: absolute; right: 10px; top: 8px; font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; }
.cs-step { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; margin-bottom: 12px; break-inside: avoid; }
.cs-step-h { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cs-step-h h3 { margin: 0; font-size: 17px; }
.cs-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: inline-grid; place-items: center; font-weight: 600; font-family: var(--font-mono); flex: none; }
.cs-res { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.cs-step-b { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
.cs-step-b p { margin: 0 0 8px; line-height: 1.5; }
.cs-k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 4px; }
.cs-why { background: var(--surface-2); border-radius: var(--radius); padding: 12px; align-self: start; }
.cs-why p { margin: 0; }
.cs-split .bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.cs-split .bar i { display: block; height: 100%; }
.cs-split .leg { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.cs-split .leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.cs-split .leg b { float: right; font-variant-numeric: tabular-nums; }
.cs-tbl table { width: 100%; }
.cs-tbl th, .cs-tbl td { font-size: 13px; }
.cs-wfbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cs-wf { width: 100%; height: auto; display: block; }
.cs-wf text { fill: var(--ink-2); font-family: var(--font-body); }
.cs-wf text.v { font-size: 12px; font-weight: 600; fill: var(--ink); font-family: var(--font-mono); }
.cs-wf text.l { font-size: 11px; }
.cs-wf text.b { font-weight: 700; fill: var(--ink); }
.cs-wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-wins > div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--good); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; align-content: start; }
.cs-wins p { margin: 0; color: var(--ink-2); }
.cs-w { font-size: 13px; line-height: 1.7; }
.cs-flags ul, .cs-notes ul { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); }
.cs-flags li, .cs-notes li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .cs-kpis, .cs-wins { grid-template-columns: 1fr; }
  .cs-two, .cs-step-b { grid-template-columns: 1fr; }
  .cs-res { margin-left: 0; flex-basis: 100%; }
  .cs-hero { padding: 18px 16px; }
  .cs-glance div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media print {
  header.top, nav.side, .pagebar, .cs-noprint, .tabs, .j-bar, .sb-drop { display: none !important; }
  .layout { display: block !important; }
  main { padding: 0 !important; }
  html, body, main, .layout { background: #fff !important; }
  .cs-page { max-width: none; gap: 14px; }
  .cs-step, .cs-wins > div, .cs-kpis, .cs-wfbox, .cs-hero { break-inside: avoid; }
  .cs-hero { background: none; padding: 10px 0; border: 0; }
  /* a compact summary: desktop layout, scaled down; product tables stay in the app */
  .cs-page { zoom: .66; }
  .cs-kpis, .cs-wins { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cs-two, .cs-step-b { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important; }
  .cs-glance div { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .cs-res { margin-left: auto !important; flex-basis: auto !important; }
  .cs-tbl { display: none !important; }
  .cs-step { padding: 10px 12px; gap: 6px; margin-bottom: 8px; }
  .cs-wf { min-width: 0 !important; }
  .cs-wfbox { overflow: visible; }
}
.cs-wfbox { overflow-x: auto; } .cs-wf { min-width: 600px; }

/* Planner › Ranked moves (Opportunity Finder) */
.om, .gp-plan { border-top: 3px solid var(--accent); }
.gp-plan .head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.om .head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pg-panel > .head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pg-panel > .head + * { margin-top: 14px; }
.om-prog { height: 4px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.om-prog i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.om-empty { padding: 14px 4px 4px; color: var(--ink-3); }
.om-filters { gap: 14px; align-items: flex-end; margin: 10px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.om-k i, .om-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 6px 0 2px; vertical-align: -1px; }
.om-list { display: grid; gap: 0; }
.om-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 200px 140px; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.om-row:last-child { border-bottom: 0; }
.om-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.om-what { font-size: 14px; line-height: 1.35; }
.om-prod { font-size: 13px; margin-top: 2px; }
.om-why { color: var(--ink-3); margin-top: 4px; line-height: 1.4; }
.om-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.om-num { text-align: right; }
.om-gp { font-size: 20px; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; line-height: 1.1; }
.om-num .pos { color: var(--good); } .om-num .neg { color: var(--bad); }
.om-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.om-act .why-btn { align-self: flex-end; }
.om-note { margin: 10px 0 0; }
.om-added { display: inline-flex; align-items: center; gap: 8px; }
.j-left { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.om-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.om-foot #om-collapse { margin-left: auto; }
@media (max-width: 760px) {
  .om-row { grid-template-columns: 30px minmax(0, 1fr); }
  .om-num { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .om-act { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .om-act .why-btn { align-self: center; }
}
.om-sub { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.om-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 4px; }
.om-kind { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; font: inherit; color: inherit; }
.om-kind:hover { border-color: var(--accent); }
.om-kind.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.om-kind b { font-size: 20px; line-height: 1.1; }
.om-kind .om-kl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.om-kl i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.om-kind .pos { color: var(--good); font-size: inherit; }
@media (max-width: 760px) { .om-kinds { grid-template-columns: 1fr; } .om-sub { flex-direction: row; gap: 10px; } }

/* ---- How sure are we? (sensitivity check) */
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.om-prog i.ind { width: 35%; animation: sens-ind 1.1s ease-in-out infinite; }
@keyframes sens-ind { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .om-prog i.ind { animation: none; width: 100%; opacity: .5; } }
.sens .head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sens h4 { margin: 0; font: 600 14px/1.3 var(--font-display); }
.sens-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.sens-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); display: grid; gap: 6px; border-top: 3px solid var(--line); }
.sens-card.t-good { border-top-color: var(--accent); } .sens-card.t-ok { border-top-color: var(--accent); }
.sens-card.t-warn { border-top-color: var(--warn); } .sens-card.t-bad { border-top-color: var(--bad); }
.sens-card .lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sens-card .val { font: 600 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.sens-card .val.pos { color: var(--good); } .sens-card .val.neg { color: var(--bad); }
.sens-lr { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sens-v { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.sens-v .chip { flex: none; min-width: 18px; text-align: center; font-weight: 700; }
.sens-rb { position: relative; height: 18px; margin: 2px 0; }
.sens-rb i { position: absolute; display: block; }
.sens-rb .trk { left: 0; right: 0; top: 8px; height: 2px; background: var(--line); border-radius: 2px; }
.sens-rb .zero { top: 2px; height: 14px; width: 0; border-left: 1px dashed var(--ink-3); }
.sens-rb .rng { top: 5px; height: 8px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 4px; box-sizing: border-box; }
.sens-rb .wst { top: 4px; width: 2px; height: 10px; margin-left: -1px; background: var(--tobe); border-radius: 1px; }
.sens-rb .ctr { top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.sens-tor { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.sens-tor .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sens-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); margin: 8px 0 4px; }
.sens-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sens-legend i.lo { background: var(--tobe); } .sens-legend i.hi { background: var(--accent); }
.sens-legend i.ctr { width: 2px; background: var(--ink); border-radius: 0; }
.sens-rows { display: grid; gap: 2px; }
.sens-row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); border-radius: 4px; }
.sens-row:hover { background: var(--surface-2); }
.sens-name { font-size: 13px; min-width: 0; }
.sens-name .chip { margin-left: 4px; }
.sens-name .small { margin-top: 2px; }
.sens-bar { position: relative; height: 22px; margin: 0 68px; }
.sens-bar i { position: absolute; display: block; }
.sens-bar .ctr { top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); z-index: 1; }
.sens-bar .seg { top: 4px; height: 14px; }
.sens-bar .seg.lo { background: var(--tobe); border-radius: 4px 0 0 4px; }
.sens-bar .seg.hi { background: var(--accent); border-radius: 0 4px 4px 0; }
.sens-bar .v { position: absolute; top: 3px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.sens-bar .v.l { padding-right: 6px; } .sens-bar .v.r { padding-left: 6px; }
.sens-check { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.sens-check ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.sens-check li .small { color: var(--ink-2); margin-top: 2px; }
.sens-note { margin: 14px 0 0; }
.sens.compact .sens-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cs-range { margin: -4px 0 4px; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
@media (max-width: 760px) {
  .sens-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sens-bar { margin: 0 56px; }
}
.sens-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.sens-key i { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.sens-key i.ctr { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.sens-key i.rng { width: 18px; height: 8px; border-radius: 4px; background: var(--accent-soft); border: 1px solid var(--accent); }
.sens-key i.wst { width: 2px; height: 10px; background: var(--tobe); }

/* promotional price-ladder check */
.lad-promo { fill: var(--c3); stroke: var(--surface); stroke-width: 2; paint-order: stroke; }
.lad-promo-lbl { fill: var(--c3); font-weight: 600; }
.legend .lg-line { display: inline-block; width: 2px; height: 12px; background: var(--ink); margin-right: 6px; vertical-align: -2px; }
.legend svg { margin-right: 6px; vertical-align: -1px; }
.lad-br-sum { margin: 4px 0 10px; }
.lad-br-list { display: grid; gap: 0; }
.lad-br { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.lad-br:first-child { border-top: 0; }
.lad-br-k { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lad-br-t { line-height: 1.45; }
.chip.own { background: var(--accent-soft); color: var(--accent); }

/* Help › Features & roadmap */
.fr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.fr-tile { text-align: left; cursor: pointer; font: inherit; color: inherit; border-top: 4px solid var(--accent); }
.fr-tile.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.fr-areas .head { flex-wrap: wrap; gap: 8px; }
.fr-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.fr-sw.av, .fr-bar-t .av { background: var(--accent); }
.fr-sw.pa, .fr-bar-t .pa { background: var(--c2); }
.fr-sw.pl, .fr-bar-t .pl { background: var(--c7); }
.fr-bars { display: grid; gap: 4px; }
.fr-bar { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) minmax(0, 270px); gap: 10px; align-items: center; background: none; border: 0; padding: 5px 6px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.fr-bar:hover, .fr-bar.on { background: var(--surface-2); }
.fr-bar-t { display: flex; gap: 2px; height: 12px; }
.fr-bar-t i { display: block; height: 100%; border-radius: 3px; }
.fr-bar-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-filters { gap: 10px; align-items: end; margin-bottom: 6px; }
.fr-filters input[type=search] { min-width: min(100%, 260px); flex: 1 1 220px; }
.fr-list { display: grid; }
.fr-row { padding: 12px 2px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.fr-row:first-child { border-top: 0; }
.fr-row-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fr-row-d { color: var(--ink-2); line-height: 1.45; }
.fr-row-m { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.fr-go { padding: 0; }
.fr-road { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.fr-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; border-top: 4px solid var(--accent); }
.fr-col.fr-next { border-top-color: var(--c2); }
.fr-col.fr-later { border-top-color: var(--c7); }
.fr-col p { margin: 0; }
.fr-col-h { display: flex; justify-content: space-between; align-items: center; }
.fr-col-h h3 { margin: 0; }
.fr-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface-2); }
.fr-card-t { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.fr-sum { gap: 2px; }
@media (max-width: 760px) { .fr-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .fr-bar-n { grid-column: 1 / -1; } }
.cmp-t td, .cmp-t th { vertical-align: top; }
.cmp-t td .small { margin-top: 2px; }
.chip.in-sku { background: var(--accent-soft, var(--surface-2)); color: var(--accent, var(--ink-2)); border-color: transparent; }
.chip.in-ppg { background: var(--surface-2); color: var(--ink-2); }
.j-form select:disabled, .j-form input:disabled { opacity: .65; cursor: not-allowed; }

/* printing always uses the light theme, whatever the screen shows */
@media print {
  html:root[data-theme], html:root:not([data-theme="light"]) {
    color-scheme: light;
  --paper: #f5f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ec;
  --ink: #1b2430;
  --ink-2: #4a5663;
  --ink-3: #7a8591;
  --line: #dde2dc;
  --accent: #2f5d8c;
  --accent-soft: #e3ecf5;
  --tobe: #c2410c;
  --tobe-soft: #fbeadf;
  --good: #2e7d4f;
  --warn: #9a6512;
  --bad: #b42318;
  --good-soft: #e3f1e8;
  --warn-soft: #f7eddb;
  --bad-soft: #f8e3e1;
  --q1: #e7eef6; --q2: #e6f2ea; --q3: #fbefe3; --q4: #f6e6e6;
  --c2: #2f8a86; --c3: #b0772b; --c4: #7d62a8; --c5: #5f8a3a; --c6: #a1506a; --c7: #9aa3ad;
  }
}
/* theme switch at the foot of the menu */
nav.side .theme-sw { margin-top: 12px; padding: 12px 4px 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); }
nav.side .theme-sw .theme-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
nav.side .theme-sw .seg button { padding: 4px 8px; text-align: center; }
nav.side .theme-sw .theme-one { padding: 4px 0; width: 100%; text-align: center; font-size: 15px; }
.layout.nav-min nav.side .theme-sw { padding: 10px 0 4px; justify-content: center; }
@media (max-width: 820px) {
  nav.side .theme-sw { margin: 0 0 0 auto; padding: 0 0 0 8px; border-top: 0; border-left: 1px solid var(--line); flex-wrap: nowrap; }
  nav.side .theme-sw .theme-lbl { display: none; }
}
/* goal planner (Planner step): goal form, three plan cards */
.gp-plan .gp-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 10px 0 6px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.gp-plan .gp-checks { display: flex; flex-direction: column; gap: 4px; }
.gp-plan .gp-sum { margin: 8px 0; }
.gp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .gp-cards { grid-template-columns: 1fr; } }
.gp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); min-width: 0; }
.gp-card.ok { border-top: 3px solid var(--good); }
.gp-card.short { border-top: 3px solid var(--warn); }
.gp-card .gp-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gp-card .gp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.gp-card .gp-kpis > div { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 4px; background: var(--surface-2); }
.gp-card .gp-kpis > div.goal { outline: 2px solid var(--accent-soft); background: var(--accent-soft); }
.gp-card .gp-kpis b { font-size: 15px; }
.gp-card .gp-gap { color: var(--warn); }
.gp-card .gp-moves ol { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.gp-card .gp-moves li { font-size: 12.5px; }
.gp-card .gp-why { margin-top: 2px; }
.gp-card .gp-act { margin-top: auto; gap: 8px; }
.gp-note { margin: 10px 0 0; }
.gp-card .gp-add { float: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.gp-card .gp-why-all summary { cursor: pointer; color: var(--accent); margin-top: 6px; }
.gp-card .gp-why-all .gp-why { margin: 6px 0 0; color: var(--ink-2); }

/* decision outputs (Scenarios › Review) */
.dec-out { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.dec-out h3 { margin: 0; }
.dec-track { display: grid; gap: 6px; margin-top: 4px; }
.dec-tbl { width: 100%; border-collapse: collapse; margin-top: 4px; }
.dec-tbl th, .dec-tbl td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.dec-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* scenario scope line (Summary, Review) */
.scope-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.scope-line > div { flex-basis: 100%; }
.cmp-scope td { color: var(--ink-2); }

/* Summary filters (on top of Own portfolio / Changed products only) */
.sm-filters { gap: 8px 12px; align-items: center; margin: 2px 0 10px; }
.sm-filters label.j-fl { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.sm-filters label.j-fl > span { white-space: nowrap; color: var(--ink-2); }
/* the Summary's switch and filter boxes share one height and type size */
.sm-filters .seg button { height: 28px; padding: 0 12px; font-size: 12px; }
.sm-filters .j-multi summary { height: 30px; box-sizing: border-box; padding: 0 24px 0 10px; display: flex; align-items: center; font-size: 12px; min-width: 110px; max-width: 170px; }
.sm-filters .j-multi summary::after { top: 50%; transform: translateY(-50%); }
.sm-filters label.j-fl > span { font-size: 12px; }
/* header: brand, pickers, search and user on one line on wide screens */
.top-row .pickers { width: auto; flex: 1 1 auto; justify-content: flex-start; flex-wrap: nowrap; gap: 10px; min-width: 0; }
.top-row .pickers select { height: 30px; box-sizing: border-box; padding: 0 6px; font-size: 12px; max-width: 200px; }
.top-row .sb { margin-left: 0; flex: 0 1 300px; min-width: 180px; }
@media (max-width: 1500px) { .top-row .brand > span:not(.chip) { display: none; } }
@media (max-width: 900px) { .top-row { flex-wrap: wrap; } .top-row .pickers { order: 5; flex: 1 1 100%; flex-wrap: wrap; } .top-row .sb { margin-left: auto; } }
/* journey (lever) pages: every control in the toolbars is 30px tall and sits on one line */
.jx .seg { align-self: end; }
.jx .seg button { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; }
.jx .j-multi summary { height: 30px; box-sizing: border-box; padding: 0 24px 0 10px; display: flex; align-items: center; font-size: 12px; }
.jx .j-multi summary::after { top: 50%; transform: translateY(-50%); }
.jx select, .jx input[type=number], .jx input[type=text], .jx input[type=search] { height: 30px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; font-size: 12px; }
.jx td select, .jx td input, .jx .tbl input { height: auto; padding-top: 4px; padding-bottom: 4px; }
.jx .j-filters { align-items: flex-end; }
.jx .j-filters > .chip, .jx .j-filters > .btn { align-self: flex-end; }
.jx input.j-num:not(td input) { height: 30px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
/* lever toolbars: labels sit beside their box, so a toolbar stays on one line */
.jx .row label.j-fl { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.jx .row label.j-fl > span { white-space: nowrap; font-size: 12px; }
.top-row .brand { flex: none; }
@media (max-width: 1500px) { .top-row .demo-user > .muted { display: none; } }
/* the header holds only Business and Market now (channel, retailer and period moved to each page's filter bar) */
/* Admin › Add market */
.am-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.am-steps button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 12px; }
.am-steps button i { font-style: normal; width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--line); color: var(--ink-2); }
.am-steps button.ok i { background: var(--good); color: var(--surface); }
.am-steps button.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.am-steps button.on i { background: var(--accent); color: var(--surface); }
.am-form .four { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.am-sub { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 4px; }
.am-form input, .am-form select { height: 30px; box-sizing: border-box; }
.am-fact { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.am-group { margin-top: 12px; }
.am-group h4 { margin: 0 0 6px; font-size: 13px; }
.am-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.am-set.chg { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.am-set b { font-size: 13px; }
.am-in { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.am-in input[type=number], .am-in input:not([type]) { height: 30px; box-sizing: border-box; width: 130px; }
.am-pct { display: inline-flex; align-items: center; gap: 4px; }
.am-prog { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.am-prog > div { height: 100%; background: var(--accent); transition: width .4s; }
.am-steplist { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); }
.am-steplist .ok { color: var(--good); font-weight: 600; }
.am-log { max-height: 220px; overflow: auto; background: var(--surface-2, var(--bg)); border: 1px solid var(--line); border-radius: 4px; padding: 8px; font-size: 11px; margin: 6px 0 0; white-space: pre-wrap; }
@media (max-width: 700px) { .am-set { grid-template-columns: 1fr; } }

/* trials: sign-in and request pages, trial band */
.tg { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px 16px;
  background: radial-gradient(1200px 700px at 70% 20%, #2a2470 0%, #131130 60%, #0b0a1f 100%); }
.tg-card { width: min(640px, 100%); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 28px 30px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); display: grid; gap: 12px; }
.tg-card h1 { font-size: 26px; margin: 4px 0 0; }
.tg-card p { margin: 0; }
.tg-brand { display: grid; justify-items: start; gap: 10px; }
.tg-prod { border-top: 1px solid var(--line); padding-top: 8px; width: 100%; }
.tg-brand b { display: block; font-family: var(--font-display); font-size: 20px; } .tg-brand span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.tg-form { display: grid; gap: 10px; }
.tg-form label:not(.j-check) { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.tg-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .tg-form .two { grid-template-columns: 1fr; } }
.tg-form input, .tg-form select, .tg-form textarea { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; }
.tg-form .btn.primary { justify-self: start; padding: 9px 18px; }
.tg-points { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--good); }
.tg-points li::before { content: "✓ "; font-weight: 700; }
.tg-terms { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; }
.tg-alt { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.tg-foot { color: #c9c6ff; text-align: center; } .tg-foot a { color: #FFB4C4; }
.trial-band { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 7px 16px; font-size: 13px; background: var(--tobe-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.trial-band b { background: var(--tobe); color: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.tg-mail { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; }
.tg-mail pre { white-space: pre-wrap; font: 12px var(--font-mono); margin: 8px 0 0; }
.top-row .who .btn.link { margin-left: 6px; padding: 0 2px; font-size: 12px; }

/* Talk to us (trial) */
.talk-box { max-width: 520px; display: grid; gap: 10px; }
.talk-box label { display: grid; gap: 4px; }
.talk-box select, .talk-box input, .talk-box textarea { width: 100%; box-sizing: border-box; }
.trial-band { flex-wrap: wrap; }

/* trial: support access */
.trial-band .sup-on { background: var(--good-soft); color: var(--good); border-radius: 999px; padding: 2px 4px 2px 10px; font-weight: 600; }
.sup-chip { font-weight: 700; }

/* report filters and Total rows (UAT B-007) */

.tbl tfoot td { border-top: 2px solid var(--line, var(--ink-3)); background: var(--surface-2); position: sticky; bottom: 0; }

/* goal planner: more limits and targets (F103) */
.gp-more { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line, var(--ink-3)); border-radius: 8px; background: var(--surface-2); flex-basis: 100%; }
.gp-more-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mpick { position: relative; }
.mpick > summary { list-style: none; cursor: pointer; }
.mpick > summary::-webkit-details-marker { display: none; }
.mpick-box { position: absolute; z-index: 30; margin-top: 4px; max-height: 260px; overflow: auto; min-width: 220px; padding: 8px; display: grid; gap: 4px;
  background: var(--surface); border: 1px solid var(--line, var(--ink-3)); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.gp-groups { margin-top: 4px; overflow-x: auto; }
.gp-groups table { width: 100%; border-collapse: collapse; }
.gp-groups th, .gp-groups td { padding: 2px 3px; border-bottom: 1px solid var(--line, var(--ink-3)); text-align: left; font-size: 12px; }
.gp-groups td.num { white-space: nowrap; font-family: inherit; font-variant-numeric: tabular-nums; }
.gp-groups th { font-weight: 600; color: var(--ink-2, inherit); }
.gp-groups td.gp-gn { word-break: break-word; max-width: 96px; }
.gp-groups td.num { font-size: 11px; }
.gp-groups td.gp-gn .muted { font-size: 11px; }
.gp-groups th.num, .gp-groups td.num { text-align: right; }
.gp-tg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* KPI deep dive: YOY % + trend */
.dd td.dd-trend, .dd tr.dd-total td.dd-trend { color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.dd th.dd-trend-h { color: var(--ink-3); font-weight: 500; }
.dd .dd-n { font-size: 0.7em; margin-left: 2px; cursor: help; }
.dd .dd-off { font-weight: 700; text-decoration: underline dotted; text-underline-offset: 3px; }
.dd-trend-tick { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 8px; }
.dd-trend-tick.muted { opacity: 0.55; }

/* ---------------------------------------------------------------- one filter bar (scope) and view toolbars */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scope { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 8px; }
.scope-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.scope .sc-f { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.scope .sc-f select { font-size: 13px; }
.sc-more { border: 1px dashed var(--line); background: none; color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sc-more:hover, .sc-more.on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.sc-more b { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 11px; text-align: center; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12px; }
.fchip .muted { font-size: 11px; }
.fchip button { border: 0; background: none; cursor: pointer; color: var(--ink-2); width: 20px; height: 20px; border-radius: 50%; font-size: 11px; line-height: 1; }
.fchip button:hover { background: var(--surface); color: var(--ink); }
.sc-note { margin-left: auto; cursor: default; }
.sc-i { color: var(--accent); }
.sc-off { font-style: italic; }
.scope-panel { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 10px; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.scope-grid label { display: grid; gap: 3px; color: var(--ink-2); }
.scope-grid select { width: 100%; }
.scope-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; }
.scope-foot > span { margin-right: auto; }
.rep-head h2 { font-size: 24px; }
.rep-head .ask { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
/* how a view is shown (not which data): a slim toolbar, the same on every tab */
.vtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 10px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }
.vtools::before { content: "View"; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-right: 4px; border-right: 1px solid var(--line); margin-right: 2px; }
.vtools.dd-controls::before { align-self: center; }
.vtools > .row, .vtools .row { gap: 8px 12px; }
.ccy-pick select { font-size: 12px; padding: 4px 6px; }
th.num { font-family: inherit; }
@media (max-width: 700px) { .sc-note { margin-left: 0; flex-basis: 100%; } }

/* ---------------------------------------------------------------- Performance › At a glance */
.gl-head { background: linear-gradient(90deg, var(--accent-soft), transparent 80%); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; }
.gl-head p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 110ch; }
.gl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gl-tile { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.gl-tile:hover { border-color: var(--accent); }
.gl-tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gl-tile.tot { cursor: default; background: var(--surface-2); }
.gl-tile .v { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 2px 0; font-variant-numeric: tabular-nums; }
.gl-tile .c { font-size: 12px; font-weight: 600; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.gl-rank h3 { font-size: 14px; margin-bottom: 6px; }
.gl-rank ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gl-rank li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto 44px 54px; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 4px; font-size: 12px; }
.gl-rank li.click { cursor: pointer; } .gl-rank li.click:hover { background: var(--accent-soft); }
.gl-rank li.on { background: var(--accent-soft); font-weight: 600; }
.gl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-own { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: 1px; }
.gl-bar { height: 10px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.gl-bar i { display: block; height: 100%; background: var(--bar-a, var(--accent)); border-radius: 3px; }
.gl-bar i.up { background: var(--good); } .gl-bar i.down { background: var(--bad); }
.gl-v, .gl-s, .gl-c { text-align: right; font-size: 12px; }
.yoyb rect.up { fill: var(--good); } .yoyb rect.down { fill: var(--bad); }
/* ---------------------------------------------------------------- Performance › Compare */
.cmp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cmp-sel { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.cmp-sel.a { border-left: 4px solid var(--accent); } .cmp-sel.b { border-left: 4px solid var(--tobe); }
.cmp-sel select { max-width: 260px; }
.cmp-tag { font-weight: 700; font-size: 12px; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--surface); }
.cmp-sel.a .cmp-tag { background: var(--accent); } .cmp-sel.b .cmp-tag { background: var(--tobe); }
.cmp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.cmp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 12px; }
.cmp-card.a { border-top: 3px solid var(--accent); } .cmp-card.b { border-top: 3px solid var(--tobe); }
.cmp-card .v { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 2px 0; }
.gb-drv { columns: 2; margin: 8px 0 0; padding-left: 18px; }
@media (max-width: 700px) { .gl-rank li { grid-template-columns: minmax(0, 1.4fr) minmax(30px, 1fr) auto 50px; } .gl-rank .gl-s { display: none; } .gb-drv { columns: 1; } }
/* with no recent pages, "About this page" sits on the title's line instead of a line of its own */
.pagebar.solo { height: 0; margin: 0 0 -16px; position: relative; z-index: 2; }
.pagebar.solo > .about { margin: 0; position: absolute; right: 0; top: -17px; }
.pagebar.solo > .about #about-toggle { font-size: 12px; padding: 0; line-height: 16px; }
.pagebar.solo:has(.about-box) { height: auto; margin: -4px 0 6px; }
.pagebar.solo:has(.about-box) > .about { position: static; }
.gl-trend { grid-column: span 2; }
.gl-trend svg.chart { max-height: 260px; }
.gl-trend svg.yoyb { max-height: 80px; }
@media (max-width: 1060px) { .gl-trend { grid-column: auto; } }
#gl-ppg { grid-column: span 2; }
@media (max-width: 1060px) { #gl-ppg { grid-column: auto; } }
.gb-model-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gb-model-body .gb-drv { columns: 1; }
@media (max-width: 1000px) { .gb-model-body { grid-template-columns: 1fr; } }
/* ---------------------------------------------------------------- Decide › Strategy map */
.sm-tools select { max-width: 240px; }
table.kv th { position: static; background: none; font-weight: 400; color: var(--ink-2); padding: 3px 8px 3px 0; }
table.kv td { padding: 3px 0; }
svg.chart line.midline { stroke: var(--ink-3); stroke-dasharray: 5 4; stroke-width: 1; }
svg.chart text.pt-lbl { font-size: 10px; fill: var(--ink-2); pointer-events: none; }
/* ---------------------------------------------------------------- Models › Demand transfer roll-up */
.dt-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.dt-tile { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 8px 12px; background: var(--surface); }
.dt-tile .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.dt-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 8px; background: var(--surface-2); }
.dt-bar i { display: block; height: 100%; }
.dt-roll h4 { margin: 0 0 6px; color: var(--ink-2); }
/* goal planner: the kinds of move sit on one line */
.gp-plan #gp-kinds { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.gp-plan #gp-kinds > .small.muted { margin-right: 2px; }
/* ---------------------------------------------------------------- Models › Elasticity drill-down */
table.et td { vertical-align: middle; }
.et-bar { position: relative; display: block; width: 220px; max-width: 100%; height: 12px; background: var(--surface-2); border-radius: 6px; }
.et-bar .rng { position: absolute; top: 3px; height: 6px; border-radius: 3px; background: var(--accent-soft); border: 1px solid var(--accent); box-sizing: border-box; }
.et-bar .avg { position: absolute; top: -1px; width: 3px; height: 14px; margin-left: -1px; background: var(--accent); border-radius: 1px; }
/* ---------------------------------------------------------------- Overview: us against competitors */
.ov-cat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.ov-cat .sep { color: var(--ink-3); }
.ov-row { display: grid; grid-template-columns: 130px repeat(6, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.ov-side { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding-left: 4px; }
.ov-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ov-row.us .ov-dot { background: var(--accent); } .ov-row.comp .ov-dot { background: var(--tobe); }
.ov-row.us .ov-tile { border-top: 3px solid var(--accent); } .ov-row.comp .ov-tile { border-top: 3px solid var(--tobe); background: var(--surface-2); }
.ov-tile .val { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .sub { font-family: inherit; }
.ov-chg { font-weight: 700; }
.ov-look ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.ov-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.ov-tops h4 { margin: 0 0 6px; color: var(--ink-2); }
.ov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; }
.ov-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 8px; align-items: center; }
.ov-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-list .nm i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
#ov-trend svg.chart { max-height: 300px; }
@media (max-width: 1200px) { .ov-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ov-side { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ov-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-tops { grid-template-columns: 1fr; } }
/* ---------------------------------------------------------------- Round 4 */
.mk-grow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mk-g { flex: 1 1 110px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; background: var(--surface-2); font-size: 12px; }
.mk-g > .small.muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-g .num { font-weight: 700; }
.pr-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.pr-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr) 80px 70px; gap: 8px; align-items: center; font-size: 12px; }
.pr-bar { display: flex; height: 14px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.pr-bar .us { background: var(--accent); } .pr-bar .rest { background: var(--ink-3); opacity: .6; }
#reno-sens > div:has(> svg.chart), #reno-sens svg.chart { max-width: 760px; }
.ov-side select { font-weight: 700; font-size: 13px; max-width: 100%; min-width: 0; padding: 4px 6px; }
.ov-row { grid-template-columns: 170px repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .ov-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ov-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#ov-cp-top .val, #ov-cp-top .val { font-size: 16px; white-space: normal; line-height: 1.25; }
/* ---------------------------------------------------------------- Mekko by price band */
svg.band-rows text.bl { font-size: 12px; font-weight: 600; fill: var(--ink); }
svg.band-rows text.bs { font-size: 10px; fill: var(--ink-3); }
svg.band-rows text.seg-l { font-size: 11px; font-weight: 600; fill: #fff; pointer-events: none; }
svg.band-rows text.gr { font-size: 12px; font-weight: 700; }
svg.band-rows text.gr.pos { fill: var(--good); } svg.band-rows text.gr.neg { fill: var(--bad); }
.pbm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.pbm-notes { margin: 6px 0; padding-left: 18px; display: grid; gap: 6px; }
table.pbm-grid th { white-space: nowrap; }
table.pbm-grid tbody th { position: static; background: var(--surface-2); text-align: left; }
table.pbm-grid td div + div { margin-top: 2px; font-size: 12px; }
.scope-grid .sc-multi { display: grid; gap: 3px; color: var(--ink-2); grid-column: span 2; }
.scope-grid .sc-multi .mp, .scope-grid .sc-multi details { width: 100%; }
.scope-grid .sc-multi > label.j-fl { display: grid; gap: 3px; color: var(--ink-2); }
.scope-grid .sc-multi > label.j-fl > details { width: 100%; }
.scope-grid .sc-multi label.j-check { display: flex; flex-direction: row; align-items: center; gap: 6px; color: var(--ink); }

/* starting / first data load */
.ready-wait { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.ready-card { max-width: 520px; text-align: center; display: grid; gap: 10px; justify-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.ready-card h2 { margin: 6px 0 0; }
.hdr-byod { white-space: nowrap; font-size: 13px; padding: 4px 10px; border-color: var(--tobe); color: var(--tobe); }
@media (max-width: 1100px) { .hdr-byod { display: none; } }   /* the trial band keeps the same button */
.fb-shot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-shot img { max-width: 100%; max-height: 180px; border: 1px solid var(--line); border-radius: 8px; }
#fb-form .seg { margin: 4px 0 8px; }
.usage-bars { width: 100%; border-collapse: collapse; font-size: 13px; }
.usage-bars td { padding: 3px 6px; }
.ubar { height: 10px; border-radius: 4px; background: var(--accent); min-width: 2px; }
.fb-item { border-top: 1px solid var(--line); padding: 10px 0; }
.fb-item:first-of-type { border-top: 0; }
.fb-thumb { max-width: 360px; max-height: 220px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 900px) { #tadm-usage .two-col { grid-template-columns: 1fr !important; } }
/* Markets overview */
.mv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 2px 0 10px; }
.mv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mv-legend i.us, .mv-bar i.us { background: var(--accent); } .mv-legend i.cp, .mv-bar i.cp { background: var(--tobe); } .mv-legend i.rest, .mv-bar i.rest { background: var(--line); }
.mv-bar { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 80px minmax(170px, auto); gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mv-bar.click { cursor: pointer; } .mv-bar.click:hover { background: var(--surface-2); }
.mv-bar .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-bar .track { display: block; height: 16px; }
.mv-bar .fill { display: flex; height: 100%; border-radius: 4px; overflow: hidden; min-width: 4px; }
.mv-bar .fill i { display: block; height: 100%; }
.mv-bar .gr { display: inline-flex; gap: 6px; justify-content: flex-end; }
.mv-bar .tag { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.mv-bar .tag.us { box-shadow: inset 3px 0 0 var(--accent); } .mv-bar .tag.cp { box-shadow: inset 3px 0 0 var(--tobe); }
.mv-tbl th.grp { text-align: center; border-bottom: 2px solid var(--line); } .mv-tbl th.grp.us { border-bottom-color: var(--accent); } .mv-tbl th.grp.cp { border-bottom-color: var(--tobe); }
.mv-tbl tr.click { cursor: pointer; }
@media (max-width: 720px) { .mv-bar { grid-template-columns: minmax(80px, 110px) minmax(0, 1fr); } .mv-bar .num, .mv-bar .gr { grid-column: 2; justify-content: flex-start; } }
.sc-mp { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.sc-mp > span { color: var(--ink-2); }
.sc-mp details.j-multi > summary { min-width: 140px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-mw { position: relative; display: block; min-width: 0; }
.sc-mp .j-mw { display: inline-block; }
.j-multi-x { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface); color: var(--ink-3); cursor: pointer; padding: 0 3px; font-size: 11px; line-height: 1; z-index: 2; }
.j-multi-x:hover { color: var(--ink); }
.scope-grid .sc-multi.wide { grid-column: span 2; }
.scope-grid .sc-multi:not(.wide) { grid-column: span 1; }
.cmp-pick.col { display: grid; gap: 6px; justify-items: start; }
.cmp-sel { flex-wrap: wrap; row-gap: 6px; }
.cmp-f { display: inline-flex; align-items: center; gap: 2px; }
.cmp-f-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 12px; padding: 2px 4px; margin-right: 6px; }
.cmp-f-x:hover { color: var(--bad, #b42318); }
.cmp-add { font-size: 12px; padding: 3px 6px; border: 1px dashed var(--line); background: var(--surface); border-radius: var(--radius); color: var(--accent); }
.sm-own { display: inline-flex; align-items: center; gap: 4px; }
.sm-own input { width: 80px; }
.j-rival .j-rival-add { align-items: flex-end; gap: 10px; }
.j-rival .j-rival-add .j-fl { min-width: 170px; }
/* KPI deep dive: Slice by / Show toggles, nested levels */
.dd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dd-bar + .dd-bar { margin-top: 8px; }
.dd-bar-l { min-width: 52px; }
.dd-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dd-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 3px 11px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.dd-chip:hover { border-color: var(--accent); }
.dd-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.dd-chip-n { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; }
.dd-trend-tick input { margin: 0 4px 0 0; }
.dd th.dd-mh { text-align: center; border-bottom: 1px solid var(--line); }
.dd tr.dd-sub th { font-weight: 500; color: var(--ink-3); font-size: 11px; }
.dd td.dd-first, .dd th.dd-first { border-left: 1px solid var(--line); }
.dd tr.dd-l2 td.dd-name { padding-left: 8px; }
.dd tr.dd-l3 td { color: var(--ink-2); }
.dd td.dd-name { white-space: nowrap; }
.dd-bar .dd-trend-tick { padding-bottom: 0; margin-left: 6px; }
/* Overview: headline, who is winning, where the sales sit, hot spots, worth a look */
.ov-head { padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.ov-sent { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.ov-head .ov-cat { padding: 0; border: 0; background: none; color: var(--ink-2); }
.ov-mk { display: grid; grid-template-columns: minmax(90px, 1.3fr) minmax(50px, 1.4fr) 96px 72px 62px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.ov-mk-h { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-top: 6px; }
.ov-mk .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-mk .bar { height: 12px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ov-mk .bar i { display: block; height: 100%; background: var(--ink-3); opacity: 0.55; border-radius: 3px; }
.ov-mk.own .nm { font-weight: 700; } .ov-mk.own .bar i { background: var(--accent); opacity: 1; }
.ov-mk.others { color: var(--ink-3); }
.ov-mk .num { text-align: right; font-variant-numeric: tabular-nums; }
.ov-heat td, .ov-heat th { white-space: nowrap; }
.ov-acts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ov-acts li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13px; }
.ov-acts .stake { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; padding: 2px 6px; border-radius: 4px; }
.ov-acts li.bad .stake { color: var(--bad); background: var(--bad-soft); } .ov-acts li.good .stake { color: var(--good); background: var(--good-soft); }

/* AMPLiQ full logo: the light-text copy in dark mode */
.logo-full { display: inline-block; line-height: 0; }
.logo-full img { height: 56px; width: auto; display: block; }
.logo-full .lf-d { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-full .lf-l { display: none; }
  :root:not([data-theme="light"]) .logo-full .lf-d { display: block; }
}
:root[data-theme="dark"] .logo-full .lf-l { display: none; }
:root[data-theme="dark"] .logo-full .lf-d { display: block; }
.ready-card .logo { width: 56px; height: 56px; }
.btn.danger-o { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: var(--surface); font-weight: 600; }
.btn.danger-o:hover:not(:disabled) { background: var(--bad-soft); }
/* Try with your own data: Prepare your data */
.am-guide > summary { cursor: pointer; font-size: 15px; }
.am-guide-body { margin-top: 10px; display: grid; gap: 10px; }
.am-must { width: 100%; border-collapse: collapse; font-size: 13px; }
.am-must th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); padding: 4px 8px 4px 0; }
.am-must td { border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; vertical-align: top; }
.am-tips { margin: 0; padding-left: 18px; line-height: 1.6; }
.am-guide { min-width: 0; }
.am-must { table-layout: fixed; }
.am-must th:nth-child(1), .am-must td:nth-child(1) { width: 24%; }
.am-must th:nth-child(2), .am-must td:nth-child(2) { width: 32%; }
.am-must td, .am-must th, .am-tips li { white-space: normal; overflow-wrap: anywhere; }
.am-must td:nth-child(1) { overflow-wrap: anywhere; }
.am-guide a.btn { text-decoration: none; }
