/* Calm premium layer (owner 2026-11-21, plan/DESIGN_CALM_PREMIUM_2026-11-21.md). Loaded LAST, after motion.css.
   Colours come from js/themes.js (Monokrom = warm bone, white cards, #111 ink; Lime = the same with one lime accent).
   This file sets shape, type, spacing, shadow and motion for every theme, and switches off the older decoration
   (gradients, glows, blur, springs, page fades) that the earlier layers (meteam, v6, v10, v14, v20, deck) still paint. */

/* ---------- tokens: shape, shadow, motion ---------- */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: var(--ease); --ease-io: var(--ease); --ease-sheet: var(--ease); --ease-spring: var(--ease);
  --spring-snappy: var(--ease); --spring-soft: var(--ease); --spring-bouncy: var(--ease); --fx-ease: var(--ease); --fx-ease-out: var(--ease);
  --t-1: 150ms; --t-2: 150ms; --t-3: 200ms; --t-4: 350ms; --fx-dur: 150ms; --fx-dur-in: 150ms;
  --r-card: 20px; --r-xl: 22px; --r-l: 20px; --r-m: 14px; --r-s: 12px; --r-xs: 8px; --r-pill: 999px; --r-block: 9px;
  --gap: 18px; --pad: 20px;
  --sh-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
  --sh-hover: 0 4px 12px rgba(0, 0, 0, .08);
  --sh-pop: 0 4px 12px rgba(0, 0, 0, .08), 0 16px 40px rgba(0, 0, 0, .08);
  --sh-1: var(--sh-card); --sh-2: var(--sh-card); --sh-3: var(--sh-pop);
  --glow: transparent; --live-glow: transparent; --slab-glow: transparent;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 14px; --fs-micro: 11px; --fs-num: 30px; --fs-h1: clamp(30px, 3vw, 40px);
}
:root[data-theme="dark"] { --sh-card: 0 1px 2px rgba(0, 0, 0, .3); --sh-hover: 0 4px 12px rgba(0, 0, 0, .35); --sh-pop: 0 4px 12px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sh-card: 0 1px 2px rgba(0, 0, 0, .3); --sh-hover: 0 4px 12px rgba(0, 0, 0, .35); --sh-pop: 0 4px 12px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35); } }
/* the style options stay, inside the rules: "tegas" is less round but never sharp, "padat" stays roomy enough */
:root[data-corners="tegas"] { --r-card: 14px; --r-xl: 16px; --r-l: 14px; --r-m: 10px; --r-s: 10px; --r-xs: 8px; }
:root[data-density="padat"] { --gap: 16px; --pad: 16px; }
:root[data-cards="datar"] { --sh-card: none; }

/* ---------- ground: flat bone, no glows, no blur ---------- */
body, :root[data-cards="kaca"] body { background: var(--bg); background-attachment: scroll; font-family: var(--font); font-size: var(--fs-body); line-height: 1.4; color: var(--ink); }
.main, .main::before, .main::after, .app::before, .app::after, .login-stage { background: var(--bg) !important; }
.main::before, .main::after, .app::before, .app::after { content: none !important; }
.login-stage { background: var(--bg) !important; }
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* gradients painted by the older layers -> flat surfaces */
.skel > i { background: var(--panel-sunk) !important; animation: none !important; }
.cl-d .b1 { background: var(--c1) !important; } .cl-d .b2 { background: var(--c2) !important; }
.fp-i, .fp-i * { background: var(--panel-sunk) !important; color: var(--ink) !important; box-shadow: none !important; }
.fc, .fc::before { background: var(--panel) !important; }
.fc::before { content: none !important; }
.tk-day.today { background: var(--pri) !important; color: var(--pri-ink) !important; box-shadow: none !important; }
.kpi, .tk-card, .u-amb { background: var(--panel) !important; }
.wl-ag, .lead .wl-ag { background: var(--slab-1) !important; }
.dept-h > i { background: var(--line) !important; }
.mfun i, .mfun > div i, .mband .bw i, .mband > div .bw i { background: var(--c1) !important; }
.mfun > div:nth-child(n+2) i, .mband > div:nth-child(n+2) .bw i { background: var(--c-soft) !important; }
.x-fin-card, [class*="fp-cover"], .fp-cover { background: var(--slab-1) !important; box-shadow: var(--sh-card) !important; }
.dc-blob, .m-dot, .m-ripple { display: none !important; }
[class*="aura"], [class*="amb-"], .u-amb::before, .u-amb::after { background-image: none !important; }
:root .m-tilt { transform: none !important; }

