/* Yazzer — all-white design ported from the prototype: navy text matching
   the wordmark, hairline gray structure, the logo's orange as the primary
   accent, and a soft blue only in the user bubbles. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f7f9;
  --surface-3: #eceef1;
  --line: #e5e8ec;
  --line-strong: #d3d9df;
  --text: #16222e;
  --muted: #5b6875;
  --muted-2: #93a0ad;
  --accent: #f69a14;
  --accent-strong: #e08a05;
  --accent-soft: #fdf0dc;
  --user-bubble: #2563eb;
  --error: #dc2626;
  --radius: 14px;
  --shadow-composer: 0 10px 30px rgba(22, 34, 46, 0.08), 0 2px 8px rgba(22, 34, 46, 0.05);
  --shadow-card: 0 14px 40px rgba(22, 34, 46, 0.08);
  --glow: rgba(246, 154, 20, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .empty-state, .msg { animation: none !important; }
}

/* ---------- brand ---------- */
.brand { text-align: center; margin-bottom: 22px; }
/* The logo art is dark navy on white and the app is all white — it sits
   natively on the background: no plate, card, border, or shadow. */
.brand-logo {
  display: block;
  width: 210px;
  max-width: 72%;
  height: auto;
  margin: 0 auto;
}
.brand-logo.small { width: 118px; margin: 0; }
.brand-tag {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}
.brand-tag.small { font-size: 11px; margin-top: 5px; }

/* ---------- buttons ---------- */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 8px 20px rgba(246, 154, 20, 0.30);
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-ghost {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }

.error { color: var(--error); font-size: 14px; margin: 10px 0 0; }

/* ---------- auth ---------- */
.auth-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(600px 280px at 50% -80px, var(--glow), transparent 70%) no-repeat, var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: var(--panel-2);
  border-radius: 999px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: color 0.15s ease, background 0.15s ease;
}
.auth-tab.active { background: #ffffff; color: var(--text); box-shadow: 0 1px 3px rgba(22, 34, 46, 0.12); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-form input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 16px;
  min-height: 44px;
}
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(246, 154, 20, 0.15); }
.auth-note, .auth-foot { color: var(--muted); font-size: 13px; text-align: center; margin: 4px 0 0; }
.auth-foot { margin-top: 20px; line-height: 1.5; }

/* ---------- app layout ---------- */
.app { display: flex; height: 100dvh; }

.sidebar {
  width: 288px;
  flex: 0 0 288px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 14px;
}
.sidebar-brand { text-align: left; padding: 0 4px; }
#new-chat-btn { border-radius: 16px; width: 100%; }
.conv-list-wrap { flex: 1; overflow-y: auto; min-height: 0; }
.conv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.conv-item {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-item:hover { background: var(--panel-2); color: var(--text); }
.conv-item.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }

.usage-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--panel-2);
}
.usage-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.usage-numbers { font-size: 20px; font-weight: 700; margin-top: 6px; }
.usage-of { color: var(--muted); font-size: 13px; font-weight: 400; }
.usage-bar { height: 6px; background: var(--surface-3); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.usage-bar-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 3px; transition: width 0.3s ease; }
.free-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 14px;
  cursor: pointer;
  min-height: 32px;
}
.usage-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 8px 0 0; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: var(--line-strong);
  border-radius: 26px;
  transition: background 0.2s ease;
}
.slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(22, 34, 46, 0.25);
  transition: transform 0.2s ease;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.user-email { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: radial-gradient(600px 280px at 50% -80px, var(--glow), transparent 70%) no-repeat, var(--bg);
}
.main-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.conv-title { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.messages::-webkit-scrollbar { width: 5px; }
.messages::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.empty-state { text-align: center; margin: auto; padding: 30px 10px; animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.empty-logo { display: block; width: 240px; max-width: 68vw; height: auto; margin: 0 auto; }
.empty-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin-top: 24px; }
.empty-sub { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 420px; margin: 12px auto 0; }
.empty-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(22, 34, 46, 0.05);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 6px; }

