/* JAX Dashboard — visual layer "SIGNAL · NIGHT SKY" (2026-11-14). Loads after app.css and re-skins every screen.
   The app lives inside an illustrated sky (js/sky.js): deep indigo night with stars, a moon, an aurora band and lit
   clouds at three depths; Day is a bright blue sky with white clouds and a sun. The sky follows the rep's day
   (--p 0..1 = today's calls against the usual day): it warms toward dawn and the near clouds sink as the goal fills;
   a streak brings the aurora and extra stars; Booked / Sold sends one light burst across the clouds.
   Components float over the sky as glass sheets: translucent gradient fill, a lit top rim, deep soft shadow.
   Colours: blues, indigos and violets (plus rose for Sold/streak). No green or gold UI; the logo mark keeps its colours.
   Raw colours live only in the token blocks at the top (static check); everything below uses tokens.
   Contrast is measured against each glass fill composited over the brightest sky behind it (NOTES.md). */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* Night sky (default) */
:root {
  color-scheme: dark;
  --bg: #0A0E2C; --bg-2: rgba(26, 30, 82, .74); --bg-3: rgba(34, 38, 98, .82); --bg-4: rgba(50, 52, 120, .92);
  --line: rgb(255 255 255 / .12); --ctrl: #6F75B8;
  --ink: #F4F6FF; --ink-2: #CFD4F6; --ink-3: #ADB4E0;
  --volt: #7357FF; --volt-ledge: #4630C2; --volt-ink: #B9AAFF; --on-volt: #FFFFFF;
  --signal: #79B6FF; --ice: #72E3FF; --flare: #FF80CB; --on-flare: #1A0B2E; --on-ice: #06142E;
  --warn: #FFB27A; --bad: #FF84A0; --focus: #B9AAFF;
  --volt-soft: rgba(115, 87, 255, .24); --signal-soft: rgba(121, 182, 255, .16); --ice-soft: rgba(114, 227, 255, .14); --flare-soft: rgba(255, 128, 203, .16); --warn-soft: rgba(255, 178, 122, .15); --bad-soft: rgba(255, 132, 160, .15);
  --island: rgba(22, 26, 74, .985); --veil: rgba(255, 255, 255, .14); --hdr: rgba(8, 11, 38, .9); --edge-hi: inset 0 1px 0 rgba(255, 255, 255, .1);
  --sh-float: 0 14px 30px -18px rgba(2, 3, 20, .55); --sh-menu: 0 12px 26px -16px rgba(2, 3, 20, .5);
  --scrim: rgba(4, 6, 24, .7);
  --page: #0B1034; --page-0: rgba(11, 16, 52, 0); --page-8: rgba(8, 12, 44, .82);
  /* sky */
  --on-sky: #F4F6FF; --on-sky-2: #C3C9EE; --sky-0: #03051A; --sky-1: #0B1442; --sky-2: #1A256C; --sky-3: #373693; --sky-4: #5C46B8;
  --dawn-0: #1E2C80; --dawn-1: #3B4DBB; --dawn-2: #786DE2; --dawn-3: #C58DEE; --dawn-4: #FFBCDD;
  --star: #E9ECFF; --spark: #E4DAFF; --orb-1: #FFFFFF; --orb-2: #F1EEFF; --orb-3: #C9C0FF; --orb-halo: rgba(185, 170, 255, .34); --orb-halo-2: rgba(120, 140, 255, .12);
  --aur-1: rgba(128, 96, 255, .55); --aur-2: rgba(90, 170, 255, .42); --aur-3: rgba(255, 128, 203, .22);
  --glow-1: rgba(150, 110, 255, .62); --glow-2: rgba(95, 140, 255, .28); --glow-dawn: rgba(243, 169, 214, .5);
  --veil-top: rgba(3, 5, 26, .62); --veil-none: rgba(3, 5, 26, 0);
  --burst-1: rgba(255, 255, 255, .95); --burst-2: rgba(210, 196, 255, .55); --burst-3: rgba(124, 92, 255, .2); --burst-ray: rgba(255, 255, 255, .16); --dawn-tint: rgba(255, 160, 215, .34); --burst-sold: rgba(255, 150, 214, .45);
  /* POLISH 2026-11-15: cloud bodies a step lighter than the sky so each reads as a whole moonlit cloud */
  --far-top: #3A4194; --far-mid: #272C72; --far-low: #1B1F5A; --far-rim: #8C8FE6; --far-hi: #6A70D0; --far-shade: #121540; --wisp: rgba(150, 140, 255, .22);
  --mid-top: #5A57BA; --mid-mid: #36378E; --mid-low: #212462; --mid-rim: #B8ACFF; --mid-hi: #948CF0; --mid-shade: #14163F;
  --near-top: #7166D4; --near-mid: #423C9A; --near-low: #26226C; --near-rim: #D2C6FF; --near-hi: #B2A6FF; --near-shade: #17154A;
  --dawn-rim: #FFC6E6; --dawn-top: #8E74D8;
  /* glass */
  --glass-c: rgba(24, 28, 78, .76); --glass-c2: rgba(32, 36, 96, .84); --sheet: rgba(20, 24, 70, .96); --sheet-hi: rgba(70, 76, 170, .35); --frost: rgba(16, 20, 64, .78); --dock: rgba(16, 20, 64, .985); --frost-hi: rgba(120, 128, 230, .2); --frost-lo: rgba(10, 12, 44, .2);
  --glass-hi: rgba(78, 86, 190, .5); --glass-lo: rgba(18, 21, 62, .7);
  --glass-edge: rgb(255 255 255 / .12); --glass-rim: rgba(255, 255, 255, .14); --glass-sh: rgba(2, 3, 22, .55);
  --key-c: rgba(30, 34, 92, .8); --key-hi: rgba(70, 76, 170, .55); --key-lo: rgba(20, 23, 66, .82); --key-ledge: rgba(8, 10, 40, .9);
  /* outcome identities */
  --o-none: #A6AED8; --o-vm: #79B6FF; --o-cb: #A79BFF; --o-int: #72E3FF; --o-book: #6E4FF5; --o-book-2: #4B5FE6; --o-sold: #FF80CB; --o-sold-2: #C77DFF; --o-ni: #8E96C4; --o-wn: #FF84A0;
  --call-1: #7457FF; --call-2: #5B5FF2; --call-3: #3A7BE6; --call-glow: rgba(120, 100, 255, .55); --call-ring: rgba(140, 120, 255, .22); --call-ledge: #3B2AA8;
  /* CRAFT 2026-11-15: alpha hairlines (white over any sky), elevation = lighter surface + brighter top rim, soft shadow */
  --hair: rgb(255 255 255 / .1); --hair-2: rgb(255 255 255 / .16); --rim-2: rgb(255 255 255 / .16); --rim-3: rgb(255 255 255 / .22);
  --elev-2: rgba(30, 35, 92, .97); --elev-3: rgba(33, 38, 98, .97); --elev-sh: rgba(2, 3, 22, .42);
}
/* Day sky: chosen in Settings (data-theme="light"), or Device on a phone set to light. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EAF3FF; --bg-2: rgba(255, 255, 255, .8); --bg-3: rgba(255, 255, 255, .9); --bg-4: rgba(220, 232, 252, .95);
  --line: rgb(10 22 56 / .13); --ctrl: #7C8DB8;
  --ink: #0A1638; --ink-2: #273760; --ink-3: #4C5B84;
  --volt: #5B3FF0; --volt-ledge: #3F27BE; --volt-ink: #4E33D6; --on-volt: #FFFFFF;
  --signal: #1659C7; --ice: #05677F; --flare: #B0186E; --on-flare: #FFFFFF; --on-ice: #FFFFFF;
  --warn: #9A4507; --bad: #BE1E44; --focus: #4E33D6;
  --volt-soft: rgba(91, 63, 240, .12); --signal-soft: rgba(22, 89, 199, .1); --ice-soft: rgba(5, 103, 127, .1); --flare-soft: rgba(176, 24, 110, .09); --warn-soft: rgba(154, 69, 7, .1); --bad-soft: rgba(190, 30, 68, .09);
  --island: rgba(255, 255, 255, .985); --veil: rgba(255, 255, 255, .2); --hdr: rgba(255, 255, 255, .92); --edge-hi: inset 0 1px 0 rgba(255, 255, 255, .9);
  --sh-float: 0 16px 32px -16px rgba(20, 50, 120, .45); --sh-menu: 0 16px 32px -16px rgba(20, 50, 120, .45);
  --scrim: rgba(10, 30, 80, .36);
  --page: #CFE6FF; --page-0: rgba(207, 230, 255, 0); --page-8: rgba(225, 238, 255, .85);
  --sky-0: #5DA6F4; --sky-1: #7DBBFB; --sky-2: #A4CFFB; --sky-3: #CAE3FC; --sky-4: #EEF6FF; --on-sky: #0A1638; --on-sky-2: #0F2350;
  --dawn-0: #6FB3F7; --dawn-1: #94C9FA; --dawn-2: #BCDDFC; --dawn-3: #E2F0FF; --dawn-4: #FFFFFF;
  --star: rgba(255, 255, 255, 0); --spark: rgba(255, 255, 255, .9); --orb-1: #FFFFFF; --orb-2: #FFFDF6; --orb-3: #E9F4FF; --orb-halo: rgba(255, 255, 255, .62); --orb-halo-2: rgba(255, 255, 255, .22);
  --aur-1: rgba(255, 255, 255, .34); --aur-2: rgba(160, 210, 255, .3); --aur-3: rgba(200, 190, 255, .2);
  --glow-1: rgba(255, 255, 255, .7); --glow-2: rgba(200, 230, 255, .4); --glow-dawn: rgba(255, 255, 255, .6);
  --veil-top: rgba(20, 70, 170, .18); --veil-none: rgba(20, 70, 170, 0);
  --burst-1: rgba(255, 255, 255, .9); --burst-2: rgba(210, 225, 255, .5); --burst-3: rgba(140, 120, 255, .14); --burst-ray: rgba(255, 255, 255, .3); --dawn-tint: rgba(255, 255, 255, .5); --burst-sold: rgba(255, 170, 220, .4);
  --far-top: #FFFFFF; --far-mid: #EEF5FF; --far-low: #D3E3F8; --far-rim: #FFFFFF; --far-hi: #FFFFFF; --far-shade: #BCD2EF; --wisp: rgba(255, 255, 255, .55);
  --mid-top: #FFFFFF; --mid-mid: #F1F7FF; --mid-low: #CCDDF4; --mid-rim: #FFFFFF; --mid-hi: #FFFFFF; --mid-shade: #AFC6E8;
  --near-top: #FFFFFF; --near-mid: #F4F8FF; --near-low: #C6D8F2; --near-rim: #FFFFFF; --near-hi: #FFFFFF; --near-shade: #A6BEE4;
  --dawn-rim: #FFFFFF; --dawn-top: #FFFFFF;
  --glass-c: rgba(255, 255, 255, .8); --glass-c2: rgba(255, 255, 255, .9); --sheet: rgba(255, 255, 255, .97); --sheet-hi: rgba(255, 255, 255, .6); --frost: rgba(255, 255, 255, .82); --dock: rgba(255, 255, 255, .985); --frost-hi: rgba(255, 255, 255, .5); --frost-lo: rgba(240, 247, 255, .2);
  --glass-hi: rgba(255, 255, 255, .7); --glass-lo: rgba(236, 244, 255, .6);
  --glass-edge: rgba(255, 255, 255, .9); --glass-rim: rgba(255, 255, 255, 1); --glass-sh: rgba(30, 70, 150, .28);
  --key-c: rgba(255, 255, 255, .86); --key-hi: rgba(255, 255, 255, .9); --key-lo: rgba(232, 241, 255, .86); --key-ledge: rgba(150, 178, 225, .9);
  --o-none: #4C5B84; --o-vm: #1659C7; --o-cb: #4E33D6; --o-int: #05677F; --o-book: #6A4BFF; --o-book-2: #3F6BF0; --o-sold: #C92A85; --o-sold-2: #9B3FE0; --o-ni: #5D6A90; --o-wn: #BE1E44;
  --call-1: #6E4DFF; --call-2: #4F5BF5; --call-3: #2A6FD8; --call-glow: rgba(80, 90, 240, .4); --call-ring: rgba(90, 100, 255, .18); --call-ledge: #3524A6;
  /* CRAFT 2026-11-15: alpha hairlines (ink over any sky), elevation tokens (Day keeps soft blue shadows) */
  --hair: rgb(10 22 56 / .1); --hair-2: rgb(10 22 56 / .16); --rim-2: rgb(255 255 255 / 1); --rim-3: rgb(255 255 255 / 1);
  --elev-2: rgba(255, 255, 255, .97); --elev-3: rgba(255, 255, 255, .985); --elev-sh: rgba(30, 70, 150, .26);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="device"] {
    color-scheme: light;
    --bg: #EAF3FF; --bg-2: rgba(255, 255, 255, .8); --bg-3: rgba(255, 255, 255, .9); --bg-4: rgba(220, 232, 252, .95);
    --line: rgb(10 22 56 / .13); --ctrl: #7C8DB8;
    --ink: #0A1638; --ink-2: #273760; --ink-3: #4C5B84;
    --volt: #5B3FF0; --volt-ledge: #3F27BE; --volt-ink: #4E33D6; --on-volt: #FFFFFF;
    --signal: #1659C7; --ice: #05677F; --flare: #B0186E; --on-flare: #FFFFFF; --on-ice: #FFFFFF;
    --warn: #9A4507; --bad: #BE1E44; --focus: #4E33D6;
    --volt-soft: rgba(91, 63, 240, .12); --signal-soft: rgba(22, 89, 199, .1); --ice-soft: rgba(5, 103, 127, .1); --flare-soft: rgba(176, 24, 110, .09); --warn-soft: rgba(154, 69, 7, .1); --bad-soft: rgba(190, 30, 68, .09);
    --island: rgba(255, 255, 255, .985); --veil: rgba(255, 255, 255, .2); --hdr: rgba(255, 255, 255, .92); --edge-hi: inset 0 1px 0 rgba(255, 255, 255, .9);
    --sh-float: 0 16px 32px -16px rgba(20, 50, 120, .45); --sh-menu: 0 16px 32px -16px rgba(20, 50, 120, .45);
    --scrim: rgba(10, 30, 80, .36);
    --page: #CFE6FF; --page-0: rgba(207, 230, 255, 0); --page-8: rgba(225, 238, 255, .85);
    --sky-0: #5DA6F4; --sky-1: #7DBBFB; --sky-2: #A4CFFB; --sky-3: #CAE3FC; --sky-4: #EEF6FF; --on-sky: #0A1638; --on-sky-2: #0F2350;
    --dawn-0: #6FB3F7; --dawn-1: #94C9FA; --dawn-2: #BCDDFC; --dawn-3: #E2F0FF; --dawn-4: #FFFFFF;
    --star: rgba(255, 255, 255, 0); --spark: rgba(255, 255, 255, .9); --orb-1: #FFFFFF; --orb-2: #FFFDF6; --orb-3: #E9F4FF; --orb-halo: rgba(255, 255, 255, .62); --orb-halo-2: rgba(255, 255, 255, .22);
    --aur-1: rgba(255, 255, 255, .34); --aur-2: rgba(160, 210, 255, .3); --aur-3: rgba(200, 190, 255, .2);
    --glow-1: rgba(255, 255, 255, .7); --glow-2: rgba(200, 230, 255, .4); --glow-dawn: rgba(255, 255, 255, .6);
    --veil-top: rgba(20, 70, 170, .18); --veil-none: rgba(20, 70, 170, 0);
    --burst-1: rgba(255, 255, 255, .9); --burst-2: rgba(210, 225, 255, .5); --burst-3: rgba(140, 120, 255, .14); --burst-ray: rgba(255, 255, 255, .3); --dawn-tint: rgba(255, 255, 255, .5); --burst-sold: rgba(255, 170, 220, .4);
    --far-top: #FFFFFF; --far-mid: #EEF5FF; --far-low: #D3E3F8; --far-rim: #FFFFFF; --far-hi: #FFFFFF; --far-shade: #BCD2EF; --wisp: rgba(255, 255, 255, .55);
    --mid-top: #FFFFFF; --mid-mid: #F1F7FF; --mid-low: #CCDDF4; --mid-rim: #FFFFFF; --mid-hi: #FFFFFF; --mid-shade: #AFC6E8;
    --near-top: #FFFFFF; --near-mid: #F4F8FF; --near-low: #C6D8F2; --near-rim: #FFFFFF; --near-hi: #FFFFFF; --near-shade: #A6BEE4;
    --dawn-rim: #FFFFFF; --dawn-top: #FFFFFF;
    --glass-c: rgba(255, 255, 255, .8); --glass-c2: rgba(255, 255, 255, .9); --sheet: rgba(255, 255, 255, .97); --sheet-hi: rgba(255, 255, 255, .6); --frost: rgba(255, 255, 255, .82); --dock: rgba(255, 255, 255, .985); --frost-hi: rgba(255, 255, 255, .5); --frost-lo: rgba(240, 247, 255, .2);
    --glass-hi: rgba(255, 255, 255, .7); --glass-lo: rgba(236, 244, 255, .6);
    --glass-edge: rgba(255, 255, 255, .9); --glass-rim: rgba(255, 255, 255, 1); --glass-sh: rgba(30, 70, 150, .28);
    --key-c: rgba(255, 255, 255, .86); --key-hi: rgba(255, 255, 255, .9); --key-lo: rgba(232, 241, 255, .86); --key-ledge: rgba(150, 178, 225, .9);
    --o-none: #4C5B84; --o-vm: #1659C7; --o-cb: #4E33D6; --o-int: #05677F; --o-book: #6A4BFF; --o-book-2: #3F6BF0; --o-sold: #C92A85; --o-sold-2: #9B3FE0; --o-ni: #5D6A90; --o-wn: #BE1E44;
    --call-1: #6E4DFF; --call-2: #4F5BF5; --call-3: #2A6FD8; --call-glow: rgba(80, 90, 240, .4); --call-ring: rgba(90, 100, 255, .18); --call-ledge: #3524A6;
    /* CRAFT 2026-11-15: alpha hairlines (ink over any sky), elevation tokens (Day keeps soft blue shadows) */
    --hair: rgb(10 22 56 / .1); --hair-2: rgb(10 22 56 / .16); --rim-2: rgb(255 255 255 / 1); --rim-3: rgb(255 255 255 / 1);
    --elev-2: rgba(255, 255, 255, .97); --elev-3: rgba(255, 255, 255, .985); --elev-sh: rgba(30, 70, 150, .26);
  }
}
/* CRAFT 2026-11-15 · OKLCH palette. The hex values above are the sRGB fallback for browsers without oklch(); where oklch()
   works the same tokens come from these blocks (same selectors and order, so Night/Day/Device cascade exactly as before).
   Ramps (sky, dawn, ink) step lightness evenly in OKLCH; the hex fallbacks above were re-derived from the same values. */
