/* Plus Jakarta Sans is self-hosted — see the @font-face block at the top of
   app.css (right after this file's @import) for the latin/latin-ext files. */

/* Token base = the Cream ramp / Light. Palettes override via [data-palette].
   NOTE: Cream is only the base *layer*, not the default palette — the plum
   block further down also matches a root with no [data-palette] at all, so
   "no stored preference" paints plum without anyone having to name it.

   .et-token-scope (spec 2026-11-23-contrast-options §D) is an element that
   takes the root's blocks itself: it restates this base, and every palette,
   dark and classic block below already matches by attribute alone, so an
   element carrying data-palette / data-theme / data-look resolves the very
   tokens a root with those attributes would. The Kontraszt picker paints its
   two surface previews with it. A scope names its palette: the plum block's
   :root:where(:not([data-palette])) half is the root's alone. */
:root,
.et-token-scope {
    /* Phase 1 redesign tokens — pastel palette, larger card radius, softer
       shadow stack, Plus Jakarta Sans display family. Card styling uses the
       --et-card-radius-* and --et-shadow-card pair; the --et-shadow-* scale
       further down serves non-card chrome. */
    --et-card-radius-lg: 18px;
    --et-card-radius-md: 16px;
    --et-card-radius-sm: 12px;
    /* Two layers since 2026-11-20: the single 0.05 blur could not lift a white
       card off a page only 2 L* darker. A tight contact shadow draws the edge,
       the wide one keeps the lift. */
    --et-shadow-card:       0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.08);
    --et-shadow-card-hover: 0 6px 18px rgba(0, 0, 0, 0.10);

    /* Primary CTA gradient pill — shared token so header, hero, event-card,
       FAB, etc. don't drift when the design retunes.

       The CTA follows the PALETTE: every palette block below restates the three
       source values (-shadow-rgb, -gradient, -gradient-hover) and the two
       shadow tokens derive from them, which is what makes the primary buttons
       switch with the color style instead of staying plum forever. The values
       here in :root are CREAM's — this block is the Cream ramp, and cream is
       the one palette with no [data-palette] block of its own to hold them.

       They deliberately do NOT follow the theme: the dark blocks leave all of
       these alone, so a palette's CTA looks the same in light and dark, exactly
       as it did when the gradient was a single hardcoded plum (owner decision,
       2026-09-07 — palette yes, light/dark no).

       The recipe each palette follows:
         start (0%)  = the palette accent. Every accent carries white 14/700
                       label text at 4.5:1 or better since 2026-11-20, so no
                       palette needs a second, darker colour for its buttons
                       (coral and blue used to — the tab label and the button
                       were then two different colours).
         mid (55%)   = 70% start + 30% of the #1F1F1F end stop.
         end (100%)  = #1F1F1F, shared by every palette — the charcoal anchor is
                       what makes the pill read as one family across palettes.
         hover       = every stop +17 per channel (clamped), the delta the
                       original plum pair already shipped.
       Plum below is the hand-tuned original this recipe approximates: its mid
       stop is set by hand, bluer than the computed one.

       --et-cta-shadow-rgb is the start stop as bare rgb channels: the two
       shadow tokens build on it, and so do the CTA shadows in ds.css that need
       their own blur/alpha (.et-fab, .et-empty-cta). That way a palette
       overrides ONE value instead of restating five shadows. */
    --et-cta-shadow-rgb:     150, 89, 42;
    --et-cta-gradient:       linear-gradient(135deg, #96592A 0%, #724827 55%, #1F1F1F 100%);
    --et-cta-gradient-hover: linear-gradient(135deg, #A76A3B 0%, #835938 55%, #2F2F2F 100%);
    --et-cta-shadow:         0 4px 14px rgba(var(--et-cta-shadow-rgb), 0.35);
    --et-cta-shadow-hover:   0 6px 18px rgba(var(--et-cta-shadow-rgb), 0.42);

    --et-font-family-base: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

    --et-accent-yellow:   #FFEB00;
    --et-warm-charcoal:   #3A2F2F;
    /* R3-01: the notification bell's fill. Warm yellow, not --et-accent-yellow —
       that one is a neon palette color, too loud for filling an icon body.
       Not theme-dependent (not redefined under [data-theme="dark"] below), so
       it stays the same warm yellow on both surfaces — deliberately, it reads
       fine against both the light and dark bell stroke/background. */
    --et-bell-fill:       #F6C945;
    /* 2026-09-16: the group header Settings gear's fill (EtIconButton
       Icon="gear"), same treatment as the bell above — a soft, non-neon tint
       so the drawn SVG reads as an icon rather than a swatch. A light
       lavender derived from the plum accent rather than --et-pastel-lavender
       (that token is shared with tag/badge fills elsewhere and would couple
       the two). Not theme-dependent, same reasoning as --et-bell-fill: the
       gear always sits on its own translucent-white disc
       (.et-group-header-disc, ds.css), not directly on the page surface, so
       one value reads fine in both themes. */
    --et-gear-fill:       #D9C9E6;

    /* Pastel palette — used for category tags, badges, soft fills. */
    --et-pastel-rose:     #F5C9C9;
    --et-pastel-blue:     #C9DCF5;
    --et-pastel-green:    #C9F5D5;
    --et-pastel-mustard:  #F5E5C9;
    --et-pastel-lavender: #E5C9F5;
    --et-pastel-peach:    #F5D5C9;

    /* Surfaces (Cream light) */
    --et-color-bg:           #FAFAF7;
    --et-color-surface:      #FFFFFF;
    --et-color-surface-2:    #F4F3EF;
    --et-color-border:       #E9E7E1;
    --et-color-border-strong: #D8D5CC;

    /* Ink (light) */
    --et-color-ink:    #0E0E0F;
    --et-color-ink-2:  #53514B;
    --et-color-ink-3:  #8F8C83;
    --et-color-ink-4:  #B6B3AA;

    /* Semantic (light) */
    --et-color-owed:    #15764A;
    --et-color-owe:     #C0392B;
    --et-color-pend:    #B7791F;
    /* Follows the palette accent everywhere — override in a palette block
       only if the two ever need to diverge. */
    --et-color-sent:    var(--et-color-accent);
    --et-color-neutral: #8F8C83;
    /* Cream's accent. Each palette's accent is the colour its NAME promises
       (owner, 2026-11-20): cream, slate and blue were three blues until then.
       Cream itself is too pale to be an accent, so it gets the caramel that
       sits on cream — 5.6:1 under white. */
    --et-color-accent:  #96592A;

    /* Card-stripe accent — decorative left-edge color on .et-card-accent.
       Tuned per palette to sit in-family with the surface tones rather
       than fight them; Cream gets a warm taupe (not a cool blue-grey) so
       the stripe blends into the beige chrome. */
    --et-color-card-stripe: #8B7355;

    /* Status backgrounds */
    --et-status-bg-pending:   #FBEFD7;
    --et-status-bg-sent:      #E4ECFF;
    --et-status-bg-confirmed: #DCEFE2;
    --et-status-bg-paid:      #DCEFE2;
    --et-status-bg-logged:    #ECEAE3;
    --et-status-bg-cancelled: #ECEAE3;
    --et-status-bg-declined:  #ECEAE3;
    --et-status-bg-edited:    #ECEAE3;

    /* Radii — cards use --et-card-radius-* above. */
    --et-radius-pill: 9999px;

    /* Spacing */
    --et-space-0:  0;
    --et-space-1:  4px;
    --et-space-2:  8px;
    --et-space-3:  12px;
    --et-space-4:  16px;
    --et-space-5:  20px;
    --et-space-6:  24px;
    --et-space-8:  32px;
    --et-space-10: 40px;
    --et-space-12: 48px;
    --et-space-16: 64px;

    /* Typography stacks. Single sans family across the app — keeps the
       hierarchy (h4 title vs. h6 card head) carried purely by size + weight,
       no serif/sans mix. */
    --et-font-sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    --et-font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    /* Shadows */
    --et-shadow-none: none;
    --et-shadow-sm:   0 1px 2px rgba(0,0,0,0.04);
    --et-shadow-md:   0 2px 6px rgba(0,0,0,0.06);
    --et-shadow-lg:   0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.10);
    --et-shadow-xl:   0 2px 6px rgba(0,0,0,0.08), 0 14px 32px rgba(0,0,0,0.18);

    /* Layout. */
    --et-drawer-width:  260px;
    --et-appbar-height: 64px;

    /* Installed-app bottom bar (spec 2026-09-19 §3.1, app.css .et-bottom-bar).
       The bar's own height and .main-content's bottom clearance both read this
       one number, plus env(safe-area-inset-bottom) on each side. That is the
       lesson of the Mud-era BottomNav this replaces (it lived here from
       2026-05 to 2026-08): the bar and the space kept for it were two separate
       literals, and they drifted apart. Declared unconditionally even though
       only .et-standalone below 960px ever paints the bar — a token costs
       nothing where it is unused, and a conditional one cannot be read by a
       rule outside the condition. */
    --et-bottom-bar-height: 64px;

    /* A peeked sheet's bar (EtPanel, ds.css), safe area not included. A token
       for the same reason as the bar's: app.css moves the FAB and the page's
       bottom clearance by exactly this much while a bar is on screen. */
    --et-panel-peek-height: 72px;

    /* How far the floating action pill (.et-fab) sits above the bottom of the
       viewport. A token because the page's own bottom clearance in app.css is
       derived from it — raise the pill and the content below it stays clear
       automatically. The safe-area term went LIVE on 2026-09-22, when the
       viewport meta gained viewport-fit=cover (spec §4.4): where there is a
       home indicator the pill now clears it instead of sitting on it. var()
       before env() because Capacitor SystemBars injects --safe-area-inset-*
       for Android WebViews below 140, which answer env() with 0. */
    --et-fab-bottom: calc(22px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));

    /* Motion (2026-09-25). One vocabulary for what moves, so a sheet, a page
       and a bar that change state together also finish together. Enter slower
       than exit: something arriving has to be followed, something leaving only
       has to get out of the way. The enter pair is the bottom sheet's own rise
       (300ms on this curve since the DS round), so the tokens describe what
       already ships rather than a new feel; the exit curve accelerates, the
       way the sheet's swipe-dismiss already leaves (etSheetDrag, ease-in). */
    --et-motion-fast:  120ms;   /* a colour or a line changing state */
    --et-motion-exit:  200ms;   /* something leaving: a sheet, the old page */
    --et-motion-enter: 300ms;   /* something arriving: a sheet, the new page */
    --et-ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --et-ease-enter:    cubic-bezier(0.22, 0.61, 0.36, 1);
    --et-ease-exit:     cubic-bezier(0.4, 0, 1, 1);
}

