/* The October 2026 look, for the app only.
 *
 * Sky-blue ground, white cards, black pill buttons, green and yellow as the
 * two live colours, cool greys for everything else. Inter for words, Inter
 * Tight for titles and figures.
 *
 * Linked by app.html alone, after the design system's tokens, theme.css and
 * the long override block, so it wins on equal terms; the marketing site and
 * the other documents keep the paper look until they are moved on purpose.
 * Nearly everything here is a token: the screens draw from tokens, so
 * changing the token changes every window, menu, widget and sheet together.
 * The few rules at the foot restyle the desk's own chrome, which has its
 * shape set inline.
 */

/* Inter for words and Inter Tight for titles and figures, from app/fonts:
   variable WOFF2 (every weight in one file) from Fontsource, under the SIL
   Open Font License (Inter-OFL.txt, Inter-Tight-OFL.txt). Latin is what
   nearly every page needs; Latin Extended is only fetched when a character
   from it appears. A glyph neither has falls through to the system face. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-ext-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* ---- type: Inter, and Inter Tight for titles ----
     The design system's serif slot is where titles and figures ask for
     their face, so it points at Inter Tight; everything else is Inter. */
  --font-serif: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* subtitles (a page's or a section's lede) are Inter Tight too, at their
     own weight: a token of their own, so the heading rules keyed on
     "font-serif" do not make them Medium */
  --font-subtitle: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* the handwritten accent goes too */
  --font-script: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fw-script: 500;
  /* ---- THE TYPE SYSTEM ----
     Six levels, three weights: Regular (400), Medium (500) and Bold (700).
     The design system's "semibold" is Medium here, which is the single biggest change: labels, badges, active
     tabs and card titles stop being bold. Hierarchy comes from size, tracking
     and colour first, weight second, and most text is Book.

       1 page identity   title-lg   26 / 1.15 / Medium / -.02em
       2 section         title-md   17 / 1.25 / Medium / -.01em
       3 item, figure    title-sm   15 / 1.35 / Medium   card figures 20, totals 24-32,
                                    Medium and tight, so a figure reads before its section
       4 interface       body-md    14 / 1.5  / Book     controls 13 Medium
       5 supporting      body-sm    13 / 1.45 / Book, secondary colour
       6 micro           label-sm   11 / 1.2  / Medium, uppercase only for
                                    eyebrows, table heads and badges (below)

     Bold is kept for nothing by default. Sizes are the design system's own
     tokens, re-set, so every screen follows without a per-screen rule. */
  --fw-semibold: 500;
  --fw-bold: 700;

  --fs-display-xl: 3.5rem;   --lh-display-xl: 1.04;  --ls-display-xl: -.03em;
  --fs-display-lg: 2.75rem;  --lh-display-lg: 1.06;  --ls-display-lg: -.028em;
  --fs-display-md: 2.25rem;  --lh-display-md: 1.1;   --ls-display-md: -.025em;
  --fs-display-sm: 1.875rem; --lh-display-sm: 1.12;  --ls-display-sm: -.022em;
  --fs-title-lg: 1.625rem;   --lh-title-lg: 1.15;    --ls-title-lg: -.02em;
  --fs-title-md: 1.0625rem;  --lh-title-md: 1.25;    --ls-title-md: -.01em;
  --fs-title-sm: .9375rem;   --lh-title-sm: 1.35;    --ls-title-sm: -.005em;

  --fs-body-lg: .9375rem;    --lh-body-lg: 1.5;
  --fs-body-md: .875rem;     --lh-body-md: 1.5;
  --fs-body-sm: .8125rem;    --lh-body-sm: 1.45;
  --fs-label-md: .8125rem;   --lh-label-md: 1.3;     --ls-label-md: 0em;
  --fs-label-sm: .6875rem;   --lh-label-sm: 1.2;     --ls-label-sm: .06em;
  --fs-table: .8125rem;      --lh-table: 1.45;

  /* figures: Medium, tight, and stepped so a card's value outranks its
     words without shouting */
  --fs-money-xl: 2rem;       --lh-money-xl: 1.05;    --ls-money-xl: -.03em;
  --fs-money-lg: 1.5rem;     --lh-money-lg: 1.1;     --ls-money-lg: -.025em;
  --fs-money-md: 1.25rem;    --lh-money-md: 1.15;    --ls-money-md: -.02em;
  --fs-money-sm: .875rem;    --lh-money-sm: 1.4;     --ls-money-sm: -.005em;
  --fs-timer: 2.125rem;      --lh-timer: 1.05;       --ls-timer: -.03em;
  --fs-duration-lg: 1.25rem;                         --ls-duration-lg: -.02em;
  --fs-duration-md: .875rem;                         --ls-duration-md: -.005em;

  /* ---- THE PALETTE ----
     Eight colours, and every colour in the app is one of them or a tint of
     one (mixed toward white, or toward black for the greys). Nothing below
     introduces a hue of its own, with one exception: red, which the palette
     does not have, is kept for overdue money and for destructive actions,
     because nothing else says "this is wrong". */
  --p-yellow: #FDCA41;
  --p-green: #1DCB78;
  --p-grey-1: #EDF1F3;
  --p-grey-2: #DDE1E3;
  --p-white: #FFFFFF;
  --p-black: #000000;
  /* THE BLUE. One light blue, #B0E1F5; every blue in Involets is this or a
     lighter shade of it (mixed toward white), never a darker one. The blue
     and the sky are the same colour now: the names stay because everything
     else is mixed from them. */
  --p-blue: #B0E1F5;
  --p-sky: #B0E1F5;
  --p-red: #E5372B;

  /* Words in a brand colour. Yellow, green and the blue are fills: none of
     them reads as text (the blue is 3.2:1 on white). So where a colour has
     to be words (a link, a warning, a state), the words are black and the
     colour moves to something beside them: the link's arrow, the badge's
     fill, the state's dot. The one exception is red, which the palette does
     not have: it is kept, darkened to clear 4.5:1, for overdue money and
     destructive actions only, because nothing else says "this is wrong". */
  --p-yellow-ink: var(--p-black);
  --p-green-ink: var(--p-black);
  --p-blue-ink: var(--p-black);
  --p-red-ink: color-mix(in srgb, var(--p-red) 70%, var(--p-black));

  /* ---- neutrals: the two greys, then black mixed in ---- */
  --warm-25: var(--p-white);
  --warm-50: color-mix(in srgb, var(--p-grey-1) 50%, var(--p-white));
  --warm-100: var(--p-grey-1);
  --warm-150: color-mix(in srgb, var(--p-grey-1) 50%, var(--p-grey-2));
  --warm-200: var(--p-grey-2);
  --warm-300: color-mix(in srgb, var(--p-black) 12%, var(--p-grey-2));
  --warm-400: color-mix(in srgb, var(--p-black) 26%, var(--p-grey-2));
  --warm-500: color-mix(in srgb, var(--p-black) 42%, var(--p-grey-2));
  --warm-600: color-mix(in srgb, var(--p-black) 56%, var(--p-grey-2));
  --warm-700: color-mix(in srgb, var(--p-black) 70%, var(--p-grey-2));
  --warm-800: color-mix(in srgb, var(--p-black) 84%, var(--p-grey-2));
  --warm-900: color-mix(in srgb, var(--p-black) 92%, var(--p-grey-2));
  --warm-950: var(--p-black);

  /* ---- the stationery ramps, folded onto the palette ----
     100 is a surface, 200 an edge or folder tab, 350 the colour itself, and
     600/800 the ink that sits on it. The palette's colours are too light to
     be text, so the inks are black. Sky and lavender become the blues,
     butter and peach the yellow, sage the green, cream the greys. */
  --sky-100: color-mix(in srgb, var(--p-sky) 55%, var(--p-white));
  --sky-200: var(--p-sky);
  --sky-350: var(--p-blue);
  --sky-600: var(--p-blue-ink);
  --sky-800: var(--p-black);
  --lav-100: color-mix(in srgb, var(--p-blue) 14%, var(--p-white));
  --lav-200: color-mix(in srgb, var(--p-blue) 32%, var(--p-white));
  --lav-350: var(--p-blue);
  --lav-600: var(--p-blue-ink);
  --lav-800: var(--p-black);
  --but-100: color-mix(in srgb, var(--p-yellow) 22%, var(--p-white));
  --but-200: color-mix(in srgb, var(--p-yellow) 50%, var(--p-white));
  --but-350: var(--p-yellow);
  --but-600: var(--p-black);
  --but-800: var(--p-black);
  --pea-100: color-mix(in srgb, var(--p-yellow) 34%, var(--p-white));
  --pea-200: color-mix(in srgb, var(--p-yellow) 66%, var(--p-white));
  --pea-350: var(--p-yellow);
  --pea-600: var(--p-black);
  --pea-800: var(--p-black);
  --sag-100: color-mix(in srgb, var(--p-green) 16%, var(--p-white));
  --sag-200: color-mix(in srgb, var(--p-green) 38%, var(--p-white));
  --sag-350: var(--p-green);
  --sag-600: var(--p-green-ink);
  --sag-800: var(--p-black);
  --cor-100: color-mix(in srgb, var(--p-red) 12%, var(--p-white));
  --cor-200: color-mix(in srgb, var(--p-red) 28%, var(--p-white));
  --cor-350: color-mix(in srgb, var(--p-red) 70%, var(--p-white));
  --cor-600: var(--p-red-ink);
  --cor-800: var(--p-red-ink);
  --cre-100: var(--p-grey-1);
  --cre-200: var(--p-grey-2);
  --cre-350: color-mix(in srgb, var(--p-black) 26%, var(--p-grey-2));

  --shadow-ink: 0 0 0;
  --highlight-ink: 255 255 255;
  --grain-opacity: 0;

  /* ---- surfaces and text ---- */
  --bg-page: var(--p-grey-1);
  --bg-page-deep: color-mix(in srgb, var(--p-sky) 55%, var(--p-white));
  --surface-paper: var(--p-white);
  --surface-card: var(--p-white);
  --surface-raised: var(--p-white);
  --surface-sunken: var(--p-grey-1);
  --surface-glass: rgb(255 255 255 / .72);
  --surface-glass-strong: rgb(255 255 255 / .9);
  --surface-inverse: var(--p-black);
  --field-bg: var(--p-grey-1);

  --text-title: var(--p-black);
  --text-body: var(--p-black);
  --text-secondary: color-mix(in srgb, var(--p-black) 72%, var(--p-white));
  --text-muted: color-mix(in srgb, var(--p-black) 62%, var(--p-white));
  --text-faint: color-mix(in srgb, var(--p-black) 50%, var(--p-white));  /* marks and arrows: 3:1 on the light grey */
  --text-inverse: var(--p-white);
  --text-link: var(--p-blue-ink);
  --text-link-hover: var(--p-black);

  /* Lines are black at a low opacity, not a grey: a solid light grey reads
     as a WHITE line on anything tinted (a frosted widget, a coloured card),
     while black at 8% is darker than whatever it sits on. */
  --border-hairline: rgb(0 0 0 / .08);
  --border-subtle: rgb(0 0 0 / .13);
  --border-strong: color-mix(in srgb, var(--p-black) 18%, var(--p-grey-2));
  /* every horizontal divider, one very light grey (see DIVIDERS) */
  --rule: rgb(0 0 0 / .06);
  --border-glass: rgb(255 255 255 / .8);
  --border-focus: var(--p-black);   /* a light blue edge would not show on white */
  --border-selected: color-mix(in srgb, var(--p-blue) 45%, var(--p-sky));

  /* the desk's accent is the palette's blue, whatever the wallpaper.
     Large areas take the sky at a fraction: full sky is right for a chip,
     too heavy for a selected row, and far too heavy for a whole sidebar. */
  --accent: var(--p-blue);
  --accent-rgb: 176 225 245;
  --accent-surface: color-mix(in srgb, var(--p-sky) 50%, var(--p-white));
  --accent-edge: var(--p-sky);
  --accent-wash: color-mix(in srgb, var(--p-sky) 20%, var(--p-white));
  --surface-tint: color-mix(in srgb, var(--p-sky) 26%, var(--p-white));
  --accent-ink: var(--p-black);

  --money-positive: var(--p-black);
  --money-owed: var(--p-red-ink);
  --money-muted: var(--text-muted);
  --bar-track: var(--p-grey-1);
  --bar-billed: var(--p-green);
  --bar-unbilled: var(--p-yellow);
  --bar-remaining: var(--p-grey-2);

  /* ---- one colour per state ----
     The state's colour marks dots, bars and the badge's fill; the badge's
     words are black (see the rule at the foot), because green, yellow and the
     blue are not dark enough to read as small text. */
  --status-draft: color-mix(in srgb, var(--p-black) 42%, var(--p-grey-2));
  --status-draft-surface: var(--p-grey-1);   --status-draft-edge: var(--p-grey-2);
  --status-sent: var(--p-blue);
  --status-sent-surface: var(--p-sky);       --status-sent-edge: var(--p-sky);
  --status-paid: var(--p-green);
  --status-paid-surface: color-mix(in srgb, var(--p-green) 22%, var(--p-white));
  --status-paid-edge: color-mix(in srgb, var(--p-green) 40%, var(--p-white));
  --status-overdue: var(--p-red-ink);
  --status-overdue-surface: color-mix(in srgb, var(--p-red) 12%, var(--p-white));
  --status-overdue-edge: color-mix(in srgb, var(--p-red) 28%, var(--p-white));
  --status-unbilled: var(--p-yellow);
  --status-unbilled-surface: color-mix(in srgb, var(--p-yellow) 26%, var(--p-white));
  --status-unbilled-edge: color-mix(in srgb, var(--p-yellow) 55%, var(--p-white));
  --status-running: var(--p-green);
  --status-running-surface: color-mix(in srgb, var(--p-green) 16%, var(--p-white));
  --status-running-edge: color-mix(in srgb, var(--p-green) 38%, var(--p-white));
  --status-archived: color-mix(in srgb, var(--p-black) 42%, var(--p-grey-2));
  --status-archived-surface: var(--p-grey-1); --status-archived-edge: var(--p-grey-2);
  --success: var(--p-green-ink);  --success-surface: color-mix(in srgb, var(--p-green) 16%, var(--p-white));
  --warning: var(--p-yellow-ink); --warning-surface: color-mix(in srgb, var(--p-yellow) 22%, var(--p-white));
  --danger: var(--p-red-ink);     --danger-surface: color-mix(in srgb, var(--p-red) 12%, var(--p-white));
  --info: var(--p-blue-ink);      --info-surface: color-mix(in srgb, var(--p-sky) 55%, var(--p-white));

  /* ---- buttons: black pills, flat ---- */
  --btn-primary-bg: var(--p-black);
  --btn-primary-bg-hover: color-mix(in srgb, var(--p-black) 82%, var(--p-white));
  --btn-primary-text: var(--p-white);
  --btn-sheen: linear-gradient(transparent, transparent);
  --btn-sheen-paper: linear-gradient(transparent, transparent);
  --btn-depth-sm: 0 .5px 1px rgb(0 0 0 / .07);
  --btn-depth-md: 0 .5px 1px rgb(0 0 0 / .06), 0 2px 5px -2px rgb(0 0 0 / .11);
  --btn-depth-lg: 0 1px 2px rgb(0 0 0 / .06), 0 5px 11px -5px rgb(0 0 0 / .16);
  --btn-depth-lg-hover: 0 1px 2px rgb(0 0 0 / .07), 0 7px 14px -6px rgb(0 0 0 / .18);
  --btn-depth-paper-sm: inset 0 0 0 1px rgb(0 0 0 / .10);
  --btn-depth-paper-md: inset 0 0 0 1px rgb(0 0 0 / .10), 0 .5px 1px rgb(0 0 0 / .025);
  --btn-depth-paper-lg: inset 0 0 0 1px rgb(0 0 0 / .10), 0 2px 6px -3px rgb(0 0 0 / .07);
  --btn-depth-press: inset 0 1px 2px rgb(0 0 0 / .18);
  --btn-depth-paper-press: inset 0 1px 2px rgb(0 0 0 / .12);

  /* ---- corners: one hierarchy ----
     pill    every control: buttons, fields, chips, tabs, the menu bar
     4 / 8   small marks: initials, icon tiles, swatches
     10      panels inside a card
     14      cards and text boxes
     18      windows, sheets, the dock */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 18px;
  --radius-3xl: 18px;
  --radius-card: 14px;
  --radius-photo: 8px;
  --radius-sheet: 18px;
  --radius-input: 999px;  /* every single-line field is a pill; see the textarea rule */
  --shadow-xs: 0 .5px 1px rgb(var(--shadow-ink) / .025);
  --shadow-sm: 0 .5px 1px rgb(var(--shadow-ink) / .02), 0 3px 9px -5px rgb(var(--shadow-ink) / .07);
  --shadow-md: 0 1px 2px rgb(var(--shadow-ink) / .02), 0 6px 14px -6px rgb(var(--shadow-ink) / .09);
  --shadow-float: 0 1px 3px rgb(var(--shadow-ink) / .025), 0 12px 28px -10px rgb(var(--shadow-ink) / .14);
  --shadow-photo: 0 .5px 1px rgb(var(--shadow-ink) / .05), 0 5px 11px -4px rgb(var(--shadow-ink) / .09);
  --drop-xs: 0 .5px .5px rgb(var(--shadow-ink) / .05);
  --drop-sm: 0 1px 3px rgb(var(--shadow-ink) / .055);
  --drop-md: 0 3px 6.5px rgb(var(--shadow-ink) / .075);
  --highlight-soft: inset 0 0 0 0 transparent;
  --highlight-top: inset 0 0 0 0 transparent;
  --ring: 0 0 0 3px rgb(176 225 245 / .9);
  --focus-ring: 0 0 0 2px var(--p-white), 0 0 0 4px var(--p-black);   /* black: the light blue does not show on white */
}

