/* Mythos AI prototype
   Layout: three-column stage on wide screens (screens | device | notes); on phones the stage
   disappears and the app runs edge to edge. Palette: Genie's monochrome base pushed to AA/AAA
   contrast, plus one "aurora" gradient (blue > violet > coral) reserved for AI moments. */

:root {
  --bg: #F8F8FA;
  --bg-rgb: 248 248 250;
  --bg-side: #F0F0F4;
  --surface: #FFFFFF;
  --surface-2: #FBFBFD;
  --sunken: #EFEFF3;
  --sunken-2: #E6E6EC;
  --line: #E2E2E8;
  --line-strong: #CFCFD8;
  --ink: #0D0D12;
  --ink-2: #4A4A55;
  --ink-3: #686874;
  --ink-4: #A2A2AD;
  --placeholder: #6E6E7A;
  --on-ink: #FFFFFF;
  --btn: #0D0D12;
  --btn-hi: #2C2C36;
  --bubble-a: #F2F2F6;
  --bubble-b: #E9E9EF;
  --bubble-ink: #121218;
  --bubble-hi: rgb(255 255 255 / .75);
  --accent: #3D5BF5;
  --accent-2: #6D4AFF;
  --accent-3: #FF7A59;
  --danger: #C83A2E;
  --danger-bg: #FCECEA;
  --success: #137A45;
  --success-bg: #E5F5EC;
  --focus: #3D5BF5;
  --scrim: rgb(13 13 18 / .32);
  --glass: rgb(255 255 255 / .78);
  --shadow-1: 0 1px 2px rgb(13 13 18 / .05), 0 6px 18px -8px rgb(13 13 18 / .14);
  --shadow-2: 0 18px 50px -14px rgb(13 13 18 / .30);
  --stage-bg: #E7E7ED;
  --stage-glow: rgb(109 74 255 / .10);
  --device-edge: #1C1C21;

  --font-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.2, 1.25, .35, 1);
  --spring-soft: cubic-bezier(.25, 1.1, .4, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 460ms;
  --scale: 1;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0F; --bg-rgb: 11 11 15; --bg-side: #111117; --surface: #17171D; --surface-2: #1B1B22;
    --sunken: #1F1F27; --sunken-2: #282831; --line: #2A2A34; --line-strong: #3B3B47;
    --ink: #F4F4F7; --ink-2: #BBBBC8; --ink-3: #9393A3; --ink-4: #5E5E6C; --placeholder: #8A8A9B;
    --on-ink: #0D0D12; --btn: #F4F4F7; --btn-hi: #FFFFFF;
    --bubble-a: #26262F; --bubble-b: #1F1F27; --bubble-ink: #F4F4F7; --bubble-hi: rgb(255 255 255 / .06);
    --accent: #7D93FF; --accent-2: #A98BFF; --accent-3: #FF9A7A;
    --danger: #FF8A80; --danger-bg: #3A1B19; --success: #4ADE80; --success-bg: #11301E; --focus: #8FA0FF;
    --scrim: rgb(0 0 0 / .55); --glass: rgb(28 28 35 / .82);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px -8px rgb(0 0 0 / .6);
    --shadow-2: 0 18px 50px -14px rgb(0 0 0 / .7);
    --stage-bg: #050507; --stage-glow: rgb(125 147 255 / .10); --device-edge: #2A2A31;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0F; --bg-rgb: 11 11 15; --bg-side: #111117; --surface: #17171D; --surface-2: #1B1B22;
  --sunken: #1F1F27; --sunken-2: #282831; --line: #2A2A34; --line-strong: #3B3B47;
  --ink: #F4F4F7; --ink-2: #BBBBC8; --ink-3: #9393A3; --ink-4: #5E5E6C; --placeholder: #8A8A9B;
  --on-ink: #0D0D12; --btn: #F4F4F7; --btn-hi: #FFFFFF;
  --bubble-a: #26262F; --bubble-b: #1F1F27; --bubble-ink: #F4F4F7; --bubble-hi: rgb(255 255 255 / .06);
  --accent: #7D93FF; --accent-2: #A98BFF; --accent-3: #FF9A7A;
  --danger: #FF8A80; --danger-bg: #3A1B19; --success: #4ADE80; --success-bg: #11301E; --focus: #8FA0FF;
  --scrim: rgb(0 0 0 / .55); --glass: rgb(28 28 35 / .82);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px -8px rgb(0 0 0 / .6);
  --shadow-2: 0 18px 50px -14px rgb(0 0 0 / .7);
  --stage-bg: #050507; --stage-glow: rgb(125 147 255 / .10); --device-edge: #2A2A31;
  color-scheme: dark;
}

