:root {
  --bg: #0c1118;
  --card: #151d28;
  --accent: #3d9cf5;
  --text: #e8eef5;
  --muted: #8a9bb0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
}
.panel { max-width: 480px; margin: 0 auto; padding: 1rem; min-height: 100dvh; display: flex; flex-direction: column; }
.hidden { display: none !important; }
h1 { margin: 0; font-size: 1.5rem; }
.sub, .tag, .hint, .status { color: var(--muted); font-size: 0.85rem; }
label { display: block; margin: 0.75rem 0; font-size: 0.9rem; }
input, textarea {
  width: 100%; margin-top: 0.35rem; padding: 0.65rem;
  border: 1px solid #2a3544; border-radius: 8px;
  background: var(--card); color: var(--text);
}
button {
  margin-top: 0.5rem; padding: 0.7rem 1rem;
  border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 600;
}
button.ghost { background: transparent; border: 1px solid #2a3544; color: var(--muted); }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.chat { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.msg { margin: 0.5rem 0; padding: 0.65rem 0.85rem; border-radius: 12px; max-width: 92%; white-space: pre-wrap; line-height: 1.45; }
.msg.user { margin-left: auto; background: #1e3a5f; }
.msg.bot { background: var(--card); }
.composer { display: flex; gap: 0.5rem; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; }
.composer button { margin: 0; flex-shrink: 0; }
.voice-btn { margin: 0; width: 2.5rem; height: 2.5rem; padding: 0; font-size: 1.1rem; flex-shrink: 0; }
.voice-btn.active { background: #c0392b; border-color: #e74c3c; color: #fff; }
.cam { display: flex; align-items: center; justify-content: center; width: 2.5rem; font-size: 1.2rem; cursor: pointer; }
.icp { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.icp a { color: var(--muted); }
