/* ============================================================================
   Zireva Dduka — the ledger pass (3.0, Nov 2026)

   The direction, in one paragraph: this is the day-book of a duka and its
   Mobile Money counter. Surfaces are paper-warm neutral, text is ink, and the
   shop's palette survives as ONE accent (the pen mark). Figures are set in a
   mono so they sit in columns like a ledger. One radius scale, one type scale,
   one easing curve, and no decoration behind the numbers: no comb, no washes,
   no glows, no gradients, no pills for everything, no uppercase labels.

   Loaded after app.min.css, premium.css, workspace.css and dashboard.css, so
   it is the last word. It is deliberately one file: every screen inherits the
   tokens, and the component rules below are the vocabulary the whole app uses
   (btn, card, pill, table, tabs, alert, stat, topbar, tabbar, ask-fab).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens — one ramp for every surface, in every palette

   Doubled `:root` and `!important` on purpose: the old palette blocks later in
   app.css pin their own tokens with `!important` (2.120 "the day tokens are
   pinned after every legacy palette block"), and this layer has to be the last
   word on surfaces. The palette keeps `--accent` and `--brand-band`; everything
   else is paper.
   -------------------------------------------------------------------------- */

:root:root,
:root:root[data-palette="green"],
:root:root[data-palette="uganda"],
:root:root[data-palette="savannah"],
:root:root[data-palette="comb"] {
  color-scheme: light;
  --bg: #f7f4ee !important;
  --card: #fffdf9 !important;
  --surface-2: #f1ebe1 !important;
  --raised: #fffdf9 !important;
  --field-bg: #fffdf9 !important;
  --tabs-bg: transparent !important;

  --text: #1f1b16 !important;
  --text-2: #5e554a !important;
  --muted: #7b7266 !important;
  --heading: #1a2e26;
  --accent-bright: var(--accent);

  --line: rgba(31, 27, 22, .10) !important;
  --line-strong: rgba(31, 27, 22, .20) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 31, 27, 22;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow-lg: 0 1px 2px rgba(31, 27, 22, .05), 0 12px 32px -22px rgba(31, 27, 22, .28);
  --ring: 0 0 0 3px rgba(31, 27, 22, .12);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* The primary action is ink on paper, not a coloured slab. */
  --cta-from: #1f1b16 !important;
  --cta-to: #1f1b16 !important;
  --cta-hover-from: #332c24 !important;
  --cta-hover-to: #332c24 !important;
  --cta-border: #1f1b16 !important;
  --cta-ink: #fffdf9 !important;

  --fab-bg: #fffdf9 !important;
  --fab-ink: #1f1b16 !important;

  --nav-active-bg: transparent !important;
  --nav-active-ink: #fff !important;
  --tab-active-bg: transparent !important;
  --tab-active-ink: #1f1b16 !important;

  --selected-bg: #1f1b16 !important;
  --selected-ink: #fffdf9 !important;
  --chat-me-bg: #1f1b16 !important;
  --chat-me-ink: #fffdf9 !important;
  --chat-send-bg: #1f1b16 !important;
  --chat-send-ink: #fffdf9 !important;

  --dialog-head-from: #1f1b16 !important;
  --dialog-head-to: #1f1b16 !important;

  --ok-bg: #edf3ec !important;
  --ok-ink: #2c5b3c !important;
  --ok-border: #cfdfd1 !important;
  --warn-bg: #fbf0dc !important;
  --warn-ink: #7a4c0b !important;
  --warn-border: #e7d3ae !important;
  --err-bg: #fbecea !important;
  --err-ink: #8f2418 !important;
  --err-border: #e8c4be !important;
  --info-bg: #edf0f5 !important;
  --info-ink: #2b4a6e !important;
  --info-border: #cbd7e4 !important;

  /* Figures and meta sit in a mono, like a written column. */
}

:root:root[data-theme="dark"],
:root:root[data-palette="green"][data-theme="dark"],
:root:root[data-palette="uganda"][data-theme="dark"],
:root:root[data-palette="savannah"][data-theme="dark"],
:root:root[data-palette="comb"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513 !important;
  --card: #1c1a18 !important;
  --surface-2: #262421 !important;
  --raised: #20201d !important;
  --field-bg: #211f1c !important;
  --tabs-bg: transparent !important;

  --text: #efe9de !important;
  --text-2: #b7ad9e !important;
  --muted: #8e8577 !important;
  --heading: #f4efe4;
  --accent-bright: var(--accent);

  --line: rgba(239, 233, 222, .09) !important;
  --line-strong: rgba(239, 233, 222, .18) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 0, 0, 0;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --ring: 0 0 0 3px rgba(239, 233, 222, .16);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* On a dark sheet the primary action is the light of the paper itself. */
  --cta-from: #efe9de !important;
  --cta-to: #efe9de !important;
  --cta-hover-from: #fffdf7 !important;
  --cta-hover-to: #fffdf7 !important;
  --cta-border: #efe9de !important;
  --cta-ink: #1b1916 !important;

  --fab-bg: #1c1a18 !important;
  --fab-ink: #efe9de !important;

  --tab-active-ink: #efe9de !important;
  --selected-bg: #efe9de !important;
  --selected-ink: #1b1916 !important;
  --chat-me-bg: #efe9de !important;
  --chat-me-ink: #1b1916 !important;
  --chat-send-bg: #efe9de !important;
  --chat-send-ink: #1b1916 !important;

  --dialog-head-from: #1c1a18 !important;
  --dialog-head-to: #1c1a18 !important;

  --ok-bg: rgba(107, 176, 132, .12) !important;
  --ok-ink: #9ed3b1 !important;
  --ok-border: rgba(107, 176, 132, .28) !important;
  --warn-bg: rgba(214, 158, 68, .12) !important;
  --warn-ink: #e0bd82 !important;
  --warn-border: rgba(214, 158, 68, .30) !important;
  --err-bg: rgba(214, 106, 96, .12) !important;
  --err-ink: #eba79e !important;
  --err-border: rgba(214, 106, 96, .30) !important;
  --info-bg: rgba(120, 150, 190, .12) !important;
  --info-ink: #a9c2df !important;
  --info-border: rgba(120, 150, 190, .30) !important;
}

/* ----------------------------------------------------------------------------
   The palettes: each keeps its own paper, ink and signals.
   Classic green reads as the type spec asks — warm alabaster paper, deep forest
   headings, charcoal body, terracotta for a loss, sage for a gain, warm gold for
   the pen. The other three carry the same roles in their own key, so a shop that
   chose Uganda gold, Savannah Heritage or Amber Comb gets the same legibility
   without inheriting green's palette.

   Gold that is readable as text is --accent; the brighter --accent-bright is for
   marks and icons only (the Ask spark, a progress bar), where 3:1 is the rule
   for a graphic rather than 4.5:1 for words.
   -------------------------------------------------------------------------- */

/* ---- Classic green: alabaster paper, forest ink ---- */
:root:root[data-palette="green"]:not([data-theme="dark"]) {
  --bg: #f8f5f0 !important;
  --card: #fffdf9 !important;
  --surface-2: #f2ece3 !important;
  --text: #1a2e26 !important;
  --text-2: #46564d !important;
  --muted: #5e6b62 !important;
  --heading: #0f382b;
  --line: rgba(26, 46, 38, .12) !important;
  --line-strong: rgba(26, 46, 38, .22) !important;
  --ok-ink: #2e6f40 !important;
  --ok-bg: #edf4ec !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbeeea !important;
  --accent: #8a6a1f !important;
  --accent-2: #6f5416 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 106, 31, .10);
  --accent-line: rgba(138, 106, 31, .30);
  --on-accent: #fffdf9 !important;
}

/* ---- Uganda gold: clay paper, cocoa ink ---- */
:root:root[data-palette="uganda"]:not([data-theme="dark"]) {
  --bg: #f7f1e6 !important;
  --card: #fffaf1 !important;
  --surface-2: #f1e7d6 !important;
  --text: #2a1b12 !important;
  --text-2: #4f3c2c !important;
  --muted: #6f5a49 !important;
  --heading: #3d2417;
  --line: rgba(42, 27, 18, .13) !important;
  --line-strong: rgba(42, 27, 18, .24) !important;
  --ok-ink: #4f7a3a !important;
  --ok-bg: #eef3e8 !important;
  --err-ink: #a8442e !important;
  --err-bg: #fbede8 !important;
  --accent: #8a5a12 !important;
  --accent-2: #6e470e !important;
  --accent-bright: #c08a2e !important;
  --accent-tint: rgba(138, 90, 18, .10);
  --accent-line: rgba(138, 90, 18, .30);
  --on-accent: #fffaf1 !important;
}

/* ---- Savannah Heritage: porcelain with a plum cast ---- */
:root:root[data-palette="savannah"]:not([data-theme="dark"]) {
  --bg: #f8f3f5 !important;
  --card: #fffbfc !important;
  --surface-2: #f2e9ee !important;
  --text: #241a20 !important;
  --text-2: #4c3a45 !important;
  --muted: #6b5560 !important;
  --heading: #3d1b33;
  --line: rgba(36, 26, 32, .12) !important;
  --line-strong: rgba(36, 26, 32, .22) !important;
  --ok-ink: #356b57 !important;
  --ok-bg: #eaf3ef !important;
  --err-ink: #a8443f !important;
  --err-bg: #fbebea !important;
  --accent: #7a2456 !important;
  --accent-2: #5f1b43 !important;
  --accent-bright: #b06a94 !important;
  --accent-tint: rgba(122, 36, 86, .10);
  --accent-line: rgba(122, 36, 86, .30);
  --on-accent: #fffbfc !important;
}

/* ---- Amber Comb: honey paper, umber ink ---- */
:root:root[data-palette="comb"]:not([data-theme="dark"]) {
  --bg: #f8f2e6 !important;
  --card: #fffaf0 !important;
  --surface-2: #f2e7d2 !important;
  --text: #241a0e !important;
  --text-2: #4a3823 !important;
  --muted: #6f5a3f !important;
  --heading: #3a2410;
  --line: rgba(36, 26, 14, .12) !important;
  --line-strong: rgba(36, 26, 14, .22) !important;
  --ok-ink: #4a7a3a !important;
  --ok-bg: #eef3e6 !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbede9 !important;
  --accent: #8a5a00 !important;
  --accent-2: #6e4700 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 90, 0, .10);
  --accent-line: rgba(138, 90, 0, .30);
  --on-accent: #fffaf0 !important;
}

