/* Hallmark · redesign: "Lisible" readability layer · genre: modern-minimal · tone: utilitarian
 * paper: near-white · ink: slate-900 · accent: petrol blue #006a88 (brand), green = done only · display: IBM Plex Sans, roman
 *
 * readable.css — the "Lisible" skin layer, scoped to `body.skin-readable`.
 * Type: IBM Plex Sans / Plex Mono at a 14px base (section 0).
 * ------------------------------------------------------------------------
 * Loaded after shadcn.css when APP_SKIN (public/index.php) lists
 * 'readable'. Built to be easier to read on a long shift: IBM Plex type,
 * darker secondary text, petrol blue on the main actions (green kept for
 * "done"), tables with a header band and striped rows, status pills that read
 * at a glance — all colours from one matched palette (section 1).
 *
 * To turn it off: remove 'readable' from APP_SKIN. Nothing else to undo.
 * ------------------------------------------------------------------------ */

/* ======================================================================
 | 0. Type — IBM Plex, vendored (OFL, public/assets/fonts/OFL-ibm-plex.txt;
 |    no CDN). Plex Sans for text — the Latin sibling of the IBM Plex Sans
 |    Arabic the preparator/driver screens already use, so FR/EN/AR read as
 |    one family; Plex Mono for references (CMD-…, SKUs, EAN). Plex Sans is
 |    a variable font: one file per script carries every weight 400–700.
 ====================================================================== */
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ======================================================================
 | 1. Tokens — one matched palette. `body.skin-readable` ties shadcn's
 |    `body.skin-shadcn` and loads after it, so every var below wins.
 |
 |    Every hue is cut from the same OKLCH recipe, so no colour shouts
 |    louder than another and they read as one family:
 |      soft   L .968 C .022   tinted backgrounds (pills, chips, banners)
 |      line   L .905 C .055   borders on a soft tint
 |      dot    L .66  C .14    status dots, chart marks
 |      base   L .57  C .13    fills
 |      strong L .50  C .115   text and icons — 5:1+ on white and on its soft
 |      deep   L .42  C .10    pressed / hover of a strong fill
 |    Hues: green 162 · blue 255 · amber 70 · red 25 · teal 190 · violet 295
 |    · rose 355 · orange 48 · indigo 275 · cyan 222 · fuchsia 325 · lime 135
 |    · slate 255 (chroma × .22) · petrol 222 (the brand, 2026-10-19).
 ====================================================================== */