/* app.html steps --text-muted darker on #dc-root, which beats :root, so the
   palette's value is restated there: black at 62%, 5:1 on the light grey. */
#dc-root { --text-muted: color-mix(in srgb, var(--p-black) 62%, var(--p-white)); }

/* Headings: everything that asked for the serif (through a type class, or
   inline as fontFamily var(--font-serif), which the attribute selector
   finds) is Inter Tight Medium with the tracking of its level. */
.iv-display-xl, .iv-display-lg, .iv-display-md, .iv-display-sm, .iv-title-lg, .iv-title-md, .iv-quote,
[style*="font-serif"] {
  font-weight: 500 !important;
}
.iv-title-lg, h1[style*="font-serif"] { letter-spacing: var(--ls-title-lg) !important; line-height: var(--lh-title-lg) !important; }
[style*="font-serif"]:not(h1) { letter-spacing: -.01em !important; }
/* A title that wraps in a narrow window breaks evenly; running text keeps
   its last word company. An inline textWrap still wins. */
#dc-root :is(h1, h2, h3) { text-wrap: balance; }
#dc-root p { text-wrap: pretty; }

/* Figures: Medium and tight. A card's value outranks its label and its
   description by size, tracking and colour, not by being bold. */
.iv-money-xl, .iv-money-lg, .iv-money-md, .iv-money-sm, .iv-timer, .iv-duration-lg, .iv-duration, .iv-table-num {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
}
.iv-money-xl { letter-spacing: var(--ls-money-xl) !important; }
.iv-money-lg { letter-spacing: var(--ls-money-lg) !important; }
.iv-money-md { letter-spacing: var(--ls-money-md) !important; }
.iv-timer { letter-spacing: var(--ls-timer) !important; }
.iv-duration-lg { letter-spacing: var(--ls-duration-lg) !important; }