/* Installed PWA / native shell (.et-standalone, stamped in app-init.js). With
   no browser toolbar parked below the viewport, the browser's 22px reads as
   pinned to the physical bottom edge — right where the home indicator and the
   Android gesture pill live. This is the ONE number to tune if the pill still
   sits too low or now floats too high. */
:root.et-standalone {
    --et-fab-bottom: calc(48px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

/* ───────── Palette: Slate ───────── */
[data-palette="slate"] {
    --et-color-bg:            #F5F6F7;
    --et-color-surface-2:     #EEEFF1;
    --et-color-border:        #E4E6E9;
    --et-color-border-strong: #D4D6D9;
    --et-color-accent:        #4A5A70;   /* slate stone: a blue-grey, 7.0:1 under white */
    --et-color-card-stripe:   #5B6A80;   /* cool slate-blue */
    --et-cta-shadow-rgb:      74, 90, 112;
    --et-cta-gradient:        linear-gradient(135deg, #4A5A70 0%, #3D4858 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #5B6B81 0%, #4E5969 55%, #2F2F2F 100%);
}

/* ───────── Palette: Coral ───────── */
[data-palette="coral"] {
    --et-color-bg:            #FFF6F2;
    --et-color-surface-2:     #FBE8DE;
    --et-color-border:        #F4D7CB;
    --et-color-border-strong: #E9C2B2;
    /* The lightest coral that still carries white at 4.5:1 (it measures 4.53).
       The salmon it replaces, #FF6B5B, managed 2.8:1 — as tab-label and link
       text on white just as under the button's white label — so the button
       had borrowed a brick red and the palette showed two corals. */
    --et-color-accent:        #D2452F;
    --et-color-card-stripe:   #C8755C;   /* muted terracotta */
    --et-cta-shadow-rgb:      210, 69, 47;
    --et-cta-gradient:        linear-gradient(135deg, #D2452F 0%, #9C3A2A 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #E35640 0%, #AD4B3B 55%, #2F2F2F 100%);
}

/* ───────── Palette: Blue ─────────
   The one blue palette. The tinted neutrals (a soft blue bg, a sky surface-2,
   blue-grey borders) came from the PDF Tools design system; its sky-blue
   accent (#0081DA, 4.1:1 under white) read as dated next to them and gave way
   to a cobalt at 5.8:1. Status colors stay shared with light. */
[data-palette="blue"] {
    --et-color-bg:            #F4F8FC;
    --et-color-surface-2:     #ECF6FE;
    --et-color-border:        #D8E5F1;
    --et-color-border-strong: #B8CEE0;
    --et-color-accent:        #2B59E0;
    --et-color-card-stripe:   #2B59E0;   /* the accent itself, keeps brand punch */
    --et-cta-shadow-rgb:      43, 89, 224;
    --et-cta-gradient:        linear-gradient(135deg, #2B59E0 0%, #2748A6 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #3C6AF1 0%, #3859B7 55%, #2F2F2F 100%);
}

/* ───────── Palette: Sage ─────────
   Modern warm-green. Background sits on a barely-perceptible green-cream so
   the cards still read as paper. Accent is moss (#5B7A5A) — botanical, not
   minty/clinical. Card-stripe matches the accent family. */
[data-palette="sage"] {
    --et-color-bg:            #F6F8F3;
    --et-color-surface-2:     #EEF2E7;
    --et-color-border:        #DDE4D2;
    --et-color-border-strong: #C5CFB6;
    --et-color-accent:        #5B7A5A;
    --et-color-card-stripe:   #6B8255;   /* warm moss, in-family with accent */
    /* Moss carries white at 4.8:1, so the start stop IS the accent. */
    --et-cta-shadow-rgb:      91, 122, 90;
    --et-cta-gradient:        linear-gradient(135deg, #5B7A5A 0%, #495F48 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #6C8B6B 0%, #5A7059 55%, #2F2F2F 100%);
}

/* ───────── Palette: Plum ─────────
   Deep aubergine accent on a warm-cream neutral rail. Home redesign (2026-06-29)
   warmed the neutrals (krémes off-white bg, beige-grey borders, slightly warmer
   ink-ramp) so the surface reads less lavender and more "modern paper".
   Plum is the app default palette as of this redesign. */
/* The first selector is what makes plum the DEFAULT palette: it applies when
   nothing has stamped [data-palette] (a first-time visitor, or any root the
   pre-paint script left alone because no preference was stored). Adding it here
   — instead of moving these values into :root — keeps Cream's ramp as the
   shared base, so the other palettes' partial overrides (6 vars each) go on
   inheriting exactly what they inherit today.

   The :where() is load-bearing, not decoration. It zeroes the specificity of
   its argument, leaving this selector at exactly (0,1,0) — the same weight as
   [data-palette="plum"] beside it, as :root above, and as [data-theme="dark"]
   below. Equal weight means source order decides, which is what we need in
   BOTH directions: these values beat the :root base (declared later) and lose
   to the dark base (declared later still). A plain :root:not([data-palette])
   would be (0,2,0) and outrank [data-theme="dark"], painting light surfaces
   for a first-time visitor in dark mode. */
:root:where(:not([data-palette])),
[data-palette="plum"] {
    --et-color-bg:            #FAF8F3;
    --et-color-surface-2:     #F0EDE5;
    --et-color-border:        #E2DDD2;
    --et-color-border-strong: #CFC9BC;
    --et-color-ink:           #1A1917;
    --et-color-ink-2:         #57544D;
    --et-color-accent:        #86398A;
    --et-color-owe:           #C4392D;   /* slight warm nudge from #C0392B */
    --et-color-card-stripe:   #9545A0;   /* slightly brighter plum than accent */
    /* Plum was #7A4E7A until 2026-11-20 — 22% saturation, which read as a grey
       lilac on every button (owner: "fakó"). Same hue at 41% now, and it
       carries white at 7.1:1. The mid stop is the one value the recipe up top
       does not reproduce: it stays bluer than the computed one on purpose, as
       the original hand-tuned pill was. */
    --et-cta-shadow-rgb:      134, 57, 138;
    --et-cta-gradient:        linear-gradient(135deg, #86398A 0%, #63307A 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #974A9B 0%, #74418B 55%, #2F2F2F 100%);
}

/* ───────── Dark mode (cross-palette) ─────────
   How a card separates from the page in dark (2026-11-20). A shadow cannot do
   it on a near-black page, so two things do instead, in every palette:

     - the surface sits 7.5 L* above the page. It used to sit 3.5–4.6 above,
       and at 3.6 the plum cards could not be told from the page at all;
     - --et-shadow-card turns into a 1px hairline in the border colour, so
       everything that draws the card shadow gets an edge with no rule of its
       own. A ring rather than a border, for the reason ds.css gives at the
       bg-plain pilot: a ring costs no layout.

   Each dark block keeps the same ladder above its own page colour: surface-2
   +3.5 L*, surface +7.5, border +7 above the surface, border-strong +13. */
[data-theme="dark"] {
    --et-color-bg:            #0F1012;
    --et-color-surface:       #1E2024;
    --et-color-surface-2:     #17181B;
    --et-color-border:        #2B2F34;
    --et-color-border-strong: #383D42;

    --et-shadow-card:       0 0 0 1px var(--et-color-border);
    --et-shadow-card-hover: 0 0 0 1px var(--et-color-border-strong);

    --et-color-ink:   #F2F1ED;
    --et-color-ink-2: #B6B3AA;
    --et-color-ink-3: #B6B3AA;
    --et-color-ink-4: #6F6E68;

    --et-color-owed:    #3FB07A;
    --et-color-owe:     #E5675A;
    --et-color-pend:    #E0A14A;
    --et-color-neutral: #8F8C83;
    --et-color-accent:  #5B86FF;

    /* Status backgrounds, dark mode. The two that were no lighter than the
       lifted surface (sent, and the neutral four) moved up with it. */
    --et-status-bg-pending:   #3A2E12;
    --et-status-bg-sent:      #1E2F64;
    --et-status-bg-confirmed: #143821;
    --et-status-bg-paid:      #143821;
    --et-status-bg-logged:    #383633;
    --et-status-bg-cancelled: #383633;
    --et-status-bg-declined:  #383633;
    --et-status-bg-edited:    #383633;
}

[data-palette="cream"][data-theme="dark"] {
    --et-color-bg:            #15140F;
    --et-color-surface:       #26231C;
    --et-color-surface-2:     #1D1B15;
    --et-color-border:        #363229;
    --et-color-border-strong: #443F35;
    --et-color-accent:        #E0A974;
}

[data-palette="slate"][data-theme="dark"] {
    --et-color-bg:            #0F1217;
    --et-color-surface:       #1F2227;
    --et-color-surface-2:     #171A1F;
    --et-color-border:        #2E3136;
    --et-color-border-strong: #3C3F44;
    --et-color-accent:        #AEB9C9;
    --et-color-ink-2:         #C4C7CC;
    --et-color-ink-3:         #8C9098;
}

[data-palette="coral"][data-theme="dark"] {
    --et-color-bg:            #1A100D;
    --et-color-surface:       #2C1F18;
    --et-color-surface-2:     #231712;
    --et-color-border:        #3E2D23;
    --et-color-border-strong: #4E3A2C;
    --et-color-accent:        #FF9F90;
}

[data-palette="blue"][data-theme="dark"] {
    --et-color-bg:            #0F1A24;
    --et-color-surface:       #1C2A3A;
    --et-color-surface-2:     #15212E;
    --et-color-border:        #293950;
    --et-color-border-strong: #354664;
    --et-color-accent:        #86A6FF;
}

[data-palette="sage"][data-theme="dark"] {
    --et-color-bg:            #10130F;
    --et-color-surface:       #1F231C;
    --et-color-surface-2:     #171B15;
    --et-color-border:        #2C3328;
    --et-color-border-strong: #394133;
    --et-color-accent:        #8FB28E;
}

/* (0,2,0) via the same :where() trick — matches the other palettes' dark
   blocks, so it beats the cross-palette dark base and ties by order with them. */
:root:where(:not([data-palette]))[data-theme="dark"],
[data-palette="plum"][data-theme="dark"] {
    --et-color-bg:            #15101A;
    --et-color-surface:       #281F2B;
    --et-color-surface-2:     #1E1722;
    --et-color-border:        #3A2D3B;
    --et-color-border-strong: #4A3949;
    --et-color-accent:        #CE94D1;
}

/* ───────── pilot toggle (temporary, removed once the owner decides) ─────────
   Owner request 2026-09-22, with a Wolt screenshot: on a phone the app header
   and the status-bar strip are the device's own white (black in dark), while
   every palette's --et-color-bg is a TINTED off-white (#FAF8F3 plum, #FFF6F2
   coral, #F4F8FC blue…), so "a different colour starts under the header".
   `data-bg-plain="plain"` swaps the page background alone for a pure
   #FFFFFF / #000000 so the shell and the page read as one surface, the way
   Wolt's app does.

   Only --et-color-bg moves. --et-color-surface is deliberately untouched: the
   point of the pilot is the page-vs-shell seam, not a re-tint of every card,
   and leaving surfaces alone is also what keeps this block one deletion when
   the pilot ends.

   ONE pair of rules covers every palette, because each palette sets
   --et-color-bg and nothing else reads its literal value. Specificity: the
   light rule is (0,1,1) — the attribute plus the `html` type — so it beats
   every palette block (0,1,0) AND the cross-palette dark base (0,1,0); the
   dark rule is (0,2,1) so it in turn beats the per-palette dark blocks
   (0,2,0). Both sit at the end of the file, after everything they override.

   Dark arrives only as [data-theme="dark"] in this project: ThemeService
   resolves the OS preference into that attribute (pre-paint-theme.js stamps
   it before the first frame), and tokens.css has no prefers-color-scheme
   branch of its own — so this one selector IS the system-dark path too. */
html[data-bg-plain="plain"] {
    --et-color-bg: #FFFFFF;
}

html[data-bg-plain="plain"][data-theme="dark"] {
    --et-color-bg: #000000;
}

/* ───────── the look: [data-look="classic"] (spec 2026-11-23-contrast-options) ─────────
   The colours before #872 (2026-11-20). They are the DEFAULT look: every
   client stamps data-look="classic" unless the user picked the stronger one
   (pre-paint-theme.js before the first frame, ThemeService after it). The
   stronger look is the base above, so it needs no block of its own; only
   "classic" matches here, and nothing above this block changes.

   Each block is a copy of the block it reverts with [data-look="classic"]
   added, which raises every selector by exactly (0,1,0) and keeps the copies
   in the original order. So among themselves they cascade exactly as the
   originals did, and as a set they outrank everything above: a light copy is
   (0,2,0), a palette's dark copy (0,3,0), and the whole set comes after the
   (0,2,0) palette dark blocks it has to beat on a tie.

   A token appears here in every block that declared it before #872, even
   where that block's own value did not change (sage, the dark accent, the
   dark inks): otherwise a copy of a lighter block would win where the
   original lost — the :root copy's CTA would paint sage, the plum copy's ink
   would reach plum dark. --et-shadow-card-hover is restated for the opposite
   reason: before #872 no dark block set it. */
:root[data-look="classic"],
.et-token-scope[data-look="classic"] {
    --et-shadow-card:        0 2px 10px rgba(0, 0, 0, 0.05);
    --et-shadow-card-hover:  0 6px 18px rgba(0, 0, 0, 0.10);
    --et-cta-shadow-rgb:     27, 92, 255;
    --et-cta-gradient:       linear-gradient(135deg, #1B5CFF 0%, #1C4ABC 55%, #1F1F1F 100%);
    --et-cta-gradient-hover: linear-gradient(135deg, #2C6DFF 0%, #2D5BCD 55%, #2F2F2F 100%);
    --et-color-accent:       #1B5CFF;
}

[data-look="classic"][data-palette="slate"] {
    --et-color-accent:        #3D4EFF;
    --et-cta-shadow-rgb:      61, 78, 255;
    --et-cta-gradient:        linear-gradient(135deg, #3D4EFF 0%, #3440BC 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #4E5FFF 0%, #4551CD 55%, #2F2F2F 100%);
}

[data-look="classic"][data-palette="coral"] {
    --et-color-accent:        #FF6B5B;
    --et-cta-shadow-rgb:      192, 74, 58;
    --et-cta-gradient:        linear-gradient(135deg, #C04A3A 0%, #903D32 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #D15B4B 0%, #A14E43 55%, #2F2F2F 100%);
}

[data-look="classic"][data-palette="blue"] {
    --et-color-accent:        #0081DA;
    --et-color-card-stripe:   #0081DA;
    --et-cta-shadow-rgb:      0, 112, 192;
    --et-cta-gradient:        linear-gradient(135deg, #0070C0 0%, #095890 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #1181D1 0%, #1A69A1 55%, #2F2F2F 100%);
}

[data-look="classic"][data-palette="sage"] {
    --et-color-accent:        #5B7A5A;
    --et-cta-shadow-rgb:      91, 122, 90;
    --et-cta-gradient:        linear-gradient(135deg, #5B7A5A 0%, #495F48 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #6C8B6B 0%, #5A7059 55%, #2F2F2F 100%);
}

/* (0,2,0) both: :root carries the weight the bare :root:where() lacks. */
:root[data-look="classic"]:where(:not([data-palette])),
[data-look="classic"][data-palette="plum"] {
    --et-color-border:        #ECE8DF;
    --et-color-border-strong: #D8D3CA;
    --et-color-ink-2:         #6B6860;
    --et-color-ink-3:         #B0ADA5;
    --et-color-accent:        #7A4E7A;
    --et-color-card-stripe:   #8A5A88;
    --et-cta-shadow-rgb:      122, 78, 122;
    --et-cta-gradient:        linear-gradient(135deg, #7A4E7A 0%, #5B3E6E 55%, #1F1F1F 100%);
    --et-cta-gradient-hover:  linear-gradient(135deg, #8B5A8B 0%, #6C4E80 55%, #2F2F2F 100%);
}

[data-look="classic"][data-theme="dark"] {
    --et-color-surface:       #1A1C1F;
    --et-color-surface-2:     #16181B;
    --et-color-border:        #2A2C30;
    --et-color-border-strong: #3A3C41;
    --et-color-ink-2:         #B6B3AA;
    --et-color-ink-3:         #B6B3AA;
    --et-color-accent:        #5B86FF;
    --et-status-bg-sent:      #16234A;
    --et-status-bg-logged:    #2A2826;
    --et-status-bg-cancelled: #2A2826;
    --et-status-bg-declined:  #2A2826;
    --et-status-bg-edited:    #2A2826;
}

[data-look="classic"][data-palette="cream"][data-theme="dark"] {
    --et-color-surface:       #1F1D17;
    --et-color-surface-2:     #1A1814;
    --et-color-border:        #2F2C24;
    --et-color-border-strong: #3F3C32;
}

[data-look="classic"][data-palette="slate"][data-theme="dark"] {
    --et-color-surface:       #181B20;
    --et-color-surface-2:     #15181C;
    --et-color-border:        #262A30;
    --et-color-border-strong: #363A40;
    --et-color-accent:        #7E8AFF;
    --et-color-ink-2:         #C4C7CC;
    --et-color-ink-3:         #8C9098;
}

[data-look="classic"][data-palette="coral"][data-theme="dark"] {
    --et-color-surface:       #241813;
    --et-color-surface-2:     #1E140F;
    --et-color-border:        #3A2820;
    --et-color-border-strong: #4A3528;
    --et-color-accent:        #FFB0A4;
}

[data-look="classic"][data-palette="blue"][data-theme="dark"] {
    --et-color-surface:       #15212E;
    --et-color-surface-2:     #101A24;
    --et-color-border:        #243246;
    --et-color-border-strong: #344256;
    --et-color-accent:        #5BB0F0;
}

[data-look="classic"][data-palette="sage"][data-theme="dark"] {
    --et-color-surface:       #191D17;
    --et-color-surface-2:     #141812;
    --et-color-border:        #262C22;
    --et-color-border-strong: #363D32;
    --et-color-accent:        #8FB28E;
}

:root[data-look="classic"]:where(:not([data-palette]))[data-theme="dark"],
[data-look="classic"][data-palette="plum"][data-theme="dark"] {
    --et-color-surface:       #1E1722;
    --et-color-surface-2:     #18121D;
    --et-color-border:        #2D2532;
    --et-color-border-strong: #3D3543;
    --et-color-accent:        #B98FB6;
}

/* Reduced motion (kept) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