.msg { display: flex; flex-direction: column; max-width: 88%; animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.assistant { align-self: flex-start; align-items: flex-start; max-width: 100%; width: 100%; }
/* Assistant replies are plain text under a small "Yazzer" label, like the
   prototype — no bubble. The label is CSS-only so app.js markup is unchanged. */
.msg.assistant::before {
  content: "Yazzer";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.msg-bubble {
  padding: 12px 15px;
  border-radius: var(--radius);
  line-height: 1.55;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.user .msg-bubble {
  background: var(--user-bubble);
  color: #ffffff;
  border-radius: 22px;
  border-bottom-right-radius: 8px;
  padding: 12px 16px;
  line-height: 1.6;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22);
}
.msg.assistant .msg-bubble {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  line-height: 1.7;
  color: var(--text);
}
.receipt {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  margin-top: 6px;
  padding: 0;
}
.switch-note {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 8px;
}
.typing { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 0; }

.chat-error { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px 8px; }
.chat-error-inline {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--error);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
}
.retry-btn { color: var(--text); flex: 0 0 auto; }

.composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.composer textarea {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 13px 18px;
  resize: none;
  max-height: 160px;
  min-height: 48px;
  box-shadow: var(--shadow-composer);
}
.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(246, 154, 20, 0.15), var(--shadow-composer);
}
.send-btn { min-width: 76px; border-radius: 999px; }

/* ---------- sources + honesty notes ---------- */
.sources { margin-top: 10px; }
.sources-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.sources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sources-list a {
  color: var(--user-bubble);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sources-list a:hover { text-decoration: underline; }
.switch-detail {
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.switch-note.live-note {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px;
  line-height: 1.45;
  max-width: 100%;
}
.listen-btn { margin-top: 8px; align-self: flex-start; }

/* ---------- models count + hand-off explainer ---------- */
.models-line {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.models-line strong { color: var(--text); font-weight: 700; }

/* A looping illustration of the relay: a model answers, taps out, and
   the next one keeps your place. Pure CSS — each step owns a 2s slot of
   a 16s loop via its --d delay. Steps are stacked in one stage line. */
.passoff {
  max-width: 440px;
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 10px 16px 12px;
  text-align: left;
}
.passoff-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.passoff-stage { position: relative; height: 26px; }
.passoff-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  animation: po-beat 16s linear infinite;
  animation-delay: var(--d, 0s);
}
.passoff-step.tap { color: var(--muted); font-weight: 500; }
.passoff-step.done { color: var(--accent-strong); }
.po-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.po-dot.go { background: var(--accent); animation: po-pulse 1s ease-in-out infinite; }
.po-dot.stop { background: var(--muted-2); }
.po-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 16px;
}
@keyframes po-beat {
  0% { opacity: 0; transform: translateY(6px); }
  2% { opacity: 1; transform: translateY(0); }
  11% { opacity: 1; transform: translateY(0); }
  12.5% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes po-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  /* Static explainer: every beat listed, nothing moves. */
  .passoff-stage { height: auto; }
  .passoff-step {
    position: static;
    opacity: 1;
    animation: none;
    padding: 3px 0;
    white-space: normal;
  }
  .po-dot.go { animation: none; }
}

/* ---------- home-page dropdowns ---------- */
/* Both home-page blocks ("What can Yazzer do?" and "Why YAZZER?") are
   <details class="dropdown">. The summary row is the invitation — a
   generous tap target, an orange-tint hover, a soft press — and the
   body opens with a grid-rows swell while its items fade up in a
   short stagger (driven by the .is-open class from app.js). */
.dropdown {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 4px 16px;
}
.dropdown summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  min-height: 48px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::marker { content: none; }
.dropdown summary:hover { background: var(--accent-soft); }
.dropdown summary:active { background: var(--accent-soft); transform: scale(0.99); }
.dropdown-chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.2s ease;
}
.dropdown.is-open .dropdown-chevron { transform: rotate(225deg); border-color: var(--accent-strong); }
.dropdown-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.dropdown.is-open .dropdown-body { grid-template-rows: 1fr; }
.dropdown-inner { overflow: hidden; min-height: 0; }
/* Items start quiet and rise in once the dropdown opens. The hidden
   start state is gated on .js-dropdowns (added by app.js) so that
   without the animation layer the native toggle shows content as-is. */