/* Two headings set their size by hand rather than by token; they join the
   scale: the Projects screen's client group headings are sections (17), the
   timesheet's project row heading is an item title (15). */
#dc-root [style*="font-size: calc(var(--fs-title-sm) * 1.3)"] { font-size: var(--fs-title-md) !important; }
#dc-root span[style*="font-family: var(--font-serif); font-size: 18px"] { font-size: var(--fs-title-sm) !important; }

/* Uppercase, used sparingly. The screens set most small labels in capitals
   (a card's "Unbilled", a widget's "Timer", "Getting started"); they read
   mechanical, so they are sentence case here: 12px Medium, natural
   tracking, in their own colour. Capitals stay where they mark a category:
   the eyebrow above a page title, a table's column heads, a sidebar's
   "Categories", and status badges. */
#dc-root [style*="text-transform: uppercase"] {
  text-transform: none !important;
  font-size: .75rem !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}
#dc-root [style*="text-transform: uppercase"]:has(+ h1),
#dc-root th[style*="text-transform: uppercase"],
#dc-root nav [style*="text-transform: uppercase"],
#dc-root [style*="-surface)"][style*="text-transform: uppercase"],
#dc-root [style*="-surface)"] [style*="text-transform: uppercase"] {
  text-transform: uppercase !important;
  font-size: var(--fs-label-sm) !important;
  letter-spacing: var(--ls-label-sm) !important;
}

