/* Planning > Retail store view (planning_store_view.js, tables from planning_store_table.js): only what hub.css lacks.
   The artifact's store page (docs/superpowers/specs/assets/retail_budget_fy27_artifact.html) on the kit tokens (index.html /
   BSL_Report_Theme.md): no colour values here, tokens and color-mix only. Spacing 4 / 8 / 12 / 16 / 24 / 32 / 48.
   Pieces shown in reporting/theme/gallery.html (14 · Planning store view). Prefix ps-. */

/* full screen while a store view is mounted: the Hub sidebar and its menu button hide, the page takes the width */
body.pl-full .shell{grid-template-columns:minmax(0,1fr)}
body.pl-full .shell>nav.side,body.pl-full .menu-btn{display:none}
body.pl-full main.wide{max-width:none}
body.pl-full .shell:not(.no-side) .loader{left:0}

.ps{max-width:none}
.ps .ps-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top bar: back · store picker · status pills · who submitted · save state · actions; wraps, every action reachable */
.ps-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 0 12px;margin:0 0 12px;border-bottom:1px solid var(--border);background:var(--bg)}
@media (min-width:761px){.ps-top{position:sticky;top:calc(var(--bar,0px) + env(safe-area-inset-top,0px));z-index:5}}
.ps-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 4px;font-weight:700;color:var(--accent);text-decoration:none}
.ps-back:hover{text-decoration:underline}
.ps-pick select{font:600 14px "DM Sans",sans-serif;min-width:min(320px,100%);max-width:100%}
.ps-pills{gap:4px}
.ps-line{font-size:13px;color:var(--text-2)}
.ps-save{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ps-acts{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.ps a:focus-visible,.ps td.ed:focus-visible,.ps-scroll:focus-visible,.ps textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.ps-h{font-size:22px;margin:4px 0 8px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.ps-h small{font-size:13px;font-weight:500;color:var(--muted)}
.ps-h2{font-size:16px;margin:0 0 8px}

/* notices and in-page questions (never the browser's confirm / alert) */
.ps-notice,.ps-dialog{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:12px 16px;margin:0 0 12px;font-size:14px}
.ps-notice p,.ps-dialog>p{margin:0;flex:1 1 280px;min-width:0;overflow-wrap:anywhere}
.ps-notice.ok{border-color:var(--good);background:var(--good-soft)}
.ps-notice.err{border-color:var(--bad);background:var(--bad-soft)}
.ps-notice.warn{border-color:var(--gold);background:var(--gold-soft)}
.ps-notice.info,.ps-dialog.info{border-color:var(--accent);background:var(--accent-soft)}
.ps-dialog.warn{border-color:var(--bad);background:var(--bad-soft)}
.ps-dialog .ps-note{flex:1 1 100%;margin:0}
.ps-dialog textarea,.ps-comment textarea{font:14px "DM Sans",sans-serif;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 12px;width:100%;resize:vertical;min-height:88px}
.ps-dacts{display:flex;flex-wrap:wrap;gap:8px}

.ps .ps-summary{margin:0 0 24px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:760px){.ps .ps-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ps-d{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ps-flat{color:var(--muted);font-weight:600}

/* sections */
.ps-block{margin:24px 0 0}
.ps-bh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0 0 8px}
.ps-bh h2{margin:0;font-size:16px;font-weight:700}
.ps-bh p{margin:0;color:var(--muted);font-size:13px;flex:1 1 300px}
.ps-step{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--navy);color:var(--on-accent);font-size:12px;font-weight:700;margin-right:8px;vertical-align:1px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ps-step{background:var(--accent)}}
:root[data-theme="dark"] .ps-step{background:var(--accent)}
.ps-foot{color:var(--muted);font-size:12px;margin:8px 0 0;max-width:880px}
.ps-ctext{white-space:pre-wrap;margin:0;max-width:880px}
.ps-comment{max-width:880px}
.ps-hist{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13px;color:var(--text-2)}
.ps-hist b{color:var(--text)}
.ps-hn{display:block;color:var(--muted)}

/* legend (the artifact's four cell styles) */
.ps-legend{display:flex;gap:4px 16px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.ps-legend i{display:inline-block;width:12px;height:12px;border-radius:4px;vertical-align:-1px;margin-right:4px}
.ps-legend .le{background:var(--surface);border:1px dashed var(--accent)}
.ps-legend .lc{background:var(--gold-soft);border:1px solid var(--border)}
.ps-legend .lt{background:linear-gradient(225deg,var(--gold) 4px,transparent 4px),var(--gold-soft);box-shadow:inset 0 0 0 1.5px var(--gold)}
.ps-legend .lw{background:linear-gradient(225deg,var(--muted) 4px,transparent 4px),var(--surface);border:1px solid var(--border)}

/* the tables: scroll inside their frame, label column stays put */
.ps-scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.ps-table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}
.ps-table th,.ps-table td{padding:0 12px;height:32px;white-space:nowrap;text-align:right;border-bottom:1px solid var(--border);color:var(--text);font-size:13px}
.ps-table thead th{position:sticky;top:0;background:var(--navy);color:color-mix(in srgb,var(--on-accent) 80%,transparent);font-size:11px;font-weight:600;height:auto;padding-block:8px;vertical-align:bottom;z-index:2;border-bottom:0}
.ps-table thead .h1{display:block;color:var(--on-accent);font-size:14px;font-weight:700}
.ps-table thead .h2{display:block;font-weight:500}
.ps-table .lbl{text-align:left;position:sticky;left:0;background:var(--surface);z-index:1;min-width:200px;max-width:240px;border-right:1px solid var(--border);font-weight:500;white-space:normal;line-height:1.25}
.ps-table thead .lbl{background:var(--navy);z-index:3;border-right-color:var(--navy)}
.ps-table .lblnote{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.ps-table tr.sub td,.ps-table tr.sub th{color:var(--muted);font-size:12px;height:24px}
.ps-table tr.sub .lbl{padding-left:24px;font-weight:400}
.ps-table tr.soft td{color:var(--text-2)}
.ps-table tr.net td,.ps-table tr.net th{font-weight:700;font-size:14px;height:36px;background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.ps-table tr.net .lbl,.ps-table tr.netsub .lbl{box-shadow:inset 3px 0 0 var(--accent)}
.ps-table tr.netsub td,.ps-table tr.netsub th{background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.ps-table tr.total td,.ps-table tr.total th{font-weight:700;background:var(--surface-2)}
.ps-table tr.group th{background:color-mix(in srgb,var(--teal,var(--accent)) 12%,var(--surface));font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;height:32px;border-bottom:0;box-shadow:inset 3px 0 0 var(--teal,var(--accent))}
.ps-table tr.group td{background:color-mix(in srgb,var(--teal,var(--accent)) 12%,var(--surface));border-bottom:0}
.ps-table tr.spacer td{height:12px;padding:0;border-bottom:0}
.ps-table tr.spacer.full td{height:24px}
.ps-table tr:last-child td,.ps-table tr:last-child th{border-bottom:0}
.ps-table tr:has(+ tr.sub) td,.ps-table tr:has(+ tr.sub) th{border-bottom-color:transparent}
.ps-table td.neg{color:var(--bad)}
.ps-table th.bud,.ps-table td.bud{background:var(--accent-soft)}
.ps-table thead th.bud{background:var(--accent)}
.ps-table tr.net td.bud,.ps-table tr.netsub td.bud{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
.ps-table tr.total td.bud{background:color-mix(in srgb,var(--accent) 10%,var(--surface-2))}
.ps-table .na{color:var(--muted);font-weight:400}
/* cells you can type into, typed, moved, typed-then-moved, below the minimum */
.ps-table td.ed{cursor:text;position:relative}
.ps-table td.ed::after{content:"";position:absolute;inset:4px;border:1px dashed transparent;border-radius:4px;pointer-events:none}
.ps-table td.ed:hover::after{border-color:var(--accent)}
.ps-table td.chg{background:var(--gold-soft)!important}
.ps-table td.typed,.ps-table td.was{position:relative}
.ps-table td.typed{font-weight:700;box-shadow:inset 0 0 0 1.5px var(--gold)}
.ps-table td.typed::before,.ps-table td.was::before{content:"";position:absolute;top:0;right:0;border-style:solid;border-width:0 8px 8px 0;border-color:transparent var(--gold) transparent transparent;pointer-events:none}
.ps-table td.was::before{border-color:transparent var(--muted) transparent transparent}
.ps-table td.flag{box-shadow:inset 0 -2px 0 var(--bad)}
.ps-flag{color:var(--bad);font-weight:700;margin-right:4px}
.ps-table td input{width:100%;min-width:84px;text-align:right;font:13px "DM Sans",sans-serif;font-variant-numeric:tabular-nums;border:1.5px solid var(--accent);border-radius:4px;padding:4px 8px;background:var(--surface);color:var(--text)}
.ps-table.viewonly td.ed{cursor:default}
.ps-tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.04em;padding:0 4px;border-radius:4px;margin-right:4px;vertical-align:1px;border:1px solid currentColor}
.ps-tag.sss{color:var(--violet,var(--accent))}
.ps-tag.yoy{color:var(--muted)}
/* by period: compact so P1-P12 + FY fit a wide screen without scrolling */
.ps-month th,.ps-month td{padding:0 8px;font-size:12px}
.ps-month thead .h1{font-size:13px}
.ps-month .lbl{min-width:168px;max-width:168px;padding-left:12px}
.ps-month tr.sub .lbl{padding-left:24px}
.ps-month td input{min-width:64px;font-size:12px;padding:4px}
/* touch screens: typed-into cells at least 44 px tall */
@media (pointer:coarse){.ps-table td.ed{height:44px}}
@media (max-width:760px){
  .ps-top{border-bottom:2px solid var(--navy)}
  .ps-acts{margin-left:0;width:100%}
  .ps-acts .ua-btn{flex:1 1 auto}
  .ps-table .lbl,.ps-month .lbl{min-width:132px;max-width:132px}
  .ps-scroll{border-radius:0;border-left:0;border-right:0}
}
@media (max-width:760px) and (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ps-top{border-bottom-color:var(--sky,var(--accent))}}
@media (max-width:760px){:root[data-theme="dark"] .ps-top{border-bottom-color:var(--sky,var(--accent))}}
@media (prefers-reduced-motion:no-preference){.ps-table td.chg{transition:background .25s}}

/* year view: the KPI tiles and the year table take the table's own width (equal FY columns), not the page's */
.ps-yfit{width:fit-content;max-width:100%}
.ps-yfit #ps-summary,.ps-yfit .ps-bh{width:0;min-width:100%}
.ps-table.ps-yeart{width:auto}
.ps-yeart thead th:not(.lbl),.ps-yeart td{width:128px;min-width:128px;max-width:128px}
.ps-yeart thead th:not(.lbl){white-space:normal}
.ps-yeart .lbl{min-width:208px;max-width:208px}
@media (max-width:760px){.ps-yeart thead th:not(.lbl),.ps-yeart td{width:112px;min-width:112px;max-width:112px}.ps-yeart .lbl{min-width:132px;max-width:132px}}

/* year view row: the year block, and beside it the EBITDA bridge + commentary (planning_store_bridge.js); below it on narrow screens */
.ps-yrow{display:flex;flex-wrap:wrap;align-items:flex-start;gap:24px}
.ps-yrow .ps-yfit{flex:0 1 auto}
.ps-side{flex:1 1 380px;min-width:min(100%,380px);container-type:inline-size}
.ps-sidein{display:grid;gap:16px;max-width:760px}
@container (min-width:1000px){.ps-sidein{grid-template-columns:minmax(0,3fr) minmax(0,2fr);max-width:none;align-items:start}}
.ps-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:16px}
.ps-card .ps-comment,.ps-card .ps-ctext{max-width:none}
.br-sum{margin:0 0 12px;font-size:14px;color:var(--text-2)}
.br-sum b{color:var(--text);font-size:16px;font-variant-numeric:tabular-nums}
.br{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.br-col{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.br-v2{display:none}
.br-plot{position:relative;height:200px;border-bottom:1px solid var(--border)}
.br-bar{position:absolute;left:12%;right:12%;top:var(--t);height:var(--h);border-radius:3px 3px 0 0;background:var(--accent)}
.br-col.up .br-bar{background:var(--good)}
.br-col.dn .br-bar{background:var(--bad)}
.br-col.zero .br-bar{background:var(--muted)}
.br-col.tot.bud .br-bar{background:transparent;border:2px dashed var(--muted)}
.br-zero{position:absolute;left:-3px;right:-3px;top:var(--z);border-top:1px solid var(--muted)}
.br-val{position:absolute;left:-4px;right:-4px;top:var(--t);transform:translateY(-100%);padding-bottom:2px;text-align:center;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text)}
.br-val.in{transform:translateY(4px)}
.br-col.up .br-val{color:var(--good)}.br-col.dn .br-val{color:var(--bad)}
.br-lbl{margin-top:6px;font-size:12px;font-weight:600;text-align:center;line-height:1.25}
.br-note{font-size:11px;color:var(--muted);text-align:center;line-height:1.3;font-variant-numeric:tabular-nums}
.br-key{display:flex;flex-wrap:wrap;gap:4px 16px;margin:12px 0 0;font-size:12px;color:var(--muted)}
.br-key i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.br-key i.up{background:var(--good)}.br-key i.dn{background:var(--bad)}
@media (min-width:761px) and (min-height:760px){.ps-side{position:sticky;top:calc(var(--bar,0px) + env(safe-area-inset-top,0px) + 81px)}}
@media (max-width:760px){.ps-side{flex-basis:100%}}
/* narrow: the bridge turns into rows (label, bar, value); the same bar maths, read sideways */
@container (max-width:519px){
  .br{grid-template-columns:minmax(0,1fr);gap:4px}
  .br-col{display:grid;grid-template-columns:84px minmax(0,1fr) 76px;align-items:center;gap:8px}
  .br-lbl{order:-1;margin:0;text-align:left}
  .br-plot{height:24px;border-bottom:0}
  .br-bar{top:4px;bottom:4px;height:auto;left:calc(100% - var(--t) - var(--h));right:auto;width:var(--h);border-radius:0 3px 3px 0}
  .br-zero{top:0;bottom:0;left:calc(100% - var(--z));right:auto;border-top:0;border-left:1px solid var(--muted)}
  .br-val,.br-note{display:none}
  .br-v2{display:block;text-align:right;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
  .br-col.up .br-v2{color:var(--good)}.br-col.dn .br-v2{color:var(--bad)}
}

/* "How to use this?" walkthrough (planning_howto.js): a dialog with an animated mock of the store page, numbered
   captions beside it; the player of the Internal Hub guide. Mock sizes in em of the frame (font = 1.9% of its width). */
.hw-open{gap:6px;display:inline-flex;align-items:center}
.hw-q{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;border:1.5px solid currentColor;font-size:11px;font-weight:700;line-height:1}
dialog.hw{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-family:"DM Sans",sans-serif;overflow:auto}
dialog.hw::backdrop{background:color-mix(in srgb,var(--navy) 55%,transparent)}
.hw-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.hw-head h2{margin:4px 0 0;font-size:20px;line-height:1.25}
.hw-eye{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.hw-x{font:400 28px/1 "DM Sans",sans-serif;color:var(--text-2);background:none;border:1px solid transparent;border-radius:8px;width:44px;height:44px;cursor:pointer;flex:none}
.hw-x:hover,.hw-x:focus-visible{border-color:var(--border);outline:none}
.hw-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--border);margin:16px 0}
.hw-tabs button{font:600 14px "DM Sans",sans-serif;color:var(--muted);background:none;border:0;border-bottom:2px solid transparent;padding:8px 12px;min-height:44px;cursor:pointer;margin-bottom:-1px;text-align:left}
.hw-tabs button small{display:block;font-weight:400;font-size:12px}
.hw-tabs button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--accent)}
.hw-tabs button:focus-visible,.hw-caps li:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.hw-player{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:24px;align-items:start}
.hw-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.hw-caps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;counter-reset:c}
.hw-caps li{counter-increment:c;position:relative;padding:8px 12px 8px 44px;border-radius:8px;color:var(--text-2);cursor:pointer;border:1px solid transparent;font-size:14px;line-height:1.45}
.hw-caps li::before{content:counter(c);position:absolute;left:8px;top:8px;width:24px;height:24px;border-radius:50%;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:700;display:grid;place-items:center}
.hw-caps li.cur{background:var(--accent-soft);color:var(--text)}
.hw-caps li.cur::before{background:var(--accent);color:var(--on-accent)}
.hw-caps li:hover{border-color:var(--border)}
.hw-ctl{display:flex;flex-wrap:wrap;gap:8px}
.hw-foot{margin:16px 0 0;font-size:13px;color:var(--muted)}
@media (max-width:760px){.hw-stage{position:sticky;top:-16px;z-index:2;background:var(--surface);padding:8px 0}dialog.hw{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.hw-player{grid-template-columns:minmax(0,1fr)}.hw-caps li{font-size:13px}}

/* the mock */
.hw-dev{position:relative;width:100%;aspect-ratio:16/10;container-type:inline-size;overflow:hidden;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);user-select:none;box-shadow:0 8px 24px color-mix(in srgb,var(--text) 14%,transparent)}
.hw-scr{position:absolute;inset:0;font-size:1.9cqw;line-height:1.3}
.hw-nav{position:absolute;left:0;right:0;top:0;height:8%;background:var(--navy);color:var(--on-accent);display:flex;flex-direction:column;justify-content:center;padding:0 2.5%}
.hw-wm{font-weight:700;letter-spacing:.08em;font-size:.95em}.hw-wm2{font-size:.6em;letter-spacing:.14em;opacity:.8}
.hw-scr .L{position:absolute;opacity:0;visibility:hidden;transition:opacity .35s ease,top .35s ease,visibility 0s .35s}
.hw-scr .L.on{opacity:1;visibility:visible;transition:opacity .35s ease,top .35s ease,visibility 0s}
.hw-scr .T:not(.on){display:none}
.hw-top{left:0;right:0;top:8%;height:9%;display:flex;align-items:center;gap:.7em;font-size:.84em;overflow:hidden;padding:0 2.5%;border-bottom:1px solid var(--border);white-space:nowrap}
.hw-back{color:var(--accent);font-weight:700}
.hw-pick{border:1px solid var(--border);border-radius:.4em;padding:.25em .7em;background:var(--surface);font-weight:600}
.hw-pills{display:flex;gap:.3em}
.hw-save{color:var(--muted);font-size:.85em}
.hw-acts{margin-left:auto;display:flex;gap:.4em}
.hw-b{display:inline-block;background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);border-radius:.4em;padding:.3em .8em;font-weight:600;font-size:.9em}
.hw-b.q{background:var(--surface);color:var(--accent)}
.hw-b.hw-dis{opacity:.45}
.mp{display:inline-block;font-size:.8em;font-weight:600;border-radius:999px;padding:.1em .6em;white-space:nowrap}
.mp.mut{color:var(--text-2);background:var(--surface-2);border:1px solid var(--border)}
.mp.warn{color:var(--gold-text);background:var(--gold-soft)}
.mp.good{color:var(--good);background:var(--good-soft)}
.mp.bad{color:var(--bad);background:var(--bad-soft)}
.mp.pass{color:var(--accent);background:var(--surface);border:1px solid var(--accent)}
.hw-list{left:0;right:0;top:8%;bottom:0;padding:3% 4%;display:flex;flex-direction:column;gap:.6em}
.hw-lt{font-size:1.25em;margin-bottom:.3em}
.hw-row{display:flex;justify-content:space-between;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:.5em;padding:.8em 1em;font-weight:600}
.hw-row.pick{border-color:var(--accent)}
.hw-tab{left:3%;right:3%;top:21%;display:grid;background:var(--surface);border:1px solid var(--border);border-radius:.6em;overflow:hidden;font-variant-numeric:tabular-nums}
.hw-tab.yr{grid-template-columns:30fr 23fr 23fr 24fr}
.hw-tab.per{grid-template-columns:22fr repeat(6,10fr) 18fr}
.hw-player[data-track="budget"][data-step="7"] .hw-tab,.hw-player[data-track="budget"][data-step="8"] .hw-tab,.hw-player[data-track="review"][data-step="5"] .hw-tab{top:30%}
.mc{display:flex;align-items:center;justify-content:flex-end;padding:0 .6em;height:2.3em;border-bottom:1px solid var(--border);white-space:nowrap;position:relative}
.mc.lbl{justify-content:flex-start;font-weight:500}
.mc.sub{padding-left:1.4em;color:var(--muted);font-size:.9em}
.mc.mh{background:var(--navy);color:var(--on-accent);flex-direction:column;align-items:flex-end;justify-content:center;height:2.9em;border-bottom:0}
.mc.mh small{font-size:.72em;opacity:.8}
.mc.bud{background:var(--accent-soft)}
.mc.mh.bud{background:var(--accent)}
.mc.tot{font-weight:700;background:var(--surface-2);border-bottom:0}
.mc.tot.bud{background:color-mix(in srgb,var(--accent) 10%,var(--surface-2))}
.mc.mt-mov.on{background:var(--gold-soft)}
.mc.mt-typ.on,.hw-scr .mt-typw{font-weight:700;box-shadow:inset 0 0 0 .12em var(--gold)}
.mc.mt-typ.on::before{content:"";position:absolute;top:0;right:0;border-style:solid;border-width:0 .5em .5em 0;border-color:transparent var(--gold) transparent transparent}
.mc.mt-flag.on{box-shadow:inset 0 -.18em 0 var(--bad)}
.hw-flag{color:var(--bad);margin-right:.3em}
.hw-inp{font-style:normal;display:inline-flex;align-items:center;border:.1em solid var(--accent);border-radius:.3em;padding:0 .4em;background:var(--surface);color:var(--text);min-width:4em;justify-content:flex-end}
.hw-caret{display:inline-block;width:.08em;height:1em;background:var(--text);margin-left:.1em;animation:hw-blink 1s steps(1) infinite}
@keyframes hw-blink{50%{opacity:0}}
.hw-legend{left:3%;top:68%;display:flex;gap:1.4em;color:var(--muted);font-size:.85em}
.hw-legend i{display:inline-block;width:.9em;height:.9em;border-radius:.2em;vertical-align:-.1em;margin-right:.3em}
.hw-legend .lt{box-shadow:inset 0 0 0 .12em var(--gold);background:var(--gold-soft)}
.hw-legend .lc{background:var(--gold-soft);border:1px solid var(--border)}
.hw-legend .le{background:var(--surface);border:1px dashed var(--accent)}
.hw-com{left:3%;right:3%;top:21%;display:flex;flex-direction:column;gap:.5em}
.hw-box{display:block;border:1px solid var(--accent);border-radius:.5em;background:var(--surface);padding:.7em .9em;min-height:4.5em;color:var(--text)}
.hw-com small{color:var(--muted)}
.hw-conf{left:6%;right:6%;top:19%;z-index:4;display:flex;flex-wrap:wrap;align-items:center;gap:.6em .8em;background:color-mix(in srgb,var(--accent) 10%,var(--surface));border:1px solid var(--accent);border-radius:.6em;padding:.9em 1.1em;box-shadow:0 .6em 1.6em color-mix(in srgb,var(--text) 20%,transparent)}
.hw-conf>span:first-child{flex:1 1 60%}
.hw-conf.col{flex-direction:column;align-items:stretch}
.hw-row2{display:flex;gap:.5em}
.hw-note{left:3%;right:3%;top:19%;border:1px solid var(--accent);background:var(--accent-soft);border-radius:.5em;padding:.7em 1em}
.hw-note.ok{border-color:var(--good);background:var(--good-soft)}
.hw-cur{position:absolute;z-index:9;width:4.5%;left:50%;top:50%;transition:left .7s cubic-bezier(.5,0,.2,1),top .7s cubic-bezier(.5,0,.2,1),opacity .3s;pointer-events:none;filter:drop-shadow(0 1px 2px color-mix(in srgb,var(--text) 40%,transparent))}
.hw-cur svg{display:block;width:100%;height:auto}
.hw-cur.hide{opacity:0}
.hw-cur::after{content:"";position:absolute;left:0;top:0;width:100%;aspect-ratio:1;border-radius:50%;border:2px solid var(--accent);opacity:0;transform:translate(-30%,-30%) scale(.4)}
.hw-cur.tap::after{animation:hw-ring .6s ease-out}
@keyframes hw-ring{0%{opacity:.9;transform:translate(-30%,-30%) scale(.4)}100%{opacity:0;transform:translate(-30%,-30%) scale(2)}}
@media (prefers-reduced-motion:reduce){.hw-scr .L,.hw-scr .L.on,.hw-cur{transition:none!important}.hw-cur::after,.hw-caret{animation:none!important}}

/* Planning > Retail Consolidated view (planning_consolidated.js): filters, include switch, store table total. Tokens only. */
.pl-filters.pl-cons{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.pl-cons .ps-fl{display:block;font-size:12px;font-weight:700;color:var(--text-2);margin:0 0 4px}
.pl-cons .ua-chips{margin:0}
.pl-cons .ua-chips button,.pc-sthead .ua-chips button{min-height:44px}
.pl-kpis.ps-counts{margin-bottom:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:640px){.ps-counts .pl-kpi{padding:8px 12px}}
.ps-hint{font-size:13px;color:var(--muted);margin:0 0 8px}
.ps .ps-note{font-size:13px;color:var(--text-2);margin:0 0 24px;max-width:720px}
.pc-sthead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:24px 0 8px}
.pc-sthead .ps-h2{margin:0}
.pc-sthead .ua-chips{margin:0}
.pl-list tr.pl-total th,.pl-list tr.pl-total td{font-weight:700;background:var(--surface-2);border-top:2px solid var(--border)}
section[aria-labelledby^="pc-h-"]{margin:0 0 24px}
@media (max-width:960px){.pl-filters.pl-cons{grid-template-columns:repeat(2,minmax(0,1fr))}.pl-cons .ua-f:last-child{grid-column:1/-1}}
@media (max-width:640px){.pl-filters.pl-cons{grid-template-columns:minmax(0,1fr)}.pl-list tr.pl-total{padding:12px 8px}}
@media (max-width:640px){.pl-cons-t tbody td{grid-template-columns:128px minmax(0,1fr)}}
