:root {
  --bg: #fbf6f7;
  --panel: #f3e9ec;
  --line: #ead9de;
  --text: #1f1216;
  --muted: #7d6870;
  --accent: #7a1f33;
  --accent-soft: #f4e0e6;
  --accent-text: #ffffff;
  --bubble-theirs: #ffffff;
  --danger: #b3261e;
  --now: #ffe58a;
  --radius: 20px;
  --geez: "Noto Serif Ethiopic", "Kefa", "Nyala", serif;
  --wine: #4a1222;
  --wine-deep: #2b0a14;
  --rose: #f3c6cf;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170b10;
    --panel: #21131a;
    --line: #33222a;
    --text: #f2e6e9;
    --muted: #a68f97;
    --accent: #9c2f48;
    --accent-soft: #3a1822;
    --accent-text: #ffffff;
    --bubble-theirs: #271820;
    --danger: #ff7a70;
    --now: #6b5a12;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; font-weight: 600; }
input, textarea, select { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 12px; width: 100%; }
select { width: auto; padding: 4px 8px; }
a { color: var(--accent); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { border: 0; background: transparent; padding: 8px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--panel); }
.icon-btn.small { padding: 4px; }
.icon-btn.small .icon { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; padding: 4px 6px; color: var(--accent); font-weight: 600; }
.link-btn.danger { color: var(--danger); }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; background: var(--accent-soft); border: 0; color: var(--accent); }
.pill-btn .icon { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }

/* Sign-in pages */
.center-card { max-width: 420px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 24px 24px; text-align: center; }
.center-card form { text-align: left; margin-top: 24px; }
.logo { width: 72px; height: 72px; }

/* Layout: list and thread side by side on wide screens, one at a time on phones */
#app { display: grid; grid-template-columns: 340px 1fr; height: 100dvh; }
#list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
#thread-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
@media (max-width: 760px) {
  #app { grid-template-columns: 1fr; }
  #thread-pane { display: none; }
  body.in-thread #list-pane { display: none; }
  body.in-thread #thread-pane { display: flex; }
}
@media (min-width: 761px) { .back { display: none !important; } }

.bar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  min-height: 56px;
}
.bar h1 { font-size: 22px; margin: 0 auto 0 4px; }
.bar h2 { font-size: 18px; margin: 0 auto 0 4px; }
.bar-actions { display: flex; }
.banner { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--accent-soft); font-size: 14px; }

/* Conversation list */
#conversation-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; padding-bottom: env(safe-area-inset-bottom); }
.conv { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; }
.conv:hover { background: var(--panel); }
.conv.active { background: var(--accent-soft); }
.conv-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conv-top { display: flex; gap: 8px; }
.conv-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { color: var(--muted); font-size: 13px; }
.conv-preview { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-title, .conv.unread .conv-preview { color: var(--text); font-weight: 700; }
.unread-dot { background: var(--accent); color: var(--accent-text); border-radius: 999px; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); list-style: none; }