/* ---------- type: one sans, three sizes, left-aligned ---------- */
body, button, input, select, textarea { font-family: var(--font); }
h1, h2, h3, h4, .u-head, .u-card-h { text-align: left; }
.u-head h2, .hero-t h1, .hero-t .ttl, header.top .ttl { font-size: var(--fs-h1) !important; font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.05 !important; }
.u-head p { font-size: var(--fs-body); color: var(--ink-3); }
/* section titles are micro-labels */
.u-card-t h4, .dash .u-card-t h4, .sec-t, .u-sec > h3, .dk-vis h4 { font-size: var(--fs-micro) !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .08em !important; color: var(--ink-3) !important; line-height: 1.3; }
.u-card-t p { font-size: var(--fs-body); color: var(--ink-3); margin-top: 4px; }
/* big numbers read like headlines */
.kc-v, .u-kpi b, .u-stat b, .kpi > b, a.kt > b, .fig b { font-size: var(--fs-num) !important; font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kc-h, .kc-h span, .kc-a { font-size: var(--fs-micro) !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3) !important; }
p, li, td, .row, .nrow { letter-spacing: 0; }

/* ---------- surfaces: white cards on bone, soft shadow, 20px radius, 20px padding ---------- */
.u-card, .card, .u-stat, .u-kpi, .kc, .dash-card, .tbl, .md-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card) !important; box-shadow: var(--sh-card); }
.u-card { padding: var(--pad); }
.u-kpis, .dash-grid, .dk-grid, .u-grid { gap: var(--gap) !important; }
.page { padding-top: 24px; padding-left: 28px; padding-right: 28px; }
@media (max-width: 720px) { .page { padding-left: 16px; padding-right: 16px; padding-top: 16px; } }
/* hover lift: 2px up, a slightly deeper shadow, 150 ms */
a.u-card, a.kc, button.kc, .u-kpi, .fx-lift, a.card { transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.u-card:hover, a.kc:hover, button.kc:hover, .u-kpi:hover, .fx-lift:hover, a.card:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
}
.avatar, .av, [class*="avatar"] img, .ava { border-radius: 50% !important; }