body.skin-readable {
    /* Petrol blue — the brand (primary; indigo until 2026-10-19). Kept in the --emerald-* slots because
       app.css calls its brand family by that name (brand mark, avatar,
       portal CTAs, order-pipeline chart's 500→900 ordinal ramp). Brand is no
       longer green on purpose: green now only ever means "done / ok"
       (--success-*, pills, completed steps), so a button never looks like a
       status. Fills sit a step more saturated than the status recipe —
       white text on 600: 6.2:1. */
    --emerald-50:  #e3f9ff;
    --emerald-200: #b4e9fd;
    --emerald-400: #0da2c6;
    --emerald-500: #0086aa;
    --emerald-600: #006a88;
    --emerald-700: #005770;
    --emerald-800: #004559;
    --emerald-900: #003443;
    /* Green — "done / ok" only. */
    --success-50:  #e8f9f0;
    --success-200: #c0ecd5;
    --success-400: #18ac77;
    --success-500: #18ac77;
    --success-600: #008e5f;
    --success-700: #00774e;
    --success-800: #005d3c;
    --success-900: #004a2f;

    /* Blue — info / in progress. */
    --blue-50:  #ebf6ff;
    --blue-600: #3d78c2;
    --blue-700: #3164a3;
    /* Amber — waiting / partial. */
    --amber-50:  #fef2e5;
    --amber-600: #a76700;
    --amber-700: #8c5500;
    /* Red — danger / late / unpaid. */
    --red-50:  #ffefed;
    --red-400: #db6c66;
    --red-500: #b8544f;
    --red-600: #9a4541;

    /* The same recipe, as named tints for pills and chips. */
    --rl-green-soft: #e8f9f0;  --rl-green-line: #c0ecd5;  --rl-green-dot: #18ac77;  --rl-green-ink: #00774e;
    --rl-blue-soft:  #ebf6ff;  --rl-blue-line:  #c8e2ff;  --rl-blue-dot:  #5294e6;  --rl-blue-ink:  #3164a3;
    --rl-amber-soft: #fef2e5;  --rl-amber-line: #f8dab9;  --rl-amber-dot: #c8800d;  --rl-amber-ink: #8c5500;
    --rl-red-soft:   #ffefed;  --rl-red-line:   #ffd2cd;  --rl-red-dot:   #db6c66;  --rl-red-ink:   #9a4541;
    --rl-slate-soft: #f2f5f8;  --rl-slate-line: #dae0e8;  --rl-slate-dot: #8694a5;  --rl-slate-ink: #454e59;

    /* Sidebar groups — one hue each, all at the "strong" step, so the
       sections still read apart but none is brighter than its neighbours. */
    --nav-main:       #5a6472;   /* slate  */
    --nav-catalog:    #69549d;   /* violet */
    --nav-purchasing: #3164a3;   /* blue   */
    --nav-sales:      #00774e;   /* green  */
    --nav-operations: #8c5500;   /* amber  */
    --nav-finance:    #007772;   /* teal   */
    --nav-insights:   #944466;   /* rose   */
    --nav-warehouse:  #964c20;   /* orange */
    --nav-admin:      #515ca4;   /* indigo */

    /* Neutrals — cool slate, one step darker where text sits on them. */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #8a97a8;
    --slate-500: #5b6779;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* "Clair" (2026-10-20, picked from 4 previews): near-white page, flat
       cards on a hairline border, no shadow. */
    --bg:             #f7f9fa;
    --surface:        #ffffff;
    --text:           #1e293b;
    --ink:            #0f172a;
    --muted:          #526072;   /* 6.3:1 on white (shadcn's #71717a was 4.8:1) */
    --faint:          #64748b;
    --line:           #e3e8ec;
    --line-soft:      #eef1f4;
    --hover:          #f2f7f9;
    --primary:        #006a88;   /* petrol blue — white text on it: 6.2:1 */
    --primary-strong: #005770;
    --primary-soft:   #e8f4f8;
    --rl-primary-line: #c3e2ec;
    --success:        #00774e;
    --success-strong: #005d3c;
    --success-soft:   #e8f9f0;

    --rl-head-band:   #ffffff;   /* table header: white, a line under it */
    --rl-row-hover:   #f3f8fa;
    --rl-input-line:  #b8c2cf;

    --shadow-card:  none;
    --ring-primary: 0 0 0 2px #fff, 0 0 0 4px #006a88;

    /* Type — read by every font-family in app.css (its :root has the
       system-font fallbacks). Plex Sans Arabic second: Arabic glyphs fall
       through to it anywhere a stack starts with Plex Sans. */
    --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
}

/* ======================================================================
 | 2. Page header — a clear title and a sub-line you can actually read.
 ====================================================================== */
body.skin-readable .page-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
body.skin-readable .page-head .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
body.skin-readable .topbar h1 { font-size: 15px; font-weight: 600; }

/* ======================================================================
 | 3. Sidebar — darker labels; the current page is a soft tint of its
 |    group's colour with the text and icon in that colour (no left bar).
 ====================================================================== */
body.skin-readable .nav-item {
    font-size: 13px; font-weight: 500; color: var(--slate-700);
    padding-top: 6px; padding-bottom: 6px; margin-bottom: 1px;
}
body.skin-readable .nav-item .icon { width: 15px; height: 15px; }
body.skin-readable .nav-item { border-radius: 8px; }
body.skin-readable .sidebar { border-right-color: var(--line-soft); }
body.skin-readable .nav-item:hover { background: var(--hover); color: var(--ink); }
/* --group-c is the row's sidebar group colour (app.css, "strong" step of the
   palette — 5:1 or better on white, still 4.5:1+ on its 11% tint); a row
   outside any group falls back to the brand. [data-group] repeated so this
   outranks app.css's .nav-group[data-group] .nav-item.active tint. */
