/* frontend/shared/tokens.css — OneInvite dashboard design tokens, wave 1.
 *
 * The @import below adds the invitation motion kit's token set
 * (docs/redesign/INVITATION-ENGINE-PLAN-2026-09-28.md section 5) for later
 * dashboard motion work. An import resolves first in a stylesheet, so the
 * --dur-fast, --dur-base, --dur-slow and --ease-out/--ease-in-out this file
 * already defines below keep their own values: renaming them to the new set
 * is deferred while other sessions are still editing the dashboard's own
 * stylesheets, per frontend/shared/motion.css's own header.
 */
@import "motion.css";

/*
 * Colour, type, spacing, radius, elevation, motion, focus and z-index live
 * here as custom properties on :root, with a dark scheme repeated under
 * prefers-color-scheme, so every component in styles.css reads a token and
 * never a literal. This file is loaded before styles.css wherever
 * styles.css is loaded.
 *
 * Palette A is docs/redesign/look/styles.css's own "today's warm paper and
 * bronze, refined into a twelve-step ramp": the surface, ink and primary
 * values below are the same hex OneInvite already ships in
 * frontend/shared/styles.css, so nothing visibly moves for a host who
 * already knows this product. The dark scheme's exact twelve-step ramp is
 * not actually recorded anywhere in docs/redesign/GAP_ANALYSIS.md despite
 * the decision sheet's claim that it is — only the two ramp endpoints
 * (paper-1 #18140f, paper-12 #f3ece4) are given in
 * docs/redesign/look/styles.css — so the dark values below are computed from
 * those two endpoints and the "bronze warmed for glow on dark" instruction
 * next to them, not copied from a source that turned out not to exist.
 *
 * The two @font-face blocks below self host the public site's own pair,
 * Playfair Display and Montserrat, from frontend/assets/fonts/, the same
 * files frontend/site/site.css already loads, so the brand reads as one face
 * from the site into the dashboard. Nothing is fetched from Google Fonts or
 * any other third party. Both carry the Macedonian language tag and were
 * checked letter by letter against fontTools' own character map in
 * backend/tests/unit/test_dashboard_fonts_draw_macedonian.py, ѓ ќ љ њ џ ѕ
 * included; Montserrat Italic is registered as its own face rather than left
 * to the browser's synthetic oblique, because docs/redesign/GAP_ANALYSIS.md
 * section 8 found that a slanted upright reads to a native eye as a font
 * never drawn for the language, where Montserrat Italic instead carries the
 * real Macedonian cursive г, д, п and т.
 */

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserratitalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Onest, the host screens' one face (unified UI plan, wave 1), in the three subsets the
   product's languages need, the same split Google's own sheet makes, so a Macedonian
   page downloads the Cyrillic file and an English one only the Latin. The files are
   from Google Fonts' v11 release under the SIL Open Font Licence, whose text is beside
   them in frontend/assets/fonts/onest.OFL.txt. Nothing is fetched from a third party. */
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-cyrillic-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-latin.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;
}