/* the dark hero card (Home band and the 1-2 most important panels): inverted, white text */
.u-hero-dark, .dk-hero { background: var(--slab-1) !important; color: #FFFFFF; border-color: transparent !important; }

/* ---------- controls: everything clickable is a pill ---------- */
.btn, .btn.sm, .btn.block, .chip, .u-seg, .u-seg > button, .u-seg-ink, .vtabs button, .tab-pill, .gsearch, .ib-tab, .seg button { border-radius: var(--r-pill) !important; }
.btn.pri, .btn.key, .btn.gnew { box-shadow: none !important; }
.btn.pri:hover { transform: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn, .chip, .u-seg > button, .nav-i, .row.link, .gsearch { transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease) !important; }
.gsearch { background: var(--panel) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.gsearch:hover { border-color: var(--line-2) !important; box-shadow: none !important; }
.u-seg { background: var(--panel-sunk); }
.u-seg > button.on, .vtabs button.on { color: var(--pri-ink) !important; }
.u-seg-ink { background: var(--pri) !important; box-shadow: none !important; }
.u-seg:not(:has(.u-seg-ink[style*="width"])) > button.on { background: var(--pri) !important; }
/* toggles slide in 200 ms */
input[type="checkbox"].sw, .switch, .tgl, .switch *, .tgl * { transition-duration: 200ms !important; transition-timing-function: var(--ease) !important; }
/* the live / active accent is a small mark, never a background (Lime: the lime chip behind a number) */
.nav-i.on, .nav-i[aria-current="page"] { background: var(--pri) !important; color: var(--pri-ink) !important; }
.nav-i.on .i, .nav-i[aria-current="page"] .i { color: var(--pri-ink) !important; }
.sd-pill { background: var(--pri) !important; box-shadow: none !important; }

/* ---------- status: dots, not coloured backgrounds ---------- */
.pill { background: transparent !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--line); }
.pill.ok::before, .pill.done::before, .pill.warn::before, .pill.yellow::before, .pill.err::before, .pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pill.ok::before, .pill.done::before { background: var(--ok-fill); }
.pill.warn, .pill.yellow { background: var(--warn-soft) !important; color: var(--warn) !important; box-shadow: none; }
.pill.warn::before, .pill.yellow::before { background: var(--warn-fill); }
.pill.err::before { background: var(--err-fill); }
.pill.err { color: var(--err) !important; }
.pill.info, .pill.blue, .pill.pur, .pill.work, .pill.orange { background: transparent !important; color: var(--ink-2) !important; }
.pill.test { box-shadow: inset 0 0 0 1px var(--warn-fill); }

/* ---------- toast: one black pill, bottom centre, tick left, Undo right ---------- */
.toasts { position: fixed !important; left: 50% !important; right: auto !important; bottom: 24px !important; transform: translateX(-50%); z-index: 90; display: grid; justify-items: center; pointer-events: none; }
@media (max-width: 720px) { .toasts { bottom: calc(88px + env(safe-area-inset-bottom)) !important; } .no-tabs .toasts { bottom: 24px !important; } }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; max-width: min(92vw, 520px); min-height: 44px; padding: 0 8px 0 16px; border-radius: var(--r-pill) !important;
  background: #111111 !important; color: #FFFFFF !important; font-size: var(--fs-body); font-weight: 500; box-shadow: var(--sh-pop) !important;
  opacity: 0; transform: translateY(12px); transition: opacity 250ms var(--ease), transform 250ms var(--ease) !important; }