/* ---- the desk's chrome ----
   Windows are white cards with a white title bar; the controls in it sit on
   the same white rather than a tinted strip. */
section[data-part="window"] {
  border-radius: 18px !important;
  border-color: rgb(0 0 0 / .08) !important;
  /* a hairline lift close in, and a soft spread that shows on every side */
  box-shadow: 0 .5px 1px rgb(0 0 0 / .03), 0 2px 6px -1px rgb(0 0 0 / .035), 0 9px 22px -7px rgb(0 0 0 / .11) !important;
}
section[data-part="window"] > header[data-part="titlebar"] {
  background: var(--p-white) !important;
  border-bottom-color: var(--rule) !important;
}

/* the close control is a pill, like every other small control on the desk */
[data-part="titlebar"] button[aria-label="Close"] {
  border-radius: 999px !important;
  position: relative;
}
/* Drawn 22 by 15, answered over 34 by 31: still clear of Back beside it, and
   the window's resize corner sits above it. A tab's close grows the same way,
   inside its own tab. */
[data-part="titlebar"] button[aria-label="Close"]::after { content: ""; position: absolute; inset: -8px -6px; }
[data-part="tabstrip"] [role="tab"] button { position: relative; }
[data-part="tabstrip"] [role="tab"] button::after { content: ""; position: absolute; inset: -5px -2px -5px -5px; }

/* The dock is solid white with a light shadow, and the menu bar nearly so, as
   in the reference's top navigation, rather than frosted glass that takes on
   the wallpaper's green. */
[data-part="dock-tray"] {
  background: var(--p-white) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-color: rgb(0 0 0 / .05) !important;
  border-radius: 18px !important;
  box-shadow: 0 .5px 1px rgb(0 0 0 / .03), 0 4px 12px -5px rgb(0 0 0 / .1) !important;
}
/* The dimmed, blurred backdrops of All apps, the widget gallery and
   Windows reach up behind the menu bar. The bar is inset from the sides, and
   the backdrops (inset 0 inside the desk, which begins below the bar) left
   a clear strip beside it. The desk is clipped 38px higher (the bar's
   height) instead of at its own edge, and the backdrops start there; the
   bar paints over them, and the clip-path keeps them blurring only what is
   on the desk. (The photo itself already runs to the top: it hangs on the
   desk's root.) */
div:has(> [data-part="menubar"] + [data-part="wallpaper"]) { overflow: hidden; }
[data-part="menubar"] + [data-part="wallpaper"] {
  overflow: visible !important;
  clip-path: inset(-38px 0 0 0);
}
[data-part="menubar"] + [data-part="wallpaper"] > [style*="var(--scrim"] {
  top: -38px !important;
  padding-top: 38px !important;   /* what a backdrop holds (Windows' header) stays put */
}

/* The menu bar hangs from the top edge: joined to it (square top corners,
   no gap above), inset 20px from the sides, its bottom corners rounded, solid
   white with the dock's shadow below. A tab pulled down from the screen's
   edge rather than a pill floating free of it. */
[data-part="menubar"] {
  margin: 0 20px;
  border-radius: 0 0 18px 18px;
  background: var(--p-white) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgb(0 0 0 / .05) !important;
  border-top: none !important;
  box-shadow: 0 .5px 1px rgb(0 0 0 / .03), 0 4px 12px -5px rgb(0 0 0 / .1) !important;
}

/* The App Store's and Settings' sidebars: app.html paints them with the
   selection colour, which is too strong for a whole column. The palest sky
   instead. A sidebar never draws a line at its edge: its own ground is the
   edge, here and in every other rail on the desk. */