/* In-app appearance override (Settings > Appearance), scoped to the stage so the viewer's own theme stays intact */
.stage.force-light {
  --bg: #F8F8FA; --bg-rgb: 248 248 250; --bg-side: #F0F0F4; --surface: #FFFFFF; --surface-2: #FBFBFD;
  --sunken: #EFEFF3; --sunken-2: #E6E6EC; --line: #E2E2E8; --line-strong: #CFCFD8;
  --ink: #0D0D12; --ink-2: #4A4A55; --ink-3: #686874; --ink-4: #A2A2AD; --placeholder: #6E6E7A;
  --on-ink: #FFFFFF; --btn: #0D0D12; --btn-hi: #2C2C36;
  --bubble-a: #F2F2F6; --bubble-b: #E9E9EF; --bubble-ink: #121218; --bubble-hi: rgb(255 255 255 / .75);
  --accent: #3D5BF5; --accent-2: #6D4AFF; --accent-3: #FF7A59;
  --danger: #C83A2E; --danger-bg: #FCECEA; --success: #137A45; --success-bg: #E5F5EC; --focus: #3D5BF5;
  --scrim: rgb(13 13 18 / .32); --glass: rgb(255 255 255 / .78);
  --shadow-1: 0 1px 2px rgb(13 13 18 / .05), 0 6px 18px -8px rgb(13 13 18 / .14);
  --shadow-2: 0 18px 50px -14px rgb(13 13 18 / .30);
  --stage-bg: #E7E7ED; --stage-glow: rgb(109 74 255 / .10); --device-edge: #1C1C21;
  color-scheme: light;
}
.stage.force-dark {
  --bg: #0B0B0F; --bg-rgb: 11 11 15; --bg-side: #111117; --surface: #17171D; --surface-2: #1B1B22;
  --sunken: #1F1F27; --sunken-2: #282831; --line: #2A2A34; --line-strong: #3B3B47;
  --ink: #F4F4F7; --ink-2: #BBBBC8; --ink-3: #9393A3; --ink-4: #5E5E6C; --placeholder: #8A8A9B;
  --on-ink: #0D0D12; --btn: #F4F4F7; --btn-hi: #FFFFFF;
  --bubble-a: #26262F; --bubble-b: #1F1F27; --bubble-ink: #F4F4F7; --bubble-hi: rgb(255 255 255 / .06);
  --accent: #7D93FF; --accent-2: #A98BFF; --accent-3: #FF9A7A;
  --danger: #FF8A80; --danger-bg: #3A1B19; --success: #4ADE80; --success-bg: #11301E; --focus: #8FA0FF;
  --scrim: rgb(0 0 0 / .55); --glass: rgb(28 28 35 / .82);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px -8px rgb(0 0 0 / .6);
  --shadow-2: 0 18px 50px -14px rgb(0 0 0 / .7);
  --stage-bg: #050507; --stage-glow: rgb(125 147 255 / .10); --device-edge: #2A2A31;
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { height: 100%; box-sizing: border-box; background: var(--stage-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
*, *::before, *::after { box-sizing: inherit; }
body {
  min-height: 100%;
  margin: 0;
  background: var(--stage-bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button, [role="button"], .suggest { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Prototype stage ---------- */
.stage {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 268px) auto minmax(260px, 330px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
  padding-block: 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background:
    radial-gradient(60% 50% at 50% 42%, var(--stage-glow), transparent 70%),
    var(--stage-bg);
  color: var(--ink);
}
.proto-panel { align-self: center; min-width: 0; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.proto-panel::-webkit-scrollbar { display: none; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.wordmark { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.flows-sub { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 34ch; }
.flows-nav { margin-top: 22px; display: grid; gap: 18px; }
.flow-group h3 {
  margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.flow-list { display: grid; gap: 2px; }
.flow-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: none; text-align: left; cursor: pointer;
  padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.flow-btn .num { font: 500 11.5px var(--font-mono); color: var(--ink-3); width: 18px; font-variant-numeric: tabular-nums; }
.flow-btn:hover { background: rgb(var(--bg-rgb) / .7); color: var(--ink); }
.flow-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.flows-foot { margin-top: 26px; display: grid; gap: 12px; justify-items: start; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgb(var(--bg-rgb) / .7); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.engine-status { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.engine-status .dot { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--ink-4); }
.engine-status .dot.is-live { background: #22C55E; box-shadow: 0 0 0 3px rgb(34 197 94 / .18); }
.link-btn { border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

.device-col { display: grid; justify-items: center; gap: 14px; }
.device-fit { position: relative; width: calc(418px * var(--scale)); height: calc(878px * var(--scale)); }
.device {
  position: absolute; left: 0; top: 0; width: 418px; height: 878px; padding: 12px 12.5px;
  border-radius: 62px; transform: scale(var(--scale)); transform-origin: 0 0;
  background: linear-gradient(150deg, #3A3A42, #111114 40%, #26262C 70%, #0D0D10);
  box-shadow:
    inset 0 0 0 1.5px var(--device-edge),
    inset 0 0 0 5px #08080A,
    0 50px 90px -30px rgb(10 10 20 / .55),
    0 18px 30px -18px rgb(10 10 20 / .5);
}
.device-hint { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; max-width: 40ch; }

.notes { padding-right: 4px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.notes-title { margin: 6px 0 16px; font: 400 27px/1.15 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.notes-body { display: grid; gap: 16px; }
.note-block h4 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
}
.note-block h4 .tag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.note-block ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.tag-genie { background: var(--ink); }
.tag-claude { background: #D97757; }
.tag-new { background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3)); }
.tokens { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.tokens summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tokens-body { display: grid; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; min-width: 0; }
.swatch i { flex: none; width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.swatch span { min-width: 0; line-height: 1.3; }
.swatch b { display: block; font-weight: 600; color: var(--ink); }
.swatch small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.spec-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.spec-row code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 1179px) {
  .stage { grid-template-columns: minmax(200px, 250px) auto; }
  .notes { grid-column: 1 / -1; max-height: none; overflow: visible; max-width: 760px; justify-self: center; width: 100%; }
}

/* ---------- Screen ---------- */
.screen {
  --top-inset: 54px;
  --bottom-inset: 28px;
  position: relative;
  width: 393px; height: 854px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  isolation: isolate;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.4;
  transform: translateZ(0);
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 30px 0 50px; pointer-events: none; color: var(--ink);
  font: 600 16.5px/1 var(--font-ui); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  transition: opacity .3s;
}
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { fill: currentColor; }
.sb-batt { position: relative; width: 26px; height: 12.5px; border-radius: 4px; box-shadow: inset 0 0 0 1.2px currentColor; opacity: .95; }
.sb-batt::after { content: ""; position: absolute; right: -3px; top: 4px; width: 1.6px; height: 4.5px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .5; }
.sb-batt span { position: absolute; inset: 2.2px; right: 6px; border-radius: 2px; background: currentColor; }
.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; z-index: 75; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--ink); z-index: 75; pointer-events: none; opacity: .92; }
.app { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 60%; transition: transform .6s var(--spring-soft), border-radius .6s var(--ease-out), filter .4s; }
.app.is-recessed { transform: scale(.955); border-radius: 44px; filter: saturate(.9); }
.layer-sheets, .layer-menus, .layer-toasts { position: absolute; inset: 0; pointer-events: none; }
.layer-sheets { z-index: 80; }
.layer-menus { z-index: 90; }
.layer-toasts { z-index: 96; }

/* Phones: no frame, no stage, the app is the page */
@media (max-width: 759px) {
  html, body { height: 100%; background: var(--bg); }
  body { min-height: 0; overflow: hidden; }
  .stage { display: block; height: 100%; min-height: 0; padding-block: 0; padding-left: 0; padding-right: 0; background: var(--bg); }
  .app, .layer-sheets, .layer-menus, .layer-toasts { left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); }
  .proto-panel, .device-hint { display: none; }
  .device-col { display: block; height: 100%; }
  .device-fit { width: 100%; height: 100%; }
  .device { position: static; width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
  .screen { --top-inset: 6px; --bottom-inset: 8px; width: 100%; height: 100%; border-radius: 0; }
  .statusbar, .island, .home-ind { display: none; }
  .dock, .ob-dock { transform: translateY(calc(-1 * var(--kb, 0px))); transition: transform .25s var(--ease-out); }
}

/* Native iOS wrapper (the app adds .native-ios): draw under the status bar and home indicator,
   pad content with the safe-area insets, and grow toasts out of the real Dynamic Island */
:root.native-ios { padding-top: 0; padding-bottom: 0; }
.native-ios .screen { --top-inset: calc(env(safe-area-inset-top, 0px) + 2px); --bottom-inset: max(8px, calc(env(safe-area-inset-bottom, 0px) - 4px)); }
/* On Dynamic Island iPhones, toasts grow down out of the island; content sits below the camera */
.toast.from-island { top: 14px; min-width: 228px; height: auto; min-height: 90px; padding: 46px 10px 12px 18px; border-radius: 28px; justify-content: center; }
.toast.from-island:not(:has(.toast-action)) { padding-right: 18px; }

/* ---------- Primitives ---------- */
.scene { position: absolute; inset: 0; }
.btn {
  appearance: none; border: 0; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 24px; border-radius: 999px;
  font-size: 16.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), opacity .25s, background-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-hi), var(--btn));
  color: var(--on-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 22px -12px rgb(13 13 18 / .7);
}
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.btn-ghost { background: transparent; color: var(--ink-2); height: 46px; }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { opacity: .35; pointer-events: none; }
.btn .spinner { width: 20px; height: 20px; }

.icon-btn {
  appearance: none; border: 0; cursor: pointer; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform .25s var(--spring), background-color .2s, opacity .2s;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn.plain { background: transparent; box-shadow: none; }
.icon-btn.plain:hover { background: var(--sunken); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn svg, .tb-btn svg { width: 20px; height: 20px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.spinner { width: 18px; height: 18px; animation: spin .8s linear infinite; }
.spinner circle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 40 100; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.018em; font-optical-sizing: auto; }

/* Mark */
.mark { display: block; overflow: visible; }
.mark .md { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.mark .mc { fill: url(#aurora); transform-box: fill-box; transform-origin: center; }
.mark .ring { transform-origin: 50% 50%; transform-box: view-box; }
.mark.is-breathing .md { animation: breathe 3.6s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * -0.6s); }
.mark.is-thinking .ring { animation: spin 2.4s linear infinite; }
.mark.is-thinking .md { animation: thinkPulse 1.2s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * .2s); }
.mark.is-thinking .mc { animation: corePulse 1.2s var(--ease-in-out) infinite; }
.mark.is-listening .mc { animation: corePulse .9s var(--ease-in-out) infinite; }
.mark-slot { display: inline-grid; place-items: center; }

/* Avatars */
.avatar { position: relative; display: inline-block; vertical-align: middle; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; overflow: hidden; flex: none; background: var(--sunken); isolation: isolate; }
.avatar svg, .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar.glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55), inset 0 -10px 18px rgb(0 0 0 / .16), inset 0 8px 14px rgb(255 255 255 / .18); pointer-events: none; }
.initials { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 600; letter-spacing: .01em; color: #fff; }
.halo { position: relative; display: inline-grid; border-radius: 50%; }
.halo::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), #FFD36E, #7DD3FC, #A78BFA, #FF8FA3, #FFD36E);
  filter: blur(9px); opacity: .9; animation: haloSpin 6s linear infinite;
}

/* ---------- Onboarding ---------- */
.ob-root { z-index: 5; background: var(--bg); }
.ob { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--top-inset); }
.ob-splash { align-items: center; justify-content: center; }

/* Welcome */
.wl-hero { position: relative; flex: 1; display: flex; align-items: center; overflow: hidden; min-height: 0; }
.wl-glow {
  position: absolute; left: -10%; right: -10%; top: 50%; height: 300px; margin-top: -150px; pointer-events: none;
  background:
    radial-gradient(36% 46% at 38% 50%, rgb(61 91 245 / .16), transparent 70%),
    radial-gradient(30% 40% at 70% 56%, rgb(124 77 255 / .14), transparent 70%),
    radial-gradient(26% 34% at 56% 34%, rgb(255 122 89 / .10), transparent 70%);
  filter: blur(6px);
  animation: glowDrift 10s var(--ease-in-out) infinite alternate;
}
.wl-row { position: relative; display: flex; align-items: center; gap: 16px; padding-left: 24px; white-space: nowrap; will-change: transform; transition: transform .5s var(--ease-out); }
.wl-mark { flex: none; }
.wl-bubble {
  flex: none; display: flex; align-items: center; height: 148px; min-width: 460px; padding: 0 150px 0 50px; border-radius: 74px;
  background: linear-gradient(180deg, var(--bubble-a), var(--bubble-b));
  box-shadow: inset 0 1.5px 0 var(--bubble-hi), inset 0 0 0 1px rgb(13 13 18 / .03);
  will-change: transform;
}
.wl-text { font: 400 45px/1 var(--font-ui); letter-spacing: -.03em; color: var(--bubble-ink); }
.wl-caret { display: inline-block; width: 3px; height: 50px; margin-left: 2px; border-radius: 2px; vertical-align: -9px; background: linear-gradient(var(--accent), var(--accent-2)); animation: caret 1.05s steps(1) infinite; }
.wl-caret.is-typing { animation: none; }
.hl {
  background-image: linear-gradient(90deg, var(--accent), var(--accent-2) 45%, var(--accent-3) 80%, var(--accent));
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hlShift 3.2s linear infinite;
}
.wl-bottom { padding: 0 20px calc(var(--bottom-inset) + 14px); display: grid; gap: 10px; }
.wl-tagline { margin: 0 4px 16px; font: 400 33px/1.08 var(--font-display); letter-spacing: -.022em; color: var(--ink); }
.wl-tagline span { color: var(--ink-3); }
.wl-terms { margin: 4px 12px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); text-align: center; text-wrap: balance; }
.wl-terms u { color: var(--ink-2); text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.apple-glyph { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }

/* Shared onboarding chrome */
.ob-top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 12px; flex: none; }
.ob-progress { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px; }
.ob-progress span { position: relative; width: 26px; height: 4px; border-radius: 2px; background: var(--sunken-2); overflow: hidden; }
.ob-progress span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .6s var(--ease-out); }
.ob-skip { border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 8px; cursor: pointer; }
.ob-form { flex: 1; display: flex; flex-direction: column; padding: 18px 24px 0; min-height: 0; }
.ob-title { margin: 0 0 8px; font: 400 32px/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.ob-sub { margin: 0 0 26px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ob-dock { flex: none; padding: 8px 16px calc(var(--bottom-inset) + 12px); }
.ob-note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 12px 0 0; }

.phone-row { display: flex; gap: 8px; }
.cc-chip { flex: none; height: 56px; padding: 0 14px; border-radius: 18px; border: 0; display: flex; align-items: center; gap: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); font-size: 17px; color: var(--ink); }
.text-field { flex: 1; min-width: 0; height: 56px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); display: flex; align-items: center; padding: 0 16px; transition: box-shadow .2s; }
.text-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink-2), var(--shadow-1); }
.text-field input { width: 100%; border: 0; outline: 0; background: none; font-size: 18px; letter-spacing: .01em; font-variant-numeric: tabular-nums; caret-color: var(--accent); }
.text-field input::placeholder { color: var(--placeholder); }

.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-box {
  height: 62px; border-radius: 16px; display: grid; place-items: center; font: 500 26px var(--font-ui); font-variant-numeric: tabular-nums;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); transition: box-shadow .2s, transform .3s var(--spring);
}
.code-box.is-active { box-shadow: inset 0 0 0 1.5px var(--ink-2), var(--shadow-1); }
.code-box.is-filled { transform: translateY(-2px); }
.code-box.is-ok { box-shadow: inset 0 0 0 1.5px var(--success), 0 0 0 4px var(--success-bg); }
.code-hidden { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.autofill {
  align-self: center; margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; border: 0; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); font-size: 14.5px; color: var(--ink-2);
}
.autofill b { color: var(--ink); font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* Sign-in transition */
.ob-trans { position: absolute; inset: 0; z-index: 30; background: var(--bg); overflow: hidden; }
.goo-layer { position: absolute; inset: -40px; filter: url(#goo); }
.goo-dot { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--ink); will-change: transform; }
.float-layer { position: absolute; inset: 0; }
.float-av { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 50% 50%; will-change: transform, opacity; }
.float-av .halo { width: 100px; height: 100px; }

/* Conversational name + profile */
.ob-chat { padding-bottom: 0; }
.ob-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 24px 14px; scrollbar-width: none; }
.ob-thread::-webkit-scrollbar { display: none; }
.ob-thread > :first-child { margin-top: auto; }
.ob-say { margin: 0; font: 400 30px/1.16 var(--font-display); letter-spacing: -.02em; color: var(--ink); max-width: 96%; text-wrap: pretty; }
.ob-say .muted { color: var(--ink-3); }
.ob-say-mark { margin-bottom: -2px; }
.ob-me {
  align-self: flex-end; max-width: 80%; padding: 11px 16px; border-radius: 22px 22px 8px 22px;
  background: linear-gradient(180deg, var(--bubble-a), var(--bubble-b)); color: var(--bubble-ink);
  box-shadow: inset 0 1px 0 var(--bubble-hi); font-size: 16.5px; line-height: 1.35;
}
.ob-profile { align-self: center; display: grid; justify-items: center; gap: 4px; margin: 10px 0 8px; }
.av-edit { position: relative; width: 108px; height: 108px; margin-bottom: 10px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.av-edit .avatar { --s: 108px; }
.av-badge { position: absolute; right: 0; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-ink); box-shadow: 0 0 0 3px var(--bg); }
.av-badge svg { width: 16px; height: 16px; }
.ob-name { font: 400 27px/1.15 var(--font-display); letter-spacing: -.015em; }
.ob-handle { font-size: 15px; font-weight: 500; color: var(--ink-2); min-height: 20px; font-variant-numeric: tabular-nums; }
.ob-handle.is-empty { color: var(--ink-4); }
.ob-help { display: flex; align-items: center; gap: 6px; min-height: 20px; margin: 0 8px 8px; font-size: 13.5px; color: var(--ink-3); transition: color .2s; }
.ob-help svg { width: 15px; height: 15px; }
.ob-help.is-error { color: var(--danger); }
.ob-help.is-ok { color: var(--success); }
.pill-input {
  display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 8px 0 20px; border-radius: 28px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); transition: box-shadow .25s;
}
.pill-input:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink-3), var(--shadow-1); }
.pill-input.is-error { box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px var(--danger-bg); }
.pill-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; caret-color: var(--accent); }
.pill-input input::placeholder { color: var(--placeholder); }
.pill-prefix { color: var(--ink-3); font-size: 17px; margin-right: -4px; }
.send-round {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--btn); color: var(--on-ink); transition: transform .3s var(--spring), background-color .25s, color .25s;
}
.send-round:active { transform: scale(.88); }
.send-round[disabled] { background: var(--sunken-2); color: var(--ink-4); cursor: default; }
.send-round svg { width: 19px; height: 19px; stroke-width: 2.2; }
.shake { animation: shake .42s var(--ease-out); }