body.skin-readable .nav-item.active,
body.skin-readable .nav-group[data-group] .nav-item.active {
    background: color-mix(in srgb, var(--group-c, var(--primary)) 11%, var(--surface)); color: var(--group-c, var(--primary)); font-weight: 600;
}
body.skin-readable .nav-item.active .icon,
body.skin-readable .nav-group[data-group] .nav-item.active .icon {
    background: transparent; color: var(--group-c, var(--primary)); box-shadow: none;
}
body.skin-readable .nav-item.active .nav-sub-chevron { color: var(--group-c, var(--primary)); }
body.skin-readable .nav-item.active::before { display: none; }
html.sidebar-collapsed body.skin-readable .nav-group[data-group] .nav-item.active .icon { background: transparent; }
/* Sidebar revenue card: a light brand tint, not a dark slab. */
body.skin-readable .sidebar-kpi {
    background: var(--primary-soft); color: var(--ink);
    border: 1px solid var(--rl-primary-line); border-radius: 10px;
}
body.skin-readable .sidebar-kpi .sidebar-kpi-label { color: var(--primary); }
body.skin-readable .sidebar-kpi :is(.sidebar-kpi-unit, .sidebar-kpi-sub) { color: var(--muted); }
body.skin-readable .sidebar-kpi .sidebar-kpi-badge.is-up { color: var(--success); }
body.skin-readable .sidebar-kpi .sidebar-kpi-badge.is-down { color: var(--rl-red-ink); }
body.skin-readable .topbar { border-bottom-color: var(--line-soft); }
body.skin-readable .nav-group-label { font-size: 11.5px; letter-spacing: .06em; }

body.skin-readable .brand-mark { background: var(--primary); }

/* ======================================================================
 | 4. Cards — flat white on a hairline border, 12px corners, no shadow;
 |    a roomy title row with only a soft line under it.
 ====================================================================== */
body.skin-readable :is(.card, .alerts-card, .waits-card, .kpi-card, .stat-compact, .waits-tile) {
    border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow-card);
}
body.skin-readable .card-head { padding: 18px 20px; border-bottom-color: var(--line-soft); }
body.skin-readable .card-title { font-size: 16px; font-weight: 600; line-height: 1.3; }

/* ======================================================================
 | 5. Tables — the screen most staff live in. White header over a line,
 |    13.5px cells with air between rows, a hover row you can follow
 |    across a wide table.
 ====================================================================== */
/* Laptop and up only: under 900px .table-cards / .job-table turn rows into
   cards (public/CLAUDE.md), and these cell rules would outrank them. */
@media (min-width: 901px) {
    body.skin-readable .table thead th {
        background: var(--rl-head-band);
        color: var(--muted);
        font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
        border-bottom: 1px solid var(--line);
        height: 40px; padding-left: 10px; padding-right: 10px;
    }
    body.skin-readable .table th:first-child, body.skin-readable .table td:first-child { padding-left: 16px; }
    body.skin-readable .table th:last-child, body.skin-readable .table td:last-child { padding-right: 16px; }
    body.skin-readable .table tbody td {
        font-size: 13.5px; color: var(--text);
        padding: 12px 10px;
        border-bottom: 1px solid var(--line-soft);
        font-variant-numeric: tabular-nums;
    }
    body.skin-readable .table tbody tr:hover td { background: var(--rl-row-hover); }
    body.skin-readable .table tbody tr:hover { background: transparent; }
    /* The filter row under the header stays plain white — it holds inputs. */
    body.skin-readable .table thead tr.table-filter-row th { background: var(--surface); height: auto; }
    body.skin-readable .table-wrap .table:has(tbody td:last-child > .row-actions) thead tr:not(.table-filter-row) th:last-child { background: var(--rl-head-band); }
}

/* References (CMD-…, BC-…, SKUs): darker and a touch bigger — they are
   what people scan a list for. */
body.skin-readable .mono { font-size: 12.5px; color: var(--ink); font-weight: 500; }
body.skin-readable .table td .mono { color: var(--ink); }

/* ======================================================================
 | 6. Status pills — soft tint + line + strong text from the palette, so
 |    every status reads at the same weight; only the hue changes.
 ====================================================================== */
body.skin-readable .pill {
    font-size: 12px; font-weight: 500; padding: 2px 9px;
    border-radius: 999px;
}
body.skin-readable .pill-slate { background: var(--rl-slate-soft); border-color: var(--rl-slate-line); color: var(--rl-slate-ink); }
body.skin-readable .pill-green { background: var(--rl-green-soft); border-color: var(--rl-green-line); color: var(--rl-green-ink); }
body.skin-readable .pill-blue  { background: var(--rl-blue-soft);  border-color: var(--rl-blue-line);  color: var(--rl-blue-ink); }
body.skin-readable .pill-amber { background: var(--rl-amber-soft); border-color: var(--rl-amber-line); color: var(--rl-amber-ink); }
body.skin-readable .pill-red   { background: var(--rl-red-soft);   border-color: var(--rl-red-line);   color: var(--rl-red-ink); }
body.skin-readable .pill-sm { font-size: 11px; }
/* On a .pill the status is a coloured dot and the word, no chip ("P2",
   picked from the design gallery 2026-10-20) — the calmest read in a busy
   list. Scoped to .pill: the .pill-* tints above still colour the
   notification icons and chips that reuse those classes. */
