/* Inter Variable (SIL OFL 1.1, rsms/inter via @fontsource-variable/inter), the
   same face and file as the backoffice: every weight 100-900, no synthesis. */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/static/fonts/InterVariable-latin.woff2') format('woff2-variations'); 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'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/static/fonts/InterVariable-latin-ext.woff2') format('woff2-variations'); 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: 'ABC Arizona'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/custom/arizona/ABCArizona-Regular.woff2') format('woff2'); }
@font-face { font-family: 'ABC Arizona'; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/custom/arizona/ABCArizona-Medium.woff2') format('woff2'); }
@font-face { font-family: 'ABC Arizona'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/custom/arizona/ABCArizona-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Fira Code'; font-weight: 300; font-style: normal; font-display: swap; src: url('/static/fonts/FiraCode-Light.woff2') format('woff2'); }
@font-face { font-family: 'Fira Code'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/FiraCode-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Fira Code'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/FiraCode-SemiBold.woff2') format('woff2'); }

/* Eerste paint zonder opgeslagen thema: Wit, of Zwart op een donker systeem
   (blok hieronder). De engine zet daarna de echte waarden; componenten lezen
   alleen deze semantische tokens. */
:root {
  --bg: #fcfcfc;
  --canvas: #ffffff;
  --fg: #1c1c1c;
  --panel: #ffffff;
  --surface: #ffffff;
  --surface-2: #fefefe;
  --surface-3: #fdfdfd;
  --surface-elevated: #ffffff;
  --surface-hover: #1c1c1c0f;
  --surface-selected: #1c1c1c14;
  --container: #f5f5f5;
  --sidebar-background: #f5f5f5;
  --composer-background: #fdfdfd;
  --border: #1c1c1c1f;
  --border-subtle: #1c1c1c14;
  --border-strong: #1c1c1c3d;
  --red: #1c1c1c;
  --brand: #1c1c1c;
  --accent: #1c1c1c;
  --brand-strong: #181818;
  --accent-hover: #181818;
  --brand-text: #1c1c1c;
  --brand-soft: color-mix(in srgb, #1c1c1c 12%, #fff);
  --text: #1c1c1c;
  --text-primary: #1c1c1c;
  --text-2: #1c1c1cad;
  --text-secondary: #1c1c1cad;
  --text-3: #1c1c1c8f;
  --text-muted: #1c1c1c8f;
  --text-faint: #1c1c1c66;
  --text-2-glass: #1c1c1cad;
  --text-3-glass: #1c1c1c8f;
  --danger: #e0454a;
  --danger-ink: #eb8689;
  --danger-soft: color-mix(in srgb, #e0454a 10%, #fff);
  --danger-line: color-mix(in srgb, #e0454a 22%, #fff);
  --warn: #d97a06;
  --warn-ink: #e6a95d;
  --warn-soft: color-mix(in srgb, #d97a06 10%, #fff);
  --warn-line: color-mix(in srgb, #d97a06 22%, #fff);
  --caution: #ca9e03;
  --caution-ink: #ddc05b;
  --caution-soft: color-mix(in srgb, #ca9e03 10%, #fff);
  --caution-line: color-mix(in srgb, #ca9e03 22%, #fff);
  --ok: #15a05c;
  --ok-ink: #67c195;
  --ok-soft: color-mix(in srgb, #15a05c 10%, #fff);
  --ok-line: color-mix(in srgb, #15a05c 22%, #fff);
  --info: #2f6feb;
  --info-ink: #78a1f2;
  --info-soft: color-mix(in srgb, #2f6feb 10%, #fff);
  --info-line: color-mix(in srgb, #2f6feb 22%, #fff);
  --contract: #19c5c0;
  --contract-strong: #39cdc9;
  --contract-ink: #6ad9d6;
  --contract-soft: color-mix(in srgb, #19c5c0 10%, #fff);
  --contract-line: color-mix(in srgb, #19c5c0 22%, #fff);
  --on-brand: #ffffff;
  /* Derde kleur (pop): de engine zet hem per thema. Tot dan, en bij een oude
     cache, is pop het accent: dezelfde tokens, geen derde laag. */
  --pop: var(--accent);
  --pop-text: var(--brand-text);
  --on-pop: var(--on-brand);
  --pop-soft: var(--brand-soft);
  --pop-line: color-mix(in srgb, var(--accent) 22%, var(--surface));
  --pop-glow: color-mix(in srgb, var(--accent) 28%, transparent);
  --spark: var(--accent);
  /* Agentkleuren: de engine zet ze per thema uit de merken; tot dan het accent. */
  --agent-ink: var(--accent); --agent-brown: var(--accent); --agent-red: var(--accent); --agent-orange: var(--accent);
  --agent-amber: var(--accent); --agent-green: var(--accent); --agent-turquoise: var(--accent); --agent-blue: var(--accent);
  --agent-purple: var(--accent); --agent-pink: var(--accent); --agent-grey: var(--accent); --agent-cream: var(--accent);
  --focus-ring: #1c1c1c;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent, #1c1c1c) 40%, transparent);
  --ring-shadow: var(--ring);
  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 4px 12px rgba(0,0,0,.45);
  --e3: 0 16px 40px rgba(0,0,0,.55);
  /* Alleen de kleur-component, voor schaduwen met een eigen geometrie (een
     omhoog geworpen sheet-schaduw, een custom offset) die verder dezelfde
     "schaduw is altijd donker, ongeacht thema"-conventie volgen als e1/e2/e3. */
  --rf-shadow-color: rgba(0,0,0,.45);

  --shell-bg: var(--color-surface);
  --shell-bg-2: var(--color-surface-raised);
  --shell-text: var(--color-text-muted);
  --shell-text-strong: var(--color-text);
  --shell-muted: var(--color-text-muted);
  --shell-hover: color-mix(in srgb, var(--color-text) 8%, transparent);
  --shell-active: color-mix(in srgb, var(--accent, #1c1c1c) 24%, transparent);
  --shell-active-text: var(--color-text);
  --shell-border: var(--color-border);
  --shell-accent: var(--accent, #1c1c1c);
  --shell-field: color-mix(in srgb, var(--color-text) 7%, transparent);
  --shell-field-strong: color-mix(in srgb, var(--color-text) 10%, transparent);
  --shell-logo-filter: none;
  /* Semantische laag. Engine blijft de bron; componenten leunen hierop. */
  --color-canvas: var(--bg);
  --color-surface: var(--surface, var(--panel));
  --color-surface-raised: var(--surface-2, var(--surface-elevated, var(--panel)));
  --color-border: var(--border);
  --color-text: var(--text, var(--fg));
  --color-text-muted: var(--text-2, var(--text-secondary, var(--fg)));
  --color-accent: var(--accent, var(--brand, var(--red)));
  --color-accent-hover: var(--accent-hover, var(--brand-strong, var(--color-accent)));
  --color-focus: var(--focus-ring, var(--color-accent));
  --color-success: var(--ok);
  --color-warning: var(--warn);
  --color-danger: var(--danger);
  --color-error: var(--danger);
  --color-error-light: var(--danger);
  --color-recording: var(--danger);
  --color-recording-hover: var(--danger);
  --color-save-green: var(--ok);
  --green: var(--ok);
  --color-muted: var(--color-text-muted);
  --color-muted-alt: var(--color-text-muted);
  --color-brand-blue: var(--color-accent);
  --color-agent-active: var(--color-success);
  --color-link-hover: var(--color-accent-hover);
  --color-subheader: var(--color-text-muted);
  --color-blind-orange: var(--color-warning);
  --accent-warm: var(--color-accent);

  --rf-bg-0: var(--color-canvas);
  --rf-bg-1: var(--color-surface);
  --rf-bg-2: var(--color-surface-raised);
  --rf-bg-3: color-mix(in srgb, var(--color-surface) 86%, var(--color-text));

  --rf-border: var(--color-border);
  --rf-border-focus: var(--color-focus);

  --rf-text-0: var(--color-text);
  --rf-text-1: var(--color-text-muted);
  --rf-text-2: var(--color-text-muted);

  --rf-accent: var(--color-accent);
  --rf-accent-hover: var(--color-accent-hover);
  --rf-accent-muted: color-mix(in srgb, var(--color-accent) 22%, transparent);
  --rf-accent-subtle: color-mix(in srgb, var(--color-accent) 12%, transparent);

  --rf-success: var(--color-success);
  --rf-warning: var(--color-warning);
  --rf-error: var(--color-danger);
  --rf-info: var(--color-accent);

  /* Glans-hoogsel bovenin een op --brand gekleurde knop (rf-btn-primary).
     Zit altijd op een gekleurd vlak, niet op de canvas-achtergrond, dus
     licht/donker geeft dezelfde witte sheen — vast per ontwerp. */
  --rf-btn-sheen: rgba(255,255,255,.2);
  --rf-btn-sheen-strong: rgba(255,255,255,.22);
  /* Zelfde categorie: het lichtpunt waar een verlopende knop naartoe ophelt
     (color-mix(... var(--brand) 93%, var(--rf-gloss))). Losstaand van
     --on-brand (dat is de leesbare TEKSTkleur op het merkvlak; dit is een
     decoratief hoogsel, altijd wit). */
  --rf-gloss: #fff;
  /* Het donkere tegenovergestelde: het mengpunt waar een hover/actieve staat
     naartoe verdonkert (color-mix(... 85%, var(--rf-shade))), en de opaque
     marker in de CSS mask-image-truc (--rf-mask-ring hierboven) —
     zwart = volledig zichtbaar in een mask, geen kleur. */
  --rf-shade: #000;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --rf-space-1: var(--s1);
  --rf-space-2: var(--s2);
  --rf-space-3: var(--s3);
  --rf-space-4: var(--s4);
  --rf-space-5: var(--s5);
  --rf-space-6: var(--s6);
  --rf-space-8: var(--s8);
  --rf-space-10: 40px;
  --rf-space-12: 48px;
  --rf-space-16: 64px;

  /* De fontkeuze geldt ook voor navigatie, formulieren en losse pagina's. */
  --rf-font: var(--font-family, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --rf-mono: var(--rf-font);
  --font: var(--rf-font);
  --mono: var(--rf-font);
  --rf-control-height: 34px;
  --rf-header-height: 52px;
  /* Gesprekslayout: leeskolom, gesprekskop en zijpaneel. */
  --rf-transcript-col: 740px;
  --rf-conversation-header: 46px;
  --rf-context-pane: 320px;
  --rf-roster-w: 274px;
  --rf-row-h: 60px;
  /* Grok Bot-rollen bovenop het thema (live gemeten op de reconstructie):
     hover 6%, actief 8%, pil 5% inkt; de gebruikersbubbel is inkt op paneel. */
  --rf-hover: color-mix(in srgb, var(--fg) 6%, transparent);
  --rf-active: color-mix(in srgb, var(--fg) 8%, transparent);
  --rf-pill: color-mix(in srgb, var(--fg) 5%, var(--panel));
  --rf-secondary: color-mix(in srgb, var(--fg) 68%, transparent);
  --rf-tertiary: color-mix(in srgb, var(--fg) 56%, transparent);
  --rf-muted: color-mix(in srgb, var(--fg) 40%, transparent);
  /* Bubbels zoals Grok Bot 0.75.5 op elke chat: jouw bericht is inkt (licht)
     of 18% inkt (donker), het antwoord 6% (licht) of 4% (donker) inkt. */
  --rf-bubble-user-bg: var(--gb-bubble-user);
  --rf-bubble-user-text: var(--gb-bubble-user-text);
  --rf-bubble-bot-bg: color-mix(in srgb, var(--text) 6%, transparent);
  --user-bubble-bg: var(--rf-bubble-user-bg);
  --ai-bubble-bg: var(--rf-bubble-bot-bg);
  /* Achtergrond achter een dialoog (referentie: zwart op 53%). */
  --rf-scrim: rgb(0 0 0 / 53%);
  --rf-page-padding: 20px;

  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-body: 14px;
  --fs-h2: 15px;
  --fs-h1: 21px;
  --fs-xl: 26px;
  --fs-num: 30px;
  --fs-display: 38px;
  --rf-text-xs: var(--fs-2xs);
  --rf-text-sm: var(--fs-xs);
  --rf-text-base: var(--fs-body);
  --rf-text-md: var(--fs-h2);
  --rf-text-lg: var(--fs-h1);
  --rf-text-xl: var(--fs-xl);
  --rf-text-2xl: var(--fs-num);
  --rf-text-display: var(--fs-display);

  --rf-leading-tight: 1.25;
  --rf-leading-normal: 1.45;
  --rf-leading-relaxed: 1.625;

  --rf-weight-normal: 400;
  --rf-weight-medium: 500;
  --rf-weight-semibold: 600;
  --rf-weight-bold: 700;
  --rf-weight-extrabold: 800;

  /* Radiusschaal. --r-sm blijft het Polpo-contract (10px); de Grok Bot-maten
     (styles.css) staan ernaast: 8 menuregel, 12 rij en klein menu, 14 kaart
     en popover, 16 dialoog, 18 bubbel, 20 chatbalk. */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-row: 12px;
  --r-md: 14px;
  --r-dialog: 16px;
  --r-bubble: 18px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;
  --rf-radius-sm: var(--r-sm);
  --rf-radius: var(--r-md);
  --rf-radius-lg: var(--r-lg);
  --rf-radius-xl: var(--r-xl);
  --rf-radius-2xl: var(--r-2xl);
  --rf-radius-pill: var(--r-pill);
  /* Iconknop in de koppen: spookknop van 32px, icoon 18px in tekst-2.
     Radius en hover per thema in colourways.js. */
  --rf-icon-btn-size: 32px;
  --rf-icon-btn-icon: 18px;
  --rf-icon-btn-ink: var(--text-2);
  --rf-icon-btn-radius: 8px;
  --rf-icon-btn-hover: var(--surface-hover);
  /* Menurij: geen vlak in rust, een lichte tint onder de muis of met
     toetsenbordfocus. Waarden per thema in colourways.js. */
  --rf-menu-hover: var(--surface-hover);
  --rf-menu-row-radius: 8px;
  --rf-menu-shadow: var(--gb-shadow);

  /* Eén laag per schaduw. De gestapelde dubbele schaduwen lieten elk kaartje
     zweven; hoogte hoort iets te betekenen, niet de standaardtoestand te zijn.
     Vlakken scheiden doen we met een rand, niet met wazigheid. */
  --rf-shadow-sm: var(--e1);
  --rf-shadow: var(--e2);
  --rf-shadow-lg: var(--e3);
  --rf-shadow-glow: var(--ring);

  --dur-fast: 120ms;
  --dur: 200ms;
  --ease: cubic-bezier(.2,.7,.3,1);
  --rf-dur-fast: var(--dur-fast);
  --rf-dur: var(--dur);
  --rf-dur-slow: 350ms;

  --rf-ease: var(--ease);
  --rf-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Snelle veer zonder doorschieten: secties en uitklappen (260 ms). */
  --rf-ease-spring-fast: linear(0, .056 4%, .177 8%, .316 12%, .449 16%, .567 20%, .665 24%, .745 28%, .808 32%, .857 36%, .894 40%, .943 48%, .97 56%, .985 64%, .992 72%, .998 90%, 1);
  --rf-dur-section: 260ms;
  --rf-ease-dialog-in: cubic-bezier(.165, .84, .44, 1);
  --rf-ease-dialog-out: cubic-bezier(.4, 0, 1, 1);
  --rf-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --rf-glass-bg: color-mix(in srgb, var(--color-surface) 78%, transparent);
  --rf-glass-blur: 16px;
  --rf-glass-border: var(--color-border);

  /* Backdrop-filter recipes voor overlays/modals buiten het liquid-glass-thema.
     Elke context zet zijn eigen waarde; de declaratie zelf blijft var(..., none)
     zodat alleen echte overlays het effect krijgen. */
  --rf-backdrop-modal: blur(3px);
  --rf-backdrop-fab: blur(10px);
  --rf-backdrop-settings-scrim: blur(4px);
  --rf-backdrop-mobile-rail: blur(18px) saturate(135%);

  /* Gedeeld mask-recept voor een gradient-rand-ring (XOR van content-box en
     border-box) — puur een alpha-mask, geen zichtbare kleurovergang. */
  --rf-mask-ring: linear-gradient(var(--rf-shade) 0 0) content-box, linear-gradient(var(--rf-shade) 0 0);

  /* Edge-fade masks: an overflowing strip dissolves into the bar instead of
     being hard-cut. Alpha masks only, no visible color gradient. */
  --rf-mask-fade-both: linear-gradient(to right, transparent 0, var(--rf-shade) 18px, var(--rf-shade) calc(100% - 18px), transparent 100%);
  --rf-mask-fade-left: linear-gradient(to right, var(--rf-shade) 0, var(--rf-shade) calc(100% - 18px), transparent 100%);
  --rf-mask-fade-right: linear-gradient(to right, transparent 0, var(--rf-shade) 18px, var(--rf-shade) 100%);
  --rf-mask-fade-bottom: linear-gradient(to bottom, var(--rf-shade) 70%, transparent);

  /* Gedeelde agent-avatar gradient (paars, geen per-agent hue gezet). */
  --rf-grad-agent-avatar-default: linear-gradient(135deg, hsl(262 70% 60%), hsl(292 72% 48%));

  /* Gedeelde primaire knop: vlak merkvlak, zoals Grok Bot en polpo-design (een
     hoogsel bovenin zakte in Zwart onder AA). Een thema mag de hover zetten. */
  --rf-grad-btn-primary: linear-gradient(var(--brand), var(--brand));
  --rf-grad-btn-primary-hover: linear-gradient(var(--brand), var(--brand));

  /* Verticale fade-mask, zelfde recept als de horizontale --rf-mask-fade-*. */
  --rf-mask-fade-vertical: linear-gradient(to bottom, transparent, var(--rf-shade) 18px, var(--rf-shade) calc(100% - 18px), transparent);

  /* Tint-lagen: structuur door vlakverschil in plaats van hairlines. Afgeleid van
     --fg, dus ze volgen light en dark mee. 1 = rust-vlak, 2 = hover/badge, 3 = selectie. */
  --tint-1: color-mix(in srgb, var(--fg) 4%, transparent);
  --tint-2: color-mix(in srgb, var(--fg) 7%, transparent);
  --tint-3: color-mix(in srgb, var(--fg) 10%, transparent);
  /* Agents-venster (gb = referentie-chat): vlakken, inkt en lijnen. Aliassen
     van de thematokens, zodat Agents elk thema volgt; per modus verschilt
     alleen de dekking van een paar mengsels (blok :root.dark hieronder). */
  --gb-pane: var(--surface);
  --gb-chrome: var(--bg);
  --gb-sidebar: var(--sidebar-background);
  --gb-ink: var(--text);
  --gb-secondary: var(--text-2);
  --gb-tertiary: var(--text-3);
  --gb-muted: var(--text-faint);
  --gb-line: var(--border-subtle);
  --gb-hover: var(--surface-hover);
  --gb-active: var(--surface-selected);
  --gb-pill: color-mix(in srgb, var(--text) 5%, var(--surface));
  --gb-elevated: var(--surface-elevated);
  --gb-stage: color-mix(in srgb, var(--text) 4%, var(--surface));
  --gb-shadow: 0 12px 40px #0002, 0 0 0 .5px #0002;
  --gb-hairline: #0002;
  --gb-composer-shadow: 0 2px 8px -1px #0000000d, 0 1px 2px #00000008, 0 0 0 1px #e4e4e40a;
  --gb-composer-line: var(--border);
  --gb-composer-line-hover: var(--border-strong);
  --gb-btn-secondary-hover: color-mix(in srgb, var(--text) 10%, transparent);
  --gb-accent: var(--accent);
  --gb-on-colour: #fff;
  --gb-account-fill: #6b6b70; /* accountknop linksonder, gelijk in elk thema */
  --gb-bubble-user: var(--text);
  --gb-bubble-user-text: var(--surface);
  /* Tabelkaart (Grok Bot 0.75.5): ring, rijlijn en kaartschaduw. */
  --gb-table-ring: var(--border);
  /* Links en citaatbalk in antwoorden (Grok Bot 0.75.5). */
  --gb-link: var(--brand-text);
  --gb-quote-bar: var(--border-strong);
  --gb-table-rule: color-mix(in srgb, var(--text) 6%, transparent);
  --gb-shadow-card: color-mix(in srgb, var(--text) 3.5%, transparent);

  /* Agents-venster: typografie van de referentie (grok-replica styles.css:8-14,26,
     chat-content.css:10-29, transcript-unread.css:2). Lettertype blijft het
     platformfont (Inter Variable: 420 en 550 bestaan echt, het is een variabel
     font); mono is het platform-codefont. Maten in px, regelhoogtes zoals de
     referentie ze noemt (getal = factor, px = vast). */
  --gb-mono: var(--code-font, 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace);
  --gb-fw-regular: 400;
  --gb-fw-base: 420;
  --gb-fw-medium: 500;
  --gb-fw-strong: 550;
  --gb-fw-bold: 600;
  --gb-fs-base: 14px;
  --gb-lh-base: 1.43;
  --gb-fs-small: 12px;
  --gb-fs-footnote: 10px;
  --gb-fs-meta: 11px;
  --gb-lh-meta: 16px;
  --gb-fs-menu: 13px;
  --gb-fs-menu-head: 11px;
  --gb-fs-section: 15px;
  --gb-fs-h1: 17px;
  --gb-lh-h1: 24px;
  --gb-fs-settings-h2: 19px;
  --gb-fs-detail-h1: 22px;
  --gb-fs-preview-h1: 26px;
  /* Antwoordtekst (chat-content.css): proza 22px, koppen, code. */
  --gb-lh-prose: 22px;
  --gb-prose-h1-fs: 22px;
  --gb-prose-h1-lh: 28px;
  --gb-prose-h1-ls: -.012em;
  --gb-prose-h2-fs: 17px;
  --gb-prose-h2-lh: 24px;
  --gb-prose-h2-ls: -.008em;
  --gb-msg-h-fs: 18px;
  --gb-msg-h-lh: 1.3;
  --gb-code-fs: .93em;
  --gb-code-pad: 4px;
  --gb-code-radius: 4px;
  --gb-code-bg: color-mix(in srgb, var(--text) 4%, transparent);
  --gb-code-ink: var(--gb-secondary);
  --gb-pre-fs: 13px;
  --gb-pre-lh: 20px;
  --gb-pre-pad: 8px 12px;
  --gb-pre-radius: 8px;
  --gb-prose-gap: 10px;
  --gb-list-indent: 20px;
  --gb-list-indent-nested: 16px;
  --gb-list-gap: 4px;
  --gb-lh-user: 20px;
}

/* ::backdrop erft geen custom properties van :root; daarom hier opnieuw. */
::backdrop { --rf-scrim: rgb(0 0 0 / 53%); }

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #121212;
    --canvas: #121212;
    --fg: #f5f5f5;
    --panel: #161616;
    --surface: #161616;
    --surface-2: #171717;
    --surface-3: #1a1a1a;
    --surface-elevated: #1f1f1f;
    --surface-hover: #f5f5f50f;
    --surface-selected: #f5f5f514;
    --container: #0e0e0e;
    --sidebar-background: #0e0e0e;
    --composer-background: #1e1e1e;
    --border: #f5f5f51a;
    --border-subtle: #f5f5f50f;
    --border-strong: #f5f5f538;
    --red: #f5f5f5;
    --brand: #f5f5f5;
    --accent: #f5f5f5;
    --brand-text: #f5f5f5;
    --brand-strong: #f6f6f6;
    --accent-hover: #f6f6f6;
    --brand-soft: color-mix(in srgb, #f5f5f5 20%, #161616);
    --text: #f5f5f5;
    --text-primary: #f5f5f5;
    --text-2: #f5f5f5a8;
    --text-secondary: #f5f5f5a8;
    --text-3: #f5f5f58a;
    --text-muted: #f5f5f58a;
    --text-faint: #f5f5f561;
    --on-brand: #111111;
    --focus-ring: #f5f5f5;
  }
}

:root.dark {
  --rf-bubble-bot-bg: color-mix(in srgb, var(--text) 4%, transparent);
  --gb-shadow: 0 12px 40px #0006, 0 0 0 .5px #ffffff26;
  --gb-bubble-user: color-mix(in srgb, var(--text) 18%, transparent);
  --gb-bubble-user-text: var(--text);
  --gb-table-rule: color-mix(in srgb, var(--text) 4%, transparent);
  --gb-shadow-card: transparent;
}