/* Showcase */
.ob-show { padding-bottom: 0; }
.sh-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.sh-camera { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform, filter; }
.sh-copy { flex: none; padding: 6px 30px 0; text-align: center; }
.sh-title { margin: 0 0 10px; font: 400 31px/1.12 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.sh-body { margin: 0 auto; max-width: 31ch; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sh-dots { display: flex; justify-content: center; gap: 6px; margin: 22px 0 16px; }
.sh-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--ink-4); cursor: pointer; transition: width .45s var(--spring), background-color .3s; }
.sh-dots button.is-active { width: 26px; background: var(--ink); }
.sh-actions { flex: none; display: grid; gap: 2px; padding: 0 20px calc(var(--bottom-inset) + 6px); }
.sh-replay { position: absolute; right: 16px; bottom: 10px; z-index: 5; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--spring); }
.sh-replay.is-on { opacity: 1; transform: none; }

.mini-phone {
  position: absolute; left: 50%; width: 252px; height: 520px; margin-left: -126px; top: -120px;
  border-radius: 46px; padding: 7px; background: linear-gradient(150deg, #4A4A52, #18181C 45%, #2E2E35);
  box-shadow: 0 30px 60px -28px rgb(10 10 20 / .5), 0 0 0 1px rgb(255 255 255 / .06) inset;
}
.mini-screen { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: var(--bg); }
.mini-thread { position: absolute; left: 0; right: 0; bottom: 56px; padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.mini-composer { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 36px; display: flex; align-items: center; gap: 8px; }
.mini-pill { flex: 1; height: 36px; border-radius: 18px; background: var(--sunken); display: flex; align-items: center; padding: 0 6px 0 12px; font-size: 12px; color: var(--ink-3); }
.mini-pill .mini-send { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--on-ink); display: grid; place-items: center; }
.mini-pill .mini-send svg { width: 13px; height: 13px; stroke-width: 2.4; }
.mini-bubble { align-self: flex-end; max-width: 78%; padding: 8px 12px; border-radius: 16px 16px 6px 16px; font-size: 12.5px; background: linear-gradient(180deg, var(--bubble-a), var(--bubble-b)); color: var(--bubble-ink); }
.mini-ai, .mini-ai.md { font-size: 12.5px; line-height: 1.5; color: var(--ink); max-width: 92%; }
.notif {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgb(10 10 20 / .35); font-size: 13.5px; line-height: 1.35; color: var(--ink);
}
.notif-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #0D0D12; display: grid; place-items: center; }
.notif small { display: block; color: var(--ink-3); font-size: 11.5px; margin-bottom: 2px; }
.big-bubble {
  position: absolute; display: flex; align-items: center; height: 96px; padding: 0 34px; border-radius: 48px;
  background: linear-gradient(180deg, var(--bubble-a), var(--bubble-b)); box-shadow: inset 0 1.5px 0 var(--bubble-hi);
  font: 400 36px/1 var(--font-ui); letter-spacing: -.03em; color: var(--bubble-ink); white-space: nowrap; transform-origin: right center;
}
.reminder-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); font-size: 12.5px; }
.reminder-mini .rm-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.reminder-mini .rm-ico svg { width: 16px; height: 16px; }
.reminder-mini small { display: block; color: var(--ink-3); font-size: 11.5px; }