@supports (color: oklch(0% 0 0)) {
  :root {
    --bg: oklch(18.16% 0.0603 273.13); --ctrl: oklch(58.60% 0.1025 278.83); --ink: oklch(97.42% 0.0122 276.10); --ink-2: oklch(87.68% 0.0473 278.75);
    --ink-3: oklch(77.95% 0.0632 277.76); --volt: oklch(58.44% 0.2366 283.94); --volt-ledge: oklch(44.04% 0.2123 279.99);
    --volt-ink: oklch(78.26% 0.1200 291.47); --on-volt: oklch(100.00% 0 0); --signal: oklch(76.43% 0.1231 253.67); --ice: oklch(85.98% 0.1097 216.21);
    --flare: oklch(76.58% 0.1752 345.59); --on-flare: oklch(19.47% 0.0674 299.87); --on-ice: oklch(19.62% 0.0560 260.93);
    --warn: oklch(82.51% 0.1153 56.38); --bad: oklch(75.79% 0.1512 6.92); --focus: oklch(78.26% 0.1200 291.47); --page: oklch(19.51% 0.0706 272.12);
    --on-sky: oklch(97.42% 0.0122 276.10); --on-sky-2: oklch(84.33% 0.0520 277.97); --sky-0: oklch(12.97% 0.0479 271.29);
    --sky-1: oklch(21.79% 0.0879 268.98); --sky-2: oklch(30.60% 0.1237 270.53); --sky-3: oklch(39.41% 0.1482 277.59);
    --sky-4: oklch(48.23% 0.1719 286.95); --dawn-0: oklch(34.14% 0.1416 269.73); --dawn-1: oklch(47.26% 0.1739 271.23);
    --dawn-2: oklch(60.37% 0.1718 284.17); --dawn-3: oklch(73.48% 0.1470 309.94); --dawn-4: oklch(86.60% 0.0873 348.03);
    --star: oklch(94.64% 0.0258 278.74); --spark: oklch(90.78% 0.0511 297.74); --orb-1: oklch(100.00% 0 0); --orb-2: oklch(95.64% 0.0229 294.07);
    --orb-3: oklch(83.68% 0.0877 290.92); --far-top: oklch(41.77% 0.1347 275.30); --far-mid: oklch(33.41% 0.1188 274.85);
    --far-low: oklch(27.71% 0.1043 274.37); --far-rim: oklch(68.39% 0.1272 280.97); --far-hi: oklch(58.61% 0.1450 278.23);
    --far-shade: oklch(22.38% 0.0806 274.79); --mid-top: oklch(51.19% 0.1516 280.97); --mid-mid: oklch(39.06% 0.1406 277.19);
    --mid-low: oklch(29.92% 0.1077 275.65); --mid-rim: oklch(78.55% 0.1170 290.06); --mid-hi: oklch(68.96% 0.1444 285.60);
    --mid-shade: oklch(22.67% 0.0768 276.28); --near-top: oklch(57.53% 0.1633 284.56); --near-mid: oklch(41.91% 0.1482 280.74);
    --near-low: oklch(30.86% 0.1240 278.67); --near-rim: oklch(85.54% 0.0793 294.31); --near-hi: oklch(76.95% 0.1259 289.27);
    --near-shade: oklch(23.80% 0.0950 278.02); --dawn-rim: oklch(88.63% 0.0764 344.03); --dawn-top: oklch(62.75% 0.1475 293.68);
    --o-none: oklch(75.90% 0.0609 276.42); --o-vm: oklch(76.43% 0.1231 253.67); --o-cb: oklch(74.03% 0.1422 287.91); --o-int: oklch(85.98% 0.1097 216.21);
    --o-book: oklch(56.08% 0.2343 284.48); --o-book-2: oklch(54.99% 0.2040 271.53); --o-sold: oklch(76.58% 0.1752 345.59);
    --o-sold-2: oklch(71.97% 0.1930 308.60); --o-ni: oklch(68.35% 0.0685 276.77); --o-wn: oklch(75.79% 0.1512 6.92);
    --call-1: oklch(58.52% 0.2365 284.27); --call-2: oklch(56.90% 0.2155 275.93); --call-3: oklch(59.73% 0.1756 259.89);
    --call-ledge: oklch(39.77% 0.1892 279.52);
  }
  :root[data-theme="light"] {
    --bg: oklch(96.09% 0.0188 255.53); --ctrl: oklch(64.61% 0.0676 267.76); --ink: oklch(21.31% 0.0684 266.08); --ink-2: oklch(34.47% 0.0748 266.32);
    --ink-3: oklch(47.64% 0.0692 268.33); --volt: oklch(52.01% 0.2475 280.64); --volt-ledge: oklch(42.00% 0.2171 278.73);
    --volt-ink: oklch(47.03% 0.2312 280.28); --on-volt: oklch(100.00% 0 0); --signal: oklch(49.31% 0.1837 260.37); --ice: oklch(47.64% 0.0864 221.54);
    --flare: oklch(50.52% 0.1949 353.08); --on-flare: oklch(100.00% 0 0); --on-ice: oklch(100.00% 0 0); --warn: oklch(49.34% 0.1303 48.28);
    --bad: oklch(52.16% 0.1916 15.09); --focus: oklch(47.03% 0.2312 280.28); --page: oklch(91.58% 0.0421 250.49); --sky-0: oklch(71.15% 0.1363 251.67);
    --sky-1: oklch(77.60% 0.1113 249.84); --sky-2: oklch(84.06% 0.0769 249.35); --sky-3: oklch(90.52% 0.0434 248.30);
    --sky-4: oklch(96.97% 0.0148 251.16); --on-sky: oklch(21.31% 0.0684 266.08); --on-sky-2: oklch(26.97% 0.0868 263.60);
    --dawn-0: oklch(74.92% 0.1207 249.72); --dawn-1: oklch(81.58% 0.0889 247.00); --dawn-2: oklch(88.25% 0.0554 246.80);
    --dawn-3: oklch(94.92% 0.0252 249.95); --dawn-4: oklch(100.00% 0 0); --orb-1: oklch(100.00% 0 0); --orb-2: oklch(99.37% 0.0095 93.57);
    --orb-3: oklch(96.21% 0.0189 248.02); --far-top: oklch(100.00% 0 0); --far-mid: oklch(96.78% 0.0153 257.20); --far-low: oklch(91.03% 0.0335 255.21);
    --far-rim: oklch(100.00% 0 0); --far-hi: oklch(100.00% 0 0); --far-shade: oklch(85.67% 0.0470 255.37); --mid-top: oklch(100.00% 0 0);
    --mid-mid: oklch(97.39% 0.0125 255.50); --mid-low: oklch(89.20% 0.0366 255.96); --mid-rim: oklch(100.00% 0 0); --mid-hi: oklch(100.00% 0 0);
    --mid-shade: oklch(82.06% 0.0542 258.04); --near-top: oklch(100.00% 0 0); --near-mid: oklch(97.81% 0.0103 261.79);
    --near-low: oklch(87.69% 0.0409 257.51); --near-rim: oklch(100.00% 0 0); --near-hi: oklch(100.00% 0 0); --near-shade: oklch(79.64% 0.0603 259.53);
    --dawn-rim: oklch(100.00% 0 0); --dawn-top: oklch(100.00% 0 0); --o-none: oklch(47.64% 0.0692 268.33); --o-vm: oklch(49.31% 0.1837 260.37);
    --o-cb: oklch(47.03% 0.2312 280.28); --o-int: oklch(47.64% 0.0864 221.54); --o-book: oklch(56.08% 0.2506 282.59);
    --o-book-2: oklch(57.43% 0.2060 266.10); --o-sold: oklch(56.79% 0.2081 351.22); --o-sold-2: oklch(57.07% 0.2326 306.36);
    --o-ni: oklch(52.88% 0.0621 269.63); --o-wn: oklch(52.16% 0.1916 15.09); --call-1: oklch(56.66% 0.2480 283.63); --call-2: oklch(55.75% 0.2268 273.05);
    --call-3: oklch(55.72% 0.1755 259.02); --call-ledge: oklch(38.32% 0.1937 277.95);
  }
  @media (prefers-color-scheme: light) {
    :root[data-theme="device"] {
      --bg: oklch(96.09% 0.0188 255.53); --ctrl: oklch(64.61% 0.0676 267.76); --ink: oklch(21.31% 0.0684 266.08); --ink-2: oklch(34.47% 0.0748 266.32);
      --ink-3: oklch(47.64% 0.0692 268.33); --volt: oklch(52.01% 0.2475 280.64); --volt-ledge: oklch(42.00% 0.2171 278.73);
      --volt-ink: oklch(47.03% 0.2312 280.28); --on-volt: oklch(100.00% 0 0); --signal: oklch(49.31% 0.1837 260.37); --ice: oklch(47.64% 0.0864 221.54);
      --flare: oklch(50.52% 0.1949 353.08); --on-flare: oklch(100.00% 0 0); --on-ice: oklch(100.00% 0 0); --warn: oklch(49.34% 0.1303 48.28);
      --bad: oklch(52.16% 0.1916 15.09); --focus: oklch(47.03% 0.2312 280.28); --page: oklch(91.58% 0.0421 250.49); --sky-0: oklch(71.15% 0.1363 251.67);
      --sky-1: oklch(77.60% 0.1113 249.84); --sky-2: oklch(84.06% 0.0769 249.35); --sky-3: oklch(90.52% 0.0434 248.30);
      --sky-4: oklch(96.97% 0.0148 251.16); --on-sky: oklch(21.31% 0.0684 266.08); --on-sky-2: oklch(26.97% 0.0868 263.60);
      --dawn-0: oklch(74.92% 0.1207 249.72); --dawn-1: oklch(81.58% 0.0889 247.00); --dawn-2: oklch(88.25% 0.0554 246.80);
      --dawn-3: oklch(94.92% 0.0252 249.95); --dawn-4: oklch(100.00% 0 0); --orb-1: oklch(100.00% 0 0); --orb-2: oklch(99.37% 0.0095 93.57);
      --orb-3: oklch(96.21% 0.0189 248.02); --far-top: oklch(100.00% 0 0); --far-mid: oklch(96.78% 0.0153 257.20); --far-low: oklch(91.03% 0.0335 255.21);
      --far-rim: oklch(100.00% 0 0); --far-hi: oklch(100.00% 0 0); --far-shade: oklch(85.67% 0.0470 255.37); --mid-top: oklch(100.00% 0 0);
      --mid-mid: oklch(97.39% 0.0125 255.50); --mid-low: oklch(89.20% 0.0366 255.96); --mid-rim: oklch(100.00% 0 0); --mid-hi: oklch(100.00% 0 0);
      --mid-shade: oklch(82.06% 0.0542 258.04); --near-top: oklch(100.00% 0 0); --near-mid: oklch(97.81% 0.0103 261.79);
      --near-low: oklch(87.69% 0.0409 257.51); --near-rim: oklch(100.00% 0 0); --near-hi: oklch(100.00% 0 0); --near-shade: oklch(79.64% 0.0603 259.53);
      --dawn-rim: oklch(100.00% 0 0); --dawn-top: oklch(100.00% 0 0); --o-none: oklch(47.64% 0.0692 268.33); --o-vm: oklch(49.31% 0.1837 260.37);
      --o-cb: oklch(47.03% 0.2312 280.28); --o-int: oklch(47.64% 0.0864 221.54); --o-book: oklch(56.08% 0.2506 282.59);
      --o-book-2: oklch(57.43% 0.2060 266.10); --o-sold: oklch(56.79% 0.2081 351.22); --o-sold-2: oklch(57.07% 0.2326 306.36);
      --o-ni: oklch(52.88% 0.0621 269.63); --o-wn: oklch(52.16% 0.1916 15.09); --call-1: oklch(56.66% 0.2480 283.63); --call-2: oklch(55.75% 0.2268 273.05);
      --call-3: oklch(55.72% 0.1755 259.02); --call-ledge: oklch(38.32% 0.1937 277.95);
    }
  }
}
/* ---------- sky: components ---------- */
:root {
  --glass: linear-gradient(180deg, var(--glass-hi), var(--glass-lo) 60%), var(--glass-c);
  --glass-2: linear-gradient(180deg, var(--glass-hi), var(--glass-lo) 70%), var(--glass-c2);
  --glass-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 6px 14px -8px var(--glass-sh);
  --hdr-h: 56px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* ---------- canvas: the sky sits behind everything ---------- */
html { background-color: var(--page); }
body, .shell, .auth, .term, .boot-shell { background: transparent; }
#app { position: relative; z-index: 1; }
.sky { --p: 0; --aur: 0; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; will-change: transform; } /* own layer: the app repaints without repainting the sky */
.sky > * { position: absolute; }
.sky-base { inset: 0; background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 30%, var(--sky-2) 62%, var(--sky-3) 86%, var(--sky-4) 100%); background: linear-gradient(180deg in oklch, var(--sky-0) 0%, var(--sky-1) 30%, var(--sky-2) 62%, var(--sky-3) 86%, var(--sky-4) 100%); }
.sky-dawn { inset: 0; opacity: var(--p); transition: opacity 1.4s var(--ease); background: linear-gradient(180deg, var(--dawn-0) 0%, var(--dawn-1) 34%, var(--dawn-2) 62%, var(--dawn-3) 84%, var(--dawn-4) 100%); background: linear-gradient(180deg in oklch, var(--dawn-0) 0%, var(--dawn-1) 34%, var(--dawn-2) 62%, var(--dawn-3) 84%, var(--dawn-4) 100%); }
.sky-aurora { left: -30%; right: -30%; top: 2%; height: 52%; opacity: calc(.12 + var(--aur) * .8); transition: opacity 1.4s var(--ease);
  background: radial-gradient(42% 30% at 28% 46%, var(--aur-1), transparent 70%), radial-gradient(36% 26% at 62% 34%, var(--aur-2), transparent 70%), radial-gradient(30% 20% at 80% 56%, var(--aur-3), transparent 70%);
  transform: skewY(-10deg); animation: skyAur 38s ease-in-out infinite alternate; will-change: transform; }
