/* Fashion market — the app's look: tokens, header, tabs, cards, controls,
 * charts. Light by default; dark from the system setting or data-theme. */

:root {
  color-scheme: light;
  --page: #f1f1ed;
  --surface: #fcfcfb;
  --surface-2: #f4f4f0;
  --surface-3: #e9e8e2;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --funnel-arrow: #e9e8e2;    /* the funnel's arrows */
  --hairline: rgba(11, 11, 11, 0.1);
  --accent: #eb6834;          /* our brand */
  --accent-ink: #b8430f;
  --focus: #2a78d6;
  --good: #0ca30c; --good-ink: #006300;
  --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;

  /* Brands: each world sets its brands' colours (--brand-1, -2, ...) and
     --ours, its family's first brand; these stand in until it does. */
  --brand-1: #eb6834; --brand-2: #2a78d6; --brand-3: #4a3aa7; --brand-4: #1baf7a; --ours: #eb6834;
  --brand-0: #c9c7bd;         /* hasn't bought yet */
  /* Categories: each world sets its categories' colours (--cat-1, -2, ...);
     these stand in until it does. */
  --cat-1: #2a78d6; --cat-2: #eb6834; --cat-3: #1baf7a; --cat-4: #eda100;
  --cat-5: #e87ba4; --cat-6: #008300; --cat-7: #4a3aa7;
  --fitting: #e87ba4;          /* fitting rooms on the floor plans */
  /* Offers: held out, sent a coupon, used it. */
  --offer-0: #898781; --offer-1: #2a78d6; --offer-2: #1baf7a;
  /* Loyalty tiers over the season: moved up, kept, dropped. */
  --tier-up: #1baf7a; --tier-kept: #2a78d6; --tier-down: #ec835a;
  /* Segments. */
  --seg-1: #2a78d6; --seg-2: #eb6834; --seg-3: #1baf7a; --seg-4: #eda100;
  /* Shoppers on the floor. */
  --look-1: #52514e; --look-2: #2a78d6; --look-3: #eda100; --look-4: #e87ba4;
  --look-5: #008300; --look-6: #e34948; --look-7: #1baf7a; --look-8: #8a5cd6;
  /* Funnel stages (an ordinal blue ramp). */
  --stage-1: #86b6ef; --stage-2: #6da7ec; --stage-3: #5598e7; --stage-4: #3987e5; --stage-5: #2a78d6; --stage-6: #1c5cab;

  /* The city map and store floor. */
  --map-land: #ecebe4; --map-water: #b9d5ea; --map-park: #cfe3c2; --map-shops: #e6d3bd;
  --map-road: #ffffff; --map-road-edge: #d6d4ca; --map-street: rgba(255, 255, 255, 0.7);
  --map-label: #3a3935; --map-homes: #b98f5e; --map-road-paint: #8f8c82;
  --floor-bg: #f7f5ef; --floor-wall: #3a3935; --floor-line: #d9d6cc;

  --radius: 10px;
  --radius-sm: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.06), 0 1px 1px rgba(11, 11, 11, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222220; --surface-3: #2c2c2a;
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #a8a69e; --grid: #2c2c2a; --axis: #454541; --funnel-arrow: #5c5b57;
    --hairline: rgba(255, 255, 255, 0.1);
    --accent: #d95926; --accent-ink: #ff9a6b; --focus: #3987e5; --good-ink: #0ca30c;
    --brand-1: #d95926; --brand-2: #3987e5; --brand-3: #9b59b6; --brand-4: #199e70; --brand-0: #4a4945;
    --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --fitting: #d55181;
    --offer-0: #898781; --offer-1: #3987e5; --offer-2: #199e70; --tier-up: #199e70; --tier-kept: #3987e5; --tier-down: #e0764a;
    --seg-1: #3987e5; --seg-2: #d95926; --seg-3: #199e70; --seg-4: #c98500;
    --look-1: #c3c2b7; --look-2: #3987e5; --look-3: #c98500; --look-4: #d55181; --look-5: #0ca30c; --look-6: #e66767; --look-7: #199e70; --look-8: #a37ef0;
    --stage-1: #184f95; --stage-2: #1c5cab; --stage-3: #256abf; --stage-4: #2a78d6; --stage-5: #3987e5; --stage-6: #5598e7;
    --map-land: #1f1f1d; --map-water: #1b3246; --map-park: #1f3321; --map-shops: #3a2f24;
    --map-road: #3a3a37; --map-road-edge: #2a2a28; --map-street: rgba(255, 255, 255, 0.07); --map-label: #e8e6dc; --map-homes: #7a6243; --map-road-paint: #77756d; --map-homes: #7a6243; --map-road-paint: #77756d;
    --floor-bg: #232321; --floor-wall: #cfcdc3; --floor-line: #34342f;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #222220; --surface-3: #2c2c2a;
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #a8a69e; --grid: #2c2c2a; --axis: #454541; --funnel-arrow: #5c5b57;
  --hairline: rgba(255, 255, 255, 0.1);
  --accent: #d95926; --accent-ink: #ff9a6b; --focus: #3987e5; --good-ink: #0ca30c;
  --brand-1: #d95926; --brand-2: #3987e5; --brand-3: #9b59b6; --brand-4: #199e70; --brand-0: #4a4945;
  --cat-1: #3987e5; --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --fitting: #d55181;
  --offer-0: #898781; --offer-1: #3987e5; --offer-2: #199e70; --tier-up: #199e70; --tier-kept: #3987e5; --tier-down: #e0764a;
  --seg-1: #3987e5; --seg-2: #d95926; --seg-3: #199e70; --seg-4: #c98500;
  --look-1: #c3c2b7; --look-2: #3987e5; --look-3: #c98500; --look-4: #d55181; --look-5: #0ca30c; --look-6: #e66767; --look-7: #199e70; --look-8: #a37ef0;
  --stage-1: #184f95; --stage-2: #1c5cab; --stage-3: #256abf; --stage-4: #2a78d6; --stage-5: #3987e5; --stage-6: #5598e7;
  --map-land: #1f1f1d; --map-water: #1b3246; --map-park: #1f3321; --map-shops: #3a2f24;
  --map-road: #3a3a37; --map-road-edge: #2a2a28; --map-street: rgba(255, 255, 255, 0.07); --map-label: #e8e6dc; --map-homes: #7a6243; --map-road-paint: #77756d;
  --floor-bg: #232321; --floor-wall: #cfcdc3; --floor-line: #34342f;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page); color: var(--ink); font: 14px/1.4 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
button, select, input { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- Header ------------------------------------------------------------ */

.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--hairline);
}
.brand-mark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark svg { flex: none; }
.brand-mark b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.brand-mark small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.run-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clock { display: grid; gap: 3px; min-width: 150px; }
.clock-text { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.clock-text span { color: var(--muted); font-weight: 400; }
.season-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.season-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.headline { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.headline .tile-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.headline .tile-value { font-weight: 650; font-size: 17px; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--hairline); background: var(--surface-2);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:focus-visible, .seg button:focus-visible, select:focus-visible, input:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; min-width: 84px; justify-content: center; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { height: 26px; padding: 0 9px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.is-on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 0 12px; height: 30px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

select {
  height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--hairline); background: var(--surface-2);
  padding: 0 28px 0 10px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat;
}
label.field { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
input[type="number"] {
  height: 32px; width: 140px; border-radius: var(--radius-sm); border: 1px solid var(--hairline);
  background: var(--surface-2); color: var(--ink); padding: 0 10px; font: inherit; font-variant-numeric: tabular-nums;
}

/* ---- Tabs ------------------------------------------------------------------ */

.tabbar {
  position: sticky; top: var(--header-h, 56px); z-index: 15;
  display: flex; gap: 2px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--hairline);
  overflow-x: auto; scrollbar-width: none;
}
.tab {
  border: 0; background: none; padding: 11px 16px 10px; cursor: pointer; color: var(--ink-2); font-weight: 550;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab small { display: none; }

main { padding: 16px 20px 40px; }
.tab-panel { display: grid; gap: 14px; }
.tab-intro { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 0; }
.tab-intro h1 { font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.tab-intro p { margin: 0; color: var(--ink-2); max-width: 900px; }

/* A row of filters above what they scope. */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }

/* ---- Cards ------------------------------------------------------------------ */

.grid { display: grid; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.card-head h2 { font-size: 13px; font-weight: 650; margin: 0; letter-spacing: 0.01em; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 12px 16px 0; }
.note { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.empty { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 14px; }
.stat .stat-label { color: var(--muted); font-size: 12px; }
.stat .stat-value { font-size: 18px; font-weight: 650; }
.stat .stat-sub { color: var(--ink-2); font-size: 12px; }

/* ---- Levers (sliders) ------------------------------------------------------- */

.lever { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.lever .lever-label { font-size: 12px; color: var(--ink-2); }
.lever output { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; text-align: right; }
.lever input[type="range"] { grid-column: 1 / -1; width: 100%; }
input[type="range"] { accent-color: var(--accent); height: 18px; margin: 0; }

.brand-name { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.brand-name .dot, .key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge.live { background: color-mix(in srgb, var(--good) 18%, var(--surface)); color: var(--good-ink); }

/* ---- Views: map and floor ------------------------------------------------------- */

.canvas-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--map-land); }
.canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.map-wrap { aspect-ratio: 4 / 3; }
.floor-wrap { background: var(--floor-bg); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.legend-swatch.square { border-radius: 2px; }
.legend-line { width: 14px; height: 2px; border-radius: 1px; background: var(--c); flex: none; }
.view-caption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 7px; border-radius: 5px; pointer-events: none; }

/* ---- Charts ---------------------------------------------------------------------- */

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .label-ink { fill: var(--ink-2); }
.chart .value-ink { fill: var(--ink); font-weight: 600; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .mark:hover, .chart .mark.is-hover { filter: brightness(1.08) saturate(1.1); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.tooltip {
  position: fixed; z-index: 100; pointer-events: none; min-width: 120px; max-width: 280px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14); padding: 8px 10px; font-size: 12px;
}
.tooltip .tt-title { color: var(--muted); margin-bottom: 4px; }
.tooltip .tt-row { display: grid; grid-template-columns: 14px auto 1fr; gap: 6px; align-items: center; }
.tooltip .tt-row b { font-variant-numeric: tabular-nums; }
.tooltip .tt-row span:last-child { color: var(--ink-2); }
.tooltip .tt-key { width: 12px; height: 2px; border-radius: 1px; background: var(--c); }

table.data { width: 100%; border-collapse: collapse; font-size: 12px; }
table.data th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--hairline); white-space: nowrap; cursor: default; }
table.data th.sortable { cursor: pointer; }
table.data td { padding: 5px 8px; border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
table.data td.num, table.data th.num { text-align: right; }
table.data tr:hover td { background: var(--surface-2); }
.table-scroll { overflow: auto; max-height: 360px; }

/* ---- Layouts per tab --------------------------------------------------------------- */

.market-top { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
.market-bottom { grid-template-columns: 0.8fr 1.3fr 0.9fr 1.3fr; }
.strategy-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.strategy-bottom { grid-template-columns: 0.8fr 0.8fr 1.4fr 1.2fr; }
.offers-top { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); align-items: start; }
.offers-mid { grid-template-columns: 1.2fr 1fr 1fr; }
.store-top { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); align-items: start; }
.store-bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.assort-top { grid-template-columns: minmax(0, 1fr); }
.assort-mid { grid-template-columns: 1fr 1fr 1.2fr; }
.score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.funnel-bottom { grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

@media (max-width: 1400px) {
  .market-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assort-mid { grid-template-columns: 1fr 1fr; }
  .assort-mid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .market-top, .strategy-top, .offers-top, .offers-mid, .store-top, .score-grid, .funnel-bottom, .assort-mid { grid-template-columns: minmax(0, 1fr); }
  .market-bottom, .strategy-bottom, .store-bottom { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .assort-mid > :last-child { grid-column: auto; }
  .headline { margin-left: 0; }
}
@media (max-width: 640px) {
  .app-header { padding: 8px 16px; gap: 10px; }
  main { padding: 12px 16px 32px; }
  .brand-mark small { display: none; }
  .headline { gap: 12px; }
  .headline .tile-value { font-size: 15px; }
}

/* ---- Strategy: levers against competitors -------------------------------------- */

.lever-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lever-col { display: grid; gap: 6px; justify-items: center; text-align: center; }
.lever-col h3 { font-size: 12px; font-weight: 600; margin: 0; color: var(--ink-2); min-height: 32px; }
.lever-col .pair { display: flex; align-items: end; gap: 10px; height: 170px; }
.lever-col .bar-wrap { display: grid; justify-items: center; gap: 4px; }
.lever-col .bar-track { position: relative; width: 22px; height: 150px; border-radius: 4px 4px 0 0; background: var(--surface-2); }
.lever-col .bar-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; background: var(--c); transition: height 0.25s; }
.lever-col .bar-cap { font-size: 11px; color: var(--muted); }
.lever-col .bar-val { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lever-col input[type="range"] { width: 100%; }
@media (max-width: 1000px) { .lever-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lever-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Funnel ----------------------------------------------------------------------- */

.funnel-svg text { font-family: var(--font); font-size: 13px; }
.funnel-svg .flow-arrow { fill: var(--funnel-arrow); }
.staff-panel { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 10px; }
.staff-dots { display: flex; flex-wrap: wrap; gap: 5px; min-height: 12px; }
.staff-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* ---- Store -------------------------------------------------------------------------- */

.store-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-title { display: flex; align-items: center; gap: 10px; }
.store-title h1 { margin: 0; font-size: 18px; }
.settings-grid { display: grid; gap: 10px; }
.story { display: grid; gap: 3px; font-size: 12px; max-height: 250px; overflow: auto; }
.story div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.story time { color: var(--muted); font-variant-numeric: tabular-nums; }
.flow-svg text { font-family: var(--font); }

/* ---- Loading, errors, code drawer ------------------------------------------------ */

.loading {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(3px);
}
.loading-card { width: min(440px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 22px 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); }
.loading-card h2 { margin: 0 0 4px; font-size: 17px; }
.loading-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 13px; }
.loading-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.loading-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.loading-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--axis); flex: none; }
.loading-steps li[data-state="active"] { color: var(--ink); }
.loading-steps li[data-state="active"]::before { border-color: var(--accent); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.loading-steps li[data-state="done"] { color: var(--ink-2); }
.loading-steps li[data-state="done"]::before { background: var(--good); border-color: var(--good); }
.loading-steps li[data-state="error"]::before { background: var(--critical); border-color: var(--critical); }
.loading-steps small { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.loading-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.loading-bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); transition: width 0.3s; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; max-width: min(640px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--critical); border-radius: 8px;
  padding: 10px 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16); font-size: 13px; }
.banner b { display: block; }
.banner pre { white-space: pre-wrap; margin: 4px 0 0; font: 12px var(--mono); color: var(--ink-2); }

.code-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(760px, 100vw);
  background: var(--surface); border-left: 1px solid var(--hairline); box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  display: grid; grid-template-rows: auto auto 1fr; transform: translateX(100%); transition: transform 0.25s ease;
}
.code-drawer.open { transform: none; }
.code-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.code-head h2 { margin: 0; font-size: 15px; }
.code-head p { margin: 0; color: var(--muted); font-size: 12px; }
.code-head .btn { margin-left: auto; }
.code-files { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid var(--hairline); }
.code-files button { border: 0; background: none; padding: 9px 10px; cursor: pointer; color: var(--ink-2); font: 12px var(--mono); border-bottom: 2px solid transparent; white-space: nowrap; }
.code-files button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.code-body { overflow: auto; font: 12px/1.5 var(--mono); }
.code-body .cm-editor { height: 100%; }
.code-body pre { margin: 0; padding: 12px 16px; white-space: pre; }

/* Sliders: a quiet track, filled in the accent up to the thumb (the fill
   is drawn from --fill, set by js/fashion/ui.js). */
input[type="range"] {
  -webkit-appearance: none; appearance: none; background: transparent; height: 20px; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill, 50%), var(--surface-3) var(--fill, 50%) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; }

/* Phones: the header folds into two compact rows. */
@media (max-width: 640px) {
  .brand-mark { flex: 1 1 auto; }
  .brand-mark b { font-size: 15px; }
  #btn-code { order: 2; height: 28px; }
  .run-controls { order: 3; width: 100%; }
  .run-controls .btn, .run-controls .seg button, .run-controls select { height: 30px; }
  .clock { order: 4; min-width: 0; flex: 1 1 120px; }
  .headline { order: 5; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .headline .tile-label { font-size: 10.5px; white-space: normal; line-height: 1.2; }
  .tabbar { padding: 0 8px; }
  .tab { padding: 10px 10px 9px; }
}
@media (max-width: 1000px) { .market-top > :last-child { order: -1; } }

/* ---- Setup: the world, its sections and editors ----------------------------------- */

#btn-setup .count { margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warning); color: #1a1a1a; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.world-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.world-bar label.field input { width: 260px; }
.world-bar .pending { margin-left: auto; align-self: center; }
.badge.warn { background: color-mix(in srgb, var(--warning) 30%, var(--surface)); color: var(--ink); }
.section-strip { position: sticky; top: calc(var(--header-h, 56px) + 42px); z-index: 12; background: var(--page); padding: 4px 0; }
.section-strip .seg button { height: 34px; padding: 0 16px; }
.setup-section { display: grid; gap: 14px; }
.setup-two { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
.setup-three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.season-grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .setup-two, .setup-three, .season-grid { grid-template-columns: minmax(0, 1fr); } }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.tag.live { background: color-mix(in srgb, var(--good) 18%, var(--surface)); color: var(--good-ink); }
.setup-heading { font-size: 12.5px; font-weight: 650; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--hairline); display: flex; gap: 8px; align-items: baseline; }
.setup-heading .sub { font-weight: 400; color: var(--muted); font-size: 12px; }
.sub.bad, .bad { color: var(--critical) !important; }
input[type="text"] { height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink); padding: 0 8px; font: inherit; min-width: 0; }
input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--hairline); border-radius: 6px; background: none; cursor: pointer; flex: none; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; margin-top: 8px; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.btn.danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 40%, transparent); }
.linkish { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.settings-grid.compact { gap: 6px; }
@media (max-width: 700px) { .settings-grid.two-col, .grid.two { grid-template-columns: minmax(0, 1fr); } }

.brand-list { display: grid; gap: 12px; }
.family { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.family-head { display: flex; gap: 8px; align-items: center; }
.family-head input[type="text"] { font-weight: 650; flex: 1; }
.brand-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; border-left: 3px solid var(--brand, transparent); cursor: pointer; }
.brand-row:hover { background: var(--surface-2); }
.brand-row.is-on { background: color-mix(in srgb, var(--focus) 10%, var(--surface)); }
.brand-row input[type="text"] { width: 100%; }
.brand-row .sub { color: var(--muted); font-size: 12px; white-space: nowrap; }
.confirm { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--critical) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--critical) 30%, transparent); }
.confirm p { margin: 0 0 8px; font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px 10px; }
.plan-grid label.field input { width: 100%; }
table.tiers td { padding: 3px 4px; }
table.tiers input[type="number"] { width: 70px; height: 28px; padding: 0 6px; }
table.tiers input[type="text"] { width: 110px; }
table.data tr.total td { font-weight: 650; border-top: 2px solid var(--hairline); }
table.data td.neg { color: var(--critical); }
table.data tr.clickable { cursor: pointer; }
table.data tr.is-on td { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
table.tier-matrix td.up { background: color-mix(in srgb, var(--tier-up) 12%, transparent); }
table.tier-matrix td.kept { background: color-mix(in srgb, var(--tier-kept) 12%, transparent); font-weight: 650; }
table.tier-matrix td.down { background: color-mix(in srgb, var(--tier-down) 12%, transparent); }

.problems-panel { background: color-mix(in srgb, var(--critical) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--critical) 30%, transparent); border-radius: var(--radius); padding: 10px 14px; }
.problems-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.problems-head .icon-btn { margin-left: auto; }
.problems { display: grid; gap: 3px; max-height: 260px; overflow: auto; font-size: 12.5px; }
.problem { text-align: left; border: 0; background: none; padding: 3px 4px; border-radius: 5px; cursor: pointer; color: var(--ink); font: inherit; font-size: 12.5px; }
.problem:hover { background: var(--surface-3); }
.problem code { font: 11.5px var(--mono); color: var(--ink-2); }
.ok-line { color: var(--good-ink); font-size: 13px; }
.problems-box .problems b { font-size: 12.5px; }