.big-composer { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); }

/* All set */
.ob-done { align-items: center; justify-content: center; text-align: center; padding: var(--top-inset) 32px 0; }
.done-mark { position: relative; display: grid; place-items: center; }
.done-mark .mark { position: relative; }
.done-glow { position: absolute; width: 360px; height: 360px; left: 50%; top: 50%; margin: -180px 0 0 -180px; border-radius: 50%; background: radial-gradient(closest-side, rgb(109 74 255 / .22), rgb(61 91 245 / .10) 55%, transparent); filter: blur(10px); pointer-events: none; }
.done-title { margin: 26px 0 10px; font: 400 36px/1.1 var(--font-display); letter-spacing: -.022em; text-wrap: balance; }
.done-body { margin: 0 auto 0; max-width: 30ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.done-actions { position: absolute; left: 20px; right: 20px; bottom: calc(var(--bottom-inset) + 16px); }

/* ---------- Main app ---------- */
.main { position: absolute; inset: 0; --p: 0; }
.sidebar {
  position: absolute; top: 0; bottom: 0; left: 0; width: 84%; z-index: 1;
  display: flex; flex-direction: column; padding-top: calc(var(--top-inset) + 4px);
  background: var(--bg-side);
  transform: translateX(calc((var(--p) - 1) * 16%)); opacity: calc(.4 + var(--p) * .6);
}
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 6px 20px; height: 52px; }
.sb-wordmark { display: flex; align-items: center; gap: 9px; font: 400 27px/1 var(--font-display); letter-spacing: -.02em; }
.sb-searchbox { margin: 4px 16px 6px; display: none; }
.sidebar.is-searching .sb-searchbox { display: block; }
.search-field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 21px; background: var(--sunken); color: var(--ink-3); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.search-field input::placeholder { color: var(--placeholder); }
.search-field .ico { width: 18px; height: 18px; }
.sb-nav { display: grid; gap: 2px; padding: 6px 10px 4px; }
.sb-link {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 14px; border: 0; background: none; cursor: pointer;
  font-size: 16px; color: var(--ink); text-align: left;
}
.sb-link:hover { background: rgb(var(--bg-rgb) / .8); }
.sb-link.is-active { background: var(--surface); box-shadow: var(--shadow-1); }
.sb-link .count { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 24px), transparent); }
.sb-scroll::-webkit-scrollbar { display: none; }
.sb-label { margin: 14px 12px 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; }
.chat-row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 6px 0 12px; border-radius: 14px; border: 0; background: none; cursor: pointer;
  font-size: 15.5px; color: var(--ink); text-align: left; transition: background-color .2s;
}
.chat-row:hover { background: rgb(var(--bg-rgb) / .8); }
.chat-row.is-active { background: var(--surface); box-shadow: var(--shadow-1); }
.chat-row .ico { width: 18px; height: 18px; color: var(--ink-3); }
.chat-row .ico.star { color: #E6A700; fill: #F5C542; stroke: #E6A700; }
.chat-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-more { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-3); opacity: 0; cursor: pointer; transition: opacity .2s, background-color .2s; }
.chat-row:hover .row-more, .chat-row:focus-within .row-more, .chat-row.is-active .row-more { opacity: 1; }
.row-more:hover { background: var(--sunken); color: var(--ink); }
.rename-input { flex: 1; min-width: 0; height: 32px; border: 0; outline: 0; border-radius: 8px; padding: 0 8px; margin-left: -8px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); font-size: 16px; }
.sb-viewall { display: inline-flex; align-items: center; gap: 4px; margin: 6px 12px 0; padding: 6px 0; border: 0; background: none; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.sb-empty { padding: 10px 12px; color: var(--ink-3); font-size: 14px; }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px calc(var(--bottom-inset) + 10px) 16px; }
.sb-me { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; padding: 4px; border-radius: 22px; cursor: pointer; text-align: left; }
.sb-me .avatar { --s: 36px; }
.sb-me-name { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-me-handle { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

.main-card {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; background: var(--bg);
  transform: translateX(calc(var(--p) * 84%)) scale(calc(1 - var(--p) * .07));
  transform-origin: 0% 50%;
  border-radius: calc(var(--p) * 44px);
  box-shadow: 0 0 0 calc(var(--p) * 1px) var(--line), calc(var(--p) * -18px) 0 50px -20px rgb(0 0 0 / calc(var(--p) * .25));
}
.main-shield { position: absolute; inset: 0; z-index: 40; display: none; background: rgb(var(--bg-rgb) / calc(var(--p) * .35)); cursor: pointer; }
.main.is-open .main-shield, .main.is-dragging .main-shield { display: block; }

.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: calc(var(--top-inset) + 4px) 12px 12px; pointer-events: none; }
.topbar::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 0, rgb(var(--bg-rgb) / .94) calc(100% - 46px), rgb(var(--bg-rgb) / 0) 100%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
  opacity: var(--tb-fade, 0); transition: opacity .3s;
}
.topbar > * { pointer-events: auto; }
.tb-chip {
  display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 11px 0 4px; border-radius: 21px; border: 0; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); color: var(--ink);
  transition: transform .3s var(--spring);
}
.tb-chip:active { transform: scale(.94); }
.tb-chip .avatar { --s: 34px; }
.tb-chip .ico { width: 18px; height: 18px; color: var(--ink-2); }
.tb-title {
  justify-self: center; max-width: 100%; border: 0; background: none; padding: 6px 10px; border-radius: 12px; cursor: pointer;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease-out);
}
.tb-title.is-on { opacity: 1; transform: none; }
.tb-title .ico { width: 14px; height: 14px; vertical-align: -2px; color: var(--ink-3); margin-left: 2px; }
.tb-title-input { justify-self: center; width: 100%; max-width: 220px; height: 34px; border: 0; outline: 0; border-radius: 10px; padding: 0 10px; text-align: center; font-size: 16px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tb-group { display: flex; align-items: center; height: 42px; padding: 0 3px; border-radius: 21px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.tb-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .25s var(--spring), background-color .2s, color .2s; }
.tb-btn:active { transform: scale(.88); }
.tb-btn.is-on { background: var(--btn); color: var(--on-ink); }

.views { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; }
.view[hidden] { display: none !important; }

/* Thread */
.thread { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.thread-inner { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--top-inset) + 66px) 20px var(--dock-h, 150px); }
.messages { display: flex; flex-direction: column; gap: 22px; }
.msg-user { align-self: flex-end; max-width: 84%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bubble {
  padding: 11px 16px 12px; border-radius: 22px 22px 8px 22px;
  background: linear-gradient(180deg, var(--bubble-a), var(--bubble-b)); color: var(--bubble-ink);
  box-shadow: inset 0 1px 0 var(--bubble-hi); font-size: 16.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-atts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.msg-att-img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); }
.msg-att-file { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink-2); max-width: 220px; }
.msg-att-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-ai { position: relative; align-self: stretch; min-width: 0; }
.ai-head { display: flex; align-items: center; gap: 8px; height: 22px; margin-bottom: 6px; color: var(--ink-3); font-size: 12.5px; }

