:root {
  color-scheme: light;
  font-family: system-ui, Tahoma, sans-serif;
  background: #eee9df;
  color: #182d26;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 720px); margin: 0 auto; padding: 1.25rem 0 2rem; }
header, .room-top, .controls { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; flex-wrap: wrap; }
header { min-height: 54px; margin-bottom: clamp(1rem, 6vh, 4rem); }
.brand { text-decoration: none; color: inherit; font-weight: 750; font-size: 1.22rem; }
.brand span { margin-inline-start: .35rem; color: #51675b; }
.room { border-radius: 26px; background: #fffdf7; padding: clamp(1rem, 4vw, 2rem); border: 1px solid #d4d6c8; }
h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); margin: 0; letter-spacing: -.04em; }
h1 span { letter-spacing: normal; }
button { min-height: 44px; font: inherit; font-weight: 650; cursor: pointer; border-radius: 999px; padding: .55rem .92rem; }
button:disabled { cursor: default; opacity: .58; }
button:focus-visible, a:focus-visible { outline: 3px solid #986634; outline-offset: 3px; }
.quiet { color: #20382d; background: transparent; border: 1px solid #abb7aa; }
.primary { background: #1e4737; border: 1px solid #1e4737; color: #fffdf7; }
.side { display: flex; padding: 3px; background: #ebece2; border-radius: 999px; }
.side button { min-height: 38px; border: 0; color: inherit; background: transparent; }
.side [aria-pressed="true"] { background: #d1e4d5; }
#status, .hint, #empty { color: #496055; line-height: 1.55; }
#empty { padding-block: 2rem; text-align: center; }
.transcript { max-height: 48vh; overflow: auto; }
.turn { border-top: 1px solid #dde2d6; padding: .85rem .15rem; }
.turn p { margin: .25rem 0; overflow-wrap: anywhere; }
.translation { font-size: 1.24rem; font-weight: 680; }
.original { color: #496055; }
.controls { margin-top: 1rem; justify-content: flex-start; }
[hidden] { display: none !important; }
.video-draft { border-top: 1px solid #dde2d6; margin-top: 1rem; padding-top: 1rem; }
.video-draft h2 { font-size: 1.1rem; }
.video-draft video { display: block; width: min(100%, 360px); max-height: 45vh; background: #182d26; border-radius: 12px; }
#video-messages article { margin-block: .65rem; }
#video-messages video { margin-block: .45rem; }
.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }
.video-grid video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #182d26; border-radius: 12px; }
.video-grid #local-camera { transform: scaleX(-1); }