.toast:not(:has(.toast-undo)) { padding-right: 18px; }
.toast .i { color: #FFFFFF !important; width: 16px; height: 16px; flex: none; }
.toast.err .i { color: #FF4D4D !important; }
.toast span { overflow: hidden; text-overflow: ellipsis; }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: none; transition: opacity 250ms var(--ease) !important; }
.toast-undo { margin-left: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.toast-undo:hover { background: rgba(255, 255, 255, .24); }
.toast-undo:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
:root[data-palette="lime"] .toast .i { color: #D9FF3F !important; }
:root[data-palette="lime"] .toast-undo { background: #D9FF3F; color: #111111; }

/* ---------- motion: hard-cut screens, one easing, nothing under 150 ms ---------- */
::view-transition-old(*), ::view-transition-new(*), ::view-transition-group(*) { animation: none !important; }
#page.enter > *, .page.enter > * { animation: none !important; }
.odo-on { font-variant-numeric: tabular-nums; }

/* ---------- charts: black / grey, dashed second series, faint horizontal grid only ---------- */
.ck .gr { stroke: var(--c-grid, var(--line)); }
.ck .gr.div { stroke-dasharray: none; }
.ck .ln { stroke-width: 2; }
.ck .ln.s1, .ck .ln.s2, .ck .ln.s3 { stroke-dasharray: 5 4; }
:root[data-palette="monokrom"] .ck .ar, :root[data-palette="lime"] .ck .ar { fill: var(--tint) !important; opacity: 1; }
.ck-lg { margin-top: 12px; }
.ck-lg .sw { width: 7px !important; height: 7px !important; border-radius: 50% !important; }
.ck-tip { border-radius: 12px; box-shadow: var(--sh-pop); transition: left 100ms var(--ease), top 100ms var(--ease), opacity 150ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .toast, .toast.in, .toast.out { transition: opacity 150ms linear !important; transform: none !important; }
  a.u-card:hover, a.kc:hover, button.kc:hover, .u-kpi:hover, .fx-lift:hover, a.card:hover { transform: none; }
}

/* ---------- red is reserved for overspend (spending faster than progressing) ----------
   late, overdue, stuck, "bad" deltas and alert badges are warnings: orange dot, peach ground, no red text */
.late, .late b, .bad, .bad em, .ckdl-t b.bad, .sl-na-in.late b, .fig b.late,
.kpi[data-tone="stuck"] > b, .page.mx .kpi[data-tone="err"] > b { color: var(--ink) !important; }
.due.late, .sl-na.late, .sl-fuw .late { background: var(--warn-soft) !important; color: var(--warn) !important; }
.late .i, .sl-na.late .i { color: var(--warn-fill) !important; }
.kpi[data-tone="stuck"], .page.mx .kpi[data-tone="err"] { --tone: var(--warn-fill); }
/* a falling number is information, not an alarm: muted ink with its arrow */
.u-delta.bad { color: var(--ink-2) !important; }
.u-delta.good { color: var(--ok) !important; }
.nav-b.warn { background: var(--warn-fill) !important; color: #111111 !important; }
/* the one red: overspend */
.overspend, [data-tone="over"] > b, .u-delta.over { color: var(--err-fill) !important; }

/* ---------- ambient drift is a 26 s loop: off ---------- */
.u-amb, .u-head .u-amb, .dk-head .u-amb, :root:not([data-motion="low"]) .u-amb { animation: none !important; }

/* ---------- type scale: micro 11, body 14, numbers 30 (+ the page H1) ---------- */
small, .small, kbd, .nav-gh > span, .chip > em, .u-delta, .u-delta small, .sl-sum, .sl-int > em, .kc-s, .ck-lg > span, .fig > span,
.pill, .sd-next-t > small, .sd-brand > small, .km > span.av, .sd-me > span.av, .dr-t small, .pl-h em, .due, .dn2-m span, .mk-sec-h > span, .bw > em, .kcol-h > em, .nav-b, .pip { font-size: var(--fs-micro) !important; }
.nav-gh > span { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.u-seg > button, .km > span.sub, .crumbs > span, .crumbs > i, .chipl > span, a.u-more, .nav-s, .pt > small, .dk-ins > span, .chip, .btn, .btn > span, .lgd > span,
.sd-next-t > p, .bad, .km > b.mny, .card > h4, .sd-brand > b, .pl-h > h4, .dr-t > b, .ttl-sub { font-size: var(--fs-body) !important; }
.km > b.mny, .card > h4, .sd-brand > b, .pl-h > h4, .dr-t > b { font-weight: 700 !important; letter-spacing: -.01em; }
.ttl > h3, header.top .ttl h3 { font-size: var(--fs-body) !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.mxk > span.wv, .dn2-m > b { font-size: var(--fs-num) !important; font-weight: 700 !important; letter-spacing: -.03em !important; }
svg text, .ck text { font-size: var(--fs-micro); }
/* second pass from the probe: stragglers at 10, 12, 13, 15 and 18 px */
svg text, .ck text { font-size: var(--fs-micro) !important; }
.kpi > span.sub, .mk-count, .tk3-fs > span, .tk3-st, .av, .cl-ax > span, .mlgd > span, .ch-h > em, .cklb-r, .cl-top { font-size: var(--fs-micro) !important; }
.sl-na, .sl-na > span, .ckdl-t > span, .crumbs > b, .sd-next-t > b, .sd-me-t > b, .fx-hl > span, .fx-hl > b, .fx-hl > em, .kpi > span.lb { font-size: var(--fs-body) !important; }
.mk-next > span { font-size: var(--fs-micro) !important; }
.mxk > span.wl, .mk-emp > b, .mk-emp > span, .mk-card-t, .rg2-i > span, .ckdl-t > b, .ch-h > span, .cklb-n, .sl-fuw > span, .sl-fuw > b, .pr > span.mny, .dk-now-all { font-size: var(--fs-body) !important; }
.mlgd b, .card em { font-size: var(--fs-micro) !important; }
.wsh-t span, .lgd b, .cklb b, .mk-hint { font-size: var(--fs-body) !important; }
.mband b { font-size: var(--fs-body) !important; font-weight: 700 !important; }

/* avatars: a per-name hue (teal, indigo, blue) breaks "no blue, no purple" — calm palettes use warm greys */
:root[data-palette="monokrom"] .av, :root[data-palette="lime"] .av { --c: #3A3835 !important; background-color: #3A3835 !important; color: #FFFFFF !important; }
/* the dashed top grid line of the column chart was a gradient: a plain faint line instead */
.cl-plot { background: none !important; }
.cl-plot::after { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line); pointer-events: none; }
/* 15 px leftovers (phone body, card heads, chart values) -> body 14 */
@media (max-width: 720px) { body { font-size: var(--fs-body) !important; } }
.card > h4, .gh, .chc .ch-h, .dept-h h4, .lead .ag-txt, .aip-h b, .ul2-d b, .mk-fs b, .page.mx .sec, .dcard .mny, .tk3-pc-h, .acc-top h4, .mk-cal-nav b, .fin-nav, .gbar .brand, .wel-say, .bf-sub, .fp-cover p { font-size: var(--fs-body) !important; }
.ck-funnel .fv, .rg2 .rg-v { font-size: var(--fs-body) !important; }
.dk-fold em { font-size: var(--fs-micro) !important; }
.dk-scope > span, .ul2-t > b, .dk-fold span, .vtabs > button { font-size: var(--fs-body) !important; }

/* counts on icons and nav are information, not alarms: an ink pill (lime theme: lime) */
.pip, .nav-b:not(.warn) { background: var(--ink) !important; color: var(--panel) !important; box-shadow: none !important; }
:root[data-palette="lime"] .pip { background: #D9FF3F !important; color: #111111 !important; }
/* one grotesque sans: numbers that used the mono face keep their tabular figures */
:root { --mono: var(--font); }
kbd, code, .mono, [class*="mono"] { font-family: var(--font) !important; font-variant-numeric: tabular-nums; }
/* links read as ink, underlined on hover, never blue */
:where(:root[data-palette="monokrom"], :root[data-palette="lime"]) a { color: var(--ink); }  /* same weight as the base "a" rule, so classed links keep their own colour */

/* ---------- sales funnel (owner reference 2026-11-21): flowing layered bands, columns with hairline dividers ----------
   greys are mixed from the theme ink and panel, so the light theme reads bone-to-black and the dark theme grey-to-white */
.fnl-w { --fnl-b1: color-mix(in oklab, var(--ink) 9%, var(--panel)); --fnl-b2: color-mix(in oklab, var(--ink) 20%, var(--panel));
  --fnl-b3: color-mix(in oklab, var(--ink) 38%, var(--panel)); --fnl-hl: var(--ink); margin: 4px -20px -20px; }
.fnl-x { overflow-x: auto; scrollbar-width: none; }
:root[data-palette="lime"] .fnl-w { --fnl-hl: #D9FF3F; }
.fnl-x::-webkit-scrollbar { display: none; }
.fnl { position: relative; height: 280px; min-width: calc(var(--n) * 92px); border-top: 1px solid var(--line); }
.fnl-s { position: absolute; left: 0; right: 0; top: 52px; bottom: 44px; width: 100%; height: calc(100% - 96px); overflow: visible;
  clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease); }
.fnl.fnl-in .fnl-s { clip-path: inset(0 0 0 0); }
.fnl-b1 { fill: var(--fnl-b1); } .fnl-b2 { fill: var(--fnl-b2); } .fnl-b3 { fill: var(--fnl-b3); }
.fnl-h { fill: var(--fnl-hl); opacity: 0; transition: opacity 150ms var(--ease); }
.fnl-h.on { opacity: 1; }
.fnl-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.fnl-c { position: relative; display: grid; grid-template-rows: 52px 1fr 44px; justify-items: center; align-items: center; min-width: 0; padding: 0 6px;
  border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer;
  transition: background-color 150ms var(--ease); -webkit-tap-highlight-color: transparent; }
.fnl-c:first-child { border-left: 0; }
.fnl-c:hover, .fnl-c.on { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.fnl-c:active { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.fnl-c:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 12px; }
.fnl-c > b { font-size: var(--fs-body) !important; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fnl-c > em { font-style: normal; font-size: var(--fs-micro); font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px;
  background: #FFFFFF; color: #111111; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; transform: translateY(6px); transition: opacity 250ms var(--ease), transform 250ms var(--ease), box-shadow 150ms var(--ease); transition-delay: calc(350ms + var(--k) * 30ms); }
.fnl.fnl-in .fnl-c > em { opacity: 1; transform: none; }
.fnl-c.on > em { box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.fnl-c > small { max-width: 100%; font-size: var(--fs-micro); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 150ms var(--ease); }
.fnl-c.on > small, .fnl-c:hover > small { color: var(--ink); }
.fnl-d { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px; border-top: 1px solid var(--line); font-size: var(--fs-body); color: var(--ink-2); }
.fnl-dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fnl-go { flex: none; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.fnl-go:hover { border-color: var(--ink); }
.fnl-go:active { transform: translateY(1px); }
@media (max-width: 720px) { .fnl { height: 240px; } .fnl-d { padding: 10px 16px; align-items: flex-start; flex-direction: column; gap: 8px; } .fnl-dt { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .fnl-s, .fnl-c > em { transition: none !important; } }
:root[data-motion="low"] .fnl-s, :root[data-motion="low"] .fnl-c > em { transition: none !important; }
.wsh-c:has(.fnl-w) { padding: 20px 20px 0 !important; overflow: hidden; }
.wsh-c .fnl-w { margin: 4px -20px 0 !important; min-width: 0; }
/* dark: the peach warning ground becomes a dim orange tint */
:root[data-theme="dark"] :is(.due.late, .sl-na.late, .sl-fuw .late, .pill.warn, .pill.yellow) { background: color-mix(in oklab, var(--warn-fill) 16%, var(--panel)) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.due.late, .sl-na.late, .sl-fuw .late, .pill.warn, .pill.yellow) { background: color-mix(in oklab, var(--warn-fill) 16%, var(--panel)) !important; } }
/* tasks: late counts, late dots and urgent calendar events are warnings (orange), not red */
.tk3-pc-n .late { color: var(--ink) !important; }
.tk-ev.critical, .tk-ev.high, mark.qh-pri { background: var(--warn-soft) !important; color: var(--warn) !important; --qh-bg: var(--warn-soft); }
.tl-head i.td { color: var(--ink) !important; }
.tk-dot.high, .u-card[data-tone="err"]::before, .pill.err::before { background: var(--warn-fill) !important; }
.pill.err { color: var(--warn) !important; }

/* ---------- no see-through layers (owner 2026-11-22: "the transparency is not okay for some") ----------
   Blur is off everywhere above, so a translucent surface just shows the page behind it. Floating layers paint solid;
   "Kaca" cards keep a softer, frosted tone but stay opaque by mixing with the ground instead of with transparent. */
/* owner 2026-11-22 (2nd): nothing that opens may be see-through: every glass token is solid, and every layer that opens paints solid */
:root, :root[data-theme] { --glass: var(--panel-solid) !important; --glass-side: var(--panel-solid) !important; --chrome: var(--panel-solid) !important; --liquid: var(--panel-solid) !important; }
.sheet, .sheet.wide, .form-foot, .menu, #menu, .drawer, .calc-pane, .picker, .quick, .ai-res, .kcard, .fsel, .ch-tip, .ck-tip, .pop, .popover, .modal, dialog, [role="dialog"], [role="menu"], [role="listbox"], .login-card { background: var(--panel-solid) !important; }
@media (max-width: 720px) { .tabs { background: var(--panel-solid) !important; } }
:root[data-cards="kaca"] :is(.u-card, .u-stat, .card, .kpi, .tbl, .plates, .md, .sd-next-c) { background: color-mix(in oklab, var(--panel-solid) 78%, var(--bg)) !important; }
:root[data-cards="kaca"] .side { background: color-mix(in oklab, var(--panel-solid) 60%, var(--bg)) !important; }

/* card header tools (count chips, buttons) wrap under the title on a narrow card instead of running into it (ui-check 11-22, Marketing > Leads at 390) */
.u-card-h { flex-wrap: wrap; row-gap: 8px; }
.u-card-t { min-width: 0; flex: 1 1 160px; }
.u-card-x { flex-wrap: wrap; margin-left: auto; justify-content: flex-end; max-width: 100%; }
@media (max-width: 600px) { .u-card-x { margin-left: 0; justify-content: flex-start; } }