.md { font-size: 16.5px; line-height: 1.6; color: var(--ink); letter-spacing: -.004em; overflow-wrap: anywhere; }
.md > * { margin: 0; }
.md > * + * { margin-top: .72em; }
.md > .md-li + .md-li { margin-top: .32em; }
.md-h { font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.md > * + .md-h { margin-top: 1.1em; }
.md-h1 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.md-li { position: relative; padding-left: 24px; }
.md-li::before { content: attr(data-m); position: absolute; left: 4px; top: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.md-li.ol::before { left: 0; font-weight: 500; }
.md-li.l2 { margin-left: 22px; }
.md strong { font-weight: 600; }
.md em { font-style: italic; }
.md code { font-family: var(--font-mono); font-size: .86em; padding: .12em .38em; border-radius: 6px; background: var(--sunken); }
.md-pre { padding: 12px 14px; border-radius: 14px; background: var(--sunken); overflow-x: auto; font: 13.5px/1.55 var(--font-mono); white-space: pre; }
.md-quote { padding-left: 14px; border-left: 2px solid var(--line-strong); color: var(--ink-2); }
.md-hr { height: 1px; border: 0; background: var(--line); }
.md a { color: var(--accent); text-underline-offset: 2px; }
.w.in { animation: wordIn 560ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.blk-in { animation: blockIn 600ms var(--ease-out) both; }

.reminder-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); font-size: 15px; line-height: 1.35;
}
.reminder-card .rc-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2) 70%, var(--accent-3) 140%); }
.reminder-card small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.reminder-card > div { flex: 1; min-width: 0; }
.reminder-card .rc-done { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--success); font-weight: 500; white-space: nowrap; }

.ai-actions { display: flex; align-items: center; gap: 2px; margin-top: 10px; margin-left: -8px; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ease-out); }
.ai-actions.is-on { opacity: 1; transform: none; }
.act-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--spring); }
.act-btn:hover { background: var(--sunken); color: var(--ink); }
.act-btn:active { transform: scale(.88); }
.act-btn .ico { width: 18px; height: 18px; }
.act-btn.is-on { color: var(--ink); }
.act-btn.is-on .ico { fill: currentColor; fill-opacity: .14; }
.ai-meta { margin-left: 8px; font-size: 12.5px; color: var(--ink-3); }
.ai-note { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ai-note .ico { width: 15px; height: 15px; margin-top: 2px; }
.ai-error { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.ai-error .btn { height: 34px; padding: 0 14px; font-size: 13.5px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Thinking blob */
.thinking { position: relative; display: flex; align-items: center; gap: 12px; height: 36px; margin-left: -20px; }
.think-goo { position: relative; flex: none; width: 92px; height: 60px; margin: -12px 0; filter: url(#goo-sm); }
.tg { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); will-change: transform; }
.think-label { font-size: 13.5px; color: var(--ink-3); opacity: 0; transition: opacity .4s; font-variant-numeric: tabular-nums; }
.think-label.is-on { opacity: 1; }
.shimmer-text { background: linear-gradient(90deg, var(--ink-3) 0%, var(--ink-3) 40%, var(--ink) 50%, var(--ink-3) 60%, var(--ink-3) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite; }

/* Empty state */
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 4px 150px; gap: 0; }
.es-greeting { margin: 18px 0 0; font: 400 35px/1.08 var(--font-display); letter-spacing: -.022em; text-wrap: balance; }
.es-sub { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }
.es-card {
  width: 100%; margin-top: 30px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 24px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.es-card-text { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.es-card-text b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.es-card .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
.temp-banner { display: none; margin-top: 18px; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 16px; border: 1.5px dashed var(--line-strong); color: var(--ink-2); font-size: 13.5px; }
.is-temp .temp-banner { display: inline-flex; }
.is-temp .es-card { display: none; }

.suggests { position: absolute; right: 16px; bottom: calc(var(--dock-h, 150px) - 8px); z-index: 14; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.suggest {
  border: 0; cursor: pointer; padding: 10px 15px 11px; border-radius: 20px 20px 7px 20px; font-size: 15px; line-height: 1.3; color: var(--bubble-ink); text-align: right;
  background: linear-gradient(180deg, var(--bubble-a), var(--bubble-b)); box-shadow: inset 0 1px 0 var(--bubble-hi), 0 0 0 1px rgb(13 13 18 / .02);
  transition: transform .3s var(--spring);
}
.suggest:active { transform: scale(.96); }

.scroll-down { position: absolute; left: 50%; bottom: calc(var(--dock-h, 150px) + 4px); z-index: 16; margin-left: -20px; opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.scroll-down.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Composer */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 15; padding: 22px 12px calc(var(--bottom-inset) + 10px); background: linear-gradient(rgb(var(--bg-rgb) / 0), var(--bg) 34%); pointer-events: none; }
.dock > * { pointer-events: auto; }
.composer {
  position: relative; border-radius: 26px; padding: 12px 10px 8px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px -16px rgb(13 13 18 / .3); transition: box-shadow .3s;
}
.composer:focus-within { box-shadow: inset 0 0 0 1px var(--line-strong), 0 14px 36px -16px rgb(61 91 245 / .35); }
.is-temp .composer { box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 12px 32px -16px rgb(13 13 18 / .3); background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgb(var(--bg-rgb) / .6) 10px 20px); }
.composer::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 27.5px; padding: 1.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--a, 0deg), var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s;
}
.composer[data-state="dictating"]::before, .composer[data-state="transcribing"]::before { opacity: 1; animation: ringSpin 4s linear infinite; }
.att-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 4px 10px; scrollbar-width: none; }
.att-chip { position: relative; flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 30px 0 6px; border-radius: 14px; background: var(--sunken); font-size: 13px; color: var(--ink-2); max-width: 200px; }
.att-chip img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.att-chip .file-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); }
.att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--btn); color: var(--on-ink); cursor: pointer; }
.att-x svg { width: 12px; height: 12px; stroke-width: 2.6; }
.cmp-field { position: relative; padding: 0 6px; }
.cmp-input { display: block; width: 100%; min-height: 26px; max-height: 156px; padding: 2px 2px 6px; border: 0; outline: 0; resize: none; background: none; font-size: 16.5px; line-height: 1.45; color: var(--ink); caret-color: var(--accent); overflow-y: auto; }
.cmp-input::placeholder { color: var(--placeholder); }
.dict-text { display: none; min-height: 26px; padding: 2px 2px 6px; font-size: 16.5px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 156px; overflow-y: auto; }
.dict-text .interim { color: var(--ink-3); }
.dict-text .fresh { animation: wordIn 420ms var(--ease-out) both; }
.dict-text .ph { color: var(--placeholder); }
.composer[data-state="dictating"] .cmp-input, .composer[data-state="transcribing"] .cmp-input { display: none; }
.composer[data-state="dictating"] .dict-text, .composer[data-state="transcribing"] .dict-text { display: block; }
.cmp-bar { position: relative; height: 40px; margin-top: 2px; }
.bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; transition: opacity .3s, transform .45s var(--ease-out), filter .3s; }
.bar-dict { opacity: 0; transform: translateY(6px); filter: blur(4px); pointer-events: none; }
.composer[data-state="dictating"] .bar-main, .composer[data-state="transcribing"] .bar-main { opacity: 0; transform: translateY(-6px); filter: blur(4px); pointer-events: none; }
.composer[data-state="dictating"] .bar-dict, .composer[data-state="transcribing"] .bar-dict { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.bar .flex { flex: 1; min-width: 0; }
.cmp-icon { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: background-color .2s, transform .25s var(--spring); flex: none; }
.cmp-icon:hover { background: var(--sunken); }
.cmp-icon:active { transform: scale(.88); }
.cmp-icon.outlined { box-shadow: inset 0 0 0 1px var(--line); }
.mode-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 9px 0 12px; border-radius: 16px; border: 0; cursor: pointer; background: var(--sunken); color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.mode-chip b { color: var(--ink); font-weight: 600; }
.mode-chip .ico { width: 14px; height: 14px; }
.send-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 62%, var(--accent-3) 135%);
  box-shadow: 0 8px 16px -8px rgb(91 75 255 / .8), inset 0 1px 0 rgb(255 255 255 / .25);
  transition: transform .35s var(--spring), opacity .25s, filter .25s;
}
.send-btn .ico { width: 18px; height: 18px; stroke-width: 2.3; }
.send-btn:active { transform: scale(.86); }
.send-btn[disabled] { background: var(--sunken-2); color: var(--ink-4); box-shadow: none; cursor: default; }
.send-btn.is-stop { background: var(--btn); color: var(--on-ink); box-shadow: none; }
.send-btn.is-stop .ico { fill: currentColor; stroke: none; }
.wave { flex: 1; min-width: 0; height: 30px; }
.wave canvas { display: block; width: 100%; height: 100%; }
.transcribing { flex: 1; display: none; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.composer[data-state="transcribing"] .wave { display: none; }
.composer[data-state="transcribing"] .transcribing { display: flex; }
.stop-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--sunken); color: var(--ink); flex: none; }
.stop-btn .sq { width: 12px; height: 12px; border-radius: 3px; background: currentColor; }
.composer[data-state="transcribing"] .stop-btn { opacity: .4; pointer-events: none; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 3px rgb(240 68 56 / .18); animation: recPulse 1.4s var(--ease-in-out) infinite; flex: none; margin: 0 4px 0 2px; }

