:root {
  --bg: #09101d;
  --panel: #121a2b;
  --text: #eef4ff;
  --muted: #98a6c7;
  --accent: #6fa7ff;
  --accent-2: #77f0c9;
  --border: rgba(255,255,255,0.08);
  --user: #2450a8;
  --assistant: #1a243d;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #13203f, var(--bg));
  color: var(--text);
}
.app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 12px 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
}
h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
}
.sub, .hint {
  color: var(--muted);
}
.hero {
  padding: 4px 2px 10px;
  flex: 0 0 auto;
}
.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.chat-list {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 12px;
}
.composer-shell {
  flex: 0 0 auto;
  background: rgba(18, 26, 43, 0.96);
  border-top: 1px solid var(--border);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.status-pill {
  display: inline-block;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(119, 240, 201, 0.12);
  color: var(--accent-2);
  margin-bottom: 10px;
}
.model-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.model-btn, .record-btn {
  border: 0;
  border-radius: 18px;
  color: white;
  font-weight: 700;
}
.model-btn {
  flex: 1;
  min-height: 46px;
  background: #23304f;
}
.model-btn.active {
  background: linear-gradient(135deg, var(--accent), #4e7eff);
}
.record-btn {
  width: 100%;
  min-height: 76px;
  background: linear-gradient(135deg, var(--accent), #4e7eff);
  font-size: 24px;
  margin: 10px 0 8px;
  box-shadow: 0 12px 28px rgba(79, 123, 255, 0.35);
}
.record-btn.recording {
  background: linear-gradient(135deg, #ff5c7a, #d93b5d);
}
.bubble-wrap {
  display: flex;
}
.bubble-wrap.user {
  justify-content: flex-end;
}
.bubble-wrap.assistant {
  justify-content: flex-start;
}
.bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.bubble.user {
  background: var(--user);
}
.bubble.assistant {
  background: var(--assistant);
}
.bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}
audio {
  width: 100%;
  margin-top: 10px;
}
@media (min-width: 760px) {
  .app {
    padding-top: 18px;
  }
  h1 {
    font-size: 38px;
  }
  .composer-shell {
    border: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 16px;
  }
}
