/* HeyLevo Mobile — ink + lime, Geist. Never orange. */
:root {
  --ink: #0E1014;
  --ink-2: #1D2129;
  --lime: #D4FF3A;
  --lime-wash: #F3FBD3;
  --wash: #F4F5F1;
  --paper: #FFFFFF;
  --rule: #DFE2DC;
  --muted: #6A707C;
  --silver: #B4BAC3;
  --danger: #C8362E;
  --ok: #1F8A57;

  --bg: var(--wash);
  --surface: var(--paper);
  --surface-2: #ECEEE8;
  --text: var(--ink);
  --text-soft: var(--muted);
  --line: var(--rule);
  --focus: 0 0 0 3px rgba(212, 255, 58, .9), 0 0 0 5px var(--ink);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow: 0 1px 0 rgba(14, 16, 20, .04), 0 8px 24px -12px rgba(14, 16, 20, .18);
  --font: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --surface: #161920;
    --surface-2: #1F232B;
    --text: #F4F5F1;
    --text-soft: #A3A9B3;
    --line: #2A2F38;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
    --focus: 0 0 0 3px var(--lime);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--ink); --surface: #161920; --surface-2: #1F232B; --text: #F4F5F1; --text-soft: #A3A9B3; --line: #2A2F38;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7); --focus: 0 0 0 3px var(--lime); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