/* The editors. */
.editor-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.tool { width: 30px; height: 30px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; }
.tool:hover { background: var(--surface-3); }
.tool[aria-pressed="true"] { background: var(--surface); border-color: var(--hairline); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.tool.text { width: auto; min-width: 30px; padding: 0 6px; font-size: 13px; }
.tool-gap { width: 10px; }
.editor-canvas { position: relative; height: min(70vh, 640px); min-height: 360px; border-radius: var(--radius-sm); border: 1px solid var(--hairline); background: var(--surface-2); overflow: hidden; }
.editor-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.editor-canvas canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.editor-status { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 1px 6px; border-radius: 4px; pointer-events: none; }
.editor-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 6px; min-height: 20px; }
.editor-hover { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.palette { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.palette.grouped { display: grid; gap: 10px; }
.palette-title { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.palette-row { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch { position: relative; min-width: 34px; height: 30px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--c); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 11px; color: var(--ink); }
.swatch span { font: 700 11px var(--mono); text-shadow: 0 0 3px var(--surface); }
.swatch em { font-style: normal; font-size: 11.5px; background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 0 4px; border-radius: 3px; }
.swatch[aria-checked="true"] { outline: 2px solid var(--focus); outline-offset: 1px; }
.palette:not(.grouped) .swatch em { display: none; }
.palette:not(.grouped) .swatch:hover em, .palette:not(.grouped) .swatch[aria-checked="true"] em { display: inline; }
.store-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.map-editor { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; }
.layout-editor { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
@media (max-width: 1250px) { .layout-editor { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); } .layout-editor > :first-child { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .map-editor, .layout-editor { grid-template-columns: minmax(0, 1fr); } }
.readouts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; align-items: start; }
.readouts.busy { opacity: 0.6; }
.readouts .stat.warn .stat-value { color: var(--critical); }
.readouts .note { flex-basis: 100%; }
.stats.compact { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-bottom: 8px; }
.stat-value.small { font-size: 14px; }
.store-list { display: grid; gap: 10px; max-height: 340px; overflow: auto; }
.store-group { display: grid; gap: 2px; border-left: 3px solid var(--brand); padding-left: 8px; }
.store-group .brand-name { font-size: 13px; }
.store-row { display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 3px 6px; border-radius: 5px; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; cursor: pointer; }
.store-row:hover { background: var(--surface-2); }
.store-row.is-on { background: color-mix(in srgb, var(--focus) 12%, var(--surface)); }
.store-row .sub { color: var(--muted); white-space: nowrap; }
.area-list { display: grid; gap: 4px; margin-bottom: 8px; }
.area-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 2px 4px; border-radius: 6px; }
.area-row.is-on { background: color-mix(in srgb, var(--focus) 10%, var(--surface)); }
.area-row .sub { color: var(--muted); font-size: 12px; }
.area-detail { margin-top: 6px; }
.layout-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; margin-bottom: 8px; }
.layout-row { display: grid; gap: 1px; text-align: left; border: 1px solid transparent; background: none; border-radius: 6px; padding: 6px 8px; cursor: pointer; color: var(--ink); font: inherit; }
.layout-row:hover { background: var(--surface-2); }
.layout-row.is-on { background: color-mix(in srgb, var(--focus) 10%, var(--surface)); border-color: color-mix(in srgb, var(--focus) 30%, transparent); }
.layout-row .sub { color: var(--muted); font-size: 12px; }
.resize { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.resize input[type="number"] { width: 90px; }
.anchor-grid { display: grid; grid-template-columns: repeat(3, 14px); gap: 2px; }
.anchor-grid button { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--hairline); background: var(--surface-2); padding: 0; cursor: pointer; }
.anchor-grid button[aria-checked="true"] { background: var(--focus); border-color: var(--focus); }

/* A household's ledger (the Market tab, and the inspector). */
.ledger { display: grid; gap: 8px; }
.ledger table.data { font-size: 12px; }
.ledger .ledger-scroll { max-height: 300px; }
.ledger-lines tr.returned td { color: var(--muted); }
.ledger-lines td:nth-child(3), .ledger-lines td:nth-child(7) { min-width: 140px; }
.ledger.compact ul { font-size: 12px; max-height: 220px; overflow: auto; margin: 0; }
.ledger.compact li.returned { color: var(--muted); }

/* The Market tab: the promotions running today, brand by brand. */
.promo-today { display: grid; gap: 8px; }
.promo-today ul { margin: 3px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.promo-today p { margin: 0; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0; }
.chip { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--ink-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* The inspector. */
.inspector { border-color: color-mix(in srgb, var(--focus) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--focus) 20%, transparent); }
.inspector .now { font-size: 13.5px; font-weight: 600; margin: 6px 0; }
.inspector .now .label { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.inspector .patience { margin: 6px 0; }
.inspector .bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin: 3px 0; }
.meter span { display: block; height: 100%; background: var(--good); transition: width 0.25s; }
.meter span.hot { background: var(--critical); }
.kv { display: grid; gap: 3px; font-size: 12.5px; }
.kv-row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr); gap: 8px; }
.kv-row .k { color: var(--muted); }
ul.plain { margin: 0; padding-left: 16px; font-size: 12.5px; }
.thoughts { display: grid; gap: 3px; max-height: 190px; overflow: auto; font-size: 12.5px; font-style: italic; color: var(--ink-2); }
.thoughts p { margin: 0; }
.thoughts p::before { content: "“"; } .thoughts p::after { content: "”"; }
.inspector .btn { margin-top: 8px; }
.banner.info { border-left-color: var(--focus); }