.sky-stars, .sky-sparks { inset: 0; width: 100%; height: 100%; }
.sky-stars { opacity: calc(1 - var(--p) * .6); transition: opacity 1.4s var(--ease); }
.sky-stars .st { fill: var(--star); opacity: .8; }
.sky-stars .tw { animation: skyTw 3.8s ease-in-out infinite alternate; }
.sky-stars .tw:nth-child(3n) { animation-delay: -1.3s; animation-duration: 5.2s; }
.sky-stars .tw:nth-child(3n+1) { animation-delay: -2.6s; animation-duration: 4.4s; }
.sky-sparks .sp { fill: var(--spark); }
.sky-orb { top: max(64px, 9vh); right: 9%; }
@media (max-width: 767px) { .sky-orb { top: 12px; right: 68px; width: 40px; height: 40px; } .sky[data-route="desk"] .sky-orb { top: 16vh; right: 11%; width: 54px; height: 54px; } .sky[data-route="signin"] .sky-orb, .sky[data-route="signup"] .sky-orb, .sky[data-route="reset"] .sky-orb { top: 9vh; right: 14%; width: 64px; height: 64px; } }
.sky-orb { width: 58px; height: 58px; transform: translateY(calc(var(--p) * -14px)); transition: transform 1.4s var(--ease); }
.sky-orb-halo { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, var(--orb-halo) 0, var(--orb-halo-2) 26%, transparent 62%); }
.sky-orb-disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 38% 34%, var(--orb-1) 0, var(--orb-2) 52%, var(--orb-3) 100%); box-shadow: 0 0 0 6px var(--orb-halo-2); }
.clouds { inset: 0; transition: transform 1.6s var(--ease); will-change: transform; }
.clouds.far { transform: translateY(calc(var(--p) * 3vh)); }
.clouds.mid { transform: translateY(calc(var(--p) * 9vh)); }
.clouds.near { transform: translateY(calc(var(--p) * 16vh)); }
.cw { position: absolute; left: var(--x); bottom: var(--y); width: calc(var(--w) * (.5vw + .5vh)); }
.cw .cloud { display: block; width: 100%; height: auto; overflow: visible; animation: skyDrift var(--secs) ease-in-out var(--delay) infinite alternate; will-change: transform; }
.clouds.far .cloud { --c-top: var(--far-top); --c-mid: var(--far-mid); --c-low: var(--far-low); --c-rim: var(--far-rim); --c-hi: var(--far-hi); --c-shade: var(--far-shade); }
.clouds.mid .cloud { --c-top: var(--mid-top); --c-mid: var(--mid-mid); --c-low: var(--mid-low); --c-rim: var(--mid-rim); --c-hi: var(--mid-hi); --c-shade: var(--mid-shade); }
.clouds.near .cloud { --c-top: var(--near-top); --c-mid: var(--near-mid); --c-low: var(--near-low); --c-rim: var(--near-rim); --c-hi: var(--near-hi); --c-shade: var(--near-shade); }
/* toward dawn the rims and tops take the rose-violet light */
.cloud .c-top { stop-color: color-mix(in oklab, var(--c-top), var(--dawn-top) calc(var(--p) * 45%)); }
.cloud .c-mid { stop-color: var(--c-mid); }
.cloud .c-low { stop-color: var(--c-low); }
.cloud .c-rim { fill: color-mix(in oklab, var(--c-rim), var(--dawn-rim) calc(var(--p) * 60%)); }
.cloud .c-hi { fill: var(--c-hi); opacity: .32; }
.cloud .c-shade { fill: var(--c-shade); opacity: .5; }
.sky-horizon { left: -20%; right: -20%; bottom: -26vh; height: 70vh; opacity: calc(.5 + var(--p) * .5); transition: opacity 1.4s var(--ease);
  background: radial-gradient(48% 46% at 50% 64%, var(--glow-1), var(--glow-2) 46%, transparent 72%); }
