:root {
  --navy: #121F33;
  --panel: #22324A;
  --teal: #2DD4BF;
  --green: #22C55E;
  --amber: #F5B544;
  --text: #F3EFE7;
  --muted: #8494A8;
  --danger: #F87171;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100%;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(18, 31, 51, 0.96);
  border-bottom: 1px solid rgba(132, 148, 168, 0.25);
}
.top img {
  height: 36px;
  width: auto;
}
.top .brand {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.wrap {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 20px 16px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--teal);
  font-size: 13px;
  width: fit-content;
}
.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
}
.actions {
  display: grid;
  gap: 12px;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.btn-primary {
  background: var(--teal);
  color: #082F2B;
}
.btn-mic {
  background: #0F766E;
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(243, 239, 231, 0.25);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
#assistant {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}
#assistant.active { display: flex; }
#home.hidden { display: none; }
.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55dvh;
  overflow-y: auto;
  padding: 4px;
}
.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.bubble.bot {
  align-self: flex-start;
  background: #1B2B42;
}
.bubble.user {
  align-self: flex-end;
  background: #115E59;
}
.composer {
  display: flex;
  gap: 8px;
}
.composer input, .composer textarea {
  flex: 1;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(132, 148, 168, 0.35);
  background: #18253A;
  color: var(--text);
  padding: 12px 14px;
  font-size: 16px;
}
.slot-list {
  display: grid;
  gap: 8px;
}
.status {
  font-size: 13px;
  color: var(--amber);
}
.status.ok { color: var(--green); }
.status.err { color: var(--danger); }
.voice-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
}
.voice-panel.active { display: flex; }
.mic-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: var(--teal);
  color: #082F2B;
  font-size: 34px;
  font-weight: 800;
  cursor: pointer;
}
.mic-orb.listening {
  box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.25);
}
.footer {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}
