@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); }

/* Layout: the "Legends Black" house style the owner picked for ProShop (#128) — black top bar with app + modules, white second bar with the module's pages, condensed uppercase titles, black table headings, red primary action, white page. One app window per screen. */
:root {
  --page: #e9e9e9; --surface: #ffffff; --band: #f5f5f5; --ink: #111111; --muted: #525252; --faint: #6b6b6b;
  --line: #e5e5e5; --line2: #d4d4d4; --chrome: #111111; --chrome-ink: #ffffff; --chrome-muted: #a3a3a3;
  --head: #111111; --head-ink: #ffffff; --red: #cb2f2b; --red-ink: #ffffff; --red-soft: #fdf3f2;
  --pos: #15803d; --neg: #b91c1c; --amber: #a16207; --amber-soft: #fef6e4;
  --s1: #111111; --s2: #cb2f2b; --s3: #b7791f; --s4: #7a7a7a; --s0: #b5b5b5;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #0a0a0a; --surface: #181818; --band: #1f1f1f; --ink: #ededed; --muted: #b3b3b3; --faint: #8f8f8f;
  --line: #2a2a2a; --line2: #3a3a3a; --chrome: #050505; --chrome-ink: #ffffff; --chrome-muted: #9a9a9a;
  --head: #0a0a0a; --head-ink: #ededed; --red: #e5484d; --red-ink: #ffffff; --red-soft: #3a2020;
  --pos: #4ade80; --neg: #f87171; --amber: #fbbf24; --amber-soft: #2e2615;
  --s1: #ededed; --s2: #e5484d; --s3: #e0a33a; --s4: #8a8a8a; --s0: #4a4a4a; color-scheme: dark } }
:root[data-theme="dark"] {
  --page: #0a0a0a; --surface: #181818; --band: #1f1f1f; --ink: #ededed; --muted: #b3b3b3; --faint: #8f8f8f;
  --line: #2a2a2a; --line2: #3a3a3a; --chrome: #050505; --chrome-ink: #ffffff; --chrome-muted: #9a9a9a;
  --head: #0a0a0a; --head-ink: #ededed; --red: #e5484d; --red-ink: #ffffff; --red-soft: #3a2020;
  --pos: #4ade80; --neg: #f87171; --amber: #fbbf24; --amber-soft: #2e2615;
  --s1: #ededed; --s2: #e5484d; --s3: #e0a33a; --s4: #8a8a8a; --s0: #4a4a4a; color-scheme: dark }

body { background: var(--page); color: var(--ink); font: 14px/1.45 var(--sans); }
.wrap { max-width: 1320px; margin: 0 auto; padding-block: 14px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 10px; }
td.r, th.r, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* preview controls (outside the app) */
.pv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pv h1 { margin: 0; font: 700 16px var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.pv .note { font-size: 12.5px; color: var(--muted); }
.pv .sp { flex: 1; }
.pv label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pv select { font: 13px var(--sans); padding: 4px 8px; border: 1px solid var(--line2); border-radius: 4px; background: var(--surface); color: var(--ink); max-width: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.tabs .g { font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 6px 0 10px; }
.tabs .g:first-child { margin-left: 0; }
.tabs a { font-size: 13px; padding: 3px 9px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.tabs a:hover { background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--page); }

/* app window */
.win { border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line2); }
.top { display: flex; align-items: stretch; gap: 0; height: 46px; padding: 0 16px; background: var(--chrome); color: var(--chrome-ink); overflow-x: auto; }
.logo { display: flex; align-items: center; gap: 9px; padding-right: 22px; white-space: nowrap; }
.logo svg { flex: none; }
.logo b { font: 700 16px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.logo span { font: 600 16px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-muted); }
.mods { display: flex; align-items: stretch; }
.mods a { display: flex; align-items: center; padding: 0 13px; font: 600 14px var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--chrome-muted); text-decoration: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.mods a.on { color: var(--chrome-ink); border-bottom-color: var(--red); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-left: 16px; font-size: 13px; color: var(--chrome-muted); white-space: nowrap; }
.who b { color: var(--chrome-ink); font-weight: 600; }
.av { width: 26px; height: 26px; border-radius: 50%; background: #2b2b2b; color: #ffffff; display: grid; place-items: center; font: 700 11px var(--sans); }
.sub2 { display: flex; gap: 0; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line2); overflow-x: auto; }
.sub2 a { padding: 9px 12px 7px; font-size: 13.5px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.sub2 a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.sub2 a.dim { color: var(--faint); }
.main { padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.ph { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; }
.ph .crumb { font-size: 12.5px; color: var(--faint); }
.ph h2 { margin: 1px 0 0; font: 700 26px/1.05 var(--cond); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
.ph .sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; max-width: 80ch; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font: 500 13.5px var(--sans); padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); white-space: nowrap; }
.btn.pri { background: var(--red); border-color: var(--red); color: var(--red-ink); font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .05em; padding: 6px 14px; }

.tb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tb .l { font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.fld { display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border: 1px solid var(--line2); border-radius: 4px; background: var(--surface); font-size: 13.5px; white-space: nowrap; }
.fld::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg) translateY(-2px); }
.fld.plain::after { content: none; }
.co { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.co input { margin: 0; width: 15px; height: 15px; accent-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.seg span { padding: 4px 11px; font-size: 13px; background: var(--surface); }
.seg span + span { border-left: 1px solid var(--line2); }
.seg .on { background: var(--ink); color: var(--surface); font-weight: 600; }
.tb .r { margin-left: auto; font-size: 12.5px; color: var(--faint); }

.box { min-width: 0; }
.box > .bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 0 7px; }
.box > .bh h3 { margin: 0; font: 700 15px var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.box > .bh span { font-size: 12.5px; color: var(--faint); }
.box > .bb { padding: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 22px; }
.grid2e { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid2, .grid2e { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.kpi { padding: 10px 16px 11px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi + .kpi { padding-left: 16px; border-left: 1px solid var(--line); }
.kpi .k { font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.kpi .v { font: 600 22px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.kpi .d { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pos { color: var(--pos) !important; } .neg { color: var(--neg) !important; } .amb { color: var(--amber) !important; }

.tw { overflow-x: auto; border: 1px solid var(--line2); border-radius: 4px; }
.bb.tw { padding: 10px 8px 2px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; font: 700 12.5px var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--head-ink); background: var(--head); padding: 7px 10px; white-space: nowrap; }
td { padding: 6px 10px; border-top: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
tbody tr:hover td { background: var(--band); }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
tr.grp td { font: 700 12.5px var(--cond); text-transform: uppercase; letter-spacing: .05em; background: var(--band) !important; color: var(--muted); }
tr.st td { font-weight: 600; }
tr.tot td { font-weight: 700; border-top: 1.5px solid var(--ink); border-bottom: 3px double var(--ink); }
td.i1 { padding-left: 24px; } td.i2 { padding-left: 38px; }
tr.elim td { color: var(--muted); font-style: italic; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dim { color: var(--faint); }
.src { font-size: 12.5px; color: var(--faint); }
.lk { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.lk:hover { text-decoration-color: var(--ink); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.flag { font-size: 12.5px; color: var(--amber); white-space: nowrap; }
.flag::before { content: "▲ "; font-size: 9px; vertical-align: 1px; }
.alerts { border: 1px solid var(--line2); border-radius: 4px; }
.alert { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.alert:first-child { border-top: 0; }
.alert i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.alert b { font-weight: 600; }
.alert span { color: var(--muted); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; background: var(--band); border-radius: 4px; font-size: 13.5px; color: var(--muted); }
.banner b { color: var(--ink); }
.banner.amb { background: var(--amber-soft); }
.banner.amb b { color: var(--amber); }
.qty { display: inline-block; width: 56px; padding: 3px 7px; border: 1px solid var(--line2); border-radius: 4px; text-align: right; background: var(--surface); font-variant-numeric: tabular-nums; }
.frm { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; }
.frm label { display: flex; flex-direction: column; gap: 4px; font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.frm .in { padding: 6px 9px; border: 1px solid var(--line2); border-radius: 4px; background: var(--surface); color: var(--ink); font: 400 14px var(--sans); text-transform: none; letter-spacing: 0; }
.flow { display: flex; flex-wrap: wrap; gap: 0; }
.flow span { padding: 5px 14px; font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); border-bottom: 3px solid var(--line); }
.flow span.done { color: var(--ink); border-bottom-color: var(--ink); }
.flow span.now { color: var(--red); border-bottom-color: var(--red); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta div { display: flex; flex-direction: column; gap: 2px; }
.meta span { font: 700 12px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.log { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.log b { color: var(--ink); font-weight: 600; }
.denied { padding: 46px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 4px; }
.denied b { display: block; color: var(--ink); font: 700 18px var(--cond); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
svg text { font-family: var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: 3px; }
.foot { font-size: 12.5px; color: var(--faint); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 4px; color: var(--ink); text-decoration: none; min-width: 0; }
.tile:hover { border-color: var(--ink); }
.tile .th { display: flex; justify-content: space-between; align-items: baseline; font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.tile .th i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; }
.tile .th span:last-child { font: 600 13px var(--sans); text-transform: none; letter-spacing: 0; }
.tile .tv { font: 600 24px var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .tg { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; }
.tile .tg span { color: var(--faint); }
.tile .tg b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tile .tsp { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 11.5px; color: var(--faint); }
.tile .tsp svg { max-width: 75%; height: auto; }
