:root { --brand: #1e3d61; --green: #28a745; --green-d: #1c7c4a; --green-bg: #e3f4ea; --bg: #f4f6f9; --card: #fff; --line: #e3e7ed; --text: #1c2430; --muted: #66707d; --red: #b42318; --red-bg: #fde8e6; --amber: #8a5a00; --amber-bg: #fdf1d8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 0 40px; }
.top { background: var(--brand); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.top img { width: 34px; height: 34px; border-radius: 8px; background: #fff; }
.top h1 { font-size: 17px; margin: 0; font-weight: 600; }
.top .sub { font-size: 12px; opacity: .85; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 12px; padding: 14px; }
.card h2 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.note { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 12px; }
.err { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.ok { background: var(--green-bg); color: var(--green-d); border-radius: 10px; padding: 10px 12px; }
label.f { display: block; margin: 8px 0; }
label.f span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
input, select, textarea { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
textarea { min-height: 70px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .d { display: block; font-size: 11px; opacity: .75; }
button.go { display: block; width: 100%; background: var(--green); color: #fff; border: 0; border-radius: 22px; padding: 12px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; margin-top: 12px; }
button.go:disabled { opacity: .5; }
button.plain { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 10px; }
.check input { width: auto; margin-top: 3px; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
ul.plain { margin: 6px 0 0; padding-left: 18px; }
/* the video room */
body.room { background: #0e1a2b; color: #fff; }
.stage { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
#remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #14273f; }
#local { position: absolute; right: 12px; bottom: 96px; width: 28vw; max-width: 160px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: #2d4d75; border: 2px solid rgba(255,255,255,.4); transform: scaleX(-1); }
.status { position: absolute; top: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); font-size: 14px; }
.status b { font-weight: 600; }
.wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.wait .big { font-size: 18px; font-weight: 600; }
.controls { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 14px; }
.controls button { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 13px; cursor: pointer; }
.controls button.off { background: #fff; color: #0e1a2b; }
.controls button.end { background: #d92d20; }
.controls button span { display: block; font-size: 10px; margin-top: 2px; }
.voice #remote, .voice #local { visibility: hidden; }