/* Secondary views */
.view-scroll { position: absolute; inset: 0; overflow-y: auto; padding: calc(var(--top-inset) + 64px) 18px calc(var(--bottom-inset) + 30px); }
.large-title { margin: 4px 2px 14px; font: 400 36px/1.08 var(--font-display); letter-spacing: -.022em; }
.view-lede { margin: -6px 2px 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.group-label { margin: 22px 4px 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.list-card { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
.list-card > * + * { box-shadow: inset 0 1px 0 var(--line); }
.person-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.person-row:hover { background: var(--surface-2); }
.person-row .avatar { --s: 46px; }
.pr-meta { flex: 1; min-width: 0; }
.pr-name { font-size: 16px; font-weight: 600; }
.pr-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .ico { color: var(--ink-4); width: 18px; height: 18px; }
.invite-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, rgb(61 91 245 / .10), rgb(124 77 255 / .10) 55%, rgb(255 122 89 / .08)); box-shadow: inset 0 0 0 1px var(--line); }
.invite-card p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.invite-card p b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { --s: 34px; box-shadow: 0 0 0 2.5px var(--bg); }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

.rem-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.rem-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: none; box-shadow: inset 0 0 0 1.8px var(--line-strong); color: #fff; transition: background-color .25s, box-shadow .25s, transform .3s var(--spring); }
.rem-check svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); }
.rem-row.is-done .rem-check { background: var(--ink); box-shadow: none; color: var(--on-ink); }
.rem-row.is-done .rem-check svg { opacity: 1; transform: none; }
.rem-row.is-done .rem-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.rem-body { flex: 1; min-width: 0; }
.rem-title { font-size: 15.5px; line-height: 1.35; transition: color .3s; }
.rem-time { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.rem-time .ico { width: 13px; height: 13px; }
.rem-row.is-new { animation: rowFlash 1.6s var(--ease-out); }
.rem-add { margin-top: 14px; }

.chats-list .chat-row { height: 52px; border-radius: 0; padding: 0 8px 0 16px; }
.chats-list .chat-row.is-active { box-shadow: none; background: var(--surface-2); }
.chat-when { flex: none; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Sheets */
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); pointer-events: auto; }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: calc(100% - var(--top-inset) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px calc(var(--bottom-inset) + 8px); border-radius: 36px; background: var(--surface); color: var(--ink);
  box-shadow: 0 -10px 50px -12px rgb(0 0 0 / .3), inset 0 0 0 1px var(--line); pointer-events: auto; touch-action: pan-y;
}
.sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 2px auto 8px; }
.sheet-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; margin-bottom: 12px; }
.sheet-title { text-align: center; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.opt-list { display: grid; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.opt + .opt { box-shadow: inset 0 1px 0 var(--line); }
.opt:hover { background: var(--sunken); }
.opt-text { flex: 1; min-width: 0; }
.opt-title { font-size: 16px; font-weight: 500; }
.opt-desc { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.opt-check { color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .35s var(--spring); }
.opt.is-selected .opt-check { opacity: 1; transform: none; }
.sheet-hint { margin: 12px 6px 4px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.attach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.attach-tile { display: grid; justify-items: center; gap: 8px; padding: 18px 8px 14px; border-radius: 22px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; color: var(--ink); }
.attach-tile:hover { background: var(--sunken); }
.attach-tile .ico { width: 24px; height: 24px; }
.attach-tile small { font-size: 11.5px; color: var(--ink-3); }
.softask { display: grid; justify-items: center; text-align: center; padding: 10px 8px 4px; }
.softask-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2) 65%, var(--accent-3) 140%); box-shadow: 0 14px 30px -14px rgb(91 75 255 / .8); }
.softask-ico .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.softask h3 { margin: 0 0 8px; font: 400 26px/1.15 var(--font-display); letter-spacing: -.015em; }
.softask p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.softask-list { width: 100%; display: grid; gap: 10px; margin: 0 0 20px; text-align: left; }
.softask-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.softask-list .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
.softask .btn-block + .btn { margin-top: 2px; }
.set-profile { display: flex; align-items: center; gap: 14px; padding: 6px 4px 18px; }
.set-profile .avatar { --s: 60px; }
.set-name { font: 400 24px/1.1 var(--font-display); letter-spacing: -.015em; }
.set-handle { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.set-group { margin-bottom: 14px; }
.set-label { margin: 0 6px 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; font-size: 15.5px; text-align: left; cursor: pointer; }
.set-row + .set-row { box-shadow: inset 0 1px 0 var(--line); }
.set-row:hover { background: var(--sunken); }
.set-row .ico { width: 18px; height: 18px; color: var(--ink-3); }
.set-row.is-danger { color: var(--danger); }
.seg-app { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 16px; background: var(--sunken); }
.seg-app button { height: 38px; border: 0; border-radius: 12px; background: none; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg-app button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Menus */
.menu-catch { position: absolute; inset: 0; pointer-events: auto; }
.menu {
  position: absolute; min-width: 214px; padding: 6px; border-radius: 20px; pointer-events: auto;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--line), 0 22px 60px -16px rgb(0 0 0 / .35);
}
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: none; font-size: 15.5px; color: var(--ink); cursor: pointer; text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: rgb(var(--bg-rgb) / .9); outline: none; }
.menu-item .ico { width: 18px; height: 18px; color: var(--ink-2); }
.menu-item.is-danger, .menu-item.is-danger .ico { color: var(--danger); }
.menu-sep { height: 1px; margin: 4px 10px; background: var(--line); }

/* Toasts */
.toast {
  position: absolute; left: 50%; top: 11px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 16px; border-radius: 22px;
  background: #000; color: #fff; font-size: 14.5px; font-weight: 500; white-space: nowrap; pointer-events: auto;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 16px 34px -14px rgb(0 0 0 / .5); transform: translateX(-50%);
}
.toast .ico { width: 18px; height: 18px; }
.toast .t-ok { color: #4ADE80; }
.toast-action { height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: rgb(255 255 255 / .16); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.toast:not(:has(.toast-action)) { padding-right: 18px; }
@media (max-width: 759px) { .toast { top: max(10px, env(safe-area-inset-top, 0px)); } }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes hlShift { from { background-position: 0% 0; } to { background-position: 260% 0; } }
@keyframes glowDrift { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.08); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.78); } }
@keyframes thinkPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .55; } }
@keyframes corePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes haloSpin { to { --a: 360deg; } }
@keyframes ringSpin { to { --a: 360deg; } }
@keyframes wordIn { from { opacity: 0; filter: blur(7px); } to { opacity: 1; filter: blur(0); } }
@keyframes blockIn { from { opacity: 0; filter: blur(10px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 3px rgb(240 68 56 / .18); } 50% { box-shadow: 0 0 0 6px rgb(240 68 56 / .06); } }
@keyframes rowFlash { 0% { background: rgb(109 74 255 / .16); } 100% { background: transparent; } }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wl-caret { animation: none; }
}