nav[aria-label="Settings sections"],
nav[aria-label="App Store sections"],
nav[aria-label="Admin sections"] {
  background: var(--surface-tint) !important;
  border-left: none !important;
  border-right: none !important;
}

/* ---- legibility ----
   Measured, not judged: every line of text on every screen was checked
   against the ground it sits on (4.5:1, or 3:1 at 24px and over). What
   failed, and the fix for each:

   1. Words set in a colour meant as a fill. The accent and the states are
      the palette's light colours; where a screen writes words in one of
      them, they take that colour's text shade instead. The match is on the
      `color` property alone ("; color:" or the start of the attribute), so a
      border-color or a background is left as it is. */
#dc-root [style^="color: var(--accent)"], #dc-root [style*="; color: var(--accent)"] { color: var(--p-blue-ink) !important; }
#dc-root [style^="color: var(--status-sent)"], #dc-root [style*="; color: var(--status-sent)"] { color: var(--p-blue-ink) !important; }
#dc-root [style^="color: var(--status-running)"], #dc-root [style*="; color: var(--status-running)"],
#dc-root [style^="color: var(--status-paid)"], #dc-root [style*="; color: var(--status-paid)"] { color: var(--p-green-ink) !important; }
#dc-root [style^="color: var(--status-unbilled)"], #dc-root [style*="; color: var(--status-unbilled)"] { color: var(--p-yellow-ink) !important; }
#dc-root [style^="color: var(--status-draft)"], #dc-root [style*="; color: var(--status-draft)"],
#dc-root [style^="color: var(--status-archived)"], #dc-root [style*="; color: var(--status-archived)"] { color: var(--text-muted) !important; }

/*    Words ON the accent (the chosen day in the timer's week, and its kind)
      are black: the accent is the one blue, #B0E1F5, which white cannot be
      read on (about 1.4:1) and black clears easily. */
#dc-root [style*="background: var(--accent)"] { color: var(--p-black) !important; }

/* 2. Parts of a figure faded with opacity: the currency symbol at .7 and the
      cents at .55. On a coloured or muted figure that fade is what fails.
      They are drawn at full strength; their smaller size still sets them
      apart from the whole units. */
#dc-root [class*="iv-money"] span[style*="opacity"] { opacity: 1 !important; }

/* 3. Labels faded on a tinted card (the stat cards' "Outstanding",
      "1 overdue"): full strength on a tint. */
#dc-root [style*="background: var(--paper-"] span[style*="opacity: 0.7"],
#dc-root [style*="background: var(--paper-"] span[style*="opacity: 0.72"],
#dc-root [style*="background: var(--paper-"] span[style*="opacity: 0.78"] { opacity: 1 !important; }

/* A status badge writes its words in the state's colour. The palette's
   colours are fills, not inks, so on a badge the words are black and the
   colour is the fill behind them. Overdue keeps its red words. */
[style*="background: var(--status-draft-surface)"],
[style*="background: var(--status-sent-surface)"],
[style*="background: var(--status-paid-surface)"],
[style*="background: var(--status-unbilled-surface)"],
[style*="background: var(--status-running-surface)"],
[style*="background: var(--status-archived-surface)"] {
  color: var(--p-black) !important;
}

/* ---- folder colours ----
   The ten a project can be (IVC.FOLDER_COLOURS in involets-chrome.jsx): the
   palette's sky, blue, green, yellow, grey and black, and four shades of
   them so a busy desk can still tell its projects apart. Each gives a paper
   (the card), an edge (the folder tab), a mount (the mark beside a project's
   name) and an ink (words on the paper, always black). A deep shade's paper
   and edge are its palette colour, a step stronger than the plain one's:
   a shade mixed toward white turns muddy, so only its mark is the shade. This also restates
   the lavender family theme.css pins to the old house blue, and the colours
   app.html derives for the thirteen older ids. */
