/* shared/ui: the Studio design tokens, the same values d-talk uses (tingyu, web/d-talk/dtalk.css). Change here once. */
:root{color-scheme:light;--bg:#e9ebea;--ink:#111;--muted:#11111199;--line:#11111126;--red:#f2400f;--bar:#0b0b0b;
  --paper:#f2f0ea;--radius:.6rem;--page-ratio:210/297;
  font-family:"Helvetica Neue",system-ui,-apple-system,"PingFang TC",sans-serif;color:var(--ink)}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;background:var(--bg)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

/* Dark theme (the light/dark button in d-talk's top bar; a page opts in by loading shared/lib/theme-boot.js). */
:root[data-theme="dark"]{color-scheme:dark;--bg:#1b1c1c;--ink:#ecebe7;--muted:#ecebe799;--line:#ecebe726;--paper:#262727}

/* Glass. Not invented here: these are webchat's settled values (profilo-claude-local-web, web-src/src/app.css at tag
   checkpoint-0.7.85-footer; GeojoLu 2026-11-17: 「注意那個玻璃質感, 之前我們在 webchat 對了很久的」). Line numbers are that tag's.
   - --glass-bg, --glass-blur   l.368  --clw-glass-bg / --clw-glass-blur (light and dark halves of its light-dark())
   - --glass-grain, --glass-edge l.577-578  --clw-aura-glass's noise tile (feTurbulence 1.25, alpha 0-.31, 120px) and
     --clw-aura-edge (white 45 %); light theme only there, and here
   - --fade-h, --fade-blur      l.711  「渐变的过程可以长一点, 从输入框上到下方完全 blur」 */
:root{--glass-bg:color-mix(in oklab,var(--bg) 55%,transparent);--glass-blur:blur(8px) saturate(180%);
  --glass-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='1' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .31'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 120px 120px repeat;
  --glass-edge:color-mix(in srgb,#fff 45%,transparent);--fade-h:72px;--fade-blur:12px}
:root[data-theme="dark"]{--glass-bg:color-mix(in oklab,color-mix(in oklab,var(--ink) 12%,var(--bg)) 55%,transparent);
  --glass-grain:none;--glass-edge:var(--line)}

/* GeojoLu's palette (decision 2026-11-06, 「暖色系和青色結合」; restated for d-talk 2026-11-17 「你能學一下別人的配色嗎」).
   Six colours per theme, darkest to lightest; orange is the accent. Pages map these onto their semantic tokens; no
   colour is written by hand anywhere else. Sources: his IMG_5343 (light) and IMG_5340 (dark). */
:root{--pal-1:#0A0F14;--pal-2:#0F3D3E;--pal-3:#2E6F73;--pal-4:#7FB3B8;--pal-5:#EADCC8;--pal-accent:#C6601F}
:root[data-theme="dark"]{--pal-1:#1A120E;--pal-2:#3A2418;--pal-3:#6B4A2E;--pal-4:#A88462;--pal-5:#D5C4AE;--pal-6:#4A4A46}
/* Page wash: soft colour fields behind the glass, from the palette (GeojoLu 11-17: beige ground, teal glows, a little
   orange in light; browns in dark). */
:root{--wash-base:var(--pal-5);--wash-a:var(--pal-4);--wash-b:var(--pal-3);--wash-c:var(--pal-accent)}
:root[data-theme="dark"]{--wash-base:var(--pal-1);--wash-a:var(--pal-3);--wash-b:var(--pal-2);--wash-c:var(--pal-4)}