.sky-horizon::after { content: ""; position: absolute; inset: 0; opacity: var(--p); transition: opacity 1.4s var(--ease); background: radial-gradient(40% 36% at 50% 66%, var(--glow-dawn), transparent 70%); }
.sky-veil { left: 0; right: 0; top: 0; height: 34vh; opacity: calc(1 - var(--p) * .75); transition: opacity 1.4s var(--ease); background: linear-gradient(180deg, var(--veil-top), var(--veil-none)); }
.sky-burst { left: 50%; top: 62%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; border-radius: 50%; opacity: 0; transform: scale(.2);
  background: radial-gradient(circle, var(--burst-1) 0, var(--burst-2) 11%, var(--burst-3) 28%, transparent 46%), repeating-conic-gradient(from 8deg, var(--burst-ray) 0 3deg, transparent 3deg 15deg); }
.sky[data-win="sold"] .sky-burst { background: radial-gradient(circle, var(--burst-1) 0, var(--burst-sold) 8%, var(--burst-3) 22%, transparent 40%), repeating-conic-gradient(from 8deg, var(--burst-ray) 0 3deg, transparent 3deg 15deg); }
.sky-flare { position: fixed; z-index: 45; pointer-events: none; top: 74%; }
.sky-wisps { inset: 0; width: 100%; height: 100%; opacity: calc(.8 - var(--p) * .2); }
.sky-wisps .w-0 { stop-color: var(--wisp); stop-opacity: 0; } .sky-wisps .w-1 { stop-color: var(--wisp); }
.sky-flare.bursting { animation: skyFlare 1.3s var(--ease) both; }
.sky.bursting .clouds.near { animation: skyLift 1.3s var(--ease); }
.sky.bursting .sky-orb-halo { animation: skyLift 1.3s var(--ease) reverse; }
.sky.paused *, .sky.paused *::after { animation-play-state: paused !important; }
/* battery: on the Call Desk (where reps spend hours, the sky mostly behind glass) the drift and twinkle hold still (the
   dawn, the sinking clouds and the win burst still play: they are the feedback) */
.sky[data-route="desk"] .cloud, .sky[data-route="desk"] .sky-aurora, .sky[data-route="desk"] .tw { animation-play-state: paused; }
@keyframes skyDrift { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }
@keyframes skyAur { from { transform: skewY(-10deg) translateX(-3%); } to { transform: skewY(-8deg) translateX(3%); } }
@keyframes skyTw { from { opacity: .25; } to { opacity: 1; } }
@keyframes skyBurst { 0% { opacity: 0; transform: scale(.2) rotate(0); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1) rotate(14deg); } }
@keyframes skyFlare { 0% { opacity: 0; transform: scale(.2) rotate(0); } 22% { opacity: .85; } 100% { opacity: 0; transform: scale(1.1) rotate(14deg); } }
@keyframes skyLift { 0%, 100% { opacity: 1; } 30% { opacity: .82; } }

/* ---------- type: wide, heavy numerals; quiet labels ---------- */
.num, .fig-v, .metric .value { font-variant-numeric: lining-nums; }

/* ---------- glass surfaces (generic) ---------- */
.card, .pane, .panel, .list-group, .kpi, .metric, .acard, .crow, .sreq, .insp, .drawer, .sheet, .palette, .menu, .fu-sheet, .moment, .recap {
  background: var(--glass); box-shadow: var(--glass-shadow); border-color: transparent; }

/* ---------- buttons: primary = luminous violet-to-blue key with a soft ledge ---------- */
.btn.primary, button.primary, .btn-call {
  background: linear-gradient(135deg, var(--call-1) 0%, var(--call-2) 55%, var(--call-3) 100%), var(--volt); background: linear-gradient(135deg in oklch, var(--call-1) 0%, var(--call-2) 55%, var(--call-3) 100%), var(--volt); color: var(--on-volt); border: 0;
  box-shadow: inset 0 1px 0 var(--glass-rim), 0 4px 0 var(--call-ledge), 0 14px 30px -10px var(--call-glow); }
.btn.primary:active, button.primary:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--glass-rim), 0 1px 0 var(--call-ledge), 0 8px 18px -10px var(--call-glow); }
.btn.ghost, .btn:not(.primary):not(.danger):not(.link) { background: var(--glass); box-shadow: var(--glass-shadow); border-color: transparent; }

/* =====================================================================================================================
   CALL DESK (phone): a sky header band, the dial card as a floating glass sheet, the dock on a glowing horizon
   ===================================================================================================================== */
