:root {
  color-scheme: dark;
  font-family: Tahoma, 'Segoe UI', system-ui, sans-serif;
  color: #f4f7ed;
  background: #11251d;
  --quiet: #c2cec2;
  --line: #3c5649;
  --accent: #e7d9a3;
  --panel: #20352a;
  --control: #14271e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 75% 0, #34513e, #11251d 60%); }
h1, h2, p { margin: 0; }
.topbar { width: min(100% - 2rem, 45rem); margin-inline: auto; min-height: 4.7rem; display: flex; justify-content: space-between; align-items: center; gap: .7rem; border-bottom: 1px solid #526658; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 700; }
.brand svg { width: 2.25rem; height: 2.25rem; padding: .4rem; border-radius: .65rem; background: var(--accent); color: #223729; flex: none; }
main { width: min(100% - 2rem, 37rem); margin-inline: auto; padding: clamp(1.55rem, 7vw, 5rem) 0 2rem; }
.panel { padding: clamp(1.2rem, 5vw, 2.1rem); border: 1px solid var(--line); border-radius: 1.15rem; background: var(--panel); box-shadow: 0 1.2rem 2.8rem #08130e33; }
.section-heading { margin-bottom: 1.45rem; }
h1 { font-size: clamp(1.7rem, 6vw, 2.65rem); line-height: 1.35; overflow-wrap: anywhere; }
h2 { font-size: 1.14rem; }
p { color: var(--quiet); line-height: 1.75; margin-top: .4rem; }
label { display: block; font-size: .95rem; font-weight: 650; margin-bottom: .55rem; }
input, button { min-height: 3rem; border: 1px solid var(--line); border-radius: .65rem; font: inherit; }
input { width: 100%; min-width: 0; background: var(--control); color: inherit; padding: .55rem .8rem; }
input::placeholder { color: #acbaac; }
button { padding: .56rem .95rem; background: #2b4436; color: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #375647; }
button:disabled { opacity: .62; cursor: wait; }
:is(button, input, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); color: #192c22; border-color: var(--accent); }
.primary:hover { background: #f3e9c6; }
form button { margin-top: .8rem; width: 100%; }
.subtle { border-color: transparent; background: transparent; color: var(--quiet); font-size: .9rem; }
.roster-heading { display: flex; justify-content: space-between; align-items: center; color: var(--quiet); }
.roster-heading output { background: var(--control); padding: .22rem .55rem; border-radius: .45rem; }
ul { margin: .65rem 0 1.15rem; padding: 0; list-style: none; display: grid; gap: .4rem; }
li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .7rem .75rem; background: var(--control); border-radius: .55rem; }
.person { overflow-wrap: anywhere; }
.mic-state { flex: none; font-size: .875rem; color: var(--quiet); }
.speaking { color: #b4efc1; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.actions button { flex: 1 0 auto; }
.leave { color: #ffd3cb; }
.status { margin-top: .85rem; overflow-wrap: anywhere; }
.status[data-error='true'] { color: #ffd3cb; }
.share { margin-top: .8rem; }
.share header { margin-bottom: .75rem; }
.share input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.share .actions { margin-top: .65rem; }
#new-room { margin-top: .45rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 380px) {
  main, .topbar { width: calc(100% - 1.25rem); }
  .actions button { flex-basis: 100%; }
}
