:root { color-scheme: light; --paper: #f3f0e8; --ink: #18332f; --accent: #d5ed84; --muted: #65716a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Trebuchet MS', sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; padding: 28px 5vw; border-bottom: 1px solid #cdd3c7; }
header > a { font-family: Georgia, serif; font-size: 28px; text-decoration: none; }
header span { display: block; font: 10px 'Trebuchet MS', sans-serif; letter-spacing: .18em; margin-top: 7px; }
a { color: inherit; }
nav { display: flex; gap: 22px; font-size: 14px; }
main { max-width: 940px; padding: 56px 28px 24px; margin: auto; }
.eyebrow, .room-label { font-size: 11px; letter-spacing: .16em; }
h1 { font: normal clamp(38px, 6vw, 67px)/1.08 Georgia, serif; letter-spacing: -.035em; margin: 18px 0; max-width: 680px; }
.intro { font-size: 18px; color: var(--muted); line-height: 1.6; }
.mode { display: inline-block; border: 1px solid #b4bba7; border-radius: 3px; padding: 10px 14px; font-size: 13px; }
.console { margin-top: 20px; background: var(--ink); color: var(--paper); padding: 30px; border-radius: 8px; box-shadow: 0 16px 36px #18332f16; }
.console-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
#state { font-size: 13px; color: var(--accent); }
.signal { height: 90px; display: flex; gap: 7px; align-items: center; justify-content: center; }
.signal i { width: 5px; height: 10px; border-radius: 5px; background: var(--accent); opacity: .65; }
.signal i:nth-child(3n) { height: 30px; }
.signal i:nth-child(2n) { height: 46px; }
body[data-state="ready"] .signal i { animation: breathe 1.4s ease-in-out infinite alternate; }
.signal i:nth-child(2n) { animation-delay: .3s; }
@keyframes breathe { to { transform: scaleY(.45); opacity: 1; } }
label { display: block; font-size: 14px; margin-bottom: 10px; }
.access-row, .controls { display: flex; gap: 12px; }
.controls { margin-top: 18px; }
input { min-width: 0; flex: 1; background: #29453f; border: 1px solid #7c9186; border-radius: 4px; padding: 13px; font-size: 17px; color: white; }
button { border: 1px solid transparent; border-radius: 4px; background: var(--accent); color: var(--ink); padding: 14px 20px; min-height: 48px; font: bold 15px 'Trebuchet MS', sans-serif; cursor: pointer; }
button:hover:not(:disabled) { background: #e4f8a8; }
button.secondary { border-color: #8c9c8d; background: transparent; color: var(--paper); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #f2bb67; outline-offset: 4px; }
.hint { color: #bac7bd; font-size: 13px; line-height: 1.65; max-width: 600px; }
#notice { color: #ffd7a1; line-height: 1.5; margin-bottom: 0; }
.transcript { margin-top: 32px; border-top: 1px solid #cdd3c7; padding: 24px 0; }
h2 { font: normal 24px Georgia, serif; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0; }
h2 span { font: 10px 'Trebuchet MS', sans-serif; letter-spacing: .1em; color: var(--muted); }
#transcript { line-height: 1.8; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; padding: 22px 0; border-top: 1px solid #cdd3c7; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  header { padding: 20px; } header > a { font-size: 24px; } nav { gap: 12px; }
  main { padding: 30px 18px 18px; } .console { padding: 22px 18px; }
  .controls, .access-row { flex-direction: column; } button { width: 100%; }
  h2, footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .signal i { animation: none !important; } }