/* Catch-up card across all chats */
#catch-up:empty { display: none; }
.catch-card { margin: 10px 12px 4px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.catch-card.loading, .catch-card.quiet { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.catch-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.catch-top .section-label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.catch-top .section-label .icon { width: 14px; height: 14px; }
.catch-actions { display: flex; align-items: center; gap: 2px; }
.catch-card select { background: transparent; border: 0; font-size: 13px; color: var(--muted); }
.catch-card .headline { margin: 6px 0 2px; }
.catch-details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 6px; }

.headline { font-weight: 700; margin: 0 0 4px; }
.conclusion { margin: 0 0 6px; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 12px 0 4px; }
.digest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.digest-list li { display: flex; align-items: flex-start; gap: 4px; }
.digest-item { flex: 1; text-align: left; border: 0; background: transparent; padding: 6px 4px; border-radius: 8px; }
.digest-item:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Thread */
.thread-bar { gap: 10px; }
.thread-bar .avatar { width: 34px; height: 34px; font-size: 13px; }
.thread-title { display: grid; min-width: 0; flex: 1; }
.thread-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-title small { color: var(--muted); }
.thread-empty { flex: 1; display: grid; place-items: center; color: var(--muted); }
#messages { flex: 1; overflow-y: auto; padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.day { align-self: center; font-size: 12px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.msg { display: flex; flex-direction: column; max-width: min(78%, 560px); margin-bottom: 6px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg.kind-voice, .msg.kind-video { max-width: min(92%, 560px); width: 100%; }
.msg-sender { font-size: 12px; color: var(--muted); margin: 0 12px 2px; font-weight: 600; }
.bubble { padding: 9px 13px; border-radius: var(--radius); background: var(--bubble-theirs); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.msg.kind-voice .bubble, .msg.kind-video .bubble { width: 100%; white-space: normal; }
.msg.mine .bubble { background: var(--accent); color: var(--accent-text); }
.msg.mine .bubble a { color: inherit; }
.msg.mine.kind-voice .bubble, .msg.mine.kind-video .bubble { background: var(--accent-soft); color: var(--text); }
.msg.mine.kind-voice .bubble a, .msg.mine.kind-video .bubble a { color: var(--accent); }
.msg.kind-photo .bubble, .msg.mine.kind-photo .bubble { padding: 4px; background: transparent; color: var(--text); }
.msg-time { font-size: 11px; color: var(--muted); margin: 3px 10px 0; display: flex; align-items: center; gap: 6px; }
.save-btn { border: 0; background: none; padding: 2px 4px; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; opacity: 0.7; }
.save-btn .icon { width: 12px; height: 12px; }
.save-btn:hover { opacity: 1; color: var(--accent); }
@media (hover: hover) { .msg .save-btn { opacity: 0; } .msg:hover .save-btn { opacity: 0.8; } }
.msg.flash .bubble { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--now); } 100% { box-shadow: 0 0 0 0 transparent; } }
.photo { display: block; max-width: 100%; max-height: 420px; border-radius: 14px; cursor: zoom-in; }
.video { display: block; width: 100%; max-height: 480px; border-radius: 12px; background: #000; margin-bottom: 8px; }
.caption { margin: 6px 4px 0; white-space: pre-wrap; }
.file { display: flex; gap: 8px; align-items: center; color: inherit; text-decoration: none; }
.file small { opacity: 0.8; }
.pending .bubble { display: grid; gap: 6px; min-width: 220px; background: var(--accent-soft); color: var(--text); }
.pending progress { width: 100%; accent-color: var(--accent); }

/* Voice message: summary, player, transcript */
.summary { margin-bottom: 8px; }
.summary .headline { font-size: 16px; }
.summary .section-label { margin-top: 8px; }
.summary ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.summary li { font-size: 15px; }
.summary details summary { cursor: pointer; }
.status { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 0; }
.status.error { color: var(--danger); }
.stamp { border: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.player { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.player .play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-text); border: 0; padding: 0; display: grid; place-items: center; flex: none; }
.player .play .icon { fill: currentColor; stroke: none; }
.player input[type=range] { flex: 1; padding: 0; border: 0; accent-color: var(--accent); background: transparent; }
.player .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player .speed { padding: 3px 8px; font-size: 12px; font-weight: 700; border-radius: 999px; }
.transcript-toggle { padding: 4px 0; font-size: 14px; }
.transcript { max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.block { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.word { cursor: pointer; border-radius: 4px; padding: 0 1px; }
.word:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.word.now { background: var(--now); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Composer */
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.composer textarea { flex: 1; resize: none; border-radius: 20px; padding: 9px 14px; max-height: 160px; line-height: 1.35; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--accent-text); }
.round.mic { background: var(--accent-soft); color: var(--accent); }
.composer.recording { align-items: center; }
.rec-dot { width: 10px; height: 10px; background: #e5484d; border-radius: 50%; animation: pulse 1s infinite; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-hint { flex: 1; color: var(--muted); }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Sheets and overlays */
.overlay { position: fixed; inset: 0; background: rgb(0 0 0 / 0.4); display: grid; place-items: end center; z-index: 10; }
@media (min-width: 761px) { .overlay { place-items: center; } }
.sheet { background: var(--bg); width: min(100%, 520px); max-height: 88dvh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 761px) { .sheet { border-radius: 18px; } }
.sheet .bar { padding-top: 8px; }
.sheet-body { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; display: grid; gap: 10px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-weight: 500; }
.person > span:nth-child(2), label.person > span { flex: 1; }
.person input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.invite-out:empty { display: none; }
.invite-out { display: grid; gap: 8px; padding: 12px; background: var(--accent-soft); border-radius: 12px; }
.invite-out p { margin: 0; }
.digest .headline { font-size: 18px; }
.snapshots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.snapshot { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.snapshot p { margin: 0; }
.snap-text { white-space: pre-wrap; }
.snap-thumb { max-height: 180px; border-radius: 8px; cursor: zoom-in; justify-self: start; }
.snapshot textarea { font-size: 14px; resize: vertical; }
.snap-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; background: rgb(0 0 0 / 0.92); display: grid; place-items: center; z-index: 20; cursor: zoom-out; }
.lightbox img { max-width: 100vw; max-height: 100dvh; }
.lightbox-open { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); color: #fff; }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 30; }

/* One chat, full width */
#app.solo { grid-template-columns: 1fr; }
#app.solo #thread-pane { display: flex; }
#app.solo .thread-bar { gap: 4px; }
@media (max-width: 420px) { #app.solo .pill-btn .label-text { display: none; } }

/* Welcome and setup */
.app-name { font-size: 34px; letter-spacing: 0.5px; margin: 12px 0 4px; }
.welcome .sweet { font-size: 19px; line-height: 1.7; margin: 18px 0 6px; }
.welcome .only-us { font-size: 22px; font-weight: 700; margin: 6px 0 22px; }
.welcome-voice { text-align: left; background: var(--panel); border-radius: 18px; padding: 12px 14px; margin: 0 0 20px; }
.welcome-words { font-size: 17px; line-height: 1.7; margin: 10px 0 2px; }
.welcome-words .w { cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.welcome-words .w.now { background: var(--now); color: #15191a; }
button.wide { width: 100%; padding: 14px; font-size: 18px; }
.setup { text-align: left; }
.setup > .logo, .setup > h1, .setup > p:first-of-type { display: block; text-align: center; margin-inline: auto; }
.setup .step { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.setup .step h2 { font-size: 17px; margin: 0; }
.setup .step p { margin: 0; }
.setup button .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

/* @ai messages: centered, outlined, burgundy label */
.msg.ai { align-self: center; align-items: center; max-width: min(88%, 560px); }
.msg.ai .bubble { background: var(--panel); border: 1px solid var(--accent); color: var(--text); white-space: normal; }
.msg.ai .photo { display: block; max-width: 100%; border-radius: 12px; margin: 6px 0 2px; }
.ai-label { font-size: 12px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.ai-label .icon { width: 14px; height: 14px; }
.ai-text { margin: 6px 0 0; white-space: pre-wrap; }

/* Replies */
.quote { display: grid; text-align: left; gap: 1px; width: 100%; margin: 0 0 6px; padding: 5px 9px; border: 0; border-left: 3px solid currentColor; border-radius: 8px; background: rgba(127, 127, 127, 0.16); color: inherit; font-size: 13px; }
.quote span { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.reply-bar .reply-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar > .icon { color: var(--accent); }

/* Reactions and actions */
.reactions { display: flex; gap: 4px; margin: -6px 8px 0; position: relative; z-index: 1; }
.reaction { padding: 1px 7px; border-radius: 12px; font-size: 14px; background: var(--bg); border: 1px solid var(--line); }
.reaction.me { border-color: var(--accent); background: var(--accent-soft); }
.more-btn { border: 0; background: none; padding: 0 4px; color: var(--muted); display: inline-grid; place-items: center; }
.more-btn .icon { width: 18px; height: 18px; stroke-width: 3; }
.reaction-picker { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 12px; }
.reaction-picker button { font-size: 26px; padding: 6px; border: 0; background: var(--panel); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; }
.action-list { display: grid; gap: 6px; }
.action-list button { text-align: left; padding: 12px 14px; display: flex; align-items: center; gap: 4px; }
.action-list .icon { width: 18px; height: 18px; }
.action-list button.danger, .link-btn.danger { color: var(--danger); }
button.danger-bg { background: var(--danger); border-color: var(--danger); color: #fff; }
.seen { color: var(--muted); }
.msg .bubble { -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; }

/* Typing and AI lines above the composer */
.live-line { padding: 0 16px; font-size: 12px; color: var(--muted); min-height: 0; }
.live-line span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
.live-line .icon { width: 14px; height: 14px; color: var(--accent); }
#ai-working { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Voice lock */
.lock .stack { margin-top: 18px; }
.lock button.wide .icon { width: 20px; height: 20px; vertical-align: -4px; }
.big-mic { width: 120px; height: 120px; border-radius: 50%; margin: 28px auto 12px; display: grid; place-items: center; background: var(--accent); border: 0; color: var(--accent-text); box-shadow: 0 8px 30px rgba(122, 31, 51, 0.35); }
.big-mic .icon { width: 48px; height: 48px; }
.big-mic.small { width: 84px; height: 84px; margin: 12px auto; }
.big-mic.small .icon { width: 34px; height: 34px; }
.big-mic.recording { animation: pulse 1s ease-in-out infinite; background: var(--danger); }
.big-mic:disabled { opacity: 0.6; }
.phrase { font-size: 18px; font-weight: 600; }

/* Search */
.search-results { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.search-results button { width: 100%; text-align: left; display: grid; gap: 2px; }

/* Sheets never get wider than the screen. */
.overlay { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.sheet-body > * { min-width: 0; }
.reaction-picker { flex-wrap: wrap; justify-content: center; }
.reaction-picker { gap: 2px; }
.reaction-picker button { width: 38px; height: 38px; font-size: 21px; padding: 0; }

/* Pick who you are */
.people-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.person-pick { display: grid; justify-items: center; gap: 6px; padding: 18px 8px; border-radius: 18px; }
.person-pick strong { font-size: 20px; }
.avatar.big { width: 64px; height: 64px; font-size: 28px; background: var(--accent); color: var(--accent-text); }
.pin-input { font-size: 26px; text-align: center; letter-spacing: 6px; padding: 12px; }
.train-steps { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.train-steps .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.train-steps .dot.on { background: var(--accent); }

/* Full-screen pages (sign-in, welcome, setup): one column, centered both ways. */
#app:has(> .center-card) { display: block; }
.center-card {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

/* Sign-in lives on wine, whatever the phone's theme. */
.lock {
  --text: #f7e9ec; --muted: #d6a7b2; --line: rgba(247, 233, 236, 0.18);
  --panel: rgba(255, 255, 255, 0.06); --accent: var(--rose); --accent-text: var(--wine);
  max-width: none; align-items: center; color: var(--text);
  background: radial-gradient(130% 80% at 50% 0%, #6b1a30 0%, var(--wine) 48%, var(--wine-deep) 100%);
  color-scheme: dark;
}
.lock > * { margin-inline: auto; }
.lock > p, .lock > .stack, .lock > .welcome-voice, .lock > button.wide { width: 100%; max-width: 340px; }
.pick-title {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 0.1em;
  margin: 0 0 18px; font: 700 clamp(52px, 17vw, 84px)/1.15 var(--geez);
}
.pick-name {
  font: inherit; color: var(--text); background: none; border: 0; border-radius: 14px;
  padding: 0 0.12em; text-decoration: underline 2px rgba(243, 198, 207, 0.3); text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.pick-name:hover, .pick-name:focus-visible { text-decoration-color: var(--rose); outline: none; }
.pick-name:active { color: #fff; }
.pick-title .wa { font-weight: 400; font-size: 0.5em; color: var(--muted); }
.lock .tagline { font: 400 19px/1.6 var(--geez); margin: 0 0 40px; }
.lock .hint { color: var(--muted); font-size: 14px; margin: 0; }
.pass-name { font: 700 clamp(48px, 15vw, 68px)/1.15 var(--geez); margin: 0; }
.lock .app-name { font-family: var(--geez); }
.lock .big-mic {
  width: 112px; height: 112px; margin: 44px auto 20px;
  background: transparent; color: var(--rose); border: 1.5px solid var(--rose);
  box-shadow: 0 0 0 12px rgba(243, 198, 207, 0.07), 0 0 0 26px rgba(243, 198, 207, 0.035);
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.lock .big-mic .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.lock .big-mic:active { transform: scale(0.96); }
.lock .big-mic.recording { background: var(--rose); color: var(--wine); animation: pulse 1.2s ease-in-out infinite; }
.lock .status { display: block; text-align: center; font-size: 15px; min-height: 3em; margin: 4px 0 6px; color: var(--muted); }
.lock .link-btn { color: var(--muted); font-weight: 500; }
.lock button.primary { background: var(--rose); color: var(--wine); padding: 13px 16px; border-radius: 14px; }
.lock button.wide:not(.primary) { background: transparent; border: 1px solid var(--line); padding: 13px 16px; border-radius: 14px; }
.lock .stack { margin-top: 28px; }
.lock .welcome-voice { background: var(--panel); }
@media (prefers-reduced-motion: reduce) { .lock .big-mic.recording { animation: none; } }

/* Chat */
.thread-title strong { font: 600 20px/1.2 var(--geez); }
.thread-bar .avatar { font-family: var(--geez); }
.bar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#messages { padding: 12px 14px 6px; gap: 0; }
.day { font-weight: 500; margin: 18px 0 10px; }
.msg { margin: 10px 0 0; }
.msg.joined { margin-top: 3px; }
.bubble { border-radius: var(--radius); line-height: 1.4; }
.msg.theirs .bubble { box-shadow: 0 1px 1px rgba(60, 20, 30, 0.06); }
.msg.mine .bubble { border-bottom-right-radius: 6px; }
.msg.theirs .bubble { border-bottom-left-radius: 6px; }
.msg.mine.joined .bubble { border-top-right-radius: 6px; }
.msg.theirs.joined .bubble { border-top-left-radius: 6px; }
.msg-time { display: none; margin: 4px 8px 0; }
.msg.run-end .msg-time, .msg.show-meta .msg-time, .msg-time:has(.seen) { display: flex; }
.reactions { margin: -7px 10px 0; }
.reaction { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
@media (hover: none) { .more-btn { display: none !important; } }
@media (hover: hover) {
  .more-btn { opacity: 0; transition: opacity 0.15s; }
  .msg:hover .more-btn, .more-btn:focus-visible { opacity: 1; }
}
.composer { border-top: 0; background: transparent; }
.composer textarea { background: var(--panel); border-color: transparent; }
.composer textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
/* On wide screens the chat stays a readable column in the middle. */
#app.solo #messages, #app.solo .composer, #app.solo .thread-bar, #app.solo .live-line { padding-inline: max(14px, calc((100% - 760px) / 2)); }