@media (max-width: 767px) {
  .desk-head { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .desk-head .page-t { font-size: 26px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
  .desk-back { background: var(--glass); box-shadow: var(--glass-shadow); width: 44px; height: 44px; margin: 0 4px 0 8px; }
  .desk-back .ico { width: 22px; height: 22px; }
  .mini-goal, .streak-chip.mini { background: var(--glass); box-shadow: var(--glass-shadow); height: 38px; }
  .mini-goal .ring { width: 30px; height: 30px; }
  .streak-chip.mini { color: var(--flare); }
  .dsw { background: var(--glass); box-shadow: var(--glass-shadow); }
  .dsw button[aria-selected="true"] { background: linear-gradient(180deg, var(--key-hi), var(--bg-4)), var(--bg-4); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-rim), 0 6px 14px -8px var(--glass-sh); }
  .dsw button[aria-selected="true"] .dsw-n { background: linear-gradient(135deg, var(--call-1), var(--call-3)), var(--volt); background: linear-gradient(135deg in oklch, var(--call-1), var(--call-3)), var(--volt); }

  /* the dial card: a floating glass sheet with a moonlit top edge */
  .dial-card { background: var(--glass-2); box-shadow: var(--glass-shadow); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
  .dial-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: -1; background: linear-gradient(90deg, transparent, var(--volt-ink) 30%, var(--ice) 70%, transparent); background: linear-gradient(90deg in oklch, transparent, var(--volt-ink) 30%, var(--ice) 70%, transparent); opacity: .7; }
  .dial-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, var(--volt-soft), transparent 70%); }
  .dial-card .name { font-weight: 800; font-stretch: 114%; letter-spacing: -.025em; }
  .dial-card .phone-big { font-size: 30px; line-height: 34px; font-weight: 560; letter-spacing: -.02em; color: var(--ink); }
  .dial-card .brief { border-top-color: var(--line); }
  .dial-card .angle .ico { color: var(--ice); }
  .stage-nav .open-lead { background: var(--glass) !important; box-shadow: var(--glass-shadow) !important; }

  /* the dock: glass deck over the horizon glow */
  .fkeys { background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo) 40%), var(--glass-c); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 -20px 50px -20px var(--glass-sh); border-radius: 28px 28px 0 0; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .fkeys .k-skip, .fkeys .k-undo { background: linear-gradient(180deg, var(--key-hi), var(--key-lo)), var(--key-c); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 3px 0 var(--key-ledge); border-radius: 18px; }
  .fkeys .k-skip:active, .fkeys .k-undo:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge); }

  /* Call: the centre of the app */
  .fkeys .k-call { position: relative; height: 60px; border-radius: 20px; font-size: 20px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; isolation: isolate;
    background: linear-gradient(135deg, var(--call-1) 0%, var(--call-2) 50%, var(--call-3) 100%), var(--volt); background: linear-gradient(135deg in oklch, var(--call-1) 0%, var(--call-2) 50%, var(--call-3) 100%), var(--volt); color: var(--on-volt);
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 -10px 18px -10px var(--call-ledge), 0 5px 0 var(--call-ledge), 0 16px 36px -8px var(--call-glow); transition: transform var(--t-press) var(--ease-press), box-shadow var(--t-press) var(--ease-press); }
  .fkeys .k-call::before { content: ""; position: absolute; inset: -7px; z-index: -1; border-radius: 26px; border: 2px solid var(--call-ring); opacity: 0; }
  .fkeys .k-call::after { content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 40%; border-radius: 16px 16px 40px 40px; background: linear-gradient(180deg, var(--veil), transparent); pointer-events: none; }
  .fkeys .k-call:active { transform: translateY(4px) scale(.985); box-shadow: inset 0 1px 0 var(--glass-rim), 0 1px 0 var(--call-ledge), 0 8px 18px -8px var(--call-glow); }
  .fkeys .k-call .ico { width: 24px; height: 24px; }
  .fkeys .k-call.live { background: linear-gradient(135deg, var(--bg-4), var(--key-c)), var(--bg-4); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 5px 0 var(--key-ledge); }

  /* outcome pad: eight glass keys, each with its own colour identity */
  .fkeys .k-out { --oc: var(--o-none); border-radius: 18px; overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, var(--key-hi), var(--key-lo) 70%), var(--key-c); color: var(--ink);
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-edge), 0 3px 0 var(--key-ledge);
    transition: transform var(--t-press) var(--ease-press), box-shadow var(--t-press) var(--ease-press); }
  .fkeys .k-out::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -55%; height: 100%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--oc), transparent); opacity: .3; }
  .fkeys .k-out::after { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 2px; background: var(--oc); opacity: .9; }
  .fkeys .k-out .fk-i { top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50% !important; background: color-mix(in srgb, var(--oc) 22%, transparent) !important; color: var(--oc); }
  .fkeys .k-out .fk-i .ico { width: 15px; height: 15px; }
  .fkeys .k-out .fk-l { font-weight: 700; font-size: 14px; }
  .fkeys .k-out:active { transform: translateY(3px) scale(.96); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--oc); background: linear-gradient(180deg, var(--key-hi), var(--key-lo) 70%), var(--key-c); }
  .fkeys .k-out.o-no_answer { --oc: var(--o-none); } .fkeys .k-out.o-voicemail { --oc: var(--o-vm); } .fkeys .k-out.o-callback { --oc: var(--o-cb); } .fkeys .k-out.o-interested { --oc: var(--o-int); }
  .fkeys .k-out.o-not_interested { --oc: var(--o-ni); } .fkeys .k-out.o-wrong_number { --oc: var(--o-wn); }
  .fkeys .k-out.o-booked { --oc: var(--on-volt); background: linear-gradient(140deg, var(--o-book) 0%, var(--o-book-2) 100%), var(--volt); background: linear-gradient(140deg in oklch, var(--o-book) 0%, var(--o-book-2) 100%), var(--volt); color: var(--on-volt); box-shadow: inset 0 1px 0 var(--glass-rim), 0 4px 0 var(--volt-ledge), 0 12px 24px -10px var(--call-glow); height: 60px; }
  .fkeys .k-out.o-sold { --oc: var(--on-flare); background: linear-gradient(140deg, var(--o-sold) 0%, var(--o-sold-2) 100%), var(--flare); background: linear-gradient(140deg in oklch, var(--o-sold) 0%, var(--o-sold-2) 100%), var(--flare); color: var(--on-flare); box-shadow: inset 0 1px 0 var(--glass-rim), 0 4px 0 var(--key-ledge), 0 12px 24px -10px var(--flare-soft); height: 60px; }
  .fkeys .k-out.o-booked::before, .fkeys .k-out.o-sold::before { background: radial-gradient(closest-side, var(--veil), transparent); opacity: .7; bottom: auto; top: -60%; }
  .fkeys .k-out.o-booked::after, .fkeys .k-out.o-sold::after { display: none; }
  .fkeys .k-out.o-booked .fk-i, .fkeys .k-out.o-sold .fk-i { background: var(--veil) !important; color: inherit; opacity: 1; }
  .fkeys .k-out.o-booked:active, .fkeys .k-out.o-sold:active { transform: translateY(4px) scale(.97); box-shadow: inset 0 1px 0 var(--glass-rim); }
  .fkeys.precall .k-out:not(.o-booked):not(.o-sold) { color: var(--ink); }
  .fkeys .k-out .kc { color: var(--ink-3); }
  .fkeys .k-out.o-booked .kc, .fkeys .k-out.o-sold .kc { color: inherit; opacity: .8; }
  .fkeys .fk-label { color: var(--ink-2); }
  .fkeys .k-out.logged-pop { animation: keyLand 220ms var(--ease-win); }
}
@keyframes callHalo { 0% { opacity: 0; transform: scale(.96); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes climbPop { 0% { transform: translate(-50%, -50%) scale(.6); } 60% { transform: translate(-50%, -50%) scale(1.25); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes keyLand { 0% { transform: scale(1); } 35% { transform: scale(.94); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* Desk, round 2: the header is a flight deck (one capsule for goal + streak), the dial card is frosted glass that
   lets the moonlit clouds glow through, the number sits in its own inset strip, the angle reads as chips. */
@media (max-width: 767px) {
  .desk-mini { gap: 0; padding: 0 4px 0 3px; height: 40px; border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--glass-shadow); }
  .desk-mini .mini-goal, .desk-mini .streak-chip.mini { background: transparent; box-shadow: none; height: 40px; }
  .desk-mini .streak-chip.mini:not([hidden]) { border-left: 1px solid var(--line); border-radius: 0 var(--r-pill) var(--r-pill) 0; padding: 0 10px 0 10px; }
  .mini-goal .ring-seg.on, .ring .ring-seg.on { stroke: var(--ice); }
  .dial-card { background: linear-gradient(180deg, color-mix(in oklab, var(--frost-hi), var(--dawn-tint) calc(var(--sky-p, 0) * 80%)) 0%, var(--frost-lo) 62%), var(--frost); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .dial-card .dial { margin: 2px -6px 0; padding: 10px 12px 10px 14px; border-radius: 18px; background: linear-gradient(180deg, var(--glass-lo), var(--key-lo)), var(--key-c); box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 2px 8px -2px var(--glass-sh); display: flex; align-items: center; justify-content: space-between; }
  .dial-card .phone-big { padding: 0; font-size: 31px; }
  .dial-card .dial::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 5px var(--ice-soft); }
  .dial-card .brief { border-top: 0; padding-top: 2px; gap: 10px; }
  .dial-card .angle { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .dial-card .angle li { gap: 8px; font-size: 15px; }
  .desk > .p-lead { background: transparent; box-shadow: none; }
  /* moonlight on the glass: a lit rim along the top-right edge and the moon's glow through the frost */
  .dial-card { box-shadow: inset 0 1px 0 var(--glass-rim), inset -1px 0 0 var(--glass-edge), 0 0 0 1px var(--glass-edge), 0 12px 26px -12px var(--glass-sh); }
  .dial-card::after { right: -90px; top: -110px; width: 300px; height: 300px; background: radial-gradient(circle, var(--orb-halo), transparent 68%); opacity: .55; }
  .fkeys::before { content: ""; position: absolute; left: 50%; top: -60px; width: 460px; height: 220px; margin-left: -230px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--glow-1), var(--glow-dawn) calc(var(--sky-p, 0) * 100%)), transparent); opacity: calc(.35 + var(--sky-p, 0) * .65); pointer-events: none; }
  .dial-card::after { opacity: calc(.45 + var(--sky-p, 0) * .4); }
  .fkeys { isolation: isolate; }
  .fkeys .k-out::before { opacity: .42; }
  .fkeys .k-out .fk-i { width: 28px; height: 28px; background: color-mix(in srgb, var(--oc) 26%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oc) 40%, transparent); }
  .fkeys .k-out::after { left: 0; right: 0; top: auto; bottom: 0; height: 3px; border-radius: 0; opacity: .75; }
  .fkeys { background: linear-gradient(180deg, var(--frost-hi), var(--frost-lo) 50%), var(--dock); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
/* The climb (phone desk header): back · climb toward today's goal · streak. The title stays for screen readers. */
.climb { display: none; }
@media (max-width: 767px) {
  .desk-head { gap: 8px; padding: 0 12px 0 0; height: 64px; }
  .desk-head .page-hl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .desk-mini { flex: 1 1 auto; min-width: 0; gap: 10px; padding: 0; height: auto; background: transparent; box-shadow: none; }
  .desk-mini .mini-goal { display: none; }
  .desk-mini .streak-chip.mini:not([hidden]) { flex: none; border-left: 0; border-radius: var(--r-pill); padding: 0 12px 0 10px; height: 38px; background: var(--glass); box-shadow: var(--glass-shadow); }
  .climb { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; padding-top: 2px; }
  .climb-t { display: flex; align-items: baseline; gap: 0; font-size: 14px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
  .climb-t strong { font-size: 20px; font-weight: 800; font-stretch: 112%; color: var(--ink); margin-right: 4px; }
  .climb-r { margin-left: auto; padding-left: 8px; font-size: 13px; font-weight: 650; color: var(--ice); overflow: hidden; text-overflow: ellipsis; }
  .climb.done .climb-r { color: var(--flare); }
  .climb-track { position: relative; height: 18px; }
  .climb-track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .climb-base { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
  .climb-fill { fill: none; stroke: var(--ice); stroke-width: 4; stroke-linecap: round; }
  .climb.done .climb-fill { stroke: var(--flare); }
  .climb-ticks i, .climb-dot { position: absolute; left: var(--cx); top: var(--cy); border-radius: 50%; transform: translate(-50%, -50%); }
  .climb-ticks i { width: 4px; height: 4px; background: var(--ink-3); opacity: .7; }
  .climb-ticks i.on { background: var(--on-ice); opacity: .9; }
  .climb-dot { width: 14px; height: 14px; background: var(--ink); box-shadow: 0 0 0 4px var(--ice-soft), 0 0 14px 2px var(--ice); animation: climbPop 280ms var(--ease-win); }
  .climb.done .climb-dot { box-shadow: 0 0 0 4px var(--flare-soft), 0 0 14px 2px var(--flare); }
  .shell[data-route="desk"] .main.full { padding-top: 0; }
  .dsw { top: 64px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--glass-shadow); }
}
/* =====================================================================================================================
   SHELL (phone): header over the sky, the tab island as a glass capsule with a glowing Desk orb
   ===================================================================================================================== */
@media (max-width: 767px) {
  .topbar { background: transparent; box-shadow: none; border: 0; }
  .shell.scrolled .topbar, .topbar.scrolled { background: var(--hdr); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .tb-title { font-size: 26px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
  .tb-search { background: var(--glass); box-shadow: var(--glass-shadow); border-radius: 50%; }
  .tb-brand .logo-mark { filter: none; }
  .page-s { color: var(--ink-2); }
  .tabbar { background: linear-gradient(180deg, var(--frost-hi), var(--frost-lo)), var(--island); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 18px 40px -12px var(--glass-sh); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--r-pill); }
  .tab { color: var(--ink-3); }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab[aria-current="page"]::after { background: var(--ice); }
  .tab.tab-dial .tab-i { background: linear-gradient(135deg, var(--call-1), var(--call-2) 55%, var(--call-3)), var(--volt); background: linear-gradient(135deg in oklch, var(--call-1), var(--call-2) 55%, var(--call-3)), var(--volt); box-shadow: inset 0 1px 0 var(--glass-rim), 0 4px 0 var(--call-ledge), 0 10px 26px -4px var(--call-glow), 0 0 0 5px var(--page-8); }
  .shell[data-route="home"]::after { background: linear-gradient(180deg, var(--page-0), var(--page-8) 55%); }
  .page-a .start { height: 56px; border-radius: 20px; font-size: 18px; font-weight: 800; font-stretch: 110%; }

  /* panes on phone screens: glass sheets */
  .scr.home > .pane, .scr > .pane, .view > .pane { background: var(--glass); box-shadow: var(--glass-shadow); border-radius: var(--r-lg); padding: 14px 14px 12px; }
  .scr.home > .pane > .pane-h { padding: 2px 2px 8px; }
  .pane-h .pane-t, .pane-t { font-size: 18px; font-weight: 750; font-stretch: 106%; letter-spacing: -.01em; }
  .pane .t thead th { background: transparent; color: var(--ink-3); border-bottom-color: var(--line); }
  .pane .t td { border-bottom-color: var(--line); }
  .pane .t tbody tr:last-child td { border-bottom: 0; }

  /* Home (rep): the goal ring floats in open sky, lit like the moon */
  .momentum-card { background: transparent; box-shadow: none; padding: 8px 4px 4px; gap: 14px; position: relative; isolation: isolate; }
  .momentum-card::before { content: ""; position: absolute; left: 50%; top: 4px; width: 300px; height: 300px; margin-left: -150px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--volt-soft), transparent); }
  .momentum-card .ring-wrap .ring { width: 212px; height: 212px; }
  .momentum-card .ring-n { font-size: 72px; line-height: 72px; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; }
  .momentum-card .ring-g { font-size: 15px; color: var(--ink-2); }
  .mc-cap { font-size: 16px; color: var(--ink-2); }
  .mc-foot { gap: 10px; }
  .mc-foot .streak-chip { background: var(--glass); box-shadow: var(--glass-shadow); height: 40px; padding: 0 14px 0 12px; }
  .mc-best { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--glass-shadow); }
  .ring .ring-seg.on { stroke: var(--ice); }
  .ring .ring-seg.win { stroke: var(--flare); }
  .ring.done .ring-seg.on { stroke: var(--flare); }
  .pace-line { padding: 12px 16px; border-radius: var(--r-md); background: var(--glass); box-shadow: var(--glass-shadow); }
  .figs3 { gap: 8px; padding: 0; }
  .figs3 .f3 { padding: 14px 14px 12px; border-radius: var(--r-md); background: var(--glass); box-shadow: var(--glass-shadow); }
  .figs3 .fig-v { font-size: 40px; font-weight: 800; font-stretch: 116%; }
  .home-trend, .mini-list { background: var(--glass); box-shadow: var(--glass-shadow); border-radius: var(--r-lg); }
  .home-trend .bars .bar.today, .home-trend .bars rect.today { fill: var(--ice); }
}
/* ---------- overlays: sheets, drawers, palette, toast: dense glass so nothing behind bleeds into the words ---------- */
.drawer, .sheet, .palette, .fu-sheet, .menu, .toast, .recap, .moment, .confirm, .dialog { background: linear-gradient(180deg, var(--sheet-hi), transparent 40%), var(--sheet); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), var(--sh-float); } /* 96% opaque: no backdrop blur needed (cheaper to draw) */
.sheet, .fu-sheet { border-radius: 28px 28px 0 0; }
.toast { border-radius: 20px; }
.toast.win { box-shadow: inset 0 1px 0 var(--glass-rim), inset 4px 0 0 var(--flare), 0 0 0 1px var(--glass-edge), 0 16px 40px -10px var(--call-glow); }
.toast.bad { box-shadow: inset 0 1px 0 var(--glass-rim), inset 4px 0 0 var(--bad), 0 0 0 1px var(--glass-edge), var(--sh-float); }
.scrim { background: var(--scrim); }
.score.warm, .score.cool { color: var(--ink); }
.skel { background: linear-gradient(90deg, var(--veil), var(--glass-hi), var(--veil)), var(--bg-2); border-radius: 12px; }

/* ---------- Call Desk panes on phone (queue, script, stats): glass sheets, never words straight on clouds ---------- */
@media (max-width: 767px) {
  .desk > .pane, .desk > .rail-box { background: var(--glass-2); box-shadow: var(--glass-shadow); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .desk > .p-lead { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .t.queue tr.q-grp th { background: transparent; }
  .t.queue tr.qrow.cur td { background: var(--volt-soft); }
  .rail-tabs { background: transparent; }
  .rail-tabs button[aria-selected="true"], .rt[aria-selected="true"] { background: linear-gradient(180deg, var(--key-hi), var(--bg-4)), var(--bg-4); color: var(--ink); }
}

/* ---------- sign in / sign up: a launch screen. Logo and headline in open sky, the form on a glass sheet ---------- */
.auth { justify-content: flex-start; }
.auth-tile { position: relative; isolation: isolate; }
.auth-tile::before { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--orb-halo), transparent); }
.auth-body h1 { font-size: 44px; line-height: 46px; font-weight: 800; font-stretch: 116%; letter-spacing: -.03em; color: var(--ink); }
.auth-body .lead-in { font-size: 17px; color: var(--ink-2); }
.auth-body form { padding: 16px; border-radius: var(--r-lg); background: var(--glass-2); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.auth-body .btn.primary { min-height: 56px; border-radius: 18px; font-size: 18px; font-weight: 800; font-stretch: 110%; }
.auth-links a { font-weight: 650; }
.auth-sys { padding: 12px 14px; border-radius: var(--r-md); background: var(--glass); box-shadow: var(--glass-shadow); }
.auth-foot { padding: 6px 12px; border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--glass-shadow); }
.input { background: var(--key-lo); border-color: var(--ctrl); }
.input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--volt-soft); }
/* words that sit straight on the sky use the sky's own ink (dark on the Day sky, light at night) */
.page-s, .tb-title, .page-t, .climb-t, .climb-t strong, .auth-body h1, .auth-body .lead-in, .auth-links a { color: var(--on-sky); }
.page-s, .climb-t, .auth-body .lead-in { color: var(--on-sky-2); }
:root[data-theme="light"] .climb-r { color: var(--on-sky); }
@media (prefers-color-scheme: light) { :root[data-theme="device"] .climb-r { color: var(--on-sky); } }
.welcome, .boot-shell .boot-top, .boot-shell .boot-line, .skel-rows { background: var(--glass-2); box-shadow: var(--glass-shadow); border-radius: var(--r-lg); }
.boot-shell .boot-top, .boot-shell .boot-line { padding: 8px 14px; border-radius: var(--r-pill); }
.skel-rows { padding: 14px; }
/* =====================================================================================================================
   TABLET + DESKTOP: a sky header band (title, actions and the moon in open sky), glass rail and top bar, glass panes
   ===================================================================================================================== */
