/* =====================================================================
   Affiniti corporate design (CD manual, CI_AFFINITI):
     red   #c5141b  logo + headlines          grey  #3f3030  body text
     blue  #3f657e  secondary / highlights    beige #eeebe4  background
     Inter — headlines bold, body regular. Red rules above/below headings.
   Logo files in img/ are rendered from the manual's own artwork: never redraw or recolour them,
   and keep the logomark whenever the logo is shown.
   ===================================================================== */
:root {
  --brand: #c5141b; --brand-ink: #a31117; --brand-soft: #f4e2df;
  --accent: #3f657e; --accent-ink: #34566c; --accent-soft: #dfe7ec;

  --page: #eeebe4; --surface: #f7f5f0; --surface-2: #e8e4db;
  --border: rgba(63, 48, 48, 0.14); --border-strong: rgba(63, 48, 48, 0.28);
  --ink: #3f3030; --ink-2: #5d4f4f; --muted: #867a78; --grid: #ddd8ce;
  --good: #2f6b3a; --good-bg: #e1eadc;
  --bad: #c5141b; --bad-bg: #f4e2df;
  --warn-bg: #efe3c8;

  /* charts: CI red and blue first, then quieter tones that sit with the beige */
  --series-1: #c5141b; --series-2: #3f657e; --series-3: #b07a2a; --series-4: #5f8a5a;
  --series-5: #8c5a86; --series-6: #3f3030; --series-7: #2f8f9d;

  --radius: 4px;
  --shadow: none;
  --font: "Inter", "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #e5484d; --brand-ink: #ff8f93; --brand-soft: #3b1c1d;
    --accent: #86abc4; --accent-ink: #a9c6d9; --accent-soft: #1f2c35;
    --page: #171313; --surface: #201a1a; --surface-2: #2a2222;
    --border: rgba(255,255,255,0.10); --border-strong: rgba(255,255,255,0.20);
    --ink: #f1ecea; --ink-2: #cdc2c0; --muted: #978b89; --grid: #332b2b;
    --good: #7cc48a; --good-bg: #1c2e20; --bad: #ff7d80; --bad-bg: #3b1c1d; --warn-bg: #3a3120;
    --series-1: #e5484d; --series-2: #86abc4; --series-3: #d69e4a; --series-4: #8cbf86;
    --series-5: #c08bbb; --series-6: #d8cfcd; --series-7: #5cc0cc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #e5484d; --brand-ink: #ff8f93; --brand-soft: #3b1c1d;
  --accent: #86abc4; --accent-ink: #a9c6d9; --accent-soft: #1f2c35;
  --page: #171313; --surface: #201a1a; --surface-2: #2a2222;
  --border: rgba(255,255,255,0.10); --border-strong: rgba(255,255,255,0.20);
  --ink: #f1ecea; --ink-2: #cdc2c0; --muted: #978b89; --grid: #332b2b;
  --good: #7cc48a; --good-bg: #1c2e20; --bad: #ff7d80; --bad-bg: #3b1c1d; --warn-bg: #3a3120;
  --series-1: #e5484d; --series-2: #86abc4; --series-3: #d69e4a; --series-4: #8cbf86;
  --series-5: #c08bbb; --series-6: #d8cfcd; --series-7: #5cc0cc;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 15px; }
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; left: 5px; top: -5px; }
.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--brand-ink); background: var(--brand-soft); }
.topbar .spacer { flex: 1; }
.mode-pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--warn-bg); color: var(--ink-2); white-space: nowrap; }
.mode-pill.live { background: var(--good-bg); color: var(--good); }

main { max-width: 1320px; margin: 0 auto; padding: 24px; display: grid; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-body { padding: 16px 18px 18px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .grid-2, .grid-2-even { grid-template-columns: 1fr; } }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters label { font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
select, input, textarea, button { font: inherit; color: inherit; }
select, input[type=text], input[type=date], input[type=search], input[type=email], input[type=number], input[type=password], textarea {
  height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); min-width: 0;
}
textarea { height: auto; padding: 8px 10px; min-height: 72px; resize: vertical; }
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 34px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--brand-soft); color: var(--brand-ink); }