:root {
  /* two blues: Blue is the blue itself, Sky a lighter shade of it; Deep blue
     would have to be darker, so it is Blue now */
  --f-sky: color-mix(in srgb, var(--p-sky) 60%, var(--p-white));
  --f-lavender: var(--p-blue);
  --f-ocean: var(--f-lavender);
  --f-mint: color-mix(in srgb, var(--p-green) 35%, var(--p-white));
  --f-sage: var(--p-green);
  --f-moss: color-mix(in srgb, var(--p-green) 70%, var(--p-black));
  --f-butter: var(--p-yellow);
  --f-amber: color-mix(in srgb, var(--p-yellow) 80%, var(--p-black));
  --f-cream: var(--p-grey-2);
  --f-ink: var(--p-black);
  --paper-sky: color-mix(in srgb, var(--p-sky) 55%, var(--p-white)); --edge-sky: var(--p-sky);
  --mount-sky: var(--f-sky); --ink-sky: var(--p-black);
  --paper-lavender: color-mix(in srgb, var(--f-lavender) 18%, var(--p-white)); --edge-lavender: color-mix(in srgb, var(--f-lavender) 40%, var(--p-white));
  --mount-lavender: var(--f-lavender); --ink-lavender: var(--p-black);
  --paper-ocean: var(--paper-lavender); --edge-ocean: var(--edge-lavender);
  --mount-ocean: var(--f-ocean); --ink-ocean: var(--p-black);
  --paper-mint: color-mix(in srgb, var(--f-mint) 45%, var(--p-white)); --edge-mint: var(--f-mint);
  --mount-mint: color-mix(in srgb, var(--f-mint) 50%, var(--p-green)); --ink-mint: var(--p-black);
  --paper-sage: color-mix(in srgb, var(--f-sage) 18%, var(--p-white)); --edge-sage: color-mix(in srgb, var(--f-sage) 40%, var(--p-white));
  --mount-sage: var(--f-sage); --ink-sage: var(--p-black);
  --paper-moss: color-mix(in srgb, var(--p-green) 30%, var(--p-white)); --edge-moss: color-mix(in srgb, var(--p-green) 62%, var(--p-white));
  --mount-moss: var(--f-moss); --ink-moss: var(--p-black);
  --paper-butter: color-mix(in srgb, var(--f-butter) 22%, var(--p-white)); --edge-butter: color-mix(in srgb, var(--f-butter) 50%, var(--p-white));
  --mount-butter: var(--f-butter); --ink-butter: var(--p-black);
  --paper-amber: color-mix(in srgb, var(--p-yellow) 40%, var(--p-white)); --edge-amber: color-mix(in srgb, var(--p-yellow) 78%, var(--p-white));
  --mount-amber: var(--f-amber); --ink-amber: var(--p-black);
  --paper-cream: var(--p-grey-1); --edge-cream: var(--p-grey-2);
  --mount-cream: color-mix(in srgb, var(--p-black) 26%, var(--p-grey-2)); --ink-cream: var(--p-black);
  /* a darker grey than Grey, so the two can be told apart; still light enough for black words */
  --paper-ink: color-mix(in srgb, var(--p-black) 9%, var(--p-white)); --edge-ink: color-mix(in srgb, var(--p-black) 26%, var(--p-white));
  --mount-ink: var(--p-black); --ink-ink: var(--p-black);
  /* Eleven more hues (27 October 2026): reds, pinks, purples, orange, teal and
     brown, so a desk with many projects can tell them apart. Light ones are
     painted like Light green (the colour is the tab), the rest like Green. The
     red is warmer than --p-red, so a red folder never reads as overdue. */
  --f-lagoon: #4FC9BE;
  --f-apricot: #FFCBA4;
  --f-tangerine: #FF9A3C;
  --f-tomato: #FF6F61;
  --f-blush: #FFC6D9;
  --f-pink: #FF7AB2;
  --f-berry: #C2407F;
  --f-lilac: #D8CBF5;
  --f-violet: #9D7CEB;
  --f-grape: #6C4CB8;
  --f-cocoa: #A47551;
  --paper-lagoon: color-mix(in srgb, var(--f-lagoon) 18%, var(--p-white)); --edge-lagoon: color-mix(in srgb, var(--f-lagoon) 40%, var(--p-white));
  --mount-lagoon: var(--f-lagoon); --ink-lagoon: var(--p-black);
  --paper-apricot: color-mix(in srgb, var(--f-apricot) 45%, var(--p-white)); --edge-apricot: var(--f-apricot);
  --mount-apricot: color-mix(in srgb, var(--f-apricot) 50%, var(--f-tangerine)); --ink-apricot: var(--p-black);
  --paper-tangerine: color-mix(in srgb, var(--f-tangerine) 18%, var(--p-white)); --edge-tangerine: color-mix(in srgb, var(--f-tangerine) 40%, var(--p-white));
  --mount-tangerine: var(--f-tangerine); --ink-tangerine: var(--p-black);
  --paper-tomato: color-mix(in srgb, var(--f-tomato) 18%, var(--p-white)); --edge-tomato: color-mix(in srgb, var(--f-tomato) 40%, var(--p-white));
  --mount-tomato: var(--f-tomato); --ink-tomato: var(--p-black);
  --paper-blush: color-mix(in srgb, var(--f-blush) 45%, var(--p-white)); --edge-blush: var(--f-blush);
  --mount-blush: color-mix(in srgb, var(--f-blush) 50%, var(--f-pink)); --ink-blush: var(--p-black);
  --paper-pink: color-mix(in srgb, var(--f-pink) 18%, var(--p-white)); --edge-pink: color-mix(in srgb, var(--f-pink) 40%, var(--p-white));
  --mount-pink: var(--f-pink); --ink-pink: var(--p-black);
  --paper-berry: color-mix(in srgb, var(--f-berry) 18%, var(--p-white)); --edge-berry: color-mix(in srgb, var(--f-berry) 40%, var(--p-white));
  --mount-berry: var(--f-berry); --ink-berry: var(--p-black);
  --paper-lilac: color-mix(in srgb, var(--f-lilac) 45%, var(--p-white)); --edge-lilac: var(--f-lilac);
  --mount-lilac: color-mix(in srgb, var(--f-lilac) 50%, var(--f-violet)); --ink-lilac: var(--p-black);
  --paper-violet: color-mix(in srgb, var(--f-violet) 18%, var(--p-white)); --edge-violet: color-mix(in srgb, var(--f-violet) 40%, var(--p-white));
  --mount-violet: var(--f-violet); --ink-violet: var(--p-black);
  --paper-grape: color-mix(in srgb, var(--f-grape) 18%, var(--p-white)); --edge-grape: color-mix(in srgb, var(--f-grape) 40%, var(--p-white));
  --mount-grape: var(--f-grape); --ink-grape: var(--p-black);
  --paper-cocoa: color-mix(in srgb, var(--f-cocoa) 18%, var(--p-white)); --edge-cocoa: color-mix(in srgb, var(--f-cocoa) 40%, var(--p-white));
  --mount-cocoa: var(--f-cocoa); --ink-cocoa: var(--p-black);
  /* older ids, onto the nearest of the first ten; coral stays red, it is the danger colour */
  --paper-peach: var(--paper-amber); --edge-peach: var(--edge-amber); --mount-peach: var(--mount-amber); --ink-peach: var(--ink-amber);
  --paper-clay: var(--paper-amber); --edge-clay: var(--edge-amber); --mount-clay: var(--mount-amber); --ink-clay: var(--ink-amber);
  --paper-rose: var(--paper-butter); --edge-rose: var(--edge-butter); --mount-rose: var(--mount-butter); --ink-rose: var(--ink-butter);
  --paper-teal: var(--paper-mint); --edge-teal: var(--edge-mint); --mount-teal: var(--mount-mint); --ink-teal: var(--ink-mint);
  --paper-indigo: var(--paper-ocean); --edge-indigo: var(--edge-ocean); --mount-indigo: var(--mount-ocean); --ink-indigo: var(--ink-ocean);
  --paper-plum: var(--paper-ocean); --edge-plum: var(--edge-ocean); --mount-plum: var(--mount-ocean); --ink-plum: var(--ink-ocean);
  --paper-olive: var(--paper-moss); --edge-olive: var(--edge-moss); --mount-olive: var(--mount-moss); --ink-olive: var(--ink-moss);
  --paper-slate: var(--paper-cream); --edge-slate: var(--edge-cream); --mount-slate: var(--mount-cream); --ink-slate: var(--ink-cream);
  --paper-wine: var(--paper-ink); --edge-wine: var(--edge-ink); --mount-wine: var(--mount-ink); --ink-wine: var(--ink-ink);
}

