:root{color-scheme:dark;--bg:#11131b;--panel:#1d202c;--text:#f5f6fc;--muted:#adb4ca;--line:#373d52;--accent:#9383ff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,sans-serif}body.light{color-scheme:light;--bg:#f4f6fb;--panel:#fff;--text:#1c2440;--muted:#596480;--line:#d8deeb;--accent:#6653d5}header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--line)}header strong{font-size:20px}main{max-width:1280px;padding:20px;margin:auto}h1{font-size:24px;margin:0 0 12px}h2{font-size:18px;margin:0;padding:14px 18px;border-bottom:1px solid var(--line)}p{margin:12px 0}.notice{margin:0;padding:9px 24px;background:#604711;color:#fff3c9;font-size:14px}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}#entry{max-width:500px;margin:5vh auto;padding:28px}form label{display:block;margin:16px 0}input,select,textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit}button{border:1px solid var(--line);border-radius:9px;padding:10px 14px;background:var(--panel);color:var(--text);font:inherit;cursor:pointer;min-height:44px}button:hover{border-color:var(--accent)}button:disabled{opacity:.5;cursor:default}.primary{background:var(--accent);color:#fff;border-color:transparent}.roomhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.roomhead span,.muted{color:var(--muted);font-size:14px}.layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);gap:18px;min-height:650px}.stage{padding:20px}.stagehead{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);gap:12px}#screen{width:100%;aspect-ratio:16/9;object-fit:contain;background:#080a10;margin-top:18px;border-radius:10px}#empty{padding:65px 15px;text-align:center;color:var(--muted)}.people{display:flex;flex-wrap:wrap;gap:20px;margin:24px 0}.person{text-align:center;min-width:70px}.avatar{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#6454bc;color:white;margin:auto;font-size:22px}.person small{font-size:14px}.controls{display:flex;flex-wrap:wrap;gap:10px}#download{display:block;color:var(--accent);margin-top:20px}.chat{display:flex;flex-direction:column;max-height:720px}#comments{flex:1;min-height:240px;overflow:auto;padding:14px 18px}.comment{padding:10px 0;border-bottom:1px solid var(--line)}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 8px}.comment strong{font-size:14px}.comment small{color:var(--muted);font-size:12px}.comment button{padding:3px 8px;min-height:32px;font-size:14px;margin-right:6px}.quote{border-left:3px solid var(--accent);padding-left:9px;color:var(--muted);font-size:14px}#composer{padding:14px;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap}#composer textarea{height:72px;resize:vertical;flex:1}#reply{width:100%;font-size:14px;color:var(--muted)}#reply:empty{display:none}#status{color:#f4ba69;min-height:24px}.sr{position:absolute;clip:rect(0,0,0,0)}[hidden]{display:none!important}.record-layout{display:grid;grid-template-columns:840px 440px;width:1280px;height:720px;background:#141722}.record-stage{padding:30px;overflow:hidden}.record-stage video{width:100%;height:430px;object-fit:contain;background:#0c0d13}.record-chat{padding:20px;border-left:1px solid var(--line);overflow:hidden}.record-chat #comments{height:630px;overflow:hidden}.record-stage .people{margin:18px 0;gap:16px}.record-stage .avatar{width:48px;height:48px}.record-stage h1{font-size:26px}.record-chat .comment p{font-size:18px}.record-chat .comment strong{font-size:16px}@media(max-width:720px){main{padding:12px}.layout{display:flex;flex-direction:column;gap:12px;min-height:0}.stage{padding:14px}#empty{padding:22px 5px}.people{margin:14px 0}.controls{gap:8px}.controls button{font-size:14px;padding:8px 10px}.roomhead h1{font-size:20px}.roomhead{align-items:flex-start}.chat{height:50dvh;min-height:330px}#comments{min-height:100px}header{padding:12px 16px}.notice{padding:8px 16px}#screen{max-height:28dvh}}
.record-stage video{height:390px}.record-stage .people{gap:14px}.record-stage .person{min-width:60px;max-width:60px;width:60px}.record-stage .person small{font-size:14px;overflow-wrap:anywhere}
.media-view{position:relative;margin-top:18px}.media-view.has-media{aspect-ratio:16/9;background:#080a10;border-radius:10px;overflow:hidden}.media-view #screen,.media-view #camera{width:100%;height:100%;margin:0;aspect-ratio:auto;object-fit:contain}.media-view #camera.pip{position:absolute;right:12px;bottom:12px;width:28%;height:30%;object-fit:cover;border:2px solid var(--accent);border-radius:10px;background:#080a10}.record-stage .media-view{height:390px;aspect-ratio:auto}.record-stage .media-view #screen,.record-stage .media-view #camera{height:100%;margin:0}.record-stage .media-view #camera.pip{height:30%}.device{display:block;font-size:14px;margin-top:18px;max-width:360px}.device select{margin-top:6px;font-size:14px}@media(max-width:720px){.media-view.has-media{max-height:28dvh}.media-view #screen{max-height:none}}
.devices{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:18px}.devices .device{flex:1;min-width:200px;margin:0}.mic-level{display:flex;gap:12px;align-items:center;width:100%;font-size:14px}.mic-level meter{flex:1;height:20px;accent-color:#62d39b}@media(max-width:720px){.devices .device{min-width:100%;max-width:none}.devices button{width:100%}}

html{scroll-padding-bottom:24px}body{padding-bottom:env(safe-area-inset-bottom)}.roomhead{gap:12px}button,select,input,textarea{touch-action:manipulation}@media(max-width:720px){#entry{padding:20px;margin:20px auto}.stagehead{flex-wrap:wrap}.controls button{flex:1 1 42%}.media-view.has-media{height:auto}.layout{min-width:0}.chat{max-width:100%}#composer textarea{min-width:0}.roomhead #connection{font-size:12px;text-align:right}.devices .device{min-width:0;flex-basis:100%}.controls #leave{flex-basis:100%}}
