:root {
  color-scheme: light;
  --bg: #f6efe6;
  --bg-accent: #f8fbf2;
  --ink: #1d2320;
  --muted: #5f6a65;
  --line: rgba(29, 35, 32, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --primary: #b95b34;
  --primary-strong: #8d3e20;
  --secondary: #dbe7d0;
  --success: #2f7a4d;
  --shadow: 0 24px 60px rgba(66, 50, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 91, 52, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(128, 160, 104, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg-accent), var(--bg));
}

.shell {
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.primary,
.secondary,
.ghost {
  padding: 14px 20px;
  font-weight: 700;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.secondary {
  color: var(--ink);
  background: var(--secondary);
}

.ghost {
  color: var(--primary-strong);
  background: rgba(185, 91, 52, 0.1);
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(248, 251, 242, 0.82);
  border: 1px solid rgba(47, 122, 77, 0.12);
}

.status-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 4px;
  background: #b7b7b7;
  box-shadow: 0 0 0 6px rgba(183, 183, 183, 0.15);
}

.status-dot.live {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(47, 122, 77, 0.16);
}

.status-dot.busy {
  background: #e4a11b;
  box-shadow: 0 0 0 6px rgba(228, 161, 27, 0.16);
}

.status-dot.error {
  background: #c44939;
  box-shadow: 0 0 0 6px rgba(196, 73, 57, 0.16);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 20px;
}

.panel {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(47, 122, 77, 0.1);
}

.transcript-log {
  min-height: 420px;
  max-height: 58vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(95, 106, 101, 0.08);
}

.message {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.5;
}

.message.user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #3f6c61, #294f47);
}

.message.assistant {
  align-self: flex-start;
  background: rgba(185, 91, 52, 0.1);
}

.tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.text-prompt {
  display: block;
  margin-top: 28px;
}

.text-prompt span {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.prompt-row input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 900px) {
  .shell {
    width: min(100vw - 20px, 1100px);
    padding-top: 18px;
  }

  .hero,
  .panel {
    border-radius: 24px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero,
  .panel {
    padding: 20px;
  }

  .actions,
  .prompt-row {
    flex-direction: column;
  }

  .message {
    max-width: 100%;
  }
}