.js-dropdowns .dropdown .dropdown-inner > *,
.js-dropdowns .dropdown .dropdown-inner li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.js-dropdowns .dropdown.is-open .dropdown-inner > *,
.js-dropdowns .dropdown.is-open .dropdown-inner li {
  opacity: 1;
  transform: translateY(0);
}
.js-dropdowns .dropdown.is-open .dropdown-inner > *:nth-child(2) { transition-delay: 0.06s; }
.js-dropdowns .dropdown.is-open .dropdown-inner > *:nth-child(3) { transition-delay: 0.12s; }
.js-dropdowns .dropdown.is-open .dropdown-inner > *:nth-child(4) { transition-delay: 0.18s; }
.js-dropdowns .dropdown.is-open .dropdown-inner > *:nth-child(5) { transition-delay: 0.24s; }
.js-dropdowns .dropdown.is-open .dropdown-inner > *:nth-child(6) { transition-delay: 0.3s; }
.js-dropdowns .dropdown.is-open .dropdown-inner li:nth-child(2) { transition-delay: 0.06s; }
.js-dropdowns .dropdown.is-open .dropdown-inner li:nth-child(3) { transition-delay: 0.12s; }
.js-dropdowns .dropdown.is-open .dropdown-inner li:nth-child(4) { transition-delay: 0.18s; }
.js-dropdowns .dropdown.is-open .dropdown-inner li:nth-child(5) { transition-delay: 0.24s; }
.js-dropdowns .dropdown.is-open .dropdown-inner li:nth-child(6) { transition-delay: 0.3s; }
.js-dropdowns .dropdown.is-open .dropdown-inner li:nth-child(7) { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .dropdown-body { transition: none; }
  .dropdown summary, .dropdown-chevron { transition: none; }
  .js-dropdowns .dropdown .dropdown-inner > *,
  .js-dropdowns .dropdown .dropdown-inner li { transition: none; }
}

/* ---------- what can Yazzer do ---------- */
.can-do {
  max-width: 440px;
  margin: 22px auto 0;
}
.can-do ul { margin: 2px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.can-do li { font-size: 13.5px; line-height: 1.55; color: var(--muted); overflow-wrap: break-word; }
.can-do li strong { color: var(--text); }

/* ---------- founder story ---------- */
.founder-dropdown {
  max-width: 520px;
  margin: 26px auto 0;
}
.founder {
  text-align: center;
  padding: 2px 2px 12px;
}
/* Headline + avatar lockup — the photo sits small and round beside
   the headline, like a logo mark, not a portrait spread. */
.founder-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 96px;
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--line-strong), 0 8px 20px rgba(22, 34, 46, 0.16);
}
.founder-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.founder p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  text-align: left;
  margin: 12px 0 0;
  overflow-wrap: break-word;
}
.founder p strong { color: var(--text); }
.founder-sign {
  margin-top: 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--accent-strong);
}
.founder-name { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- photo attach ---------- */
.attach-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 16px 0;
}
.attach-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  flex: 0 0 44px;
}
.attach-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.attach-remove { margin-left: auto; flex: 0 0 auto; }
.attach-btn { flex: 0 0 auto; font-size: 17px; border-radius: 999px; min-width: 48px; min-height: 48px; }

/* ---------- usage stats ---------- */
.usage-stats { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  min-height: 24px;
}
.stat-num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- confetti ---------- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(22, 34, 46, 0.18);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: block; }
  .msg { max-width: 94%; }
  .msg.assistant { max-width: 100%; }
  .empty-title { font-size: 30px; }
  /* Tap targets ≥44px on touch screens (ghost buttons are 36px on desktop). */
  .btn-ghost { min-height: 44px; }
  .attach-btn { min-width: 48px; min-height: 48px; }
  .free-toggle { min-height: 44px; }
  .conv-item { padding: 12px; }
  .composer { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .send-btn { min-width: 68px; }
  .can-do { max-width: 100%; }
  .empty-state { padding: 20px 4px; }
  .sidebar { width: min(288px, 86vw); flex-basis: min(288px, 86vw); }
}

/* ---------- logo = home button ---------- */
/* The logos keep their exact layout; the button chrome is invisible —
   only the pointer and a subtle press/hover affordance change. */
.logo-home {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  border-radius: 10px;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.logo-home:hover { opacity: 0.85; }
.logo-home:active { transform: scale(0.97); }
.logo-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty-state .logo-home { display: flex; width: fit-content; margin: 0 auto; }

/* ---------- live model status strip ---------- */
/* Slim strip directly above the composer, visible only while an
   answer generates. The dot reuses the hand-off animation's pulse
   (already stilled under prefers-reduced-motion above). */
.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.live-status[hidden] { display: none; }

/* ---------- listen voice picker ---------- */
.voice-row { margin-top: 12px; }
.voice-row > label { display: block; font-size: 13px; margin-bottom: 6px; }
.voice-controls { display: flex; gap: 8px; align-items: center; }
.voice-controls select {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}
.voice-sample { white-space: nowrap; font-size: 12.5px; }