body.skin-readable .pill:is(.pill-slate, .pill-green, .pill-blue, .pill-amber, .pill-red) {
    background: transparent; border-color: transparent; color: var(--text);
    padding: 0; gap: 7px; font-size: 13px; font-weight: 500;
}
body.skin-readable .pill.pill-sm { font-size: 12px; }
body.skin-readable .pill::before { width: 8px; height: 8px; flex: none; }
body.skin-readable .pill.pill-slate::before { background: var(--rl-slate-dot); }
body.skin-readable .pill.pill-green::before { background: var(--rl-green-dot); }
body.skin-readable .pill.pill-blue::before  { background: var(--rl-blue-dot); }
body.skin-readable .pill.pill-amber::before { background: var(--rl-amber-dot); }
body.skin-readable .pill.pill-red::before   { background: var(--rl-red-dot); }
body.skin-readable .pill.pointer:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
body.skin-readable .activity-dot { border: 0; padding: 0; border-radius: 50%; }
/* Status dots stay saturated (shadcn hardcoded its own hexes) — the "dot" step. */
body.skin-readable .activity-dot.pill-green { background: var(--rl-green-dot); }
body.skin-readable .activity-dot.pill-blue  { background: var(--rl-blue-dot); }
body.skin-readable .activity-dot.pill-amber { background: var(--rl-amber-dot); }
body.skin-readable .activity-dot.pill-red   { background: var(--rl-red-dot); }
body.skin-readable .activity-dot.pill-slate { background: var(--rl-slate-dot); }
body.skin-readable .alerts-row.is-critical .alerts-row-dot { background: var(--rl-red-dot); }
body.skin-readable .alerts-row.is-warning  .alerts-row-dot { background: var(--rl-amber-dot); }

/* Icon chips beside stat / card titles: shadcn greyed them all out; give
   each its colour back from the same soft + strong steps as the pills. */
body.skin-readable :is(.card-icon-chip, .kpi-card-ico, .stat-ico, .stat-compact-ico, .sku-price-chip).green { background: var(--rl-green-soft) !important; border-color: var(--rl-green-line); color: var(--rl-green-ink) !important; }
body.skin-readable :is(.card-icon-chip, .kpi-card-ico, .stat-ico, .stat-compact-ico, .sku-price-chip).blue  { background: var(--rl-blue-soft) !important;  border-color: var(--rl-blue-line);  color: var(--rl-blue-ink) !important; }
body.skin-readable :is(.card-icon-chip, .kpi-card-ico, .stat-ico, .stat-compact-ico, .sku-price-chip).amber { background: var(--rl-amber-soft) !important; border-color: var(--rl-amber-line); color: var(--rl-amber-ink) !important; }
body.skin-readable :is(.card-icon-chip, .kpi-card-ico, .stat-ico, .stat-compact-ico, .sku-price-chip).red   { background: var(--rl-red-soft) !important;   border-color: var(--rl-red-line);   color: var(--rl-red-ink) !important; }
body.skin-readable :is(.card-icon-chip, .kpi-card-ico, .stat-ico, .stat-compact-ico, .sku-price-chip).slate { background: var(--rl-slate-soft) !important; border-color: var(--rl-slate-line); color: var(--rl-slate-ink) !important; }

/* ======================================================================
 | 7. Buttons — the main action in brand petrol blue.
 ====================================================================== */
body.skin-readable .btn { height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 500; border-radius: 8px; }
body.skin-readable .btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
body.skin-readable .btn-icon { width: 36px; height: 36px; padding: 0; }
body.skin-readable .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
body.skin-readable .btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
body.skin-readable .btn-outline { border-color: var(--rl-input-line); color: var(--ink); }
body.skin-readable .btn-ghost { color: var(--slate-700); }

/* ======================================================================
 | 8. Forms — 15px text, a border you can see, a label above it in ink.
 ====================================================================== */
body.skin-readable .label { font-size: 13px; font-weight: 500; color: var(--slate-800); }
body.skin-readable .input { font-size: 14px; border-color: var(--rl-input-line); border-radius: 8px; }
body.skin-readable .input::placeholder { color: var(--slate-400); }
body.skin-readable .input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--rl-primary-line); }
body.skin-readable .field-hint { font-size: 12.5px; color: var(--muted); }

/* ======================================================================
 | 9. Stat tiles — the number is the point; make it the biggest thing.
 |    Every stat tile is one line; only the dashboard's KPI cards keep two rows.
 ====================================================================== */