/* ---- controls, after the second reference sheet ----
   Pill buttons; a white pill track with a black pill for the chosen
   segment; yellow badges with black words; and progress drawn as a row of
   small rounded segments in a white track. All of these are design-system components with a stable
   inline signature, which is what the selectors read. */

/* Buttons are pills: the design system's, and every compact control the
   screens draw themselves (a set height under 40px), icon buttons included,
   which come out round. What is a button only in markup keeps its shape:
   tabs, menu and list rows, anything full-width, and the desk's furniture
   (dock tiles and the like carry a data-part). A design-system button
   whose background is overridden (the red Delete in ConfirmDialog sets
   `background`, which drops the sheen) is still found by its depth shadow. */
#dc-root button[style*="background-image: var(--btn-sheen"],
#dc-root button[style*="box-shadow: var(--btn-depth"],
#dc-root button[style*="background-image: none"][style*="min-height:"],
#dc-root button:is([style*="height: 1"], [style*="height: 2"], [style*="height: 3"]):not([role="tab"]):not([role="menuitem"]):not([role="option"]):not([style*="width: 100%"]):not([style*="height: 100%"]):not([data-part]) {
  border-radius: 999px !important;
}
/* Primary buttons are black pills with the icon and label centred together,
   white on black; secondary buttons are white with a grey outline. (A yellow
   circle behind the primary icon was tried and removed.) */

/* Segmented controls: a white pill track, the chosen segment a black pill. */
#dc-root [role="tablist"][style*="grid-auto-flow: column"] {
  height: auto !important;
  padding: 3px !important;
  background: var(--p-white) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .07) !important;
}
#dc-root [role="tablist"][style*="grid-auto-flow: column"] > [role="tab"] {
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
}
#dc-root [role="tablist"][style*="grid-auto-flow: column"] > [role="tab"][aria-selected="true"] {
  background: var(--p-black) !important;
  color: var(--p-white) !important;
}
#dc-root [role="tablist"][style*="grid-auto-flow: column"] > [role="tab"] * { color: inherit !important; }
/* one weight for every segment, so a label does not widen when chosen */
#dc-root [role="tablist"][style*="grid-auto-flow: column"] > [role="tab"] { font-weight: 500 !important; }

/* Sidebar rows are pills like every other control; the chosen one is the
   white pill. */
nav[aria-label="Settings sections"] button,
nav[aria-label="App Store sections"] button,
nav[aria-label="Admin sections"] button {
  border-radius: 999px !important;
}
/* The console's rail marked its row with a 3px blue edge, edge to edge;
   as a pill it is inset like the other rails, and the white pill is the mark. */
nav[aria-label="Admin sections"] button {
  border-left: none !important;
  width: calc(100% - 20px) !important;
  margin: 1px 10px;
  padding-left: 14px !important;
}

/* Badges: the warning tone (Beta, and its kind) is a yellow pill with black
   words; every state badge is a pill. */
#dc-root span[style*="background: var(--warning-surface)"] {
  background: var(--p-yellow) !important;
  color: var(--p-black) !important;
  border-color: transparent !important;
}
#dc-root [style*="background: var(--status-"][style*="-surface)"] {
  border-radius: 999px !important;
}
/* The outline badge ("Fixed $2,400", "$75/hour") sits on white, so it reads
   as a chip on a tinted card instead of a ring drawn on the tint. */
#dc-root span[style*="background: transparent"][style*="border: 1px solid var(--border-subtle)"][style*="var(--radius-pill)"] {
  background: var(--p-white) !important;
}

/* Progress: a white track, and the filled part cut into small rounded
   segments. The unfilled part is the white of the track itself. */
#dc-root [style*="background: var(--bar-track)"] {
  box-sizing: border-box;
  height: 12px !important;
  padding: 2px;
  background: var(--p-white) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .07) !important;
}
#dc-root [style*="background: var(--bar-track)"] > [style*="background: var(--bar-remaining)"] {
  background: transparent !important;
}
#dc-root [style*="background: var(--bar-track)"] > :not([style*="background: var(--bar-remaining)"]) {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='6' height='8' rx='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='6' height='8' rx='2'/%3E%3C/svg%3E");
  -webkit-mask-size: 8px 100%;
  mask-size: 8px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

/* Fields are pills (--radius-input above). A box that holds several lines
   cannot be: its corners would eat the text. Textareas, and the field
   wrappers that hold one, keep an ordinary corner. */
#dc-root textarea,
#dc-root [style*="--radius-input"]:has(> textarea) {
  border-radius: var(--radius-card) !important;
}

/* A card with an edit control laid over its corner (the Clients grid): the
   card's header row stops short of it. */
#dc-root [data-edit-host] > :first-child > :first-child {
  padding-right: 40px;
}

/* A link's words are black (see the text shades), and so is its arrow or
   icon: the light blue is a fill, too pale on white for a shape. A button
   wrapped in a link is still a button: its icon keeps the button's own
   colour. */
#dc-root a [data-icon]:not(button [data-icon]) {
  background: var(--p-black) !important;
}

/* ---- window tabs ----
   Pills in a strip: the open tab is a white pill with a soft lift, the rest
   sit on the strip's grey, and a hover gives a faint pill. The strip is
   46px so each tab keeps its 36px with 5px above and below. */
[data-part="tabstrip"] {
  height: 46px !important;
  align-items: center !important;
  border-bottom: none !important;
}
/* The row of tabs scrolls sideways, and a scrolling box clips whatever is
   outside it, which cut the open tab's shadow off. The row fills the strip's
   full height with 4px at the ends, so the shadow (kept within 4px) has room. */
[data-part="tabstrip"] > div {
  align-self: stretch !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 4px !important;
}
[data-part="tabstrip"] [role="tab"] {
  height: 36px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0 2px 0 12px !important;   /* + the tab's 6px gap and 4px end spacer = 12 each side */
}
[data-part="tabstrip"] [role="tab"][aria-selected="true"] {
  background: var(--p-white) !important;
  box-shadow: 0 .5px 1px rgb(0 0 0 / .035), 0 .5px 2px rgb(0 0 0 / .03) !important;
}
[data-part="tabstrip"] [role="tab"][aria-selected="false"]:hover {
  background: rgb(0 0 0 / .05) !important;
}

