:root {
  color-scheme: light;
  --cream: #f6f2ea;
  --paper: #fffdf8;
  --ink: #292722;
  --muted: #656059;
  --copper: #875139;
  --line: #d5cdc0;
  --danger: #8d3429;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { max-width: 760px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 28px; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(52px, 12vw, 70px); letter-spacing: -3px; margin: 6px 0 4px; }
h2 { font-size: clamp(26px, 6vw, 34px); margin: 0 0 16px; }
p { margin: 0 0 16px; }
.period { color: var(--copper); }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.subtitle { margin: 0; color: var(--muted); font-size: 16px; }
.private-mark { color: var(--copper); border: 1px solid var(--line); padding: 6px 10px; border-radius: 24px; font-size: 11px; white-space: nowrap; }
.prototype { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--muted); background: var(--paper); }
.connection { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 6px 0 20px; }
.connection p { flex: 1; font-size: 13px; margin: 0; }
.dot { width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; flex: 0 0 auto; }
.dot.connected { background: var(--copper); border-color: var(--copper); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; box-shadow: 0 12px 36px #29272206; }
.card > p { color: var(--muted); font-size: 14px; }
label { display: block; margin: 20px 0 8px; font-size: 13px; font-weight: 600; }
input, textarea, button { font: inherit; }
input, textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b8aea0; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; }
textarea { resize: vertical; max-height: 40vh; }
textarea::placeholder { color: var(--muted); }
button { min-height: 48px; min-width: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; touch-action: manipulation; transition: background-color 160ms ease, border-color 160ms ease; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.primary { display: block; width: 100%; background: var(--ink); color: var(--paper); margin-top: 16px; }
.primary:hover:not(:disabled) { background: #484038; }
.secondary { background: transparent; color: var(--ink); border-color: #b8aea0; }
.secondary:hover:not(:disabled) { background: #eee7db; }
.text-button { background: transparent; color: var(--copper); padding: 8px; font-size: 12px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fine-print { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 12px 0 0; }
.microphone-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.microphone-panel p:first-child { font-size: 13px; margin: 0; }
.microphone-panel label { margin-top: 10px; font-size: 12px; color: var(--muted); }
meter { width: 100%; height: 12px; accent-color: var(--copper); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mode-tag { align-self: flex-start; color: var(--copper); font-size: 11px; border: 1px solid var(--line); padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.transcript-section { padding: 30px 4px; }
.transcript-section h2 { font-size: 25px; margin: 0; }
.empty { padding: 28px 0; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; color: var(--muted); }
.turn { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.turn h3 { margin: 0 0 8px; font-size: 12px; color: var(--copper); font-weight: 600; }
.turn .request { color: var(--muted); font-size: 14px; }
.turn .response { white-space: pre-wrap; font-size: 16px; }
.turn small { color: var(--muted); font-size: 11px; }
.notice { border: 1px solid #b98a7b; color: var(--danger); background: var(--paper); padding: 14px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.session-footer { display: flex; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.session-footer p { color: var(--muted); font-size: 12px; flex: 1; margin: 0; }
.page-footer { text-align: center; color: var(--muted); font-size: 11px; padding: 30px 0 0; }
@media (min-width: 600px) { .shell { padding-top: 48px; } .card { padding: 34px; } }
@media (max-width: 360px) { .private-mark { display: none; } .controls { grid-template-columns: 1fr; } .section-heading { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