@media (min-width: 768px) {
  .sky-orb { top: 74px; right: 31%; width: 52px; height: 52px; }
  .rail { background: linear-gradient(180deg, var(--frost-hi), var(--frost-lo)), var(--sheet); box-shadow: inset -1px 0 0 var(--glass-edge); border-right: 0; }
  .topbar { background: linear-gradient(180deg, var(--frost-hi), transparent), var(--sheet); box-shadow: inset 0 -1px 0 var(--line); border-bottom: 0; }
  .rail-link[aria-current="page"], .rail a[aria-current="page"] { background: linear-gradient(180deg, var(--key-hi), var(--bg-4)), var(--bg-4); box-shadow: inset 0 1px 0 var(--glass-rim), inset 3px 0 0 var(--ice); }
  .page-t { font-size: 32px; font-weight: 800; font-stretch: 114%; letter-spacing: -.025em; }
  .pane, .card, .kpi, .metric { border-radius: var(--r-lg); }
  .desk > .pane, .desk > .rail-box, .desk .p-session, .desk > .fkeys { background: var(--glass-2); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stage, .dial-card { border-radius: var(--r-lg); }
  .fkey.k-out { --oc: var(--o-none); position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--key-hi), var(--key-lo) 70%), var(--key-c); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-edge), 0 3px 0 var(--key-ledge); border: 0; border-radius: 16px; transition: transform var(--t-press) var(--ease-press), box-shadow var(--t-press) var(--ease-press); }
  .fkey.k-out::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--oc); opacity: .75; }
  .fkey.k-out::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -60%; height: 100%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--oc), transparent); opacity: .35; }
  .fkey.k-out .fk-i { border-radius: 50%; background: color-mix(in srgb, var(--oc) 24%, transparent); color: var(--oc); }
  .fkey.k-out:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--oc), 0 5px 0 var(--key-ledge), 0 12px 24px -12px var(--oc); }
  .fkey.k-out:active { transform: translateY(3px) scale(.97); box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--oc); }
  .fkey.o-no_answer { --oc: var(--o-none); } .fkey.o-voicemail { --oc: var(--o-vm); } .fkey.o-callback { --oc: var(--o-cb); } .fkey.o-interested { --oc: var(--o-int); } .fkey.o-not_interested { --oc: var(--o-ni); } .fkey.o-wrong_number { --oc: var(--o-wn); }
  .fkey.k-out.o-booked { --oc: var(--on-volt); background: linear-gradient(140deg, var(--o-book), var(--o-book-2)), var(--volt); background: linear-gradient(140deg in oklch, var(--o-book), var(--o-book-2)), var(--volt); color: var(--on-volt); box-shadow: inset 0 1px 0 var(--glass-rim), 0 4px 0 var(--volt-ledge), 0 12px 24px -10px var(--call-glow); }
  .fkey.k-out.o-sold { --oc: var(--on-flare); background: linear-gradient(140deg, var(--o-sold), var(--o-sold-2)), var(--flare); background: linear-gradient(140deg in oklch, var(--o-sold), var(--o-sold-2)), var(--flare); color: var(--on-flare); box-shadow: inset 0 1px 0 var(--glass-rim), 0 4px 0 var(--key-ledge), 0 12px 24px -10px var(--flare-soft); }
  .fkey.k-out.o-booked::after, .fkey.k-out.o-sold::after { display: none; }
  .fkey.k-out.o-booked .fk-i, .fkey.k-out.o-sold .fk-i { background: var(--veil); color: inherit; }
  .btn-call, .stage .btn.primary { border-radius: 18px; }
}
/* ---------- states: empty, error, offline, banners. A small moonlit emblem, plain words, glass behind them ---------- */
.empty-ico { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, var(--orb-1), var(--orb-2) 45%, var(--orb-3)); color: var(--on-ice); box-shadow: 0 0 0 8px var(--orb-halo-2), 0 0 40px 6px var(--orb-halo); }
.empty.good .empty-ico { background: radial-gradient(circle at 36% 30%, var(--orb-1), var(--ice) 70%); color: var(--on-ice); }
.empty-t, .empty strong { font-size: 18px; font-weight: 750; font-stretch: 106%; }
.empty p { font-size: 15px; color: var(--ink-2); }
.banner { border-radius: var(--r-md); background: var(--glass-2); box-shadow: var(--glass-shadow); color: var(--ink); }
.banner.bad { background: linear-gradient(90deg, var(--bad-soft), transparent 60%), var(--glass-c2); box-shadow: inset 4px 0 0 var(--bad), var(--glass-shadow); color: var(--ink); }
.banner.warn { background: linear-gradient(90deg, var(--warn-soft), transparent 60%), var(--glass-c2); box-shadow: inset 4px 0 0 var(--warn), var(--glass-shadow); color: var(--ink); }
.banner.info, .banner.ok { background: linear-gradient(90deg, var(--ice-soft), transparent 60%), var(--glass-c2); box-shadow: inset 4px 0 0 var(--ice), var(--glass-shadow); color: var(--ink); }
.offline-bar, .outbox-note { border-radius: var(--r-md); background: linear-gradient(90deg, var(--warn-soft), transparent 70%), var(--sheet); box-shadow: inset 4px 0 0 var(--warn), 0 0 0 1px var(--glass-edge), var(--sh-float); color: var(--ink); }
/* the one serif accent, shared with the website: wins and finished days */
.moment-t strong, .recap-big, .recap h2, .climb.done .climb-r { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.moment-t strong { font-size: 22px; line-height: 24px; }
.recap h2 { font-size: 32px; line-height: 34px; color: var(--ink); }
.climb.done .climb-r { font-size: 18px; }
.moment { border-radius: 20px; }
.moment.big { box-shadow: inset 0 1px 0 var(--glass-rim), inset 4px 0 0 var(--flare), 0 0 0 1px var(--glass-edge), 0 18px 44px -12px var(--call-glow); }
/* small phones (under 360 wide or 600 tall): the lead keeps the screen; name, number and next action above the keys */
@media (max-width: 767px) and (max-height: 600px), (max-width: 359px) {
  .desk-head { height: 52px; }
  .dsw { top: 52px; }
  .desk { gap: 10px; padding-top: 10px; }
  .climb-t strong { font-size: 17px; } .climb-t { font-size: 13px; } .climb-track { height: 14px; }
  .dial-card { gap: 8px; padding: 14px 16px; }
  .dial-card .lead-tags { margin-bottom: 6px; }
  .dial-card .dial { margin: 0 -4px; padding: 4px 10px; border-radius: 14px; }
  .dial-card .phone-big { font-size: 24px; line-height: 30px; }
  .dial-card .dial::after { width: 8px; height: 8px; box-shadow: 0 0 0 3px var(--ice-soft); }
  .dial-card .brief { gap: 6px; }
}
/* =====================================================================================================================
   DESIGN DIAGNOSTICS (2026-11-14, independent review): fixes for what scored under 8 on a real phone height.
   - one blur layer on the phone (the frosted lead card); header, tab island, pane switcher and dock are near-solid
     glass (no backdrop blur), so typing and logging stay quick on iPhone and nothing smears the moon into a box;
   - clouds read as lit illustrations: no inner scallop lines, soft undersides that dissolve into the sky, and no
     hard wisp stripes across the screen;
   - the Call Desk fits a 664 px Safari viewport: name (2 lines), number and the Next step sit above the dock;
   - outcome keys: label at the bottom, gem top-right, never overlapping; slightly shorter so the dock is lighter.
   ===================================================================================================================== */
.sky-wisps { display: none; }
.cloud .c-hi { opacity: 0; }
.cw { -webkit-mask-image: linear-gradient(to top, transparent 0, black 34%); mask-image: linear-gradient(to top, transparent 0, black 34%); }
@media (max-width: 767px) {
  /* header: no blur over the sky (it smeared the moon into a lit rectangle); a near-solid band once scrolled */
  .topbar, .shell.scrolled .topbar, .topbar.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .shell.scrolled .topbar, .topbar.scrolled { background: var(--hdr); box-shadow: 0 1px 0 var(--line); }
  .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 10px 24px -10px var(--glass-sh); }
  .dsw { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo) 70%), var(--dock); }
  .fkeys { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 -12px 28px -16px var(--glass-sh); }
  .dial-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  /* the moon: small, clear of titles; on the desk only its light shows through the frosted card */
  /* the moon: on working screens it sits just off the top-right corner, so only its light falls on the header
     (a disc next to the search button read as a second button); the launch screens keep the full moon */
  .sky-orb, .sky[data-route="desk"] .sky-orb { top: -26px; right: -20px; width: 46px; height: 46px; }
  .sky-orb-disc { opacity: 0; }
  .sky[data-route="signin"] .sky-orb, .sky[data-route="signup"] .sky-orb, .sky[data-route="reset"] .sky-orb { top: 9vh; right: 14%; width: 64px; height: 64px; }
  .sky[data-route="signin"] .sky-orb-disc, .sky[data-route="signup"] .sky-orb-disc, .sky[data-route="reset"] .sky-orb-disc { opacity: 1; }
  .auth-split { overflow: visible; overflow-x: clip; }
  /* a soft floor under the tab island so rows never read through the gap below it */
  .shell:not([data-route="home"]):not([data-route="desk"])::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(44px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, var(--page-0), var(--page-8)); z-index: calc(var(--z-island) - 2); pointer-events: none; }

  /* Call Desk: lead card compact enough that the Next step shows above the dock at 664 px */
  .desk { gap: 12px; }
  .dial-card { padding: 16px 18px; gap: 10px; }
  .dial-card .lead-tags { margin-bottom: 4px; }
  .dial-card .name, .dial-card .name.xlong { font-size: 24px; line-height: 28px; -webkit-line-clamp: 2; letter-spacing: -.02em; }
  .dial-card .meta { font-size: 15px; }
  .dial-card .dial { padding: 8px 12px 8px 14px; }
  .dial-card .phone-big { font-size: 29px; line-height: 36px; }
  .dial-card .brief-next { font-size: 15px; font-weight: 600; }
  /* dock: lighter, keys 58 px (still far over 44), the hint line smaller */
  .fkeys { column-gap: 8px; row-gap: 6px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .fkeys .k-call { height: 56px; }
  .fkeys .k-skip, .fkeys .k-undo { min-height: 56px; }
  .fkeys .fk-label { min-height: 0; padding: 0; }
  .fkeys .fk-label .fk-lt { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
  .fkeys .k-out, .fkeys .k-out.o-booked, .fkeys .k-out.o-sold { height: 58px; min-height: 58px; padding: 0; }
  .fkeys .k-out .kc { top: 7px; left: 10px; }
  .fkeys .k-out .fk-i { top: 6px; right: 6px; width: 22px; height: 22px; }
  .fkeys .k-out .fk-i .ico { width: 13px; height: 13px; }
  .fkeys .k-out .fk-l { position: absolute; left: 10px; right: 8px; bottom: 7px; font-size: 13px; line-height: 14px; font-weight: 700; white-space: normal; overflow: visible; }
  /* Stats tab: the figures sit on glass, not loose on the sky */
  .p-session .mom-figs { padding: 14px; border-radius: var(--r-lg); background: var(--glass-2); box-shadow: var(--glass-shadow); }
}
@media (max-width: 767px) and (max-height: 600px), (max-width: 359px) {
  .dial-card { padding: 12px 14px; gap: 8px; }
  .dial-card .name, .dial-card .name.xlong { font-size: 21px; line-height: 25px; }
  .dial-card .phone-big { font-size: 24px; line-height: 30px; white-space: nowrap; }
  .dial-card .dial { padding: 4px 10px; }
  .fkeys .k-out .fk-l { left: 7px; right: 5px; font-size: 11.5px; line-height: 13px; }
  .fkeys .k-out .kc { left: 7px; }
}
/* No backdrop blur (older browsers) or Reduce Transparency: every sheet turns solid so text never sits on a busy sky */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .dial-card, .fkeys, .tabbar, .dsw, .auth-body form { background: var(--sheet) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .dial-card, .fkeys, .tabbar, .dsw, .auth-body form { background: var(--sheet) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
/* ---- round 2 (after the compliance gate landed) ---- */
/* Animation budget: every log-by-key / tap response finishes inside 250 ms (pane flash was 72 + 240 = 312 ms). */
.flash::after { animation-duration: 110ms; }
.adv-next { animation-duration: 150ms; }
.fkeys .k-out, .fkeys .k-call, .fkeys .k-skip, .fkeys .k-undo { transition-duration: 90ms; }
.fkeys .k-out.logged-pop, .fkey.logged-pop { animation-duration: 170ms; }
.toast { animation-duration: 180ms; }
.moment.big { animation-duration: 160ms; }
@media (max-width: 767px) {
  /* the climb header is its own band of night sky so the scrolled lead card never shows through it */
  .desk-head { background: linear-gradient(180deg, var(--sky-0) 0, var(--sky-0) 82%, transparent); position: sticky; }
  /* Call when the rules say not now: a quiet glass key (the reason is in the card), not a dimmed violet one */
  .fkeys .k-call[aria-disabled="true"] { background: linear-gradient(180deg, var(--key-hi), var(--key-lo)), var(--key-c); color: var(--ink-2); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge), 0 4px 0 var(--key-ledge); }
  .fkeys .k-call[aria-disabled="true"]::after { display: none; }
}
.btn-call[aria-disabled="true"] { background: linear-gradient(180deg, var(--key-hi), var(--key-lo)), var(--key-c); color: var(--ink-2); box-shadow: inset 0 1px 0 var(--glass-rim), 0 0 0 1px var(--glass-edge); }
/* Compliance gate: one compact inset panel; passes are quiet, problems carry the colour */
.compliance { margin-top: 4px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, var(--glass-lo), var(--key-lo)), var(--key-c); box-shadow: inset 0 0 0 1px var(--glass-edge); display: flex; flex-direction: column; gap: 10px; }
.compliance .comp-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.compliance .comp-list .tag { font-size: 12.5px; line-height: 16px; min-height: 26px; padding: 4px 10px; }
.compliance .comp-list .tag.ok { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.compliance .comp-why { margin: 0; font-size: 14px; line-height: 19px; font-weight: 600; }
.compliance .comp-act { gap: 10px; align-items: center; flex-wrap: nowrap; }
.compliance .comp-act .tiny { font-size: 12.5px; line-height: 16px; color: var(--ink-3); }
.dnc-btn { flex: none; min-height: 44px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); border: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); font-weight: 700; }
.dnc-btn:active { transform: translateY(2px) scale(.98); }
/* Sign-up: the company address preview reads as a live chip under the name fields */
#su-email-preview:not(:empty) { margin: -2px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--key-lo); box-shadow: inset 0 0 0 1px var(--glass-edge); color: var(--ink); font-family: var(--mono, ui-monospace, monospace); font-size: 14px; overflow-wrap: anywhere; }
/* Settings / Team company email rows: mono address, copy button aligned */
[data-company-email] { color: var(--ink); overflow-wrap: anywhere; }
/* Sideways phone (short and wide): the outcome keys become two slim rows of five (44 px taps) so the lead stays on screen */
@media (min-width: 568px) and (max-height: 500px) {
  .fkeys { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px; padding: 6px 8px; background: var(--sheet) !important; }
  .fkeys .fk-sep, .fkeys .fk-label, .fkeys .fk-head { display: none; }
  .fkeys .fkey.k-out, .fkeys .fkey.k-out.o-booked, .fkeys .fkey.k-out.o-sold, .fkeys .k-skip, .fkeys .k-undo { min-height: 44px; height: 44px; padding: 4px 6px; display: flex !important; align-items: center; justify-content: center; }
  .fkeys .fkey .fk-i, .fkeys .fkey .kc, .fkeys .k-skip .ico, .fkeys .k-undo .ico { display: none; }
  .fkeys .fkey .fk-l { position: static; font-size: 12px; line-height: 13px; white-space: normal; text-align: center; }
  .fkeys .k-skip, .fkeys .k-undo { width: auto; min-width: 0; }
  .fkeys .fkey.k-out:not(.o-booked):not(.o-sold), .fkeys .k-skip, .fkeys .k-undo { background: linear-gradient(180deg, var(--key-hi), var(--key-lo)), var(--sheet); }
  .fkeys .fkey .fk-l { margin: 0; align-self: center; }
  .fkeys .fkey .fk-l { font-size: 12.5px; }
}
/* =====================================================================================================================
   POLISH (2026-11-15): finishing pass before going public.
   ===================================================================================================================== */