/* Number tiles ("K5", picked from the design gallery 2026-10-20): a round
   icon, the number big, its label under it. The inline strip
   (.stats-inline) keeps its one line. */
body.skin-readable :not(.stats-inline) > .stat-compact {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 1px; align-items: center; padding: 14px 16px;
}
body.skin-readable :not(.stats-inline) > .stat-compact .stat-compact-ico { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; }
body.skin-readable :not(.stats-inline) > .stat-compact .stat-compact-ico .icon { width: 20px; height: 20px; }
body.skin-readable :not(.stats-inline) > .stat-compact .stat-compact-value { grid-column: 2; align-self: end; font-size: 22px; font-weight: 700; }
body.skin-readable :not(.stats-inline) > .stat-compact .stat-compact-copy { grid-column: 2; align-self: start; }
@container (max-width: 300px) {
    body.skin-readable :not(.stats-inline) > .stat-compact .stat-compact-value { font-size: 17px; }
}
/* One-line tiles (app.css): icon · value · "Label · sub". */
body.skin-readable .stat-compact-label { font-size: 13px; color: var(--ink); }
body.skin-readable .stat-compact-sub { font-size: 12.5px; color: var(--muted); }
body.skin-readable .stat-compact-value { font-size: 19px; font-weight: 600; }
/* A narrow tile (4–5 in a row) holding a long total ("40,844.62 MAD HT")
   steps its number down so the label keeps room. */
@container (max-width: 320px) {
    body.skin-readable .stat-compact-value { font-size: 16px; }
    body.skin-readable .stat-compact-label { font-size: 12.5px; }
}
body.skin-readable .kpi-grid--compact .kpi-card-label { font-size: 13px; color: var(--ink); }
body.skin-readable .kpi-grid--compact .kpi-card-value { font-size: 17px; font-weight: 600; }
/* The dashboard's big KPI cards — unchanged, two rows. */
body.skin-readable .kpi-grid:not(.kpi-grid--compact) .kpi-card-label { font-size: 13px; }
body.skin-readable .kpi-grid:not(.kpi-grid--compact) .kpi-card-value { font-size: 22px; font-weight: 600; }
body.skin-readable .kpi-grid:not(.kpi-grid--compact) :is(.kpi-card-sub, .kpi-card-change) { font-size: 12.5px; }

/* ======================================================================
 | 10. Status stepper — finished steps in green, labels one size up.
 ====================================================================== */
/* A finished step is "done", so it is green — not the petrol brand, which
   sat too close to the blue "current" step. */
body.skin-readable .step.done .bullet { background: var(--success); border-color: var(--success); }
body.skin-readable .stepper { --step-fill: var(--success); }
body.skin-readable .step.current .bullet { box-shadow: 0 0 0 5px var(--rl-blue-soft); }
/* Money collected and a delivered stop are outcomes, not brand. */
body.skin-readable .inv-collect-fill { background: var(--success); }
body.skin-readable .trk-stop--delivered { background: var(--success); }
body.skin-readable .stepper .s-title { font-size: 13px; }
body.skin-readable .stepper .s-sub { font-size: 12px; color: var(--muted); }

/* ======================================================================
 | 10b. Small print (2026-10-13 tour of every role) — text people read is
 |      never under 11px, and the role under the user's name passes AA
 |      (it was 4.4:1 at 11px).
 ====================================================================== */
body.skin-readable .brand-sub { font-size: 12px; }
body.skin-readable .nav-user-role { font-size: 12px; color: var(--muted); }
body.skin-readable .sidebar-kpi-label { font-size: 11px; }
body.skin-readable :is(.sidebar-kpi-badge, .sidebar-kpi-unit, .sidebar-kpi-sub) { font-size: 11px; }
body.skin-readable .board-filter-label { font-size: 12.5px; }
body.skin-readable .board-filter-label .icon { width: 13px; height: 13px; }
body.skin-readable .text-xs { font-size: 12px; }

/* ======================================================================
 | 11. Phones — titles and tile numbers step down.
 ====================================================================== */
@media (max-width: 900px) {
    body.skin-readable .page-head h2 { font-size: 21px; }
}
@media (max-width: 640px) {
    body.skin-readable .trend-range-btn { padding: 8px 12px; }   /* thumb-sized (shadcn sets 4px 11px) */
    body.skin-readable .stat-compact-value { font-size: 17px; }
    body.skin-readable .kpi-grid:not(.kpi-grid--compact) .kpi-card-value { font-size: 18px; }
}