/* ---- Range and calendar (Setup), the calendar strip (Assortment) ---- */

.range-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
.range-problems:empty { display: none; }
.range-problems { margin: 4px 0 10px; }
table.data.products td { padding: 3px 6px; }
table.data.products input[type="text"] { width: 100%; min-width: 150px; }
table.data.products input[type="number"] { width: 90px; height: 28px; padding: 0 6px; text-align: right; }
table.data.products select { height: 28px; }
table.data tr.group-row td { font-weight: 650; color: var(--ink); background: var(--surface-2); padding-top: 6px; }
table.data tr.group-row .legend-swatch { display: inline-block; margin-right: 6px; vertical-align: -1px; }
.products-scroll { max-height: 420px; }
td.row-actions { white-space: nowrap; text-align: right; }
.paste-box { display: grid; gap: 6px; margin-top: 8px; }
.paste-area { width: 100%; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 6px 8px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface); color: var(--ink); }
.paste-out { font-size: 12.5px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; margin-top: 8px; }
@media (max-width: 1100px) { .calendar-layout { grid-template-columns: minmax(0, 1fr); } }
.calendar-box { min-width: 0; overflow-x: auto; }
.entry-editor { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface-2); }
.entry-editor .empty { padding: 8px 0; }
.entry-kind { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.entry-editor .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.entry-editor .two input { width: 100%; }
.entry-editor .bad { font-size: 12.5px; }
.entry-line { margin: 2px 0 0; padding: 6px 8px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 12.5px; color: var(--ink); }
.checks.weekdays { gap: 4px 10px; }
.stock-story h3 { font-size: 12px; font-weight: 650; margin: 10px 0 2px; color: var(--ink); }
.stock-story p { margin: 2px 0; font-size: 12.5px; color: var(--ink-2); }
.checks.col { flex-direction: column; gap: 4px; }
.product-checks { max-height: 150px; overflow: auto; }
table.data.categories td { padding: 3px 6px; }
table.data.categories input[type="text"] { width: 130px; }
table.data.categories input[type="number"] { width: 80px; height: 28px; padding: 0 6px; text-align: right; }
table.data.categories td.center { text-align: center; }
svg.calendar-chart { display: block; font-size: 11px; }
.calendar-chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.calendar-chart .axis-text { fill: var(--muted); font-size: 10px; }
.calendar-chart .label-ink { fill: var(--ink-2); }
.calendar-chart .cal-row { fill: transparent; stroke: var(--hairline); stroke-width: 0.5; }
.calendar-chart .cal-bar { stroke: var(--surface); stroke-width: 1; fill-opacity: 0.85; }
.calendar-chart .cal-bar.is-on { stroke: var(--ink); stroke-width: 2; }
.calendar-chart .cal-bar.bad { stroke: var(--critical); stroke-width: 2.5; }
.calendar-chart .cal-bar.bad.is-on { stroke-width: 3.5; }
.calendar-chart .cal-bar-text { fill: #fff; font-size: 10.5px; font-weight: 600; pointer-events: none; }
.calendar-chart .cal-step { fill: var(--ink-2); stroke: var(--ink-2); stroke-width: 0.5; }
.calendar-chart .cal-step.is-on { stroke: var(--ink); stroke-width: 2; }
.calendar-chart .cal-step.bad { stroke: var(--critical); stroke-width: 2.5; }
.calendar-chart .cal-band { fill-opacity: 0.55; }
.calendar-chart .cal-band.is-on { stroke: var(--ink); stroke-width: 1.5; fill-opacity: 0.9; }
.calendar-chart .cal-band.bad { stroke: var(--critical); stroke-width: 2; }
.calendar-chart .cal-band-text { fill: var(--ink-2); font-size: 9.5px; pointer-events: none; }
.calendar-chart .cal-tick { stroke-width: 1.5; stroke-linecap: round; }
.calendar-chart .cal-tick.future { stroke-opacity: 0.3; }
.calendar-chart .cal-hit { fill: transparent; }
.calendar-chart .cal-step-text { fill: var(--ink-2); font-size: 10px; pointer-events: none; }
.calendar-chart .cal-mark { fill: var(--ink); fill-opacity: 0.75; }
.calendar-chart .cal-today { stroke: var(--critical); stroke-width: 1.5; stroke-dasharray: 3 3; }
.calendar-chart .cal-today-text { fill: var(--critical); font-size: 10px; }
.calendar-chart .clickable { cursor: pointer; }
.thoughts p.has-detail { cursor: help; }
.thoughts p.tone-impulse { color: var(--accent-ink); }

/* ---- Stores (Setup, Micro world) ---- */

.store-editor { margin-bottom: 14px; }
.store-editor .field.end { display: flex; align-items: flex-end; }
.store-editor .store-list { max-height: 340px; overflow: auto; }
