:root {
  --ink: #203038;
  --muted: #627278;
  --paper: #fffdf8;
  --sky: #bde8ed;
  --sea: #007c89;
  --coral: #f26a5b;
  --sun: #f7c948;
  --line: #d8e1dd;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background-color: var(--sky);
  background-image: radial-gradient(#ffffff8f 1px, transparent 1px);
  background-size: 18px 18px;
}

.assistant-shell {
  width: min(100% - 32px, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0 36px;
  display: grid;
  align-content: center;
  gap: 24px;
}

.app-header { text-align: center; }

.eyebrow, .message-label {
  margin: 0;
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 { margin: 4px 0; font-size: 3.25rem; line-height: 1; letter-spacing: 0; }

.status { min-height: 1.5rem; margin: 12px 0 0; color: var(--muted); font-weight: 700; }

.conversation { display: grid; gap: 12px; }

.message {
  padding: 20px 22px;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 #2030381a;
}

.message p { margin: 8px 0 0; font-size: 1.1rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.user-message { background: #ffffff; }
.assistant-message { background: #fff5cb; border-color: #e6bd4e; }
.assistant-message .message-label { color: #aa6c00; }

.recording-controls { display: grid; justify-items: center; gap: 10px; }

.record-button {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 6px 0 #bb4437;
  cursor: pointer;
}

.record-button svg { width: 30px; height: 30px; stroke-width: 3; }
.record-button:hover { transform: translateY(-2px); }
.record-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #bb4437; }
.record-button.is-recording { background: var(--sea); box-shadow: 0 6px 0 #00535c; animation: breathe 1.1s ease-in-out infinite alternate; }
.record-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
#recording-label { margin: 0; color: var(--muted); font-weight: 800; }

.audio-player { width: 100%; accent-color: var(--sea); }

@keyframes breathe { to { box-shadow: 0 6px 0 #00535c, 0 0 0 10px #007c8933; } }

@media (max-width: 480px) {
  .assistant-shell { width: min(100% - 24px, 680px); padding: 32px 0 24px; }
  h1 { font-size: 2.75rem; }
  .message { padding: 18px; }
}