:root {
  --bg: #f2f7ff;
  --ink: #172638;
  --muted: #62758a;
  --line: #ccdae8;
  --panel: rgba(255, 255, 255, 0.86);
  --brand: #005a78;
  --brand-ink: #eaf7ff;
  --accent: #b64e00;
  --user: #ecf7ff;
  --assistant: #f8f3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, #dbe9ff 0%, transparent 30%),
    radial-gradient(circle at 0% 100%, #e4f7f0 0%, transparent 24%),
    var(--bg);
}

.omni-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #2e5878;
  text-transform: uppercase;
}

.hero h1 {
  margin: 2px 0 6px;
  font-size: 24px;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  color: var(--brand);
  text-decoration: none;
  border: 1px solid #9cb9d0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #edf6ff;
  white-space: nowrap;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 10px 32px rgba(38, 70, 109, 0.08);
}

.controls {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
}

select,
input {
  min-width: 180px;
  height: 36px;
}

.prompt-label textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.action-row {
  align-items: center;
}

button {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0 14px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.record-btn {
  border-color: #006f84;
  background: var(--brand);
  color: var(--brand-ink);
}

.record-btn.recording {
  background: #8f2f14;
  border-color: #8f2f14;
}

.clear-btn {
  background: #fff;
}

.status {
  font-size: 12px;
  color: var(--muted);
}

.timeline-panel {
  padding: 12px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.turn {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.turn-head {
  padding: 8px 10px;
  font-size: 12px;
  color: #2f4d67;
  display: flex;
  justify-content: space-between;
  background: #eff5fb;
}

.turn-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  border: 1px solid #cfdceb;
  border-radius: 9px;
  padding: 9px;
}

.bubble.user {
  background: var(--user);
}

.bubble.assistant {
  background: var(--assistant);
}

.bubble .role {
  font-size: 11px;
  color: #4c6074;
  margin-bottom: 4px;
}

.bubble .text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.bubble audio {
  width: 100%;
  margin-top: 6px;
  height: 34px;
}

.meta {
  color: #56708a;
  font-size: 11px;
}

.empty-state {
  text-align: center;
  color: #677d93;
  font-size: 13px;
  padding: 16px 6px 6px;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }

  select,
  input {
    min-width: 0;
    width: 100%;
  }

  label {
    width: 100%;
  }
}