/* Clouds: one merged silhouette per cloud (no inner arcs), a moon rim that fades out away from the light, soft inner
   volume. No outlines anywhere: the rim is a gradient-lit sliver offset toward the moon, never a stroke. */
.cloud .c-r0 { stop-color: var(--c-rim); stop-opacity: 0; }
.cloud .c-r1 { stop-color: color-mix(in oklab, var(--c-rim), var(--dawn-rim) calc(var(--p) * 60%)); stop-opacity: .22; }
.cloud .c-r2 { stop-color: color-mix(in oklab, var(--c-rim), var(--dawn-rim) calc(var(--p) * 60%)); stop-opacity: .62; }
.cloud .c-h0 { stop-color: var(--c-hi); stop-opacity: .5; }
.cloud .c-h1 { stop-color: var(--c-hi); stop-opacity: .16; }
.cloud .c-h2 { stop-color: var(--c-hi); stop-opacity: 0; }
.cw { -webkit-mask-image: linear-gradient(to top, transparent 0, 20%, black 48%); mask-image: linear-gradient(to top, transparent 0, 20%, black 48%); }
/* Insights card (rep Home, phone Stats tab, owner team view): columns, pace, funnel, best hours. Real data only. */
.ins { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--glass-shadow); min-width: 0; }
.p-ins > .ins, .p-session .ins { background: transparent; box-shadow: none; padding: 0; }
.p-ins { padding: 18px 16px 16px; }
.ins-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ins-t { margin: 0; font-size: 18px; line-height: 24px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.ins-tot { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.ins-tot strong { font-size: 28px; line-height: 32px; font-weight: 800; font-stretch: 112%; color: var(--ink); margin-right: 3px; }
.ins-s { margin: -6px 0 2px; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.ins-chart { display: flex; flex-direction: column; gap: 6px; }
.ins-cols { display: block; width: 100%; height: 104px; overflow: visible; }
.ins-col { fill: var(--ink-3); fill-opacity: .42; }
.ins-col.zero { fill-opacity: .22; }
.ins-col.today { fill: var(--ice); fill-opacity: 1; }
.ins-base { stroke: var(--line); stroke-width: 1; }
.ins-usual { stroke: var(--volt-ink, var(--volt)); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .9; }
.ins-dow { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); column-gap: 6px; font-size: 11px; line-height: 14px; color: var(--ink-3); text-align: center; font-weight: 600; }
.ins-dow .today { color: var(--ice); font-weight: 800; }
.ins-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ins-lg span { display: inline-flex; align-items: center; gap: 6px; }
.lg-today i { width: 10px; height: 10px; border-radius: 3px; background: var(--ice); }
.lg-usual i { width: 16px; height: 0; border-top: 2px dashed var(--volt-ink, var(--volt)); }
.ins-b { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ins-bt { margin: 0; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.ins-empty { margin: 0; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.pc-row, .ins-funnel li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 2.6em 2.8em; align-items: center; column-gap: 10px; min-height: 26px; font-size: 14px; color: var(--ink-2); }
.pc-bar, .fn-bar { position: relative; display: block; height: 10px; border-radius: 8px; background: var(--bg-4); overflow: hidden; }
.pc-bar i, .fn-bar i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left center; background: var(--ink-3); }
.pc-bar i.now { background: linear-gradient(90deg, var(--call-1), var(--call-3)); background: linear-gradient(90deg in oklch, var(--call-1), var(--call-3)); }
.ins-pace.ahead .pc-bar i.now { background: linear-gradient(90deg, var(--call-2), var(--ice)); background: linear-gradient(90deg in oklch, var(--call-2), var(--ice)); }
.pc-bar i.usual { background: var(--ink-3); opacity: .7; }
.pc-n, .fn-n { text-align: right; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.fn-p { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.pc-say { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.ins-pace.ahead .pc-say { color: var(--ice); font-weight: 650; }
.ins-funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fn-bar i.f0 { background: var(--o-none); } .fn-bar i.f1 { background: var(--o-vm); } .fn-bar i.f2 { background: var(--o-int); }
.fn-bar i.f3 { background: linear-gradient(90deg, var(--o-book), var(--o-book-2)); background: linear-gradient(90deg in oklch, var(--o-book), var(--o-book-2)); } .fn-bar i.f4 { background: linear-gradient(90deg, var(--o-sold), var(--o-sold-2)); background: linear-gradient(90deg in oklch, var(--o-sold), var(--o-sold-2)); }
.ins-hx { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.ins .heat { width: 100%; }
@media (max-width: 359px) { .pc-row, .ins-funnel li { grid-template-columns: 7.6em minmax(0, 1fr) 2.2em 2.6em; column-gap: 6px; font-size: 13px; } .ins-dow { font-size: 10px; column-gap: 4px; } }
/* phone Stats: the full card replaces the two tiny side charts */
@media (max-width: 767px) { .p-session .mom-side .mom-chart { display: none; } .p-session .mom-ins { margin-top: 4px; padding: 16px 14px; border-radius: var(--r-lg); background: var(--glass-2); box-shadow: var(--glass-shadow); } }
@media (min-width: 768px) { .p-session .mom-ins { display: none; } .scr.home > .p-ins { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .p-ins > .ins { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); column-gap: 28px; row-gap: 8px; align-items: start; }
  .p-ins .ins-h, .p-ins .ins-s, .p-ins .ins-chart { grid-column: 1; }
  .p-ins .ins-b { grid-row: 1 / span 3; border-top: 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); align-self: stretch; }
  .p-ins .ins-b:nth-last-child(2) { grid-column: 2; } .p-ins .ins-b:last-child { grid-column: 3; }
  .p-ins .ins-cols { height: 120px; }
  .p-ins .ins-funnel li { grid-template-columns: 8.8em minmax(0, 1fr) 2.2em 2.6em; column-gap: 8px; }
}

/* Home (phone): one primary action. The raised Desk key in the tab island starts calling; the duplicate full-width
   "Start calling" bar that sat on top of it (and over the goal ring at 664 px) is gone on phones. */
@media (max-width: 767px) { .page-a .start { display: none !important; } }
/* Phone sideways (short and wide): the left menu folds to icons (was 27% of the width); badges ride on the icon,
   every link stays a 44 px tap, and the full names stay as accessible names/tooltips. The moon disc steps aside too. */
@media (min-width: 768px) and (max-height: 500px) {
  .shell { --rail-w: 64px; }
  .shell .rail { padding: 8px 10px; align-items: center; overflow-y: auto; }
  .shell .rail-top { margin: 0 0 8px; flex-direction: column; height: auto; gap: 6px; }
  .shell .wordmark, .shell .rl-l, .shell .rail-g, .shell .rail-btn .kc, .shell .rail-collapse { display: none; }
  .shell .rail-link, .shell .rail-btn { position: relative; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .shell .nav-count { position: absolute; top: 0; right: -4px; min-width: 18px; height: 16px; font-size: 10px; padding: 0 4px; }
  .shell .rail-g + * { margin-top: 6px; }
  .sky-orb-disc { opacity: 0; }
}
@media (min-width: 568px) and (max-height: 500px) { .fkeys { background: linear-gradient(var(--sheet), var(--sheet)), var(--page) !important; } }
/* Working screens: one rhythm. */
/* Approvals queue: the status tag never runs off the card; the draft name ellipsizes instead */
.t.aq { table-layout: fixed; width: 100%; }
.t.aq td.aq-b { max-width: 0; }
.t.aq td:last-child, .t.aq th:last-child { width: 118px; text-align: right; }
.t.aq td:last-child .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Clients tiles: number first and big (like every other figure in the app), label under it */
.ctile { gap: 2px; min-height: 76px; justify-content: center; }
.ctile .big { order: -1; font-size: 30px; line-height: 34px; font-weight: 800; font-stretch: 112%; }
.ctile .small { font-size: 13px; line-height: 16px; color: var(--ink-2); }
@media (max-width: 767px) { .ctile { padding: 10px 12px; } .ctile .big { font-size: 28px; line-height: 32px; } }
/* Overlays (lead inspector, drawers, sheets, palette, menus) sit on a solid floor: the list underneath never reads
   through them (it did in Day, faintly in Night). Same glass look, opaque base. */
.insp, .drawer, .sheet, .palette, .menu, .fu-sheet { background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo) 70%), linear-gradient(var(--glass-c2), var(--glass-c2)), var(--page); }
/* ---------- reduced motion: a still sky, no travel, no halos, no bursts ---------- */
@media (prefers-reduced-motion: reduce) {
  .sky *, .sky *::before, .sky *::after, .sky-flare { animation: none !important; transition: none !important; }
  .fkeys .k-call::before { animation: none !important; opacity: 0; }
  .fkeys .k-out.logged-pop { animation: none; }
}

/* =====================================================================================================================
   CRAFT 2026-11-15 · ten details, applied where they earn it (HACKS-APPLIED.md has the full table). Tokens only below.
   ===================================================================================================================== */

/* 1 · Concentric radius: a nested shape's corner = the outer corner minus the gap between them, kept in variables so the
   pair can never drift apart. Pills inside pills (tab island, segmented controls) are concentric by construction. */
.toast { --cr-o: 20px; --cr-gap: 10px; border-radius: var(--cr-o); }
.toast-act { border-radius: max(4px, calc(var(--cr-o, 20px) - var(--cr-gap, 10px))); }
.menu { --cr-o: var(--r-md); --cr-gap: 6px; border-radius: var(--cr-o); }
.menu-i { border-radius: max(4px, calc(var(--cr-o, 16px) - var(--cr-gap, 6px))); }
.pw-wrap { --cr-o: var(--r-sm); --cr-gap: 4px; }
.pw-wrap .input { border-radius: var(--cr-o); }
.pw-eye { border-radius: max(4px, calc(var(--cr-o) - var(--cr-gap))); }
@media (max-width: 767px) {
  .fkeys { --cr-o: 28px; --cr-gap: 14px; border-top-left-radius: var(--cr-o); border-top-right-radius: var(--cr-o); }
  .fkeys :is(.k-out, .k-skip, .k-undo) { border-radius: calc(var(--cr-o) - var(--cr-gap)); }
  .dial-card { --cr-o: var(--r-lg); --cr-gap: 12px; border-radius: var(--cr-o); }
  .dial-card .stage-nav .open-lead { border-radius: calc(var(--cr-o) - var(--cr-gap)); }
}

/* 5 · Matched icon weight: every svg.ico draws its stroke in screen pixels (non-scaling), and the weight follows the words
   beside it: regular text 1.4 px, semibold controls 1.65 px, bold labels 1.85 px, heavy primary glyphs 2.1 px. The active
   tab no longer jumps to a heavier stroke (colour and the dot mark it). */
:is(.btn, .seg, .dsw, .tab, .tb-btn, .tb-search, .menu-i, .sys-item, .nba-i, .fu-dot, .fkey, .k-skip, .k-undo, .pw-eye, .ob-card .tag) { --ico-w: var(--ico-w-semi); }
:is(.btn.primary, button.primary, .btn.danger, .btn-call, .brief-next, .join-teaser, .jt-i, .streak-chip, .ob-badge) { --ico-w: var(--ico-w-bold); }
:is(.btn-call, .k-call) .bc-i { --ico-w: var(--ico-w-heavy); }

/* 6 · Masked edges: sideways strips and long lists fade out at the edge that has more to show instead of a hard cut.
   Where scroll-driven animations work, each fade appears only while there is more content that way; elsewhere the
   strips keep their plain clip (no fade is better than a fade over content that doesn't scroll). */
@property --fade-s { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-e { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes edge-fade { 0% { --fade-s: 0px; --fade-e: var(--fade, 20px); } 12% { --fade-s: var(--fade, 20px); } 88% { --fade-e: var(--fade, 20px); } 100% { --fade-s: var(--fade, 20px); --fade-e: 0px; } }
@keyframes edge-fade-end { 0%, 88% { --fade-e: var(--fade, 20px); } 100% { --fade-e: 0px; } }
@supports (animation-timeline: scroll()) {
  .hboard, .cstrip-b, .blot-tabs {
    --fade: 16px; animation: edge-fade linear both; animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black var(--fade-s), black calc(100% - var(--fade-e)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black var(--fade-s), black calc(100% - var(--fade-e)), transparent 100%); }
  /* tables: only the trailing edge fades (a sticky first column must never be dimmed) */
  .tscroll, .blot-list, .pane-b:has(table), .cd-col .pane-b {
    --fade: 28px; animation: edge-fade-end linear both; animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(90deg, black calc(100% - var(--fade-e)), transparent 100%);
    mask-image: linear-gradient(90deg, black calc(100% - var(--fade-e)), transparent 100%); }
  #pal-list, .cp-transcript, .cmd-drop {
    --fade: 18px; animation: edge-fade linear both; animation-timeline: scroll(self block);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, black var(--fade-s), black calc(100% - var(--fade-e)), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, black var(--fade-s), black calc(100% - var(--fade-e)), transparent 100%); }
  @media (min-width: 768px) {
    .desk .pane-b {
      --fade: 28px; animation: edge-fade-end linear both; animation-timeline: scroll(self block);
      -webkit-mask-image: linear-gradient(180deg, black calc(100% - var(--fade-e)), transparent 100%);
      mask-image: linear-gradient(180deg, black calc(100% - var(--fade-e)), transparent 100%); }
  }
}

/* 7 · Blurred icon swaps: copy -> check, theme sun <-> moon, show <-> hide password, call <-> on call. Small elements only. */
@keyframes swap-in { from { opacity: 0; filter: blur(4px); transform: scale(.55); } }
@keyframes swap-out { to { opacity: 0; filter: blur(4px); transform: scale(.55); } }
.icon-enter, .swap-in, .done-tick { animation: swap-in 180ms var(--ease) both; }
.icon-leave { position: absolute; inset: 0; margin: auto; animation: swap-out 140ms var(--ease-in) forwards; pointer-events: none; }
:is(.tb-btn, .tb-search, .btn):has(> svg.icon-leave) { position: relative; }
.pw-eye > span, .bc-i, .fk-i { display: inline-grid; place-items: center; }

/* 8 · Dark-mode depth: higher = lighter surface + brighter top rim + a hairline, with only a soft short shadow (no heavy
   black). Scale: cards (glass, rim .14) < menus and toasts (--elev-2, rim .16) < sheets and dialogs (--elev-3, rim .22). */
.toast { background: linear-gradient(180deg, var(--sheet-hi), transparent 40%), var(--elev-2); box-shadow: inset 0 1px 0 var(--rim-2), 0 0 0 1px var(--hair-2), 0 12px 28px -16px var(--elev-sh); }
.menu { background: linear-gradient(180deg, var(--sheet-hi), transparent 40%), linear-gradient(var(--elev-2), var(--elev-2)), var(--page); box-shadow: inset 0 1px 0 var(--rim-2), 0 0 0 1px var(--hair-2), 0 12px 28px -16px var(--elev-sh); }
.drawer, .sheet, .palette, .fu-sheet, .recap, .moment, .confirm, .dialog { background: linear-gradient(180deg, var(--sheet-hi), transparent 40%), linear-gradient(var(--elev-3), var(--elev-3)), var(--page); box-shadow: inset 0 1px 0 var(--rim-3), 0 0 0 1px var(--hair-2), 0 18px 36px -20px var(--elev-sh); }
.toast.win { box-shadow: inset 0 1px 0 var(--rim-2), inset 4px 0 0 var(--flare), 0 0 0 1px var(--hair-2), 0 14px 32px -14px var(--call-glow); }
.toast.bad { box-shadow: inset 0 1px 0 var(--rim-2), inset 4px 0 0 var(--bad), 0 0 0 1px var(--hair-2), 0 12px 28px -16px var(--elev-sh); }

/* rows inside the lighter surfaces still need a visible hover / focus fill: one step up the scale */
:is(.drawer, .sheet, .palette, .fu-sheet, .menu, .recap, .confirm, .dialog) { --hover: var(--bg-4); }

/* 9 · Dynamic viewport: in an installed app (status bar over the page) the header grows by the top safe area, and every
   offset that uses --top-h follows. 0 everywhere else. */
@media (max-width: 767px) {
  :root { --top-h: calc(56px + env(safe-area-inset-top, 0px)); }
  .topbar, .desk-head { padding-top: env(safe-area-inset-top, 0px); }
}

/* 10 · Multiply blending: any raster logo or photo with a white background sits on the tinted glass without a white box
   (multiply in Day; in Night it is lifted onto a light tile, since multiply on a dark surface would turn it black). */
img:is(.logo-img, .client-logo, .on-tint) { mix-blend-mode: multiply; }
:root:not([data-theme="light"]) img:is(.logo-img, .client-logo, .on-tint) { mix-blend-mode: normal; background: var(--ink); border-radius: 8px; padding: 2px; }
@media (prefers-color-scheme: light) { :root[data-theme="device"] img:is(.logo-img, .client-logo, .on-tint) { mix-blend-mode: multiply; background: none; padding: 0; } }

@media (prefers-reduced-motion: reduce) {
  .icon-enter, .swap-in, .done-tick, .icon-leave { animation: none !important; filter: none !important; }
  .icon-leave { display: none; }
}
