/* Mè, prototype. Tokens per theme, then contexts (hero, hero2, pale, night), then components. */

:root {
  --font: 'Onest', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --w-light: 300; --w-bold: 500;
  --pill: 999px; --panel-r: 32px; --card-r: 22px;
  --swatch-morning: linear-gradient(170deg, #C9A88F 0%, #B08A74 45%, #5E4A3E 100%);
  --swatch-bluehour: linear-gradient(170deg, #8FA5BA 0%, #6F8399 45%, #2E3A48 100%);
  --swatch-dark: linear-gradient(170deg, #1E2228 0%, #15181D 50%, #0B0D10 100%);
  --swatch-pastel: linear-gradient(170deg, #F2D9D2 0%, #DED4EC 50%, #C7D5EA 100%);
  --swatch-mono: linear-gradient(170deg, #D9D9D6 0%, #C2C2BF 50%, #A9A9A6 100%);
}

/* ---------- Theme: Morning glass ---------- */
[data-theme="morning"] {
  --font: 'Onest', system-ui, sans-serif; --w-light: 300; --w-bold: 500;
  --hero-bg: linear-gradient(170deg, #C9A88F 0%, #B08A74 45%, #5E4A3E 100%);
  --hero-b1: rgba(255,214,170,0.7); --hero-b2: rgba(240,150,110,0.5);
  --hero-scrim: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 35%, rgba(40,26,18,0) 45%, rgba(40,26,18,0.35) 65%, rgba(40,26,18,0.55) 100%);
  --hero-top-ink: #2A211B; --hero-top-line: rgba(42,33,27,0.45);
  --hero-ink: #FFFFFF; --hero-muted: rgba(255,255,255,0.92); --hero-line: rgba(255,255,255,0.55);
  --hero-glass: rgba(255,255,255,0.18); --hero-glass-border: rgba(255,255,255,0.5);
  --hero-strong: rgba(255,255,255,0.32); --hero-strong-border: rgba(255,255,255,0.6); --hero-strong-fg: #FFFFFF;
  --dot: #FFFFFF; --dot-ink: #2A211B;
  --hero2-bg: linear-gradient(180deg, #6E5243 0%, #86675A 45%, #4A3A32 100%);
  --hero2-b1: rgba(255,190,140,0.7); --hero2-b2: rgba(255,220,190,0.6);
  --hero2-scrim: linear-gradient(180deg, rgba(40,26,18,0.5) 0%, rgba(40,26,18,0) 22%, rgba(40,26,18,0) 40%, rgba(40,26,18,0.45) 62%, rgba(40,26,18,0.62) 100%);
  --night-bg: #120D0A; --night-glow: radial-gradient(circle, rgba(242,184,120,0.7) 0%, rgba(242,184,120,0.22) 22%, rgba(242,184,120,0.04) 48%, rgba(242,184,120,0) 70%);
  --night-ink: #F6F1EA; --night-body: rgba(246,241,234,0.86); --night-muted: #A89E93; --night-line: rgba(255,255,255,0.35);
  --night-glass: rgba(255,255,255,0.06); --night-glass-border: rgba(255,255,255,0.2); --night-dot: #F2B878;
  --pale-bg: linear-gradient(160deg, #F4E6DA 0%, #EAD8CC 50%, #E2CFC4 100%);
  --pale-b1: rgba(246,193,140,0.5); --pale-b2: rgba(240,170,150,0.45); --pale-b3: rgba(255,225,200,0.6);
  --pale-ink: #2A211B; --pale-muted: rgba(42,33,27,0.66);
  --pale-glass: rgba(255,255,255,0.32); --pale-glass-border: rgba(255,255,255,0.7);
  --pale-strong: rgba(255,255,255,0.55); --pale-strong-border: rgba(255,255,255,0.85);
  --chip-sel: rgba(255,255,255,0.6); --chip-sel-border: rgba(255,255,255,0.85); --chip-sel-fg: #2A211B;
  --voice: #D9835A; --c1: rgba(246,193,119,0.65); --c2: rgba(240,150,120,0.6); --c3: rgba(214,170,140,0.55);
  --cta-bg: #2A211B; --cta-fg: #F4E6DA; --theme-color: #5E4A3E;
}
/* ---------- Theme: Blue hour glass ---------- */
[data-theme="bluehour"] {
  --font: 'Hanken Grotesk', system-ui, sans-serif; --w-light: 300; --w-bold: 500;
  --hero-bg: linear-gradient(170deg, #8FA5BA 0%, #6F8399 45%, #2E3A48 100%);
  --hero-b1: rgba(150,180,210,0.6); --hero-b2: rgba(230,170,130,0.42);
  --hero-scrim: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 35%, rgba(20,30,44,0) 45%, rgba(20,30,44,0.36) 65%, rgba(20,30,44,0.58) 100%);
  --hero-top-ink: #14202C; --hero-top-line: rgba(20,32,44,0.45);
  --hero-ink: #FFFFFF; --hero-muted: rgba(255,255,255,0.92); --hero-line: rgba(255,255,255,0.55);
  --hero-glass: rgba(255,255,255,0.16); --hero-glass-border: rgba(255,255,255,0.45);
  --hero-strong: rgba(255,255,255,0.3); --hero-strong-border: rgba(255,255,255,0.55); --hero-strong-fg: #FFFFFF;
  --dot: #FFFFFF; --dot-ink: #14202C;
  --hero2-bg: linear-gradient(180deg, #34475A 0%, #4E6478 45%, #22303D 100%);
  --hero2-b1: rgba(230,160,120,0.6); --hero2-b2: rgba(250,200,170,0.5);
  --hero2-scrim: linear-gradient(180deg, rgba(20,30,44,0.55) 0%, rgba(20,30,44,0) 22%, rgba(20,30,44,0) 40%, rgba(20,30,44,0.5) 62%, rgba(20,30,44,0.66) 100%);
  --night-bg: #070A10; --night-glow: radial-gradient(circle, rgba(190,210,235,0.7) 0%, rgba(190,210,235,0.22) 22%, rgba(190,210,235,0.04) 48%, rgba(190,210,235,0) 70%);
  --night-ink: #EEF2F7; --night-body: rgba(238,242,247,0.86); --night-muted: #94A0AE; --night-line: rgba(255,255,255,0.35);
  --night-glass: rgba(255,255,255,0.06); --night-glass-border: rgba(255,255,255,0.2); --night-dot: #DCE8F5;
  --pale-bg: linear-gradient(160deg, #DCE4EC 0%, #CFD9E3 50%, #C6D1DC 100%);
  --pale-b1: rgba(157,180,200,0.6); --pale-b2: rgba(185,167,245,0.4); --pale-b3: rgba(255,255,255,0.6);
  --pale-ink: #14202C; --pale-muted: rgba(20,32,44,0.66);
  --pale-glass: rgba(255,255,255,0.3); --pale-glass-border: rgba(255,255,255,0.65);
  --pale-strong: rgba(255,255,255,0.52); --pale-strong-border: rgba(255,255,255,0.85);
  --chip-sel: rgba(255,255,255,0.6); --chip-sel-border: rgba(255,255,255,0.85); --chip-sel-fg: #14202C;
  --voice: #5B8AA6; --c1: rgba(125,211,192,0.6); --c2: rgba(157,180,220,0.6); --c3: rgba(185,167,245,0.55);
  --cta-bg: #14202C; --cta-fg: #DCE4EC; --theme-color: #2E3A48;
}
/* ---------- Theme: Dark glass ---------- */
[data-theme="dark"] {
  --font: 'Onest', system-ui, sans-serif; --w-light: 300; --w-bold: 500;
  --hero-bg: linear-gradient(170deg, #1E2228 0%, #15181D 50%, #0B0D10 100%);
  --hero-b1: rgba(200,140,100,0.38); --hero-b2: rgba(120,140,170,0.28);
  --hero-scrim: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  --hero-top-ink: #F3F1EE; --hero-top-line: rgba(255,255,255,0.35);
  --hero-ink: #F3F1EE; --hero-muted: rgba(243,241,238,0.8); --hero-line: rgba(255,255,255,0.35);
  --hero-glass: rgba(255,255,255,0.06); --hero-glass-border: rgba(255,255,255,0.2);
  --hero-strong: rgba(255,255,255,0.16); --hero-strong-border: rgba(255,255,255,0.35); --hero-strong-fg: #F3F1EE;
  --dot: #FFFFFF; --dot-ink: #0B0D10;
  --hero2-bg: linear-gradient(180deg, #1A1E24 0%, #14171C 50%, #0B0D10 100%);
  --hero2-b1: rgba(230,150,100,0.42); --hero2-b2: rgba(250,200,170,0.3);
  --hero2-scrim: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  --night-bg: #050506; --night-glow: radial-gradient(circle, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.28) 22%, rgba(255,255,255,0.05) 48%, rgba(255,255,255,0) 70%);
  --night-ink: #F3F1EE; --night-body: rgba(243,241,238,0.86); --night-muted: #8C8A86; --night-line: rgba(255,255,255,0.35);
  --night-glass: rgba(255,255,255,0.06); --night-glass-border: rgba(255,255,255,0.22); --night-dot: #F3F1EE;
  --pale-bg: linear-gradient(160deg, #17191E 0%, #101216 100%);
  --pale-b1: rgba(185,167,245,0.22); --pale-b2: rgba(245,163,179,0.2); --pale-b3: rgba(157,180,200,0.24);
  --pale-ink: #F3F1EE; --pale-muted: rgba(243,241,238,0.72);
  --pale-glass: rgba(255,255,255,0.06); --pale-glass-border: rgba(255,255,255,0.18);
  --pale-strong: rgba(255,255,255,0.12); --pale-strong-border: rgba(255,255,255,0.28);
  --chip-sel: rgba(255,255,255,0.2); --chip-sel-border: rgba(255,255,255,0.4); --chip-sel-fg: #F3F1EE;
  --voice: #8B7CF6; --c1: rgba(125,211,192,0.4); --c2: rgba(245,163,179,0.4); --c3: rgba(246,193,119,0.4);
  --cta-bg: #F3F1EE; --cta-fg: #0B0D10; --theme-color: #0B0D10;
}
/* ---------- Theme: Pastel glass ---------- */
[data-theme="pastel"] {
  --font: 'Manrope', system-ui, sans-serif; --w-light: 300; --w-bold: 600;
  --hero-bg: linear-gradient(170deg, #F2D9D2 0%, #DED4EC 50%, #C7D5EA 100%);
  --hero-b1: rgba(245,163,179,0.5); --hero-b2: rgba(185,167,245,0.45);
  --hero-scrim: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  --hero-top-ink: #3A2F4A; --hero-top-line: rgba(58,47,74,0.4);
  --hero-ink: #3A2F4A; --hero-muted: rgba(58,47,74,0.72); --hero-line: rgba(58,47,74,0.4);
  --hero-glass: rgba(255,255,255,0.4); --hero-glass-border: rgba(255,255,255,0.75);
  --hero-strong: rgba(255,255,255,0.65); --hero-strong-border: rgba(255,255,255,0.9); --hero-strong-fg: #3A2F4A;
  --dot: #FFFFFF; --dot-ink: #3A2F4A;
  --hero2-bg: linear-gradient(180deg, #E4D2E6 0%, #D6D6EE 45%, #C9D8EA 100%);
  --hero2-b1: rgba(240,170,140,0.6); --hero2-b2: rgba(255,230,210,0.6);
  --hero2-scrim: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  --night-bg: #1A1424; --night-glow: radial-gradient(circle, rgba(245,200,215,0.7) 0%, rgba(245,200,215,0.22) 22%, rgba(245,200,215,0.04) 48%, rgba(245,200,215,0) 70%);
  --night-ink: #F7F2F5; --night-body: rgba(247,242,245,0.86); --night-muted: #AE9FB6; --night-line: rgba(255,255,255,0.35);
  --night-glass: rgba(255,255,255,0.06); --night-glass-border: rgba(255,255,255,0.22); --night-dot: #F5A3B3;
  --pale-bg: linear-gradient(160deg, #EFE2EC 0%, #DFDCF0 50%, #D2DDEE 100%);
  --pale-b1: rgba(185,167,245,0.5); --pale-b2: rgba(245,163,179,0.45); --pale-b3: rgba(157,190,220,0.5);
  --pale-ink: #3A2F4A; --pale-muted: rgba(58,47,74,0.7);
  --pale-glass: rgba(255,255,255,0.34); --pale-glass-border: rgba(255,255,255,0.7);
  --pale-strong: rgba(255,255,255,0.56); --pale-strong-border: rgba(255,255,255,0.88);
  --chip-sel: rgba(255,255,255,0.62); --chip-sel-border: rgba(255,255,255,0.9); --chip-sel-fg: #3A2F4A;
  --voice: #8B7CF6; --c1: rgba(125,211,192,0.65); --c2: rgba(245,163,179,0.65); --c3: rgba(246,193,119,0.6);
  --cta-bg: #3A2F4A; --cta-fg: #FFFFFF; --theme-color: #C7D5EA;
}
/* ---------- Theme: Mono glass ---------- */
[data-theme="mono"] {
  --font: 'Schibsted Grotesk', system-ui, sans-serif; --w-light: 400; --w-bold: 700;
  --hero-bg: linear-gradient(170deg, #D9D9D6 0%, #C2C2BF 50%, #A9A9A6 100%);
  --hero-b1: rgba(90,90,90,0.35); --hero-b2: rgba(255,255,255,0.6);
  --hero-scrim: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  --hero-top-ink: #141414; --hero-top-line: rgba(20,20,20,0.5);
  --hero-ink: #141414; --hero-muted: rgba(20,20,20,0.72); --hero-line: rgba(20,20,20,0.5);
  --hero-glass: rgba(255,255,255,0.14); --hero-glass-border: rgba(20,20,20,0.55);
  --hero-strong: #141414; --hero-strong-border: #141414; --hero-strong-fg: #FFFFFF;
  --dot: #141414; --dot-ink: #FFFFFF;
  --hero2-bg: linear-gradient(180deg, #CFCFCC 0%, #BDBDBA 45%, #A3A3A0 100%);
  --hero2-b1: rgba(150,130,120,0.45); --hero2-b2: rgba(255,255,255,0.5);
  --hero2-scrim: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  --night-bg: #0E0E0E; --night-glow: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.25) 22%, rgba(255,255,255,0.05) 48%, rgba(255,255,255,0) 70%);
  --night-ink: #F2F2F0; --night-body: rgba(242,242,240,0.86); --night-muted: #9A9A97; --night-line: rgba(255,255,255,0.4);
  --night-glass: rgba(255,255,255,0.06); --night-glass-border: rgba(255,255,255,0.3); --night-dot: #FFFFFF;
  --pale-bg: linear-gradient(160deg, #EDEDEA 0%, #E2E2DF 100%);
  --pale-b1: rgba(255,255,255,0.7); --pale-b2: rgba(120,120,118,0.2); --pale-b3: rgba(255,255,255,0);
  --pale-ink: #141414; --pale-muted: rgba(20,20,20,0.68);
  --pale-glass: rgba(255,255,255,0.5); --pale-glass-border: rgba(20,20,20,0.35);
  --pale-strong: rgba(255,255,255,0.75); --pale-strong-border: rgba(20,20,20,0.55);
  --chip-sel: #141414; --chip-sel-border: #141414; --chip-sel-fg: #FFFFFF;
  --voice: #141414; --c1: rgba(20,20,20,0.14); --c2: rgba(20,20,20,0.1); --c3: rgba(20,20,20,0.06);
  --cta-bg: #141414; --cta-fg: #FFFFFF; --theme-color: #A9A9A6;
}

/* ---------- Contexts map theme tokens to generic ones ---------- */
.ctx-hero { --bg: var(--hero-bg); --b1: var(--hero-b1); --b2: var(--hero-b2); --b3: transparent; --scrim: var(--hero-scrim); --ink: var(--hero-ink); --muted: var(--hero-muted); --line: var(--hero-line); --glass: var(--hero-glass); --glass-border: var(--hero-glass-border); --strong: var(--hero-strong); --strong-border: var(--hero-strong-border); --strong-fg: var(--hero-strong-fg); }
.ctx-hero2 { --bg: var(--hero2-bg); --b1: var(--hero2-b1); --b2: var(--hero2-b2); --b3: transparent; --scrim: var(--hero2-scrim); --ink: var(--hero-ink); --muted: var(--hero-muted); --line: var(--hero-line); --glass: var(--hero-glass); --glass-border: var(--hero-glass-border); --strong: var(--hero-strong); --strong-border: var(--hero-strong-border); --strong-fg: var(--hero-strong-fg); }
.ctx-pale { --bg: var(--pale-bg); --b1: var(--pale-b1); --b2: var(--pale-b2); --b3: var(--pale-b3); --scrim: none; --ink: var(--pale-ink); --muted: var(--pale-muted); --line: var(--pale-muted); --glass: var(--pale-glass); --glass-border: var(--pale-glass-border); --strong: var(--pale-strong); --strong-border: var(--pale-strong-border); --strong-fg: var(--pale-ink); }
.ctx-night { --bg: var(--night-bg); --ink: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); --glass: var(--night-glass); --glass-border: var(--night-glass-border); --strong: var(--night-glass); --strong-border: var(--night-glass-border); --strong-fg: var(--night-ink); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { height: 100%; background: #0B0B0D; }
body { margin: 0; min-height: 100%; font-family: var(--font); -webkit-font-smoothing: antialiased; color: #F3F1EE; background: #0B0B0D; }
.app { position: relative; width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto; overflow: hidden; }
@media (min-width: 720px) {
  body { display: grid; place-items: center; padding: 24px 0; }
  .app { min-height: 860px; height: calc(100dvh - 48px); max-height: 940px; border-radius: 44px; box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
}
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--bg); color: var(--ink); }
.screen[hidden] { display: none; }
.screen-inner { position: relative; z-index: 2; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top, 32px)) 24px calc(24px + env(safe-area-inset-bottom, 8px)); }
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; display: block; filter: blur(60px); }
.blob.b1 { left: 38%; top: -14%; width: 92%; height: 44%; background: var(--b1); }
.blob.b2 { left: 22%; top: 36%; width: 108%; height: 66%; background: var(--b2); filter: blur(64px); }
.blob.b3 { left: -20%; top: 14%; width: 82%; height: 38%; background: var(--b3); }
.bubbles .c1 { left: -15%; top: 56%; width: 66%; height: 31%; background: var(--c1); filter: blur(48px); }
.bubbles .c2 { left: 46%; top: 62%; width: 72%; height: 33%; background: var(--c2); filter: blur(52px); }
.bubbles .c3 { left: 20%; top: 80%; width: 66%; height: 31%; background: var(--c3); filter: blur(52px); }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--scrim); }
.glow { position: absolute; left: -5%; top: 5%; width: 110%; aspect-ratio: 1; border-radius: 50%; background: var(--night-glow); z-index: 0; pointer-events: none; }
.spacer { flex: 1; min-height: 16px; }

/* ---------- Type ---------- */
.headline { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; display: flex; flex-direction: column; font-weight: var(--w-light); }
.headline .light { font-weight: var(--w-light); }
.headline .bold { font-weight: var(--w-bold); }
.headline.center { text-align: center; font-size: 34px; }
.title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.wordmark { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.caption { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 320px; }
.caption.small { font-size: 13px; }
.caption.center { text-align: center; max-width: none; }
.center { text-align: center; }
.body { margin: 18px 0 0; font-size: 17px; line-height: 1.55; font-weight: var(--w-light); color: var(--night-body, var(--ink)); white-space: pre-wrap; word-break: break-word; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.top-ink { color: var(--hero-top-ink); --line: var(--hero-top-line); --muted: var(--hero-top-ink); }

/* ---------- Bits ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 26px; height: 26px; display: inline-block; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><circle cx='18' cy='28' r='13'/><circle cx='32' cy='24' r='9' fill-opacity='0.5'/><circle cx='40' cy='11' r='3.5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><circle cx='18' cy='28' r='13'/><circle cx='32' cy='24' r='9' fill-opacity='0.5'/><circle cx='40' cy='11' r='3.5'/></svg>") center / contain no-repeat; }
.ring { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 15px; font-weight: 400; color: inherit; text-decoration: none; }
.ring.small { width: 40px; height: 40px; }
.rings { display: flex; gap: 20px; margin-top: 40px; }
.rings > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); display: inline-flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; cursor: pointer; font: inherit; }
.round-btn.lg { width: 52px; height: 52px; }
.cta { margin-top: 28px; width: 100%; min-height: 60px; border-radius: var(--pill); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 24px; font: inherit; font-size: 16px; font-weight: 500; color: var(--cta-fg); background: var(--cta-bg); border: none; text-decoration: none; cursor: pointer; }
.cta.glass { color: var(--ink); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cta > span:only-child { flex: 1; text-align: center; padding-right: 16px; }
.cta-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--dot); color: var(--dot-ink); display: inline-flex; align-items: center; justify-content: center; }
.cta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta-fg); margin-right: 18px; }
.pill-cta { height: 56px; padding: 0 28px; border-radius: var(--pill); background: var(--cta-bg); color: var(--cta-fg); display: inline-flex; align-items: center; font-size: 16px; font-weight: 500; text-decoration: none; }
.textlink { display: block; margin-top: 24px; text-align: center; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.textlink.muted { color: var(--muted); font-weight: 400; margin-top: 16px; }
.textlink[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.nav { margin-top: 32px; display: flex; justify-content: space-between; padding: 0 12px; }
.nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--dot); }
.chips { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.chips.vertical { flex-direction: column; margin-top: 20px; }
.chip { height: 40px; padding: 0 18px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--chip-sel); border-color: var(--chip-sel-border); color: var(--chip-sel-fg); font-weight: 500; }
.chips.vertical .chip { height: 52px; text-align: left; padding: 0 20px; }
.chip-btn { height: 48px; padding: 0 22px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--glass-border); color: var(--ink); font: inherit; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.chip-btn.strong { background: var(--strong); border-color: var(--strong-border); color: var(--strong-fg); font-weight: 500; }
.btn-row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.compose { margin-top: 14px; padding: 22px 22px 18px; border-radius: 26px 26px 6px 26px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 10px; }
.compose.strong { background: var(--strong); border-color: var(--strong-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
textarea, input[type="text"], input[type="datetime-local"], select { width: 100%; border: none; background: transparent; resize: none; font: inherit; font-size: 20px; font-weight: var(--w-light); line-height: 1.4; color: var(--ink); outline: none; padding: 0; }
input[type="datetime-local"], select, input[type="text"] { font-size: 17px; color-scheme: dark; }
.ctx-pale input, .ctx-pale select { color-scheme: light; }
.field-row { margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 6px; }
.field-row select option { color: #141414; }
.last { margin-top: 24px; padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: var(--glass); border: 1px solid var(--glass-border); font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 290px; }
.last .eyebrow { margin-bottom: 6px; }
.voice-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }
.voice { width: 76px; height: 76px; border-radius: 50%; background: var(--strong); border: 3px solid var(--voice); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 16px 40px rgba(20,20,30,0.14); touch-action: none; -webkit-user-select: none; user-select: none; }
.voice.rec { background: var(--voice); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.audio-row { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--glass); border: 1.5px solid var(--line); color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ctx-night .play { border-color: var(--night-line); }
.wave { display: flex; align-items: center; gap: 4px; height: 28px; flex: 1; }
.wave i { width: 2px; border-radius: 1px; background: currentColor; opacity: 0.6; display: block; }
.wave.playing i { animation: wave 0.9s ease-in-out infinite; }
.wave.playing i:nth-child(odd) { animation-delay: 0.15s; }
.wave.playing i:nth-child(3n) { animation-delay: 0.3s; }
@keyframes wave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } }
.dur { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.audio-row .small-btn { margin-left: auto; }
.small-btn { height: 32px; padding: 0 12px; border-radius: var(--pill); background: transparent; border: 1px solid var(--line); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.numerals { margin-top: 28px; display: flex; gap: 40px; }
.numerals > div { display: flex; flex-direction: column; gap: 6px; }
.numerals b { font-size: 56px; font-weight: var(--w-light); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bubble-chips { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.bubble-chip { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-decoration: none; }
.bubble-chip::before { content: ""; position: absolute; left: 10px; top: 14px; width: 76px; height: 76px; border-radius: 50%; background: var(--bc); filter: blur(18px); }
.bubble-chip b { position: relative; font-size: 26px; font-weight: var(--w-light); line-height: 1; }
.bubble-chip span { position: relative; font-size: 12px; font-weight: 500; }
.list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--card-r); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.card.strong { background: var(--strong); border-color: var(--strong-border); }
.card .lead { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.card .lead.hollow { background: transparent; border: 1.5px solid var(--ink); }
.card .lead.dim { opacity: 0.35; }
.card .col { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.card .t { font-size: 16px; font-weight: 500; }
.card .m { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card .sw { width: 56px; height: 56px; border-radius: 16px; flex: none; position: relative; overflow: hidden; }
.card .sw::after { content: ""; position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.card .check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.card[aria-current="true"] .check { background: var(--ink); border-color: var(--ink); }
.card[aria-current="true"] .check::after { content: ""; width: 12px; height: 12px; background: var(--bg-solid, #F4F2ED); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.2 L4.8 9 L10 3' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.2 L4.8 9 L10 3' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.ctx-pale { --bg-solid: #F4F2ED; }
[data-theme="dark"] .ctx-pale { --bg-solid: #101216; }
.empty { padding: 18px; border-radius: var(--card-r); border: 1px dashed var(--line); color: var(--muted); font-size: 15px; line-height: 1.5; }
.bottom-actions { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.panel { position: absolute; z-index: 2; left: 16px; right: 16px; top: calc(16px + env(safe-area-inset-top, 28px)); bottom: calc(16px + env(safe-area-inset-bottom, 8px)); border-radius: var(--panel-r); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 28px 24px 24px; display: flex; flex-direction: column; overflow-y: auto; }
.dotline { margin-top: 60px; display: flex; flex-direction: column; align-items: center; }
.ring-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ring-dot i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); display: block; }
.dotline .line { width: 1px; height: 70px; background: var(--line); display: block; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.detail-text { margin-top: 20px; padding: 20px 22px; border-radius: 26px; background: var(--strong); border: 1px solid var(--strong-border); font-size: 18px; line-height: 1.5; font-weight: var(--w-light); white-space: pre-wrap; word-break: break-word; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--glass-border); font-size: 15px; }
.kv span:last-child { color: var(--muted); text-align: right; }
.danger { color: #C24A3A; }
[data-theme="dark"] .danger { color: #F08A7A; }
.toggle { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--glass-border); position: relative; cursor: pointer; flex: none; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle:checked { background: var(--voice); }
.toggle:checked::after { transform: translateX(18px); }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; max-width: 340px; padding: 12px 18px; border-radius: var(--pill); background: rgba(20,20,24,0.92); color: #F3F1EE; font-size: 14px; line-height: 1.4; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.toast[hidden] { display: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--voice); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .voice.rec, .wave.playing i { animation: none; } .toggle::after { transition: none; } }