:root {
  /* Colour. Light scheme, palette A, which the guest and seat pages keep.
     Every host screen sets data-look and is pearl, the block after this one. */
  --surface: #fbf8f5;
  --surface-raised: #ffffff;
  --surface-sunken: #f2ebe1;
  --ink: #2b2420;
  --ink-muted: #6b6058;
  --ink-faint: #a89c8d;
  --line: #e6ddd2;

  --primary: #b8895f;
  --primary-ink: #ffffff;
  /* --primary itself measures 3.1:1 on white, short of the 4.5:1 small text
     needs; --primary-strong is a darker step for text and is what
     .btn-secondary-style labels and links should read instead of --primary. */
  --primary-strong: #8a6440;
  --primary-soft: #e8d9c9;

  --success: #2f6b4e;
  --success-soft: #e4efe7;
  --warning: #8a6a1f;
  --warning-soft: #f7ecd9;
  --danger: #b3492f;
  --danger-soft: #f6e2dc;

  /* What a shadow is made of. Mixing a shadow from --ink turned it into a
     pale glow in a dark look, where ink is cream. */
  --shadow-color: #2b2420;
  /* A bar, button or tooltip that stands out from the page, such as the
     print studio's toolbar or a toast. On a light look it is the text colour
     with the page colour on it; each dark look names its own, a raised tone
     from its theme with white on it, because the text colour there is light
     and would put dark words on a pale bar. */
  --inverse: var(--ink);
  --inverse-ink: var(--surface);
  /* A firmer edge than --line, for hover and dashed outlines. */
  --line-strong: color-mix(in srgb, var(--ink) 18%, transparent);

  /* Type. A display family and a UI family. This block matches every page
     through the bare :root selector, so these two are the guest and seat
     pages' own faces, unchanged since neither carries data-look and the
     group 7 typeface pairing task was the dashboard's alone. The
     [data-look] block below overrides both for the dashboard, the print
     studio and the seating editor, the three that set data-look on <html>. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* A fluid modular scale, clamped between a phone and a desktop width so it
     needs no build step and no container query to read correctly at both. */
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --text-lg: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --text-xl: clamp(1.75rem, 1.55rem + 0.9vw, 2.125rem);
  --text-2xl: clamp(2.25rem, 1.9rem + 1.6vw, 2.875rem);
  --text-3xl: clamp(2.75rem, 2.2rem + 2.4vw, 3.75rem);

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-relaxed: 1.65;

  --tracking-wide: 0.04em;

  /* Spacing. */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;

  /* Radius. Kept at today's exact values so a rounded corner does not move. */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Elevation. Few and quiet: density comes from type, not chrome. */
  --shadow-soft: 0 8px 30px rgba(43, 36, 32, 0.08);
  --shadow-lift: 0 1px 2px rgba(43, 36, 32, 0.06), 0 8px 24px rgba(43, 36, 32, 0.10);

  /* Motion. Zeroed below under prefers-reduced-motion, so any rule that
     reads these for a duration turns its motion off for free. */
  --dur-instant: 90ms;
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Focus ring. One consistent ring for every interactive element. */
  --focus-ring-color: var(--primary-soft);
  --focus-ring: 0 0 0 3px var(--focus-ring-color);

  /* Z layers, named for what sits at each one rather than an arbitrary
     number, so two components never have to guess whose stacks higher. */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* Pearl, every host screen's light look (docs/redesign/PEARL-LOOK-2026-10-03.md),
   set by Stefan on 3 October 2026 after the dashboard and the print studio
   still wore the legacy cream with a tan selection and the seating studio a
   flat grey he called old fashioned. A plain white room (the pearl was dropped
   the same day, see --room below), white glass for bars and panels, white
   paper for the work, ink for the one main action and colour for state only. It stays under the look id "cream", the id every
   saved preference holds. It is a block of its own, after :root, so the guest
   and seat pages, which set no data-look, keep palette A, and it names every
   colour so a swatch carrying data-look="cream" inside a dark page is whole. */
[data-look="cream"],
[data-look="site"] {
  /* The Biser palette of the unified UI (docs/redesign/unified-ui/PLAN.md, wave 1): a cool
     near white page, an ink with a trace of blue, and the product's own wine as the colour
     of the one main action. The names are the old layer's, so every screen that read a
     token follows with no edit. */
  --surface: #fbfbfe;
  --surface-raised: #ffffff;
  --surface-sunken: #f0f2f9;
  --ink: #14161f;
  --ink-muted: #565b6e;
  --ink-faint: #7f849a;
  --line: rgba(24, 28, 60, 0.12);
  /* Public site keeps per-family colours via --event-colour; dashboard ([data-look="cream"])
     locks --primary to signature Бордо (#732937) right below so opening an event never turns
     dashboard buttons bloody red (Stefan, 19 November 2026). */
  --primary: var(--event-colour, #732937);
  --primary-ink: #ffffff;
  --primary-hi: color-mix(in srgb, var(--primary) 80%, #ffffff);
  --primary-strong: var(--primary);
  --primary-soft: color-mix(in srgb, var(--primary) 10%, #ffffff);
  /* Shared Card-Editor soft 2-pool ambient wash (OKLab L=0.89, low chroma) used
     uniformly behind all five dashboard workspaces on the light look. */
  --ambient-wash:
    radial-gradient(62% 76% at 74% 44%, rgba(244, 226, 189, 0.44) 0%, rgba(244, 226, 189, 0.15) 42%, transparent 76%),
    radial-gradient(56% 64% at 10% 4%, rgba(246, 214, 221, 0.42) 0%, rgba(246, 214, 221, 0.14) 42%, transparent 74%);
  --success: #2f6b4e;
  --success-soft: #e4efe7;
  --warning: #8a6a1f;
  --warning-soft: #f7ecd9;
  --danger: #b4232c;
  --danger-soft: #fbe9ea;
  --err: #b3261e;
  --shadow-color: #1e245a;
  /* The edge of a field, a chip and a secondary button: stronger than a hairline, so a control reads on white. */
  --stroke: rgba(24, 28, 60, 0.2);
  --inverse: var(--ink);
  --inverse-ink: #ffffff;
  --line-strong: color-mix(in srgb, var(--ink) 18%, transparent);
  /* The ring of a focused control is the main colour at a quarter, since the ink wash the ring was would vanish on white. */
  --focus-ring-color: color-mix(in srgb, var(--primary) 28%, transparent);
  --shadow-soft: 0 8px 30px rgba(24, 28, 60, 0.08);
  --shadow-lift: 0 1px 2px rgba(24, 28, 60, 0.06), 0 8px 24px rgba(24, 28, 60, 0.10);

  /* The room is plain white with no light pools (Stefan, 3 October 2026, looking
     at the invitation studio: "i dont think we need 'pearl' anymore. just white
     does the deal i think..because now it is just weird"). The pearl room and its
     sky and silver pools are gone, and with them the reason glass was blurred;
     bars and panels are told apart from the room by their hairline and shadow
     below. --room-light stays as a token, set to none, because every room rule
     paints it beneath the room colour and the dark look still lights its room. */
  --room: #ffffff;
  --room-light: none;
  /* The silver the room's low pool used to be, kept because the seating hall's
     tables take it, so they read as objects on the white floor (Stefan, 3
     October 2026: "its almost everything white"). */
  --room-silver: #eaecf1;
  /* The selected item. A white pill vanished on white glass (Stefan, 3 October
     2026: "its not clear what is selected"), so on pearl it is a grey capsule
     of ink at 9 percent, and on the dark look a light pill with dark words. */
  --pill: color-mix(in srgb, var(--ink) 9%, transparent);
  --pill-ink: var(--ink);
  /* Glass, for bars and chips and for panels. */
  --glass-bar: rgba(255, 255, 255, 0.86);
  --glass-panel: rgba(255, 255, 255, 0.94);
  --glass-blur: blur(24px) saturate(1.4);
  /* Elevation by job, never by taste: the work highest, panels below it, bars
     and chips barely off the room. The paper's own shadow comes twice, as a
     box shadow and as a drop shadow for a drawing that is not a box. */
  --lift-bar: 0 1px 2px rgba(20, 24, 30, 0.08), 0 0 0 1px rgba(20, 24, 30, 0.10);
  --lift-panel: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 70px -30px rgba(10, 20, 30, 0.35), 0 0 0 1px rgba(20, 24, 30, 0.09);
  --lift-paper: 0 34px 44px -6px rgba(10, 20, 30, 0.20), 0 6px 14px rgba(10, 20, 30, 0.08), 0 0 0 1px rgba(10, 20, 30, 0.09);
  --lift-paper-drop: drop-shadow(0 34px 44px rgba(10, 20, 30, 0.20)) drop-shadow(0 6px 14px rgba(10, 20, 30, 0.08)) drop-shadow(0 0 1px rgba(10, 20, 30, 0.10));
}

/* The host screens' type and shape (unified UI plan, wave 1). Onest is the one face of
   every heading, button, field and line of text on every page that sets data-look on
   <html>, meaning the dashboard, the print studio and the seating editor, which replaces
   the Playfair Display and Montserrat pairing group 7 gave them; the public site keeps
   that pair. Only the wordmark stays Playfair, as --font-logo, because it is the
   brand's own drawing of its name and not a line of interface. [data-look] and the bare
   :root above share one specificity, so this wins by coming second in the file; it
   never reaches the guest and seat pages, which set no data-look and keep the faces and
   the corners above unchanged. The print studio's own card fonts and the seating room's
   SVG labels name their families directly rather than reading --font-display or
   --font-ui, so this rule does not reach them either. */
[data-look] {
  --font-display: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Corners: larger than the guest pages', since a host's controls are soft objects. */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  /* The springs a lifted object settles with, sampled from a damped oscillator: one with
     a small overshoot and a livelier one. A browser without linear() gets the plain
     ease out the first line names, so nothing is left unset. */
  --spring-soft: cubic-bezier(0.23, 1, 0.32, 1);
  --spring-lively: cubic-bezier(0.23, 1, 0.32, 1);
  /* The curve an icon swaps with, so it leaves and enters on one beat. */
  --icon-ease: cubic-bezier(0.2, 0, 0, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  [data-look] {
    --spring-soft: linear(0, 0.05, 0.171, 0.327, 0.492, 0.648, 0.783, 0.892, 0.973, 1.029, 1.063, 1.08, 1.083, 1.078, 1.067, 1.054, 1.04, 1.027, 1.016, 1.008, 1.001, 0.997, 0.994, 0.993, 0.993, 0.994, 1);
    --spring-lively: linear(0, 0.049, 0.174, 0.344, 0.532, 0.715, 0.877, 1.01, 1.107, 1.169, 1.2, 1.204, 1.188, 1.159, 1.122, 1.083, 1.047, 1.015, 0.991, 0.973, 0.962, 0.958, 0.959, 0.963, 0.97, 0.978, 0.985, 0.993, 0.999, 1.003, 1.006, 1.008, 1);
  }
}

/* Dashboard light look locks --primary to signature Бордо (#732937), never bloody red. */
[data-look="cream"] {
  --primary: #732937;
  --primary-ink: #ffffff;
}

/* Tabular figures, for a number that has to line up in a column: a guest
   count, a reply total, a countdown. */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* The same in every look. A scrim is the dim layer behind a dialog, over a
   photo or around the lightbox, and it stays dark whatever the page is, so
   what is written on it stays light. */
:root {
  --scrim: rgba(20, 16, 12, 0.5);
  --scrim-ink: #ffffff;
}

/* The looks a host can choose for the dashboard, frontend/shared/look.js,
   set as data-look on <html> of every page a host uses. Stefan cut the
   picker from seven looks to three on 25 September 2026: cream stays
   OneInvite's own default, and light and dark are built from cream's own
   bronze and paper rather than borrowed from another product's palette, so
   every look reads as this product's rather than as a code editor's. Light
   is cream's paper lifted a notch brighter and a notch cooler while staying
   warm; dark is the espresso already kept below for a guest's page, with a
   deeper bronze for a button's fill so white text on it clears 4.5 to 1 and
   a lighter bronze for accent text on the page itself, which is why a dark
   look's --primary and --primary-strong are no longer the same hue lifted
   once but two different depths of it. Each block also applies to any
   element carrying data-look, which is how the picker's swatches paint
   themselves in their own look's tokens.

   A page with no data-look at all is a guest's page, since a host's look is
   theirs and never reaches a guest. The block below keeps those pages in the
   warm dark they have always had when the device is set to dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-look]) {
    --surface: #18140f;
    --surface-raised: #211b14;
    --surface-sunken: #100d09;
    --ink: #f3ece4;
    --ink-muted: #c9bfb2;
    --ink-faint: #8f8578;
    --line: #3a3020;

    /* Bronze warmed and lightened for glow on a dark surface, per the
       decision sheet's own instruction beside the ramp endpoints. */
    --primary: #d1a374;
    --primary-ink: #18140f;
    --primary-strong: #e3b989;
    --primary-soft: #33271a;

    --success: #6fae8a;
    --success-soft: #16261d;
    --warning: #c99a4a;
    --warning-soft: #2b2013;
    --danger: #d97a5c;
    --danger-soft: #2e1811;
    --shadow-color: #000000;

    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* Dark pearl, the cream look's materials at night rather than an inverted
   page (Stefan, 3 October 2026, from a screenshot of the old dark look: "the
   black mode on our website is looking like this"). Same token names as the
   pearl block above, so every screen that reads tokens follows. A deep room
   with a cool tint, never pure black, lit by the same two soft pools in a
   dim version. Glass is near black at about 85 percent over the room with a
   faint light top edge and deeper shadows. Paper, the work itself, is a
   slightly lifted dark. Ink is light with muted and faint steps, the one main
   button and the selected item are light pills with dark text, and the state
   colours are lifted until each clears 4.5 to 1 on the paper and on its own
   tint (measured, not assumed). The bronze of the old dark look is gone, as
   tan is gone from pearl: colour means state. */
[data-look="dark"],
:root[data-look="site"][data-theme="dark"] {
  --surface: #111317;
  --surface-raised: #1e2126;
  --surface-sunken: #0b0c0f;
  --ink: #edece9;
  --ink-muted: #a9adb6;
  --ink-faint: #8a8f99;
  --line: #2b2e35;
  --primary: #edece9;
  --primary-ink: #14161a;
  --primary-strong: #edece9;
  --primary-soft: #2a2d34;
  /* The step above --primary a capsule's gradient starts from. In this look the main colour is a light pill, so the step is a lighter light. */
  --primary-hi: color-mix(in srgb, var(--primary) 70%, #ffffff);
  --err: #ff9d93;
  --stroke: rgba(255, 255, 255, 0.24);
  --success: #7fc79f;
  --success-soft: #1b2b23;
  --warning: #e3b65e;
  --warning-soft: #2d2817;
  --danger: #ff8a92;
  --danger-soft: #3a1d21;
  --shadow-color: #000000;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.55);
  /* A bar that stands out, such as a toast: one step up from the paper with
     light words on it, since the text colour here is light. */
  --inverse: #2b2e35;
  --inverse-ink: #ffffff;
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);
  --focus-ring-color: color-mix(in srgb, var(--ink) 40%, transparent);

  /* The room and its light: the sky pool dimmed to a deep blue, the white
     pool to a cool glow, and nothing low down. */
  --room: #111317;
  --ambient-wash: none;
  /* The cool light at night, a step above the dark paper. */
  --room-silver: #2a2e35;
  --room-light:
    radial-gradient(48% 58% at 20% 26%, rgba(150, 165, 195, 0.14), transparent 72%),
    radial-gradient(42% 52% at 90% 8%, rgba(64, 104, 164, 0.26), transparent 72%);
  --pill: #edece9;
  --pill-ink: #14161a;
  --glass-bar: rgba(22, 24, 29, 0.84);
  --glass-panel: rgba(20, 22, 27, 0.88);
  --glass-blur: blur(24px) saturate(1.4);
  --lift-bar: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --lift-panel: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --lift-paper: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 34px 44px -6px rgba(0, 0, 0, 0.6), 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --lift-paper-drop: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.6)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.14));
  color-scheme: dark;
}

/* What opens over a screen: the shared dialog, the toast and the menus
   (Stefan, 3 October 2026: "either we go new design or old design"). They are
   pearl's glass, which is --glass-panel and --glass-blur above, with the few
   things pearl has no token for: a wash for the way out, the ink that turns
   pale in the dark look so the main answer stays the loudest thing in the box,
   and a red for the one answer that takes something away, worn as a tint and
   red words, never as a filled button. Stefan, 4 October 2026, of a filled
   brick "Замени": "the orange buttons, they are from the old design", so this
   red and pearl's --danger are a cool red with no orange in it (#b4232c, hue
   356) where they were brick and terracotta. Light is the default, and the
   dark look overrides it below. */
:root {
  --glass-ink: #1d1c1a;
  --glass-ink-soft: #5c6067;
  --glass-ink-on: #ffffff;
  --glass-wash: rgba(29, 28, 26, 0.06);
  --glass-wash-hover: rgba(29, 28, 26, 0.1);
  --glass-rule: rgba(29, 28, 26, 0.1);
  --glass-field: #ffffff;
  --glass-danger: #b4232c;
  --glass-danger-on: #ffffff;
  --glass-danger-text: #b4232c;
  --glass-danger-soft: rgba(180, 35, 44, 0.08);
  --glass-toast: #1d1c1a;
  --glass-toast-on: #ffffff;
  --glass-scrim: rgba(30, 32, 36, 0.25);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 24px 56px -18px rgba(10, 20, 30, 0.45), 0 0 0 1px rgba(20, 24, 30, 0.08);
  --glass-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* The guest and seat pages set no data-look, so pearl never gives them the glass. */
:root:not([data-look]) {
  --glass-panel: rgba(255, 255, 255, 0.94);
  --glass-blur: blur(24px) saturate(1.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-look]) {
    --glass-panel: rgba(30, 29, 27, 0.94);
    --glass-ink: #f2f0ec;
    --glass-ink-soft: #b9b5ae;
    --glass-ink-on: #141312;
    --glass-wash: rgba(255, 255, 255, 0.08);
    --glass-wash-hover: rgba(255, 255, 255, 0.13);
    --glass-rule: rgba(255, 255, 255, 0.12);
    --glass-field: rgba(255, 255, 255, 0.06);
    --glass-danger: #d9364a;
    --glass-danger-text: #ff8a92;
    --glass-danger-soft: rgba(255, 138, 146, 0.14);
    --glass-toast: #33312e;
    --glass-scrim: rgba(0, 0, 0, 0.5);
    --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 56px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.09);
  }
}

[data-look="dark"] {
  --glass-ink: #edece9;
  --glass-ink-soft: #a9adb6;
  --glass-ink-on: #14161a;
  --glass-wash: rgba(255, 255, 255, 0.08);
  --glass-wash-hover: rgba(255, 255, 255, 0.13);
  --glass-rule: rgba(255, 255, 255, 0.12);
  --glass-field: rgba(255, 255, 255, 0.06);
  --glass-danger: #d9364a;
  --glass-danger-text: #ff8a92;
  --glass-danger-soft: rgba(255, 138, 146, 0.14);
  --glass-toast: #2b2e35;
  --glass-scrim: rgba(0, 0, 0, 0.55);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 56px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* The public site (unified UI plan, wave 6). Its pages set data-look="site", which gives them
   the host look's Onest, corners, springs and kit parts and, through the two blocks above, the
   Biser palette in light and in dark. data-theme is what the visitor chose (cream or dark); with
   none stored the device decides, which only a media query can say, so the dark values are
   written once more below for that case. Past what the kit names, the site needs a few sizes
   and corners the host screens do not, and three colours that sit on a photograph and so never
   change with the theme. */
:root {
  --text-3xs: 0.6875rem;
  --text-4xl: clamp(2.25rem, 1.2rem + 3.2vw, 4rem);
  --radius-thread: 1px;
  --radius-hair: 2px;
  --radius-xs: 6px;
  --on-photo: #fffaf3;
  --night: #141010;
  --phone: #0e0b09;
}

/* Values one screen uses that the scale above has no step for, named here so no stylesheet
   writes a literal (scripts/ui_audit.mjs). Each holds exactly what its screen painted before
   it moved here, by Stefan's choice of 22 November 2026 to keep every screen looking as it
   did rather than snap it to the nearest step, which would have turned the admin charts' blue
   green and their warning orange red. None of them changes with the look. A value built from
   another token stays in its own rule, since a token defined here would read that token at
   the root and not on the element. */
:root {
  --white: #ffffff;
  --black: #000000;

  /* The admin charts and status pills. */
  --chart-blue: #2563eb;
  --chart-gold: #b8895f;
  --chart-green: #16a34a;
  --chart-green-ink: #15803d;
  --chart-amber: #d97706;
  --chart-amber-ink: #b45309;
  --chart-red: #dc2626;
  --chart-red-ink: #b91c1c;
  --chart-violet: #7c3aed;
  --chart-slate: #64748b;
  --tooltip-bg: rgba(17, 24, 39, 0.94);
  --tooltip-ink: #f9fafb;
  --tooltip-ink-soft: #e5e7eb;
  --tooltip-ink-faint: #cbd5e1;
  --tooltip-rule: rgba(255, 255, 255, 0.16);
  --photo-veil: rgba(17, 17, 17, 0.35);

  --text-chart-sub: 9px;
  --text-chart: 10px;
  --text-count: 11px;
  --text-chart-total: 16px;
  --text-stat: 20px;
  --text-brand: 22px;
  --text-badge: 0.75rem;
  --text-tab-small: 0.7rem;
  --text-tooltip-detail: 0.74rem;
  --text-chevron: 0.9rem;
  --text-inline-icon: 0.95em;
  --text-camera-hint: clamp(1.05rem, 3.2vw, 1.25rem);
  --text-price: clamp(1.3rem, 1.2rem + 0.5vw, 1.65rem);

  --radius-tick: 4px;
  --radius-segment-inner: 9px;
  --radius-segment: 12px;
  --radius-tab: 13px;

  --shadow-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --shadow-faint: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-pressed-pill: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-choice-hover: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-tick: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-tooltip: 0 10px 26px rgba(0, 0, 0, 0.22);
  --shadow-sheet: 0 24px 60px rgba(0, 0, 0, 0.16);
  --shadow-arrow: 0 4px 14px color-mix(in srgb, black 55%, transparent);
  --shadow-float-button: 0 12px 30px -6px rgba(17, 17, 17, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14);
  --shadow-drag-ghost: 0 18px 38px -8px rgba(17, 17, 17, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.22);
  --shadow-text-on-camera: 0 2px 10px rgba(0, 0, 0, 0.65);

  /* Тек на настанот (dashboard/track): the days-left figure, the button of the card-only
     offer, and the small pictures of printed paper, its seal and the photos a face was
     found in, which lie on the screen as paper on a table rather than as panels. */
  --text-track-count: 4.25rem;
  --text-track-count-phone: 2.5rem;
  --text-offer-buy: 17px;
  --radius-track-shot: 8px;
  --radius-track-art: 10px;
  --radius-track-gets: 14px;
  --track-image-outline: rgba(0, 0, 0, 0.1);
  --track-found-bg: rgba(255, 255, 255, 0.92);
  --shadow-track-paper: 0 1px 2px rgba(40, 20, 25, 0.18), 0 6px 14px rgba(40, 20, 25, 0.14);
  --shadow-track-envelope: 0 1px 2px rgba(40, 20, 25, 0.18), 0 8px 16px rgba(40, 20, 25, 0.16);
  --shadow-track-found: 0 1px 2px rgba(40, 20, 25, 0.18), 0 6px 16px rgba(40, 20, 25, 0.18);
  --shadow-track-ring: 0 2px 6px rgba(40, 20, 25, 0.35);
  --drop-track-seal: drop-shadow(0 2px 2px rgba(40, 20, 25, 0.3));

  /* The home page's hero: its headline and the phone, linen, QR card and photo it draws,
     at desktop and at phone width. */
  --text-hero-title: clamp(44px, 5.1vw, 74px);
  --text-hero-title-phone: 44px;
  --text-hero-small-phone: 10px;
  --text-hero-qr-phone: 10.5px;
  --text-hero-photo-phone: 11.5px;
  --text-hero-reply-phone: 13.5px;
  --hero-phone-radius: 48px;
  --hero-phone-radius-phone: 42px;
  --hero-screen-radius: 40px;
  --hero-screen-radius-phone: 34px;
  --hero-linen-radius: 30px;
  --hero-piece-radius: 22px;
  --hero-piece-radius-phone: 16px;
  --hero-picture-radius: 15px;
  --hero-picture-radius-phone: 11px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0s;
    --dur-fast: 0s;
    --dur-base: 0s;
    --dur-slow: 0s;
  }
}

/* home-page-tokens: the home page's own palette, corners, shadows and type sizes, read only by
   frontend/site/home.css. The page is one look, day to night by its own clock, so no theme redefines them. */
:root {
  --home-day: #FBFBFE;
  --home-paper: #F0F2F9;
  --home-ink: #14161F;
  --home-ink-2: #565B6E;
  --home-night: #0D0F17;
  --home-candle: #F2D8A2;
  --home-wine: #732937;
  --home-wine-ink: #FFF6F3;
  --home-line: rgba(24,28,60,.12);
  --home-card: #FFFFFF;
  --home-ease: cubic-bezier(.2,0,0,1);
  /* 20px up to a small laptop, where the scenes need the width, then growing with the screen to a twentieth of it. */
  --home-gut-l: max(20px,env(safe-area-inset-left,0px),min(5vw,(100vw - 1000px) / 6));
  --home-gut-r: max(20px,env(safe-area-inset-right,0px),min(5vw,(100vw - 1000px) / 6));
  --home-fs-17px: 17px;
  --home-c-8d2540: #8d2540;
  --home-sh-01: inset 0 0 0 1.5px currentColor;
  --home-c-rgba-127-127-127-12: rgba(127,127,127,.12);
  --home-c-rgba-246-247-242-9: rgba(246,247,242,.9);
  --home-fs-15px: 15px;
  /* The first screen's headline gives back the width the gutter takes, so it still ends before the hall beside it: its two lines are 7.1 times its size wide. */
  --home-fs-clamp-44px-6-4vw-120px: clamp(44px,6.4vw - (var(--home-gut-l) - 20px) * .141,120px);
  --home-r-6px: 6px;
  --home-sh-02: 0 1px 1px rgba(20,22,31,.08),0 18px 40px -12px rgba(20,22,31,.28),0 50px 90px -30px rgba(20,22,31,.3);
  --home-r-14: 14%;
  --home-r-4: 4%;
  --home-fs-13px: 13px;
  --home-sh-03: 0 8px 22px -8px rgba(20,22,31,.35);
  --home-r-24px: 24px;
  --home-c-rgba-255-255-255-7: rgba(255,255,255,.7);
  --home-r-14px: 14px;
  --home-r-10px: 10px;
  --home-fs-11px: 11px;
  --home-fs-12px: 12px;
  --home-fs-clamp-22px-2-5vw-40px: clamp(22px,2.5vw,40px);
  --home-fs-16px: 16px;
  --home-r-16px: 16px;
  --home-sh-04: 0 1px 1px rgba(20,22,31,.06),0 14px 30px -14px rgba(20,22,31,.3);
  --home-sh-05: 0 20px 50px -18px rgba(20,22,31,.45);
  --home-sh-06: 0 30px 70px -24px rgba(20,22,31,.45);
  --home-r-36px: 36px;
  --home-c-121417: #121417;
  --home-sh-07: 0 40px 80px -30px rgba(0,0,0,.55);
  --home-fs-18px: 18px;
  --home-fs-30px: 30px;
  --home-c-fff: #fff;
  --home-sh-08: 0 1px 1px rgba(20,22,31,.1),0 24px 50px -18px rgba(20,22,31,.4);
  --home-fs-clamp-34px-5vw-84px: clamp(34px,5vw,84px);
  --home-sh-09: 0 18px 40px -18px rgba(20,22,31,.4);
  --home-r-clamp-18px-3vw-36px: clamp(18px,3vw,36px);
  --home-r-22px: 22px;
  --home-r-18px: 18px;
  --home-sh-10: 0 30px 70px -28px rgba(0,0,0,.7);
  --home-c-14161f: #14161f;
  --home-r-12px: 12px;
  --home-r-clamp-18px-2-6vw-38px: clamp(18px,2.6vw,38px);
  --home-sh-11: 0 1px 1px rgba(20,22,31,.1),0 40px 80px -30px rgba(20,22,31,.5);
  --home-fs-14px: 14px;
  --home-fs-clamp-24px-2-4vw-38px: clamp(24px,2.4vw,38px);
  --home-c-f5e4ee: #f5e4ee;
  --home-c-000: #000;
  --home-fs-clamp-8px-95vw-14px: clamp(8px,.95vw,14px);
  --home-c-46525c: #46525c;
  --home-c-ebdcae: #ebdcae;
  --home-c-f4e8c8: #f4e8c8;
  --home-r-clamp-12px-1-4vw-20px: clamp(12px,1.4vw,20px);
  --home-c-f5f6fb: #f5f6fb;
  --home-sh-12: 0 1px 1px rgba(20,22,31,.1),0 30px 60px -24px rgba(20,22,31,.45);
  --home-fs-12-5px: 12.5px;
  --home-sh-13: 0 1px 1px rgba(20,22,31,.1),0 24px 50px -20px rgba(20,22,31,.45);
  --home-fs-9-5px: 9.5px;
  --home-r-7px: 7px;
  --home-fs-9px: 9px;
  --home-r-8px: 8px;
  --home-fs-2-3cqh: 2.3cqh;
--home-fs-6-5px: 6.5px;
  --home-c-4b574f: #4b574f;
  --home-sh-14: 0 4px 10px -4px rgba(20,22,31,.35);
  --home-sh-15: inset 0 0 0 1.2px rgba(20,22,31,.24);
  --home-c-7c8c72: #7c8c72;
  --home-c-2e6b4f: #2e6b4f;
  --home-c-57664f: #57664f;
  --home-sh-16: 0 -8px 24px -10px rgba(20,22,31,.3);
  --home-fs-10px: 10px;
  --home-fs-26px: 26px;
  --home-c-f3f1e8: #f3f1e8;
  /* The evening's clock is 2.72 times its size wide, so it is held to the room its words have before the pictures. */
  --home-fs-clamp-84px-12vw-210px: clamp(84px,min(12vw,var(--home-copy,999px) / 2.85),210px);
  --home-fs-clamp-24px-2-5vw-40px: clamp(24px,2.5vw,40px);
  --home-sh-17: 0 0 0 1px rgba(243,241,232,.16),0 40px 80px -30px rgba(0,0,0,.55);
  --home-r-20px: 20px;
  --home-sh-18: 0 -10px 30px -10px rgba(20,22,31,.3);
  --home-c-rgba-13-15-23-72: rgba(13,15,23,.72);
  --home-sh-19: 0 24px 60px -24px rgba(20,22,31,.4);
  --home-c-eef2e8: #eef2e8;
  --home-sh-20: 0 20px 44px -18px rgba(0,0,0,.7);
  --home-fs-23vw: 23vw;
  --home-fs-24px: 24px;
  --home-fs-clamp-30px-4-6vw-76px: clamp(30px,4.6vw,76px);
  --home-r-28px: 28px;
  --home-c-141d18: #141d18;
  --home-fs-clamp-26px-3-1vw-48px: clamp(26px,3.1vw,48px);
  --home-c-1b2620: #1b2620;
  --home-r-4px: 4px;
  --home-sh-21: 0 20px 40px -16px rgba(0,0,0,.6);
  --home-fs-clamp-36px-6vw-104px: clamp(36px,6vw,104px);
  --home-fs-clamp-17px-1-5vw-22px: clamp(17px,1.5vw,22px);
  --home-fs-clamp-64px-8vw-128px: clamp(64px,8vw,128px);
  --home-fs-22em: .22em;
  --home-c-rgba-242-216-162-12: rgba(242,216,162,.12);
  --home-fs-clamp-18px-1-6vw-24px: clamp(18px,1.6vw,24px);
  --home-fs-clamp-46px-8-7vw-158px: clamp(46px,8.7vw,158px);
  --home-fs-clamp-12px-1-02vw-15px: clamp(12px,1.02vw,15px);
  --home-c-efeae2: #efeae2;
  --home-r-2px: 2px;
  --home-sh-22: 0 14px 28px -14px rgba(27,38,32,.55),0 1px 2px rgba(27,38,32,.18);
  --home-fs-clamp-36px-5vw-84px: clamp(36px,5vw,84px);
  --home-c-rgba-24-28-60-12: rgba(24,28,60,.12);
  --home-fs-clamp-17px-1-5vw-21px: clamp(17px,1.5vw,21px);
  --home-fs-0: 0;
  --home-r-99px: 99px;
  --home-fs-11-5px: 11.5px;
  --home-sh-23: 0 1px 2px rgba(20,22,31,.08);
  --home-fs-10-5px: 10.5px;
  --home-c-e4f0e7: #e4f0e7;
  --home-c-23603f: #23603f;
  --home-c-e3e5ee: #e3e5ee;
  --home-c-d5d8e4: #d5d8e4;
  --home-c-rgba-251-251-254-82: rgba(251,251,254,.82);
  --home-c-rgba-24-28-60-08: rgba(24,28,60,.08);
  --home-c-rgba-251-251-254-93: rgba(251,251,254,.93);
  --home-fs-clamp-28px-3-2vw-52px: clamp(28px,3.2vw,52px);
  --home-fs-13-5px: 13.5px;
  --home-fs-clamp-17px-1-35vw-21px: clamp(17px,1.35vw,21px);
  --home-fs-clamp-19px-1-6vw-24px: clamp(19px,1.6vw,24px);
  --home-fs-15-5px: 15.5px;
  --home-sh-24: 0 6px 18px -8px rgba(20,22,31,.35),0 1px 2px rgba(20,22,31,.1);
  --home-sh-25: 0 1px 2px rgba(20,22,31,.08),0 10px 30px -18px rgba(20,22,31,.25);
  --home-c-f4f5fa: #f4f5fa;
  --home-c-rgba-243-241-232-08: rgba(243,241,232,.08);
  --home-c-rgba-243-241-232-28: rgba(243,241,232,.28);
  --home-c-rgba-243-241-232-14: rgba(243,241,232,.14);
  --home-c-rgba-13-15-23-18: rgba(13,15,23,.18);
}