/* ---- the night faces: same roles, lit from the other side ---- */
:root:root[data-palette="green"][data-theme="dark"] {
  --heading: #f4efe4; --ok-ink: #7fc493 !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="uganda"][data-theme="dark"] {
  --heading: #f6efe3; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e0a458 !important; --accent-2: #c98a3c !important; --accent-bright: #e0a458 !important; --accent-tint: rgba(224, 164, 88, .12); --accent-line: rgba(224, 164, 88, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="savannah"][data-theme="dark"] {
  --heading: #f7eef3; --ok-ink: #7fc4ad !important; --err-ink: #e08a86 !important;
  --accent: #d98cb9 !important; --accent-2: #c4709f !important; --accent-bright: #d98cb9 !important; --accent-tint: rgba(217, 140, 185, .12); --accent-line: rgba(217, 140, 185, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="comb"][data-theme="dark"] {
  --heading: #f7f0e2; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}

/* The top band is the shop's sign, painted in the palette colour; the ledger
   underneath is paper. Keep the sign, drop its glow. */
:root { --brand-band: #123b2c; }
:root[data-palette="uganda"] { --brand-band: #241a13; }
:root[data-palette="savannah"] { --brand-band: #4e1248; }
:root[data-palette="comb"] { --brand-band: #3a1d0e; }

/* ----------------------------------------------------------------------------
   2. No decoration behind the numbers
   -------------------------------------------------------------------------- */

body::before,
body::after,
.comb-glow,
.comb-aura,
.aura-glow,
.login-ambient,
.login-orb,
.login-grid,
.login-trace,
.login-grain,
.login-veil,
.page-glow,
.pip {
  display: none !important;
}

/* The one backdrop the direction keeps: Amber Comb's living honeycomb, drawn by
   assets/js/hive-comb.js (a port of the reference HiveComb.kt). It is a canvas
   behind everything, only under the comb palette; the script keeps it still when
   the system asks for reduced motion. */
.hive-comb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: none;
  pointer-events: none;
}

body {
  background-image: none !important;
}

/* Loops that are not live data. */
.comb-breathe,
.comb-glow,
[class*="breathe"],
[class*="radar"],
.ex-status-orb,
.status-dot,
.subtle-breathing,
.animate-pulse,
.animate-ping {
  animation: none !important;
}

/* A gradient only survives as a whisper inside one neutral, never hue to hue.
   The surfaces below must be opaque: the comb palette paints a canvas behind
   the page, and a transparent card would let the honeycomb run through the
   figures. */
.btn-primary,
.btn-primary:hover,
.ask-fab,
.tabbar,
.avatar,
.avatar-sm,
.avatar-md,
.ex-cta,
.ex-status-open,
header.bot-head,
.offline-strip,
a.ask-fab,
.streak-pip,
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .report-head,
body .card,
body .stat {
  background-image: none !important;
}
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .card,
body .stat {
  background-color: var(--card) !important;
}

/* ----------------------------------------------------------------------------
   3. Type — few sizes, two weights, sentence case
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font);
  font-size: .97rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* The signed-in app is paper. The signed-out scene keeps its own painting. */
body:not(.plain) {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
}

h1, h2, h3, h4 {
  font-weight: 550;
  letter-spacing: -.012em;
  color: var(--text);
}

h1 { font-size: 1.5rem; line-height: 1.15; }
h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.3; }

b, strong { font-weight: 600; }

/* Labels are labels: sentence case, no tracking, no shouting. */
.stat .label,
.table thead th,
.tabs a,
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.eyebrow,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
.ex-sec-head h2,
.ex-more-title,
th {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.stat .label,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
th {
  font-weight: 500 !important;
  color: var(--muted);
}

/* A label is 12px, never 10. */
[class*="kicker"],
[class*="eyebrow"] { font-size: .76rem !important; }

/* Figures: one weight, tabular, in the mono column. */
.num,
.stat .value,
.money,
.ex-amount-num,
.ex-tile-value,
.ex-pair strong,
.ex-rank-fig strong,
.ex-staff-fig strong,
.ex-balance strong,
.ex-meta-item strong,
.fc-amount,
.fc-pct,
.report-head .fig,
td.num,
th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
}

/* Where a big figure carries the screen, it carries the accent. */
.ex-amount-num { color: var(--accent); }

/* ----------------------------------------------------------------------------
   4. Spacing, radius, depth
   -------------------------------------------------------------------------- */

.card {
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

a.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
a.card:active { transform: none; }

@media (min-width: 760px) {
  .card { padding: 24px; }
}

/* Nested radius: inner = outer − padding, never below 4. */
.card .card,
.card .tile,
.card .inner { border-radius: max(4px, calc(var(--radius) - 8px)); }

/* Everything is not a pill. Small things get 4 to 6, controls 8, cards 12. */
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.tabs a,
.ex-chip,
.ex-pill,
.ex-badge,
.ex-mini-pill,
.badge,
.chip,
.tag {
  border-radius: 6px !important;
}

/* ----------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons: one shape, ink fill for the primary, hairline for the rest. */
.btn {
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font: 500 .95rem/1.2 var(--font);
  box-shadow: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}

.btn:hover { background: var(--surface-2); border-color: var(--line-strong); box-shadow: none; }
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-primary:hover {
  background: var(--cta-from);
  border-color: var(--cta-border);
  color: var(--cta-ink);
  box-shadow: none;
}
.btn-primary:hover { background: var(--cta-hover-from); }
.btn-primary:active { transform: translateY(1px); }

.btn-danger { background: var(--card); border-color: var(--err-border); color: var(--err-ink); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err-ink); }

.btn-block { min-height: 52px; padding: .85rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-small { min-height: 36px; padding: .35rem .7rem; font-size: .85rem; border-radius: 6px; }

/* Alerts: a tinted sheet with one rule down the side, no shadow, no entrance. */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-left-width: 3px;
  box-shadow: none;
  animation: none;
}

/* Cards keep only a hairline. */
.card { border: 1px solid var(--line); background: var(--card); }

/* Tabs: a text row with an underline on the one you are in, not a row of pills. */
.tabs { gap: 20px; margin-bottom: 16px; border: 0; border-radius: 0; background: transparent; overflow-x: auto; }
.tabs a {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
}
.tabs a.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabs a:hover { color: var(--text); }

/* Tables: a hairline grid, sentence-case header, figures on the right. */
.table { font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  font-size: .8rem;
  color: var(--muted);
}
.table tbody tr:hover { background: var(--surface-2); }
.table thead th:first-child, .table thead th:last-child { border-radius: 0; }

/* Top bar: the shop's sign, solid — no glass here. The glass belongs to the bottom
   bar, where content meets a fixed edge as you scroll. */
.topbar {
  background: var(--brand-band) !important;
  background-image: none !important;
  color: #fff;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { border: 0; }
.nav a { color: rgba(255, 255, 255, .88); border-radius: 8px; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }

/* Bottom bar: paper, a hairline, docked to the edge like a tab bar, the active
   item marked with the pen. Every palette used to paint its own floating glass
   here — an inset pill with a shadow, a plum gradient in Savannah, a blur in
   every one of them, near-white labels on cream in Uganda — so the geometry,
   the fill, the labels and the marker are pinned for all four. */
:root { --card-glass: rgba(255, 253, 249, .72); }
:root[data-theme="dark"] { --card-glass: rgba(28, 26, 24, .88); }

:root:root .tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 56px;
  padding: .3rem .4rem calc(.35rem + env(safe-area-inset-bottom)) !important;
  border-radius: 0 !important;
  background: var(--card) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
/* The same glass as the top bar: the docked bar blurs what passes under it. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root:root .tabbar {
    background: var(--card-glass) !important;
    -webkit-backdrop-filter: saturate(170%) blur(22px) !important;
    backdrop-filter: saturate(170%) blur(22px) !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root:root .tabbar { background: var(--card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* The room the docked bar takes from the bottom of every screen. */
body.has-tabbar { --tabbar-h: calc(56px + env(safe-area-inset-bottom)); }

.tabbar a, .tabbar a:visited { color: var(--text-2) !important; font-weight: 500; }
.tabbar a.active, .tabbar a[aria-current="page"] { color: var(--text) !important; font-weight: 550; background: transparent !important; }
/* The palette blocks colour the bar's links with their own !important rules
   (Uganda and Savannah end up near-white on paper), so the labels are pinned
   one specificity step above them. */
:root:root .tabbar a,
:root:root .tabbar a:visited { color: var(--text-2) !important; }
:root:root .tabbar a.active,
:root:root .tabbar a[aria-current="page"] { color: var(--text) !important; }
.tabbar a .pip { background: transparent !important; box-shadow: none !important; border: 0 !important; transform: none !important; }
.tabbar a.active::after { display: none !important; }
.tabbar a.active::before,
.tabbar a[aria-current="page"]::before {
  content: "";
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Ask Zireva: a quiet paper chip. A circle on a phone, so it never sits on a figure. */
.ask-fab {
  background: var(--fab-bg);
  color: var(--fab-ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(31, 27, 22, .10);
  font-weight: 500;
  border-radius: 8px;
}
.ask-fab svg { color: var(--accent); }
.ask-fab:hover { background: var(--surface-2); }

/* Fields */
input, select, textarea, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  color: var(--text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* Links take the pen, and only the pen. */
a { color: inherit; }
.link, .pw .link { color: var(--accent); font-weight: 500; }

/* ----------------------------------------------------------------------------
   6. The owner's Home — the ledger itself
   -------------------------------------------------------------------------- */

/* Every app page gets a desk's width, not a phone's column on a laptop. */
body.dash-exec .wrap,
body.shop-home .wrap {
  max-width: 1160px;
  padding-left: 32px;
  padding-right: 32px;
}
@media (min-width: 1000px) {
  /* One vertical line runs from the brand mark down through every page. */
  body main.wrap.app-page {
    max-width: 1160px;
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (max-width: 720px) {
  body.dash-exec .wrap,
  body.shop-home .wrap { padding-left: 16px; padding-right: 16px; }
}

.exec-dash { padding-bottom: 16px; }

/* The sign over the counter: shop name, place, the day's state. */
.ex-head { margin-bottom: 20px; padding: 0; }
.ex-shop { font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 2px; }
.ex-sub { font-size: .85rem; color: var(--muted); }

/* Day state: a stamped word, not a glowing pill. */
.ex-status {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 10px;
  gap: 6px;
  box-shadow: none;
}
.ex-status-open { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-ink); }
.ex-status-orb { background: none; box-shadow: none; }
.ex-status-orb svg { width: 14px; height: 14px; }
.ex-status-radar, .ex-status-shine, .ex-status-rest { display: none; }
.ex-status-label { font-size: .78rem; font-weight: 500; }

/* The month's total: the one big written figure, on a ruled line. */
.fig-hero,
.ex-pulse {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 16px;
}
.ex-pulse-top { margin-bottom: 8px; gap: 4px 8px; align-items: center; flex-wrap: wrap; }
.ex-pulse-top .ex-eyebrow { min-width: 0; flex: 1 1 auto; }
.ex-pulse-top .ex-ghost { flex: none; margin-left: auto; }
.ex-eyebrow {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ex-eyebrow-soft { color: var(--muted); font-weight: 400; }
.ex-ghost { color: var(--accent); font-weight: 500; font-size: .85rem; }

.ex-amount { margin: 4px 0 0; align-items: baseline; gap: 10px; }
.ex-amount-unit {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ex-amount-num {
  font-family: var(--font);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ex-trend { margin-top: 8px; gap: 10px; }
.ex-trend-note { font-size: .82rem; color: var(--muted); }
.ex-delta { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; }
.ex-delta.is-good { color: var(--ok-ink); }
.ex-delta.is-bad { color: var(--err-ink); }

/* The arithmetic row, closed by the accountant's double rule: the figure above
   is the total, the three components below it. This is the signature, and it
   appears only where a figure is settled. */
.ex-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 3px double var(--line-strong);
  gap: 24px;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.ex-meta-k { color: var(--muted); }
.ex-meta-item strong { font-size: .88rem; color: var(--text); }
.ex-meta-dot { display: none; }
.ex-meta-item { gap: 6px; }

.ex-chip {
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 500;
  padding: 2px 8px;
}
.ex-chip-bad { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-border); }
.ex-chip-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.ex-chip-info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-border); }
.ex-chip-service { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* "Ask about this figure" becomes a quiet link with one pen mark. */
.ask-number { margin: 12px 0 16px; }
.ask-number a, .ask-number a:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ask-number a .ico { width: 14px; height: 14px; }
.ask-number a:hover { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------------------
   5b. Report figures (app/lib/Metric.php) — the same ledger, on every screen
   -------------------------------------------------------------------------- */

.fig-hero,
.fig-hero.is-pos,
.fig-hero.is-neg,
.fig-hero.is-zero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 20px;
}

.fig-hero .fig-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.fig-hero .fig-label .ico { width: 16px; height: 16px; color: var(--muted); }

.fig-hero-value,
.fig-hero.is-pos .fig-hero-value,
.fig-hero.is-neg .fig-hero-value {
  font-family: var(--font);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 6px;
}
.fig-hero.is-neg .fig-hero-value { color: var(--err-ink); }
.fig-unit {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.fig-note { font-size: .85rem; color: var(--muted); }
.fig-delta { font-family: var(--font-mono); font-size: .82rem; }
.fig-delta.is-good { color: var(--ok-ink); }
.fig-delta.is-bad { color: var(--err-ink); }

/* The strip of secondary figures: one ruled band, not a row of mini cards. */
.fig-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 4px 20px;
}
.fig-strip > * { border-top: 1px solid var(--line); padding: 14px 0; }
.fig-strip > *:first-child { border-top: 0; }
.fig-strip .fig-label, .fig-strip .k { font-size: .8rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.fig-strip .fig-value, .fig-strip strong { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* The context line above a screen: "Money · Tue 17 Nov". */
.ws-context { padding: 0 0 6px; }
.ws-context-k {
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ws-context-dot { display: none; }
.ws-context time { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }

/* Needs you: one folded row, the list inside. */
.ex-needs,
.ex-card,
.ex-health,
.ex-restock,
.ex-perf {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 12px;
}
.ex-needs summary { padding: 14px 16px; gap: 10px; }
.ex-needs-title { font-size: .95rem; font-weight: 550; }
.ex-needs-body { padding: 4px 16px 16px; }
.ex-need { padding: 12px 0; border-top: 1px solid var(--line); gap: 10px; }
.ex-need-btn { color: var(--accent); font-weight: 500; font-size: .82rem; }
.ex-need-dot { width: 6px; height: 6px; border-radius: 2px; }
.ex-need-bad .ex-need-dot { background: var(--err-ink); }
.ex-need-warn .ex-need-dot { background: var(--warn-ink); }
.ex-need-info .ex-need-dot { background: var(--info-ink); }
.ex-needs-sub { margin: 16px 0 4px; font-size: .78rem; color: var(--muted); }

/* The setup card is work to do, not a different material. */
.ex-setup {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: none;
}

/* On a phone the three components of the total stay on one line. */
@media (max-width: 520px) {
  .ex-meta { gap: 12px; font-size: .8rem; }
  .ex-meta-item { gap: 4px; }
  .ex-eyebrow { font-size: .8rem; }
  .ex-tile-sub { font-size: .78rem; }
}

/* The four drivers: numbers with a label, a change, and nothing else. */
.ex-grid { gap: 12px; margin-bottom: 12px; }
.ex-tile {
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 16px;
  gap: 4px;
}
.ex-tile:hover { border-color: var(--line-strong); }
.ex-tile-top { margin-bottom: 6px; }
.ex-tile-label { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ex-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--muted) !important;
}
.ex-ico.is-brand, .ex-ico.is-good, .ex-ico.is-warn, .ex-ico.is-bad { background: transparent !important; color: var(--muted) !important; }
.ex-ico .ico, .ex-ico svg { width: 16px; height: 16px; }
/* A tile figure is as wide as its card: it shrinks on a phone before it can reach
   the edge, and the unit sits on its own line there so the amount gets the whole
   width. A figure never breaks: "10,544,70 / 3" is not a number. */
.ex-tile-value {
  font-size: clamp(.95rem, 3.4vw, 1.35rem) !important;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.ex-tile-value .ex-unit {
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  margin-right: 5px;
}
@media (max-width: 520px) {
  .ex-tile-value .ex-unit { display: block; margin: 0 0 2px; }
  .ex-tile-value { font-size: clamp(.85rem, 4.2vw, 1.05rem) !important; }
}
.ex-tile-sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.ex-tile-sub.is-warn { color: var(--warn-ink); }
.ex-tile-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ex-tile-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-tile-badge { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.ex-bar { height: 3px; border-radius: 2px; }
.ex-bar::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
.ex-bar::-moz-progress-bar { background: var(--accent); border-radius: 2px; }
.ex-pair { gap: 4px; font-size: .82rem; }
.ex-pair-k { color: var(--muted); }
.ex-pair strong { color: var(--text); }

/* Shop health and the restock nudge: a line of text with one state word. */
.ex-row { padding: 14px 16px; }
.ex-row-label { font-size: .9rem; font-weight: 550; color: var(--text); letter-spacing: 0; text-transform: none; }
.ex-row-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ex-pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
}
.ex-pill-good { color: var(--ok-ink); border-color: var(--ok-border); background: var(--ok-bg); }
.ex-pill-warn { color: var(--warn-ink); border-color: var(--warn-border); background: var(--warn-bg); }
.ex-pill-bad { color: var(--err-ink); border-color: var(--err-border); background: var(--err-bg); }
.ex-pill-neutral { color: var(--muted); }
.ex-badge { border-radius: 4px; font-size: .74rem; font-weight: 500; padding: 1px 6px; }
.ex-badge.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ex-badge.is-good { background: var(--ok-bg); color: var(--ok-ink); }
.ex-history-dot { width: 5px; height: 5px; border-radius: 1px; }
.ex-mini-pill { border-radius: 4px; background: var(--surface-2); color: var(--muted); font-weight: 500; }

/* Best earners / on shift: two lists, one ruler between them. */
.ex-perf { padding: 20px; }
.ex-sec-head { margin-bottom: 8px; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: .95rem; font-weight: 550; letter-spacing: 0; }
.ex-sec-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-rank { margin: 0; }
.ex-rank-row { padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.ex-rank-row:last-child { border-bottom: 0; }
.ex-rank-num { width: 18px; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.ex-rank-name { font-size: .9rem; }
.ex-rank-fig strong { font-size: .9rem; color: var(--text); }
.ex-rank-fig small { font-size: .76rem; color: var(--muted); }
.ex-divider { height: 1px; background: var(--line-strong); margin: 16px 0; }
.ex-staff-row { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.ex-staff-row:last-child { border-bottom: 0; }
.ex-avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.ex-staff-name { font-size: .9rem; }
.ex-staff-sub { font-size: .78rem; color: var(--muted); }
.ex-staff-fig small { color: var(--muted); }

/* More: the tail of the page, opened on demand. */
.ex-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.ex-more summary { padding: 14px 16px; }
.ex-more-title { font-weight: 550; }
.ex-quick a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .88rem; background: transparent; }
.ex-quick a:hover { background: var(--surface-2); }
.ex-activity li, .ex-balance { font-size: .85rem; }
.ex-activity time { color: var(--muted); font-family: var(--font-mono); font-size: .76rem; }

/* On a wide screen this is a ledger, not a stretched phone: one column of
   facts, one rail for what needs the owner. */
@media (min-width: 1080px) {
  .exec-dash {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px 28px;
    align-items: start;
  }
  .ex-head, .ex-setup, .ex-more { grid-column: 1 / -1; }
  .fig-hero, .ex-pulse, .ex-grid, .ex-perf { grid-column: 1; }
  /* The rail is pinned beside the main column and flows on its own, so the
     left column never waits for it. */
  .ex-rail { grid-column: 2; grid-row: 3 / span 4; display: flex; flex-direction: column; gap: 12px; align-self: start; }
  .exec-dash > * { margin-bottom: 0; }
  .ex-rail > * { margin-bottom: 0; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Surfaces that used to be a gradient need a real fill, not a hole. */
.avatar, .avatar-sm, .avatar-md {
  background: var(--surface-2) !important;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.me-btn .avatar-sm { border-radius: 50%; }

.ex-cta {
  background: var(--cta-from);
  color: var(--cta-ink);
  border: 1px solid var(--cta-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ex-cta:hover { background: var(--cta-hover-from); }

/* Statement rows: a group heading is a quiet label, not a shout. */
tr.group td, tr.group th {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 18px;
  background: transparent;
}
.sub-head { font-size: .9rem; font-weight: 550; color: var(--text-2); letter-spacing: 0; }

@media (max-width: 520px) {
  /* On a phone the shop's name is the page title, so the chip in the header is noise. */
  .topbar .shop-name, .topbar .shop-switch { display: none; }
  .topbar-inner { gap: 6px; }
}

/* ----------------------------------------------------------------------------
   8. The Hub vocabulary — the header actions and lists of every screen
      (app/lib/Hub.php: earnings, days, watch, team, subscription, the counter)
   -------------------------------------------------------------------------- */

.hub-pills { gap: 8px; }
.hub-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px !important;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
}
.hub-pill:hover { background: var(--surface-2); border-color: var(--line-strong); }
.hub-pill .ico { width: 16px; height: 16px; color: var(--muted); }

.hub-hero-btn,
.hub-chip {
  border-radius: 12px !important;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
}
.hub-hero-btn:hover, .hub-chip:hover { border-color: var(--line-strong); background: var(--card); }

.hub-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.hub-row { padding: 14px 16px; border-top: 1px solid var(--line); }
.hub-row:first-child { border-top: 0; }
.hub-row:hover { background: var(--surface-2); }

/* Nothing to do is a quiet line; something to do keeps a sand rule down its side. */
.hub-list.is-todo { background: var(--card); border-color: var(--line); border-left: 3px solid var(--warn-ink); }
.hub-list.is-todo .hub-txt span, .hub-list.is-todo .hub-txt small { color: var(--muted); }

/* Icons are bare coloured glyphs, one hue per topic (the OnePlus Settings way):
   no tile, no circle, just the mark in its own colour on paper. The wash of tints
   is deep enough to read at 17 px and still hold 4.5:1 on the card. */
:root:root:root {
  --tone-green-ink: #1c7a4a !important;
  --tone-blue-ink: #2a63bd !important;
  --tone-yellow-ink: #96651a !important;
  --tone-rose-ink: #b3392c !important;
  --tone-violet-ink: #6a44c4 !important;
  --tone-teal-ink: #10756f !important;
  --tone-orange-ink: #b05a12 !important;
  --tone-slate-ink: #55635b !important;
}
:root:root:root:root[data-theme="dark"] {
  --tone-green-ink: #6fce9b !important;
  --tone-blue-ink: #7db0ff !important;
  --tone-yellow-ink: #e8c069 !important;
  --tone-rose-ink: #f09a8b !important;
  --tone-violet-ink: #b39bf5 !important;
  --tone-teal-ink: #6fd0c9 !important;
  --tone-orange-ink: #eda469 !important;
  --tone-slate-ink: #a9b6ae !important;
}

.hub-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--tone-slate-ink) !important;
}
.hub-ico .ico { width: 17px; height: 17px; }
.hub-ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-ico.lang-code { font-size: .68rem; font-weight: 700; letter-spacing: .02em; }

.hub-txt strong { font-size: .92rem; font-weight: 500; color: var(--text); }
.hub-txt span, .hub-txt small { font-size: .82rem; color: var(--muted); }
.hub-badge {
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  padding: 1px 6px;
}
.hub-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.hub-chev { color: var(--muted); }

/* The tab row never paints a box behind the active item. */
nav.tabs a, nav.tabs a.active, .tabs a, .tabs a.active {
  background: transparent !important;
  box-shadow: none !important;
}
nav.tabs a.active, .tabs a.active { border-bottom-color: var(--accent) !important; }

/* Sentence case for labels, wherever they live: the app learned "uppercase + tracking" in a
   hundred small places, and a label is a label. */
[class$="-k"],
[class$="-label"],
[class$="-kicker"],
[class$="-eyebrow"],
[class$="-cap"],
[class$="-head-k"],
.bal span,
.metric .k,
.stat .label,
.table thead th,
.day-badge,
.acc-k,
.legend-k {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
[class$="-k"],
[class$="-kicker"],
[class$="-eyebrow"],
.bal span,
.metric .k {
  font-weight: 500 !important;
}

/* "You are in shop mode" is a note, not a banner. */
.mode-bar {
  background: var(--card) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text);
  padding: 10px 16px;
  font-size: .85rem;
}
.mode-bar .btn { min-height: 32px; font-size: .82rem; }

/* The signed-out buttons (login and the three-step sign-up) share the app's one shape. */
.login-cta, .btn-enter, .signup-next, .login-continue { border-radius: 8px !important; }
.btn:disabled, .btn[disabled] {
  opacity: 1;
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

/* ----------------------------------------------------------------------------
   7. Chrome details that every screen shares
   -------------------------------------------------------------------------- */

/* "Ask Zireva" floats again — it is the app's one companion, and it stops having
   a meaning when it is filed among the header icons. It gets out of the way by
   itself: while the page is scrolling it fades almost to nothing, and it comes
   back when the scrolling stops (or on hover / focus, so it is never lost).
   On screen it is the one solid thing over the paper — ink on light, paper on
   dark, with a real shadow — because a paper capsule over paper cards simply
   disappeared. */
.ask-fab,
a.ask-fab {
  right: 12px;
  bottom: calc(var(--tabbar-h) + 12px);
  height: 44px;
  padding: 0 16px 0 13px;
  gap: 8px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 550;
  background: var(--cta-from) !important;
  background-image: none !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .18) !important;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .15s var(--ease), box-shadow .2s var(--ease);
}
.ask-fab svg { color: var(--accent-bright) !important; }
.ask-fab:hover,
a.ask-fab:hover {
  background: var(--cta-hover-from) !important;
  color: var(--cta-ink) !important;
  transform: translateY(-1px);
}
.ask-fab:active { transform: translateY(0); }
.ask-fab.is-away {
  opacity: .10;
  transform: scale(.96);
}
/* Something tappable is under it: it steps back, so the control below still reads. */
.ask-fab.is-blocking {
  opacity: .45;
  transform: scale(.98);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35) !important;
}
.ask-fab.is-away:hover,
.ask-fab.is-away:focus-visible {
  opacity: 1;
  transform: none;
}
.ask-fab .ask-fab-label { white-space: nowrap; }
main { padding-bottom: calc(var(--tabbar-h) + 72px); }

/* ----------------------------------------------------------------------------
   9. The Ask Zireva sheet
   The head used to be a dark gradient with white text; with the gradient gone the
   white title sat on paper (1.03:1 in light) and the header icons were white on
   white. The sheet now follows the ledger: paper, ink, hairline.
   -------------------------------------------------------------------------- */

.bot-panel {
  background: var(--card) !important;
  border: 1px solid var(--line);
  color: var(--text);
}
.bot-head,
header.bot-head {
  background: var(--card) !important;
  background-image: none !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.bot-title strong { color: var(--text) !important; font-weight: 600; }
.bot-title small, .bot-sub { color: var(--muted) !important; opacity: 1; }

.bot-x,
[data-bot-new],
[data-bot-list],
[data-bot-back] {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--text-2) !important;
  opacity: 1;
}
.bot-x:hover,
[data-bot-new]:hover,
[data-bot-list]:hover,
[data-bot-back]:hover { background: var(--surface-2) !important; color: var(--text) !important; }
.bot-x .ico, [data-bot-new] .ico, [data-bot-list] .ico, [data-bot-back] .ico { color: inherit; stroke: currentColor; }

/* Suggestions: a hairline tag with ink text, not gold on paper. */
.bot-chip {
  border: 1px solid var(--line-strong) !important;
  background: var(--card) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  font-weight: 500;
  padding: 8px 12px;
}
.bot-chip:hover { background: var(--surface-2) !important; border-color: var(--text-2) !important; }

.bot-bubble { background: var(--surface-2); color: var(--text); }
.bot-msg-me .bot-bubble { background: var(--chat-me-bg); color: var(--chat-me-ink); }
.bot-meta { color: var(--muted); }
.bot-note { color: var(--text-2) !important; }

.bot-input { background: var(--card); border-top: 1px solid var(--line); }
[data-bot-text] {
  background: var(--field-bg) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}
[data-bot-text]::placeholder { color: var(--muted); }

.bot-mic {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text-2) !important;
}
.bot-mic .ico { color: inherit; }
.bot-mic.is-listening { background: var(--err-ink) !important; border-color: var(--err-ink) !important; color: #fff !important; }
[data-bot-send] {
  background: var(--cta-from) !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
}
[data-bot-send] .ico { color: inherit; }
.bot-act { color: var(--accent); font-weight: 500; }

@media (min-width: 900px) {
  .ask-fab {
    right: 24px;
    bottom: 24px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: .85rem;
  }
  .ask-fab svg { width: 16px; height: 16px; }
}

/* One easing curve, two durations. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* One entrance on load, nothing flying in from the sides. */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-in, .page-enter { animation: page-in .3s var(--ease) both; }

/* ----------------------------------------------------------------------------
   10. Two faces: a brand face and a data face

   Plus Jakarta Sans carries the words that give the app its character: the shop's
   name, the screen and card titles, the buttons, the brand lockup. Inter carries
   everything that has to stay sharp in a dense table — body, meta, timestamps and
   every figure, tabular and unbroken.

   Weights: 700 titles · 800 the primary metric · 600 card titles and buttons ·
   500 labels · 400 body. Sizes are px, as the type spec reads.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-brand: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-data: var(--font);
  --font-display: var(--font-brand);
  --font-mono: var(--font);        /* figures stay in the data face, never a third family */
}

/* ---- the brand face ------------------------------------------------------ */

h1, h2, h3,
.ex-shop,
.report-head h1,
.ex-sec-head h2, .ex-sec-head h3,
.ex-eyebrow, .ex-tile-label, .hub-label,
.inv-empty-title,
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong, .ex-need-txt,
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta, .inv-empty-quiet,
.ex-tile-link, .ex-sec-link, .ask-number a,
.bot-title strong,
.brand .lock b, .brand .lock small, .brand-lockup-word {
  font-family: var(--font-brand);
}

/* The app's own screens (Money, Stock, Profit, Settings) set their headings on the
   page wrapper, one step above a bare h1 — matched here so the brand scale wins. */
.app-page > h1:first-of-type,
.app-page > .report-head h1,
.app-page > .hero h1,
.app-page > .page-head h1,
.app-page h1, .report-head h1, .page-head h1, main h1 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
.app-page .card h2, .app-page h2, .card h2, .report-head h2 { font-family: var(--font-brand); font-size: 16px; font-weight: 600; letter-spacing: -.008em; color: var(--heading); }
.app-page .card h3, .app-page h3, .card h3, .report-head h3 { font-family: var(--font-brand); font-size: 15px; font-weight: 600; letter-spacing: -.006em; color: var(--heading); }

/* The sign over the counter: 20px / 700 / 1.2 */
.ex-shop,
h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
h2 { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; color: var(--heading); }
h3 { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.006em; color: var(--heading); }

/* The primary metric: 28px / 800 / -0.02em, tabular. */
.fig-hero-value,
.ex-amount-num {
  font-family: var(--font-brand);
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.06;
  letter-spacing: -.02em !important;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 700px) {
  .fig-hero-value, .ex-amount-num { font-size: 32px !important; }
}

/* Card titles and section heads: 14–16px / 600. */
.ex-eyebrow { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.005em !important; }
.ex-eyebrow .ex-sep { margin: 0 .3em; }
.ex-tile-label { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.004em !important; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: 15px !important; font-weight: 600 !important; }
.inv-empty-title { font-size: 17px !important; font-weight: 700 !important; }
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong { font-weight: 600 !important; }

/* Buttons: 600, 14px. */
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta { font-weight: 600 !important; }
.btn { font-size: 14px; }
.btn-small { font-size: 13px; }
.hub-pill { font-size: 13px !important; }

/* ---- the data face ------------------------------------------------------- */

.ex-tile-value, .ex-pair strong, .ex-meta-item strong, .ex-rank-fig strong,
.ex-staff-fig strong, .ex-balance strong, .stat .value,
.num, .money, .fc-amount, .fc-pct, td.num, th.num {
  font-family: var(--font-data);
}
/* Every figure, in whichever face it sits, is tabular and never breaks. */
.num, .money, .stat .value, .ex-amount-num, .ex-tile-value, .ex-pair strong,
.ex-meta-item strong, .ex-rank-fig strong, .ex-staff-fig strong, .ex-balance strong,
.fig-hero-value, .fig-num, .fc-amount, .fc-pct, td.num, th.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ex-tile-value { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
.ex-pair strong { font-size: 14px; font-weight: 600 !important; }
.ex-meta-item strong { font-size: 13px; font-weight: 600 !important; }
.ex-rank-fig strong { font-size: 14px !important; font-weight: 700 !important; }
.ex-rank-fig small, .ex-staff-fig small { font-size: 12px; }

/* Body, meta and timestamps: 13px, 400–500. */
.ex-tile-sub, .ex-row-sub, .ex-meta, .ex-meta-k, .ex-tile-badge, .ex-needs-sub,
.ex-activity li, .inv-empty-copy, .hub-txt span, .ex-rank-name, .ex-staff-name,
.ex-tile-link, .ex-sec-link, .ask-number a {
  font-size: 13px;
}
.ex-tile-sub, .ex-row-sub, .ex-meta-k, .ex-meta, .ex-activity li { font-weight: 400; }
.ex-tile-link, .ex-sec-link, .ex-rank-name, .ex-staff-name { font-weight: 500; }

/* Small print: chips, pills, badges, status. */
.pill, .ex-pill, .ex-badge, .ex-chip, .ex-status-label, .ex-mini-pill,
.ex-tile-badge, .ex-staff-sub, .ex-needs-sub { font-size: 12px !important; }

/* A figure never wraps; at 320 px the statement gives it a smaller size instead. */
@media (max-width: 400px) {
  .table td.num, .table th.num, .table tr.total td, .table tr.total th { font-size: .82rem !important; }
}

/* ----------------------------------------------------------------------------
   11. The empty state of a list (invoices, quotations, unpaid, delivery and
   credit notes): what the list is for, what it will hold, and the one action
   that starts it. A panel, not a sentence with an icon.
   -------------------------------------------------------------------------- */

.inv-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: none;
}
.inv-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.inv-empty-ico .ico { width: 18px; height: 18px; }
.inv-empty-title {
  grid-column: 2;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.inv-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 52ch;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.inv-empty-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.inv-empty-cta {
  min-height: 44px;
  padding: 0 18px;
  gap: 6px;
  font-size: .92rem;
}
.inv-empty-cta .ico { width: 15px; height: 15px; }
.inv-empty-quiet {
  font-size: .86rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.inv-empty-quiet:hover { color: var(--text); border-bottom-color: var(--text-2); }

@media (max-width: 480px) {
  .inv-empty { padding: 20px; }
  .inv-empty-actions { grid-column: 1 / -1; }
}

/* A row header keeps its parts on one line: the label gives way, the pill and the
   chevron never drop to a second row. */
.ex-row-head { flex-wrap: nowrap; min-width: 0; }
.ex-row-head .ex-row-label { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .ex-row-head .ex-pill { font-size: 11px !important; padding: 1px 6px; } }
.ex-row-head .ex-ico, .ex-row-head .ex-chev, .ex-row-head .ex-pill, .ex-row-head .ex-row-sub { flex: none; }

/* ----------------------------------------------------------------------------
   12. The last three narrow-screen spills
   Three older components assumed a short English label. On a 320 px phone with a
   long translation they hid or pushed out text; they wrap now.
   -------------------------------------------------------------------------- */

/* The sign-up business picker: two lines are better than an ellipsis. */
.pk-sel {
  white-space: normal !important;
  height: auto !important;
  min-height: 48px;
  line-height: 1.3;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 360px) {
  /* System / Light / Dark: three words in a pill need less side padding. */
  .mode-switch .mode-switch-opt { padding-left: 8px; padding-right: 8px; font-size: .74rem; }
  .mode-switch { gap: 2px; }
  /* The phone-in wizard's primary button: 2 px of padding was pushing it out. */
  .phone-wizard-nav .btn-block { padding-left: .6rem; padding-right: .6rem; font-size: .95rem; }
}

/* The wizard's primary button can never be wider than its row. */
.phone-wizard-nav .btn-block { box-sizing: border-box; min-width: 0; max-width: 100%; }
.phone-wizard-nav .btn-block > * { min-width: 0; }

@media (max-width: 340px) {
  .mode-switch .mode-switch-opt { padding-left: 6px; padding-right: 6px; font-size: .7rem; letter-spacing: 0; }
}
.phone-wizard-nav .btn-block { padding-left: 14px !important; padding-right: 14px !important; }

/* ----------------------------------------------------------------------------
   13. The manager approval gate
   app.css made this one flex row: the sentence and the form split the width 133/133
   on a phone, which left the PIN field 37 px wide — you could tap it, type, and see
   nothing. The words now take the row and the field gets a real width.
   -------------------------------------------------------------------------- */

.manager-gate {
  display: block;
  padding: 16px !important;
  margin: 0 0 12px;
}
.manager-gate > div { display: block; min-width: 0; }
.manager-gate strong { display: block; font-size: 1rem; }
.manager-gate p { margin: 4px 0 0; max-width: 52ch; }

/* A grid row, not a flex row: the field takes what is left and the button never
   drops under it, whatever the input's own width rule says. */
.manager-gate .manager-gate-form, form.manager-gate-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}
.manager-gate-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  letter-spacing: .12em;
}
.manager-gate-form .btn { min-height: 44px; justify-self: end; white-space: nowrap; }

/* The approved strip keeps its row: tick, sentence, Lock. */
.manager-gate.is-open { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manager-gate.is-open > div { flex: 1 1 200px; }
.manager-gate.is-open .inline-form { flex: 0 0 auto; }

/* Counting by notes: the label sat beside the box, so at 320 px the box was 26 px
   wide — two digits and a caret. The label goes above the box on a phone and the
   box takes the whole cell. */
@media (max-width: 480px) {
  .denom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: stretch; }
  .denom span { min-width: 0; text-align: left; font-size: .8rem; }
  .denom input { width: 100%; min-width: 0; }
}

/* ----------------------------------------------------------------------------
   14. The staff dashboard, three micro-adjustments
   -------------------------------------------------------------------------- */

/* 1. The greeting pill floats: an accent hairline instead of the grey rule, a
   hairline of light along the top edge, and a shadow that only reaches the card
   under it. */
.hero-greeting {
  border: 1px solid var(--accent-line, rgba(138, 106, 31, .30));
  background: var(--brand-tint);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 1px 2px rgba(16, 24, 20, .05),
    0 8px 20px -14px rgba(16, 24, 20, .45);
}
[data-theme="dark"] .hero-greeting {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(0, 0, 0, .35),
    0 10px 24px -16px #000;
}

/* 2. The To do counter wears the palette, not a system blue. A deep green tint, not
   the bronze one: "tasks" and "floats" are already amber, and two warm chips side
   by side read as the same thing. Green says routine work, amber says look at this. */
:root:root .ex-chip-info {
  background: var(--ok-bg, #edf4ec) !important;
  border-color: rgba(46, 111, 64, .24) !important;
  color: var(--ok-ink, #2e6f40) !important;
}
[data-theme="dark"] :root:root .ex-chip-info,
:root:root[data-theme="dark"] .ex-chip-info {
  border-color: rgba(127, 196, 147, .28) !important;
}

/* The quiet CTA beside the primary one in the month card was cream on cream — 1:1,
   a button you cannot read. It is a paper button with ink text again. */
.exec-dash .shop-reward a.ex-cta-quiet,
.exec-dash .shop-reward a.ex-cta-quiet:hover,
.shop-pulse a.ex-cta-quiet,
.shop-pulse a.ex-cta-quiet:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

/* 3. The progress meta reads in two beats: what is left of the target, then when
   the month ends. The timeline no longer rides on the same line as the money. */
body.shop-home .shop-reward-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.4;
}
body.shop-home .shop-reward-meta span:last-child {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: .74rem;
}
body.shop-home .shop-reward-meta span:last-child::before { content: none; }
body.shop-home .shop-reward-meta span:not(:first-child)::before { content: "·"; margin-right: .4rem; color: var(--line-strong); }

/* ----------------------------------------------------------------------------
   15. The negative tone, softened into the warm palette
   A deficit still has to read as a deficit, so the tone stays terracotta — but a
   muted one (burnt umber on sand) instead of the system-alert red that fought the
   cream and bronze. One set of values for every palette, day and night.
   -------------------------------------------------------------------------- */

:root:root:root:root:root {
  --danger: #9a4f3b !important;
  --danger-ink: #8a4426 !important;
  --danger-border: #e3c3ab !important;
  --err-ink: #9a4f3b !important;
  --err-bg: #f7e6d9 !important;
  --err-border: #e3c3ab !important;
  --neg-bg: #f8ece2 !important;
  --neg-border: #e8cdb8 !important;
}

:root:root:root:root:root[data-theme="dark"] {
  --danger: #e59c84 !important;
  --danger-ink: #f0b9a2 !important;
  --danger-border: rgba(224, 150, 120, .30) !important;
  --err-ink: #e59c84 !important;
  --err-bg: rgba(196, 120, 95, .14) !important;
  --err-border: rgba(224, 150, 120, .30) !important;
  --neg-bg: rgba(196, 120, 95, .10) !important;
  --neg-border: rgba(224, 150, 120, .26) !important;
}

/* The urgent chip is the same terracotta now, one step stronger than "to do" so
   the order still reads: urgent, to do, info, services. */
:root:root .ex-chip-bad {
  background: var(--err-bg) !important;
  color: var(--danger-ink) !important;
  border-color: var(--err-border) !important;
}

/* 3. The Ask capsule sat 12px above the docked bar and crowded it; it keeps its
   distance from the bar and from the card it floats over. */
.ask-fab,
a.ask-fab {
  bottom: calc(var(--tabbar-h) + 20px);
  right: 14px;
}

/* The capsule measured 140px while its label needed 144: the words were running
   past the right edge. It sizes to its content now, and when a control sits under
   it, it steps back to 80% instead of fading to grey. */
.ask-fab,
a.ask-fab {
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 28px);
  padding: 0 18px 0 14px;
  white-space: nowrap;
}
.ask-fab .ask-fab-label { flex: 0 0 auto; }
.ask-fab.is-blocking { opacity: .82 !important; }

/* A money row keeps its figure whole: the description gives way and wraps, the
   amount never leaves the row. */
.entry-main { min-width: 0; }
.entry-main > .what, .entry-main > .entry-text { min-width: 0; overflow-wrap: anywhere; }
.entry-main > .amt { flex: 0 0 auto; margin-left: auto; }

/* A tool pill carries its glyph in the same eight hues as the list rows, so the
   Stock screen's tools read as one family with the rest of the app. */
.hub-pill .ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-pill .ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-pill .ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-pill .ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-pill .ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-pill .ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-pill .ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-pill .ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-pill .ico { width: 17px; height: 17px; }

/* ----------------------------------------------------------------------------
   16. Offline looks like online
   The old full-width band under the header made the app look like a different,
   lesser app the moment the radio dropped. It is gone. Being offline now shows
   as one quiet detail: a small amber dot on the corner of the shop's mark, with
   nothing moving and no colour changing anywhere else. The queued-entry lines
   (offline.js) still appear where they are useful — above the form, not across
   the whole screen.
   -------------------------------------------------------------------------- */

.offline-strip { display: none !important; }

.brand { position: relative; }
.brand .brand-mark { position: relative; }
body.is-offline .brand .brand-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--brand-band);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------------------
   17. The offline screen, wearing the app's clothes
   Paper, one card, the same rows and chevrons as the hub lists, grouped the way
   the app groups its screens. It should look like a screen of the app that has
   nothing to add, not a browser error page with a list of buttons.
   -------------------------------------------------------------------------- */

.offline-wrap { max-width: 520px; margin: 0 auto; padding: 18px 14px 44px; }
.offline-brand { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.offline-brand img { border-radius: 10px; }
.offline-brand .brand.big { font-size: 1.05rem; color: var(--text); }
.offline-brand .brand.big span { color: var(--accent); }
.offline-group { margin: 18px 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.offline-card {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 30px -24px rgba(16, 24, 20, .45);
}
.offline-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 14px;
}
.offline-mark .ico { width: 26px; height: 26px; }
.offline-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--heading); }
.offline-lead { margin: 0 auto 18px; max-width: 38ch; font-size: 14px; line-height: 1.55; color: var(--muted); }

.offline-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.offline-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.offline-status.is-on .dot { background: var(--ok-ink); }
.offline-status.is-off .dot { background: var(--err-ink); }

.offline-retry {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--cta-border);
  background: var(--cta-from);
  color: var(--cta-ink);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
}
.offline-retry:active { transform: scale(.99); }

.offline-queue { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }

.offline-saved { margin-top: 20px; }
.offline-sub { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--heading); }
.offline-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.offline-saved .hub-list { margin: 0 0 14px; }
.offline-saved .hub-row { text-decoration: none; color: inherit; }
.offline-saved .hub-chev { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* The offline panel on the shop's Home keeps the app's rows, with the card frame
   dropped so it does not look like a box inside a box. */
.offline-panel .hub-sec { margin: 12px 0 0; }
.offline-panel .hub-label { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offline-panel .hub-list { margin: 0; border: 0; background: transparent; }
.offline-panel .hub-row { padding: 10px 0; }
.offline-panel .hub-row:first-child { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------------------
   18. Shop mode, said quietly
   An owner looking at the staff screen used to get a full card above the page —
   a second header for a page that already has one. The mode is a fact about the
   phone, not a section of the screen, so it lives in the bar: a small pill with
   the palette's dot, tappable, that returns to the owner view. The page below
   starts where it always starts.
   -------------------------------------------------------------------------- */

.topbar-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.topbar-mode:hover { background: rgba(255, 255, 255, .24); }
.topbar-mode:active { transform: scale(.98); }
.topbar-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
/* The swap glyph is what makes it a control rather than a badge: it says "this
   takes you to the other side", and the dot says which side you are on. */
.topbar-mode-swap { width: 12px; height: 12px; color: rgba(255, 255, 255, .78); flex: none; }

/* You cannot miss the mode. The pill is ringed in the palette's gold and carries a
   soft glow (a pseudo-element, so the glow has its own opacity instead of a hard
   shadow), and the sign under it runs one gold hairline — the same hairline the
   paper uses for a settled total. Nothing else on the screen changes. */
.shop-mode .topbar-mode {
  position: relative;
  margin-left: 4px;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.shop-mode .topbar-mode::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 14px 2px var(--accent-bright);
  opacity: .38;
}
.shop-mode .topbar-mode .topbar-mode-swap { color: var(--accent-bright); }
.shop-mode .topbar-mode-txt { color: #fff; letter-spacing: .09em; }
.shop-mode .topbar { border-bottom-color: var(--accent-bright) !important; }
@media (max-width: 380px) {
  .topbar-mode { padding: 0 8px; font-size: 9px; letter-spacing: .06em; }
}

/* ----------------------------------------------------------------------------
   19. The story of the day, and what you did today
   Two cards only: one for the owner on the day report, one for the person
   about to count. Short labelled lines, figures in the mono rhythm, no walls of
   prose — the numbers do the talking and each line answers one question.
   -------------------------------------------------------------------------- */

.day-story { padding: 16px !important; margin: 0 0 12px; }
.day-story .recon-top { margin-bottom: 2px; }
.story-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.story-lines li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.story-k { font-size: 12px; font-weight: 500; color: var(--muted); }
.story-v { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.story-v strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.story-v a { color: var(--accent-2); }
.story-foot { margin: 12px 0 0; }
@media (max-width: 400px) {
  .story-lines li { grid-template-columns: 1fr; gap: 1px; }
  .story-k { font-size: 11px; letter-spacing: .02em; }
}

.pre-close { padding: 16px !important; margin: 0 0 12px; }
.pre-close .recon-top { margin-bottom: 2px; }
.pre-close-day { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pre-close-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pre-close-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.pk { color: var(--muted); font-size: 13px; }
.pv { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.pv strong { font-weight: 600; }
.pc-reason { display: block; font-size: 12px; color: var(--muted); }
.pre-close-note { margin: 12px 0 0; }

* ============================================================================
   Zireva Dduka — the ledger pass (3.0, Nov 2026)

   The direction, in one paragraph: this is the day-book of a duka and its
   Mobile Money counter. Surfaces are paper-warm neutral, text is ink, and the
   shop's palette survives as ONE accent (the pen mark). Figures are set in a
   mono so they sit in columns like a ledger. One radius scale, one type scale,
   one easing curve, and no decoration behind the numbers: no comb, no washes,
   no glows, no gradients, no pills for everything, no uppercase labels.

   Loaded after app.min.css, premium.css, workspace.css and dashboard.css, so
   it is the last word. It is deliberately one file: every screen inherits the
   tokens, and the component rules below are the vocabulary the whole app uses
   (btn, card, pill, table, tabs, alert, stat, topbar, tabbar, ask-fab).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens — one ramp for every surface, in every palette

   Doubled `:root` and `!important` on purpose: the old palette blocks later in
   app.css pin their own tokens with `!important` (2.120 "the day tokens are
   pinned after every legacy palette block"), and this layer has to be the last
   word on surfaces. The palette keeps `--accent` and `--brand-band`; everything
   else is paper.
   -------------------------------------------------------------------------- */

:root:root,
:root:root[data-palette="green"],
:root:root[data-palette="uganda"],
:root:root[data-palette="savannah"],
:root:root[data-palette="comb"] {
  color-scheme: light;
  --bg: #f7f4ee !important;
  --card: #fffdf9 !important;
  --surface-2: #f1ebe1 !important;
  --raised: #fffdf9 !important;
  --field-bg: #fffdf9 !important;
  --tabs-bg: transparent !important;

  --text: #1f1b16 !important;
  --text-2: #5e554a !important;
  --muted: #7b7266 !important;
  --heading: #1a2e26;
  --accent-bright: var(--accent);

  --line: rgba(31, 27, 22, .10) !important;
  --line-strong: rgba(31, 27, 22, .20) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 31, 27, 22;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow-lg: 0 1px 2px rgba(31, 27, 22, .05), 0 12px 32px -22px rgba(31, 27, 22, .28);
  --ring: 0 0 0 3px rgba(31, 27, 22, .12);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* The primary action is ink on paper, not a coloured slab. */
  --cta-from: #1f1b16 !important;
  --cta-to: #1f1b16 !important;
  --cta-hover-from: #332c24 !important;
  --cta-hover-to: #332c24 !important;
  --cta-border: #1f1b16 !important;
  --cta-ink: #fffdf9 !important;

  --fab-bg: #fffdf9 !important;
  --fab-ink: #1f1b16 !important;

  --nav-active-bg: transparent !important;
  --nav-active-ink: #fff !important;
  --tab-active-bg: transparent !important;
  --tab-active-ink: #1f1b16 !important;

  --selected-bg: #1f1b16 !important;
  --selected-ink: #fffdf9 !important;
  --chat-me-bg: #1f1b16 !important;
  --chat-me-ink: #fffdf9 !important;
  --chat-send-bg: #1f1b16 !important;
  --chat-send-ink: #fffdf9 !important;

  --dialog-head-from: #1f1b16 !important;
  --dialog-head-to: #1f1b16 !important;

  --ok-bg: #edf3ec !important;
  --ok-ink: #2c5b3c !important;
  --ok-border: #cfdfd1 !important;
  --warn-bg: #fbf0dc !important;
  --warn-ink: #7a4c0b !important;
  --warn-border: #e7d3ae !important;
  --err-bg: #fbecea !important;
  --err-ink: #8f2418 !important;
  --err-border: #e8c4be !important;
  --info-bg: #edf0f5 !important;
  --info-ink: #2b4a6e !important;
  --info-border: #cbd7e4 !important;

  /* Figures and meta sit in a mono, like a written column. */
}

:root:root[data-theme="dark"],
:root:root[data-palette="green"][data-theme="dark"],
:root:root[data-palette="uganda"][data-theme="dark"],
:root:root[data-palette="savannah"][data-theme="dark"],
:root:root[data-palette="comb"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513 !important;
  --card: #1c1a18 !important;
  --surface-2: #262421 !important;
  --raised: #20201d !important;
  --field-bg: #211f1c !important;
  --tabs-bg: transparent !important;

  --text: #efe9de !important;
  --text-2: #b7ad9e !important;
  --muted: #8e8577 !important;
  --heading: #f4efe4;
  --accent-bright: var(--accent);

  --line: rgba(239, 233, 222, .09) !important;
  --line-strong: rgba(239, 233, 222, .18) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 0, 0, 0;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --ring: 0 0 0 3px rgba(239, 233, 222, .16);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* On a dark sheet the primary action is the light of the paper itself. */
  --cta-from: #efe9de !important;
  --cta-to: #efe9de !important;
  --cta-hover-from: #fffdf7 !important;
  --cta-hover-to: #fffdf7 !important;
  --cta-border: #efe9de !important;
  --cta-ink: #1b1916 !important;

  --fab-bg: #1c1a18 !important;
  --fab-ink: #efe9de !important;

  --tab-active-ink: #efe9de !important;
  --selected-bg: #efe9de !important;
  --selected-ink: #1b1916 !important;
  --chat-me-bg: #efe9de !important;
  --chat-me-ink: #1b1916 !important;
  --chat-send-bg: #efe9de !important;
  --chat-send-ink: #1b1916 !important;

  --dialog-head-from: #1c1a18 !important;
  --dialog-head-to: #1c1a18 !important;

  --ok-bg: rgba(107, 176, 132, .12) !important;
  --ok-ink: #9ed3b1 !important;
  --ok-border: rgba(107, 176, 132, .28) !important;
  --warn-bg: rgba(214, 158, 68, .12) !important;
  --warn-ink: #e0bd82 !important;
  --warn-border: rgba(214, 158, 68, .30) !important;
  --err-bg: rgba(214, 106, 96, .12) !important;
  --err-ink: #eba79e !important;
  --err-border: rgba(214, 106, 96, .30) !important;
  --info-bg: rgba(120, 150, 190, .12) !important;
  --info-ink: #a9c2df !important;
  --info-border: rgba(120, 150, 190, .30) !important;
}

/* ----------------------------------------------------------------------------
   The palettes: each keeps its own paper, ink and signals.
   Classic green reads as the type spec asks — warm alabaster paper, deep forest
   headings, charcoal body, terracotta for a loss, sage for a gain, warm gold for
   the pen. The other three carry the same roles in their own key, so a shop that
   chose Uganda gold, Savannah Heritage or Amber Comb gets the same legibility
   without inheriting green's palette.

   Gold that is readable as text is --accent; the brighter --accent-bright is for
   marks and icons only (the Ask spark, a progress bar), where 3:1 is the rule
   for a graphic rather than 4.5:1 for words.
   -------------------------------------------------------------------------- */

/* ---- Classic green: alabaster paper, forest ink ---- */
:root:root[data-palette="green"]:not([data-theme="dark"]) {
  --bg: #f8f5f0 !important;
  --card: #fffdf9 !important;
  --surface-2: #f2ece3 !important;
  --text: #1a2e26 !important;
  --text-2: #46564d !important;
  --muted: #5e6b62 !important;
  --heading: #0f382b;
  --line: rgba(26, 46, 38, .12) !important;
  --line-strong: rgba(26, 46, 38, .22) !important;
  --ok-ink: #2e6f40 !important;
  --ok-bg: #edf4ec !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbeeea !important;
  --accent: #8a6a1f !important;
  --accent-2: #6f5416 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 106, 31, .10);
  --accent-line: rgba(138, 106, 31, .30);
  --on-accent: #fffdf9 !important;
}

/* ---- Uganda gold: clay paper, cocoa ink ---- */
:root:root[data-palette="uganda"]:not([data-theme="dark"]) {
  --bg: #f7f1e6 !important;
  --card: #fffaf1 !important;
  --surface-2: #f1e7d6 !important;
  --text: #2a1b12 !important;
  --text-2: #4f3c2c !important;
  --muted: #6f5a49 !important;
  --heading: #3d2417;
  --line: rgba(42, 27, 18, .13) !important;
  --line-strong: rgba(42, 27, 18, .24) !important;
  --ok-ink: #4f7a3a !important;
  --ok-bg: #eef3e8 !important;
  --err-ink: #a8442e !important;
  --err-bg: #fbede8 !important;
  --accent: #8a5a12 !important;
  --accent-2: #6e470e !important;
  --accent-bright: #c08a2e !important;
  --accent-tint: rgba(138, 90, 18, .10);
  --accent-line: rgba(138, 90, 18, .30);
  --on-accent: #fffaf1 !important;
}

/* ---- Savannah Heritage: porcelain with a plum cast ---- */
:root:root[data-palette="savannah"]:not([data-theme="dark"]) {
  --bg: #f8f3f5 !important;
  --card: #fffbfc !important;
  --surface-2: #f2e9ee !important;
  --text: #241a20 !important;
  --text-2: #4c3a45 !important;
  --muted: #6b5560 !important;
  --heading: #3d1b33;
  --line: rgba(36, 26, 32, .12) !important;
  --line-strong: rgba(36, 26, 32, .22) !important;
  --ok-ink: #356b57 !important;
  --ok-bg: #eaf3ef !important;
  --err-ink: #a8443f !important;
  --err-bg: #fbebea !important;
  --accent: #7a2456 !important;
  --accent-2: #5f1b43 !important;
  --accent-bright: #b06a94 !important;
  --accent-tint: rgba(122, 36, 86, .10);
  --accent-line: rgba(122, 36, 86, .30);
  --on-accent: #fffbfc !important;
}

/* ---- Amber Comb: honey paper, umber ink ---- */
:root:root[data-palette="comb"]:not([data-theme="dark"]) {
  --bg: #f8f2e6 !important;
  --card: #fffaf0 !important;
  --surface-2: #f2e7d2 !important;
  --text: #241a0e !important;
  --text-2: #4a3823 !important;
  --muted: #6f5a3f !important;
  --heading: #3a2410;
  --line: rgba(36, 26, 14, .12) !important;
  --line-strong: rgba(36, 26, 14, .22) !important;
  --ok-ink: #4a7a3a !important;
  --ok-bg: #eef3e6 !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbede9 !important;
  --accent: #8a5a00 !important;
  --accent-2: #6e4700 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 90, 0, .10);
  --accent-line: rgba(138, 90, 0, .30);
  --on-accent: #fffaf0 !important;
}

/* ---- the night faces: same roles, lit from the other side ---- */
:root:root[data-palette="green"][data-theme="dark"] {
  --heading: #f4efe4; --ok-ink: #7fc493 !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="uganda"][data-theme="dark"] {
  --heading: #f6efe3; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e0a458 !important; --accent-2: #c98a3c !important; --accent-bright: #e0a458 !important; --accent-tint: rgba(224, 164, 88, .12); --accent-line: rgba(224, 164, 88, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="savannah"][data-theme="dark"] {
  --heading: #f7eef3; --ok-ink: #7fc4ad !important; --err-ink: #e08a86 !important;
  --accent: #d98cb9 !important; --accent-2: #c4709f !important; --accent-bright: #d98cb9 !important; --accent-tint: rgba(217, 140, 185, .12); --accent-line: rgba(217, 140, 185, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="comb"][data-theme="dark"] {
  --heading: #f7f0e2; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}

/* The top band is the shop's sign, painted in the palette colour; the ledger
   underneath is paper. Keep the sign, drop its glow. */
:root { --brand-band: #123b2c; }
:root[data-palette="uganda"] { --brand-band: #241a13; }
:root[data-palette="savannah"] { --brand-band: #4e1248; }
:root[data-palette="comb"] { --brand-band: #3a1d0e; }

/* ----------------------------------------------------------------------------
   2. No decoration behind the numbers
   -------------------------------------------------------------------------- */

body::before,
body::after,
.comb-glow,
.comb-aura,
.aura-glow,
.login-ambient,
.login-orb,
.login-grid,
.login-trace,
.login-grain,
.login-veil,
.page-glow,
.pip {
  display: none !important;
}

/* The one backdrop the direction keeps: Amber Comb's living honeycomb, drawn by
   assets/js/hive-comb.js (a port of the reference HiveComb.kt). It is a canvas
   behind everything, only under the comb palette; the script keeps it still when
   the system asks for reduced motion. */
.hive-comb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: none;
  pointer-events: none;
}

body {
  background-image: none !important;
}

/* Loops that are not live data. */
.comb-breathe,
.comb-glow,
[class*="breathe"],
[class*="radar"],
.ex-status-orb,
.status-dot,
.subtle-breathing,
.animate-pulse,
.animate-ping {
  animation: none !important;
}

/* A gradient only survives as a whisper inside one neutral, never hue to hue.
   The surfaces below must be opaque: the comb palette paints a canvas behind
   the page, and a transparent card would let the honeycomb run through the
   figures. */
.btn-primary,
.btn-primary:hover,
.ask-fab,
.tabbar,
.avatar,
.avatar-sm,
.avatar-md,
.ex-cta,
.ex-status-open,
header.bot-head,
.offline-strip,
a.ask-fab,
.streak-pip,
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .report-head,
body .card,
body .stat {
  background-image: none !important;
}
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .card,
body .stat {
  background-color: var(--card) !important;
}

/* ----------------------------------------------------------------------------
   3. Type — few sizes, two weights, sentence case
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font);
  font-size: .97rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* The signed-in app is paper. The signed-out scene keeps its own painting. */
body:not(.plain) {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
}

h1, h2, h3, h4 {
  font-weight: 550;
  letter-spacing: -.012em;
  color: var(--text);
}

h1 { font-size: 1.5rem; line-height: 1.15; }
h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.3; }

b, strong { font-weight: 600; }

/* Labels are labels: sentence case, no tracking, no shouting. */
.stat .label,
.table thead th,
.tabs a,
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.eyebrow,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
.ex-sec-head h2,
.ex-more-title,
th {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.stat .label,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
th {
  font-weight: 500 !important;
  color: var(--muted);
}

/* A label is 12px, never 10. */
[class*="kicker"],
[class*="eyebrow"] { font-size: .76rem !important; }

/* Figures: one weight, tabular, in the mono column. */
.num,
.stat .value,
.money,
.ex-amount-num,
.ex-tile-value,
.ex-pair strong,
.ex-rank-fig strong,
.ex-staff-fig strong,
.ex-balance strong,
.ex-meta-item strong,
.fc-amount,
.fc-pct,
.report-head .fig,
td.num,
th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
}

/* Where a big figure carries the screen, it carries the accent. */
.ex-amount-num { color: var(--accent); }

/* ----------------------------------------------------------------------------
   4. Spacing, radius, depth
   -------------------------------------------------------------------------- */

.card {
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

a.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
a.card:active { transform: none; }

@media (min-width: 760px) {
  .card { padding: 24px; }
}

/* Nested radius: inner = outer − padding, never below 4. */
.card .card,
.card .tile,
.card .inner { border-radius: max(4px, calc(var(--radius) - 8px)); }

/* Everything is not a pill. Small things get 4 to 6, controls 8, cards 12. */
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.tabs a,
.ex-chip,
.ex-pill,
.ex-badge,
.ex-mini-pill,
.badge,
.chip,
.tag {
  border-radius: 6px !important;
}

/* ----------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons: one shape, ink fill for the primary, hairline for the rest. */
.btn {
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font: 500 .95rem/1.2 var(--font);
  box-shadow: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}

.btn:hover { background: var(--surface-2); border-color: var(--line-strong); box-shadow: none; }
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-primary:hover {
  background: var(--cta-from);
  border-color: var(--cta-border);
  color: var(--cta-ink);
  box-shadow: none;
}
.btn-primary:hover { background: var(--cta-hover-from); }
.btn-primary:active { transform: translateY(1px); }

.btn-danger { background: var(--card); border-color: var(--err-border); color: var(--err-ink); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err-ink); }

.btn-block { min-height: 52px; padding: .85rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-small { min-height: 36px; padding: .35rem .7rem; font-size: .85rem; border-radius: 6px; }

/* Alerts: a tinted sheet with one rule down the side, no shadow, no entrance. */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-left-width: 3px;
  box-shadow: none;
  animation: none;
}

/* Cards keep only a hairline. */
.card { border: 1px solid var(--line); background: var(--card); }

/* Tabs: a text row with an underline on the one you are in, not a row of pills. */
.tabs { gap: 20px; margin-bottom: 16px; border: 0; border-radius: 0; background: transparent; overflow-x: auto; }
.tabs a {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
}
.tabs a.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabs a:hover { color: var(--text); }

/* Tables: a hairline grid, sentence-case header, figures on the right. */
.table { font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  font-size: .8rem;
  color: var(--muted);
}
.table tbody tr:hover { background: var(--surface-2); }
.table thead th:first-child, .table thead th:last-child { border-radius: 0; }

/* Top bar: the shop's sign, solid — no glass here. The glass belongs to the bottom
   bar, where content meets a fixed edge as you scroll. */
.topbar {
  background: var(--brand-band) !important;
  background-image: none !important;
  color: #fff;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { border: 0; }
.nav a { color: rgba(255, 255, 255, .88); border-radius: 8px; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }

/* Bottom bar: paper, a hairline, docked to the edge like a tab bar, the active
   item marked with the pen. Every palette used to paint its own floating glass
   here — an inset pill with a shadow, a plum gradient in Savannah, a blur in
   every one of them, near-white labels on cream in Uganda — so the geometry,
   the fill, the labels and the marker are pinned for all four. */
:root { --card-glass: rgba(255, 253, 249, .72); }
:root[data-theme="dark"] { --card-glass: rgba(28, 26, 24, .88); }

:root:root .tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 56px;
  padding: .3rem .4rem calc(.35rem + env(safe-area-inset-bottom)) !important;
  border-radius: 0 !important;
  background: var(--card) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
/* The same glass as the top bar: the docked bar blurs what passes under it. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root:root .tabbar {
    background: var(--card-glass) !important;
    -webkit-backdrop-filter: saturate(170%) blur(22px) !important;
    backdrop-filter: saturate(170%) blur(22px) !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root:root .tabbar { background: var(--card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* The room the docked bar takes from the bottom of every screen. */
body.has-tabbar { --tabbar-h: calc(56px + env(safe-area-inset-bottom)); }

.tabbar a, .tabbar a:visited { color: var(--text-2) !important; font-weight: 500; }
.tabbar a.active, .tabbar a[aria-current="page"] { color: var(--text) !important; font-weight: 550; background: transparent !important; }
/* The palette blocks colour the bar's links with their own !important rules
   (Uganda and Savannah end up near-white on paper), so the labels are pinned
   one specificity step above them. */
:root:root .tabbar a,
:root:root .tabbar a:visited { color: var(--text-2) !important; }
:root:root .tabbar a.active,
:root:root .tabbar a[aria-current="page"] { color: var(--text) !important; }
.tabbar a .pip { background: transparent !important; box-shadow: none !important; border: 0 !important; transform: none !important; }
.tabbar a.active::after { display: none !important; }
.tabbar a.active::before,
.tabbar a[aria-current="page"]::before {
  content: "";
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Ask Zireva: a quiet paper chip. A circle on a phone, so it never sits on a figure. */
.ask-fab {
  background: var(--fab-bg);
  color: var(--fab-ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(31, 27, 22, .10);
  font-weight: 500;
  border-radius: 8px;
}
.ask-fab svg { color: var(--accent); }
.ask-fab:hover { background: var(--surface-2); }

/* Fields */
input, select, textarea, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  color: var(--text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* Links take the pen, and only the pen. */
a { color: inherit; }
.link, .pw .link { color: var(--accent); font-weight: 500; }

/* ----------------------------------------------------------------------------
   6. The owner's Home — the ledger itself
   -------------------------------------------------------------------------- */

/* Every app page gets a desk's width, not a phone's column on a laptop. */
body.dash-exec .wrap,
body.shop-home .wrap {
  max-width: 1160px;
  padding-left: 32px;
  padding-right: 32px;
}
@media (min-width: 1000px) {
  /* One vertical line runs from the brand mark down through every page. */
  body main.wrap.app-page {
    max-width: 1160px;
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (max-width: 720px) {
  body.dash-exec .wrap,
  body.shop-home .wrap { padding-left: 16px; padding-right: 16px; }
}

.exec-dash { padding-bottom: 16px; }

/* The sign over the counter: shop name, place, the day's state. */
.ex-head { margin-bottom: 20px; padding: 0; }
.ex-shop { font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 2px; }
.ex-sub { font-size: .85rem; color: var(--muted); }

/* Day state: a stamped word, not a glowing pill. */
.ex-status {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 10px;
  gap: 6px;
  box-shadow: none;
}
.ex-status-open { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-ink); }
.ex-status-orb { background: none; box-shadow: none; }
.ex-status-orb svg { width: 14px; height: 14px; }
.ex-status-radar, .ex-status-shine, .ex-status-rest { display: none; }
.ex-status-label { font-size: .78rem; font-weight: 500; }

/* The month's total: the one big written figure, on a ruled line. */
.fig-hero,
.ex-pulse {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 16px;
}
.ex-pulse-top { margin-bottom: 8px; gap: 4px 8px; align-items: center; flex-wrap: wrap; }
.ex-pulse-top .ex-eyebrow { min-width: 0; flex: 1 1 auto; }
.ex-pulse-top .ex-ghost { flex: none; margin-left: auto; }
.ex-eyebrow {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ex-eyebrow-soft { color: var(--muted); font-weight: 400; }
.ex-ghost { color: var(--accent); font-weight: 500; font-size: .85rem; }

.ex-amount { margin: 4px 0 0; align-items: baseline; gap: 10px; }
.ex-amount-unit {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ex-amount-num {
  font-family: var(--font);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ex-trend { margin-top: 8px; gap: 10px; }
.ex-trend-note { font-size: .82rem; color: var(--muted); }
.ex-delta { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; }
.ex-delta.is-good { color: var(--ok-ink); }
.ex-delta.is-bad { color: var(--err-ink); }

/* The arithmetic row, closed by the accountant's double rule: the figure above
   is the total, the three components below it. This is the signature, and it
   appears only where a figure is settled. */
.ex-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 3px double var(--line-strong);
  gap: 24px;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.ex-meta-k { color: var(--muted); }
.ex-meta-item strong { font-size: .88rem; color: var(--text); }
.ex-meta-dot { display: none; }
.ex-meta-item { gap: 6px; }

.ex-chip {
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 500;
  padding: 2px 8px;
}
.ex-chip-bad { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-border); }
.ex-chip-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.ex-chip-info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-border); }
.ex-chip-service { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* "Ask about this figure" becomes a quiet link with one pen mark. */
.ask-number { margin: 12px 0 16px; }
.ask-number a, .ask-number a:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ask-number a .ico { width: 14px; height: 14px; }
.ask-number a:hover { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------------------
   5b. Report figures (app/lib/Metric.php) — the same ledger, on every screen
   -------------------------------------------------------------------------- */

.fig-hero,
.fig-hero.is-pos,
.fig-hero.is-neg,
.fig-hero.is-zero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 20px;
}

.fig-hero .fig-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.fig-hero .fig-label .ico { width: 16px; height: 16px; color: var(--muted); }

.fig-hero-value,
.fig-hero.is-pos .fig-hero-value,
.fig-hero.is-neg .fig-hero-value {
  font-family: var(--font);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 6px;
}
.fig-hero.is-neg .fig-hero-value { color: var(--err-ink); }
.fig-unit {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.fig-note { font-size: .85rem; color: var(--muted); }
.fig-delta { font-family: var(--font-mono); font-size: .82rem; }
.fig-delta.is-good { color: var(--ok-ink); }
.fig-delta.is-bad { color: var(--err-ink); }

/* The strip of secondary figures: one ruled band, not a row of mini cards. */
.fig-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 4px 20px;
}
.fig-strip > * { border-top: 1px solid var(--line); padding: 14px 0; }
.fig-strip > *:first-child { border-top: 0; }
.fig-strip .fig-label, .fig-strip .k { font-size: .8rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.fig-strip .fig-value, .fig-strip strong { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* The context line above a screen: "Money · Tue 17 Nov". */
.ws-context { padding: 0 0 6px; }
.ws-context-k {
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ws-context-dot { display: none; }
.ws-context time { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }

/* Needs you: one folded row, the list inside. */
.ex-needs,
.ex-card,
.ex-health,
.ex-restock,
.ex-perf {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 12px;
}
.ex-needs summary { padding: 14px 16px; gap: 10px; }
.ex-needs-title { font-size: .95rem; font-weight: 550; }
.ex-needs-body { padding: 4px 16px 16px; }
.ex-need { padding: 12px 0; border-top: 1px solid var(--line); gap: 10px; }
.ex-need-btn { color: var(--accent); font-weight: 500; font-size: .82rem; }
.ex-need-dot { width: 6px; height: 6px; border-radius: 2px; }
.ex-need-bad .ex-need-dot { background: var(--err-ink); }
.ex-need-warn .ex-need-dot { background: var(--warn-ink); }
.ex-need-info .ex-need-dot { background: var(--info-ink); }
.ex-needs-sub { margin: 16px 0 4px; font-size: .78rem; color: var(--muted); }

/* The setup card is work to do, not a different material. */
.ex-setup {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: none;
}

/* On a phone the three components of the total stay on one line. */
@media (max-width: 520px) {
  .ex-meta { gap: 12px; font-size: .8rem; }
  .ex-meta-item { gap: 4px; }
  .ex-eyebrow { font-size: .8rem; }
  .ex-tile-sub { font-size: .78rem; }
}

/* The four drivers: numbers with a label, a change, and nothing else. */
.ex-grid { gap: 12px; margin-bottom: 12px; }
.ex-tile {
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 16px;
  gap: 4px;
}
.ex-tile:hover { border-color: var(--line-strong); }
.ex-tile-top { margin-bottom: 6px; }
.ex-tile-label { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ex-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--muted) !important;
}
.ex-ico.is-brand, .ex-ico.is-good, .ex-ico.is-warn, .ex-ico.is-bad { background: transparent !important; color: var(--muted) !important; }
.ex-ico .ico, .ex-ico svg { width: 16px; height: 16px; }
/* A tile figure is as wide as its card: it shrinks on a phone before it can reach
   the edge, and the unit sits on its own line there so the amount gets the whole
   width. A figure never breaks: "10,544,70 / 3" is not a number. */
.ex-tile-value {
  font-size: clamp(.95rem, 3.4vw, 1.35rem) !important;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.ex-tile-value .ex-unit {
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  margin-right: 5px;
}
@media (max-width: 520px) {
  .ex-tile-value .ex-unit { display: block; margin: 0 0 2px; }
  .ex-tile-value { font-size: clamp(.85rem, 4.2vw, 1.05rem) !important; }
}
.ex-tile-sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.ex-tile-sub.is-warn { color: var(--warn-ink); }
.ex-tile-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ex-tile-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-tile-badge { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.ex-bar { height: 3px; border-radius: 2px; }
.ex-bar::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
.ex-bar::-moz-progress-bar { background: var(--accent); border-radius: 2px; }
.ex-pair { gap: 4px; font-size: .82rem; }
.ex-pair-k { color: var(--muted); }
.ex-pair strong { color: var(--text); }

/* Shop health and the restock nudge: a line of text with one state word. */
.ex-row { padding: 14px 16px; }
.ex-row-label { font-size: .9rem; font-weight: 550; color: var(--text); letter-spacing: 0; text-transform: none; }
.ex-row-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ex-pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
}
.ex-pill-good { color: var(--ok-ink); border-color: var(--ok-border); background: var(--ok-bg); }
.ex-pill-warn { color: var(--warn-ink); border-color: var(--warn-border); background: var(--warn-bg); }
.ex-pill-bad { color: var(--err-ink); border-color: var(--err-border); background: var(--err-bg); }
.ex-pill-neutral { color: var(--muted); }
.ex-badge { border-radius: 4px; font-size: .74rem; font-weight: 500; padding: 1px 6px; }
.ex-badge.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ex-badge.is-good { background: var(--ok-bg); color: var(--ok-ink); }
.ex-history-dot { width: 5px; height: 5px; border-radius: 1px; }
.ex-mini-pill { border-radius: 4px; background: var(--surface-2); color: var(--muted); font-weight: 500; }

/* Best earners / on shift: two lists, one ruler between them. */
.ex-perf { padding: 20px; }
.ex-sec-head { margin-bottom: 8px; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: .95rem; font-weight: 550; letter-spacing: 0; }
.ex-sec-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-rank { margin: 0; }
.ex-rank-row { padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.ex-rank-row:last-child { border-bottom: 0; }
.ex-rank-num { width: 18px; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.ex-rank-name { font-size: .9rem; }
.ex-rank-fig strong { font-size: .9rem; color: var(--text); }
.ex-rank-fig small { font-size: .76rem; color: var(--muted); }
.ex-divider { height: 1px; background: var(--line-strong); margin: 16px 0; }
.ex-staff-row { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.ex-staff-row:last-child { border-bottom: 0; }
.ex-avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.ex-staff-name { font-size: .9rem; }
.ex-staff-sub { font-size: .78rem; color: var(--muted); }
.ex-staff-fig small { color: var(--muted); }

/* More: the tail of the page, opened on demand. */
.ex-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.ex-more summary { padding: 14px 16px; }
.ex-more-title { font-weight: 550; }
.ex-quick a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .88rem; background: transparent; }
.ex-quick a:hover { background: var(--surface-2); }
.ex-activity li, .ex-balance { font-size: .85rem; }
.ex-activity time { color: var(--muted); font-family: var(--font-mono); font-size: .76rem; }

/* On a wide screen this is a ledger, not a stretched phone: one column of
   facts, one rail for what needs the owner. */
@media (min-width: 1080px) {
  .exec-dash {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px 28px;
    align-items: start;
  }
  .ex-head, .ex-setup, .ex-more { grid-column: 1 / -1; }
  .fig-hero, .ex-pulse, .ex-grid, .ex-perf { grid-column: 1; }
  /* The rail is pinned beside the main column and flows on its own, so the
     left column never waits for it. */
  .ex-rail { grid-column: 2; grid-row: 3 / span 4; display: flex; flex-direction: column; gap: 12px; align-self: start; }
  .exec-dash > * { margin-bottom: 0; }
  .ex-rail > * { margin-bottom: 0; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Surfaces that used to be a gradient need a real fill, not a hole. */
.avatar, .avatar-sm, .avatar-md {
  background: var(--surface-2) !important;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.me-btn .avatar-sm { border-radius: 50%; }

.ex-cta {
  background: var(--cta-from);
  color: var(--cta-ink);
  border: 1px solid var(--cta-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ex-cta:hover { background: var(--cta-hover-from); }

/* Statement rows: a group heading is a quiet label, not a shout. */
tr.group td, tr.group th {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 18px;
  background: transparent;
}
.sub-head { font-size: .9rem; font-weight: 550; color: var(--text-2); letter-spacing: 0; }

@media (max-width: 520px) {
  /* On a phone the shop's name is the page title, so the chip in the header is noise. */
  .topbar .shop-name, .topbar .shop-switch { display: none; }
  .topbar-inner { gap: 6px; }
}

/* ----------------------------------------------------------------------------
   8. The Hub vocabulary — the header actions and lists of every screen
      (app/lib/Hub.php: earnings, days, watch, team, subscription, the counter)
   -------------------------------------------------------------------------- */

.hub-pills { gap: 8px; }
.hub-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px !important;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
}
.hub-pill:hover { background: var(--surface-2); border-color: var(--line-strong); }
.hub-pill .ico { width: 16px; height: 16px; color: var(--muted); }

.hub-hero-btn,
.hub-chip {
  border-radius: 12px !important;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
}
.hub-hero-btn:hover, .hub-chip:hover { border-color: var(--line-strong); background: var(--card); }

.hub-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.hub-row { padding: 14px 16px; border-top: 1px solid var(--line); }
.hub-row:first-child { border-top: 0; }
.hub-row:hover { background: var(--surface-2); }

/* Nothing to do is a quiet line; something to do keeps a sand rule down its side. */
.hub-list.is-todo { background: var(--card); border-color: var(--line); border-left: 3px solid var(--warn-ink); }
.hub-list.is-todo .hub-txt span, .hub-list.is-todo .hub-txt small { color: var(--muted); }

/* Icons are bare coloured glyphs, one hue per topic (the OnePlus Settings way):
   no tile, no circle, just the mark in its own colour on paper. The wash of tints
   is deep enough to read at 17 px and still hold 4.5:1 on the card. */
:root:root:root {
  --tone-green-ink: #1c7a4a !important;
  --tone-blue-ink: #2a63bd !important;
  --tone-yellow-ink: #96651a !important;
  --tone-rose-ink: #b3392c !important;
  --tone-violet-ink: #6a44c4 !important;
  --tone-teal-ink: #10756f !important;
  --tone-orange-ink: #b05a12 !important;
  --tone-slate-ink: #55635b !important;
}
:root:root:root:root[data-theme="dark"] {
  --tone-green-ink: #6fce9b !important;
  --tone-blue-ink: #7db0ff !important;
  --tone-yellow-ink: #e8c069 !important;
  --tone-rose-ink: #f09a8b !important;
  --tone-violet-ink: #b39bf5 !important;
  --tone-teal-ink: #6fd0c9 !important;
  --tone-orange-ink: #eda469 !important;
  --tone-slate-ink: #a9b6ae !important;
}

.hub-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--tone-slate-ink) !important;
}
.hub-ico .ico { width: 17px; height: 17px; }
.hub-ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-ico.lang-code { font-size: .68rem; font-weight: 700; letter-spacing: .02em; }

.hub-txt strong { font-size: .92rem; font-weight: 500; color: var(--text); }
.hub-txt span, .hub-txt small { font-size: .82rem; color: var(--muted); }
.hub-badge {
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  padding: 1px 6px;
}
.hub-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.hub-chev { color: var(--muted); }

/* The tab row never paints a box behind the active item. */
nav.tabs a, nav.tabs a.active, .tabs a, .tabs a.active {
  background: transparent !important;
  box-shadow: none !important;
}
nav.tabs a.active, .tabs a.active { border-bottom-color: var(--accent) !important; }

/* Sentence case for labels, wherever they live: the app learned "uppercase + tracking" in a
   hundred small places, and a label is a label. */
[class$="-k"],
[class$="-label"],
[class$="-kicker"],
[class$="-eyebrow"],
[class$="-cap"],
[class$="-head-k"],
.bal span,
.metric .k,
.stat .label,
.table thead th,
.day-badge,
.acc-k,
.legend-k {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
[class$="-k"],
[class$="-kicker"],
[class$="-eyebrow"],
.bal span,
.metric .k {
  font-weight: 500 !important;
}

/* "You are in shop mode" is a note, not a banner. */
.mode-bar {
  background: var(--card) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text);
  padding: 10px 16px;
  font-size: .85rem;
}
.mode-bar .btn { min-height: 32px; font-size: .82rem; }

/* The signed-out buttons (login and the three-step sign-up) share the app's one shape. */
.login-cta, .btn-enter, .signup-next, .login-continue { border-radius: 8px !important; }
.btn:disabled, .btn[disabled] {
  opacity: 1;
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

/* ----------------------------------------------------------------------------
   7. Chrome details that every screen shares
   -------------------------------------------------------------------------- */

/* "Ask Zireva" floats again — it is the app's one companion, and it stops having
   a meaning when it is filed among the header icons. It gets out of the way by
   itself: while the page is scrolling it fades almost to nothing, and it comes
   back when the scrolling stops (or on hover / focus, so it is never lost).
   On screen it is the one solid thing over the paper — ink on light, paper on
   dark, with a real shadow — because a paper capsule over paper cards simply
   disappeared. */
.ask-fab,
a.ask-fab {
  right: 12px;
  bottom: calc(var(--tabbar-h) + 12px);
  height: 44px;
  padding: 0 16px 0 13px;
  gap: 8px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 550;
  background: var(--cta-from) !important;
  background-image: none !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .18) !important;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .15s var(--ease), box-shadow .2s var(--ease);
}
.ask-fab svg { color: var(--accent-bright) !important; }
.ask-fab:hover,
a.ask-fab:hover {
  background: var(--cta-hover-from) !important;
  color: var(--cta-ink) !important;
  transform: translateY(-1px);
}
.ask-fab:active { transform: translateY(0); }
.ask-fab.is-away {
  opacity: .10;
  transform: scale(.96);
}
/* Something tappable is under it: it steps back, so the control below still reads. */
.ask-fab.is-blocking {
  opacity: .45;
  transform: scale(.98);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35) !important;
}
.ask-fab.is-away:hover,
.ask-fab.is-away:focus-visible {
  opacity: 1;
  transform: none;
}
.ask-fab .ask-fab-label { white-space: nowrap; }
main { padding-bottom: calc(var(--tabbar-h) + 72px); }

/* ----------------------------------------------------------------------------
   9. The Ask Zireva sheet
   The head used to be a dark gradient with white text; with the gradient gone the
   white title sat on paper (1.03:1 in light) and the header icons were white on
   white. The sheet now follows the ledger: paper, ink, hairline.
   -------------------------------------------------------------------------- */

.bot-panel {
  background: var(--card) !important;
  border: 1px solid var(--line);
  color: var(--text);
}
.bot-head,
header.bot-head {
  background: var(--card) !important;
  background-image: none !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.bot-title strong { color: var(--text) !important; font-weight: 600; }
.bot-title small, .bot-sub { color: var(--muted) !important; opacity: 1; }

.bot-x,
[data-bot-new],
[data-bot-list],
[data-bot-back] {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--text-2) !important;
  opacity: 1;
}
.bot-x:hover,
[data-bot-new]:hover,
[data-bot-list]:hover,
[data-bot-back]:hover { background: var(--surface-2) !important; color: var(--text) !important; }
.bot-x .ico, [data-bot-new] .ico, [data-bot-list] .ico, [data-bot-back] .ico { color: inherit; stroke: currentColor; }

/* Suggestions: a hairline tag with ink text, not gold on paper. */
.bot-chip {
  border: 1px solid var(--line-strong) !important;
  background: var(--card) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  font-weight: 500;
  padding: 8px 12px;
}
.bot-chip:hover { background: var(--surface-2) !important; border-color: var(--text-2) !important; }

.bot-bubble { background: var(--surface-2); color: var(--text); }
.bot-msg-me .bot-bubble { background: var(--chat-me-bg); color: var(--chat-me-ink); }
.bot-meta { color: var(--muted); }
.bot-note { color: var(--text-2) !important; }

.bot-input { background: var(--card); border-top: 1px solid var(--line); }
[data-bot-text] {
  background: var(--field-bg) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}
[data-bot-text]::placeholder { color: var(--muted); }

.bot-mic {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text-2) !important;
}
.bot-mic .ico { color: inherit; }
.bot-mic.is-listening { background: var(--err-ink) !important; border-color: var(--err-ink) !important; color: #fff !important; }
[data-bot-send] {
  background: var(--cta-from) !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
}
[data-bot-send] .ico { color: inherit; }
.bot-act { color: var(--accent); font-weight: 500; }

@media (min-width: 900px) {
  .ask-fab {
    right: 24px;
    bottom: 24px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: .85rem;
  }
  .ask-fab svg { width: 16px; height: 16px; }
}

/* One easing curve, two durations. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* One entrance on load, nothing flying in from the sides. */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-in, .page-enter { animation: page-in .3s var(--ease) both; }

/* ----------------------------------------------------------------------------
   10. Two faces: a brand face and a data face

   Plus Jakarta Sans carries the words that give the app its character: the shop's
   name, the screen and card titles, the buttons, the brand lockup. Inter carries
   everything that has to stay sharp in a dense table — body, meta, timestamps and
   every figure, tabular and unbroken.

   Weights: 700 titles · 800 the primary metric · 600 card titles and buttons ·
   500 labels · 400 body. Sizes are px, as the type spec reads.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-brand: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-data: var(--font);
  --font-display: var(--font-brand);
  --font-mono: var(--font);        /* figures stay in the data face, never a third family */
}

/* ---- the brand face ------------------------------------------------------ */

h1, h2, h3,
.ex-shop,
.report-head h1,
.ex-sec-head h2, .ex-sec-head h3,
.ex-eyebrow, .ex-tile-label, .hub-label,
.inv-empty-title,
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong, .ex-need-txt,
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta, .inv-empty-quiet,
.ex-tile-link, .ex-sec-link, .ask-number a,
.bot-title strong,
.brand .lock b, .brand .lock small, .brand-lockup-word {
  font-family: var(--font-brand);
}

/* The app's own screens (Money, Stock, Profit, Settings) set their headings on the
   page wrapper, one step above a bare h1 — matched here so the brand scale wins. */
.app-page > h1:first-of-type,
.app-page > .report-head h1,
.app-page > .hero h1,
.app-page > .page-head h1,
.app-page h1, .report-head h1, .page-head h1, main h1 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
.app-page .card h2, .app-page h2, .card h2, .report-head h2 { font-family: var(--font-brand); font-size: 16px; font-weight: 600; letter-spacing: -.008em; color: var(--heading); }
.app-page .card h3, .app-page h3, .card h3, .report-head h3 { font-family: var(--font-brand); font-size: 15px; font-weight: 600; letter-spacing: -.006em; color: var(--heading); }

/* The sign over the counter: 20px / 700 / 1.2 */
.ex-shop,
h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
h2 { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; color: var(--heading); }
h3 { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.006em; color: var(--heading); }

/* The primary metric: 28px / 800 / -0.02em, tabular. */
.fig-hero-value,
.ex-amount-num {
  font-family: var(--font-brand);
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.06;
  letter-spacing: -.02em !important;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 700px) {
  .fig-hero-value, .ex-amount-num { font-size: 32px !important; }
}

/* Card titles and section heads: 14–16px / 600. */
.ex-eyebrow { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.005em !important; }
.ex-eyebrow .ex-sep { margin: 0 .3em; }
.ex-tile-label { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.004em !important; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: 15px !important; font-weight: 600 !important; }
.inv-empty-title { font-size: 17px !important; font-weight: 700 !important; }
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong { font-weight: 600 !important; }

/* Buttons: 600, 14px. */
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta { font-weight: 600 !important; }
.btn { font-size: 14px; }
.btn-small { font-size: 13px; }
.hub-pill { font-size: 13px !important; }

/* ---- the data face ------------------------------------------------------- */

.ex-tile-value, .ex-pair strong, .ex-meta-item strong, .ex-rank-fig strong,
.ex-staff-fig strong, .ex-balance strong, .stat .value,
.num, .money, .fc-amount, .fc-pct, td.num, th.num {
  font-family: var(--font-data);
}
/* Every figure, in whichever face it sits, is tabular and never breaks. */
.num, .money, .stat .value, .ex-amount-num, .ex-tile-value, .ex-pair strong,
.ex-meta-item strong, .ex-rank-fig strong, .ex-staff-fig strong, .ex-balance strong,
.fig-hero-value, .fig-num, .fc-amount, .fc-pct, td.num, th.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ex-tile-value { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
.ex-pair strong { font-size: 14px; font-weight: 600 !important; }
.ex-meta-item strong { font-size: 13px; font-weight: 600 !important; }
.ex-rank-fig strong { font-size: 14px !important; font-weight: 700 !important; }
.ex-rank-fig small, .ex-staff-fig small { font-size: 12px; }

/* Body, meta and timestamps: 13px, 400–500. */
.ex-tile-sub, .ex-row-sub, .ex-meta, .ex-meta-k, .ex-tile-badge, .ex-needs-sub,
.ex-activity li, .inv-empty-copy, .hub-txt span, .ex-rank-name, .ex-staff-name,
.ex-tile-link, .ex-sec-link, .ask-number a {
  font-size: 13px;
}
.ex-tile-sub, .ex-row-sub, .ex-meta-k, .ex-meta, .ex-activity li { font-weight: 400; }
.ex-tile-link, .ex-sec-link, .ex-rank-name, .ex-staff-name { font-weight: 500; }

/* Small print: chips, pills, badges, status. */
.pill, .ex-pill, .ex-badge, .ex-chip, .ex-status-label, .ex-mini-pill,
.ex-tile-badge, .ex-staff-sub, .ex-needs-sub { font-size: 12px !important; }

/* A figure never wraps; at 320 px the statement gives it a smaller size instead. */
@media (max-width: 400px) {
  .table td.num, .table th.num, .table tr.total td, .table tr.total th { font-size: .82rem !important; }
}

/* ----------------------------------------------------------------------------
   11. The empty state of a list (invoices, quotations, unpaid, delivery and
   credit notes): what the list is for, what it will hold, and the one action
   that starts it. A panel, not a sentence with an icon.
   -------------------------------------------------------------------------- */

.inv-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: none;
}
.inv-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.inv-empty-ico .ico { width: 18px; height: 18px; }
.inv-empty-title {
  grid-column: 2;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.inv-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 52ch;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.inv-empty-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.inv-empty-cta {
  min-height: 44px;
  padding: 0 18px;
  gap: 6px;
  font-size: .92rem;
}
.inv-empty-cta .ico { width: 15px; height: 15px; }
.inv-empty-quiet {
  font-size: .86rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.inv-empty-quiet:hover { color: var(--text); border-bottom-color: var(--text-2); }

@media (max-width: 480px) {
  .inv-empty { padding: 20px; }
  .inv-empty-actions { grid-column: 1 / -1; }
}

/* A row header keeps its parts on one line: the label gives way, the pill and the
   chevron never drop to a second row. */
.ex-row-head { flex-wrap: nowrap; min-width: 0; }
.ex-row-head .ex-row-label { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .ex-row-head .ex-pill { font-size: 11px !important; padding: 1px 6px; } }
.ex-row-head .ex-ico, .ex-row-head .ex-chev, .ex-row-head .ex-pill, .ex-row-head .ex-row-sub { flex: none; }

/* ----------------------------------------------------------------------------
   12. The last three narrow-screen spills
   Three older components assumed a short English label. On a 320 px phone with a
   long translation they hid or pushed out text; they wrap now.
   -------------------------------------------------------------------------- */

/* The sign-up business picker: two lines are better than an ellipsis. */
.pk-sel {
  white-space: normal !important;
  height: auto !important;
  min-height: 48px;
  line-height: 1.3;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 360px) {
  /* System / Light / Dark: three words in a pill need less side padding. */
  .mode-switch .mode-switch-opt { padding-left: 8px; padding-right: 8px; font-size: .74rem; }
  .mode-switch { gap: 2px; }
  /* The phone-in wizard's primary button: 2 px of padding was pushing it out. */
  .phone-wizard-nav .btn-block { padding-left: .6rem; padding-right: .6rem; font-size: .95rem; }
}

/* The wizard's primary button can never be wider than its row. */
.phone-wizard-nav .btn-block { box-sizing: border-box; min-width: 0; max-width: 100%; }
.phone-wizard-nav .btn-block > * { min-width: 0; }

@media (max-width: 340px) {
  .mode-switch .mode-switch-opt { padding-left: 6px; padding-right: 6px; font-size: .7rem; letter-spacing: 0; }
}
.phone-wizard-nav .btn-block { padding-left: 14px !important; padding-right: 14px !important; }

/* ----------------------------------------------------------------------------
   13. The manager approval gate
   app.css made this one flex row: the sentence and the form split the width 133/133
   on a phone, which left the PIN field 37 px wide — you could tap it, type, and see
   nothing. The words now take the row and the field gets a real width.
   -------------------------------------------------------------------------- */

.manager-gate {
  display: block;
  padding: 16px !important;
  margin: 0 0 12px;
}
.manager-gate > div { display: block; min-width: 0; }
.manager-gate strong { display: block; font-size: 1rem; }
.manager-gate p { margin: 4px 0 0; max-width: 52ch; }

/* A grid row, not a flex row: the field takes what is left and the button never
   drops under it, whatever the input's own width rule says. */
.manager-gate .manager-gate-form, form.manager-gate-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}
.manager-gate-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  letter-spacing: .12em;
}
.manager-gate-form .btn { min-height: 44px; justify-self: end; white-space: nowrap; }

/* The approved strip keeps its row: tick, sentence, Lock. */
.manager-gate.is-open { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manager-gate.is-open > div { flex: 1 1 200px; }
.manager-gate.is-open .inline-form { flex: 0 0 auto; }

/* Counting by notes: the label sat beside the box, so at 320 px the box was 26 px
   wide — two digits and a caret. The label goes above the box on a phone and the
   box takes the whole cell. */
@media (max-width: 480px) {
  .denom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: stretch; }
  .denom span { min-width: 0; text-align: left; font-size: .8rem; }
  .denom input { width: 100%; min-width: 0; }
}

/* ----------------------------------------------------------------------------
   14. The staff dashboard, three micro-adjustments
   -------------------------------------------------------------------------- */

/* 1. The greeting pill floats: an accent hairline instead of the grey rule, a
   hairline of light along the top edge, and a shadow that only reaches the card
   under it. */
.hero-greeting {
  border: 1px solid var(--accent-line, rgba(138, 106, 31, .30));
  background: var(--brand-tint);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 1px 2px rgba(16, 24, 20, .05),
    0 8px 20px -14px rgba(16, 24, 20, .45);
}
[data-theme="dark"] .hero-greeting {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(0, 0, 0, .35),
    0 10px 24px -16px #000;
}

/* 2. The To do counter wears the palette, not a system blue. A deep green tint, not
   the bronze one: "tasks" and "floats" are already amber, and two warm chips side
   by side read as the same thing. Green says routine work, amber says look at this. */
:root:root .ex-chip-info {
  background: var(--ok-bg, #edf4ec) !important;
  border-color: rgba(46, 111, 64, .24) !important;
  color: var(--ok-ink, #2e6f40) !important;
}
[data-theme="dark"] :root:root .ex-chip-info,
:root:root[data-theme="dark"] .ex-chip-info {
  border-color: rgba(127, 196, 147, .28) !important;
}

/* The quiet CTA beside the primary one in the month card was cream on cream — 1:1,
   a button you cannot read. It is a paper button with ink text again. */
.exec-dash .shop-reward a.ex-cta-quiet,
.exec-dash .shop-reward a.ex-cta-quiet:hover,
.shop-pulse a.ex-cta-quiet,
.shop-pulse a.ex-cta-quiet:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

/* 3. The progress meta reads in two beats: what is left of the target, then when
   the month ends. The timeline no longer rides on the same line as the money. */
body.shop-home .shop-reward-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.4;
}
body.shop-home .shop-reward-meta span:last-child {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: .74rem;
}
body.shop-home .shop-reward-meta span:last-child::before { content: none; }
body.shop-home .shop-reward-meta span:not(:first-child)::before { content: "·"; margin-right: .4rem; color: var(--line-strong); }

/* ----------------------------------------------------------------------------
   15. The negative tone, softened into the warm palette
   A deficit still has to read as a deficit, so the tone stays terracotta — but a
   muted one (burnt umber on sand) instead of the system-alert red that fought the
   cream and bronze. One set of values for every palette, day and night.
   -------------------------------------------------------------------------- */

:root:root:root:root:root {
  --danger: #9a4f3b !important;
  --danger-ink: #8a4426 !important;
  --danger-border: #e3c3ab !important;
  --err-ink: #9a4f3b !important;
  --err-bg: #f7e6d9 !important;
  --err-border: #e3c3ab !important;
  --neg-bg: #f8ece2 !important;
  --neg-border: #e8cdb8 !important;
}

:root:root:root:root:root[data-theme="dark"] {
  --danger: #e59c84 !important;
  --danger-ink: #f0b9a2 !important;
  --danger-border: rgba(224, 150, 120, .30) !important;
  --err-ink: #e59c84 !important;
  --err-bg: rgba(196, 120, 95, .14) !important;
  --err-border: rgba(224, 150, 120, .30) !important;
  --neg-bg: rgba(196, 120, 95, .10) !important;
  --neg-border: rgba(224, 150, 120, .26) !important;
}

/* The urgent chip is the same terracotta now, one step stronger than "to do" so
   the order still reads: urgent, to do, info, services. */
:root:root .ex-chip-bad {
  background: var(--err-bg) !important;
  color: var(--danger-ink) !important;
  border-color: var(--err-border) !important;
}

/* 3. The Ask capsule sat 12px above the docked bar and crowded it; it keeps its
   distance from the bar and from the card it floats over. */
.ask-fab,
a.ask-fab {
  bottom: calc(var(--tabbar-h) + 20px);
  right: 14px;
}

/* The capsule measured 140px while its label needed 144: the words were running
   past the right edge. It sizes to its content now, and when a control sits under
   it, it steps back to 80% instead of fading to grey. */
.ask-fab,
a.ask-fab {
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 28px);
  padding: 0 18px 0 14px;
  white-space: nowrap;
}
.ask-fab .ask-fab-label { flex: 0 0 auto; }
.ask-fab.is-blocking { opacity: .82 !important; }

/* A money row keeps its figure whole: the description gives way and wraps, the
   amount never leaves the row. */
.entry-main { min-width: 0; }
.entry-main > .what, .entry-main > .entry-text { min-width: 0; overflow-wrap: anywhere; }
.entry-main > .amt { flex: 0 0 auto; margin-left: auto; }

/* A tool pill carries its glyph in the same eight hues as the list rows, so the
   Stock screen's tools read as one family with the rest of the app. */
.hub-pill .ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-pill .ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-pill .ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-pill .ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-pill .ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-pill .ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-pill .ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-pill .ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-pill .ico { width: 17px; height: 17px; }

/* ----------------------------------------------------------------------------
   16. Offline looks like online
   The old full-width band under the header made the app look like a different,
   lesser app the moment the radio dropped. It is gone. Being offline now shows
   as one quiet detail: a small amber dot on the corner of the shop's mark, with
   nothing moving and no colour changing anywhere else. The queued-entry lines
   (offline.js) still appear where they are useful — above the form, not across
   the whole screen.
   -------------------------------------------------------------------------- */

.offline-strip { display: none !important; }

.brand { position: relative; }
.brand .brand-mark { position: relative; }
body.is-offline .brand .brand-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--brand-band);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------------------
   17. The offline screen, wearing the app's clothes
   Paper, one card, the same rows and chevrons as the hub lists, grouped the way
   the app groups its screens. It should look like a screen of the app that has
   nothing to add, not a browser error page with a list of buttons.
   -------------------------------------------------------------------------- */

.offline-wrap { max-width: 520px; margin: 0 auto; padding: 18px 14px 44px; }
.offline-brand { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.offline-brand img { border-radius: 10px; }
.offline-brand .brand.big { font-size: 1.05rem; color: var(--text); }
.offline-brand .brand.big span { color: var(--accent); }
.offline-group { margin: 18px 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.offline-card {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 30px -24px rgba(16, 24, 20, .45);
}
.offline-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 14px;
}
.offline-mark .ico { width: 26px; height: 26px; }
.offline-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--heading); }
.offline-lead { margin: 0 auto 18px; max-width: 38ch; font-size: 14px; line-height: 1.55; color: var(--muted); }

.offline-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.offline-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.offline-status.is-on .dot { background: var(--ok-ink); }
.offline-status.is-off .dot { background: var(--err-ink); }

.offline-retry {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--cta-border);
  background: var(--cta-from);
  color: var(--cta-ink);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
}
.offline-retry:active { transform: scale(.99); }

.offline-queue { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }

.offline-saved { margin-top: 20px; }
.offline-sub { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--heading); }
.offline-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.offline-saved .hub-list { margin: 0 0 14px; }
.offline-saved .hub-row { text-decoration: none; color: inherit; }
.offline-saved .hub-chev { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* The offline panel on the shop's Home keeps the app's rows, with the card frame
   dropped so it does not look like a box inside a box. */
.offline-panel .hub-sec { margin: 12px 0 0; }
.offline-panel .hub-label { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offline-panel .hub-list { margin: 0; border: 0; background: transparent; }
.offline-panel .hub-row { padding: 10px 0; }
.offline-panel .hub-row:first-child { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------------------
   18. Shop mode, said quietly
   An owner looking at the staff screen used to get a full card above the page —
   a second header for a page that already has one. The mode is a fact about the
   phone, not a section of the screen, so it lives in the bar: a small pill with
   the palette's dot, tappable, that returns to the owner view. The page below
   starts where it always starts.
   -------------------------------------------------------------------------- */

.topbar-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.topbar-mode:hover { background: rgba(255, 255, 255, .24); }
.topbar-mode:active { transform: scale(.98); }
.topbar-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
/* The swap glyph is what makes it a control rather than a badge: it says "this
   takes you to the other side", and the dot says which side you are on. */
.topbar-mode-swap { width: 12px; height: 12px; color: rgba(255, 255, 255, .78); flex: none; }

/* You cannot miss the mode. The pill is ringed in the palette's gold and carries a
   soft glow (a pseudo-element, so the glow has its own opacity instead of a hard
   shadow), and the sign under it runs one gold hairline — the same hairline the
   paper uses for a settled total. Nothing else on the screen changes. */
.shop-mode .topbar-mode {
  position: relative;
  margin-left: 4px;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.shop-mode .topbar-mode::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 14px 2px var(--accent-bright);
  opacity: .38;
}
.shop-mode .topbar-mode .topbar-mode-swap { color: var(--accent-bright); }
.shop-mode .topbar-mode-txt { color: #fff; letter-spacing: .09em; }
.shop-mode .topbar { border-bottom-color: var(--accent-bright) !important; }
@media (max-width: 380px) {
  .topbar-mode { padding: 0 8px; font-size: 9px; letter-spacing: .06em; }
}

/* ----------------------------------------------------------------------------
   19. The story of the day, and what you did today
   Two cards only: one for the owner on the day report, one for the person
   about to count. Short labelled lines, figures in the mono rhythm, no walls of
   prose — the numbers do the talking and each line answers one question.
   -------------------------------------------------------------------------- */

.day-story { padding: 16px !important; margin: 0 0 12px; }
.day-story .recon-top { margin-bottom: 2px; }
.story-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.story-lines li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.story-k { font-size: 12px; font-weight: 500; color: var(--muted); }
.story-v { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.story-v strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.story-v a { color: var(--accent-2); }
.story-foot { margin: 12px 0 0; }
@media (max-width: 400px) {
  .story-lines li { grid-template-columns: 1fr; gap: 1px; }
  .story-k { font-size: 11px; letter-spacing: .02em; }
}

.pre-close { padding: 16px !important; margin: 0 0 12px; }
.pre-close .recon-top { margin-bottom: 2px; }
.pre-close-day { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pre-close-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pre-close-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.pk { color: var(--muted); font-size: 13px; }
.pv { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.pv strong { font-weight: 600; }
.pc-reason { display: block; font-size: 12px; color: var(--muted); }
.pre-close-note { margin: 12px 0 0; }

* ============================================================================
   Zireva Dduka — the ledger pass (3.0, Nov 2026)

   The direction, in one paragraph: this is the day-book of a duka and its
   Mobile Money counter. Surfaces are paper-warm neutral, text is ink, and the
   shop's palette survives as ONE accent (the pen mark). Figures are set in a
   mono so they sit in columns like a ledger. One radius scale, one type scale,
   one easing curve, and no decoration behind the numbers: no comb, no washes,
   no glows, no gradients, no pills for everything, no uppercase labels.

   Loaded after app.min.css, premium.css, workspace.css and dashboard.css, so
   it is the last word. It is deliberately one file: every screen inherits the
   tokens, and the component rules below are the vocabulary the whole app uses
   (btn, card, pill, table, tabs, alert, stat, topbar, tabbar, ask-fab).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens — one ramp for every surface, in every palette

   Doubled `:root` and `!important` on purpose: the old palette blocks later in
   app.css pin their own tokens with `!important` (2.120 "the day tokens are
   pinned after every legacy palette block"), and this layer has to be the last
   word on surfaces. The palette keeps `--accent` and `--brand-band`; everything
   else is paper.
   -------------------------------------------------------------------------- */

:root:root,
:root:root[data-palette="green"],
:root:root[data-palette="uganda"],
:root:root[data-palette="savannah"],
:root:root[data-palette="comb"] {
  color-scheme: light;
  --bg: #f7f4ee !important;
  --card: #fffdf9 !important;
  --surface-2: #f1ebe1 !important;
  --raised: #fffdf9 !important;
  --field-bg: #fffdf9 !important;
  --tabs-bg: transparent !important;

  --text: #1f1b16 !important;
  --text-2: #5e554a !important;
  --muted: #7b7266 !important;
  --heading: #1a2e26;
  --accent-bright: var(--accent);

  --line: rgba(31, 27, 22, .10) !important;
  --line-strong: rgba(31, 27, 22, .20) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 31, 27, 22;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow-lg: 0 1px 2px rgba(31, 27, 22, .05), 0 12px 32px -22px rgba(31, 27, 22, .28);
  --ring: 0 0 0 3px rgba(31, 27, 22, .12);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* The primary action is ink on paper, not a coloured slab. */
  --cta-from: #1f1b16 !important;
  --cta-to: #1f1b16 !important;
  --cta-hover-from: #332c24 !important;
  --cta-hover-to: #332c24 !important;
  --cta-border: #1f1b16 !important;
  --cta-ink: #fffdf9 !important;

  --fab-bg: #fffdf9 !important;
  --fab-ink: #1f1b16 !important;

  --nav-active-bg: transparent !important;
  --nav-active-ink: #fff !important;
  --tab-active-bg: transparent !important;
  --tab-active-ink: #1f1b16 !important;

  --selected-bg: #1f1b16 !important;
  --selected-ink: #fffdf9 !important;
  --chat-me-bg: #1f1b16 !important;
  --chat-me-ink: #fffdf9 !important;
  --chat-send-bg: #1f1b16 !important;
  --chat-send-ink: #fffdf9 !important;

  --dialog-head-from: #1f1b16 !important;
  --dialog-head-to: #1f1b16 !important;

  --ok-bg: #edf3ec !important;
  --ok-ink: #2c5b3c !important;
  --ok-border: #cfdfd1 !important;
  --warn-bg: #fbf0dc !important;
  --warn-ink: #7a4c0b !important;
  --warn-border: #e7d3ae !important;
  --err-bg: #fbecea !important;
  --err-ink: #8f2418 !important;
  --err-border: #e8c4be !important;
  --info-bg: #edf0f5 !important;
  --info-ink: #2b4a6e !important;
  --info-border: #cbd7e4 !important;

  /* Figures and meta sit in a mono, like a written column. */
}

:root:root[data-theme="dark"],
:root:root[data-palette="green"][data-theme="dark"],
:root:root[data-palette="uganda"][data-theme="dark"],
:root:root[data-palette="savannah"][data-theme="dark"],
:root:root[data-palette="comb"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513 !important;
  --card: #1c1a18 !important;
  --surface-2: #262421 !important;
  --raised: #20201d !important;
  --field-bg: #211f1c !important;
  --tabs-bg: transparent !important;

  --text: #efe9de !important;
  --text-2: #b7ad9e !important;
  --muted: #8e8577 !important;
  --heading: #f4efe4;
  --accent-bright: var(--accent);

  --line: rgba(239, 233, 222, .09) !important;
  --line-strong: rgba(239, 233, 222, .18) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 0, 0, 0;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --ring: 0 0 0 3px rgba(239, 233, 222, .16);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* On a dark sheet the primary action is the light of the paper itself. */
  --cta-from: #efe9de !important;
  --cta-to: #efe9de !important;
  --cta-hover-from: #fffdf7 !important;
  --cta-hover-to: #fffdf7 !important;
  --cta-border: #efe9de !important;
  --cta-ink: #1b1916 !important;

  --fab-bg: #1c1a18 !important;
  --fab-ink: #efe9de !important;

  --tab-active-ink: #efe9de !important;
  --selected-bg: #efe9de !important;
  --selected-ink: #1b1916 !important;
  --chat-me-bg: #efe9de !important;
  --chat-me-ink: #1b1916 !important;
  --chat-send-bg: #efe9de !important;
  --chat-send-ink: #1b1916 !important;

  --dialog-head-from: #1c1a18 !important;
  --dialog-head-to: #1c1a18 !important;

  --ok-bg: rgba(107, 176, 132, .12) !important;
  --ok-ink: #9ed3b1 !important;
  --ok-border: rgba(107, 176, 132, .28) !important;
  --warn-bg: rgba(214, 158, 68, .12) !important;
  --warn-ink: #e0bd82 !important;
  --warn-border: rgba(214, 158, 68, .30) !important;
  --err-bg: rgba(214, 106, 96, .12) !important;
  --err-ink: #eba79e !important;
  --err-border: rgba(214, 106, 96, .30) !important;
  --info-bg: rgba(120, 150, 190, .12) !important;
  --info-ink: #a9c2df !important;
  --info-border: rgba(120, 150, 190, .30) !important;
}

/* ----------------------------------------------------------------------------
   The palettes: each keeps its own paper, ink and signals.
   Classic green reads as the type spec asks — warm alabaster paper, deep forest
   headings, charcoal body, terracotta for a loss, sage for a gain, warm gold for
   the pen. The other three carry the same roles in their own key, so a shop that
   chose Uganda gold, Savannah Heritage or Amber Comb gets the same legibility
   without inheriting green's palette.

   Gold that is readable as text is --accent; the brighter --accent-bright is for
   marks and icons only (the Ask spark, a progress bar), where 3:1 is the rule
   for a graphic rather than 4.5:1 for words.
   -------------------------------------------------------------------------- */

/* ---- Classic green: alabaster paper, forest ink ---- */
:root:root[data-palette="green"]:not([data-theme="dark"]) {
  --bg: #f8f5f0 !important;
  --card: #fffdf9 !important;
  --surface-2: #f2ece3 !important;
  --text: #1a2e26 !important;
  --text-2: #46564d !important;
  --muted: #5e6b62 !important;
  --heading: #0f382b;
  --line: rgba(26, 46, 38, .12) !important;
  --line-strong: rgba(26, 46, 38, .22) !important;
  --ok-ink: #2e6f40 !important;
  --ok-bg: #edf4ec !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbeeea !important;
  --accent: #8a6a1f !important;
  --accent-2: #6f5416 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 106, 31, .10);
  --accent-line: rgba(138, 106, 31, .30);
  --on-accent: #fffdf9 !important;
}

/* ---- Uganda gold: clay paper, cocoa ink ---- */
:root:root[data-palette="uganda"]:not([data-theme="dark"]) {
  --bg: #f7f1e6 !important;
  --card: #fffaf1 !important;
  --surface-2: #f1e7d6 !important;
  --text: #2a1b12 !important;
  --text-2: #4f3c2c !important;
  --muted: #6f5a49 !important;
  --heading: #3d2417;
  --line: rgba(42, 27, 18, .13) !important;
  --line-strong: rgba(42, 27, 18, .24) !important;
  --ok-ink: #4f7a3a !important;
  --ok-bg: #eef3e8 !important;
  --err-ink: #a8442e !important;
  --err-bg: #fbede8 !important;
  --accent: #8a5a12 !important;
  --accent-2: #6e470e !important;
  --accent-bright: #c08a2e !important;
  --accent-tint: rgba(138, 90, 18, .10);
  --accent-line: rgba(138, 90, 18, .30);
  --on-accent: #fffaf1 !important;
}

/* ---- Savannah Heritage: porcelain with a plum cast ---- */
:root:root[data-palette="savannah"]:not([data-theme="dark"]) {
  --bg: #f8f3f5 !important;
  --card: #fffbfc !important;
  --surface-2: #f2e9ee !important;
  --text: #241a20 !important;
  --text-2: #4c3a45 !important;
  --muted: #6b5560 !important;
  --heading: #3d1b33;
  --line: rgba(36, 26, 32, .12) !important;
  --line-strong: rgba(36, 26, 32, .22) !important;
  --ok-ink: #356b57 !important;
  --ok-bg: #eaf3ef !important;
  --err-ink: #a8443f !important;
  --err-bg: #fbebea !important;
  --accent: #7a2456 !important;
  --accent-2: #5f1b43 !important;
  --accent-bright: #b06a94 !important;
  --accent-tint: rgba(122, 36, 86, .10);
  --accent-line: rgba(122, 36, 86, .30);
  --on-accent: #fffbfc !important;
}

/* ---- Amber Comb: honey paper, umber ink ---- */
:root:root[data-palette="comb"]:not([data-theme="dark"]) {
  --bg: #f8f2e6 !important;
  --card: #fffaf0 !important;
  --surface-2: #f2e7d2 !important;
  --text: #241a0e !important;
  --text-2: #4a3823 !important;
  --muted: #6f5a3f !important;
  --heading: #3a2410;
  --line: rgba(36, 26, 14, .12) !important;
  --line-strong: rgba(36, 26, 14, .22) !important;
  --ok-ink: #4a7a3a !important;
  --ok-bg: #eef3e6 !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbede9 !important;
  --accent: #8a5a00 !important;
  --accent-2: #6e4700 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 90, 0, .10);
  --accent-line: rgba(138, 90, 0, .30);
  --on-accent: #fffaf0 !important;
}

/* ---- the night faces: same roles, lit from the other side ---- */
:root:root[data-palette="green"][data-theme="dark"] {
  --heading: #f4efe4; --ok-ink: #7fc493 !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="uganda"][data-theme="dark"] {
  --heading: #f6efe3; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e0a458 !important; --accent-2: #c98a3c !important; --accent-bright: #e0a458 !important; --accent-tint: rgba(224, 164, 88, .12); --accent-line: rgba(224, 164, 88, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="savannah"][data-theme="dark"] {
  --heading: #f7eef3; --ok-ink: #7fc4ad !important; --err-ink: #e08a86 !important;
  --accent: #d98cb9 !important; --accent-2: #c4709f !important; --accent-bright: #d98cb9 !important; --accent-tint: rgba(217, 140, 185, .12); --accent-line: rgba(217, 140, 185, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="comb"][data-theme="dark"] {
  --heading: #f7f0e2; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}

/* The top band is the shop's sign, painted in the palette colour; the ledger
   underneath is paper. Keep the sign, drop its glow. */
:root { --brand-band: #123b2c; }
:root[data-palette="uganda"] { --brand-band: #241a13; }
:root[data-palette="savannah"] { --brand-band: #4e1248; }
:root[data-palette="comb"] { --brand-band: #3a1d0e; }

/* ----------------------------------------------------------------------------
   2. No decoration behind the numbers
   -------------------------------------------------------------------------- */

body::before,
body::after,
.comb-glow,
.comb-aura,
.aura-glow,
.login-ambient,
.login-orb,
.login-grid,
.login-trace,
.login-grain,
.login-veil,
.page-glow,
.pip {
  display: none !important;
}

/* The one backdrop the direction keeps: Amber Comb's living honeycomb, drawn by
   assets/js/hive-comb.js (a port of the reference HiveComb.kt). It is a canvas
   behind everything, only under the comb palette; the script keeps it still when
   the system asks for reduced motion. */
.hive-comb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: none;
  pointer-events: none;
}

body {
  background-image: none !important;
}

/* Loops that are not live data. */
.comb-breathe,
.comb-glow,
[class*="breathe"],
[class*="radar"],
.ex-status-orb,
.status-dot,
.subtle-breathing,
.animate-pulse,
.animate-ping {
  animation: none !important;
}

/* A gradient only survives as a whisper inside one neutral, never hue to hue.
   The surfaces below must be opaque: the comb palette paints a canvas behind
   the page, and a transparent card would let the honeycomb run through the
   figures. */
.btn-primary,
.btn-primary:hover,
.ask-fab,
.tabbar,
.avatar,
.avatar-sm,
.avatar-md,
.ex-cta,
.ex-status-open,
header.bot-head,
.offline-strip,
a.ask-fab,
.streak-pip,
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .report-head,
body .card,
body .stat {
  background-image: none !important;
}
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .card,
body .stat {
  background-color: var(--card) !important;
}

/* ----------------------------------------------------------------------------
   3. Type — few sizes, two weights, sentence case
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font);
  font-size: .97rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* The signed-in app is paper. The signed-out scene keeps its own painting. */
body:not(.plain) {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
}

h1, h2, h3, h4 {
  font-weight: 550;
  letter-spacing: -.012em;
  color: var(--text);
}

h1 { font-size: 1.5rem; line-height: 1.15; }
h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.3; }

b, strong { font-weight: 600; }

/* Labels are labels: sentence case, no tracking, no shouting. */
.stat .label,
.table thead th,
.tabs a,
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.eyebrow,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
.ex-sec-head h2,
.ex-more-title,
th {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.stat .label,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
th {
  font-weight: 500 !important;
  color: var(--muted);
}

/* A label is 12px, never 10. */
[class*="kicker"],
[class*="eyebrow"] { font-size: .76rem !important; }

/* Figures: one weight, tabular, in the mono column. */
.num,
.stat .value,
.money,
.ex-amount-num,
.ex-tile-value,
.ex-pair strong,
.ex-rank-fig strong,
.ex-staff-fig strong,
.ex-balance strong,
.ex-meta-item strong,
.fc-amount,
.fc-pct,
.report-head .fig,
td.num,
th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
}

/* Where a big figure carries the screen, it carries the accent. */
.ex-amount-num { color: var(--accent); }

/* ----------------------------------------------------------------------------
   4. Spacing, radius, depth
   -------------------------------------------------------------------------- */

.card {
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

a.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
a.card:active { transform: none; }

@media (min-width: 760px) {
  .card { padding: 24px; }
}

/* Nested radius: inner = outer − padding, never below 4. */
.card .card,
.card .tile,
.card .inner { border-radius: max(4px, calc(var(--radius) - 8px)); }

/* Everything is not a pill. Small things get 4 to 6, controls 8, cards 12. */
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.tabs a,
.ex-chip,
.ex-pill,
.ex-badge,
.ex-mini-pill,
.badge,
.chip,
.tag {
  border-radius: 6px !important;
}

/* ----------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons: one shape, ink fill for the primary, hairline for the rest. */
.btn {
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font: 500 .95rem/1.2 var(--font);
  box-shadow: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}

.btn:hover { background: var(--surface-2); border-color: var(--line-strong); box-shadow: none; }
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-primary:hover {
  background: var(--cta-from);
  border-color: var(--cta-border);
  color: var(--cta-ink);
  box-shadow: none;
}
.btn-primary:hover { background: var(--cta-hover-from); }
.btn-primary:active { transform: translateY(1px); }

.btn-danger { background: var(--card); border-color: var(--err-border); color: var(--err-ink); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err-ink); }

.btn-block { min-height: 52px; padding: .85rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-small { min-height: 36px; padding: .35rem .7rem; font-size: .85rem; border-radius: 6px; }

/* Alerts: a tinted sheet with one rule down the side, no shadow, no entrance. */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-left-width: 3px;
  box-shadow: none;
  animation: none;
}

/* Cards keep only a hairline. */
.card { border: 1px solid var(--line); background: var(--card); }

/* Tabs: a text row with an underline on the one you are in, not a row of pills. */
.tabs { gap: 20px; margin-bottom: 16px; border: 0; border-radius: 0; background: transparent; overflow-x: auto; }
.tabs a {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
}
.tabs a.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabs a:hover { color: var(--text); }

/* Tables: a hairline grid, sentence-case header, figures on the right. */
.table { font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  font-size: .8rem;
  color: var(--muted);
}
.table tbody tr:hover { background: var(--surface-2); }
.table thead th:first-child, .table thead th:last-child { border-radius: 0; }

/* Top bar: the shop's sign, solid — no glass here. The glass belongs to the bottom
   bar, where content meets a fixed edge as you scroll. */
.topbar {
  background: var(--brand-band) !important;
  background-image: none !important;
  color: #fff;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { border: 0; }
.nav a { color: rgba(255, 255, 255, .88); border-radius: 8px; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }

/* Bottom bar: paper, a hairline, docked to the edge like a tab bar, the active
   item marked with the pen. Every palette used to paint its own floating glass
   here — an inset pill with a shadow, a plum gradient in Savannah, a blur in
   every one of them, near-white labels on cream in Uganda — so the geometry,
   the fill, the labels and the marker are pinned for all four. */
:root { --card-glass: rgba(255, 253, 249, .72); }
:root[data-theme="dark"] { --card-glass: rgba(28, 26, 24, .88); }

:root:root .tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 56px;
  padding: .3rem .4rem calc(.35rem + env(safe-area-inset-bottom)) !important;
  border-radius: 0 !important;
  background: var(--card) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
/* The same glass as the top bar: the docked bar blurs what passes under it. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root:root .tabbar {
    background: var(--card-glass) !important;
    -webkit-backdrop-filter: saturate(170%) blur(22px) !important;
    backdrop-filter: saturate(170%) blur(22px) !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root:root .tabbar { background: var(--card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* The room the docked bar takes from the bottom of every screen. */
body.has-tabbar { --tabbar-h: calc(56px + env(safe-area-inset-bottom)); }

.tabbar a, .tabbar a:visited { color: var(--text-2) !important; font-weight: 500; }
.tabbar a.active, .tabbar a[aria-current="page"] { color: var(--text) !important; font-weight: 550; background: transparent !important; }
/* The palette blocks colour the bar's links with their own !important rules
   (Uganda and Savannah end up near-white on paper), so the labels are pinned
   one specificity step above them. */
:root:root .tabbar a,
:root:root .tabbar a:visited { color: var(--text-2) !important; }
:root:root .tabbar a.active,
:root:root .tabbar a[aria-current="page"] { color: var(--text) !important; }
.tabbar a .pip { background: transparent !important; box-shadow: none !important; border: 0 !important; transform: none !important; }
.tabbar a.active::after { display: none !important; }
.tabbar a.active::before,
.tabbar a[aria-current="page"]::before {
  content: "";
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Ask Zireva: a quiet paper chip. A circle on a phone, so it never sits on a figure. */
.ask-fab {
  background: var(--fab-bg);
  color: var(--fab-ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(31, 27, 22, .10);
  font-weight: 500;
  border-radius: 8px;
}
.ask-fab svg { color: var(--accent); }
.ask-fab:hover { background: var(--surface-2); }

/* Fields */
input, select, textarea, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  color: var(--text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* Links take the pen, and only the pen. */
a { color: inherit; }
.link, .pw .link { color: var(--accent); font-weight: 500; }

/* ----------------------------------------------------------------------------
   6. The owner's Home — the ledger itself
   -------------------------------------------------------------------------- */

/* Every app page gets a desk's width, not a phone's column on a laptop. */
body.dash-exec .wrap,
body.shop-home .wrap {
  max-width: 1160px;
  padding-left: 32px;
  padding-right: 32px;
}
@media (min-width: 1000px) {
  /* One vertical line runs from the brand mark down through every page. */
  body main.wrap.app-page {
    max-width: 1160px;
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (max-width: 720px) {
  body.dash-exec .wrap,
  body.shop-home .wrap { padding-left: 16px; padding-right: 16px; }
}

.exec-dash { padding-bottom: 16px; }

/* The sign over the counter: shop name, place, the day's state. */
.ex-head { margin-bottom: 20px; padding: 0; }
.ex-shop { font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 2px; }
.ex-sub { font-size: .85rem; color: var(--muted); }

/* Day state: a stamped word, not a glowing pill. */
.ex-status {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 10px;
  gap: 6px;
  box-shadow: none;
}
.ex-status-open { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-ink); }
.ex-status-orb { background: none; box-shadow: none; }
.ex-status-orb svg { width: 14px; height: 14px; }
.ex-status-radar, .ex-status-shine, .ex-status-rest { display: none; }
.ex-status-label { font-size: .78rem; font-weight: 500; }

/* The month's total: the one big written figure, on a ruled line. */
.fig-hero,
.ex-pulse {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 16px;
}
.ex-pulse-top { margin-bottom: 8px; gap: 4px 8px; align-items: center; flex-wrap: wrap; }
.ex-pulse-top .ex-eyebrow { min-width: 0; flex: 1 1 auto; }
.ex-pulse-top .ex-ghost { flex: none; margin-left: auto; }
.ex-eyebrow {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ex-eyebrow-soft { color: var(--muted); font-weight: 400; }
.ex-ghost { color: var(--accent); font-weight: 500; font-size: .85rem; }

.ex-amount { margin: 4px 0 0; align-items: baseline; gap: 10px; }
.ex-amount-unit {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ex-amount-num {
  font-family: var(--font);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ex-trend { margin-top: 8px; gap: 10px; }
.ex-trend-note { font-size: .82rem; color: var(--muted); }
.ex-delta { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; }
.ex-delta.is-good { color: var(--ok-ink); }
.ex-delta.is-bad { color: var(--err-ink); }

/* The arithmetic row, closed by the accountant's double rule: the figure above
   is the total, the three components below it. This is the signature, and it
   appears only where a figure is settled. */
.ex-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 3px double var(--line-strong);
  gap: 24px;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.ex-meta-k { color: var(--muted); }
.ex-meta-item strong { font-size: .88rem; color: var(--text); }
.ex-meta-dot { display: none; }
.ex-meta-item { gap: 6px; }

.ex-chip {
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 500;
  padding: 2px 8px;
}
.ex-chip-bad { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-border); }
.ex-chip-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.ex-chip-info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-border); }
.ex-chip-service { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* "Ask about this figure" becomes a quiet link with one pen mark. */
.ask-number { margin: 12px 0 16px; }
.ask-number a, .ask-number a:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ask-number a .ico { width: 14px; height: 14px; }
.ask-number a:hover { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------------------
   5b. Report figures (app/lib/Metric.php) — the same ledger, on every screen
   -------------------------------------------------------------------------- */

.fig-hero,
.fig-hero.is-pos,
.fig-hero.is-neg,
.fig-hero.is-zero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 20px;
}

.fig-hero .fig-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.fig-hero .fig-label .ico { width: 16px; height: 16px; color: var(--muted); }

.fig-hero-value,
.fig-hero.is-pos .fig-hero-value,
.fig-hero.is-neg .fig-hero-value {
  font-family: var(--font);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 6px;
}
.fig-hero.is-neg .fig-hero-value { color: var(--err-ink); }
.fig-unit {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.fig-note { font-size: .85rem; color: var(--muted); }
.fig-delta { font-family: var(--font-mono); font-size: .82rem; }
.fig-delta.is-good { color: var(--ok-ink); }
.fig-delta.is-bad { color: var(--err-ink); }

/* The strip of secondary figures: one ruled band, not a row of mini cards. */
.fig-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 4px 20px;
}
.fig-strip > * { border-top: 1px solid var(--line); padding: 14px 0; }
.fig-strip > *:first-child { border-top: 0; }
.fig-strip .fig-label, .fig-strip .k { font-size: .8rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.fig-strip .fig-value, .fig-strip strong { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* The context line above a screen: "Money · Tue 17 Nov". */
.ws-context { padding: 0 0 6px; }
.ws-context-k {
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ws-context-dot { display: none; }
.ws-context time { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }

/* Needs you: one folded row, the list inside. */
.ex-needs,
.ex-card,
.ex-health,
.ex-restock,
.ex-perf {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 12px;
}
.ex-needs summary { padding: 14px 16px; gap: 10px; }
.ex-needs-title { font-size: .95rem; font-weight: 550; }
.ex-needs-body { padding: 4px 16px 16px; }
.ex-need { padding: 12px 0; border-top: 1px solid var(--line); gap: 10px; }
.ex-need-btn { color: var(--accent); font-weight: 500; font-size: .82rem; }
.ex-need-dot { width: 6px; height: 6px; border-radius: 2px; }
.ex-need-bad .ex-need-dot { background: var(--err-ink); }
.ex-need-warn .ex-need-dot { background: var(--warn-ink); }
.ex-need-info .ex-need-dot { background: var(--info-ink); }
.ex-needs-sub { margin: 16px 0 4px; font-size: .78rem; color: var(--muted); }

/* The setup card is work to do, not a different material. */
.ex-setup {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: none;
}

/* On a phone the three components of the total stay on one line. */
@media (max-width: 520px) {
  .ex-meta { gap: 12px; font-size: .8rem; }
  .ex-meta-item { gap: 4px; }
  .ex-eyebrow { font-size: .8rem; }
  .ex-tile-sub { font-size: .78rem; }
}

/* The four drivers: numbers with a label, a change, and nothing else. */
.ex-grid { gap: 12px; margin-bottom: 12px; }
.ex-tile {
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 16px;
  gap: 4px;
}
.ex-tile:hover { border-color: var(--line-strong); }
.ex-tile-top { margin-bottom: 6px; }
.ex-tile-label { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ex-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--muted) !important;
}
.ex-ico.is-brand, .ex-ico.is-good, .ex-ico.is-warn, .ex-ico.is-bad { background: transparent !important; color: var(--muted) !important; }
.ex-ico .ico, .ex-ico svg { width: 16px; height: 16px; }
/* A tile figure is as wide as its card: it shrinks on a phone before it can reach
   the edge, and the unit sits on its own line there so the amount gets the whole
   width. A figure never breaks: "10,544,70 / 3" is not a number. */
.ex-tile-value {
  font-size: clamp(.95rem, 3.4vw, 1.35rem) !important;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.ex-tile-value .ex-unit {
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  margin-right: 5px;
}
@media (max-width: 520px) {
  .ex-tile-value .ex-unit { display: block; margin: 0 0 2px; }
  .ex-tile-value { font-size: clamp(.85rem, 4.2vw, 1.05rem) !important; }
}
.ex-tile-sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.ex-tile-sub.is-warn { color: var(--warn-ink); }
.ex-tile-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ex-tile-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-tile-badge { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.ex-bar { height: 3px; border-radius: 2px; }
.ex-bar::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
.ex-bar::-moz-progress-bar { background: var(--accent); border-radius: 2px; }
.ex-pair { gap: 4px; font-size: .82rem; }
.ex-pair-k { color: var(--muted); }
.ex-pair strong { color: var(--text); }

/* Shop health and the restock nudge: a line of text with one state word. */
.ex-row { padding: 14px 16px; }
.ex-row-label { font-size: .9rem; font-weight: 550; color: var(--text); letter-spacing: 0; text-transform: none; }
.ex-row-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ex-pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
}
.ex-pill-good { color: var(--ok-ink); border-color: var(--ok-border); background: var(--ok-bg); }
.ex-pill-warn { color: var(--warn-ink); border-color: var(--warn-border); background: var(--warn-bg); }
.ex-pill-bad { color: var(--err-ink); border-color: var(--err-border); background: var(--err-bg); }
.ex-pill-neutral { color: var(--muted); }
.ex-badge { border-radius: 4px; font-size: .74rem; font-weight: 500; padding: 1px 6px; }
.ex-badge.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ex-badge.is-good { background: var(--ok-bg); color: var(--ok-ink); }
.ex-history-dot { width: 5px; height: 5px; border-radius: 1px; }
.ex-mini-pill { border-radius: 4px; background: var(--surface-2); color: var(--muted); font-weight: 500; }

/* Best earners / on shift: two lists, one ruler between them. */
.ex-perf { padding: 20px; }
.ex-sec-head { margin-bottom: 8px; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: .95rem; font-weight: 550; letter-spacing: 0; }
.ex-sec-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-rank { margin: 0; }
.ex-rank-row { padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.ex-rank-row:last-child { border-bottom: 0; }
.ex-rank-num { width: 18px; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.ex-rank-name { font-size: .9rem; }
.ex-rank-fig strong { font-size: .9rem; color: var(--text); }
.ex-rank-fig small { font-size: .76rem; color: var(--muted); }
.ex-divider { height: 1px; background: var(--line-strong); margin: 16px 0; }
.ex-staff-row { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.ex-staff-row:last-child { border-bottom: 0; }
.ex-avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.ex-staff-name { font-size: .9rem; }
.ex-staff-sub { font-size: .78rem; color: var(--muted); }
.ex-staff-fig small { color: var(--muted); }

/* More: the tail of the page, opened on demand. */
.ex-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.ex-more summary { padding: 14px 16px; }
.ex-more-title { font-weight: 550; }
.ex-quick a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .88rem; background: transparent; }
.ex-quick a:hover { background: var(--surface-2); }
.ex-activity li, .ex-balance { font-size: .85rem; }
.ex-activity time { color: var(--muted); font-family: var(--font-mono); font-size: .76rem; }

/* On a wide screen this is a ledger, not a stretched phone: one column of
   facts, one rail for what needs the owner. */
@media (min-width: 1080px) {
  .exec-dash {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px 28px;
    align-items: start;
  }
  .ex-head, .ex-setup, .ex-more { grid-column: 1 / -1; }
  .fig-hero, .ex-pulse, .ex-grid, .ex-perf { grid-column: 1; }
  /* The rail is pinned beside the main column and flows on its own, so the
     left column never waits for it. */
  .ex-rail { grid-column: 2; grid-row: 3 / span 4; display: flex; flex-direction: column; gap: 12px; align-self: start; }
  .exec-dash > * { margin-bottom: 0; }
  .ex-rail > * { margin-bottom: 0; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Surfaces that used to be a gradient need a real fill, not a hole. */
.avatar, .avatar-sm, .avatar-md {
  background: var(--surface-2) !important;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.me-btn .avatar-sm { border-radius: 50%; }

.ex-cta {
  background: var(--cta-from);
  color: var(--cta-ink);
  border: 1px solid var(--cta-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ex-cta:hover { background: var(--cta-hover-from); }

/* Statement rows: a group heading is a quiet label, not a shout. */
tr.group td, tr.group th {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 18px;
  background: transparent;
}
.sub-head { font-size: .9rem; font-weight: 550; color: var(--text-2); letter-spacing: 0; }

@media (max-width: 520px) {
  /* On a phone the shop's name is the page title, so the chip in the header is noise. */
  .topbar .shop-name, .topbar .shop-switch { display: none; }
  .topbar-inner { gap: 6px; }
}

/* ----------------------------------------------------------------------------
   8. The Hub vocabulary — the header actions and lists of every screen
      (app/lib/Hub.php: earnings, days, watch, team, subscription, the counter)
   -------------------------------------------------------------------------- */

.hub-pills { gap: 8px; }
.hub-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px !important;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
}
.hub-pill:hover { background: var(--surface-2); border-color: var(--line-strong); }
.hub-pill .ico { width: 16px; height: 16px; color: var(--muted); }

.hub-hero-btn,
.hub-chip {
  border-radius: 12px !important;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
}
.hub-hero-btn:hover, .hub-chip:hover { border-color: var(--line-strong); background: var(--card); }

.hub-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.hub-row { padding: 14px 16px; border-top: 1px solid var(--line); }
.hub-row:first-child { border-top: 0; }
.hub-row:hover { background: var(--surface-2); }

/* Nothing to do is a quiet line; something to do keeps a sand rule down its side. */
.hub-list.is-todo { background: var(--card); border-color: var(--line); border-left: 3px solid var(--warn-ink); }
.hub-list.is-todo .hub-txt span, .hub-list.is-todo .hub-txt small { color: var(--muted); }

/* Icons are bare coloured glyphs, one hue per topic (the OnePlus Settings way):
   no tile, no circle, just the mark in its own colour on paper. The wash of tints
   is deep enough to read at 17 px and still hold 4.5:1 on the card. */
:root:root:root {
  --tone-green-ink: #1c7a4a !important;
  --tone-blue-ink: #2a63bd !important;
  --tone-yellow-ink: #96651a !important;
  --tone-rose-ink: #b3392c !important;
  --tone-violet-ink: #6a44c4 !important;
  --tone-teal-ink: #10756f !important;
  --tone-orange-ink: #b05a12 !important;
  --tone-slate-ink: #55635b !important;
}
:root:root:root:root[data-theme="dark"] {
  --tone-green-ink: #6fce9b !important;
  --tone-blue-ink: #7db0ff !important;
  --tone-yellow-ink: #e8c069 !important;
  --tone-rose-ink: #f09a8b !important;
  --tone-violet-ink: #b39bf5 !important;
  --tone-teal-ink: #6fd0c9 !important;
  --tone-orange-ink: #eda469 !important;
  --tone-slate-ink: #a9b6ae !important;
}

.hub-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--tone-slate-ink) !important;
}
.hub-ico .ico { width: 17px; height: 17px; }
.hub-ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-ico.lang-code { font-size: .68rem; font-weight: 700; letter-spacing: .02em; }

.hub-txt strong { font-size: .92rem; font-weight: 500; color: var(--text); }
.hub-txt span, .hub-txt small { font-size: .82rem; color: var(--muted); }
.hub-badge {
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  padding: 1px 6px;
}
.hub-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.hub-chev { color: var(--muted); }

/* The tab row never paints a box behind the active item. */
nav.tabs a, nav.tabs a.active, .tabs a, .tabs a.active {
  background: transparent !important;
  box-shadow: none !important;
}
nav.tabs a.active, .tabs a.active { border-bottom-color: var(--accent) !important; }

/* Sentence case for labels, wherever they live: the app learned "uppercase + tracking" in a
   hundred small places, and a label is a label. */
[class$="-k"],
[class$="-label"],
[class$="-kicker"],
[class$="-eyebrow"],
[class$="-cap"],
[class$="-head-k"],
.bal span,
.metric .k,
.stat .label,
.table thead th,
.day-badge,
.acc-k,
.legend-k {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
[class$="-k"],
[class$="-kicker"],
[class$="-eyebrow"],
.bal span,
.metric .k {
  font-weight: 500 !important;
}

/* "You are in shop mode" is a note, not a banner. */
.mode-bar {
  background: var(--card) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text);
  padding: 10px 16px;
  font-size: .85rem;
}
.mode-bar .btn { min-height: 32px; font-size: .82rem; }

/* The signed-out buttons (login and the three-step sign-up) share the app's one shape. */
.login-cta, .btn-enter, .signup-next, .login-continue { border-radius: 8px !important; }
.btn:disabled, .btn[disabled] {
  opacity: 1;
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

/* ----------------------------------------------------------------------------
   7. Chrome details that every screen shares
   -------------------------------------------------------------------------- */

/* "Ask Zireva" floats again — it is the app's one companion, and it stops having
   a meaning when it is filed among the header icons. It gets out of the way by
   itself: while the page is scrolling it fades almost to nothing, and it comes
   back when the scrolling stops (or on hover / focus, so it is never lost).
   On screen it is the one solid thing over the paper — ink on light, paper on
   dark, with a real shadow — because a paper capsule over paper cards simply
   disappeared. */
.ask-fab,
a.ask-fab {
  right: 12px;
  bottom: calc(var(--tabbar-h) + 12px);
  height: 44px;
  padding: 0 16px 0 13px;
  gap: 8px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 550;
  background: var(--cta-from) !important;
  background-image: none !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .18) !important;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .15s var(--ease), box-shadow .2s var(--ease);
}
.ask-fab svg { color: var(--accent-bright) !important; }
.ask-fab:hover,
a.ask-fab:hover {
  background: var(--cta-hover-from) !important;
  color: var(--cta-ink) !important;
  transform: translateY(-1px);
}
.ask-fab:active { transform: translateY(0); }
.ask-fab.is-away {
  opacity: .10;
  transform: scale(.96);
}
/* Something tappable is under it: it steps back, so the control below still reads. */
.ask-fab.is-blocking {
  opacity: .45;
  transform: scale(.98);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35) !important;
}
.ask-fab.is-away:hover,
.ask-fab.is-away:focus-visible {
  opacity: 1;
  transform: none;
}
.ask-fab .ask-fab-label { white-space: nowrap; }
main { padding-bottom: calc(var(--tabbar-h) + 72px); }

/* ----------------------------------------------------------------------------
   9. The Ask Zireva sheet
   The head used to be a dark gradient with white text; with the gradient gone the
   white title sat on paper (1.03:1 in light) and the header icons were white on
   white. The sheet now follows the ledger: paper, ink, hairline.
   -------------------------------------------------------------------------- */

.bot-panel {
  background: var(--card) !important;
  border: 1px solid var(--line);
  color: var(--text);
}
.bot-head,
header.bot-head {
  background: var(--card) !important;
  background-image: none !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.bot-title strong { color: var(--text) !important; font-weight: 600; }
.bot-title small, .bot-sub { color: var(--muted) !important; opacity: 1; }

.bot-x,
[data-bot-new],
[data-bot-list],
[data-bot-back] {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--text-2) !important;
  opacity: 1;
}
.bot-x:hover,
[data-bot-new]:hover,
[data-bot-list]:hover,
[data-bot-back]:hover { background: var(--surface-2) !important; color: var(--text) !important; }
.bot-x .ico, [data-bot-new] .ico, [data-bot-list] .ico, [data-bot-back] .ico { color: inherit; stroke: currentColor; }

/* Suggestions: a hairline tag with ink text, not gold on paper. */
.bot-chip {
  border: 1px solid var(--line-strong) !important;
  background: var(--card) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  font-weight: 500;
  padding: 8px 12px;
}
.bot-chip:hover { background: var(--surface-2) !important; border-color: var(--text-2) !important; }

.bot-bubble { background: var(--surface-2); color: var(--text); }
.bot-msg-me .bot-bubble { background: var(--chat-me-bg); color: var(--chat-me-ink); }
.bot-meta { color: var(--muted); }
.bot-note { color: var(--text-2) !important; }

.bot-input { background: var(--card); border-top: 1px solid var(--line); }
[data-bot-text] {
  background: var(--field-bg) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}
[data-bot-text]::placeholder { color: var(--muted); }

.bot-mic {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text-2) !important;
}
.bot-mic .ico { color: inherit; }
.bot-mic.is-listening { background: var(--err-ink) !important; border-color: var(--err-ink) !important; color: #fff !important; }
[data-bot-send] {
  background: var(--cta-from) !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
}
[data-bot-send] .ico { color: inherit; }
.bot-act { color: var(--accent); font-weight: 500; }

@media (min-width: 900px) {
  .ask-fab {
    right: 24px;
    bottom: 24px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: .85rem;
  }
  .ask-fab svg { width: 16px; height: 16px; }
}

/* One easing curve, two durations. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* One entrance on load, nothing flying in from the sides. */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-in, .page-enter { animation: page-in .3s var(--ease) both; }

/* ----------------------------------------------------------------------------
   10. Two faces: a brand face and a data face

   Plus Jakarta Sans carries the words that give the app its character: the shop's
   name, the screen and card titles, the buttons, the brand lockup. Inter carries
   everything that has to stay sharp in a dense table — body, meta, timestamps and
   every figure, tabular and unbroken.

   Weights: 700 titles · 800 the primary metric · 600 card titles and buttons ·
   500 labels · 400 body. Sizes are px, as the type spec reads.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-brand: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-data: var(--font);
  --font-display: var(--font-brand);
  --font-mono: var(--font);        /* figures stay in the data face, never a third family */
}

/* ---- the brand face ------------------------------------------------------ */

h1, h2, h3,
.ex-shop,
.report-head h1,
.ex-sec-head h2, .ex-sec-head h3,
.ex-eyebrow, .ex-tile-label, .hub-label,
.inv-empty-title,
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong, .ex-need-txt,
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta, .inv-empty-quiet,
.ex-tile-link, .ex-sec-link, .ask-number a,
.bot-title strong,
.brand .lock b, .brand .lock small, .brand-lockup-word {
  font-family: var(--font-brand);
}

/* The app's own screens (Money, Stock, Profit, Settings) set their headings on the
   page wrapper, one step above a bare h1 — matched here so the brand scale wins. */
.app-page > h1:first-of-type,
.app-page > .report-head h1,
.app-page > .hero h1,
.app-page > .page-head h1,
.app-page h1, .report-head h1, .page-head h1, main h1 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
.app-page .card h2, .app-page h2, .card h2, .report-head h2 { font-family: var(--font-brand); font-size: 16px; font-weight: 600; letter-spacing: -.008em; color: var(--heading); }
.app-page .card h3, .app-page h3, .card h3, .report-head h3 { font-family: var(--font-brand); font-size: 15px; font-weight: 600; letter-spacing: -.006em; color: var(--heading); }

/* The sign over the counter: 20px / 700 / 1.2 */
.ex-shop,
h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
h2 { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; color: var(--heading); }
h3 { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.006em; color: var(--heading); }

/* The primary metric: 28px / 800 / -0.02em, tabular. */
.fig-hero-value,
.ex-amount-num {
  font-family: var(--font-brand);
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.06;
  letter-spacing: -.02em !important;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 700px) {
  .fig-hero-value, .ex-amount-num { font-size: 32px !important; }
}

/* Card titles and section heads: 14–16px / 600. */
.ex-eyebrow { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.005em !important; }
.ex-eyebrow .ex-sep { margin: 0 .3em; }
.ex-tile-label { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.004em !important; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: 15px !important; font-weight: 600 !important; }
.inv-empty-title { font-size: 17px !important; font-weight: 700 !important; }
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong { font-weight: 600 !important; }

/* Buttons: 600, 14px. */
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta { font-weight: 600 !important; }
.btn { font-size: 14px; }
.btn-small { font-size: 13px; }
.hub-pill { font-size: 13px !important; }

/* ---- the data face ------------------------------------------------------- */

.ex-tile-value, .ex-pair strong, .ex-meta-item strong, .ex-rank-fig strong,
.ex-staff-fig strong, .ex-balance strong, .stat .value,
.num, .money, .fc-amount, .fc-pct, td.num, th.num {
  font-family: var(--font-data);
}
/* Every figure, in whichever face it sits, is tabular and never breaks. */
.num, .money, .stat .value, .ex-amount-num, .ex-tile-value, .ex-pair strong,
.ex-meta-item strong, .ex-rank-fig strong, .ex-staff-fig strong, .ex-balance strong,
.fig-hero-value, .fig-num, .fc-amount, .fc-pct, td.num, th.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ex-tile-value { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
.ex-pair strong { font-size: 14px; font-weight: 600 !important; }
.ex-meta-item strong { font-size: 13px; font-weight: 600 !important; }
.ex-rank-fig strong { font-size: 14px !important; font-weight: 700 !important; }
.ex-rank-fig small, .ex-staff-fig small { font-size: 12px; }

/* Body, meta and timestamps: 13px, 400–500. */
.ex-tile-sub, .ex-row-sub, .ex-meta, .ex-meta-k, .ex-tile-badge, .ex-needs-sub,
.ex-activity li, .inv-empty-copy, .hub-txt span, .ex-rank-name, .ex-staff-name,
.ex-tile-link, .ex-sec-link, .ask-number a {
  font-size: 13px;
}
.ex-tile-sub, .ex-row-sub, .ex-meta-k, .ex-meta, .ex-activity li { font-weight: 400; }
.ex-tile-link, .ex-sec-link, .ex-rank-name, .ex-staff-name { font-weight: 500; }

/* Small print: chips, pills, badges, status. */
.pill, .ex-pill, .ex-badge, .ex-chip, .ex-status-label, .ex-mini-pill,
.ex-tile-badge, .ex-staff-sub, .ex-needs-sub { font-size: 12px !important; }

/* A figure never wraps; at 320 px the statement gives it a smaller size instead. */
@media (max-width: 400px) {
  .table td.num, .table th.num, .table tr.total td, .table tr.total th { font-size: .82rem !important; }
}

/* ----------------------------------------------------------------------------
   11. The empty state of a list (invoices, quotations, unpaid, delivery and
   credit notes): what the list is for, what it will hold, and the one action
   that starts it. A panel, not a sentence with an icon.
   -------------------------------------------------------------------------- */

.inv-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: none;
}
.inv-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.inv-empty-ico .ico { width: 18px; height: 18px; }
.inv-empty-title {
  grid-column: 2;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.inv-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 52ch;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.inv-empty-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.inv-empty-cta {
  min-height: 44px;
  padding: 0 18px;
  gap: 6px;
  font-size: .92rem;
}
.inv-empty-cta .ico { width: 15px; height: 15px; }
.inv-empty-quiet {
  font-size: .86rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.inv-empty-quiet:hover { color: var(--text); border-bottom-color: var(--text-2); }

@media (max-width: 480px) {
  .inv-empty { padding: 20px; }
  .inv-empty-actions { grid-column: 1 / -1; }
}

/* A row header keeps its parts on one line: the label gives way, the pill and the
   chevron never drop to a second row. */
.ex-row-head { flex-wrap: nowrap; min-width: 0; }
.ex-row-head .ex-row-label { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .ex-row-head .ex-pill { font-size: 11px !important; padding: 1px 6px; } }
.ex-row-head .ex-ico, .ex-row-head .ex-chev, .ex-row-head .ex-pill, .ex-row-head .ex-row-sub { flex: none; }

/* ----------------------------------------------------------------------------
   12. The last three narrow-screen spills
   Three older components assumed a short English label. On a 320 px phone with a
   long translation they hid or pushed out text; they wrap now.
   -------------------------------------------------------------------------- */

/* The sign-up business picker: two lines are better than an ellipsis. */
.pk-sel {
  white-space: normal !important;
  height: auto !important;
  min-height: 48px;
  line-height: 1.3;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 360px) {
  /* System / Light / Dark: three words in a pill need less side padding. */
  .mode-switch .mode-switch-opt { padding-left: 8px; padding-right: 8px; font-size: .74rem; }
  .mode-switch { gap: 2px; }
  /* The phone-in wizard's primary button: 2 px of padding was pushing it out. */
  .phone-wizard-nav .btn-block { padding-left: .6rem; padding-right: .6rem; font-size: .95rem; }
}

/* The wizard's primary button can never be wider than its row. */
.phone-wizard-nav .btn-block { box-sizing: border-box; min-width: 0; max-width: 100%; }
.phone-wizard-nav .btn-block > * { min-width: 0; }

@media (max-width: 340px) {
  .mode-switch .mode-switch-opt { padding-left: 6px; padding-right: 6px; font-size: .7rem; letter-spacing: 0; }
}
.phone-wizard-nav .btn-block { padding-left: 14px !important; padding-right: 14px !important; }

/* ----------------------------------------------------------------------------
   13. The manager approval gate
   app.css made this one flex row: the sentence and the form split the width 133/133
   on a phone, which left the PIN field 37 px wide — you could tap it, type, and see
   nothing. The words now take the row and the field gets a real width.
   -------------------------------------------------------------------------- */

.manager-gate {
  display: block;
  padding: 16px !important;
  margin: 0 0 12px;
}
.manager-gate > div { display: block; min-width: 0; }
.manager-gate strong { display: block; font-size: 1rem; }
.manager-gate p { margin: 4px 0 0; max-width: 52ch; }

/* A grid row, not a flex row: the field takes what is left and the button never
   drops under it, whatever the input's own width rule says. */
.manager-gate .manager-gate-form, form.manager-gate-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}
.manager-gate-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  letter-spacing: .12em;
}
.manager-gate-form .btn { min-height: 44px; justify-self: end; white-space: nowrap; }

/* The approved strip keeps its row: tick, sentence, Lock. */
.manager-gate.is-open { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manager-gate.is-open > div { flex: 1 1 200px; }
.manager-gate.is-open .inline-form { flex: 0 0 auto; }

/* Counting by notes: the label sat beside the box, so at 320 px the box was 26 px
   wide — two digits and a caret. The label goes above the box on a phone and the
   box takes the whole cell. */
@media (max-width: 480px) {
  .denom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: stretch; }
  .denom span { min-width: 0; text-align: left; font-size: .8rem; }
  .denom input { width: 100%; min-width: 0; }
}

/* ----------------------------------------------------------------------------
   14. The staff dashboard, three micro-adjustments
   -------------------------------------------------------------------------- */

/* 1. The greeting pill floats: an accent hairline instead of the grey rule, a
   hairline of light along the top edge, and a shadow that only reaches the card
   under it. */
.hero-greeting {
  border: 1px solid var(--accent-line, rgba(138, 106, 31, .30));
  background: var(--brand-tint);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 1px 2px rgba(16, 24, 20, .05),
    0 8px 20px -14px rgba(16, 24, 20, .45);
}
[data-theme="dark"] .hero-greeting {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(0, 0, 0, .35),
    0 10px 24px -16px #000;
}

/* 2. The To do counter wears the palette, not a system blue. A deep green tint, not
   the bronze one: "tasks" and "floats" are already amber, and two warm chips side
   by side read as the same thing. Green says routine work, amber says look at this. */
:root:root .ex-chip-info {
  background: var(--ok-bg, #edf4ec) !important;
  border-color: rgba(46, 111, 64, .24) !important;
  color: var(--ok-ink, #2e6f40) !important;
}
[data-theme="dark"] :root:root .ex-chip-info,
:root:root[data-theme="dark"] .ex-chip-info {
  border-color: rgba(127, 196, 147, .28) !important;
}

/* The quiet CTA beside the primary one in the month card was cream on cream — 1:1,
   a button you cannot read. It is a paper button with ink text again. */
.exec-dash .shop-reward a.ex-cta-quiet,
.exec-dash .shop-reward a.ex-cta-quiet:hover,
.shop-pulse a.ex-cta-quiet,
.shop-pulse a.ex-cta-quiet:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

/* 3. The progress meta reads in two beats: what is left of the target, then when
   the month ends. The timeline no longer rides on the same line as the money. */
body.shop-home .shop-reward-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.4;
}
body.shop-home .shop-reward-meta span:last-child {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: .74rem;
}
body.shop-home .shop-reward-meta span:last-child::before { content: none; }
body.shop-home .shop-reward-meta span:not(:first-child)::before { content: "·"; margin-right: .4rem; color: var(--line-strong); }

/* ----------------------------------------------------------------------------
   15. The negative tone, softened into the warm palette
   A deficit still has to read as a deficit, so the tone stays terracotta — but a
   muted one (burnt umber on sand) instead of the system-alert red that fought the
   cream and bronze. One set of values for every palette, day and night.
   -------------------------------------------------------------------------- */

:root:root:root:root:root {
  --danger: #9a4f3b !important;
  --danger-ink: #8a4426 !important;
  --danger-border: #e3c3ab !important;
  --err-ink: #9a4f3b !important;
  --err-bg: #f7e6d9 !important;
  --err-border: #e3c3ab !important;
  --neg-bg: #f8ece2 !important;
  --neg-border: #e8cdb8 !important;
}

:root:root:root:root:root[data-theme="dark"] {
  --danger: #e59c84 !important;
  --danger-ink: #f0b9a2 !important;
  --danger-border: rgba(224, 150, 120, .30) !important;
  --err-ink: #e59c84 !important;
  --err-bg: rgba(196, 120, 95, .14) !important;
  --err-border: rgba(224, 150, 120, .30) !important;
  --neg-bg: rgba(196, 120, 95, .10) !important;
  --neg-border: rgba(224, 150, 120, .26) !important;
}

/* The urgent chip is the same terracotta now, one step stronger than "to do" so
   the order still reads: urgent, to do, info, services. */
:root:root .ex-chip-bad {
  background: var(--err-bg) !important;
  color: var(--danger-ink) !important;
  border-color: var(--err-border) !important;
}

/* 3. The Ask capsule sat 12px above the docked bar and crowded it; it keeps its
   distance from the bar and from the card it floats over. */
.ask-fab,
a.ask-fab {
  bottom: calc(var(--tabbar-h) + 20px);
  right: 14px;
}

/* The capsule measured 140px while its label needed 144: the words were running
   past the right edge. It sizes to its content now, and when a control sits under
   it, it steps back to 80% instead of fading to grey. */
.ask-fab,
a.ask-fab {
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 28px);
  padding: 0 18px 0 14px;
  white-space: nowrap;
}
.ask-fab .ask-fab-label { flex: 0 0 auto; }
.ask-fab.is-blocking { opacity: .82 !important; }

/* A money row keeps its figure whole: the description gives way and wraps, the
   amount never leaves the row. */
.entry-main { min-width: 0; }
.entry-main > .what, .entry-main > .entry-text { min-width: 0; overflow-wrap: anywhere; }
.entry-main > .amt { flex: 0 0 auto; margin-left: auto; }

/* A tool pill carries its glyph in the same eight hues as the list rows, so the
   Stock screen's tools read as one family with the rest of the app. */
.hub-pill .ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-pill .ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-pill .ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-pill .ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-pill .ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-pill .ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-pill .ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-pill .ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-pill .ico { width: 17px; height: 17px; }

/* ----------------------------------------------------------------------------
   16. Offline looks like online
   The old full-width band under the header made the app look like a different,
   lesser app the moment the radio dropped. It is gone. Being offline now shows
   as one quiet detail: a small amber dot on the corner of the shop's mark, with
   nothing moving and no colour changing anywhere else. The queued-entry lines
   (offline.js) still appear where they are useful — above the form, not across
   the whole screen.
   -------------------------------------------------------------------------- */

.offline-strip { display: none !important; }

.brand { position: relative; }
.brand .brand-mark { position: relative; }
body.is-offline .brand .brand-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--brand-band);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------------------
   17. The offline screen, wearing the app's clothes
   Paper, one card, the same rows and chevrons as the hub lists, grouped the way
   the app groups its screens. It should look like a screen of the app that has
   nothing to add, not a browser error page with a list of buttons.
   -------------------------------------------------------------------------- */

.offline-wrap { max-width: 520px; margin: 0 auto; padding: 18px 14px 44px; }
.offline-brand { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.offline-brand img { border-radius: 10px; }
.offline-brand .brand.big { font-size: 1.05rem; color: var(--text); }
.offline-brand .brand.big span { color: var(--accent); }
.offline-group { margin: 18px 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.offline-card {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 30px -24px rgba(16, 24, 20, .45);
}
.offline-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 14px;
}
.offline-mark .ico { width: 26px; height: 26px; }
.offline-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--heading); }
.offline-lead { margin: 0 auto 18px; max-width: 38ch; font-size: 14px; line-height: 1.55; color: var(--muted); }

.offline-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.offline-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.offline-status.is-on .dot { background: var(--ok-ink); }
.offline-status.is-off .dot { background: var(--err-ink); }

.offline-retry {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--cta-border);
  background: var(--cta-from);
  color: var(--cta-ink);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
}
.offline-retry:active { transform: scale(.99); }

.offline-queue { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }

.offline-saved { margin-top: 20px; }
.offline-sub { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--heading); }
.offline-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.offline-saved .hub-list { margin: 0 0 14px; }
.offline-saved .hub-row { text-decoration: none; color: inherit; }
.offline-saved .hub-chev { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* The offline panel on the shop's Home keeps the app's rows, with the card frame
   dropped so it does not look like a box inside a box. */
.offline-panel .hub-sec { margin: 12px 0 0; }
.offline-panel .hub-label { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offline-panel .hub-list { margin: 0; border: 0; background: transparent; }
.offline-panel .hub-row { padding: 10px 0; }
.offline-panel .hub-row:first-child { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------------------
   18. Shop mode, said quietly
   An owner looking at the staff screen used to get a full card above the page —
   a second header for a page that already has one. The mode is a fact about the
   phone, not a section of the screen, so it lives in the bar: a small pill with
   the palette's dot, tappable, that returns to the owner view. The page below
   starts where it always starts.
   -------------------------------------------------------------------------- */

.topbar-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.topbar-mode:hover { background: rgba(255, 255, 255, .24); }
.topbar-mode:active { transform: scale(.98); }
.topbar-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
/* The swap glyph is what makes it a control rather than a badge: it says "this
   takes you to the other side", and the dot says which side you are on. */
.topbar-mode-swap { width: 12px; height: 12px; color: rgba(255, 255, 255, .78); flex: none; }

/* You cannot miss the mode. The pill is ringed in the palette's gold and carries a
   soft glow (a pseudo-element, so the glow has its own opacity instead of a hard
   shadow), and the sign under it runs one gold hairline — the same hairline the
   paper uses for a settled total. Nothing else on the screen changes. */
.shop-mode .topbar-mode {
  position: relative;
  margin-left: 4px;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.shop-mode .topbar-mode::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 14px 2px var(--accent-bright);
  opacity: .38;
}
.shop-mode .topbar-mode .topbar-mode-swap { color: var(--accent-bright); }
.shop-mode .topbar-mode-txt { color: #fff; letter-spacing: .09em; }
.shop-mode .topbar { border-bottom-color: var(--accent-bright) !important; }
@media (max-width: 380px) {
  .topbar-mode { padding: 0 8px; font-size: 9px; letter-spacing: .06em; }
}

/* ----------------------------------------------------------------------------
   19. The story of the day, and what you did today
   Two cards only: one for the owner on the day report, one for the person
   about to count. Short labelled lines, figures in the mono rhythm, no walls of
   prose — the numbers do the talking and each line answers one question.
   -------------------------------------------------------------------------- */

.day-story { padding: 16px !important; margin: 0 0 12px; }
.day-story .recon-top { margin-bottom: 2px; }
.story-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.story-lines li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.story-k { font-size: 12px; font-weight: 500; color: var(--muted); }
.story-v { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.story-v strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.story-v a { color: var(--accent-2); }
.story-foot { margin: 12px 0 0; }
@media (max-width: 400px) {
  .story-lines li { grid-template-columns: 1fr; gap: 1px; }
  .story-k { font-size: 11px; letter-spacing: .02em; }
}

.pre-close { padding: 16px !important; margin: 0 0 12px; }
.pre-close .recon-top { margin-bottom: 2px; }
.pre-close-day { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pre-close-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pre-close-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.pk { color: var(--muted); font-size: 13px; }
.pv { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.pv strong { font-weight: 600; }
.pc-reason { display: block; font-size: 12px; color: var(--muted); }
.pre-close-note { margin: 12px 0 0; }

* ============================================================================
   Zireva Dduka — the ledger pass (3.0, Nov 2026)

   The direction, in one paragraph: this is the day-book of a duka and its
   Mobile Money counter. Surfaces are paper-warm neutral, text is ink, and the
   shop's palette survives as ONE accent (the pen mark). Figures are set in a
   mono so they sit in columns like a ledger. One radius scale, one type scale,
   one easing curve, and no decoration behind the numbers: no comb, no washes,
   no glows, no gradients, no pills for everything, no uppercase labels.

   Loaded after app.min.css, premium.css, workspace.css and dashboard.css, so
   it is the last word. It is deliberately one file: every screen inherits the
   tokens, and the component rules below are the vocabulary the whole app uses
   (btn, card, pill, table, tabs, alert, stat, topbar, tabbar, ask-fab).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens — one ramp for every surface, in every palette

   Doubled `:root` and `!important` on purpose: the old palette blocks later in
   app.css pin their own tokens with `!important` (2.120 "the day tokens are
   pinned after every legacy palette block"), and this layer has to be the last
   word on surfaces. The palette keeps `--accent` and `--brand-band`; everything
   else is paper.
   -------------------------------------------------------------------------- */

:root:root,
:root:root[data-palette="green"],
:root:root[data-palette="uganda"],
:root:root[data-palette="savannah"],
:root:root[data-palette="comb"] {
  color-scheme: light;
  --bg: #f7f4ee !important;
  --card: #fffdf9 !important;
  --surface-2: #f1ebe1 !important;
  --raised: #fffdf9 !important;
  --field-bg: #fffdf9 !important;
  --tabs-bg: transparent !important;

  --text: #1f1b16 !important;
  --text-2: #5e554a !important;
  --muted: #7b7266 !important;
  --heading: #1a2e26;
  --accent-bright: var(--accent);

  --line: rgba(31, 27, 22, .10) !important;
  --line-strong: rgba(31, 27, 22, .20) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 31, 27, 22;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow: 0 1px 2px rgba(31, 27, 22, .04);
  --shadow-lg: 0 1px 2px rgba(31, 27, 22, .05), 0 12px 32px -22px rgba(31, 27, 22, .28);
  --ring: 0 0 0 3px rgba(31, 27, 22, .12);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* The primary action is ink on paper, not a coloured slab. */
  --cta-from: #1f1b16 !important;
  --cta-to: #1f1b16 !important;
  --cta-hover-from: #332c24 !important;
  --cta-hover-to: #332c24 !important;
  --cta-border: #1f1b16 !important;
  --cta-ink: #fffdf9 !important;

  --fab-bg: #fffdf9 !important;
  --fab-ink: #1f1b16 !important;

  --nav-active-bg: transparent !important;
  --nav-active-ink: #fff !important;
  --tab-active-bg: transparent !important;
  --tab-active-ink: #1f1b16 !important;

  --selected-bg: #1f1b16 !important;
  --selected-ink: #fffdf9 !important;
  --chat-me-bg: #1f1b16 !important;
  --chat-me-ink: #fffdf9 !important;
  --chat-send-bg: #1f1b16 !important;
  --chat-send-ink: #fffdf9 !important;

  --dialog-head-from: #1f1b16 !important;
  --dialog-head-to: #1f1b16 !important;

  --ok-bg: #edf3ec !important;
  --ok-ink: #2c5b3c !important;
  --ok-border: #cfdfd1 !important;
  --warn-bg: #fbf0dc !important;
  --warn-ink: #7a4c0b !important;
  --warn-border: #e7d3ae !important;
  --err-bg: #fbecea !important;
  --err-ink: #8f2418 !important;
  --err-border: #e8c4be !important;
  --info-bg: #edf0f5 !important;
  --info-ink: #2b4a6e !important;
  --info-border: #cbd7e4 !important;

  /* Figures and meta sit in a mono, like a written column. */
}

:root:root[data-theme="dark"],
:root:root[data-palette="green"][data-theme="dark"],
:root:root[data-palette="uganda"][data-theme="dark"],
:root:root[data-palette="savannah"][data-theme="dark"],
:root:root[data-palette="comb"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513 !important;
  --card: #1c1a18 !important;
  --surface-2: #262421 !important;
  --raised: #20201d !important;
  --field-bg: #211f1c !important;
  --tabs-bg: transparent !important;

  --text: #efe9de !important;
  --text-2: #b7ad9e !important;
  --muted: #8e8577 !important;
  --heading: #f4efe4;
  --accent-bright: var(--accent);

  --line: rgba(239, 233, 222, .09) !important;
  --line-strong: rgba(239, 233, 222, .18) !important;

  --page-glow-1: transparent !important;
  --page-glow-2: transparent !important;
  --dot: transparent !important;
  --card-sheen: transparent !important;

  --shadow-rgb: 0, 0, 0;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
  --ring: 0 0 0 3px rgba(239, 233, 222, .16);

  --radius: 12px !important;
  --radius-sm: 8px !important;

  /* On a dark sheet the primary action is the light of the paper itself. */
  --cta-from: #efe9de !important;
  --cta-to: #efe9de !important;
  --cta-hover-from: #fffdf7 !important;
  --cta-hover-to: #fffdf7 !important;
  --cta-border: #efe9de !important;
  --cta-ink: #1b1916 !important;

  --fab-bg: #1c1a18 !important;
  --fab-ink: #efe9de !important;

  --tab-active-ink: #efe9de !important;
  --selected-bg: #efe9de !important;
  --selected-ink: #1b1916 !important;
  --chat-me-bg: #efe9de !important;
  --chat-me-ink: #1b1916 !important;
  --chat-send-bg: #efe9de !important;
  --chat-send-ink: #1b1916 !important;

  --dialog-head-from: #1c1a18 !important;
  --dialog-head-to: #1c1a18 !important;

  --ok-bg: rgba(107, 176, 132, .12) !important;
  --ok-ink: #9ed3b1 !important;
  --ok-border: rgba(107, 176, 132, .28) !important;
  --warn-bg: rgba(214, 158, 68, .12) !important;
  --warn-ink: #e0bd82 !important;
  --warn-border: rgba(214, 158, 68, .30) !important;
  --err-bg: rgba(214, 106, 96, .12) !important;
  --err-ink: #eba79e !important;
  --err-border: rgba(214, 106, 96, .30) !important;
  --info-bg: rgba(120, 150, 190, .12) !important;
  --info-ink: #a9c2df !important;
  --info-border: rgba(120, 150, 190, .30) !important;
}

/* ----------------------------------------------------------------------------
   The palettes: each keeps its own paper, ink and signals.
   Classic green reads as the type spec asks — warm alabaster paper, deep forest
   headings, charcoal body, terracotta for a loss, sage for a gain, warm gold for
   the pen. The other three carry the same roles in their own key, so a shop that
   chose Uganda gold, Savannah Heritage or Amber Comb gets the same legibility
   without inheriting green's palette.

   Gold that is readable as text is --accent; the brighter --accent-bright is for
   marks and icons only (the Ask spark, a progress bar), where 3:1 is the rule
   for a graphic rather than 4.5:1 for words.
   -------------------------------------------------------------------------- */

/* ---- Classic green: alabaster paper, forest ink ---- */
:root:root[data-palette="green"]:not([data-theme="dark"]) {
  --bg: #f8f5f0 !important;
  --card: #fffdf9 !important;
  --surface-2: #f2ece3 !important;
  --text: #1a2e26 !important;
  --text-2: #46564d !important;
  --muted: #5e6b62 !important;
  --heading: #0f382b;
  --line: rgba(26, 46, 38, .12) !important;
  --line-strong: rgba(26, 46, 38, .22) !important;
  --ok-ink: #2e6f40 !important;
  --ok-bg: #edf4ec !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbeeea !important;
  --accent: #8a6a1f !important;
  --accent-2: #6f5416 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 106, 31, .10);
  --accent-line: rgba(138, 106, 31, .30);
  --on-accent: #fffdf9 !important;
}

/* ---- Uganda gold: clay paper, cocoa ink ---- */
:root:root[data-palette="uganda"]:not([data-theme="dark"]) {
  --bg: #f7f1e6 !important;
  --card: #fffaf1 !important;
  --surface-2: #f1e7d6 !important;
  --text: #2a1b12 !important;
  --text-2: #4f3c2c !important;
  --muted: #6f5a49 !important;
  --heading: #3d2417;
  --line: rgba(42, 27, 18, .13) !important;
  --line-strong: rgba(42, 27, 18, .24) !important;
  --ok-ink: #4f7a3a !important;
  --ok-bg: #eef3e8 !important;
  --err-ink: #a8442e !important;
  --err-bg: #fbede8 !important;
  --accent: #8a5a12 !important;
  --accent-2: #6e470e !important;
  --accent-bright: #c08a2e !important;
  --accent-tint: rgba(138, 90, 18, .10);
  --accent-line: rgba(138, 90, 18, .30);
  --on-accent: #fffaf1 !important;
}

/* ---- Savannah Heritage: porcelain with a plum cast ---- */
:root:root[data-palette="savannah"]:not([data-theme="dark"]) {
  --bg: #f8f3f5 !important;
  --card: #fffbfc !important;
  --surface-2: #f2e9ee !important;
  --text: #241a20 !important;
  --text-2: #4c3a45 !important;
  --muted: #6b5560 !important;
  --heading: #3d1b33;
  --line: rgba(36, 26, 32, .12) !important;
  --line-strong: rgba(36, 26, 32, .22) !important;
  --ok-ink: #356b57 !important;
  --ok-bg: #eaf3ef !important;
  --err-ink: #a8443f !important;
  --err-bg: #fbebea !important;
  --accent: #7a2456 !important;
  --accent-2: #5f1b43 !important;
  --accent-bright: #b06a94 !important;
  --accent-tint: rgba(122, 36, 86, .10);
  --accent-line: rgba(122, 36, 86, .30);
  --on-accent: #fffbfc !important;
}

/* ---- Amber Comb: honey paper, umber ink ---- */
:root:root[data-palette="comb"]:not([data-theme="dark"]) {
  --bg: #f8f2e6 !important;
  --card: #fffaf0 !important;
  --surface-2: #f2e7d2 !important;
  --text: #241a0e !important;
  --text-2: #4a3823 !important;
  --muted: #6f5a3f !important;
  --heading: #3a2410;
  --line: rgba(36, 26, 14, .12) !important;
  --line-strong: rgba(36, 26, 14, .22) !important;
  --ok-ink: #4a7a3a !important;
  --ok-bg: #eef3e6 !important;
  --err-ink: #a84a32 !important;
  --err-bg: #fbede9 !important;
  --accent: #8a5a00 !important;
  --accent-2: #6e4700 !important;
  --accent-bright: #c29b38 !important;
  --accent-tint: rgba(138, 90, 0, .10);
  --accent-line: rgba(138, 90, 0, .30);
  --on-accent: #fffaf0 !important;
}

/* ---- the night faces: same roles, lit from the other side ---- */
:root:root[data-palette="green"][data-theme="dark"] {
  --heading: #f4efe4; --ok-ink: #7fc493 !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="uganda"][data-theme="dark"] {
  --heading: #f6efe3; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e0a458 !important; --accent-2: #c98a3c !important; --accent-bright: #e0a458 !important; --accent-tint: rgba(224, 164, 88, .12); --accent-line: rgba(224, 164, 88, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="savannah"][data-theme="dark"] {
  --heading: #f7eef3; --ok-ink: #7fc4ad !important; --err-ink: #e08a86 !important;
  --accent: #d98cb9 !important; --accent-2: #c4709f !important; --accent-bright: #d98cb9 !important; --accent-tint: rgba(217, 140, 185, .12); --accent-line: rgba(217, 140, 185, .34); --on-accent: #1b1916 !important;
}
:root:root[data-palette="comb"][data-theme="dark"] {
  --heading: #f7f0e2; --ok-ink: #8fbf7a !important; --err-ink: #e08a72 !important;
  --accent: #e9c069 !important; --accent-2: #d5a94e !important; --accent-bright: #e9c069 !important; --accent-tint: rgba(233, 192, 105, .12); --accent-line: rgba(233, 192, 105, .34); --on-accent: #1b1916 !important;
}

/* The top band is the shop's sign, painted in the palette colour; the ledger
   underneath is paper. Keep the sign, drop its glow. */
:root { --brand-band: #123b2c; }
:root[data-palette="uganda"] { --brand-band: #241a13; }
:root[data-palette="savannah"] { --brand-band: #4e1248; }
:root[data-palette="comb"] { --brand-band: #3a1d0e; }

/* ----------------------------------------------------------------------------
   2. No decoration behind the numbers
   -------------------------------------------------------------------------- */

body::before,
body::after,
.comb-glow,
.comb-aura,
.aura-glow,
.login-ambient,
.login-orb,
.login-grid,
.login-trace,
.login-grain,
.login-veil,
.page-glow,
.pip {
  display: none !important;
}

/* The one backdrop the direction keeps: Amber Comb's living honeycomb, drawn by
   assets/js/hive-comb.js (a port of the reference HiveComb.kt). It is a canvas
   behind everything, only under the comb palette; the script keeps it still when
   the system asks for reduced motion. */
.hive-comb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: none;
  pointer-events: none;
}

body {
  background-image: none !important;
}

/* Loops that are not live data. */
.comb-breathe,
.comb-glow,
[class*="breathe"],
[class*="radar"],
.ex-status-orb,
.status-dot,
.subtle-breathing,
.animate-pulse,
.animate-ping {
  animation: none !important;
}

/* A gradient only survives as a whisper inside one neutral, never hue to hue.
   The surfaces below must be opaque: the comb palette paints a canvas behind
   the page, and a transparent card would let the honeycomb run through the
   figures. */
.btn-primary,
.btn-primary:hover,
.ask-fab,
.tabbar,
.avatar,
.avatar-sm,
.avatar-md,
.ex-cta,
.ex-status-open,
header.bot-head,
.offline-strip,
a.ask-fab,
.streak-pip,
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .report-head,
body .card,
body .stat {
  background-image: none !important;
}
body .fig-hero,
body .ex-pulse,
body .ex-setup,
body .ex-card,
body .ex-health,
body .ex-needs,
body .ex-tile,
body .ex-restock,
body .ex-perf,
body .card,
body .stat {
  background-color: var(--card) !important;
}

/* ----------------------------------------------------------------------------
   3. Type — few sizes, two weights, sentence case
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font);
  font-size: .97rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* The signed-in app is paper. The signed-out scene keeps its own painting. */
body:not(.plain) {
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
}

h1, h2, h3, h4 {
  font-weight: 550;
  letter-spacing: -.012em;
  color: var(--text);
}

h1 { font-size: 1.5rem; line-height: 1.15; }
h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.3; }

b, strong { font-weight: 600; }

/* Labels are labels: sentence case, no tracking, no shouting. */
.stat .label,
.table thead th,
.tabs a,
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.eyebrow,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
.ex-sec-head h2,
.ex-more-title,
th {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.stat .label,
[class*="eyebrow"],
[class*="kicker"],
.kicker,
.ex-tile-label,
.ex-row-label,
th {
  font-weight: 500 !important;
  color: var(--muted);
}

/* A label is 12px, never 10. */
[class*="kicker"],
[class*="eyebrow"] { font-size: .76rem !important; }

/* Figures: one weight, tabular, in the mono column. */
.num,
.stat .value,
.money,
.ex-amount-num,
.ex-tile-value,
.ex-pair strong,
.ex-rank-fig strong,
.ex-staff-fig strong,
.ex-balance strong,
.ex-meta-item strong,
.fc-amount,
.fc-pct,
.report-head .fig,
td.num,
th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
}

/* Where a big figure carries the screen, it carries the accent. */
.ex-amount-num { color: var(--accent); }

/* ----------------------------------------------------------------------------
   4. Spacing, radius, depth
   -------------------------------------------------------------------------- */

.card {
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}

a.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
a.card:active { transform: none; }

@media (min-width: 760px) {
  .card { padding: 24px; }
}

/* Nested radius: inner = outer − padding, never below 4. */
.card .card,
.card .tile,
.card .inner { border-radius: max(4px, calc(var(--radius) - 8px)); }

/* Everything is not a pill. Small things get 4 to 6, controls 8, cards 12. */
.pill,
.pill-ok,
.pill-warn,
.pill-muted,
.tabs a,
.ex-chip,
.ex-pill,
.ex-badge,
.ex-mini-pill,
.badge,
.chip,
.tag {
  border-radius: 6px !important;
}

/* ----------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */

/* Buttons: one shape, ink fill for the primary, hairline for the rest. */
.btn {
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font: 500 .95rem/1.2 var(--font);
  box-shadow: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}

.btn:hover { background: var(--surface-2); border-color: var(--line-strong); box-shadow: none; }
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-primary:hover {
  background: var(--cta-from);
  border-color: var(--cta-border);
  color: var(--cta-ink);
  box-shadow: none;
}
.btn-primary:hover { background: var(--cta-hover-from); }
.btn-primary:active { transform: translateY(1px); }

.btn-danger { background: var(--card); border-color: var(--err-border); color: var(--err-ink); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err-ink); }

.btn-block { min-height: 52px; padding: .85rem 1rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-small { min-height: 36px; padding: .35rem .7rem; font-size: .85rem; border-radius: 6px; }

/* Alerts: a tinted sheet with one rule down the side, no shadow, no entrance. */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-left-width: 3px;
  box-shadow: none;
  animation: none;
}

/* Cards keep only a hairline. */
.card { border: 1px solid var(--line); background: var(--card); }

/* Tabs: a text row with an underline on the one you are in, not a row of pills. */
.tabs { gap: 20px; margin-bottom: 16px; border: 0; border-radius: 0; background: transparent; overflow-x: auto; }
.tabs a {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
}
.tabs a.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabs a:hover { color: var(--text); }

/* Tables: a hairline grid, sentence-case header, figures on the right. */
.table { font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table thead th {
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  font-size: .8rem;
  color: var(--muted);
}
.table tbody tr:hover { background: var(--surface-2); }
.table thead th:first-child, .table thead th:last-child { border-radius: 0; }

/* Top bar: the shop's sign, solid — no glass here. The glass belongs to the bottom
   bar, where content meets a fixed edge as you scroll. */
.topbar {
  background: var(--brand-band) !important;
  background-image: none !important;
  color: #fff;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { border: 0; }
.nav a { color: rgba(255, 255, 255, .88); border-radius: 8px; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }

/* Bottom bar: paper, a hairline, docked to the edge like a tab bar, the active
   item marked with the pen. Every palette used to paint its own floating glass
   here — an inset pill with a shadow, a plum gradient in Savannah, a blur in
   every one of them, near-white labels on cream in Uganda — so the geometry,
   the fill, the labels and the marker are pinned for all four. */
:root { --card-glass: rgba(255, 253, 249, .72); }
:root[data-theme="dark"] { --card-glass: rgba(28, 26, 24, .88); }

:root:root .tabbar {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 56px;
  padding: .3rem .4rem calc(.35rem + env(safe-area-inset-bottom)) !important;
  border-radius: 0 !important;
  background: var(--card) !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
/* The same glass as the top bar: the docked bar blurs what passes under it. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root:root .tabbar {
    background: var(--card-glass) !important;
    -webkit-backdrop-filter: saturate(170%) blur(22px) !important;
    backdrop-filter: saturate(170%) blur(22px) !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root:root .tabbar { background: var(--card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* The room the docked bar takes from the bottom of every screen. */
body.has-tabbar { --tabbar-h: calc(56px + env(safe-area-inset-bottom)); }

.tabbar a, .tabbar a:visited { color: var(--text-2) !important; font-weight: 500; }
.tabbar a.active, .tabbar a[aria-current="page"] { color: var(--text) !important; font-weight: 550; background: transparent !important; }
/* The palette blocks colour the bar's links with their own !important rules
   (Uganda and Savannah end up near-white on paper), so the labels are pinned
   one specificity step above them. */
:root:root .tabbar a,
:root:root .tabbar a:visited { color: var(--text-2) !important; }
:root:root .tabbar a.active,
:root:root .tabbar a[aria-current="page"] { color: var(--text) !important; }
.tabbar a .pip { background: transparent !important; box-shadow: none !important; border: 0 !important; transform: none !important; }
.tabbar a.active::after { display: none !important; }
.tabbar a.active::before,
.tabbar a[aria-current="page"]::before {
  content: "";
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Ask Zireva: a quiet paper chip. A circle on a phone, so it never sits on a figure. */
.ask-fab {
  background: var(--fab-bg);
  color: var(--fab-ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(31, 27, 22, .10);
  font-weight: 500;
  border-radius: 8px;
}
.ask-fab svg { color: var(--accent); }
.ask-fab:hover { background: var(--surface-2); }

/* Fields */
input, select, textarea, .input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  color: var(--text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* Links take the pen, and only the pen. */
a { color: inherit; }
.link, .pw .link { color: var(--accent); font-weight: 500; }

/* ----------------------------------------------------------------------------
   6. The owner's Home — the ledger itself
   -------------------------------------------------------------------------- */

/* Every app page gets a desk's width, not a phone's column on a laptop. */
body.dash-exec .wrap,
body.shop-home .wrap {
  max-width: 1160px;
  padding-left: 32px;
  padding-right: 32px;
}
@media (min-width: 1000px) {
  /* One vertical line runs from the brand mark down through every page. */
  body main.wrap.app-page {
    max-width: 1160px;
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (max-width: 720px) {
  body.dash-exec .wrap,
  body.shop-home .wrap { padding-left: 16px; padding-right: 16px; }
}

.exec-dash { padding-bottom: 16px; }

/* The sign over the counter: shop name, place, the day's state. */
.ex-head { margin-bottom: 20px; padding: 0; }
.ex-shop { font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 2px; }
.ex-sub { font-size: .85rem; color: var(--muted); }

/* Day state: a stamped word, not a glowing pill. */
.ex-status {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 10px;
  gap: 6px;
  box-shadow: none;
}
.ex-status-open { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-ink); }
.ex-status-orb { background: none; box-shadow: none; }
.ex-status-orb svg { width: 14px; height: 14px; }
.ex-status-radar, .ex-status-shine, .ex-status-rest { display: none; }
.ex-status-label { font-size: .78rem; font-weight: 500; }

/* The month's total: the one big written figure, on a ruled line. */
.fig-hero,
.ex-pulse {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 16px;
}
.ex-pulse-top { margin-bottom: 8px; gap: 4px 8px; align-items: center; flex-wrap: wrap; }
.ex-pulse-top .ex-eyebrow { min-width: 0; flex: 1 1 auto; }
.ex-pulse-top .ex-ghost { flex: none; margin-left: auto; }
.ex-eyebrow {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ex-eyebrow-soft { color: var(--muted); font-weight: 400; }
.ex-ghost { color: var(--accent); font-weight: 500; font-size: .85rem; }

.ex-amount { margin: 4px 0 0; align-items: baseline; gap: 10px; }
.ex-amount-unit {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ex-amount-num {
  font-family: var(--font);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -.025em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ex-trend { margin-top: 8px; gap: 10px; }
.ex-trend-note { font-size: .82rem; color: var(--muted); }
.ex-delta { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; }
.ex-delta.is-good { color: var(--ok-ink); }
.ex-delta.is-bad { color: var(--err-ink); }

/* The arithmetic row, closed by the accountant's double rule: the figure above
   is the total, the three components below it. This is the signature, and it
   appears only where a figure is settled. */
.ex-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 3px double var(--line-strong);
  gap: 24px;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.ex-meta-k { color: var(--muted); }
.ex-meta-item strong { font-size: .88rem; color: var(--text); }
.ex-meta-dot { display: none; }
.ex-meta-item { gap: 6px; }

.ex-chip {
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 500;
  padding: 2px 8px;
}
.ex-chip-bad { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-border); }
.ex-chip-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.ex-chip-info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-border); }
.ex-chip-service { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* "Ask about this figure" becomes a quiet link with one pen mark. */
.ask-number { margin: 12px 0 16px; }
.ask-number a, .ask-number a:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ask-number a .ico { width: 14px; height: 14px; }
.ask-number a:hover { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------------------
   5b. Report figures (app/lib/Metric.php) — the same ledger, on every screen
   -------------------------------------------------------------------------- */

.fig-hero,
.fig-hero.is-pos,
.fig-hero.is-neg,
.fig-hero.is-zero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 20px;
}

.fig-hero .fig-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.fig-hero .fig-label .ico { width: 16px; height: 16px; color: var(--muted); }

.fig-hero-value,
.fig-hero.is-pos .fig-hero-value,
.fig-hero.is-neg .fig-hero-value {
  font-family: var(--font);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 6px;
}
.fig-hero.is-neg .fig-hero-value { color: var(--err-ink); }
.fig-unit {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.fig-note { font-size: .85rem; color: var(--muted); }
.fig-delta { font-family: var(--font-mono); font-size: .82rem; }
.fig-delta.is-good { color: var(--ok-ink); }
.fig-delta.is-bad { color: var(--err-ink); }

/* The strip of secondary figures: one ruled band, not a row of mini cards. */
.fig-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 4px 20px;
}
.fig-strip > * { border-top: 1px solid var(--line); padding: 14px 0; }
.fig-strip > *:first-child { border-top: 0; }
.fig-strip .fig-label, .fig-strip .k { font-size: .8rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.fig-strip .fig-value, .fig-strip strong { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* The context line above a screen: "Money · Tue 17 Nov". */
.ws-context { padding: 0 0 6px; }
.ws-context-k {
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.ws-context-dot { display: none; }
.ws-context time { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }

/* Needs you: one folded row, the list inside. */
.ex-needs,
.ex-card,
.ex-health,
.ex-restock,
.ex-perf {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 12px;
}
.ex-needs summary { padding: 14px 16px; gap: 10px; }
.ex-needs-title { font-size: .95rem; font-weight: 550; }
.ex-needs-body { padding: 4px 16px 16px; }
.ex-need { padding: 12px 0; border-top: 1px solid var(--line); gap: 10px; }
.ex-need-btn { color: var(--accent); font-weight: 500; font-size: .82rem; }
.ex-need-dot { width: 6px; height: 6px; border-radius: 2px; }
.ex-need-bad .ex-need-dot { background: var(--err-ink); }
.ex-need-warn .ex-need-dot { background: var(--warn-ink); }
.ex-need-info .ex-need-dot { background: var(--info-ink); }
.ex-needs-sub { margin: 16px 0 4px; font-size: .78rem; color: var(--muted); }

/* The setup card is work to do, not a different material. */
.ex-setup {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: none;
}

/* On a phone the three components of the total stay on one line. */
@media (max-width: 520px) {
  .ex-meta { gap: 12px; font-size: .8rem; }
  .ex-meta-item { gap: 4px; }
  .ex-eyebrow { font-size: .8rem; }
  .ex-tile-sub { font-size: .78rem; }
}

/* The four drivers: numbers with a label, a change, and nothing else. */
.ex-grid { gap: 12px; margin-bottom: 12px; }
.ex-tile {
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 16px;
  gap: 4px;
}
.ex-tile:hover { border-color: var(--line-strong); }
.ex-tile-top { margin-bottom: 6px; }
.ex-tile-label { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ex-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--muted) !important;
}
.ex-ico.is-brand, .ex-ico.is-good, .ex-ico.is-warn, .ex-ico.is-bad { background: transparent !important; color: var(--muted) !important; }
.ex-ico .ico, .ex-ico svg { width: 16px; height: 16px; }
/* A tile figure is as wide as its card: it shrinks on a phone before it can reach
   the edge, and the unit sits on its own line there so the amount gets the whole
   width. A figure never breaks: "10,544,70 / 3" is not a number. */
.ex-tile-value {
  font-size: clamp(.95rem, 3.4vw, 1.35rem) !important;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.ex-tile-value .ex-unit {
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  margin-right: 5px;
}
@media (max-width: 520px) {
  .ex-tile-value .ex-unit { display: block; margin: 0 0 2px; }
  .ex-tile-value { font-size: clamp(.85rem, 4.2vw, 1.05rem) !important; }
}
.ex-tile-sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.ex-tile-sub.is-warn { color: var(--warn-ink); }
.ex-tile-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ex-tile-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-tile-badge { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.ex-bar { height: 3px; border-radius: 2px; }
.ex-bar::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
.ex-bar::-moz-progress-bar { background: var(--accent); border-radius: 2px; }
.ex-pair { gap: 4px; font-size: .82rem; }
.ex-pair-k { color: var(--muted); }
.ex-pair strong { color: var(--text); }

/* Shop health and the restock nudge: a line of text with one state word. */
.ex-row { padding: 14px 16px; }
.ex-row-label { font-size: .9rem; font-weight: 550; color: var(--text); letter-spacing: 0; text-transform: none; }
.ex-row-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ex-pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
}
.ex-pill-good { color: var(--ok-ink); border-color: var(--ok-border); background: var(--ok-bg); }
.ex-pill-warn { color: var(--warn-ink); border-color: var(--warn-border); background: var(--warn-bg); }
.ex-pill-bad { color: var(--err-ink); border-color: var(--err-border); background: var(--err-bg); }
.ex-pill-neutral { color: var(--muted); }
.ex-badge { border-radius: 4px; font-size: .74rem; font-weight: 500; padding: 1px 6px; }
.ex-badge.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ex-badge.is-good { background: var(--ok-bg); color: var(--ok-ink); }
.ex-history-dot { width: 5px; height: 5px; border-radius: 1px; }
.ex-mini-pill { border-radius: 4px; background: var(--surface-2); color: var(--muted); font-weight: 500; }

/* Best earners / on shift: two lists, one ruler between them. */
.ex-perf { padding: 20px; }
.ex-sec-head { margin-bottom: 8px; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: .95rem; font-weight: 550; letter-spacing: 0; }
.ex-sec-link { color: var(--accent); font-weight: 500; font-size: .8rem; }
.ex-rank { margin: 0; }
.ex-rank-row { padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.ex-rank-row:last-child { border-bottom: 0; }
.ex-rank-num { width: 18px; color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.ex-rank-name { font-size: .9rem; }
.ex-rank-fig strong { font-size: .9rem; color: var(--text); }
.ex-rank-fig small { font-size: .76rem; color: var(--muted); }
.ex-divider { height: 1px; background: var(--line-strong); margin: 16px 0; }
.ex-staff-row { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.ex-staff-row:last-child { border-bottom: 0; }
.ex-avatar { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.ex-staff-name { font-size: .9rem; }
.ex-staff-sub { font-size: .78rem; color: var(--muted); }
.ex-staff-fig small { color: var(--muted); }

/* More: the tail of the page, opened on demand. */
.ex-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.ex-more summary { padding: 14px 16px; }
.ex-more-title { font-weight: 550; }
.ex-quick a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .88rem; background: transparent; }
.ex-quick a:hover { background: var(--surface-2); }
.ex-activity li, .ex-balance { font-size: .85rem; }
.ex-activity time { color: var(--muted); font-family: var(--font-mono); font-size: .76rem; }

/* On a wide screen this is a ledger, not a stretched phone: one column of
   facts, one rail for what needs the owner. */
@media (min-width: 1080px) {
  .exec-dash {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px 28px;
    align-items: start;
  }
  .ex-head, .ex-setup, .ex-more { grid-column: 1 / -1; }
  .fig-hero, .ex-pulse, .ex-grid, .ex-perf { grid-column: 1; }
  /* The rail is pinned beside the main column and flows on its own, so the
     left column never waits for it. */
  .ex-rail { grid-column: 2; grid-row: 3 / span 4; display: flex; flex-direction: column; gap: 12px; align-self: start; }
  .exec-dash > * { margin-bottom: 0; }
  .ex-rail > * { margin-bottom: 0; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Surfaces that used to be a gradient need a real fill, not a hole. */
.avatar, .avatar-sm, .avatar-md {
  background: var(--surface-2) !important;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.me-btn .avatar-sm { border-radius: 50%; }

.ex-cta {
  background: var(--cta-from);
  color: var(--cta-ink);
  border: 1px solid var(--cta-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.ex-cta:hover { background: var(--cta-hover-from); }

/* Statement rows: a group heading is a quiet label, not a shout. */
tr.group td, tr.group th {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 18px;
  background: transparent;
}
.sub-head { font-size: .9rem; font-weight: 550; color: var(--text-2); letter-spacing: 0; }

@media (max-width: 520px) {
  /* On a phone the shop's name is the page title, so the chip in the header is noise. */
  .topbar .shop-name, .topbar .shop-switch { display: none; }
  .topbar-inner { gap: 6px; }
}

/* ----------------------------------------------------------------------------
   8. The Hub vocabulary — the header actions and lists of every screen
      (app/lib/Hub.php: earnings, days, watch, team, subscription, the counter)
   -------------------------------------------------------------------------- */

.hub-pills { gap: 8px; }
.hub-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px !important;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
}
.hub-pill:hover { background: var(--surface-2); border-color: var(--line-strong); }
.hub-pill .ico { width: 16px; height: 16px; color: var(--muted); }

.hub-hero-btn,
.hub-chip {
  border-radius: 12px !important;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
}
.hub-hero-btn:hover, .hub-chip:hover { border-color: var(--line-strong); background: var(--card); }

.hub-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.hub-row { padding: 14px 16px; border-top: 1px solid var(--line); }
.hub-row:first-child { border-top: 0; }
.hub-row:hover { background: var(--surface-2); }

/* Nothing to do is a quiet line; something to do keeps a sand rule down its side. */
.hub-list.is-todo { background: var(--card); border-color: var(--line); border-left: 3px solid var(--warn-ink); }
.hub-list.is-todo .hub-txt span, .hub-list.is-todo .hub-txt small { color: var(--muted); }

/* Icons are bare coloured glyphs, one hue per topic (the OnePlus Settings way):
   no tile, no circle, just the mark in its own colour on paper. The wash of tints
   is deep enough to read at 17 px and still hold 4.5:1 on the card. */
:root:root:root {
  --tone-green-ink: #1c7a4a !important;
  --tone-blue-ink: #2a63bd !important;
  --tone-yellow-ink: #96651a !important;
  --tone-rose-ink: #b3392c !important;
  --tone-violet-ink: #6a44c4 !important;
  --tone-teal-ink: #10756f !important;
  --tone-orange-ink: #b05a12 !important;
  --tone-slate-ink: #55635b !important;
}
:root:root:root:root[data-theme="dark"] {
  --tone-green-ink: #6fce9b !important;
  --tone-blue-ink: #7db0ff !important;
  --tone-yellow-ink: #e8c069 !important;
  --tone-rose-ink: #f09a8b !important;
  --tone-violet-ink: #b39bf5 !important;
  --tone-teal-ink: #6fd0c9 !important;
  --tone-orange-ink: #eda469 !important;
  --tone-slate-ink: #a9b6ae !important;
}

.hub-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent !important;
  color: var(--tone-slate-ink) !important;
}
.hub-ico .ico { width: 17px; height: 17px; }
.hub-ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-ico.lang-code { font-size: .68rem; font-weight: 700; letter-spacing: .02em; }

.hub-txt strong { font-size: .92rem; font-weight: 500; color: var(--text); }
.hub-txt span, .hub-txt small { font-size: .82rem; color: var(--muted); }
.hub-badge {
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  padding: 1px 6px;
}
.hub-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.hub-chev { color: var(--muted); }

/* The tab row never paints a box behind the active item. */
nav.tabs a, nav.tabs a.active, .tabs a, .tabs a.active {
  background: transparent !important;
  box-shadow: none !important;
}
nav.tabs a.active, .tabs a.active { border-bottom-color: var(--accent) !important; }

/* Sentence case for labels, wherever they live: the app learned "uppercase + tracking" in a
   hundred small places, and a label is a label. */
[class$="-k"],
[class$="-label"],
[class$="-kicker"],
[class$="-eyebrow"],
[class$="-cap"],
[class$="-head-k"],
.bal span,
.metric .k,
.stat .label,
.table thead th,
.day-badge,
.acc-k,
.legend-k {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
[class$="-k"],
[class$="-kicker"],
[class$="-eyebrow"],
.bal span,
.metric .k {
  font-weight: 500 !important;
}

/* "You are in shop mode" is a note, not a banner. */
.mode-bar {
  background: var(--card) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text);
  padding: 10px 16px;
  font-size: .85rem;
}
.mode-bar .btn { min-height: 32px; font-size: .82rem; }

/* The signed-out buttons (login and the three-step sign-up) share the app's one shape. */
.login-cta, .btn-enter, .signup-next, .login-continue { border-radius: 8px !important; }
.btn:disabled, .btn[disabled] {
  opacity: 1;
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

/* ----------------------------------------------------------------------------
   7. Chrome details that every screen shares
   -------------------------------------------------------------------------- */

/* "Ask Zireva" floats again — it is the app's one companion, and it stops having
   a meaning when it is filed among the header icons. It gets out of the way by
   itself: while the page is scrolling it fades almost to nothing, and it comes
   back when the scrolling stops (or on hover / focus, so it is never lost).
   On screen it is the one solid thing over the paper — ink on light, paper on
   dark, with a real shadow — because a paper capsule over paper cards simply
   disappeared. */
.ask-fab,
a.ask-fab {
  right: 12px;
  bottom: calc(var(--tabbar-h) + 12px);
  height: 44px;
  padding: 0 16px 0 13px;
  gap: 8px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 550;
  background: var(--cta-from) !important;
  background-image: none !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .18) !important;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .15s var(--ease), box-shadow .2s var(--ease);
}
.ask-fab svg { color: var(--accent-bright) !important; }
.ask-fab:hover,
a.ask-fab:hover {
  background: var(--cta-hover-from) !important;
  color: var(--cta-ink) !important;
  transform: translateY(-1px);
}
.ask-fab:active { transform: translateY(0); }
.ask-fab.is-away {
  opacity: .10;
  transform: scale(.96);
}
/* Something tappable is under it: it steps back, so the control below still reads. */
.ask-fab.is-blocking {
  opacity: .45;
  transform: scale(.98);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35) !important;
}
.ask-fab.is-away:hover,
.ask-fab.is-away:focus-visible {
  opacity: 1;
  transform: none;
}
.ask-fab .ask-fab-label { white-space: nowrap; }
main { padding-bottom: calc(var(--tabbar-h) + 72px); }

/* ----------------------------------------------------------------------------
   9. The Ask Zireva sheet
   The head used to be a dark gradient with white text; with the gradient gone the
   white title sat on paper (1.03:1 in light) and the header icons were white on
   white. The sheet now follows the ledger: paper, ink, hairline.
   -------------------------------------------------------------------------- */

.bot-panel {
  background: var(--card) !important;
  border: 1px solid var(--line);
  color: var(--text);
}
.bot-head,
header.bot-head {
  background: var(--card) !important;
  background-image: none !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.bot-title strong { color: var(--text) !important; font-weight: 600; }
.bot-title small, .bot-sub { color: var(--muted) !important; opacity: 1; }

.bot-x,
[data-bot-new],
[data-bot-list],
[data-bot-back] {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--text-2) !important;
  opacity: 1;
}
.bot-x:hover,
[data-bot-new]:hover,
[data-bot-list]:hover,
[data-bot-back]:hover { background: var(--surface-2) !important; color: var(--text) !important; }
.bot-x .ico, [data-bot-new] .ico, [data-bot-list] .ico, [data-bot-back] .ico { color: inherit; stroke: currentColor; }

/* Suggestions: a hairline tag with ink text, not gold on paper. */
.bot-chip {
  border: 1px solid var(--line-strong) !important;
  background: var(--card) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  font-weight: 500;
  padding: 8px 12px;
}
.bot-chip:hover { background: var(--surface-2) !important; border-color: var(--text-2) !important; }

.bot-bubble { background: var(--surface-2); color: var(--text); }
.bot-msg-me .bot-bubble { background: var(--chat-me-bg); color: var(--chat-me-ink); }
.bot-meta { color: var(--muted); }
.bot-note { color: var(--text-2) !important; }

.bot-input { background: var(--card); border-top: 1px solid var(--line); }
[data-bot-text] {
  background: var(--field-bg) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}
[data-bot-text]::placeholder { color: var(--muted); }

.bot-mic {
  background: var(--card) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text-2) !important;
}
.bot-mic .ico { color: inherit; }
.bot-mic.is-listening { background: var(--err-ink) !important; border-color: var(--err-ink) !important; color: #fff !important; }
[data-bot-send] {
  background: var(--cta-from) !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
}
[data-bot-send] .ico { color: inherit; }
.bot-act { color: var(--accent); font-weight: 500; }

@media (min-width: 900px) {
  .ask-fab {
    right: 24px;
    bottom: 24px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: .85rem;
  }
  .ask-fab svg { width: 16px; height: 16px; }
}

/* One easing curve, two durations. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* One entrance on load, nothing flying in from the sides. */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-in, .page-enter { animation: page-in .3s var(--ease) both; }

/* ----------------------------------------------------------------------------
   10. Two faces: a brand face and a data face

   Plus Jakarta Sans carries the words that give the app its character: the shop's
   name, the screen and card titles, the buttons, the brand lockup. Inter carries
   everything that has to stay sharp in a dense table — body, meta, timestamps and
   every figure, tabular and unbroken.

   Weights: 700 titles · 800 the primary metric · 600 card titles and buttons ·
   500 labels · 400 body. Sizes are px, as the type spec reads.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-brand: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-data: var(--font);
  --font-display: var(--font-brand);
  --font-mono: var(--font);        /* figures stay in the data face, never a third family */
}

/* ---- the brand face ------------------------------------------------------ */

h1, h2, h3,
.ex-shop,
.report-head h1,
.ex-sec-head h2, .ex-sec-head h3,
.ex-eyebrow, .ex-tile-label, .hub-label,
.inv-empty-title,
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong, .ex-need-txt,
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta, .inv-empty-quiet,
.ex-tile-link, .ex-sec-link, .ask-number a,
.bot-title strong,
.brand .lock b, .brand .lock small, .brand-lockup-word {
  font-family: var(--font-brand);
}

/* The app's own screens (Money, Stock, Profit, Settings) set their headings on the
   page wrapper, one step above a bare h1 — matched here so the brand scale wins. */
.app-page > h1:first-of-type,
.app-page > .report-head h1,
.app-page > .hero h1,
.app-page > .page-head h1,
.app-page h1, .report-head h1, .page-head h1, main h1 {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
.app-page .card h2, .app-page h2, .card h2, .report-head h2 { font-family: var(--font-brand); font-size: 16px; font-weight: 600; letter-spacing: -.008em; color: var(--heading); }
.app-page .card h3, .app-page h3, .card h3, .report-head h3 { font-family: var(--font-brand); font-size: 15px; font-weight: 600; letter-spacing: -.006em; color: var(--heading); }

/* The sign over the counter: 20px / 700 / 1.2 */
.ex-shop,
h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--heading);
}
h2 { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; color: var(--heading); }
h3 { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.006em; color: var(--heading); }

/* The primary metric: 28px / 800 / -0.02em, tabular. */
.fig-hero-value,
.ex-amount-num {
  font-family: var(--font-brand);
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.06;
  letter-spacing: -.02em !important;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 700px) {
  .fig-hero-value, .ex-amount-num { font-size: 32px !important; }
}

/* Card titles and section heads: 14–16px / 600. */
.ex-eyebrow { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.005em !important; }
.ex-eyebrow .ex-sep { margin: 0 .3em; }
.ex-tile-label { font-size: 14px !important; font-weight: 600 !important; letter-spacing: -.004em !important; }
.ex-sec-head h2, .ex-sec-head h3 { font-size: 15px !important; font-weight: 600 !important; }
.inv-empty-title { font-size: 17px !important; font-weight: 700 !important; }
.hub-txt strong, .inv-row-main strong, .nudge-txt strong, .ex-restock-copy strong { font-weight: 600 !important; }

/* Buttons: 600, 14px. */
.btn, .btn-small, .hub-pill, .ex-cta, .inv-empty-cta { font-weight: 600 !important; }
.btn { font-size: 14px; }
.btn-small { font-size: 13px; }
.hub-pill { font-size: 13px !important; }

/* ---- the data face ------------------------------------------------------- */

.ex-tile-value, .ex-pair strong, .ex-meta-item strong, .ex-rank-fig strong,
.ex-staff-fig strong, .ex-balance strong, .stat .value,
.num, .money, .fc-amount, .fc-pct, td.num, th.num {
  font-family: var(--font-data);
}
/* Every figure, in whichever face it sits, is tabular and never breaks. */
.num, .money, .stat .value, .ex-amount-num, .ex-tile-value, .ex-pair strong,
.ex-meta-item strong, .ex-rank-fig strong, .ex-staff-fig strong, .ex-balance strong,
.fig-hero-value, .fig-num, .fc-amount, .fc-pct, td.num, th.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ex-tile-value { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
.ex-pair strong { font-size: 14px; font-weight: 600 !important; }
.ex-meta-item strong { font-size: 13px; font-weight: 600 !important; }
.ex-rank-fig strong { font-size: 14px !important; font-weight: 700 !important; }
.ex-rank-fig small, .ex-staff-fig small { font-size: 12px; }

/* Body, meta and timestamps: 13px, 400–500. */
.ex-tile-sub, .ex-row-sub, .ex-meta, .ex-meta-k, .ex-tile-badge, .ex-needs-sub,
.ex-activity li, .inv-empty-copy, .hub-txt span, .ex-rank-name, .ex-staff-name,
.ex-tile-link, .ex-sec-link, .ask-number a {
  font-size: 13px;
}
.ex-tile-sub, .ex-row-sub, .ex-meta-k, .ex-meta, .ex-activity li { font-weight: 400; }
.ex-tile-link, .ex-sec-link, .ex-rank-name, .ex-staff-name { font-weight: 500; }

/* Small print: chips, pills, badges, status. */
.pill, .ex-pill, .ex-badge, .ex-chip, .ex-status-label, .ex-mini-pill,
.ex-tile-badge, .ex-staff-sub, .ex-needs-sub { font-size: 12px !important; }

/* A figure never wraps; at 320 px the statement gives it a smaller size instead. */
@media (max-width: 400px) {
  .table td.num, .table th.num, .table tr.total td, .table tr.total th { font-size: .82rem !important; }
}

/* ----------------------------------------------------------------------------
   11. The empty state of a list (invoices, quotations, unpaid, delivery and
   credit notes): what the list is for, what it will hold, and the one action
   that starts it. A panel, not a sentence with an icon.
   -------------------------------------------------------------------------- */

.inv-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: none;
}
.inv-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.inv-empty-ico .ico { width: 18px; height: 18px; }
.inv-empty-title {
  grid-column: 2;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.inv-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 52ch;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.inv-empty-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.inv-empty-cta {
  min-height: 44px;
  padding: 0 18px;
  gap: 6px;
  font-size: .92rem;
}
.inv-empty-cta .ico { width: 15px; height: 15px; }
.inv-empty-quiet {
  font-size: .86rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.inv-empty-quiet:hover { color: var(--text); border-bottom-color: var(--text-2); }

@media (max-width: 480px) {
  .inv-empty { padding: 20px; }
  .inv-empty-actions { grid-column: 1 / -1; }
}

/* A row header keeps its parts on one line: the label gives way, the pill and the
   chevron never drop to a second row. */
.ex-row-head { flex-wrap: nowrap; min-width: 0; }
.ex-row-head .ex-row-label { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .ex-row-head .ex-pill { font-size: 11px !important; padding: 1px 6px; } }
.ex-row-head .ex-ico, .ex-row-head .ex-chev, .ex-row-head .ex-pill, .ex-row-head .ex-row-sub { flex: none; }

/* ----------------------------------------------------------------------------
   12. The last three narrow-screen spills
   Three older components assumed a short English label. On a 320 px phone with a
   long translation they hid or pushed out text; they wrap now.
   -------------------------------------------------------------------------- */

/* The sign-up business picker: two lines are better than an ellipsis. */
.pk-sel {
  white-space: normal !important;
  height: auto !important;
  min-height: 48px;
  line-height: 1.3;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 360px) {
  /* System / Light / Dark: three words in a pill need less side padding. */
  .mode-switch .mode-switch-opt { padding-left: 8px; padding-right: 8px; font-size: .74rem; }
  .mode-switch { gap: 2px; }
  /* The phone-in wizard's primary button: 2 px of padding was pushing it out. */
  .phone-wizard-nav .btn-block { padding-left: .6rem; padding-right: .6rem; font-size: .95rem; }
}

/* The wizard's primary button can never be wider than its row. */
.phone-wizard-nav .btn-block { box-sizing: border-box; min-width: 0; max-width: 100%; }
.phone-wizard-nav .btn-block > * { min-width: 0; }

@media (max-width: 340px) {
  .mode-switch .mode-switch-opt { padding-left: 6px; padding-right: 6px; font-size: .7rem; letter-spacing: 0; }
}
.phone-wizard-nav .btn-block { padding-left: 14px !important; padding-right: 14px !important; }

/* ----------------------------------------------------------------------------
   13. The manager approval gate
   app.css made this one flex row: the sentence and the form split the width 133/133
   on a phone, which left the PIN field 37 px wide — you could tap it, type, and see
   nothing. The words now take the row and the field gets a real width.
   -------------------------------------------------------------------------- */

.manager-gate {
  display: block;
  padding: 16px !important;
  margin: 0 0 12px;
}
.manager-gate > div { display: block; min-width: 0; }
.manager-gate strong { display: block; font-size: 1rem; }
.manager-gate p { margin: 4px 0 0; max-width: 52ch; }

/* A grid row, not a flex row: the field takes what is left and the button never
   drops under it, whatever the input's own width rule says. */
.manager-gate .manager-gate-form, form.manager-gate-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}
.manager-gate-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  letter-spacing: .12em;
}
.manager-gate-form .btn { min-height: 44px; justify-self: end; white-space: nowrap; }

/* The approved strip keeps its row: tick, sentence, Lock. */
.manager-gate.is-open { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manager-gate.is-open > div { flex: 1 1 200px; }
.manager-gate.is-open .inline-form { flex: 0 0 auto; }

/* Counting by notes: the label sat beside the box, so at 320 px the box was 26 px
   wide — two digits and a caret. The label goes above the box on a phone and the
   box takes the whole cell. */
@media (max-width: 480px) {
  .denom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: stretch; }
  .denom span { min-width: 0; text-align: left; font-size: .8rem; }
  .denom input { width: 100%; min-width: 0; }
}

/* ----------------------------------------------------------------------------
   14. The staff dashboard, three micro-adjustments
   -------------------------------------------------------------------------- */

/* 1. The greeting pill floats: an accent hairline instead of the grey rule, a
   hairline of light along the top edge, and a shadow that only reaches the card
   under it. */
.hero-greeting {
  border: 1px solid var(--accent-line, rgba(138, 106, 31, .30));
  background: var(--brand-tint);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 1px 2px rgba(16, 24, 20, .05),
    0 8px 20px -14px rgba(16, 24, 20, .45);
}
[data-theme="dark"] .hero-greeting {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(0, 0, 0, .35),
    0 10px 24px -16px #000;
}

/* 2. The To do counter wears the palette, not a system blue. A deep green tint, not
   the bronze one: "tasks" and "floats" are already amber, and two warm chips side
   by side read as the same thing. Green says routine work, amber says look at this. */
:root:root .ex-chip-info {
  background: var(--ok-bg, #edf4ec) !important;
  border-color: rgba(46, 111, 64, .24) !important;
  color: var(--ok-ink, #2e6f40) !important;
}
[data-theme="dark"] :root:root .ex-chip-info,
:root:root[data-theme="dark"] .ex-chip-info {
  border-color: rgba(127, 196, 147, .28) !important;
}

/* The quiet CTA beside the primary one in the month card was cream on cream — 1:1,
   a button you cannot read. It is a paper button with ink text again. */
.exec-dash .shop-reward a.ex-cta-quiet,
.exec-dash .shop-reward a.ex-cta-quiet:hover,
.shop-pulse a.ex-cta-quiet,
.shop-pulse a.ex-cta-quiet:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

/* 3. The progress meta reads in two beats: what is left of the target, then when
   the month ends. The timeline no longer rides on the same line as the money. */
body.shop-home .shop-reward-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.4;
}
body.shop-home .shop-reward-meta span:last-child {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: .74rem;
}
body.shop-home .shop-reward-meta span:last-child::before { content: none; }
body.shop-home .shop-reward-meta span:not(:first-child)::before { content: "·"; margin-right: .4rem; color: var(--line-strong); }

/* ----------------------------------------------------------------------------
   15. The negative tone, softened into the warm palette
   A deficit still has to read as a deficit, so the tone stays terracotta — but a
   muted one (burnt umber on sand) instead of the system-alert red that fought the
   cream and bronze. One set of values for every palette, day and night.
   -------------------------------------------------------------------------- */

:root:root:root:root:root {
  --danger: #9a4f3b !important;
  --danger-ink: #8a4426 !important;
  --danger-border: #e3c3ab !important;
  --err-ink: #9a4f3b !important;
  --err-bg: #f7e6d9 !important;
  --err-border: #e3c3ab !important;
  --neg-bg: #f8ece2 !important;
  --neg-border: #e8cdb8 !important;
}

:root:root:root:root:root[data-theme="dark"] {
  --danger: #e59c84 !important;
  --danger-ink: #f0b9a2 !important;
  --danger-border: rgba(224, 150, 120, .30) !important;
  --err-ink: #e59c84 !important;
  --err-bg: rgba(196, 120, 95, .14) !important;
  --err-border: rgba(224, 150, 120, .30) !important;
  --neg-bg: rgba(196, 120, 95, .10) !important;
  --neg-border: rgba(224, 150, 120, .26) !important;
}

/* The urgent chip is the same terracotta now, one step stronger than "to do" so
   the order still reads: urgent, to do, info, services. */
:root:root .ex-chip-bad {
  background: var(--err-bg) !important;
  color: var(--danger-ink) !important;
  border-color: var(--err-border) !important;
}

/* 3. The Ask capsule sat 12px above the docked bar and crowded it; it keeps its
   distance from the bar and from the card it floats over. */
.ask-fab,
a.ask-fab {
  bottom: calc(var(--tabbar-h) + 20px);
  right: 14px;
}

/* The capsule measured 140px while its label needed 144: the words were running
   past the right edge. It sizes to its content now, and when a control sits under
   it, it steps back to 80% instead of fading to grey. */
.ask-fab,
a.ask-fab {
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 28px);
  padding: 0 18px 0 14px;
  white-space: nowrap;
}
.ask-fab .ask-fab-label { flex: 0 0 auto; }
.ask-fab.is-blocking { opacity: .82 !important; }

/* A money row keeps its figure whole: the description gives way and wraps, the
   amount never leaves the row. */
.entry-main { min-width: 0; }
.entry-main > .what, .entry-main > .entry-text { min-width: 0; overflow-wrap: anywhere; }
.entry-main > .amt { flex: 0 0 auto; margin-left: auto; }

/* A tool pill carries its glyph in the same eight hues as the list rows, so the
   Stock screen's tools read as one family with the rest of the app. */
.hub-pill .ico.tone-green { color: var(--tone-green-ink) !important; }
.hub-pill .ico.tone-blue { color: var(--tone-blue-ink) !important; }
.hub-pill .ico.tone-yellow { color: var(--tone-yellow-ink) !important; }
.hub-pill .ico.tone-rose { color: var(--tone-rose-ink) !important; }
.hub-pill .ico.tone-violet { color: var(--tone-violet-ink) !important; }
.hub-pill .ico.tone-teal { color: var(--tone-teal-ink) !important; }
.hub-pill .ico.tone-orange { color: var(--tone-orange-ink) !important; }
.hub-pill .ico.tone-slate { color: var(--tone-slate-ink) !important; }
.hub-pill .ico { width: 17px; height: 17px; }

/* ----------------------------------------------------------------------------
   16. Offline looks like online
   The old full-width band under the header made the app look like a different,
   lesser app the moment the radio dropped. It is gone. Being offline now shows
   as one quiet detail: a small amber dot on the corner of the shop's mark, with
   nothing moving and no colour changing anywhere else. The queued-entry lines
   (offline.js) still appear where they are useful — above the form, not across
   the whole screen.
   -------------------------------------------------------------------------- */

.offline-strip { display: none !important; }

.brand { position: relative; }
.brand .brand-mark { position: relative; }
body.is-offline .brand .brand-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--brand-band);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------------------
   17. The offline screen, wearing the app's clothes
   Paper, one card, the same rows and chevrons as the hub lists, grouped the way
   the app groups its screens. It should look like a screen of the app that has
   nothing to add, not a browser error page with a list of buttons.
   -------------------------------------------------------------------------- */

.offline-wrap { max-width: 520px; margin: 0 auto; padding: 18px 14px 44px; }
.offline-brand { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.offline-brand img { border-radius: 10px; }
.offline-brand .brand.big { font-size: 1.05rem; color: var(--text); }
.offline-brand .brand.big span { color: var(--accent); }
.offline-group { margin: 18px 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.offline-card {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 30px -24px rgba(16, 24, 20, .45);
}
.offline-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 14px;
}
.offline-mark .ico { width: 26px; height: 26px; }
.offline-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--heading); }
.offline-lead { margin: 0 auto 18px; max-width: 38ch; font-size: 14px; line-height: 1.55; color: var(--muted); }

.offline-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.offline-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.offline-status.is-on .dot { background: var(--ok-ink); }
.offline-status.is-off .dot { background: var(--err-ink); }

.offline-retry {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--cta-border);
  background: var(--cta-from);
  color: var(--cta-ink);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
}
.offline-retry:active { transform: scale(.99); }

.offline-queue { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }

.offline-saved { margin-top: 20px; }
.offline-sub { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--heading); }
.offline-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.offline-saved .hub-list { margin: 0 0 14px; }
.offline-saved .hub-row { text-decoration: none; color: inherit; }
.offline-saved .hub-chev { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* The offline panel on the shop's Home keeps the app's rows, with the card frame
   dropped so it does not look like a box inside a box. */
.offline-panel .hub-sec { margin: 12px 0 0; }
.offline-panel .hub-label { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offline-panel .hub-list { margin: 0; border: 0; background: transparent; }
.offline-panel .hub-row { padding: 10px 0; }
.offline-panel .hub-row:first-child { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------------------
   18. Shop mode, said quietly
   An owner looking at the staff screen used to get a full card above the page —
   a second header for a page that already has one. The mode is a fact about the
   phone, not a section of the screen, so it lives in the bar: a small pill with
   the palette's dot, tappable, that returns to the owner view. The page below
   starts where it always starts.
   -------------------------------------------------------------------------- */

.topbar-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.topbar-mode:hover { background: rgba(255, 255, 255, .24); }
.topbar-mode:active { transform: scale(.98); }
.topbar-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
/* The swap glyph is what makes it a control rather than a badge: it says "this
   takes you to the other side", and the dot says which side you are on. */
.topbar-mode-swap { width: 12px; height: 12px; color: rgba(255, 255, 255, .78); flex: none; }

/* You cannot miss the mode. The pill is ringed in the palette's gold and carries a
   soft glow (a pseudo-element, so the glow has its own opacity instead of a hard
   shadow), and the sign under it runs one gold hairline — the same hairline the
   paper uses for a settled total. Nothing else on the screen changes. */
.shop-mode .topbar-mode {
  position: relative;
  margin-left: 4px;
  border-color: var(--accent-bright);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.shop-mode .topbar-mode::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 14px 2px var(--accent-bright);
  opacity: .38;
}
.shop-mode .topbar-mode .topbar-mode-swap { color: var(--accent-bright); }
.shop-mode .topbar-mode-txt { color: #fff; letter-spacing: .09em; }
.shop-mode .topbar { border-bottom-color: var(--accent-bright) !important; }
@media (max-width: 380px) {
  .topbar-mode { padding: 0 8px; font-size: 9px; letter-spacing: .06em; }
}

/* ----------------------------------------------------------------------------
   19. The story of the day, and what you did today
   Two cards only: one for the owner on the day report, one for the person
   about to count. Short labelled lines, figures in the mono rhythm, no walls of
   prose — the numbers do the talking and each line answers one question.
   -------------------------------------------------------------------------- */

.day-story { padding: 16px !important; margin: 0 0 12px; }
.day-story .recon-top { margin-bottom: 2px; }
.story-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.story-lines li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.story-k { font-size: 12px; font-weight: 500; color: var(--muted); }
.story-v { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.story-v strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.story-v a { color: var(--accent-2); }
.story-foot { margin: 12px 0 0; }
@media (max-width: 400px) {
  .story-lines li { grid-template-columns: 1fr; gap: 1px; }
  .story-k { font-size: 11px; letter-spacing: .02em; }
}

.pre-close { padding: 16px !important; margin: 0 0 12px; }
.pre-close .recon-top { margin-bottom: 2px; }
.pre-close-day { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pre-close-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pre-close-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.pk { color: var(--muted); font-size: 13px; }
.pv { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.pv strong { font-weight: 600; }
.pc-reason { display: block; font-size: 12px; color: var(--muted); }
.pre-close-note { margin: 12px 0 0; }


/* ----------------------------------------------------------------------------
   20. Ask Zireva — a small AI circle, not a capsule
   The capsule covered the "Needs you" chips and read as another primary button.
   This is one 52px circle with the spark, in the brand's ink, and it steps back
   to 16% while the page is being scrolled (it returns 900ms after the scroll
   stops). The words live on in aria-label/title, so it is still "Ask Zireva" to
   a screen reader and to a long-press.
   ---------------------------------------------------------------------------- */
.ask-fab,
a.ask-fab {
  right: 16px;
  bottom: calc(var(--tabbar-h) + 18px);
  width: 52px !important;
  height: 52px !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center;
  gap: 0;
  background: var(--cta-from) !important;
  background-image: none !important;
  color: var(--cta-ink) !important;
  border: 1px solid var(--cta-border) !important;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .16) !important;
  opacity: 1;
  transition: opacity .3s var(--ease), transform .3s var(--ease), box-shadow .2s var(--ease);
}
.ask-fab svg { width: 22px !important; height: 22px !important; color: var(--accent-bright) !important; }
.ask-fab .ask-fab-label {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Scrolling: it almost disappears, and comes back when the page stops. */
.ask-fab.is-away,
a.ask-fab.is-away {
  opacity: .14 !important;
  transform: translateY(4px) scale(.9) !important;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .3) !important;
}
/* A control directly under it: it steps back rather than fade away completely. */
.ask-fab.is-blocking,
a.ask-fab.is-blocking { opacity: .92 !important; }   /* small enough not to need hiding over a control */
.ask-fab:hover,
.ask-fab:focus-visible,
a.ask-fab:hover,
a.ask-fab:focus-visible {
  opacity: 1 !important;
  transform: none !important;
}
@media (min-width: 900px) {
  .ask-fab, a.ask-fab { right: 24px; bottom: 24px; }
}


/* ----------------------------------------------------------------------------
   21. The tab bar: one sliding ink, bold where you are, and a page that moves
   The gold 2px line above the label was a hint, not a location. Now the active
   tab carries a soft capsule that SLIDES from the old tab to the new one, the
   icon gains weight, and the label goes bold — you can see where you are from
   across the room. Pages cross-fade through the browser's own view transitions
   (the bar and the top bar are pinned, so only the content moves), with a quiet
   fallback for phones that do not support them.
   -------------------------------------------------------------------------- */
:root:root:root .tabbar {
  padding-top: .42rem !important;
  overflow: visible;
  isolation: isolate;
}
.tab-ink {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: 15px;
  box-shadow: 0 6px 14px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
  opacity: 0;
  transition: transform .34s cubic-bezier(.22, .8, .24, 1), width .34s cubic-bezier(.22, .8, .24, 1),
              height .2s ease, opacity .2s ease;
}
.tab-ink.ready { opacity: 1; }
.tab-ink.no-anim { transition: none !important; }

:root:root:root .tabbar a,
:root:root:root .tabbar a:visited {
  position: relative;
  z-index: 1;
  color: var(--muted) !important;
  font-weight: 550 !important;
  font-size: .72rem !important;
  letter-spacing: .01em;
  gap: .12rem;
  padding: .3rem 0 .32rem;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
:root:root:root .tabbar a .ico {
  width: 22px; height: 22px;
  stroke-width: 1.75;
  transition: transform .28s cubic-bezier(.22, .8, .24, 1), stroke-width .2s ease;
}
/* The gold marker above the label is replaced by the capsule itself. */
:root:root:root .tabbar a::before,
:root:root:root .tabbar a::after { display: none !important; content: none !important; }
:root:root:root .tabbar a .pip {
  /* A blanket rule earlier in this file hides every .pip; the tab icons live in one. */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 24px !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
:root:root:root .tabbar a .pip .ico { display: block; }

/* Where you are: bold label, heavier icon, ink colour — plus the capsule behind it. */
:root:root:root .tabbar a.active,
:root:root:root .tabbar a[aria-current="page"] {
  color: var(--heading) !important;
  font-weight: 750 !important;
}
:root:root:root .tabbar a.active .ico,
:root:root:root .tabbar a[aria-current="page"] .ico {
  stroke-width: 2.15;
  transform: translateY(-1px) scale(1.04);
}
:root:root:root .tabbar a:active { transform: scale(.97); }
:root:root:root .tabbar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}

/* The page itself moves: every screen arrives with a short lift and fade, so a tap is answered immediately.
   (Cross-document view transitions were tried here and abandoned: they abort with an InvalidStateError on some
   navigations, which is worse than no transition at all. This works in every browser and on every phone.) */
@media (prefers-reduced-motion: no-preference) {
  main#main { animation: page-enter .28s cubic-bezier(.22, .8, .24, 1) backwards; }
  /* The bar is not re-animated on every screen: it is the anchor, not the content. */
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  main#main { animation: none !important; }
}



/* ----------------------------------------------------------------------------
   22. Closing a business — a page that slows you down, not a form in a void
   The old page was one long paragraph and three closed ⓘ icons. This one moves
   in four beats: what is at stake (counted, not described), what happens (four
   concrete lines), what is kept against what is removed, then a gate that only
   opens when the code matches. It is the only page in the app that should feel
   like a locked door.
   -------------------------------------------------------------------------- */
.close-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  margin: 0 0 10px;
  border: 1px solid var(--tone-rose-line, var(--line-strong));
  border-radius: var(--radius);
  background: var(--tone-rose-tint, var(--surface-2));
}
.close-hero-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--tone-rose-line, var(--line-strong));
  color: var(--tone-rose-ink);
}
.close-hero-mark .ico { width: 21px; height: 21px; stroke-width: 2; }
.close-hero-body { min-width: 0; }
.close-kicker { margin: 1px 0 2px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.close-name { margin: 0 0 6px; font-size: 23px; line-height: 1.2; font-weight: 750; color: var(--heading); overflow-wrap: anywhere; }
.close-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; color: var(--text-2); }
.close-code {
  font-family: var(--font);
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.close-dot { color: var(--line-strong); }
.close-meta strong { color: var(--tone-rose-ink); font-weight: 650; }

.close-open { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--tone-rose-ink); }
.close-permanent { margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--tone-rose-ink); }

.close-h { margin: 26px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.close-effects { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.close-effects li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.close-effects li:first-child { border-top: 1px solid var(--line); }
.close-effects strong { display: block; font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 2px; }
.close-effects span > span, .close-effects li > span:last-child { }
.close-effects li > span:last-child { font-size: 13px; line-height: 1.55; color: var(--muted); }
.close-effect-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.close-effect-ico .ico { width: 18px; height: 18px; stroke-width: 1.9; }
.close-effect-ico.tone-rose { color: var(--tone-rose-ink); }
.close-effect-ico.tone-amber { color: var(--tone-yellow-ink); }
.close-effect-ico.tone-blue { color: var(--tone-blue-ink); }
.close-effect-ico.tone-green { color: var(--tone-green-ink); }

/* Kept against removed: side by side, a hairline between them, no boxes in boxes. */
.close-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.close-panel { padding: 15px 16px; }
.close-panel + .close-panel { border-left: 1px solid var(--line); }
.close-panel h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.close-keep h3 { color: var(--tone-green-ink); }
.close-drop h3 { color: var(--tone-rose-ink); }
.close-panel p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* The way out that most people actually need: a copy before the door shuts. */
.close-export {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin: 0 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: inherit;
}
.close-export:hover { border-color: var(--accent-line); }
.close-export strong { display: block; font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 1px; }
.close-export span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.close-export .ico { width: 20px; height: 20px; color: var(--accent-2); }
.close-export .close-chev { width: 16px; height: 16px; color: var(--muted); }

/* The gate: numbered, quiet, and the button stays shut until both answers are right. */
.close-gate {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.close-gate .close-h { margin-top: 0; }
.close-gate-lead { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.close-steps { list-style: none; margin: 0 0 6px; padding: 0; counter-reset: close-step; display: grid; gap: 16px; }
.close-steps li {
  counter-increment: close-step;
  position: relative;
  padding: 0 0 0 30px;
  border: 0 !important;          /* a global list rule draws each item as a pill */
  border-radius: 0 !important;
  background: none !important;
  margin: 0;
}
.close-steps li::before {
  content: counter(close-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.close-steps label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.close-field { position: relative; }
.close-field input { width: 100%; padding-right: 42px; }
.close-tick {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tone-green-tint, var(--surface-2));
  color: var(--tone-green-ink);
  animation: tick-in .22s var(--ease) both;
}
.close-tick .ico { width: 14px; height: 14px; stroke-width: 2.6; }
@keyframes tick-in { from { opacity: 0; transform: translateY(-50%) scale(.7); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.close-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.close-hint.is-bad { color: var(--tone-rose-ink); }
.close-understand { margin: 18px 0 16px; }
.close-submit { width: 100%; }
.close-submit[disabled] { opacity: .5; cursor: not-allowed; }
.close-fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.close-exit { margin: 22px 0 8px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.close-exit strong { color: var(--text); font-weight: 600; }
.close-exit a { color: var(--accent-2); }

@media (max-width: 380px) {
  .close-split { grid-template-columns: 1fr; }
  .close-panel + .close-panel { border-left: 0; border-top: 1px solid var(--line); }
  .close-name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .close-tick { animation: none; }
}


/* ----------------------------------------------------------------------------
   23. Closing a business — the journey
   Three screens, one question each: why (six honest answers, room for your own
   words), what changes (four lines and the export), confirm (the code and your
   password). The stepper is the map, so the page can never feel like a notepad.
   -------------------------------------------------------------------------- */
.journey { margin: 2px 0 20px; }
.journey ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.journey li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px 9px;
  border-bottom: 2px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
  min-width: 0;
}
.journey-n {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.journey-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey li.is-done { color: var(--text-2); border-bottom-color: var(--accent-line); }
.journey li.is-done .journey-n { border-color: var(--accent-line); color: var(--accent-2); }
.journey li.is-now { color: var(--heading); border-bottom-color: var(--accent); }
.journey li.is-now .journey-n { background: var(--accent); border-color: var(--accent); color: #1b1a17; font-weight: 750; }

.why-head { margin: 0 0 18px; }
.why-kicker { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.why-q { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 750; color: var(--heading); }
.why-q .close-code { vertical-align: 2px; margin-left: 6px; }
.why-lead { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.why-recap { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.why-recap a { color: var(--accent-2); }

/* The six answers: a grid of cards, the chosen one carries the pen. */
.why-grid { border: 0; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.why-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
.why-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.why-card:active { transform: scale(.985); }
.why-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.why-ico .ico { width: 16px; height: 16px; stroke-width: 1.9; }
.why-card .tone-amber { color: var(--tone-yellow-ink); }
.why-card .tone-rose { color: var(--tone-rose-ink); }
.why-card .tone-blue { color: var(--tone-blue-ink); }
.why-card .tone-violet { color: var(--tone-violet-ink); }
.why-card .tone-teal { color: var(--tone-teal-ink); }
.why-card .tone-slate { color: var(--tone-slate-ink); }
.why-text { font-size: 13px; line-height: 1.4; font-weight: 550; color: var(--text); }
.why-tick {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: #1b1a17;
}
.why-tick .ico { width: 11px; height: 11px; stroke-width: 3; }
/* The chosen card: accent hairline, tinted paper, a tick in the corner. */
.why-card:has(input:checked),
.why-card.is-picked {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.why-card:has(input:checked) .why-tick,
.why-card.is-picked .why-tick { display: grid; }
.why-card:has(input:focus-visible),
.why-card.is-focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.why-note-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.why-note-label .muted { font-weight: 400; }
.why-form textarea { width: 100%; resize: vertical; min-height: 76px; }
.why-next { width: 100%; margin-top: 16px; }
/* The step's action rides above the bar, like any app's primary button: no reaching past the dock. */
.why-next, .close-submit {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 10px);
  z-index: 4;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55);
}
.why-actions {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 8px);
  z-index: 4;
  padding: 8px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--card-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.why-fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.close-effects--tight { margin-bottom: 4px; }
.close-effects--tight li { padding: 10px 0; }
.close-effects--tight strong { font-size: 13.5px; }
.close-effects--tight li > span:last-child { font-size: 12.5px; }

.why-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 18px 0 0; align-items: center; }
.why-actions .btn-danger { justify-content: center; }
.why-back { margin: 16px 0 0; font-size: 13px; }
.why-back a { color: var(--accent-2); }

@media (max-width: 340px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .why-card { transition: none; }
}


/* ----------------------------------------------------------------------------
   24. Help & support — a desk, not a form
   The page used to be: a paragraph, an input, then three cards in no order. It
   is now a place: who you are talking to, one field to ask the guide, two ways
   in (a person, the getting-started guide), your conversations as a list, and
   one conversation that reads like a chat rather than a table.
   -------------------------------------------------------------------------- */
.support-hero { display: flex; gap: 14px; align-items: flex-start; margin: 2px 0 18px; }
.support-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--accent-2);
}
.support-mark .ico { width: 21px; height: 21px; stroke-width: 1.9; }
.support-hero h1 { margin: 2px 0 6px; font-size: 25px; line-height: 1.15; font-weight: 760; color: var(--heading); }
.support-lead { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.support-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.support-call .ico { width: 15px; height: 15px; }

/* One field, one question: the guide is the fastest door, so it gets the top. */
.ask-card {
  padding: 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.ask-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
}
.ask-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.ask-field .ico { width: 18px; height: 18px; color: var(--accent-2); }
.ask-field input { border: 0 !important; background: transparent !important; padding: 8px 0 !important; font-size: 14px; }
.ask-field .btn { white-space: nowrap; }
.ask-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent);
  color: #1b1a17;
  cursor: pointer;
}
.ask-send .ico { width: 17px; height: 17px; stroke-width: 2.2; color: #1b1a17; }
.ask-send:hover { filter: brightness(1.05); }
.ask-send:active { transform: scale(.96); }
.support-fine { margin: 9px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

.guide-card {
  padding: 16px;
  margin: 0 0 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-tint);
}
.guide-q { margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--heading); }
.guide-a { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.guide-src { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.guide-esc { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent-2); text-decoration: none; }

/* Two ways in, side by side. */
.support-tiles { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 4px 0 22px; }
@media (min-width: 520px) { .support-tiles { grid-template-columns: 1fr 1fr; } }
.support-tile {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 9px;
  align-items: center;
  padding: 13px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  color: inherit;
}
.support-tile:hover { border-color: var(--accent-line); }
.support-tile-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.support-tile-ico .ico { width: 16px; height: 16px; }
.support-tile-ico.tone-blue { color: var(--tone-blue-ink); }
.support-tile-ico.tone-green { color: var(--tone-green-ink); }
.support-tile-text { display: grid; gap: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.support-tile-text strong { font-size: 13.5px; font-weight: 650; color: var(--text); }
.support-tile-chev { width: 14px; height: 14px; color: var(--muted); }

.support-h { margin: 0 0 10px; font-size: 13px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--text-2); }

/* Your conversations: one line each, a state dot, and "new answer" when it is. */
.support-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.support-list li { border-bottom: 1px solid var(--line); }
.support-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 2px;
  text-decoration: none;
  color: inherit;
}
.support-row:hover { background: var(--surface-2); }
.support-state { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.support-state.is-open { background: var(--tone-yellow-ink); }
.support-state.is-waiting { background: var(--tone-green-ink); }
.support-state.is-solved { background: var(--line-strong); }
.support-row-main { display: grid; gap: 2px; min-width: 0; }
.support-row-main strong { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-row-main strong.is-fresh { font-weight: 750; }
.support-row-sub { font-size: 11.5px; color: var(--muted); }
.support-new { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }

.thread-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .02em;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.thread-state.is-open { color: var(--tone-yellow-ink); border-color: var(--tone-yellow-ink); background: var(--surface-2); }
.thread-state.is-waiting { color: var(--tone-green-ink); border-color: var(--tone-green-ink); background: var(--surface-2); }
.thread-state.is-solved { color: var(--muted); }

.support-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 20px;
  margin: 0 0 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.support-empty .ico { width: 22px; height: 22px; color: var(--muted); }
.support-empty p { margin: 0; max-width: 34ch; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.new-request { margin: 0 0 22px; }
.new-request-form {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.new-request-form label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.new-request-file {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 6px 0 2px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--muted);
}
.new-request-file .ico { width: 15px; height: 15px; }
.new-request-file { position: relative; width: fit-content; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; }
.new-request-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.new-request-file.is-picked { border-style: solid; border-color: var(--accent-line); color: var(--text); }
.support-fine--start { margin: 0 0 8px; text-align: left; }
.new-request-send { margin-top: 8px; }

.support-access { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.support-access-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.support-access-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--heading); }
.support-access-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.support-access-form select { flex: 1 1 120px; min-width: 0; }
.support-access-stop { margin-top: 8px; }

/* One conversation: bubbles, not a table. */
.support-back { margin: 0 0 10px; font-size: 13px; }
.support-back a { color: var(--accent-2); }
.thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.thread-head-main { min-width: 0; }
.thread-head h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 740; color: var(--heading); overflow-wrap: anywhere; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin: 0; font-size: 12px; color: var(--muted); }
.thread-shop { color: var(--text-2); }
.thread-solved { flex: 0 0 auto; }

.thread { display: grid; gap: 10px; margin: 0 0 18px; }
.bubble {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.bubble.is-them { justify-self: start; border-bottom-left-radius: 6px; border-color: var(--accent-line); background: var(--accent-tint); }
.bubble.is-me { justify-self: end; border-bottom-right-radius: 6px; }
.bubble-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.bubble-who { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.bubble-when { font-size: 10.5px; color: var(--muted); }
.bubble-body { font-size: 13.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.bubble-photo { display: block; margin-top: 8px; }
.bubble-photo img { width: 100%; max-width: 240px; border-radius: 10px; border: 1px solid var(--line); }

.composer {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 10px);
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .6);
}
.composer textarea { border: 0 !important; background: transparent !important; padding: 6px 4px !important; resize: vertical; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-file { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.composer-file .ico { width: 18px; height: 18px; }
.composer-file input { width: 1px; height: 1px; opacity: 0; position: absolute; }

@media (max-width: 380px) {
  .support-tiles { grid-template-columns: 1fr; }
  .bubble { max-width: 94%; }
}


/* ----------------------------------------------------------------------------
   25. Help & support: one hero, the rest quiet
   The page had four things that all looked like buttons. Now the human door is
   the only filled action ("Write to us"), WhatsApp is the one outlined action
   with its real mark, the guide stays a field, and "Getting started" is a quiet
   link. Inside the access card, Allow is the only filled button.
   -------------------------------------------------------------------------- */
.support-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 2px 0 10px; }
@media (min-width: 430px) { .support-actions { grid-template-columns: auto auto; justify-content: start; } }
.support-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; }
.support-actions .btn .ico { width: 18px; height: 18px; }
.support-write { font-weight: 600; }
/* The brand mark keeps its own green where it sits on paper — it is the one icon in the app that is a logo. */
.support-wa { color: var(--text) !important; border-color: var(--line-strong) !important; background: var(--card) !important; }
.support-wa .ico { width: 20px; height: 20px; color: #128c7e; }
.support-wa:hover { border-color: #128c7e !important; }

.support-guide-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.support-guide-link:hover { color: var(--text); }
.support-guide-link .ico { width: 17px; height: 17px; color: var(--tone-green-ink); }
.support-guide-link .support-tile-chev { width: 14px; height: 14px; color: var(--muted); }

/* The access card reads as one control row: two quiet fields, one filled Allow. */
.support-access-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; align-items: stretch; }
.support-access-form select { min-height: 40px; }
.support-access-form .btn { grid-column: 1 / -1; justify-content: center; min-height: 42px; }
@media (min-width: 430px) {
  .support-access-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .support-access-form .btn { grid-column: auto; padding: 0 18px; }
}
.support-access-stop { margin-top: 10px; }
.support-access-stop .btn { background: none !important; border-color: transparent !important; color: var(--tone-rose-ink) !important; padding: 6px 2px; min-height: 0; }

/* The WhatsApp mark is the one filled glyph in the sprite: keep it from inheriting a line stroke. */
.ico use[href="#i-whatsapp"],
.ico .i-whatsapp { fill: currentColor; stroke: none; }
.wa-btn { display: inline-flex; align-items: center; gap: 7px; }
.wa-btn .ico { width: 16px; height: 16px; color: currentColor; }


/* ----------------------------------------------------------------------------
   26. The profit card's header: one line, no empty right side
   At 14px the label plus "Statement" did not fit the phone width, so the link
   wrapped onto a second line and left a band of nothing beside the label. The
   header is a two-column grid now: the label wraps inside its own column and the
   statement link sits on the first line, always, where the eye expects it.
   -------------------------------------------------------------------------- */
.ex-pulse-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2px 12px;
  flex-wrap: nowrap !important;
  margin-bottom: 10px;
}
.ex-pulse-top .ex-eyebrow {
  flex: none !important;
  min-width: 0;
  font-size: 13.5px !important;
  line-height: 1.4;
}
.ex-pulse-top .ex-eyebrow .ex-sep { margin: 0 .3em; }
.ex-pulse-top .ex-ghost {
  margin-left: 0 !important;
  align-self: start;
  white-space: nowrap;
  min-height: 32px;
  padding: 0 2px;
  font-size: 13px !important;
  font-weight: 550;
}
.ex-pulse-top .ex-ghost .ico { width: 14px; height: 14px; }
@media (max-width: 340px) {
  .ex-pulse-top .ex-ghost { font-size: 12.5px !important; }
}


/* ----------------------------------------------------------------------------
   27. The trading-profit card: one story, top to bottom
   It read as five disconnected lines: a label, a number, a note, chips, then
   three figures separated by dots. Now it is a statement: what was earned, what
   it cost, what is left — with the one-off and the sanity check paired beside
   the hero, the ledger in two labelled groups, and the ask link on its own
   footer. Same figures, same formulas, no chart.
   -------------------------------------------------------------------------- */
.pl-hero { margin: 2px 0 6px; }
.pl-compare { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 0; }
.pl-compare .ex-trend-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* The two context pills sit together and never stretch: the one-off is a fact, "check" is a link. */
.pl-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 8px; }
.pl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 550;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}
.pl-pill:hover { border-color: var(--accent-line); color: var(--text); }
.pl-pill--oneoff { border-color: var(--tone-orange-line, var(--line-strong)); background: var(--surface-2); }
.pl-pill-k { color: var(--muted); font-weight: 500; }
.pl-pill-v { color: var(--tone-orange-ink); font-weight: 650; font-variant-numeric: tabular-nums; }

/* The ledger: two labelled groups, figures right, one hairline between them. */
.pl-ledger { margin: 0; border-top: 1px solid var(--line); }
.pl-group { padding: 6px 0 2px; }
.pl-group + .pl-group { border-top: 1px solid var(--line); margin-top: 2px; }
.pl-group-label {
  margin: 0 0 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
}
.pl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
}
.pl-row dt { font-size: 13.5px; font-weight: 450; color: var(--text-2); }
.pl-row dd {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pl-sign { width: 11px; text-align: center; font-size: 13px; font-weight: 600; }
.pl-in .pl-sign { color: var(--tone-green-ink); }
.pl-out .pl-sign { color: var(--tone-orange-ink); }
.pl-out .pl-row dd { color: var(--text); }
.pl-row dd.is-zero { color: var(--muted); font-weight: 550; }

.pl-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* The footer action gets its own room above the card edge. */
.pl-ask { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.pl-ask .ask-number { margin: 0; }
.pl-ask .ask-number a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }

@media (max-width: 340px) {
  .pl-row dd { font-size: 14px; }
  .pl-pill { font-size: 11.5px; padding: 0 9px; }
}


/* ----------------------------------------------------------------------------
   28. New sale: a slim bar, and a sheet that comes when asked
   The payment card used to sit permanently over the catalog, taking half the
   screen. Now the bar is 64px and shows the count and the total, the list is
   untouched behind it, and everything else opens in a sheet when the seller
   taps Checkout. Same fields, same form, same server.
   -------------------------------------------------------------------------- */

/* The old sticky card must not linger behind the new pattern. */
#sale-form .checkout { position: static !important; display: none !important; }

.scan-link {
  flex: 0 0 auto;
  width: 46px;
  min-width: 46px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scan-link .ico { width: 21px; height: 21px; }
.sale-search .search { min-width: 0; font-size: 15px; }

/* State A — the bar. Only when something is in the sale. */
.checkout-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .04), 0 18px 34px -18px rgba(0, 0, 0, .55);
}
.checkout-bar-sum {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.cb-items { font-size: 11.5px; color: var(--muted); }
.cb-total {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.checkout-bar-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  min-height: 52px;
  border: 1px solid var(--cta-border);
  border-radius: 12px;
  background: var(--cta-from);
  color: var(--cta-ink);
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}
.checkout-bar-go .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.checkout-bar-go:active { transform: scale(.98); }

/* State B — the sheet. */
.checkout-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12, 20, 16, .42);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.checkout-scrim.is-on { opacity: 1; }

.checkout-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--card);
  box-shadow: 0 -24px 48px -28px rgba(0, 0, 0, .6);
  transform: translateY(101%);
  transition: transform .26s cubic-bezier(.22, .8, .24, 1);
  overscroll-behavior: contain;
}
.checkout-sheet.is-open { transform: translateY(0); }
body.checkout-open { overflow: hidden; }

.co-grab {
  width: 38px;
  height: 4px;
  margin: 8px auto 2px;
  border-radius: 999px;
  background: var(--line-strong);
  flex: 0 0 auto;
}
.co-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 16px 12px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.co-head-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.co-kicker { font-size: 11.5px; color: var(--muted); }
.co-total {
  font-size: 27px;
  font-weight: 750;
  line-height: 1.1;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.co-count { font-size: 12.5px; color: var(--muted); }
.co-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
}
.co-close .ico { width: 16px; height: 16px; stroke-width: 2.2; }

.co-body {
  overflow-y: auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
}
.co-body label { font-size: 13px; font-weight: 600; }
.co-body input, .co-body select { min-height: 46px; }
.co-body .hint { display: block; margin-top: 4px; font-weight: 400; }
.co-body .hint.diff-ok { color: var(--tone-green-ink); font-weight: 600; }
.co-body .hint.diff-off { color: var(--tone-orange-ink); font-weight: 600; }
.co-body .seg label { min-height: 48px; font-size: 13.5px; }
.co-save { min-height: 52px; font-size: 15.5px; font-weight: 650; margin-top: 2px; }

/* Room for the bar at the end of the list, so the last product is never trapped under it. */
#sale-form { padding-bottom: 88px; }

@media (prefers-reduced-motion: reduce) {
  .checkout-sheet { transition: none; }
  .checkout-scrim { transition: none; }
}


/* ----------------------------------------------------------------------------
   29. All products is a list you can see, not a drawer
   The catalog was hidden behind "All products (245) +". With the payment card
   gone there is room for it, and searching or scanning already needs it open, so
   it is simply there, under a quiet heading.
   -------------------------------------------------------------------------- */
.all-products { margin: 18px 0 8px; }
.all-products-title { margin: 0 0 10px; }
.all-products .prod-list { margin: 0; }


/* ----------------------------------------------------------------------------
   30. The closing-result button was invisible, and this is why
   dashboard.css paints `.shop-pulse.is-closed .ex-cta` with a gradient only. A
   global rule in this file (meant to keep surfaces flat) removes every
   background-image with !important, so the gradient vanished and left the text
   colour on nothing: white on cream in light, dark on dark in dark. A solid
   background from the same tokens fixes both themes, and the hover keeps it.
   -------------------------------------------------------------------------- */
.shop-pulse.is-closed a.ex-cta,
.shop-pulse.is-closed a.ex-cta:visited {
  background-color: var(--cta-from) !important;
  background-image: none !important;
  color: var(--cta-ink) !important;
  border-color: var(--cta-border) !important;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 600;
}
.shop-pulse.is-closed a.ex-cta:hover,
.shop-pulse.is-closed a.ex-cta:focus-visible {
  background-color: var(--cta-hover-from) !important;
  color: var(--cta-ink) !important;
  border-color: var(--cta-border) !important;
}
.shop-pulse.is-closed a.ex-cta .ico { color: currentColor; }
