
    /* ════════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — the NAZORAT design system, one token layer for every factory
       (Step 69, owner 12 Oct: "chiroyli, lekin skromniy").
       Every token NAME the 132 templates already use is kept alive here, some as an alias, so not one
       template has to be rewritten: only the VALUES changed.
       THREE theme states, in this order and no other:
         1. bare :root                                                       → the complete LIGHT palette
         2. @media (prefers-color-scheme:dark){:root:not([data-theme=light])} → follows the phone
         3. :root[data-theme="dark"]                                          → an explicit choice wins
       States 2 and 3 redefine TOKENS ONLY — never a component, never a literal colour.
       Light is the default: the factory office in Namangan has daylight.
       ════════════════════════════════════════════════════════════════════════════════════════════════ */
    :root {
      color-scheme: light;

      /* ── type — system stacks only. The ERP is a PWA on Uzbek mobile data: no font request ever
            leaves the phone, so there is nothing to wait for and nothing to break offline. ── */
      --f-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      --font: var(--f-ui);
      --mono: var(--f-mono);

      /* ── CONFIG: Asl-Charm — the brand accent. Step 89 (owner 18 Oct, the approved artboard:
            "why didnt we switch to this colors?"): leather COPPER #9A5E3E, its pressed state
            #6F4027, its soft wash #F2DCCD, and the copper INK #9A4A22 for copper text on a light
            surface. The accent is a FILL that carries white (--on-accent, 5.2:1). Token NAMES and
            the three-theme structure are CORE; these VALUES are the client's. ── */
      --accent: #9A5E3E;
      --accent-2: #6F4027;
      --accent-soft: #F2DCCD;
      --accent-soft-2: #FBEDE5;
      --accent-ink: #9A4A22;
      --accent-glow: rgba(154, 94, 62, .26);
      --on-accent: #FFFFFF;
      --on-accent-2: #FFFFFF;      /* the pressed fill is DARKER in light, so its ink stays light */

      /* ── surfaces: warm paper (artboard: bg #F7F6F4, cards white) ── */
      --bg: #F7F6F4;
      --card: #ffffff;
      --panel: #ffffff;
      --surface: #ffffff;
      --panel-2: #FAF8F6;
      --head: #F3F0EC;
      --hover: #F6F2EE;
      --track: #EAE5E0;
      --wash: var(--bg);

      /* ── hairlines, not glows (artboard: line #EAE5E0) ── */
      --line: #EAE5E0;
      --line-2: #F1EDE8;
      --line2: var(--line-2);
      --hair: var(--line);

      /* ── ink (artboard: ink #1B1613, muted #6E645D / #7A7069 — the lighter one sits a step
            darker here, #796F68, because #7A7069 on --bg is 4.47:1, a hair under AA) ── */
      --ink: #1B1613;
      --txt: var(--ink);
      --txt2: #4F4741;
      --mut: #6E645D;
      --mut-2: #796F68;
      --soft: var(--mut-2);

      /* ── semantic: money direction and status only (rule 3 — one accent).
            Artboard: red #B23A2F on #FBEAE8, green #2E7D5B on #E8F3ED. The green INK on its wash
            is a step darker than the green itself (#2E7D5B on #E8F3ED is 4.40:1), so the ok tag
            still reads at AA. ── */
      --green: #2E7D5B;
      --green-ink: #276B4E;
      --green-soft: #E8F3ED;
      --green2: var(--green-ink);
      --grn: var(--green-ink);
      --red: #B23A2F;
      --red-ink: #9A2E25;
      --red-soft: #FBEAE8;
      --amber: #96600c;
      --amber-ink: #784d07;
      --amber-soft: #fbf0dd;
      /* --gold was a SECOND warm hue a hair away from the accent — two ambers side by side read as
         a mistake, not a system. Step 69 B1: the name lives on (the old pages still say it) but it
         now resolves to the accent's readable ink, so "gold" IS the brand. --amber is left to do one
         job only: the WARNING state (st.y / tag.y / a late payment). */
      --gold: var(--accent-ink);
      /* CORE: reusable — Step 69 B1: blue is no longer a brand colour, it is INFORMATION. After this
         pass the whole system says it in exactly three places, and nowhere as a fill:
           · a { color: var(--blue) }        — a link is blue, as it is everywhere else on the web
           · .ph a.more                      — the "more" link inside a panel head
           · .st.b / .st.bl / .tag.b         — the "info" tag (ink on --blue-soft, never a fill)
         A client's brand layer may still paint links its own colour (CONFIG). Step 86 item 2: what
         it may NOT do any more is take the info tag — the Antik layer was repainting all three in
         the brand's copper, so every FACT on screen came out the same warm colour as the brand
         button and as "limitdan oshgan" next to it. */
      --blue: #2a62c8;
      --blue-2: #1f4ba0;
      --blue-ink: #1b4493;
      --blue-soft: #e7eefb;
      --blue2: var(--blue-2);
      --accent2: var(--accent-2);   /* kept: the Step 26 name, still said by the dashboard */
      /* CORE: reusable — Step 69 B1. --purple and --cyan were two more brand-weight hues; after the
         Step 69 A pass no template says either of them any more. They are kept as NAMES, not as
         colours: tests/guards/test_step69_tokens.py requires every name the 132 templates ever said
         to still resolve, so deleting them would break a page we cannot see. Aliased to the accent,
         a page that still asks for one gets the one hue instead of a sixth. */
      --purple: var(--accent-ink);
      --cyan: var(--accent-ink);
      --act: var(--accent);

      /* ── kept: the Step 26 tint names the report pages still say ── */
      --t-blue: var(--accent-soft);    /* the decorative tile wash: accent, not a second hue */
      --t-green: var(--green-soft);
      --t-amber: var(--amber-soft);
      --t-red: var(--red-soft);
      --t-violet: var(--accent-soft);   /* was its own lilac wash — one hue now */
      --t-slate: #eeebe6;
      --bg2: var(--panel-2);
      --brd: var(--line);

      /* ── the categorical ramp: the accent's own shades, so a chart never turns into a rainbow.
            --k0 darkest → --k5 lightest; dark ink reads on k2..k5, light ink on k0..k1. ── */
      --k0: #4A2A18;
      --k1: #6F4027;
      --k2: #9A5E3E;
      --k3: #C08A6C;
      --k4: #DDB49E;
      --k5: #EBCFBD;

      /* ── the menu. Step 89: it is LIGHT in the light theme (artboard: a cream rail beside the
            cream page, the lit row a soft copper wash with copper ink) and a dark panel in the dark
            theme. Step 69's warm-neutral rule still holds: not one of these leans cool. ── */
      --dark: #1B1613;
      --side: #FCFBFA;
      --logo-tile: #FFFFFF;      /* CONFIG: Asl-Charm — Step 94: the mark's ground, white in both themes (brand book) */
      --side2: #F3EFEA;
      --side3: #F6F2EE;
      --side-txt: #4F4741;
      --side-mut: #7A7069;
      --side-line: #EAE5E0;
      --side-ink: #1B1613;
      --side-acc: var(--accent);
      --side-act: #F2DCCD;        /* the lit row's fill … */
      --side-act-ink: #9A4A22;    /* … and its ink */
      /* ── the BUGUN box at the foot of the menu: the one dark block in the light theme ── */
      --box: #2B1F18;
      --box-ink: #FFFFFF;
      --box-mut: #C9B8AD;

      /* ── shape and depth (artboard: 8px corners) ── */
      --r: 8px;
      --radius: var(--r);
      --hl: #FBEDE5;
      --shadow: 0 1px 2px rgba(29, 26, 22, .05), 0 1px 3px rgba(29, 26, 22, .04);
      --sh: var(--shadow);
      --lift: var(--shadow);
      /* CORE: reusable — Step 69 B2. --panel-blur is --panel with the frost left in, so the top bar
         can hold a backdrop-filter and the page can be seen moving under it. --shadow-pop is the one
         depth a thing that floats over the page is allowed; --scrim is the dimmer behind the drawer. */
      --panel-blur: rgba(255, 255, 255, .78);
      --shadow-pop: 0 10px 28px rgba(29, 26, 22, .14), 0 2px 6px rgba(29, 26, 22, .07);
      --scrim: rgba(29, 26, 22, .46);
      /* CORE: reusable — Step 110: the page GROUND may carry a photo. --fon-veil is the ground's own
         colour laid over it; its alpha is not taste — at .78 the veiled ground keeps 4.5:1 against
         --ink AND --txt2 for the worst photo there is (pure black / pure white), and
         scripts/contrast_check.py's "+ fon" themes check exactly that. --fon-paper is the OPAQUE
         ground colour that stays behind everything fainter than --txt2 (--mut, the coloured inks,
         the chart ramp): those are never over a photo. */
      --fon-veil: rgba(247, 246, 244, .78);
      --fon-paper: #F7F6F4;

      /* ══════════════════════════════════════════════════════════════════════════════════════════
         CONFIG: Asl-Charm — Step 111a: the ONE mapping of the nz-shell v1 contract onto this
         client's palette. static/css/nz-shell.css is CORE and says only --nz-*; these lines are the
         only place that knows those names mean Antik's copper and Antik's warm paper. There is NO
         second palette here: every value is a reference to a token this ERP already had, so all three theme states, the
         brand layer, the Step 110 background photo and scripts/contrast_check.py keep working
         untouched — a dark state redefines --card and --nz-card follows it, which is why the dark
         blocks below say nothing about --nz-*.
         The contract's nine surfaces and five status PAIRS, in its own order:
         ══════════════════════════════════════════════════════════════════════════════════════════ */
      --nz-ground: var(--bg);
      --nz-card: var(--card);
      --nz-ink: var(--ink);
      --nz-ink-2: var(--txt2);
      --nz-muted: var(--mut);          /* 4.5:1 on BOTH --nz-ground and --nz-card (the contract's note) */
      --nz-line: var(--line);
      --nz-accent: var(--accent);
      --nz-on-accent: var(--on-accent);
      --nz-accent-ink: var(--accent-ink);
      --nz-ok: var(--green-ink);       --nz-ok-bg: var(--green-soft);
      --nz-info: var(--blue-ink);      --nz-info-bg: var(--blue-soft);
      --nz-warn: var(--amber-ink);     --nz-warn-bg: var(--amber-soft);
      --nz-bad: var(--red-ink);        --nz-bad-bg: var(--red-soft);
      --nz-neutral: var(--txt2);       --nz-neutral-bg: var(--track);
      /* four aliases the chrome needs that the contract does not name a colour for. Each one is an
         EXISTING token, not a new value: the brand mark's ground (Step 94 — white in both themes,
         the brand book's own rule), the interface face, the one depth a thing floating over the
         page may have, and the dimmer behind the Menyu sheet. */
      --nz-logo: var(--logo-tile);
      --nz-font: var(--font);
      --nz-pop: var(--shadow-pop);
      --nz-scrim: var(--scrim);
    }

    /* CORE: reusable — state 2: the phone is in dark mode and the person has not overridden it.
       TOKENS ONLY. */
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        color-scheme: dark;
        --accent: #D08A66;
        --accent-2: #E2A98A;
        --accent-soft: #3A2A20;
        --accent-soft-2: #2F221A;
        --accent-ink: #E2A585;
        --accent-glow: rgba(208, 138, 102, .22);
        --on-accent: #1B1613;
        --on-accent-2: #1B1613;      /* in dark the pressed fill is LIGHTER, so its ink goes dark */
        --bg: #121110;
        --card: #1a1816;
        --panel: #1a1816;
        --surface: #1a1816;
        --panel-2: #211e1b;
        --head: #211e1b;
        --hover: #262220;
        --track: #2d2926;
        --line: #302c28;
        --line-2: #262320;
        --ink: #ece8e2;
        --txt2: #b9b3aa;
        --mut: #a09a90;
        --mut-2: #8d867c;
        --green: #4bba77;
        --green-ink: #86d6a4;
        --green-soft: #15301f;
        --red: #f0756a;
        --red-ink: #ffa79b;
        --red-soft: #3a1b18;
        --amber: #e0a24a;
        --amber-ink: #f3c67e;
        --amber-soft: #352613;
        --blue: #7fb0f7;
        --blue-2: #a4c8fa;
        --blue-ink: #a4c8fa;
        --blue-soft: #16243a;
        --t-slate: #24211e;
        --k0: #EBCFBD;
        --k1: #DDB49E;
        --k2: #C08A6C;
        --k3: #9A5E3E;
        --k4: #6F4027;
        --k5: #4E2D1B;
        --side: #141210;
        --logo-tile: #FFFFFF;      /* CONFIG: Asl-Charm — Step 94: the mark's ground, white in both themes (brand book) */
        --side2: #211e1b;
        --side3: #1f1c1a;
        --side-txt: #d4d0c9;
        --side-mut: #938c82;
        --side-line: #2a2622;
        --side-ink: #f7f5f2;
        --side-act: #3A2A20;
        --side-act-ink: #E2A585;
        --box: #211E1B;
        --box-ink: #ECE8E2;
        --box-mut: #A09A90;
        --hl: #3a2d10;
        --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
        --panel-blur: rgba(26, 24, 22, .78);
        --shadow-pop: 0 10px 28px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
        --scrim: rgba(0, 0, 0, .62);
        --fon-veil: rgba(18, 17, 16, .80);   /* Step 110: see the light state — .80 in the dark one */
        --fon-paper: #121110;
      }
    }

    /* CORE: reusable — state 3: the person chose Qorong'u on the Men page or in the settings page. Same tokens again,
       so an explicit choice beats the phone's setting. TOKENS ONLY. */
    :root[data-theme="dark"] {
      color-scheme: dark;
      --accent: #D08A66;
      --accent-2: #E2A98A;
      --accent-soft: #3A2A20;
      --accent-soft-2: #2F221A;
      --accent-ink: #E2A585;
      --accent-glow: rgba(208, 138, 102, .22);
      --on-accent: #1B1613;
      --on-accent-2: #1B1613;      /* in dark the pressed fill is LIGHTER, so its ink goes dark */
      --bg: #121110;
      --card: #1a1816;
      --panel: #1a1816;
      --surface: #1a1816;
      --panel-2: #211e1b;
      --head: #211e1b;
      --hover: #262220;
      --track: #2d2926;
      --line: #302c28;
      --line-2: #262320;
      --ink: #ece8e2;
      --txt2: #b9b3aa;
      --mut: #a09a90;
      --mut-2: #8d867c;
      --green: #4bba77;
      --green-ink: #86d6a4;
      --green-soft: #15301f;
      --red: #f0756a;
      --red-ink: #ffa79b;
      --red-soft: #3a1b18;
      --amber: #e0a24a;
      --amber-ink: #f3c67e;
      --amber-soft: #352613;
      --blue: #7fb0f7;
      --blue-2: #a4c8fa;
      --blue-ink: #a4c8fa;
      --blue-soft: #16243a;
      --t-slate: #24211e;
      --k0: #EBCFBD;
      --k1: #DDB49E;
      --k2: #C08A6C;
      --k3: #9A5E3E;
      --k4: #6F4027;
      --k5: #4E2D1B;
      --side: #141210;
      --logo-tile: #FFFFFF;      /* CONFIG: Asl-Charm — Step 94: the mark's ground, white in both themes (brand book) */
      --side2: #211e1b;
      --side3: #1f1c1a;
      --side-txt: #d4d0c9;
      --side-mut: #938c82;
      --side-line: #2a2622;
      --side-ink: #f7f5f2;
      --side-act: #3A2A20;
      --side-act-ink: #E2A585;
      --box: #211E1B;
      --box-ink: #ECE8E2;
      --box-mut: #A09A90;
      --hl: #3a2d10;
      --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
      --panel-blur: rgba(26, 24, 22, .78);
      --shadow-pop: 0 10px 28px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
      --scrim: rgba(0, 0, 0, .62);
      --fon-veil: rgba(18, 17, 16, .80);   /* Step 110: see the light state — .80 in the dark one */
      --fon-paper: #121110;
    }
    * { box-sizing: border-box; }
    /* CORE: reusable — Step 88 (owner, 18 Oct: "if i press somewhere double times it zoomin and
       zoom out which is trash. Also buttons work slow a lot slower").
       ONE rule, three symptoms. While double-tap-to-zoom is possible on an element, iOS Safari
       waits ~300 ms after every tap to see whether a second tap is coming — so every button on
       every page had a third of a second of dead time, which reads as "it did not work", so the
       person taps again, and THAT second tap is the double-tap that zooms. touch-action:
       manipulation tells the browser this element is not a zoom target: the delay goes, the
       double-tap zoom goes, and PINCH zoom stays (nobody loses the ability to magnify a page).
       Note on the selector list: it deliberately does NOT name input[type=submit] or
       input[type=button]. No template in this ERP uses either — every form submits with a
       <button>, which is covered above — and a LAW-marked access guard
       (test_walk_access.test_a4_the_pages_the_owner_can_open_show_no_submit_button) scans the
       RENDERED PAGE TEXT for a submit-type attribute to prove the view-only owner is shown no way
       to write. A CSS selector inside <style> is not a button, but to that scan it looks like one —
       and so does a comment that spells the attribute out, which is why this one does not.
       Naming a selector we do not need is not worth weakening an access test to accommodate. */
    a, button, summary, label, select,
    input[type="checkbox"], input[type="radio"], [role="button"], .btn, .chip, .navi, .crow {
      touch-action: manipulation;
    }
    /* Step 101 (owner, 20 Oct, on the chat list: "if I press several times, it is zooming in and out",
       two days after Step 88): the element list above leaves every gap BETWEEN tappable things — row
       padding, the space beside a badge, a card's margin — as a zoom target, and a thumb lands there
       half the time. So the whole page is "not a zoom target": html and every element. Pinch zoom
       is untouched (manipulation keeps pan + pinch; only double-tap zoom goes). */
    html, body, body * { touch-action: manipulation; }
    body {
      margin: 0;
      font: 14px/1.45 "Segoe UI", system-ui, sans-serif;
      background: var(--bg);
      color: var(--txt);
    }
    a { color: var(--blue); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* CORE: reusable — flex shell, sticky-fixed sidebar */
    .app { display: flex; min-height: 100vh; }
    .side {
      width: 165px;
      flex: 0 0 165px;
      background: var(--side);
      color: var(--side-txt);
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      overflow-y: auto;
      z-index: 30;
    }
    .side::-webkit-scrollbar { width: 6px; }
    .side::-webkit-scrollbar-thumb { background: var(--side2); border-radius: 3px; }
    .side { scrollbar-width: thin; scrollbar-color: var(--side2) transparent; padding-bottom: 28px; }
    .main { margin-left: 165px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .page { padding: 16px 18px 72px; flex: 1; }

    /* CORE: reusable — sidebar brand block (v6: the name, big and plain) */
    .brand {
      padding: 20px 20px 16px;
      position: sticky;
      top: 0;
      background: var(--side);
      z-index: 2;
      border-bottom: 1px solid var(--side-line);
    }
    .brand .bn { font-weight: 800; font-size: 21px; letter-spacing: .02em; color: var(--side-ink); line-height: 1.1; }
    .brand .bs { font-size: 12px; color: var(--side-mut); margin-top: 4px; }

    /* CORE: reusable — groups and items */
    .nav-grp {
      padding: 18px 20px 6px;
      font: 500 12px var(--font);
      color: var(--side-mut);
    }
    .navi {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 18px 9px 17px;
      font-size: 14px;
      color: var(--side-txt);
      border-left: 3px solid transparent;
      text-decoration: none;
      transition: background .12s ease, color .12s ease;
    }
    .navi .ni { width: 20px; flex: 0 0 20px; text-align: center; font-size: 15px; line-height: 1; color: var(--side-mut); }
    .navi .nl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .navi .nb {
      margin-left: auto;
      min-width: 20px;
      padding: 1px 7px;
      border-radius: 10px;
      background: var(--side2);
      color: var(--accent);
      font-size: 11px;
      font-weight: 700;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .navi:hover { background: var(--side3); text-decoration: none; color: var(--side-ink); }
    .navi:hover .ni { color: var(--side-txt); }
    .navi:focus-visible { outline: 2px solid var(--side-acc); outline-offset: -2px; }
    .navi.chat { margin-top: 8px; font-weight: 600; color: var(--side-ink); }
    /* CORE: reusable — unread chat messages (chat.context_processors) */
    .chatn {
      margin-left: auto;
      min-width: 20px;
      padding: 1px 6px;
      border-radius: 10px;
      background: var(--red);
      color: var(--card);
      font-size: 11px;
      font-weight: 700;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .botfab .chatn { margin-left: 2px; background: var(--on-accent); color: var(--accent); }
    .navi.active {
      background: var(--side-act);
      color: var(--side-act-ink);
      font-weight: 600;
      border-left-color: var(--side-acc);
    }
    .navi.active .ni { color: var(--side-act-ink); }
    .navtog { display: none; }
    .navshade { display: none; }
    @media (prefers-reduced-motion: reduce) { .navi, .side, .nav-grp .chev { transition: none; } }

    /* CORE: reusable — topbar */
    .topbar {
      min-height: 52px;
      background: var(--panel);
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 18px;
      position: sticky;
      top: 0;
      z-index: 20;
      flex-wrap: wrap;
    }
    .crumb { font-size: 12px; color: var(--mut); white-space: nowrap; }
    .crumb b { color: var(--txt); }
    .gsearch {
      flex: 0 1 300px;
      display: flex;
      align-items: center;
      gap: 7px;
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 6px 10px;
    }
    .gsearch input {
      border: none;
      background: none;
      outline: none;
      font-size: 12.5px;
      width: 100%;
      font-family: inherit;
      color: var(--txt);
    }
    .tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
    .kurs {
      font-size: 11.5px;
      color: var(--txt2);
      background: var(--bg);
      border: 1px solid var(--line);
      padding: 5px 10px;
      border-radius: 7px;
      white-space: nowrap;
      text-decoration: none;
    }
    .kurs b { color: var(--txt); }
    .kurs.bad { color: var(--red-ink); border-color: var(--red); background: var(--red-soft); }
    .bell { position: relative; font-size: 16px; cursor: pointer; color: var(--txt2); }
    .bell .d {
      position: absolute;
      top: -4px;
      right: -6px;
      background: var(--red);
      color: var(--card);
      font-size: 9px;
      font-weight: 700;
      padding: 0 4px;
      border-radius: 8px;
    }
    .belldd {
      position: absolute;
      top: 34px;
      right: 0;
      width: 300px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 10px;
      box-shadow: var(--shadow-pop);
      display: none;
      z-index: 50;
      overflow: hidden;
    }
    .belldd.on { display: block; }
    .belldd .bi {
      padding: 10px 12px;
      border-bottom: 1px solid var(--line2);
      font-size: 12px;
      cursor: pointer;
      display: flex;
      gap: 8px;
    }
    .belldd .bi:last-child { border: none; }
    .belldd .bi:hover { background: var(--hover); }
    .roleSel {
      font-family: inherit;
      font-size: 12px;
      border: 1px solid var(--line);
      border-radius: 7px;
      padding: 6px 8px;
      background: var(--panel);
      color: var(--txt);
    }
    .usr .av {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--accent-soft);
      color: var(--accent-ink);
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 12px;
    }

    .close-badge {
      display: inline-block;
      margin: 0 0 1rem;
      padding: .35rem .65rem;
      border-radius: 999px;
      background: var(--red);
      color: var(--card);
      font-weight: 700;
    }

    /* CORE: reusable — KPI strip */
    .kpis {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 11px;
      margin-bottom: 14px;
    }
    .kpi {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px 13px;
      position: relative;
    }
    .kpi .kl {
      font: 500 12px var(--font);
      color: var(--mut);
    }
    .kpi .kv {
      font-size: 18px;
      font-weight: 800;
      margin-top: 6px;
      letter-spacing: -.3px;
      font-variant-numeric: tabular-nums;
    }
    .kpi .ks {
      font-size: 10.5px;
      color: var(--mut);
      margin-top: 2px;
    }
    .kpi.r .kv { color: var(--red); }
    .kpi.g .kv { color: var(--green); }
    .kpi .kd {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }
    @media (max-width: 1320px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    @media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

    /* kept — child pages still use .cards / .kart */
    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }
    .kart, .panel {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--r);
      box-shadow: var(--sh);
    }
    .kart { padding: 13px 15px; }
    .kart .l {
      font: 500 12px var(--font);
      color: var(--mut);
    }
    .kart .v {
      font-size: 21px;
      font-weight: 700;
      margin-top: 3px;
      font-variant-numeric: tabular-nums;
    }
    .kart .s { font-size: 11.5px; color: var(--mut); margin-top: 2px; }
    .panel { padding: 15px 17px; margin-bottom: 16px; }
    .panel h3 { font-size: 14px; margin: 0 0 10px; }
    .muted { color: var(--mut); }

    /* CORE: reusable — status pills */
    .st { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
    .st.gr, .st.g { background: var(--green-soft); color: var(--green-ink); }
    .st.y { background: var(--amber-soft); color: var(--amber-ink); }
    .st.rd, .st.r { background: var(--red-soft); color: var(--red-ink); }
    .st.bl, .st.b { background: var(--blue-soft); color: var(--blue-ink); }
    .st.pu { background: var(--accent-soft); color: var(--accent-ink); }
    .st.or { background: var(--accent-soft); color: var(--accent-ink); }
    .st.gy { background: var(--track); color: var(--txt2); }

    .pill {
      font-size: 11px;
      background: var(--track);
      padding: 2px 8px;
      border-radius: 99px;
      color: var(--mut);
    }
    .kurs-chip {
      font-size: 12px;
      font-weight: 700;
      padding: 4px 9px;
      border-radius: 99px;
      font-variant-numeric: tabular-nums;
      text-decoration: none;
    }
    .kurs-chip.ok { background: var(--green-soft); color: var(--green-ink); }
    .kurs-chip.bad { background: var(--red-soft); color: var(--red-ink); }

    /* CORE: reusable — data table */
    .dt-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
    .dt-tools { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--txt2); flex-wrap: wrap; }
    .chip { font-size: 11.5px; font-weight: 600; color: var(--txt2); background: var(--bg); border: 1px solid var(--line); padding: 4px 11px; border-radius: 16px; cursor: pointer; }
    .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
    .dt-scroll { overflow-x: auto; }
    table.dt { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
    table.dt th { background: var(--head); text-align: left; padding: 8px 10px; font-weight: 600; color: var(--txt2); border-bottom: 1px solid var(--line); font-size: 11px; }
    table.dt th.r, table.dt td.r { text-align: right; }
    table.dt th.c, table.dt td.c { text-align: center; }
    table.dt td { padding: 7px 10px; border-bottom: 1px solid var(--line2); }
    table.dt tbody tr:hover { background: var(--hover) !important; }
    .dt-foot { display: flex; align-items: center; gap: 10px; padding: 8px 13px; border-top: 1px solid var(--line); font-size: 12px; color: var(--txt2); }
    .money { font-variant-numeric: tabular-nums; white-space: nowrap; }

    /* ════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — Step 86 item 3 (owner 18 Oct, "Shrift va rang"): FIGURES LINE UP.
       ONE rule for the whole ERP instead of a declaration per table — 55 places already said this
       and the rest did not, so two tables on one screen could disagree about whether a column of
       so'm lines up. Everywhere a figure is meant to be compared DOWN a column takes tabular
       figures: a right-aligned cell (Step 69 B4 settled it — "every right-aligned column is a
       number column"), an explicit money / quantity / percentage cell, a KPI or tile figure, a
       funnel or total value, a date label. `.fig` is the class to put on anything new.
       It changes digits only: no box moves and no page is rearranged. In the system fallback stack
       it works too, which is why the rule does not depend on the webfont having loaded.
       NOT here on purpose: a table HEAD (the brand layer sets `font:` shorthand on it, which resets
       font-variant-numeric, and a head is a word, not a figure), and the slashed zero — the shipped
       subset carries the `zero` feature so it is one CONFIG line away, but turning it on is a
       visible change the owner has not asked for.
       ════════════════════════════════════════════════════════════════════════════════════════════ */
    .fig, .r, td.r, .num, .money, .qty, .pct, .amt, .tot,
    .v, .sv, .tv, .big, .kv dd, .ra, .daylbl,
    table td, table td.r, table td .money, table td.num,
    .kpi .kv, .kart .v, .stat .sv, .fnl .v, .facts b { font-variant-numeric: tabular-nums; }

    /* CORE: reusable — panel pages (Step 19): page head, filters, funnel, report cards */
    .pgh { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; }
    .pgh h1 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
    .pgh .sub { color: var(--txt2); font-size: 13px; margin-top: 3px; }
    .pgh .sp { flex: 1; }
    .flt { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 10px 13px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
    .flt label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: var(--txt2); }
    .flt input, .flt select { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: var(--panel); color: var(--txt); min-width: 0; }
    .flt .btn { padding: 6px 13px; }
    .flt .grow { flex: 1 1 180px; }
    .flt .grow input { width: 100%; }
    .note-ok { background: var(--green-soft); border: 1px solid var(--green); color: var(--green-ink); padding: 9px 13px; border-radius: 9px; margin-bottom: 12px; }
    .note-bad { background: var(--red-soft); border: 1px solid var(--red); color: var(--red-ink); padding: 9px 13px; border-radius: 9px; margin-bottom: 12px; }
    tr.void td { opacity: .5; text-decoration: line-through; }
    .shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
    .fnl { display: grid; gap: 10px; margin: 6px 0 14px; }
    .fnl .row { display: grid; grid-template-columns: 118px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
    .fnl .bar { height: 12px; border-radius: 6px; background: var(--line2); overflow: hidden; }
    .fnl .bar i { display: block; height: 100%; border-radius: 6px; }
    .fnl .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
    .fnl .v small { display: block; font-weight: 500; color: var(--mut); font-size: 11px; }
    .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 12.5px; color: var(--txt2); border-top: 1px solid var(--line2); padding-top: 10px; }
    .facts b { color: var(--txt); font-variant-numeric: tabular-nums; }
    .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
    .rcard { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; color: var(--txt); box-shadow: var(--sh); transition: border-color .12s, transform .12s; }
    .rcard:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
    .rcard .ri { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; }
    .rcard b { display: block; font-size: 14px; margin-bottom: 3px; }
    .rcard span { font-size: 12px; color: var(--txt2); }
    .grp-h td { background: var(--panel-2); font-weight: 700; color: var(--txt); font-size: 12px; letter-spacing: .02em; }
    .kv { display: grid; grid-template-columns: 170px 1fr; gap: 7px 14px; font-size: 13px; }
    .kv dt { color: var(--txt2); }
    .kv dd { margin: 0; font-weight: 600; }
    @media (max-width: 620px) { .fnl .row { grid-template-columns: 92px 1fr auto; } .facts { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }

    /* CORE: reusable — form / action primitives used by child pages */
    .fld { margin: 0 0 12px; }
    .fld label { display: block; font-size: 12px; font-weight: 600; color: var(--txt2); margin-bottom: 4px; }
    .fld input, .fld select, .fld textarea {
      width: 100%; max-width: 420px; font: inherit; color: var(--txt);
      border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel);
    }
    .fld textarea { max-width: 100%; }
    .btn {
      font: inherit; font-weight: 650; border: 1px solid var(--line); background: var(--panel);
      color: var(--txt); border-radius: 8px; padding: 8px 14px; cursor: pointer;
    }
    .btn.primary, button.primary {
      background: var(--accent); border-color: var(--accent); color: var(--on-accent);
    }
    .btn.primary:hover, button.primary:hover { background: var(--accent-2); color: var(--on-accent-2); }
    .seg { display: flex; gap: 6px; flex-wrap: wrap; }
    .seg .paybtn, .seg button {
      font: inherit; padding: 7px 12px; border: 1px solid var(--line); background: var(--panel);
      color: var(--txt); border-radius: 8px; cursor: pointer;
    }
    .seg .paybtn.active, .seg button.active, .seg .on {
      background: var(--accent); border-color: var(--accent); color: var(--on-accent);
    }
    .hidden { display: none !important; }
    .pick { cursor: pointer; padding: 6px 8px; border-radius: 6px; }
    .pick:hover { background: var(--hover); }
    a.bi { text-decoration: none; color: inherit; }
    a.bi:hover { text-decoration: none; }

    /* CONFIG: Asl-Charm — bot FAB */
    .botfab {
      position: fixed;
      right: 16px;
      bottom: 18px;
      z-index: 55;
      background: var(--accent);
      color: var(--on-accent);
      border: none;
      border-radius: 20px;
      padding: 8px 12px;
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: var(--shadow-pop);
      display: flex;
      gap: 5px;
      align-items: center;
      opacity: .92;
    }
    .botfab:hover { opacity: 1; transform: translateY(-1px); }
    .botpanel {
      position: fixed;
      right: 22px;
      bottom: 60px;
      width: 320px;
      max-height: 60vh;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: var(--shadow-pop);
      z-index: 55;
      display: none;
      flex-direction: column;
      overflow: hidden;
    }
    .botpanel.on { display: flex; }
    .bph {
      background: var(--accent);
      color: var(--on-accent);
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .bph .av { width: 32px; height: 32px; border-radius: 50%; background: var(--on-accent); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
    .bpc { flex: 1; overflow-y: auto; padding: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
    .st2 { font-size: 10.5px; opacity: .85; }

    @media (max-width: 1200px) {
      .gsearch { flex: 1 1 180px; }
    }
    @media (max-width: 920px) {
      .app { flex-direction: column; }
      .side { position: fixed; width: 272px; flex: none; transform: translateX(-100%); transition: transform .18s ease; box-shadow: var(--shadow-pop); }
      .side.open { transform: none; }
      .navshade.on { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 25; }
      .navtog { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 18px; cursor: pointer; color: var(--txt); }
      .main { margin-left: 0; }
      .topbar { padding: 8px 12px; }
      .gsearch { flex: 1 1 100%; }
    }
    @media print {
      body * { visibility: hidden; }
      #printzone, #printzone * { visibility: visible; }
      #printzone { position: absolute; left: 0; top: 0; width: 100%; }
      .botfab, .botpanel, .side, .topbar { display: none !important; }
    }

    /* ═══ CORE: reusable — NAZORAT design system v2 (Step 26, owner 2 Oct): the two references the owner
       chose, mixed — the FRAME of "Tenderbuddy" (near-black menu, one orange accent, monospace uppercase
       card labels with a line icon in the corner, white top bar with the page title) and the WIDGETS of
       "Healthcare billing" (round pastel icon tiles with ↑% trends, the step workflow, light tables with
       coloured tags and dot status, a side preview panel with a full-width button). ═══ */
    body { font: 14px/1.5 var(--font); background: var(--wash); color: var(--ink); -webkit-font-smoothing: antialiased; }
    b, strong { font-weight: 600; }
    a { color: var(--blue); }
    a:hover { text-decoration: none; color: var(--blue2); }
    .ico { width: 18px; height: 18px; flex: none; display: block; }

    /* the frame: the SHORT menu. Step 89 (owner 18 Oct, the approved artboard): a 165px rail, light
       in the light theme and a dark panel in the dark one; the mark and the two brand lines at the
       top; ten flat rows in sentence case, the lit one a soft copper wash with copper ink; the
       group a page belongs to is open and shows its pages indented under it in 13px, the rest are
       closed (an accordion); the BUGUN box at the foot. CORE: the markup and these rules; CONFIG:
       every word, NAV_SHORT, NAV_MENU. The role/capability filtering is core/nav.py's, unchanged. */
    .side { width: 165px; flex: 0 0 165px; background: var(--side); color: var(--side-txt); padding: 0 0 28px; border-right: 1px solid var(--side-line);
            display: flex; flex-direction: column; }
    .side::-webkit-scrollbar-thumb { background: var(--side2); }
    .main { margin-left: 165px; background: var(--wash); }
    .sbrand { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; position: sticky; top: 0; background: var(--side); z-index: 2; }
    .sbrand .lg { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: var(--logo-tile); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 16px; display: grid; place-items: center; }
    /* CONFIG: Asl-Charm — Step 94: the mark's tile is WHITE in both themes, as the brand book permits; the mark's own
       two colours are in the SVG (BRAND_LOGO_COLOURS), so the tile never recolours it. */
    .sbrand .lg svg { width: 22px; height: 22px; display: block; }
    .sbrand b { display: block; color: var(--side-ink); font-size: 14px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
    .sbrand small { display: block; font: 500 10px/1.3 var(--font); color: var(--side-mut); margin-top: 2px; }
    .nav-grp { display: flex; align-items: center; width: 100%; padding: 16px 14px 6px; font: 500 12px var(--font); color: var(--side-mut); background: none; border: 0; text-align: left; }
    .navlist { flex: 0 0 auto; padding: 2px 0 8px; }
    /* CORE: reusable — Step 178: a small header above the first row of each group of sections (CONFIG NAV_CHANGES
       "heads"). Sentence case, the menu's own muted ink; in the narrow menu it is a hairline, since there is no room
       for a word. */
    .nav-sec { padding: 14px 18px 4px; font: 600 11.5px var(--font); color: var(--side-mut); }
    /* a short window (a laptop at 1280 × 620): the headers close up, so the last row is still on the screen */
    @media (max-height: 720px) { .nav-sec { padding: 7px 18px 0; font-size: 11px; } }
    .ngrp { position: relative; }
    .ngb { display: none; padding: 0 0 4px; background: none; }
    .ngrp.open > .ngb, .ngrp.fixed > .ngb { display: block; }
    /* the chevron that folds a group open in place, without opening its landing page */
    .ngrp > .chev { position: absolute; right: 12px; top: 5px; width: 24px; height: 24px; border: 0; background: none; color: var(--side-mut); font-size: 15px; line-height: 1;
                    display: grid; place-items: center; cursor: pointer; border-radius: 6px; transition: transform .15s ease, color .12s; }
    .ngrp > .chev:hover { color: var(--side-ink); }
    .ngrp > .chev:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .ngrp.open > .chev { transform: rotate(90deg); }
    .ngrp > .navi { padding-right: 30px; }
    .ngrp > .navi .bdg { margin-right: 2px; }
    .navi { position: relative; display: flex; align-items: center; gap: 10px; margin: 2px 8px; padding: 8px 10px; border-radius: var(--r); border: 0;
            font-size: 13px; font-weight: 400; color: var(--side-txt); text-decoration: none; background: none; transition: background .12s, color .12s; }
    .navi:hover { background: var(--side2); color: var(--side-ink); text-decoration: none; }
    .navi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .navi.active { background: var(--side-act); color: var(--side-act-ink); font-weight: 600; box-shadow: none; }
    .navi .ic { width: 16px; flex: 0 0 16px; display: grid; place-items: center; font-size: 14px; opacity: .85; color: var(--side-mut); }
    .navi .ic .ico { width: 16px; height: 16px; }
    .navi.active .ic { opacity: 1; color: var(--side-act-ink); }
    .navi .nl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .navi .bdg { margin-left: auto; background: var(--red); color: var(--card); border-radius: 9px; padding: 0 6px; font-size: 10.5px; font-weight: 600; line-height: 17px; }
    .navi.active .bdg { background: var(--red); color: var(--card); }
    /* the pages of the open group: indented under the row's icon, 13px, the open one in copper ink */
    .ngb .navi { margin: 0 8px; padding: 5px 10px 5px 36px; font-size: 13px; gap: 8px; }
    .ngb .navi .ic { display: none; }
    .ngb .navi.active { background: none; color: var(--side-act-ink); font-weight: 600; }
    .ngb .navi.active::after { content: ""; position: absolute; left: 24px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--side-act-ink); }
    /* CORE: reusable — Step 89: the BUGUN box (Kassa / Sotuv / Tayyorlik + Kun yopish). The one
       dark block in the light theme; drawn only when the page passes bugun_box (the Dashboard). */
    .bugun { margin: auto 10px 0; padding: 12px 12px 12px; border-radius: var(--r); background: var(--box); color: var(--box-ink); }
    .bugun .bh { display: flex; justify-content: space-between; align-items: baseline; font: 600 10.5px var(--font); letter-spacing: .06em; color: var(--box-mut); margin-bottom: 8px; }
    .bugun .bh b { font-weight: 600; color: var(--box-ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
    .bugun .br { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--box-mut); padding: 3px 0; }
    .bugun .br b { color: var(--box-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .bugun .bb { display: flex; justify-content: center; margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; text-decoration: none; }
    .bugun .bb:hover { background: var(--accent-2); color: var(--on-accent-2); text-decoration: none; }

    /* the frame: white top bar with the page title */
    /* CORE: reusable — Step 69 B2: the top bar frosts the page instead of hiding it — one hairline
       underneath, no shadow — and the trail above the title is a small mono capital line, so the
       two lines are told apart by size and weight, not by colour. */
    #top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px; margin: 0;
           background: var(--panel-blur); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
           border-bottom: 1px solid var(--hair); flex-wrap: nowrap; }
    #crumb { font: 500 12px/1.3 var(--font); color: var(--mut);
             min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #crumb b { display: block; margin-top: 2px; font: 600 17px/1.25 var(--font); letter-spacing: -.01em;
               color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
    #top .sp { flex: 1; }
    .kurs { font-size: 12.5px; color: var(--txt2); background: var(--panel); border: 1px solid var(--hair); padding: 6px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
    .kurs b { color: var(--ink); }
    .kurs.bad { color: var(--red-ink); border-color: var(--red); background: var(--red-soft); }
    .bell { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--txt2); background: none; border: 0; cursor: pointer; }
    .bell > a { color: inherit; display: grid; place-items: center; }
    .bell .ico { width: 20px; height: 20px; }
    .bell .d { position: absolute; top: 2px; right: 0; min-width: 12px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--red); color: var(--card);
               font-size: 9.5px; font-weight: 700; line-height: 14px; text-align: center; border: 2px solid var(--panel); box-sizing: content-box; }
    .belldd { top: 46px; right: 0; border-radius: var(--radius); box-shadow: var(--shadow-pop); }
    .rolebox { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--txt2); white-space: nowrap; }
    .rolebox .rav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 12.5px; }
    .rolebox .ico { width: 14px; height: 14px; color: var(--mut-2); }
    .rolebox { position: relative; cursor: pointer; }
    .roledd { top: 46px; width: 260px; }
    .roledd .bi { width: 100%; border: 0; border-bottom: 1px solid var(--line2); background: var(--panel); font: inherit; font-size: 13.5px; text-align: left; color: var(--ink); padding: 11px 14px; text-decoration: none; }
    .roledd .bi.out { color: var(--red); }

    /* the work surface */
    .page { padding: 26px 28px 72px; max-width: 1360px; width: 100%; }
    .pgh { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
    .pgh h1 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin: 0; line-height: 1.2; text-wrap: balance; }
    .pgh .sub { font-size: 13px; color: var(--mut); margin-top: 4px; }
    .pgh .sp { flex: 1; }
    .page > h1, .page > h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 14px; }
    .page h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 12px; }
    /* Step 89 (owner 18 Oct, the artboard: "Kassa balans", not "KASSA BALANS"): a LABEL is a
       sentence-case 12px line in the interface face, muted. The mono capital eyebrow is gone from
       the whole ERP — --mono is kept for things that ARE code: a document number, the password box. */
    .eyebrow, .mono-l { font: 500 12px var(--font); color: var(--mut); }

    /* Healthcare widget: stat tile — round pastel icon, label, big number, trend */
    .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 20px; }
    .stat { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px; box-shadow: var(--lift); min-width: 0; }
    .stat .ti { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--t-slate); color: var(--txt2); }
    .stat .ti .ico { width: 20px; height: 20px; }
    /* CORE: reusable — Step 69 B1: the icon tile is DECORATION, so blue/violet/amber all become the
       one accent wash. Only green and red stay, because on a stat tile they mean money in and a
       problem — information, not taste. */
    .stat .ti.blue, .stat .ti.violet, .stat .ti.amber { background: var(--accent-soft); color: var(--accent-ink); }
    .stat .ti.green { background: var(--t-green); color: var(--green-ink); }
    .stat .ti.red { background: var(--t-red); color: var(--red-ink); }
    .stat .sl { font-size: 12px; color: var(--mut); }
    .stat .sv { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
    .stat .sv.red { color: var(--red); } .stat .sv.green { color: var(--green-ink); }
    .stat .ss { font-size: 11.5px; color: var(--soft); margin-top: 2px; }
    .trend { font-size: 12px; font-weight: 600; color: var(--green); } .trend.down { color: var(--red); }

    /* Tenderbuddy widget: KPI card — monospace label, line icon in the corner, big number */
    .kgrid, .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
    .kpi, .kart { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: none; padding: 18px 20px 20px; min-width: 0; min-height: 118px; }
    .kpi .kl, .kart .l { font: 500 12px var(--font); color: var(--mut); padding-right: 28px; }
    .kpi .kv, .kart .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; line-height: 1.12; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .kpi .ks, .kart .s { font-size: 13px; color: var(--mut); margin-top: 5px; }
    .kpi .kd { display: none; }
    .kpi .kic { position: absolute; top: 16px; right: 18px; width: 20px; height: 20px; color: var(--accent); }
    .kpi .kic.g { color: var(--green); } .kpi .kic.r { color: var(--red); } .kpi .kic.b { color: var(--accent); }
    .kpi.r .kv { color: var(--red); } .kpi.g .kv { color: var(--green-ink); }

    /* panels, charts and tables */
    .panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--lift); padding: 20px 22px; margin-bottom: 18px; min-width: 0; }
    .panel h3, .panel > h2 { font-size: 15.5px; font-weight: 700; margin: 0 0 14px; }
    .ph { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
    .ph h2, .ph h3 { font-size: 16px; font-weight: 700; margin: 0; }
    .ph p { margin: 2px 0 0; font-size: 13px; color: var(--mut); }
    .ph .sp { flex: 1; }
    .ph a.more { font-size: 12.5px; font-weight: 600; color: var(--blue); white-space: nowrap; }
    .legend { display: flex; gap: 16px; font-size: 12px; color: var(--txt2); flex-wrap: wrap; }
    .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
    .pick { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hair); border-radius: 8px; padding: 6px 11px; font-size: 12.5px; color: var(--txt2); background: var(--panel); white-space: nowrap; }
    .pick .ico { width: 14px; height: 14px; }
    /* CORE: reusable — Step 75 B (owner, 13 Oct: "dates like these are not working at all"). .pick is
       the chip of a CONTROL: a hairline border, a calendar icon and — from the rule further up — a
       pointer cursor and a hover wash. Three screens used it for a <div> that does nothing when it is
       pressed, which is worse than plain text, because it promises a day picker that is not there.
       A date that only states WHICH day or range the figures are for is a label, and looks like one. */
    .daylbl { font-size: 12.5px; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
    .dt-wrap { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--lift); padding: 6px 18px 12px; margin-bottom: 18px; overflow: visible; }
    .dt-tools { padding: 12px 2px 12px; border: 0; font-size: 14px; color: var(--ink); gap: 10px; }
    .flt { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 14px 0 14px; background: none; border: 0; border-bottom: 1px solid var(--hair); margin-bottom: 8px; }
    .flt label { display: flex; flex-direction: column; gap: 4px; font: 500 12px var(--font); color: var(--mut); }
    .flt input, .flt select, .flt button { font: 400 13.5px var(--font); }
    .flt button, .flt .btn { font-weight: 600; }
    .flt .grow { flex: 1 1 200px; }
    .flt .grow input { width: 100%; }
    table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; white-space: nowrap; }
    /* CORE: reusable — Step 69 B4 / Step 89: a table head is a LABEL, so it is small, sentence-case
       and grey; the row the finger is on lights with --hover and nothing else; and every
       right-aligned column is a number column, so its figures line up digit under digit. */
    table.dt th { background: var(--head); font: 500 12px var(--font); color: var(--mut); padding: 10px 12px; border: 0; text-align: left; }
    table.dt thead th:first-child { border-radius: 8px 0 0 8px; } table.dt thead th:last-child { border-radius: 0 8px 8px 0; }
    table.dt td { padding: 12px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
    table.dt tbody tr:last-child td { border-bottom: 0; }
    table.dt tbody tr:hover td { background: var(--hover); }
    table.dt tbody tr:hover { background: none !important; }
    table.dt th.r, table.dt td.r { text-align: right; }
    table.dt td.r, table.dt td.money, table.dt td .money, table.dt td.num { font-variant-numeric: tabular-nums; }
    table.dt th.c, table.dt td.c { text-align: center; }
    .page table:not(.dt) thead th { font: 500 12px var(--font); color: var(--mut); }
    .page table:not(.dt) tbody tr:hover > * { background: var(--hover); }
    .grp-h td { background: var(--panel-2) !important; font-weight: 600; font-size: 12px; color: var(--txt2); }
    .dt-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hair); padding: 12px 0 2px; font-size: 12.5px; color: var(--mut); }
    .empty { text-align: center; color: var(--mut); padding: 28px 10px !important; }

    /* Healthcare widget: tags and dot status */
    .st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
    .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .st.g, .st.gr { background: var(--green-soft); color: var(--green-ink); }
    .st.y { background: var(--amber-soft); color: var(--amber-ink); }
    .st.r, .st.rd { background: var(--red-soft); color: var(--red-ink); }
    .st.b, .st.bl { background: var(--blue-soft); color: var(--blue-ink); }
    .st.gy { background: var(--track); color: var(--txt2); }
    .st.or { background: var(--accent-soft); color: var(--accent-ink); }
    .st.v { background: var(--accent-soft); color: var(--accent-ink); }
    /* CORE: reusable — Step 69 B4: ONE tag set, ink on a soft wash, never a fill.
       Step 86 item 2 (owner 18 Oct, "Shrift va rang") fixed what each one MEANS, and the meaning is
       the whole system — a chip is pointed at a class, never given a colour:
         plain / .n  neytral — a branch, a draft, anything with no state
         .b          ma'lumot — a FACT (nasiya, a payment method, DIST). Blue, and only blue.
         .g          yaxshi — to'langan, muddati o'tgan yo'q, a finished step
         .r          muammo — limitdan oshgan, a negative balance, a refusal
         .a / .y     ogohlantirish — kun yopilmagan, narxlar kiritilmagan. A REAL warning, nothing else.
         .o / .v     the BRAND's own chip. Warm is the brand: a STATE may never wear it, and
                     tests/guards/test_step86_meanings.py fails if a template tries.
       Which meaning a state carries is CONFIG (STATE_CHIP, core/chips.py), so the owner can disagree
       with any single one in a line of config instead of in a template. Every screen inherits
       these, which is the point. */
    .tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--track); color: var(--txt2); white-space: nowrap; }
    .tag.n { background: var(--track); color: var(--txt2); }
    .tag.g { background: var(--green-soft); color: var(--green-ink); }
    .tag.r { background: var(--red-soft); color: var(--red-ink); }
    .tag.a, .tag.y { background: var(--amber-soft); color: var(--amber-ink); }
    .tag.b { background: var(--blue-soft); color: var(--blue-ink); }
    .tag.o, .tag.v { background: var(--accent-soft); color: var(--accent-ink); }

    /* Healthcare widget: the step workflow */
    .flow { display: flex; align-items: flex-start; }
    .flow .stp { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 0 0 auto; min-width: 96px; }
    /* CORE: reusable — Step 69 B1: the step workflow ran blue (waiting) → green (done) → amber
       (trouble): three hues for one line of progress. It is one accent ramp now — a step not taken
       is the neutral track, a step taken is the accent fill — and amber is kept for the one step
       that actually went wrong. */
    .flow .stp .c { width: 46px; height: 46px; border-radius: 50%; background: var(--track); color: var(--txt2); display: grid; place-items: center; }
    .flow .stp .c .ico { width: 20px; height: 20px; }
    /* CORE: reusable — Step 75 A: a step strip has THREE states, and only one of them is green.
       The legend has always said "yashil: bajarilgan" while .done painted the accent (orange), so
       nothing on the strip was ever the colour the words promised. `done` is the semantic ok token
       now (--green carrying --card ink, the pair the contrast checker already guards); `wait` is the
       neutral track the default circle already is; `none` — there was nothing to do — is a dashed
       outline with muted ink, so it can never be read as an achievement. */
    .flow .stp.done .c { background: var(--green); color: var(--card); }
    .flow .stp.wait .c { background: var(--track); color: var(--txt2); }
    .flow .stp.none .c { background: transparent; color: var(--mut); border: 1px dashed var(--line); }
    .flow .stp.none b, .flow .stp.none small { color: var(--mut); }
    .flow .stp.warn .c { background: var(--amber-soft); color: var(--amber-ink); }
    .flow .stp b { font-size: 12.5px; margin-top: 8px; white-space: nowrap; }
    .flow .stp small { color: var(--soft); font-size: 11px; white-space: nowrap; }
    .flow .lnk { flex: 1; height: 2px; background: var(--track); margin-top: 22px; position: relative; min-width: 18px; }
    .flow .lnk.on { background: var(--green); }
    .flow .lnk.on i { position: absolute; left: 50%; top: -7px; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); }
    .flow .lnk.on i::after { content: ""; position: absolute; left: 5px; top: 4px; width: 5px; height: 3px; border-left: 2px solid var(--card); border-bottom: 2px solid var(--card); transform: rotate(-45deg); }

    /* Healthcare widget: side panel with key–values and a full-width action */
    .kv { display: grid; grid-template-columns: 180px 1fr; gap: 9px 16px; font-size: 13px; margin: 0; }
    .kv dt { color: var(--mut); } .kv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
    .btn.block { display: flex; justify-content: center; width: 100%; padding: 11px; margin-top: 16px; }

    /* controls */
    input:not([type=checkbox]):not([type=radio]), select, textarea {
      font: inherit; font-size: 13.5px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
      transition: border-color .12s, box-shadow .12s; }
    input::placeholder, textarea::placeholder { color: var(--mut-2); }
    input[type=number], input[inputmode=numeric], input[inputmode=decimal] { font-variant-numeric: tabular-nums; }
    /* CORE: reusable — Step 69 B4: ONE focus ring for the whole ERP, in the accent, three pixels
       wide so a person on a keyboard can see where they are. :focus keeps it for the browsers that
       do not know :focus-visible; :focus-visible is what actually decides, and a checkbox, a button,
       a link and a chip all get the same ring, so nothing is ever focused invisibly. */
    input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
    input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
    input[type=checkbox]:focus-visible, input[type=radio]:focus-visible,
    .btn:focus-visible, button:focus-visible, a.btn:focus-visible, .chip:focus-visible,
    .subnav a:focus-visible, .page a:focus-visible {
      outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
    .btn, .page button[type=submit], .page input[type=submit] {
      font: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 9px; padding: 8px 15px; cursor: pointer;
      background: var(--panel); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: filter .12s, background .12s; }
    .btn:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
    /* CORE: reusable — Step 69 B4: three sizes of one button. The default is the quiet one (a panel
       with a hairline); .ghost has not even that; .primary is the accent fill and there should be
       one of it on a screen; .sm is the same button where a row cannot spare the height. */
    .btn.ghost { background: none; border-color: transparent; color: var(--txt2); }
    .btn.ghost:hover { background: var(--hover); border-color: var(--line); color: var(--ink); }
    .btn.sm { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 8px; gap: 5px; }
    .btn[disabled], .btn:disabled, button[disabled] { opacity: .55; cursor: not-allowed; }
    .btn.primary, button.primary, .page button[type=submit], .page input[type=submit] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
    .btn.primary:hover, .page button[type=submit]:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent-2); }
    /* CORE: reusable — Step 69 B1: .btn.blue was a second brand colour on a button. A button fill
       is the loudest thing on a screen, so there is only one of them now and it is the accent.
       The class NAME stays (templates say it) — it is simply not blue any more. */
    .btn.blue { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
    .btn.blue:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent-2); }
    .btn.danger { color: var(--red-ink); border-color: var(--red-soft); }
    .fld { margin: 0 0 14px; }
    .fld label, form.frm label, form.frm p > label { display: block; font-size: 12px; font-weight: 600; color: var(--txt2); margin-bottom: 5px; }
    .fld input, .fld select, .fld textarea, form.frm input:not([type=checkbox]), form.frm select, form.frm textarea { width: 100%; max-width: 460px; }
    .fld textarea, form.frm textarea { max-width: 100%; }
    form.frm p { margin: 0 0 14px; }
    form.frm .helptext { display: block; font-size: 11.5px; color: var(--mut); margin-top: 4px; }
    .errorlist { list-style: none; padding: 0; margin: 0 0 6px; color: var(--red-ink); font-size: 12.5px; }
    .note-ok { background: var(--green-soft); border: 1px solid var(--green); color: var(--green-ink); padding: 11px 15px; border-radius: var(--radius); margin-bottom: 14px; }
    .note-bad { background: var(--red-soft); border: 1px solid var(--red); color: var(--red-ink); padding: 11px 15px; border-radius: var(--radius); margin-bottom: 14px; }
    .hint { font-size: 12.5px; color: var(--txt2); background: var(--panel-2); border-radius: 9px; padding: 10px 12px; }
    .subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
    .subnav a { font-size: 13px; font-weight: 500; color: var(--txt2); background: var(--surface); border: 1px solid var(--hair); padding: 6px 13px; border-radius: 8px; text-decoration: none; }
    .subnav a:hover { color: var(--ink); border-color: var(--line); }
    .subnav a.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
    .back { display: inline-flex; gap: 6px; font-size: 13px; color: var(--txt2); margin-bottom: 10px; }
    .mut, .muted { color: var(--mut); }
    .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
    .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
    .page button.btn:not(.primary):not(.blue), .page a.btn:not(.primary):not(.blue) { background: var(--panel); color: var(--ink); border-color: var(--line); }
    .page button.btn:not(.primary):not(.blue):hover { background: var(--hover); }
    .page .btn.danger { color: var(--red-ink); border-color: var(--red-soft); background: var(--panel); }
    .page .btn.danger:hover { background: var(--red-soft); }
    .fnl .bar { height: 10px; background: var(--track); }
    .rcard { border-radius: var(--radius); border-color: var(--hair); box-shadow: var(--lift); padding: 16px 17px; }
    .rcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
    .rcard .ri { background: var(--accent-soft); color: var(--accent-ink); border-radius: 50%; width: 42px; height: 42px; flex-basis: 42px; font-size: 19px; }
    /* older pages written as bare forms get the same field look */
    .page form:not(.flt):not(.frm) p > label, .page form:not(.flt):not(.frm) > label { display: block; font-size: 12px; font-weight: 600; color: var(--txt2); margin-bottom: 5px; }
    .page form:not(.flt):not(.frm) p > label + br { display: none; }
    .page > form:not(.flt), .page > .wrap > form:not(.flt) { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--lift); padding: 18px 20px; max-width: 640px; margin-bottom: 18px; }
    .page > form:not(.flt) p { margin: 0 0 14px; }
    .page > form.frm-wide { max-width: 980px; }
    .page form .dt-wrap { box-shadow: none; padding: 2px 14px 6px; }
    .page > p > a:only-child { display: inline-flex; font-size: 13px; color: var(--txt2); }
    /* Pul qabuli page (Step 20) */
    .rcv { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
    .rcv-card { margin: 0; }
    .rcv-card.rcv-ok { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
    .rcv-h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
    .rav.big, .rcv-h .rav { width: 38px; height: 38px; font-size: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
    .rcv-kv { grid-template-columns: minmax(0, 1fr) auto; font-size: 13px; }
    .rcv-kv dd { text-align: right; }
    .rcv-f { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
    .rcv-f label { display: block; font-size: 12px; font-weight: 600; color: var(--txt2); margin-bottom: 6px; }
    .rcv-row { display: flex; gap: 8px; flex-wrap: wrap; }
    .rcv-row button { flex: 1 0 100%; justify-content: center; }
    .rcv-row input[name=som] { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
    .rcv-row .rcv-usd { flex: 0 0 96px; width: 96px; }
    .red { color: var(--red); } .grn { color: var(--green-ink); }
    .navtog { display: none; }
    .seg .paybtn.active, .seg button.active, .seg .on { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-accent) !important; }
    .seg { margin-bottom: 14px; }
    .botfab { background: var(--accent) !important; box-shadow: var(--shadow-pop) !important; }
    /* CORE: reusable — Step 93: the chat pill floats at the BOTTOM RIGHT on every screen. Step 89 had
       docked it at the foot of the menu on a wide screen; on a short window the rail scrolls and the
       pill sat on the BUGUN box's own button (owner, 19 Oct: "move chat to the right bottom"). The
       page keeps 72px of room at its foot — more than the pill's 33px plus its 18px offset — so it
       never covers a card's footer either. */
    @media (max-width: 1100px) { .kgrid, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 920px) {
      .side { width: 248px; }
      .main { margin-left: 0; }
      #top { padding: 0 14px; height: 60px; gap: 10px; }
      .page { padding: 14px 14px 72px; }
      .navtog { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--hair); background: var(--panel); cursor: pointer; color: var(--ink); flex: none; }
      #crumb b { font-size: 16px; }
      .side { padding-bottom: 28px; }
      .kurs, .rolebox .rn, .rolebox .ico { display: none; }
      .pgh h1 { font-size: 20px; }
      .grid2 { grid-template-columns: minmax(0, 1fr); }
      .kv:not(.rcv-kv) { grid-template-columns: 1fr; gap: 2px 0; } .kv:not(.rcv-kv) dd { margin-bottom: 8px; }
      .rcv { grid-template-columns: minmax(0, 1fr); }
      .flow { overflow-x: auto; padding-bottom: 6px; }
    }
    @media (max-width: 560px) {
      .kgrid, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .kpi, .kart { padding: 13px 13px 14px; min-height: 0; }
      .kpi .kl, .kart .l { font-size: 11.5px; padding-right: 20px; }
      .kpi .kic { top: 12px; right: 11px; width: 16px; height: 16px; }
      .kpi .kv, .kart .v { font-size: 19px; margin-top: 7px; }
      .kpi .ks, .kart .s { font-size: 11.5px; }
    }
    /* ════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — Step 99: the PHONE-FIT rule set (owner 19 Oct: "almost all places are not
       adjusted to phones"; Abdumalik 20 Oct: "Yonga surib ko'rish noqulay ekan-da" — the wide tables
       sat in overflow-x:auto boxes, so the page never overflowed, the browser had nothing to zoom out
       to, and he swiped sideways inside a box). The fix is the List Report floorplan the Mijozlar page
       of Step 90 built first: at ≤620px the table is a list of CARDS and nothing scrolls sideways.
       ONE rule set, .phone-cards, on the .dt-wrap. A page says which cell is which with a class:
         .nm    the name — card row 1, left (its link is the tap target, 44px tall)
         .fig   the figure — row 1, right, bold, tabular-nums
         .fig2  a second figure line under the first (a unit, a second sum) — row 2, right
         .sub   one line under the name (a document number and time, a note) — row 2, left
         .meta  a chip or a small fact; several sit side by side (.state is the same, Step 90)
         .fold  hidden on the phone — the page repeats it inside .more
         .more  the phone-only cell: <details><summary>…</summary><dl>…</dl></details>; hidden ≥621px
         .act   the row's button column, hidden on the phone — repeated inside .more
         tr.grp a group heading (one th spanning the table) stays a heading between the cards
       A cell with NO class is a full-width line of the card, in document order: a page that forgets
       a class loses nothing. Above 620px none of this applies — the table is the table it was, and
       tests/guards/test_step99_phone_fit.py proves it by reading the table's text at 1366.
       The same block gives every tap target on a phone its 44px (the brief: "every tap target ≥ 44")
       and stacks the page header's buttons (.pgh) — the shell's own bar, the chat pill included.
       ════════════════════════════════════════════════════════════════════════════════════════════ */
    .phone-cards table.dt td.more { display: none; }
    .ph-only { display: none; }
    @media (max-width: 620px) {
      /* the header: title, then the buttons, one under the other, full width */
      /* Step 167 (owner's phone, 11 Nov: four full-width buttons stood between the title and the list): the title
         takes its line, the buttons share the next one — two or three to a row, each still a thumb's height */
      .pgh { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
      /* Step 168 (the same owner, 11 Nov: "each page's upper side has too many informations that is not so
         important. They could be smaller"): the page's name is said ONCE — the top bar says it, so a title that
         repeats it is not drawn (nzFit marks it); the line under it is small and at most two lines; the buttons
         are as wide as their word and stand beside that line, not each on a row of its own. */
      .pgh > div:first-child { flex: 1 1 0; min-width: 46%; }
      .pgh h1 { font-size: 17px; }
      .pgh h1.nz-said { display: none; }
      .pgh .sub { font-size: 12px; line-height: 1.35; margin-top: 0; display: -webkit-box; -webkit-line-clamp: 2;
        -webkit-box-orient: vertical; overflow: hidden; }
      .pgh h1:not(.nz-said) + .sub { margin-top: 2px; }
      .pgh .sp { display: none; }
      .pgh .btn { justify-content: center; flex: 0 1 auto; padding-left: 12px; padding-right: 12px; }
      .page { padding-top: 6px; }
      /* … the top bar is a little lower, and the tab row goes up with the page instead of staying on the screen */
      .main #top { height: 54px; }
      .main .nz-tabs { position: static; }
      /* … the figures stand two to a row without their round icon (the label says what the number is) */
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
      .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
      .stat { padding: 12px 13px; gap: 0; }
      .stat .ti { display: none; }
      .stat .sv { font-size: 19px; overflow-wrap: anywhere; }
      /* Step 174: .ph-stats — a page whose figures are only the summary over a list says them in one small row */
      .stats.ph-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
      .stats.ph-stats > .stat { padding: 7px 9px; min-height: 0; }
      .stats.ph-stats > .stat:last-child:nth-child(odd) { grid-column: auto; }
      .stats.ph-stats:has(> .stat:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ph-stats .stat .sl { font-size: 10.5px; line-height: 1.2; }
      .ph-stats .stat .sv { font-size: 14px; line-height: 1.25; margin-top: 1px; }
      .ph-stats .stat .ss { display: none; }
      .pgh.ph-pgh .btn { min-height: 36px; padding: 5px 10px; font-size: 13px; }
      /* … and a date box stays inside its card: iOS draws it at its own width unless its native look is taken off */
      .page input[type=date], .page input[type=month], .page input[type=time], .page input[type=datetime-local] {
        -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; box-sizing: border-box; }
      /* the filter row wraps, each field a full line, every control a thumb's height */
      /* Step 168: … two fields to a row (Dan | Gacha, Do'kon | Turi) — five full rows of filters stood between the
         page's name and its first line; the search box and the buttons keep the whole width */
      .flt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px 10px; }
      .flt label, .flt .grow { max-width: none; min-width: 0; }
      .flt .grow, .flt > .btn, .flt > button, .flt > a, .flt > noscript, .flt > label:only-of-type { grid-column: 1 / -1; }
      .flt input, .flt select { width: 100%; }
      /* 44px: the buttons, the subnav tabs, the controls, the shell's own bar and the chat pill */
      .btn, .page button, .page a.btn, .subnav a,
      .page input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .page select {
        min-height: 44px; box-sizing: border-box; }
      .subnav a { display: inline-flex; align-items: center; }
      #top .navtog { width: 44px; height: 44px; }
      .bell { width: 44px; height: 44px; }
      .bell > a { width: 44px; height: 44px; }
      .rolebox .rav { width: 44px; height: 44px; }
      .botfab { min-height: 44px; padding: 8px 14px; }
      /* a bare link in the page body (an old page's toolbar of "a · a · a") is a tappable chip */
      .page > p > a, .page .toolbar > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
      /* the cards */
      .phone-cards .dt-scroll { overflow: visible; }
      .phone-cards table.dt { display: block; width: auto; white-space: normal; border-spacing: 0; }
      .phone-cards table.dt thead, .phone-cards table.dt tfoot,
      .phone-cards table.dt td.fold, .phone-cards table.dt td.act { display: none; }
      .phone-cards table.dt tbody { display: block; }
      .phone-cards table.dt tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center;
        border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; background: var(--surface); }
      .phone-cards table.dt tbody tr:hover { background: var(--surface) !important; }
      .phone-cards table.dt tbody tr.grp { display: block; border: 0; padding: 10px 2px 2px; margin: 0; background: none; }
      .phone-cards table.dt tbody tr.grp th { display: block; padding: 0; background: none; border: 0; font: 500 12px var(--font); color: var(--mut); }
      .phone-cards table.dt tbody tr.empty-row { display: block; }
      .phone-cards table.dt td { display: block; border: 0 !important; padding: 0 !important; text-align: left !important;
        background: none !important; grid-column: 1 / -1; min-width: 0; max-width: none; overflow-wrap: anywhere; vertical-align: middle; }
      .phone-cards table.dt td a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
      .phone-cards table.dt td.nm { grid-column: 1; grid-row: 1; font-weight: 600; }
      .phone-cards table.dt td.fig { grid-column: 2; grid-row: 1; font-weight: 700; font-size: 16px; text-align: right !important;
        font-variant-numeric: tabular-nums; white-space: nowrap; }
      .phone-cards table.dt td.fig2 { grid-column: 2; grid-row: 2; text-align: right !important; color: var(--mut); font-variant-numeric: tabular-nums; }
      .phone-cards table.dt td.sub { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--txt2); }
      .phone-cards table.dt td.meta, .phone-cards table.dt td.state { grid-column: auto; }
      .phone-cards table.dt td.more { display: block; grid-column: 1 / -1; }
      .phone-cards table.dt td.more summary { cursor: pointer; font-size: 12.5px; color: var(--txt2); min-height: 44px; box-sizing: border-box; padding: 12px 0; line-height: 20px; }
      .phone-cards table.dt td.more dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0 0 4px; font-size: 13px; }
      .phone-cards table.dt td.more dt { color: var(--mut); }
      .phone-cards table.dt td.more dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
      .phone-cards table.dt td.more .btn { margin-top: 6px; }
      .phone-cards table.dt td .sub2 { display: block; }
      .phone-cards .dt-foot { padding-top: 8px; }
      /* CORE: reusable — Step 174 (owner, 12 Nov 2026, of the workers' pages: "each worker takes so much place. it
         should take very little"): .ph-table is the compact phone table — a page marks the cells a phone can do
         without (.ph-x) and what only a phone needs (.ph-only); every row is one line, the name ends in "…",
         every other one shaded, the column widths fixed so the table fits the screen and nothing slides. */
      .dt-wrap:has(> .dt-scroll > table.ph-table), .dt-wrap.ph-wrap { padding: 0; }
      .dt-scroll:has(> table.ph-table) { overflow: visible; }
      table.dt.ph-table { width: 100%; min-width: 0; white-space: nowrap; font-size: 12.5px; }
      table.dt.ph-table .ph-x { display: none; }
      table.dt.ph-table th, table.dt.ph-table td { padding: 7px 6px; vertical-align: middle; }
      /* the name takes what the figures leave and ends in "…" — one line a worker, the full name is on his page */
      table.dt.ph-table td.nm { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      table.dt.ph-table td[colspan] { max-width: none; white-space: normal; }
      table.dt.ph-table tfoot td:not(.money), table.dt.ph-table tr.emp-sum td:not(.money) { white-space: normal; }
      table.dt.ph-table th { font-size: 11px; line-height: 1.2; }
      table.dt.ph-table th:first-child, table.dt.ph-table td:first-child { padding-left: 10px; }
      table.dt.ph-table th:last-child, table.dt.ph-table td:last-child { padding-right: 10px; }
      table.dt.ph-table tbody tr:nth-child(even) td { background: var(--panel-2); }
      table.dt.ph-table .ph-only { display: inline; }
      table.dt.ph-table td.money { font-variant-numeric: tabular-nums; }
    /* ════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — Step 166 (owner, 10 Nov 2026: "biror joyga kirganda chapga-o'ngga surish
       yoqmadi"): NO table scrolls sideways on a phone, on any page, whether or not somebody
       remembered to class its cells. .phone-cards above is the hand-made card for the pages that
       have one. Every OTHER table that does not fit its box at ≤620px is stacked by the shell
       itself: the script at the foot of this file (nzFit) measures each .dt-scroll box, writes
       every cell's column heading onto it (data-l) and marks the box .phone-stack — then each row
       is a card and each cell a line, "heading … value". A table that fits stays a table. Above
       620px nothing here applies.
       ════════════════════════════════════════════════════════════════════════════════════════════ */
      .phone-stack .dt-scroll, .phone-stack.dt-scroll { overflow: visible; }
      :is(.phone-stack table, table.phone-stack) { display: block; width: auto !important; min-width: 0 !important; white-space: normal;
        border-spacing: 0; }
      :is(.phone-stack table, table.phone-stack) :is(thead, colgroup) { display: none; }
      :is(.phone-stack table, table.phone-stack) :is(tbody, tfoot) { display: block; }
      :is(.phone-stack table, table.phone-stack) tr { display: block; border: 1px solid var(--line); border-radius: 10px;
        padding: 6px 12px; margin: 0 0 10px; background: var(--surface); }
      :is(.phone-stack table, table.phone-stack) tbody tr:hover { background: var(--surface) !important; }
      :is(.phone-stack table, table.phone-stack) :is(td, tbody th, tfoot th) { display: flex; flex-wrap: wrap;
        justify-content: space-between; align-items: baseline; gap: 2px 14px; border: 0 !important; padding: 4px 0 !important;
        text-align: right !important; background: none !important; width: auto !important; min-width: 0 !important;
        max-width: none !important; overflow-wrap: anywhere; position: static !important; white-space: normal !important; }
      :is(.phone-stack table, table.phone-stack) :is(td, tbody th, tfoot th)[data-l]:not([data-l=""])::before {
        content: attr(data-l); flex: 0 1 auto; max-width: 48%; text-align: left; font-weight: 400; font-size: 12px;
        color: var(--mut); white-space: normal; }
      :is(.phone-stack table, table.phone-stack) td:empty, :is(.phone-stack table, table.phone-stack) td.idx { display: none; }
      :is(.phone-stack table, table.phone-stack) td.idx + td { font-weight: 600; }   /* a row number is not a card's name */
      :is(.phone-stack table, table.phone-stack) :is(td, th)[colspan] { display: block; text-align: left !important; }
      :is(.phone-stack table, table.phone-stack) tr > :first-child { font-weight: 600; text-align: left !important;
        justify-content: flex-start; }
      .phone-stack table td input:not([type=checkbox]):not([type=radio]), .phone-stack table td select,
      .phone-stack table td textarea, table.phone-stack td input:not([type=checkbox]):not([type=radio]),
      table.phone-stack td select, table.phone-stack td textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
      :is(.phone-stack table, table.phone-stack) td form { max-width: 100%; }
      /* a row of facts or steps wraps instead of running off the side */
      .flow { flex-wrap: wrap; gap: 8px 14px; }
    }
    /* ════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — Step 69 B3: the THREE motions this ERP is allowed to have, and no fourth.
       Each one carries a fact a still picture cannot: something is on its way, something is waiting
       for you, something is still breathing. Each is slow and low-contrast, each loops, none of them
       draws a chart in, none of them glows, and none of them runs for a person whose phone asked for
       stillness — the resting state below is drawn with no animation at all, so when the motion is
       taken away the information is still on the screen.
       The names carry no client and no screen in them: a page asks for the behaviour, not the thing.
         .route-dash  — an SVG path whose dashes march along it: goods sent and not yet accepted
         .halo-pulse  — a ring that opens out of ONE element: the thing the director must act on now
         .live-dot    — a small dot that breathes: the page is still being fed
       ════════════════════════════════════════════════════════════════════════════════════════════ */
    /* the resting state: everything the three classes look like when nothing is moving */
    .route-dash { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 7 8; }
    .halo-pulse { position: relative; }
    .halo-pulse::after {
      content: ""; position: absolute; inset: -3px; border-radius: inherit;
      border: 2px solid var(--accent); opacity: .5; pointer-events: none;
    }
    .live-dot {
      display: inline-block; position: relative; width: 7px; height: 7px; flex: none;
      border-radius: 50%; background: var(--green); vertical-align: middle;
    }
    .live-dot::after {
      content: ""; position: absolute; inset: -3px; border-radius: 50%;
      border: 1px solid var(--green); opacity: .35; pointer-events: none;
    }

    @media (prefers-reduced-motion: no-preference) {
      /* on its way — the dashes march along the path, 1.4s, linear, forever */
      @keyframes nz-route-dash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -30; } }
      .route-dash { animation: nz-route-dash 1.4s linear infinite; }

      /* waiting for you — one ring opens out of the element and fades, 2.6s */
      @keyframes nz-halo-pulse {
        0% { transform: scale(1); opacity: .5; }
        70% { opacity: .08; }
        100% { transform: scale(1.9); opacity: 0; }
      }
      .halo-pulse::after { animation: nz-halo-pulse 2.6s ease-out infinite; }

      /* still being fed — a slow 2s breath, the ring breathing against it */
      @keyframes nz-live-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
      @keyframes nz-live-ring { 0%, 100% { opacity: .35; } 50% { opacity: .08; } }
      .live-dot { animation: nz-live-dot 2s ease-in-out infinite; }
      .live-dot::after { animation: nz-live-ring 2s ease-in-out infinite; }
    }

    /* CORE: reusable — Step 74 #29 (owner 12 Oct: "the left menu should open and close with a
       button"). The button was already in the header but only showed itself on a phone. Now it is
       always there: on a wide screen it folds the menu down to its icons (236px → 64px), which is
       what keeps a 1280px laptop readable without losing the menu altogether; below 920px it keeps
       doing what it did — slide the menu in over the page. The choice is remembered per person per
       device (localStorage, every read and write wrapped) and stamped on <html> before the first
       paint, so the page never flashes wide and then narrow. */
    .navtog { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
              border: 1px solid var(--hair); background: var(--panel); cursor: pointer; color: var(--ink); flex: none; }
    .navtog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    @media (min-width: 921px) {
      :root[data-nav="mini"] .side { width: 64px; flex: 0 0 64px; }
      :root[data-nav="mini"] .main { margin-left: 64px; }
      :root[data-nav="mini"] .side .nl,
      :root[data-nav="mini"] .side .sbrand > div,
      :root[data-nav="mini"] .side .chev,
      :root[data-nav="mini"] .side .bugun,
      :root[data-nav="mini"] .side .ngb,
      :root[data-nav="mini"] .side .nav-grp { display: none; }
      :root[data-nav="mini"] .side .nav-sec { height: 0; padding: 0; margin: 8px 16px; overflow: hidden; border-top: 1px solid var(--line); }
      :root[data-nav="mini"] .side .sbrand { justify-content: center; gap: 0; padding: 16px 0 14px; }
      :root[data-nav="mini"] .side .navi { justify-content: center; margin: 3px 8px; padding: 10px 0; gap: 0; }
      /* a badge cannot hold a number in 64px — it becomes the dot that says "something waits here" */
      :root[data-nav="mini"] .side .bdg { position: absolute; top: 5px; right: 7px; margin: 0; padding: 0;
        width: 8px; height: 8px; border-radius: 50%; overflow: hidden; text-indent: -99px; font-size: 0; }
    }

    /* ════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — Step 110: the background PHOTO (owner, 24 Oct: "erp background should be
       able to have picture, even in background inside chats and also in erp itself").
       ONE rule decides everything here: the picture is on the page GROUND and nowhere else. The
       menu, the top bar, every panel, every table and every tag stay OPAQUE over it, so not one
       figure in this ERP becomes harder to read in Namangan daylight than it was yesterday.
         · the photo is ONE fixed layer behind the page (body.fon::before, painted under --fon-veil,
           the ground's own colour) — it does not scroll, it costs one request, and it is fetched
           once ever: its url carries the bytes' own sha256 and is immutable for a year
           (core/background.py, the Step 97 pattern);
         · the url is the one thing that cannot live in this cached sheet, so the page sets
           --fon-img on <body> and adds the class — one attribute, ~90 bytes. No data: URI, ever;
         · the top bar's frost is a smear over a photo instead of a surface, so with a photo on it
           goes opaque;
         · CONFIG BACKGROUND_PLAIN_PAGES keeps the screens people OPERATE plain (Step 69 rule 2):
           the server simply does not send fon_url there, so there is no class and no layer.
       ════════════════════════════════════════════════════════════════════════════════════════════ */
    body.fon { background: var(--fon-paper); }
    body.fon::before {
      content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
      background-image: linear-gradient(var(--fon-veil), var(--fon-veil)), var(--fon-img, none);
      background-repeat: no-repeat; background-position: center center; background-size: cover;
    }
    body.fon .main { background: transparent; }
    body.fon #top { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
    /* ── what the page may write ON the photo, and what it may not ──
       The veil guarantees --ink and --txt2 at 4.5:1 over ANY photo (above). Nothing fainter is
       guaranteed: --mut is 3.17:1 over a black one, --red 3.26:1, --accent-ink 3.42:1, --green
       2.75:1. A page full of numbers does not get to keep text at 3:1, so with a photo on:
         1. the content column's MUTED grade steps up to --txt2 — one declaration, inherited by
            every page in the ERP, which is why no template has to be touched and no page can be
            forgotten. It is a contrast INCREASE (on a card too, where small print simply gets a
            grade darker) and never a decrease;
         2. the four shell blocks that write a COLOURED ink straight onto the ground — a paragraph,
            a bare table, a toolbar, a filter line — get --fon-paper, the opaque ground colour. A
            link stays copper and a debt stays red; they just stand on paper, as they do on a card.
       The GRID blocks (.khero, .hero, .pair, .cards, .grid2, .rgrid, .stats) are left alone on
       purpose: they hold panels and nothing else, so the photo shows between the cards — which is
       the whole point of having one. */
    body.fon .page { --mut: var(--txt2); --mut-2: var(--txt2); }
    body.fon .page > p, body.fon .page > table, body.fon .page > .toolbar, body.fon .page > .filters {
      background: var(--fon-paper); border-radius: var(--r); padding: 6px 10px;
    }

    /* ════════════════════════════════════════════════════════════════════════════════════════════
       CORE: reusable — Step 111a: where nz-shell v1 meets the shell this ERP already had
       (contract behaviour 1: ONE breakpoint, 1024px).

       Below 1024px — nz-top + nz-bar, and that is all: the left rail is not drawn and not reachable
       (the ☰ drawer on phones is gone, owner 24 Oct), the kurs and the account menu leave the header
       for the greeting strip and the sheet's user row, and the page keeps room at its foot for the
       fixed bar plus the iPhone's home indicator.
       1024px and up — the rail IS nz-side: light, always open, SECTIONS only; the header keeps the
       account menu because there is no sheet to put it in, and the mark is the rail's lockup, not a
       second copy of it in the header.
       The rail's fold-out markup is NOT removed at either width — behaviour 12 — only undrawn above
       1024px, where nz-tabs carries those pages on the section's own page.
       ════════════════════════════════════════════════════════════════════════════════════════════ */
    .nz-tabs { position: sticky; z-index: 19; background: var(--panel); border-bottom: 1px solid var(--hair); padding-left: 10px; padding-right: 10px; }
    /* CORE: reusable — Step 169: a tap answers at once — the thing pressed and a line under the top bar, drawn
       still (no fourth motion, Step 69 B3) until the next page arrives. */
    html[data-nz-go] #top { box-shadow: inset 0 -3px 0 var(--accent); }
    .nz-going { opacity: .55; }
    .nz-bar a.nz-going { opacity: 1; color: var(--accent); }
    /* Step 170: a press on the BAR moves the bar's light to the pressed item at once — two lit items read as a fault */
    html[data-nz-go="bar"] .nz-bar [aria-current="page"]:not(.nz-going) { color: var(--mut); }
    @media (max-width: 1023.9px) {
      .side, .navshade { display: none !important; }
      .main { margin-left: 0; padding-bottom: calc(84px + max(env(safe-area-inset-bottom, 0px), 14px)); }
      .navtogbox { display: none; }
      #top { height: 61px; padding: 0 6px 0 14px; gap: 8px; }
      #crumb { font-size: 11px; }
      .kurs, .rolebox { display: none; }
      .nz-tabs { top: 61px; }
    }
    @media (min-width: 1024px) {
      .nz-tabs { top: 68px; }
    }

    /* CORE: reusable — Step 69, rule 1 of "skromniy": motion only where it carries information, and
       NEVER for a person who asked their phone to stop moving things. One global stop, so anything
       added to this shell later is covered by it whether its author remembered or not. */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }
  