/* ---- the menu bar's items ----
   Every item answers the pointer with a light grey pill. They were 22px
   tall, which made a hover read as a sliver; 28px fits the 38px bar with
   5px either side. Only the bar's own items: a menu that opens from it
   (notifications, the account, the space switcher) keeps its rows' own
   height, or a two-line notification is cut to 28px. */
[data-part="menubar"] button:not([data-part="panel"] *) {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  transition: background var(--dur-fast) var(--ease-standard), scale var(--dur-fast) var(--ease-standard) !important;
}
/* and settles a little under a click, as every other button does */
html [data-part="menubar"] button:active:not([data-part="panel"] *) { scale: .96; }
/* app.html paints a menu bar hover in --surface-paper (white) with a more
   specific selector, which on the white bar showed nothing; this one matches
   it and adds the html element, so the grey pill wins. Menus that open from
   the bar ([data-part="panel"]) keep their own rows. */
html [data-part="menubar"] button:hover:not([data-part="panel"] *),
html [data-part="menubar"] button[aria-expanded="true"]:not([data-part="panel"] *) {
  background: var(--p-grey-1) !important;
}

/* ---- figures ----
   Natural-width figures everywhere (tabular ones spread "0:00" and
   "2,400" apart); a sum still lines up in a column because columns are
   right-aligned. */
#dc-root, #dc-root * {
  font-variant-numeric: proportional-nums !important;
  font-feature-settings: normal !important;   /* the kit also asks for "tnum" directly */
}
/* The one exception: a clock that is running. Natural digits made the menu
   bar's timer change width every minute and nudge the items beside it. */
#dc-root .iv-timer, #dc-root [data-live-timer], #dc-root [data-live-timer] * {
  font-variant-numeric: tabular-nums !important;
}

/* Small uppercase labels ("THIS WEEK", "OUTSTANDING") stay on one line:
   a label broken over two
   lines throws its card's rows out of line with its neighbours'. */
#dc-root [style*="text-transform: uppercase"] { white-space: nowrap; }

/* A borderless field set inside a larger control (Search's bar, the App
   Store's search pill, a stepper) takes no ring of its own: app.html rings
   every :focus-visible, which drew a rectangle INSIDE the pill. The design
   system's fields show focus on their own wrapper. */
#dc-root input[style*="background: transparent"]:focus-visible,
#dc-root textarea[style*="background: transparent"]:focus-visible {
  box-shadow: none !important;
}

/* --text-faint is for marks (arrows, dots, rules), never for words: words
   asked for in it get --text-muted. app.html says this for the desk; this
   says it for every document the skin reaches (the console, the pages). */
[style*="color: var(--text-faint)"] { color: var(--text-muted) !important; }

/* Icon containers are circles, like the app icons: the small tinted tiles
   that hold one icon (sidebar rows, list rows, empty states, the store's
   category marks). Matched as a paper-tinted box whose only child is an
   icon, so an initials badge ("NC") keeps its shape. */
#dc-root span[style*="background: var(--paper-"]:has(> [data-icon]:only-child),
#dc-root div[style*="background: var(--paper-"]:has(> [data-icon]:only-child),
#dc-root span[style*="background: var(--accent-surface)"]:has(> [data-icon]:only-child),
#dc-root div[style*="background: var(--accent-surface)"]:has(> [data-icon]:only-child) {
  border-radius: 50% !important;
}


/* ---- the signed-out pages' panels ----
   The site (site/site.css, PANELS) and the pages the app draws outside the
   desk (support, privacy, terms, the extension page) are laid out the same
   way: a #E9F5FB page, and rounded panels this far in from the window's
   edges and this far apart. */
:root { --panel-x: 20px; --panel-gap: 20px; --panel-r: 18px; }
@media (max-width: 720px) { :root { --panel-x: 12px; --panel-gap: 12px; } }


/* ---- DIVIDERS ----
   Every horizontal line between rows, under a header, above a total or
   inside a menu is the same very light grey, --rule, whichever token or
   tint the screen asked for (hairline, subtle, strong, a tint's edge, the
   design system's own warm greys). Matched on the inline style, which is
   how every screen and design-system component draws them: a 1px top or
   bottom border, or a 1px-tall strip. Full outlines (border: 1px …) are
   not dividers and keep their colour; 2px marks (an active tab) are not
   matched. */
[style*="border-top: 1px solid"]:not([style*="border-top: 1px solid transparent"]) { border-top-color: var(--rule) !important; }
[style*="border-bottom: 1px solid"]:not([style*="border-bottom: 1px solid transparent"]) { border-bottom-color: var(--rule) !important; }
[style*="height: 1px"][style*="background: var(--border-"] { background: var(--rule) !important; }
[data-entry-row] + [data-entry-row] { border-top-color: var(--rule) !important; }

/* THE ARROW, EVERYWHERE (October 2026). The site's own pointer
   (cursor.svg: black with a white edge, so it reads on the sky, on white and
   on black; the 2x drawing for a Retina screen; hotspot at the tip) on every
   document that links this skin: the desk, the console, the static pages,
   connect and confirm, and the extension popup, not only the marketing site.
   Still one arrow and never a hand: everything that would have shown a hand,
   or the design system's grab, shows this instead. A cursor that genuinely
   differs keeps its own (the text bar in a field, the resize edges,
   not-allowed on a disabled control). Relative to this file; the site build
   points it at /app/ and the extension build carries the two files beside it. */
html { cursor: url("cursor.svg") 4 4, default; cursor: -webkit-image-set(url("cursor.svg") 1x, url("cursor@2x.svg") 2x) 4 4, default; }
a, button, [role="button"], [role="menuitem"], [role="option"], [role="tab"], [role="switch"], summary, label, select,
input[type="checkbox"], input[type="radio"], input[type="range"], input[type="file"], input[type="button"], input[type="submit"],
[style*="cursor: pointer"], [style*="cursor: grab"], [style*="cursor: default"] {
  cursor: url("cursor.svg") 4 4, default !important;
  cursor: -webkit-image-set(url("cursor.svg") 1x, url("cursor@2x.svg") 2x) 4 4, default !important;
}
button:disabled, [aria-disabled="true"], [style*="cursor: not-allowed"] { cursor: not-allowed !important; }
