:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#232333;background:#f7f7f8}*{box-sizing:border-box}body{margin:0}.top{height:56px;background:#fff;border-bottom:1px solid #e5e5e9;display:flex;align-items:center;padding:0 22px;gap:18px}.brand{display:flex;align-items:center;gap:9px;font-size:18px}.brandmark{width:30px;height:30px;border-radius:9px;background:#2d8cff;color:#fff;display:grid;place-items:center;font-weight:800}.status{margin-left:auto;font-size:12px;color:#747487}.meeting-top{margin:auto;font-size:13px;color:#555}main{min-height:calc(100vh - 56px)}.hidden{display:none!important}.center-card{width:min(520px,calc(100% - 32px));margin:9vh auto;background:#fff;border:1px solid #e6e6ea;border-radius:14px;padding:34px;box-shadow:0 8px 30px #0000000c}.center-card.small{width:min(420px,calc(100% - 32px))}h1{font-size:34px;margin:0 0 8px}h2,h3,h4{margin-top:0}.muted{color:#747487}.actions,.admin-head,.room-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.center-card input,.panel input{display:block;width:100%;margin:10px 0;padding:12px 14px;border:1px solid #d9d9df;border-radius:8px;font-size:15px;background:#fff;color:#222}button{border:0;border-radius:8px;background:#2d8cff;color:#fff;padding:11px 16px;font-weight:650;cursor:pointer}button:hover{filter:brightness(.96)}button.light{background:#f1f1f4;color:#282832}.danger{background:#e94242!important;color:#fff!important}.admin-page{padding:28px;max-width:1400px;margin:auto}.admin-head{margin-bottom:20px}.panel{background:#fff;border:1px solid #e5e5e9;border-radius:12px;padding:18px;margin-bottom:16px}.check{display:flex;gap:8px;align-items:center;margin:12px 0}.check input{width:auto;margin:0}.meeting-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.meeting-card{background:#fff;border:1px solid #e5e5e9;border-radius:12px;padding:18px}.meeting-card h3{margin-bottom:6px}.meeting-meta{font-size:13px;color:#747487;margin:12px 0}.conference{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;margin-top:18px;height:calc(100vh - 150px)}.conference-main,.stage{background:#171719;border-radius:13px;display:flex;flex-direction:column;min-height:0}.room-head{background:#fff;border:1px solid #e5e5e9;border-radius:12px;padding:14px;margin-bottom:12px}.room-head h2{margin-bottom:4px}.share{font-size:12px;color:#777;word-break:break-all}.video-grid{display:grid;gap:8px}.zoom-grid{flex:1;padding:8px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));grid-auto-rows:minmax(180px,1fr);min-height:0;overflow:auto}.tile,.remote{position:relative;background:#262629;border-radius:9px;overflow:hidden;min-height:180px;display:flex;align-items:center;justify-content:center}.tile video,.remote video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.tile span,.remote span{position:absolute;left:9px;bottom:8px;background:#0009;color:#fff;border-radius:5px;padding:4px 7px;font-size:12px}.toolbar{height:68px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;background:#111113;border-radius:0 0 13px 13px}.tool{background:#2b2b2e;color:#fff}.tool.off{background:#b83c3c}.side{background:#fff;border:1px solid #e5e5e9;border-radius:12px;padding:16px;overflow:auto}.side h3{display:flex;justify-content:space-between}.side h4{margin:20px 0 8px}.person,.waiting-person{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 4px;border-bottom:1px solid #efeff2}.avatar{width:32px;height:32px;border-radius:50%;background:#e8f2ff;color:#1976d2;display:grid;place-items:center;font-weight:700;flex:none}.person-name{flex:1;overflow:hidden;text-overflow:ellipsis}.badge{background:#eeeef2;border-radius:20px;padding:2px 7px;font-size:12px}.badge.warn{background:#fff0cf;color:#9a6500}.wide{width:100%;margin-top:10px}.participant-room{height:calc(100vh - 56px);background:#111113}.room-layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:0}.stage{border-radius:0}.participant-room .side{border-radius:0;border-width:0 0 0 1px}.media-status{position:fixed;top:65px;left:10px;color:#fff;background:#0009;padding:5px 8px;border-radius:6px;font-size:12px}.wait-icon{font-size:44px}.dots{letter-spacing:8px;color:#2d8cff}.empty{font-size:13px;color:#9292a0;padding:10px 0}@media(max-width:850px){.conference,.room-layout{grid-template-columns:1fr}.conference{height:auto}.side{max-height:320px}.participant-room .side{position:absolute;right:0;top:56px;bottom:0;width:min(320px,90vw);z-index:5}.zoom-grid{grid-template-columns:1fr}.toolbar{overflow-x:auto;justify-content:flex-start}.admin-page{padding:14px}}
/* v0.3.2 media grid */
.peer-tile{background:#202124}.peer-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#c8c8ce}.peer-avatar{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#3a3a40;color:#fff;font-size:30px;font-weight:700}.peer-state{font-size:12px;color:#a8a8b0}.peer-tile video{opacity:0;transition:opacity .2s}.peer-tile.connected video{opacity:1}.peer-tile.connected .peer-placeholder{display:none}.media-dot{width:8px;height:8px;border-radius:50%;flex:none}.media-dot.ready{background:#27b36a}.media-dot.pending{background:#d9a128}.person small{font-size:11px;color:#777}.zoom-grid:has(.peer-tile){grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}@media(max-width:700px){.peer-avatar{width:58px;height:58px;font-size:24px}.zoom-grid:has(.peer-tile){grid-template-columns:1fr}}

/* v0.4.0 — Zoom-like speaker view */
.speaker-view{flex:1;min-height:0;display:flex;flex-direction:column;background:#111113;overflow:hidden}
.speaker-strip{height:132px;flex:0 0 132px;display:flex;gap:8px;padding:8px;overflow-x:auto;overflow-y:hidden;background:#171719;border-bottom:1px solid #2a2a2d;scrollbar-width:thin}
.speaker-strip .tile,.speaker-strip .remote{width:190px;min-width:190px;height:116px;min-height:116px;border-radius:8px;cursor:pointer;border:2px solid transparent;transition:border-color .15s,transform .15s;background:#202124}
.speaker-strip .tile:hover,.speaker-strip .remote:hover{transform:translateY(-1px)}
.speaker-strip .active-speaker{border-color:#2fb36d;box-shadow:0 0 0 1px #2fb36d}
.speaker-strip .pinned-speaker{border-color:#2d8cff;box-shadow:0 0 0 1px #2d8cff}
.speaker-strip .peer-avatar{width:46px;height:46px;font-size:20px}
.speaker-strip .peer-state{font-size:10px}
.speaker-main{position:relative;flex:1;min-height:0;background:#0b0b0c;display:flex;align-items:center;justify-content:center;overflow:hidden}
.speaker-main video{width:100%;height:100%;object-fit:contain;background:#0b0b0c}
.speaker-main .speaker-empty{position:absolute;color:#9a9aa4;font-size:14px}
.speaker-label{position:absolute;left:14px;bottom:14px;background:#000a;color:#fff;border-radius:6px;padding:6px 9px;font-size:13px}
.unpin{position:absolute;right:14px;top:14px;background:#242428d9;border:1px solid #4a4a50;color:#fff;padding:8px 12px}
.speaker-view.gallery-mode .speaker-main{display:none}
.speaker-view.gallery-mode .speaker-strip{height:auto;flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-auto-rows:minmax(190px,1fr);align-content:stretch;overflow:auto;padding:8px}
.speaker-view.gallery-mode .speaker-strip .tile,.speaker-view.gallery-mode .speaker-strip .remote{width:auto;min-width:0;height:auto;min-height:190px;cursor:pointer}
.speaker-view.gallery-mode .speaker-strip .peer-avatar{width:76px;height:76px;font-size:30px}
.speaker-view.gallery-mode .speaker-strip .peer-state{font-size:12px}
@media(max-width:700px){.speaker-strip{height:104px;flex-basis:104px}.speaker-strip .tile,.speaker-strip .remote{width:145px;min-width:145px;height:88px;min-height:88px}.speaker-label{bottom:8px;left:8px}.speaker-view.gallery-mode .speaker-strip{grid-template-columns:1fr}}

/* v0.4.1 — conference-first admin UI and modals */
.admin-page{max-width:none;padding:0;height:calc(100vh - 56px)}
.admin-workspace{height:100%;display:flex;flex-direction:column;min-height:0}
.admin-quickbar{height:58px;flex:0 0 58px;background:#fff;border-bottom:1px solid #e5e5e9;display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:12px}
.admin-context{display:flex;flex-direction:column;min-width:0}.admin-context b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-context span{font-size:11px;color:#858592}
.quick-actions{display:flex;gap:8px}.quick-actions button{padding:9px 13px}
.admin-empty{margin:auto;text-align:center;padding:30px}.empty-icon{width:58px;height:58px;border-radius:17px;background:#2d8cff;color:#fff;display:grid;place-items:center;font-size:28px;font-weight:800;margin:0 auto 15px}.admin-empty .actions{justify-content:center;margin-top:18px}
.admin-workspace>.conference{flex:1;min-height:0;height:auto;margin:0;padding:12px;grid-template-columns:minmax(0,1fr) 310px}
.compact-room-head{margin:0;border-radius:12px 12px 0 0;border-bottom:0;padding:10px 14px}.compact-room-head h2{font-size:17px}.compact-room-head .share{display:none}.room-head-actions{display:flex;gap:7px}.room-head-actions button{padding:8px 11px}
.modal-backdrop{position:fixed;inset:0;background:#09090db3;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}
.modal{width:min(520px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;background:#fff;border:1px solid #e4e4e9;border-radius:16px;padding:22px;box-shadow:0 24px 80px #0005}.modal-wide{width:min(820px,100%)}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.modal-head h2{margin:0 0 5px;font-size:22px}.modal-head p{margin:0;font-size:13px}.icon-btn{width:36px;height:36px;border-radius:50%;padding:0;background:#f0f0f3;color:#333;font-size:24px;line-height:1}.modal-actions{display:flex;justify-content:flex-end;margin-bottom:14px}
.modal input{width:100%;padding:12px 13px;border:1px solid #d8d8df;border-radius:9px;font-size:15px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-meetings{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));max-height:55vh;overflow:auto}.modal-meetings .meeting-card{background:#fafafa}.field-label{display:block;font-size:12px;font-weight:700;color:#666;margin:15px 0 7px}.copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.meeting-code{font-size:28px;font-weight:800;letter-spacing:3px;background:#f5f5f7;border-radius:10px;padding:15px;text-align:center}.copy-notice{height:20px;color:#27a763;font-size:12px;margin-top:8px}
body.modal-open{overflow:hidden}
@media(max-width:850px){.admin-workspace>.conference{padding:0;grid-template-columns:1fr}.admin-quickbar{padding:0 10px}.quick-actions button{font-size:0}.quick-actions button:before{font-size:18px}.quick-actions button:first-child:before{content:'☰'}.quick-actions button:last-child:before{content:'＋'}.modal-backdrop{padding:8px;align-items:flex-end}.modal{border-radius:16px 16px 8px 8px;max-height:90vh}.compact-room-head{border-radius:0}}
/* v0.4.2 host moderation */
.person{gap:8px}.person-name{min-width:0;flex:1}.participant-media-state{display:flex;gap:3px;font-size:12px;opacity:.7}.host-controls{display:flex;gap:4px;margin-left:4px}.host-controls .mini{width:30px;height:30px;padding:0;border-radius:8px;background:#ececf0;color:#202026;font-size:13px}.host-controls .mini:hover{background:#dedee5}.host-controls .mini.off{background:#fff0f0;color:#d83c3c}.host-controls .mini.danger{background:#fff0f0;color:#d93030}.host-controls .mini.danger:hover{background:#ffdede}.toolbar .danger{background:#ef4b4b}
@media(max-width:1100px){.participant-media-state{display:none}.host-controls .mini{width:28px;height:28px}}

/* v0.5.0 — screen sharing / presentation mode */
.presentation{position:relative;flex:1;min-height:0;background:#09090b;display:flex;flex-direction:column;overflow:hidden}
.presentation-head{height:42px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;gap:12px;background:#151518;color:#e9e9ed;font-size:13px;border-bottom:1px solid #29292d}
.presentation>video{width:100%;height:calc(100% - 42px);object-fit:contain;background:#09090b}
.presentation-stop{position:absolute;right:10px;top:6px;padding:7px 10px;background:#e84b4b;z-index:2}
.tool.sharing{background:#d94141;color:#fff}
.host-controls .mini.screen-stop{background:#fff3df;color:#a86100}
@media(max-width:700px){.presentation-head{justify-content:flex-start;padding-left:10px}.presentation-stop{font-size:11px}}