img { max-width: 100%; display: block; }
/* Every inline icon gets a size unless it set its own (zero specificity, so component rules win). */
:where(svg[aria-hidden="true"]:not([width])) { width: 20px; height: 20px; flex: none; }
.tile .foot svg { width: 18px; height: 18px; opacity: .55; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* ── type ─────────────────────────────────────────────── */
.kicker { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
.soft { color: var(--text-soft); }
.small { font-size: 13.5px; }
.tag { display: inline-block; background: var(--lime); color: var(--ink); border-radius: 6px; padding: 0 .3em; font-weight: 700; }

/* ── chrome ───────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top h2 { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.screen { flex: 1; padding: 8px 16px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 18px; }
.screen.center { justify-content: center; }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 650; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); } }
:root[data-theme="dark"] .btn.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
/* Plain buttons on a dark panel: outline, light text (they inherited the panel's light text on a light fill). */
.panel.ink .btn:not(.lime):not(.primary) { background: transparent; color: #F4F5F1; border-color: rgba(244, 245, 241, .28); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow { flex: 1; }
.stack-v { display: flex; flex-direction: column; gap: 10px; }

/* ── forms ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 255, 58, .55); }
.field .hint { font-size: 12.5px; color: var(--text-soft); }
.code-input { font-family: var(--mono); font-size: 28px; letter-spacing: .5em; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); } }
.error-text { color: var(--danger); font-size: 14px; font-weight: 550; }

/* ── cards / panels ───────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; box-shadow: var(--shadow); }
.panel.ink { background: var(--ink); color: #F4F5F1; border-color: var(--ink); }
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line) !important; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; cursor: pointer; background: none; border: 0; text-align: left; width: 100%; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { font-size: 13.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 32px 16px; color: var(--text-soft); }
.badge { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); white-space: nowrap; }
.badge.lime { background: var(--lime); color: var(--ink); }
.badge.ink { background: var(--ink); color: #fff; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }

/* ── sign-in ──────────────────────────────────────────── */
.hero-auth { padding: calc(40px + var(--safe-top)) 20px 10px; display: flex; flex-direction: column; gap: 22px; }
.hero-auth .logo { height: 34px; width: auto; }
.hero-auth h1 { font-size: 36px; }
.hero-auth h1 .tag { padding: 0 .18em; }
.auth-card { padding: 0 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.suggest { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; }

/* ── dashboard ────────────────────────────────────────── */
.dash-head { padding: calc(18px + var(--safe-top)) 16px 4px; display: flex; flex-direction: column; gap: 14px; }
.ws-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; max-width: 100%; }
.ws-pill .dot { width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.ws-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.greet { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }

.hero-tile {
  position: relative; overflow: hidden; border-radius: var(--r-l); padding: 20px; color: #F4F5F1; background: var(--ink);
  display: flex; flex-direction: column; gap: 14px; min-height: 176px; text-decoration: none; isolation: isolate;
}
.hero-tile::before {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 255, 58, .55), rgba(212, 255, 58, 0) 65%); z-index: -1;
}
.hero-tile::after {
  content: ""; position: absolute; right: -30px; bottom: -36px; width: 190px; height: 110px; border-radius: 14px;
  border: 1.5px solid rgba(244, 245, 241, .18); transform: rotate(-12deg); z-index: -1;
  box-shadow: -22px -16px 0 -1.5px rgba(14, 16, 20, 1), -22px -16px 0 0 rgba(244, 245, 241, .12);
}
.hero-tile h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-tile p { margin: 0; color: var(--silver); max-width: 26ch; }
.hero-tile .row { margin-top: auto; }

.group { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 138px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
  opacity: 0; transform: translateY(8px); animation: rise .5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.tile:active { transform: scale(.98); }
/* An odd last tile spans the row instead of leaving a hole. */
.tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.tile .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); }
.tile .ico svg { width: 20px; height: 20px; }
.tile .name { font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.tile .blurb { font-size: 12.5px; color: var(--text-soft); line-height: 1.35; }
.tile .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tile.on { background: var(--ink); color: #F4F5F1; border-color: var(--ink); }
.tile.on .ico { background: rgba(212, 255, 58, .14); color: var(--lime); }
.tile.on .blurb { color: var(--silver); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile.on { background: #20242C; border-color: #2E333C; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── sheet ────────────────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(14, 16, 20, .42); animation: fade .2s ease; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; animation: up .28s cubic-bezier(.2, .9, .2, 1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

/* ── toast ────────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 550; font-size: 14.5px; z-index: 80;
  max-width: calc(100% - 32px); transition: .25s ease; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); }

/* ── business cards ───────────────────────────────────── */
.capture-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 150px; padding: 16px;
  border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left;
}
.choice.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); }
.choice.primary .ico { background: var(--lime); color: var(--ink); }
.choice .ico svg { width: 24px; height: 24px; }
.choice b { font-size: 17px; }
.choice small { display: block; font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.choice.primary small { color: var(--silver); }

.scan-preview { position: relative; border-radius: var(--r-m); overflow: hidden; background: #000; aspect-ratio: 1.7; }
.scan-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.scan-preview .beam {
  position: absolute; left: 0; right: 0; height: 36%; top: -36%;
  background: linear-gradient(to bottom, rgba(212, 255, 58, 0), rgba(212, 255, 58, .35) 80%, rgba(212, 255, 58, .9));
  animation: beam 1.6s ease-in-out infinite;
}
.scan-preview .label { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; letter-spacing: .08em; }
@keyframes beam { to { top: 100%; } }

.deck { position: relative; height: 250px; margin: 4px 0 6px; perspective: 900px; }
.bizcard {
  position: absolute; left: 0; right: 0; margin: auto; width: 100%; max-width: 380px; aspect-ratio: 1.75; border-radius: 18px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule); padding: 18px 18px 16px;
  display: flex; flex-direction: column; box-shadow: 0 18px 40px -22px rgba(14, 16, 20, .55);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s; transform-origin: 50% 100%; cursor: pointer; overflow: hidden;
}
.bizcard .co { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bizcard .nm { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.bizcard .tl { font-size: 13.5px; color: var(--muted); }
.bizcard .lines { margin-top: auto; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.bizcard .lines span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bizcard .thumb { position: absolute; right: 14px; top: 14px; width: 64px; height: 40px; border-radius: 7px; object-fit: cover; opacity: .9; border: 1px solid var(--rule); }
.bizcard .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lime); }
.bizcard.dark { background: var(--ink); color: #F4F5F1; border-color: var(--ink); }
.bizcard.dark .co, .bizcard.dark .tl { color: var(--silver); }
.deck-nav { display: flex; justify-content: center; align-items: center; gap: 14px; }
.deck-count { font-family: var(--mono); font-size: 13px; color: var(--text-soft); min-width: 60px; text-align: center; }
.seg { display: flex; padding: 4px; border-radius: 14px; background: var(--surface-2); gap: 4px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-soft); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ── stage (meetings + voice): always ink ──────────────── */
.stage { background: var(--ink); color: #F4F5F1; min-height: 100dvh; display: flex; flex-direction: column; }
.stage .top { background: color-mix(in srgb, var(--ink) 85%, transparent); }
.stage .icon-btn { background: #1A1D24; border-color: #2A2F38; color: #F4F5F1; }
.stage .soft { color: var(--silver); }
.stage .btn { background: #1A1D24; border-color: #2A2F38; color: #F4F5F1; }
.stage .btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.stage .field input, .stage .field textarea { background: #161920; border-color: #2A2F38; color: #F4F5F1; }
.stage .list { background: #161920; border-color: #2A2F38; }
.stage .list > * + * { border-color: #2A2F38; }

.rec-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0 6px; }
.rec {
  --lvl: 0; position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, #2A2F38, #15181E 70%); display: grid; place-items: center;
  box-shadow: 0 0 0 calc(4px + var(--lvl) * 12px) rgba(212, 255, 58, calc(.10 + var(--lvl) * .18)), 0 0 0 1.5px rgba(212, 255, 58, .5) inset;
  transition: box-shadow .08s linear;
}
.rec .core { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); transition: border-radius .25s, width .25s, height .25s; }
.rec.on .core { width: 40px; height: 40px; border-radius: 10px; }
.timer { font-family: var(--mono); font-size: 34px; letter-spacing: .04em; font-weight: 500; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); margin-right: 8px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.transcript {
  flex: 1; min-height: 160px; max-height: 46dvh; overflow-y: auto; padding: 16px; border-radius: var(--r-m); background: #15181E; border: 1px solid #232731;
  font-size: 17px; line-height: 1.55; scroll-behavior: smooth;
}
.transcript p { margin: 0 0 10px; }
.transcript .interim { color: var(--silver); opacity: .75; }
.transcript .placeholder { color: #6A707C; }
.steps { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px; }
.step { display: flex; gap: 12px; align-items: center; font-weight: 550; color: var(--silver); }
.step .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3A404B; flex: none; display: grid; place-items: center; }
.step.on { color: #F4F5F1; }
.step.on .dot { border-color: var(--lime); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.done { color: #F4F5F1; }
.step.done .dot { border-color: var(--lime); background: var(--lime); }
.step.done .dot::after { content: ""; width: 8px; height: 5px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
@keyframes spin { to { transform: rotate(360deg); } }
.md { font-size: 15.5px; line-height: 1.55; }
.md h1, .md h2, .md h3 { margin: 16px 0 6px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.md ul { margin: 6px 0; padding-left: 20px; }
.md p { margin: 6px 0; }

/* ── tasks ────────────────────────────────────────────── */
.task { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.check {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); flex: none; cursor: pointer; margin-top: 1px;
  display: grid; place-items: center;
}
.check[aria-checked="true"] { background: var(--ink); border-color: var(--ink); }
.check[aria-checked="true"]::after { content: ""; width: 10px; height: 6px; border: solid var(--lime); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.task .grow { flex: 1; min-width: 0; }
.task .t { font-weight: 600; }
.task.done .t { text-decoration: line-through; color: var(--text-soft); }
.task .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ── voice blob ───────────────────────────────────────── */
.blob-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 10px 20px; }
.blob-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.blob-canvas { width: min(72vw, 300px); height: min(72vw, 300px); display: block; }
.caption { min-height: 80px; text-align: center; font-size: 19px; line-height: 1.4; font-weight: 550; max-width: 30ch; letter-spacing: -.01em; }
.caption .you { color: var(--silver); font-weight: 500; font-size: 15px; display: block; margin-bottom: 6px; }
.voice-status { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.result-card { width: 100%; background: #F4F5F1; color: var(--ink); border-radius: var(--r-m); padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: up .35s cubic-bezier(.2, .9, .2, 1); }

/* ── agent chat (collections, events, forms, email) ───── */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 12px 14px; border-radius: 16px; max-width: 88%; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.status { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text-soft); background: none; padding: 2px 4px; }
.made { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--lime-wash); color: var(--ink); border: 1px solid #DDEFA4; text-decoration: none; font-weight: 600; }
.prompt-ideas { display: flex; flex-direction: column; gap: 8px; }
.idea { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); background: transparent; cursor: pointer; font-size: 14.5px; }
.composer { position: sticky; bottom: 0; padding: 10px 0 calc(8px + var(--safe-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 52px; max-height: 160px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); resize: none; font-size: 16px; outline: none; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; display: inline-block; }

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

/* Voice screen: mic / voice toggles and the typing box */
.voice-controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; width: 100%; }
.voice-controls .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px;
  background: rgba(244, 245, 241, .08); color: #F4F5F1; border: 1px solid rgba(244, 245, 241, .24); font-weight: 600; }
.voice-controls .chip svg { width: 18px; height: 18px; }
/* "Off" is the state to notice: lime. */
.voice-controls .chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.voice-type { display: flex; gap: 8px; width: 100%; }
.voice-type .input { flex: 1; min-width: 0; }
.voice-type .btn { min-height: 48px; padding: 0 14px; }

/* AI credits */
.meter { height: 8px; border-radius: 99px; background: rgba(244, 245, 241, .16); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.credit-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-soft); text-decoration: none; }
.credit-line svg { width: 16px; height: 16px; }
