:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #ececec;
  --muted: #b4b4b4;
  --subtle: #8f8f8f;
  --surface: #202020;
  --border: #424242;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: #000;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

nav { display: flex; justify-content: space-between; }
a { color: var(--muted); text-decoration: none; font-size: .9rem; }
a:focus-visible, button:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #ececec;
  outline-offset: 3px;
}

header { padding: 64px 0 40px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--subtle);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -.055em; }
header > p:last-child { max-width: 37rem; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
#status { color: var(--muted); }
#status:empty { display: none; }
#calls { display: grid; gap: 42px; }

.call-heading { margin: 0 0 16px; font-size: 1rem; font-weight: 650; }
.turn {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.turn-time { margin: 0 0 18px; color: var(--subtle); font-size: .76rem; }
.transcript + .transcript { margin-top: 24px; }
.speaker { margin: 0 0 7px; color: var(--subtle); font-size: .76rem; font-weight: 650; }
.words { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
button.primary { border-color: #ececec; background: #ececec; color: #171717; font-weight: 650; }
button:disabled { cursor: wait; opacity: .55; }
.edit-form { margin-top: 12px; }
textarea {
  width: 100%;
  min-height: 7rem;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  resize: vertical;
  background: var(--surface);
  color: #ececec;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
details { margin-top: 11px; color: var(--subtle); font-size: .8rem; }
details p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.5; }
.saved { color: #9dccaa; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