/* date range picker */
.drp { position: relative; }
.drp-btn { min-width: 230px; justify-content: space-between; }
.drp-btn .caret { color: var(--muted); }
.drp-pop { position: absolute; top: 40px; left: 0; z-index: 30; width: 260px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 6px; display: none; }
.drp.open .drp-pop { display: block; }
.drp-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; cursor: pointer; text-align: left; }
.drp-row:hover { background: var(--surface-2); }
.drp-row .check { width: 16px; font-weight: 800; color: var(--brand-ink); }
.drp-row .hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.drp-custom { border-top: 1px solid var(--border); margin-top: 6px; padding: 10px 6px 4px; display: grid; gap: 8px; }
.drp-custom .row { display: flex; gap: 6px; }
.drp-custom input { flex: 1; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 16px 18px; }
.kpi .label { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .delta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.delta-up { color: var(--good); font-weight: 700; }
.delta-down { color: var(--bad); font-weight: 700; }

/* ---------- chart ---------- */
.chart-wrap { position: relative; height: 320px; transition: opacity .15s; }
.chart-wrap.small { height: 240px; }
.chart-wrap.loading { opacity: .45; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .band { background: var(--accent-soft); border: 1px solid var(--accent); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th.r, td.r { text-align: right; white-space: nowrap; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.clickable { cursor: pointer; }
td .sub { font-size: 12px; color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- chips / labels ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.chip.direct { background: var(--good-bg); color: var(--good); }
.chip.network { background: var(--brand-soft); color: var(--brand-ink); }
.chip.tag { background: var(--surface-2); border-color: var(--border); color: var(--ink-2); }
.chip.plat { background: var(--surface-2); border-color: var(--border); color: var(--ink); }
.chip.plat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--muted)); }
.chip.status-active { background: var(--good-bg); color: var(--good); }
.chip.status-paused, .chip.status-onboarding { background: var(--warn-bg); color: var(--ink-2); }
.chip.status-churned { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- store header ---------- */
.store-head { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.store-head .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: var(--ink-2); }
.store-head .meta b { color: var(--ink); }
.store-head .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .store-head { grid-template-columns: 1fr; } .store-head .actions { justify-content: flex-start; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--border-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.current::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline .when { font-size: 12px; color: var(--muted); }

.uplift { font-weight: 800; }

/* ---------- modal ---------- */
dialog { border: 1px solid var(--border-strong); border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 16px 20px; display: grid; gap: 12px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: grid; gap: 6px; max-height: 200px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.placement-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: center; }

/* ---------- tooltip ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 99; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

.dropzone { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 28px; text-align: center; color: var(--ink-2); cursor: pointer; }
.dropzone.over { border-color: var(--brand); background: var(--brand-soft); }

.login { max-width: 380px; margin: 12vh auto; padding: 28px; display: grid; gap: 14px; text-align: center; }

@media (max-width: 640px) {
  main { padding: 16px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .mode-pill { display: none; }
  .drp-btn { min-width: 0; }
}

/* grid children must be allowed to shrink so wide tables scroll inside their card, not the page */
main > *, .grid-2 > *, .grid-2-even > *, .kpis > * { min-width: 0; }
.seg { max-width: 100%; overflow-x: auto; }
.drp-pop { max-width: calc(100vw - 32px); }
@media (max-width: 640px) {
  .kpi .value { font-size: 21px; }
  .filters > select, .filters > input[type=search] { flex: 1 1 140px; width: auto !important; }
  .nav a { padding: 8px 8px; }
}
main { grid-template-columns: minmax(0, 1fr); }
.nav { min-width: 0; }
[hidden] { display: none !important; }
.log-changes { display: grid; gap: 2px; font-size: 12px; max-width: 520px; overflow-wrap: anywhere; }
.topbar .chip.tag { white-space: nowrap; }

/* =====================================================================
   Affiniti look — editorial, flat, red rules around headings
   ===================================================================== */
a { color: var(--accent-ink); }
h1, h2, h3 { font-weight: 800; letter-spacing: 0; }
h1 { color: var(--brand); font-size: 26px; text-transform: uppercase; line-height: 1.1; }
h2 { color: var(--brand); font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; }
h3 { color: var(--brand); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
dialog h2 { font-size: 17px; }

/* top bar: beige, logo, red rule underneath */
.topbar { background: var(--page); border-bottom: 2px solid var(--brand); height: 60px; }
.brand-logo { height: 22px; width: auto; display: block; }
.brand-name { font-weight: 600; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--border-strong); }
.nav a { border-radius: 0; font-weight: 700; color: var(--ink-2); padding: 18px 12px 16px; border-bottom: 3px solid transparent; }
.nav a:hover { background: transparent; color: var(--brand); }
.nav a.active { background: transparent; color: var(--brand); border-bottom-color: var(--brand); }
.mode-pill { border-radius: 2px; font-weight: 600; }

/* page title between two red rules, like the manual's section heads */
.page-head:has(h1) { border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); padding: 14px 0 12px; }
.store-head h1 { text-transform: none; }   /* store names keep their own spelling */
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.page-head p { color: var(--ink-2); }

/* cards: flat panels on beige, a red rule under each section title */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.card-head { border-bottom: 1px solid var(--brand); margin: 0 18px; padding: 16px 0 10px; }
.card-head > div > .muted, .card-head > .muted { display: block; margin-top: 3px; font-size: 12.5px; }
.store-head { border-top: 3px solid var(--brand); }

/* KPI tiles: red rule on top, big grey numbers */
.kpi { border-top: 3px solid var(--brand); }
.kpi .label { text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.kpi .value { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

/* controls: square-ish, red for the main action, blue for "selected" */
select, input[type=text], input[type=date], input[type=search], input[type=email], input[type=number], input[type=password], textarea { border-radius: var(--radius); background: var(--surface); }
.btn { border-radius: var(--radius); background: var(--surface); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.ghost:hover { background: var(--surface-2); }
.seg { border-radius: var(--radius); }
.seg button.on { background: var(--accent); color: #fff; }
.drp-pop, dialog { border-radius: var(--radius); }
dialog { border-top: 3px solid var(--brand); }
.drp-row .check { color: var(--brand); }

/* tables */
th { text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); background: var(--surface); }
tbody tr:hover { background: var(--surface-2); }

/* chips: flat labels; blue marks networks/highlights (red stays for headlines) */
.chip { border-radius: 2px; }
.chip.network { background: var(--accent-soft); color: var(--accent-ink); }
.chip.tag, .chip.plat { background: transparent; border-color: var(--border-strong); }

.timeline li.current::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dropzone { border-radius: var(--radius); }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.toast { border-radius: var(--radius); }
.legend .band { background: var(--accent-soft); border-color: var(--accent); }

/* sign-in */
.login { border-top: 3px solid var(--brand); text-align: left; }
.login .login-logo { height: 30px; width: auto; }

@media (max-width: 640px) {
  .brand-name { display: none; }
  h1 { font-size: 21px; }
  .nav a { padding: 18px 8px 16px; }
}
/* narrower screens: the menu gets its own row under the logo instead of being cut off */
@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 8px 16px; }
  .topbar .nav { order: 10; flex: 1 0 100%; margin: 0 -8px; }
  .nav a { padding: 10px 10px 9px; }
  .brand-name { display: none; }
}

/* =====================================================================
   Sahseh portal (data-brand="sahseh"): Sahseh blue #2761FF + yellow #FDCD00, Almarai,
   rounded cards. The Affiniti rules above stay the default; this only swaps tokens and softens
   the editorial details (no capitals, no red rules).
   ===================================================================== */
:root[data-brand="sahseh"] {
  --brand: #2761FF; --brand-ink: #1b47c2; --brand-soft: #e9efff;
  --accent: #1b47c2; --accent-ink: #1b47c2; --accent-soft: #e9efff;
  --page: #F7F7F7; --surface: #ffffff; --surface-2: #f3f3f1;
  --border: rgba(11, 11, 11, 0.09); --border-strong: rgba(11, 11, 11, 0.16);
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781; --grid: #ebeae5;
  --good: #006300; --good-bg: #e6f4e6; --bad: #b42323; --bad-bg: #fbe9e9; --warn-bg: #fff6d6;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #4a3aa7; --series-7: #008300;
  --radius: 12px;
  --font: "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root[data-brand="sahseh"]:not([data-theme="light"]) {
    --brand: #5b86ff; --brand-ink: #8aa8ff; --brand-soft: #1b2440;
    --accent: #8aa8ff; --accent-ink: #8aa8ff; --accent-soft: #1b2440;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #202020;
    --border: rgba(255,255,255,0.09); --border-strong: rgba(255,255,255,0.18);
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781; --grid: #2c2c2a;
    --good: #0ca30c; --good-bg: #13301a; --bad: #e66767; --bad-bg: #3a1a1a; --warn-bg: #3a3212;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #9085e9; --series-7: #008300;
  }
}
:root[data-brand="sahseh"][data-theme="dark"] {
  --brand: #5b86ff; --brand-ink: #8aa8ff; --brand-soft: #1b2440;
  --accent: #8aa8ff; --accent-ink: #8aa8ff; --accent-soft: #1b2440;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #202020;
  --border: rgba(255,255,255,0.09); --border-strong: rgba(255,255,255,0.18);
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781; --grid: #2c2c2a;
  --good: #0ca30c; --good-bg: #13301a; --bad: #e66767; --bad-bg: #3a1a1a; --warn-bg: #3a3212;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #9085e9; --series-7: #008300;
}
:root[data-brand="sahseh"] h1, :root[data-brand="sahseh"] h2, :root[data-brand="sahseh"] h3 { text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
:root[data-brand="sahseh"] h1 { font-size: 22px; }
:root[data-brand="sahseh"] h2 { font-size: 16px; }
:root[data-brand="sahseh"] .topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
:root[data-brand="sahseh"] .page-head:has(h1) { border: 0; padding: 0; }
:root[data-brand="sahseh"] .card { box-shadow: 0 1px 2px rgba(11,11,11,0.04), 0 1px 1px rgba(11,11,11,0.03); }
:root[data-brand="sahseh"] .card-head { border-bottom: 0; padding-bottom: 0; }
:root[data-brand="sahseh"] .kpi, :root[data-brand="sahseh"] .store-head, :root[data-brand="sahseh"] dialog, :root[data-brand="sahseh"] .login { border-top: 1px solid var(--border); }
:root[data-brand="sahseh"] .kpi .label, :root[data-brand="sahseh"] th { text-transform: none; letter-spacing: 0; }
:root[data-brand="sahseh"] .nav a.active { color: var(--brand-ink); }
:root[data-brand="sahseh"] .nav a:hover { color: var(--brand-ink); }
:root[data-brand="sahseh"] .nav a.active { border-bottom-color: var(--brand); }
:root[data-brand="sahseh"] .seg button.on { background: var(--brand-soft); color: var(--brand-ink); }
:root[data-brand="sahseh"] .chip { border-radius: 99px; }
/* Sahseh word mark: the portal's original blue tile with the yellow dot */
.sahseh-word { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.sahseh-word.big { font-size: 22px; }
.sahseh-word .brand-mark { display: grid; background: #2761FF; }
.sahseh-word .brand-mark::after { background: #FDCD00; }
