:root{--bg:#0f1115;--panel:#181b22;--tile:#20242d;--text:#e8eaef;--muted:#8b93a3;--accent:#4f8cff;--danger:#e5484d;--speaking:#3ddc84;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font:15px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}button{font:inherit;color:var(--text);background:var(--tile);cursor:pointer;border:1px solid #2c313c;border-radius:8px;padding:8px 14px}button:hover:not(:disabled){border-color:#475063}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.link{color:var(--accent);background:0 0;border:none;padding:4px 8px}input[type=text],input:not([type]){font:inherit;color:var(--text);background:var(--panel);border:1px solid #2c313c;border-radius:8px;min-width:0;padding:8px 12px}.error{color:var(--danger)}code{background:var(--tile);border-radius:6px;padding:2px 6px}.home,.prejoin{text-align:center;max-width:560px;margin:10vh auto;padding:0 16px}.home h1{margin-bottom:4px;font-size:2.2rem}.tagline{color:var(--muted);margin-bottom:32px}.home-actions{flex-direction:column;align-items:center;gap:16px;display:flex}.home-actions form,.prejoin form{justify-content:center;gap:8px;display:flex}.preview{aspect-ratio:16/9;background:var(--tile);border-radius:12px;margin:16px 0;display:grid;position:relative;overflow:hidden}.preview video{object-fit:cover;width:100%;height:100%;transform:scaleX(-1)}.preview-status{background:#0009;border-radius:6px;padding:3px 10px;font-size:.85rem;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}select{font:inherit;color:var(--text);background:var(--panel);border:1px solid #2c313c;border-radius:8px;min-width:0;max-width:100%;padding:7px 10px}select:disabled{opacity:.5}.devices{text-align:left;flex-direction:column;gap:10px;margin-bottom:16px;display:flex}.device-row{grid-template-columns:130px 1fr;align-items:center;gap:6px 12px;display:grid}.device-row .toggle{color:var(--muted)}.device-row .meter{grid-column:2}.moqit-device-select{flex-direction:column;min-width:0;display:flex}.moqit-device-select span{display:none}.meter{background:var(--tile);border-radius:3px;height:6px;overflow:hidden}.meter div{background:var(--speaking);height:100%;transition:width .1s linear}@media (max-width:480px){.device-row{grid-template-columns:1fr}.device-row .meter{grid-column:1}}.meeting{grid-template:"header""stage"1fr"footer"/1fr;height:100vh;display:grid}.meeting.with-chat{grid-template:"header header""stage chat"1fr"footer footer"/1fr 320px}.meeting header{background:var(--panel);flex-wrap:wrap;grid-area:header;align-items:center;gap:12px;padding:10px 16px;display:flex}.room-code{letter-spacing:.5px;font-weight:600}.count,.status{color:var(--muted)}.stage{grid-area:stage;min-height:0;padding:12px;overflow:hidden}.meeting aside{background:var(--panel);border-left:1px solid #2c313c;grid-area:chat;min-height:0}.meeting footer{background:var(--panel);grid-area:footer;padding:10px}.moqit-grid{align-content:center;gap:10px;height:100%;display:grid}.moqit-tile{aspect-ratio:16/9;background:var(--tile);border-radius:12px;outline:3px solid #0000;place-items:center;transition:outline-color .15s;display:grid;position:relative;overflow:hidden}.moqit-tile.speaking{outline-color:var(--speaking)}.moqit-video-box,.moqit-video{width:100%;height:100%}.moqit-video{object-fit:cover;display:block}.moqit-tile.screen .moqit-video{object-fit:contain;background:#000}.moqit-avatar{width:96px;height:96px;color:var(--muted);background:#2f3542;border-radius:50%;place-self:center;place-items:center;font-size:2rem;display:grid}.preview .moqit-avatar{background:0 0;border-radius:0;width:auto;height:auto;font-size:1rem}.moqit-name{background:#0000008c;border-radius:6px;padding:3px 8px;font-size:.85rem;position:absolute;bottom:8px;left:8px}.moqit-muted{margin-right:4px}.moqit-controls{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.moqit-controls button.off{color:var(--muted)}.moqit-controls button.leave{background:var(--danger);border-color:var(--danger);color:#fff}.moqit-start-audio{background:var(--accent);color:#fff}.moqit-chat{flex-direction:column;height:100%;display:flex}.moqit-chat-list{flex-direction:column;flex:1;gap:8px;padding:12px;display:flex;overflow-y:auto}.moqit-chat-empty{color:var(--muted);text-align:center;margin-top:24px}.moqit-chat-msg{background:var(--tile);border-radius:8px;flex-direction:column;padding:6px 10px;display:flex}.moqit-chat-msg.local{background:#22314d}.moqit-chat-msg .from{color:var(--muted);font-size:.8rem}.moqit-chat form{border-top:1px solid #2c313c;gap:6px;padding:10px;display:flex}.moqit-chat input{flex:1}@media (max-width:700px){.meeting.with-chat{grid-template:"header""stage"1fr"chat"40vh"footer"/1fr}.moqit-grid{align-content:start;overflow-y:auto;grid-template-columns:1fr!important}}.moqit-badge{background:var(--danger);color:#fff;border-radius:999px;margin-left:6px;padding:0 7px;font-size:.75rem}.presenting{color:var(--speaking);font-size:.9rem}.moqit-focus{grid-template-columns:minmax(0,1fr) 220px;gap:10px;height:100%;min-height:0;display:grid}.moqit-stage{grid-template:minmax(0,1fr)/minmax(0,1fr);min-height:0;display:grid}.moqit-stage .moqit-tile{aspect-ratio:auto;background:#000;grid-template:minmax(0,1fr)/minmax(0,1fr);height:100%;min-height:0}.moqit-stage .moqit-video-box{min-width:0;min-height:0}.moqit-strip{flex-direction:column;gap:8px;min-height:0;display:flex;overflow-y:auto}.moqit-strip .moqit-tile{flex:none}.moqit-strip .moqit-avatar{width:48px;height:48px;font-size:1.1rem}.moqit-presenting{background:var(--panel);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:14px;height:100%;display:flex}.moqit-presenting p{color:var(--muted);margin:0}.moqit-presenting-preview{aspect-ratio:16/9;background:#000;border-radius:8px;width:min(420px,70%);overflow:hidden}.moqit-presenting-preview .moqit-video{object-fit:contain}.moqit-presenting button.leave{background:var(--danger);border-color:var(--danger);color:#fff}@media (max-width:700px){.moqit-focus{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.moqit-strip{flex-direction:row;overflow-x:auto}.moqit-strip .moqit-tile{width:140px}}.moqit-device-menu-anchor{position:relative}.moqit-device-menu{z-index:10;background:var(--panel);border:1px solid #2c313c;border-radius:12px;flex-direction:column;gap:12px;width:min(340px,100vw - 32px);padding:14px;display:flex;position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%);box-shadow:0 8px 28px #00000080}.moqit-device-menu .moqit-device-select{gap:4px}.moqit-device-menu .moqit-device-select span{color:var(--muted);font-size:.8rem;display:block}.moqit-device-error{color:var(--danger);margin-top:-6px;font-size:.8rem}.effects{text-align:left;border-top:1px solid #2c313c;margin-bottom:16px;padding-top:12px}.effects-fields{flex-direction:column;gap:10px;display:flex}.prejoin .effects-fields{grid-template-columns:130px 1fr;align-items:center;gap:10px 12px;display:grid}.prejoin .effects-fields .moqit-device-select{display:contents}.prejoin .effects-fields .moqit-device-select span{color:var(--muted);display:block}.prejoin .effects-checks{grid-column:2}.effects-checks{color:var(--muted);flex-wrap:wrap;gap:6px 16px;display:flex}.effects-checks label{white-space:nowrap}.effects-status{color:var(--muted);font-size:.8rem}.effects-credit{color:var(--muted);margin-top:8px;font-size:.75rem}.effects-credit a{color:var(--accent)}@media (max-width:480px){.prejoin .effects-fields{grid-template-columns:1fr}.prejoin .effects-checks{grid-column:1}}.device-row .send-quality{grid-column:2}.moqit-stats{color:var(--text);background:#0009;border-radius:6px;padding:2px 7px;font:.75rem/1.4 ui-monospace,monospace;position:absolute;top:8px;right:8px}.quality-stats{color:var(--muted);font-size:.9rem}.send-quality .moqit-device-select{flex-direction:row;align-items:center;gap:8px}.send-quality .moqit-device-select span{color:var(--muted);white-space:nowrap;font-size:.85rem;display:block}.send-quality select{flex:1}.quality-note{color:var(--muted);margin-top:-6px;font-size:.8rem}.moqit-meeting-stats{color:var(--muted);margin-left:auto;font:.8rem/1.4 ui-monospace,monospace}.moqit-presenting-preview{position:relative}