/* ---------- Private AI: home, privacy, settings ---------- */
.avatar.anon { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--sunken-2), var(--sunken)); color: var(--ink-2); }
.avatar.anon .ico { width: 56%; height: 56%; stroke-width: 1.7; }
.tb-chip .chip-av, .tb-chip .chip-ic { display: inline-flex; align-items: center; }
.tb-chip.icon-only { padding: 0 10px; }
.tb-right { display: flex; gap: 8px; }
.tb-ghost.is-on { background: var(--btn); color: var(--on-ink); box-shadow: none; }
.privacy-pill {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 11px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); color: var(--ink-2); font-size: 13.5px; transition: transform .3s var(--spring);
}
.privacy-pill b { color: var(--ink); font-weight: 600; }
.privacy-pill .ico { width: 15px; height: 15px; color: var(--accent); stroke-width: 2; }
.privacy-pill:active { transform: scale(.96); }
.es-card-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-ink); }
.es-card-ico .ico { width: 22px; height: 22px; }
.privacy-list { width: 100%; display: grid; gap: 14px; margin: 4px 0 6px; text-align: left; }
.privacy-row { display: flex; gap: 12px; align-items: flex-start; }
.privacy-row .pr-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--sunken); color: var(--ink); }
.privacy-row .pr-ico .ico { width: 18px; height: 18px; }
.privacy-row b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.privacy-row span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); margin-top: 2px; }
.softask .sheet-hint { text-align: left; margin: 10px 2px 16px; }
.set-name-wrap { flex: 1; min-width: 0; display: grid; gap: 6px; }
.set-name-wrap .set-label { margin: 0 2px; }
.set-input { width: 100%; height: 44px; border: 0; outline: 0; border-radius: 14px; padding: 0 14px; background: var(--sunken); font-size: 16px; color: var(--ink); caret-color: var(--accent); }
.set-input::placeholder { color: var(--placeholder); }
.set-input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.seg-app.seg-4 { grid-template-columns: repeat(4, 1fr); }
.opt > .ico:first-child { color: var(--ink-2); }
.set-row.is-armed { background: var(--danger-bg); }
.sheet-tall { max-height: calc(100% - var(--top-inset) - 12px); }
.demo-tag { display: none; flex: none; height: 20px; padding: 0 7px; border-radius: 10px; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--sunken); }
.composer[data-demo="1"][data-state="dictating"] .demo-tag { display: inline-flex; }

/* ---------- Private AI: onboarding ---------- */
.wl-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -6px 4px 12px; font-size: 13.5px; color: var(--ink-2); }
.wl-trust span { display: inline-flex; align-items: center; gap: 5px; }
.wl-trust .ico { width: 15px; height: 15px; color: var(--success); stroke-width: 2.4; }
.ob-me.is-muted { color: var(--ink-3); font-style: italic; }
.ob-choices { display: grid; gap: 8px; }
.ob-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 18px; border: 0; border-radius: 27px; cursor: pointer; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); color: var(--ink); font-size: 16px; transition: transform .3s var(--spring), box-shadow .2s;
}
.ob-choice .ico { width: 20px; height: 20px; color: var(--accent); }
.ob-choice:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.ob-choice:active { transform: scale(.97); }
.ob-help .ico { width: 14px; height: 14px; }
.privacy-orb { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45), inset 0 -12px 22px rgb(0 0 0 / .18), inset 0 10px 18px rgb(255 255 255 / .22); }
.privacy-orb .ico { width: 42px; height: 42px; stroke-width: 1.6; }
.big-bubble.wrap { display: block; white-space: normal; height: auto; max-width: calc(100% - 40px); padding: 18px 26px 20px; border-radius: 30px; font-size: 30px; line-height: 1.16; letter-spacing: -.025em; }
.mini-island { position: absolute; top: 9px; left: 50%; width: 68px; height: 20px; transform: translateX(-50%); border-radius: 17px; background: #000; z-index: 3; display: grid; place-items: center; overflow: hidden; }
.mi-content { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.mi-content .ico { width: 13px; height: 13px; stroke-width: 2.2; color: #fff; }
.mini-menu {
  position: absolute; top: 96px; right: 14px; width: 150px; padding: 4px; border-radius: 14px; z-index: 4; transform-origin: top right;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -12px rgb(0 0 0 / .35);
}
.mm-item { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; color: var(--ink); transition: background-color .2s; }
.mm-item .ico { width: 14px; height: 14px; color: var(--ink-2); }
.mm-item.is-danger, .mm-item.is-danger .ico { color: var(--danger); }
.mm-item.is-press { background: var(--danger-bg); }
.mm-sep { height: 1px; margin: 3px 8px; background: var(--line); }
.mini-empty { position: absolute; left: 0; right: 0; top: 34%; display: grid; justify-items: center; gap: 10px; text-align: center; }
.mini-greet { font: 400 21px/1.1 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.mini-private { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; color: var(--ink-2); }
.mini-private .ico { width: 11px; height: 11px; color: var(--accent); stroke-width: 2.2; }
.mini-private b { color: var(--ink); font-weight: 600; }

/* ---------- Web app: full window ---------- */
.web-exit { display: none; }
html.web-mode, html.web-mode body { height: 100%; overflow: hidden; }
.stage.mode-web { display: block; height: 100%; min-height: 0; padding-block: 0; padding-left: 0; padding-right: 0; background: var(--bg); }
.stage.mode-web .proto-panel, .stage.mode-web .device-hint { display: none; }
.stage.mode-web .device-col, .stage.mode-web .device-fit { display: block; width: 100%; height: 100%; }
.stage.mode-web .device { position: static; width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.stage.mode-web .screen { width: 100%; height: 100%; border-radius: 0; --top-inset: 6px; --bottom-inset: 10px; }
.stage.mode-web .statusbar, .stage.mode-web .island, .stage.mode-web .home-ind { display: none; }
@media (min-width: 760px) {
  .stage.mode-web .web-exit {
    position: fixed; right: 18px; bottom: 124px; z-index: 200; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 0; border-radius: 19px; cursor: pointer;
    background: var(--btn); color: var(--on-ink); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-2); opacity: .9; transition: opacity .2s, transform .3s var(--spring);
  }
  .stage.mode-web .web-exit:hover { opacity: 1; }
  .stage.mode-web .web-exit:active { transform: scale(.95); }
  .stage.mode-web .web-exit .ico { width: 17px; height: 17px; }
}

/* ---------- Desktop layout (screen at least 900px wide) ---------- */
.screen.is-desktop { --top-inset: 8px; --bottom-inset: 12px; }
.screen.is-desktop .sidebar { width: 288px; transform: none; opacity: 1; padding-top: 10px; box-shadow: inset -1px 0 0 var(--line); transition: transform .45s var(--ease-out); }
.screen.is-desktop .main.sb-collapsed .sidebar { transform: translateX(-100%); }
.screen.is-desktop .main-card { left: 288px; transform: none; border-radius: 0; box-shadow: none; transition: left .45s var(--ease-out); }
.screen.is-desktop .main.sb-collapsed .main-card { left: 0; }
.screen.is-desktop .main-shield { display: none !important; }
.screen.is-desktop .topbar { padding: 10px 16px 12px; }
.screen.is-desktop .thread-inner { max-width: 820px; margin: 0 auto; padding-left: 32px; padding-right: 32px; padding-top: 76px; }
.screen.is-desktop .dock { padding-left: 32px; padding-right: 32px; }
.screen.is-desktop .composer { max-width: 760px; margin: 0 auto; }
.screen.is-desktop .suggests { right: max(32px, calc((100% - 760px) / 2)); }
.screen.is-desktop .empty-state { padding-bottom: 170px; }
.screen.is-desktop .es-card { max-width: 520px; }
.screen.is-desktop .view-scroll { padding: 76px 32px 40px; }
.screen.is-desktop .view-scroll > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.screen.is-desktop .app.is-recessed { transform: none; border-radius: 0; filter: none; }
.screen.is-desktop .sheet { inset: 0; margin: auto; width: min(540px, calc(100% - 48px)); height: fit-content; max-height: calc(100% - 64px); border-radius: 28px; padding-bottom: 18px; }
.screen.is-desktop .sheet-grab { display: none; }
.screen.is-desktop .sheet-head { margin-top: 8px; }
.screen.is-desktop .ob-root .ob { left: 0; right: 0; max-width: 460px; margin: 0 auto; }
.screen.is-desktop .ob-root { background: radial-gradient(60% 50% at 50% 40%, var(--stage-glow), transparent 70%), var(--bg); }
/* Short viewports: keep the welcome bubble inside its hero */
.wl-bubble { height: min(148px, 22vh); border-radius: min(74px, 11vh); }
.wl-text { font-size: min(45px, 6.8vh); }
.wl-caret { height: min(50px, 7.4vh); }
.sb-link.desk-only { display: none; }
.screen.is-desktop .sb-link.desk-only { display: flex; }
.screen.is-desktop .sb-foot .sb-new { display: none; }
.screen.is-desktop .sb-me { flex: 1; }
.screen.is-desktop .ob-root .ob { background: transparent; }
.ob-choice.is-hot .ico { color: var(--accent-3); }
.mode-chip .chip-ic { width: 15px; height: 15px; margin-right: 1px; color: var(--ink-2); }
.set-row.is-static { cursor: default; }
.set-row.is-static:hover { background: none; }
.set-value { color: var(--ink-3); font-size: 15px; }
.sheet .group-label, .sheet .set-label { margin-top: 0; }

.wm-ai { color: var(--ink-3); }

/* Home: why answers are unavailable, Personal / Business, and starters that fill the composer */
.es-live { width: 100%; max-width: 520px; margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.es-live[hidden] { display: none; }
.es-live > .ico { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--ink-2); }
.es-live b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.softask .es-live { margin: 4px 0 16px; }
.es-cats { width: 100%; max-width: 520px; margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
.es-starters { width: 100%; max-width: 520px; margin-top: 10px; }
.es-starters .set-row { font-size: 15px; line-height: 1.35; padding: 12px 16px; }
.es-starters .starter-ico { flex: none; width: 15px; height: 15px; transform: rotate(-45deg); }
.opt.is-static { cursor: default; }
.opt.is-static:hover { background: none; }
.opt.is-locked .opt-desc { color: var(--ink-3); }

/* ---------- The web app on wide screens: a web page, not a phone column ---------- */

/* Home: the composer sits under the greeting until the chat starts (app.js placeDock). */
.empty-state > .dock.is-centered { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-width: 760px; margin-top: 30px; background: none; z-index: auto; text-align: left; }
.screen.is-desktop .empty-state > .dock.is-centered { padding: 0; }
.screen.is-desktop .empty-state { padding-bottom: 9vh; }
.screen.is-desktop .es-greeting { font-size: 42px; }
.screen.is-desktop .empty-state .es-cats { max-width: 340px; margin-top: 28px; }
.screen.is-desktop .empty-state .es-starters { max-width: 760px; }
.screen.is-desktop .empty-state .es-live { max-width: 760px; }

/* Welcome: a two-column landing page, headline and sign-in on the left, the question being typed
   on the right. The bubble wraps instead of running off the edge the way it does on a phone. */
.screen.is-desktop .ob-root .ob.ob-welcome {
  max-width: 1180px; padding: 0 clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "copy hero"; align-items: center; column-gap: clamp(40px, 6vw, 110px);
}
.screen.is-desktop .ob-welcome .wl-bottom { grid-area: copy; padding: 0; gap: 12px; }
.screen.is-desktop .ob-welcome .wl-tagline { margin: 0 0 22px; font-size: clamp(44px, 4.2vw, 62px); line-height: 1.04; }
.screen.is-desktop .ob-welcome .wl-terms { text-align: left; margin: 10px 2px 0; }
/* Not clipped: the row doesn't scroll here, and clipping would cut the glow off mid-fade. */
.screen.is-desktop .ob-welcome .wl-hero { grid-area: hero; align-self: stretch; overflow: visible; }
.screen.is-desktop .ob-welcome .wl-row { width: 100%; padding-left: 0; white-space: normal; }
/* Block, not flex, so the caret follows the last letter across lines. */
.screen.is-desktop .ob-welcome .wl-bubble { display: block; flex: 0 1 auto; min-width: 0; max-width: 600px; height: auto; padding: 34px 46px; border-radius: 64px; }
.screen.is-desktop .ob-welcome .wl-text { font-size: clamp(30px, 2.6vw, 42px); line-height: 1.2; }
.screen.is-desktop .ob-welcome .wl-caret { height: 1.05em; vertical-align: -.14em; }

/* The other sign-up steps: a centered card that fits its content, instead of a full-height phone
   column. `translate` centers it without touching the `transform` the scene changes animate.
   `:where` keeps this rule weaker than the per-step ones below. */
.screen.is-desktop .ob-root .ob:where(:not(.ob-welcome, .ob-splash)) {
  top: 50%; bottom: auto; translate: 0 -50%; margin: 0 auto; max-width: 480px; height: auto; max-height: calc(100% - 64px);
  padding-bottom: 8px; background: var(--surface); border-radius: 32px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgb(13 13 40 / .32);
}
.screen.is-desktop .ob-root .ob:not(.ob-welcome) .ob-form { flex: none; padding-bottom: 18px; }
/* The setup chat grows as it talks, so it keeps a steady height. */
.screen.is-desktop .ob-root .ob.ob-chat, .screen.is-desktop .ob-root .ob.ob-show { height: min(660px, calc(100% - 64px)); }
.screen.is-desktop .ob-root .ob.ob-done { padding: 56px 40px 32px; }
/* In the card the button follows the text instead of sitting at the bottom of a phone screen. */
.screen.is-desktop .ob-done .done-actions { position: static; width: 100%; margin-top: 30px; }
/* One line high, not stretched down the form. */
.ob-form > .text-field { flex: none; }

/* Tablets and narrow windows: one centered column, and the bubble still wraps. */
@media (min-width: 640px) {
  .stage.mode-web .screen:not(.is-desktop) .ob-root .ob { max-width: 560px; margin: 0 auto; }
  .stage.mode-web .screen:not(.is-desktop) .ob-welcome .wl-row { padding: 0 28px; white-space: normal; }
  .stage.mode-web .screen:not(.is-desktop) .ob-welcome .wl-bubble { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; padding: 30px 40px; border-radius: 60px; }
  .stage.mode-web .screen:not(.is-desktop) .ob-welcome .wl-text { font-size: 34px; line-height: 1.2; }
  .stage.mode-web .screen:not(.is-desktop) .ob-welcome .wl-caret { height: 1.05em; vertical-align: -.14em; }
  /* The chat, the composer and the sheets keep to a readable column instead of spanning the window. */
  .stage.mode-web .screen:not(.is-desktop) .thread-inner { max-width: 720px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
  .stage.mode-web .screen:not(.is-desktop) .composer { max-width: 680px; margin: 0 auto; }
  .stage.mode-web .screen:not(.is-desktop) .suggests { right: max(16px, calc((100% - 680px) / 2)); }
  .stage.mode-web .screen:not(.is-desktop) .view-scroll > * { max-width: 680px; margin-left: auto; margin-right: auto; }
  .stage.mode-web .screen:not(.is-desktop) .sheet { left: 0; right: 0; width: min(600px, calc(100% - 16px)); margin: 0 auto; }
  /* The chat list slides in at a fixed width, not 84% of a wide window. */
  .stage.mode-web .screen:not(.is-desktop) .sidebar { width: 340px; }
  .stage.mode-web .screen:not(.is-desktop) .main-card { transform: translateX(calc(var(--p) * 340px)) scale(calc(1 - var(--p) * .04)); }
}

/* ---------- Accounts: sign-in buttons, the allowance line, sign-in errors ---------- */
.google-glyph { width: 18px; height: 18px; flex: none; }
/* Google draws its own button in an iframe (up to 400px wide); this keeps the row steady while it loads. */
.gsi-wrap { min-height: 44px; display: grid; place-items: center; }
.gsi-wrap > .btn { width: 100%; }
.gsi-wrap.is-loading { opacity: .5; }
.gsi-wrap iframe { color-scheme: light; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.wl-guest { height: 40px; font-size: 15.5px; }
.wl-error, .ob-error, .signin-error { margin: 4px 6px 0; font-size: 13.5px; line-height: 1.45; color: var(--danger); text-align: center; text-wrap: balance; }
.ob-error { text-align: left; margin: 12px 2px 0; }
.ob-resend { align-self: flex-end; height: 40px; padding: 0 4px; margin-top: 10px; font-size: 14.5px; color: var(--accent); }
.ob-resend:disabled, .signin-resend:disabled { color: var(--ink-4); }
.signin { position: relative; }
.signin .signin-buttons { display: grid; gap: 10px; width: 100%; }
.signin .text-field { width: 100%; flex: none; margin-bottom: 12px; }
.signin > .btn { width: 100%; }
.signin-back { position: absolute; left: 0; top: 0; }
.signin-code { letter-spacing: .3em; font-size: 22px; }
.signin-resend { height: 40px; margin-top: 4px; font-size: 14px; color: var(--accent); }
/* .softask p would otherwise narrow, recolor and space these. */
.signin p.signin-error { margin: 2px 0 0; max-width: 34ch; color: var(--danger); font-size: 13.5px; }
.signin p.signin-terms { margin: 14px auto 0; max-width: 40ch; text-align: center; font-size: 12px; color: var(--ink-3); }
.usage-hint {
  display: flex; align-items: center; gap: 6px; margin: 0 auto 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13.5px; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.usage-hint b { color: var(--accent); font-weight: 600; }
.usage-hint:disabled { cursor: default; }
.usage-hint[hidden] { display: none; }
