/* Webinars (webinar.js): one window for hosts and audience, the student's button and notice, and the class page card */
dialog.wb-dlg{width:min(680px,calc(100% - 20px));max-height:calc(100vh - 24px);overflow:auto;padding:0 20px 16px}
.wb-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;padding:14px 0 10px;background:var(--card);border-bottom:1px solid var(--line);margin-bottom:12px}
.wb-head h2{flex:1;min-width:0;margin:0;font-size:1.15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-head #wbClose{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);font-size:1.5rem;line-height:1;cursor:pointer}
.wb-head #wbBack{flex:none;white-space:nowrap}
.wb-dlg h3{margin:18px 0 8px;font-size:1rem}
.wb-dlg label{display:block;margin:10px 0 4px;font-weight:600;font-size:.9rem}
.wb-dlg label small{font-weight:400;color:var(--muted)}
.wb-dlg input,.wb-dlg textarea,.wb-dlg select{width:100%;box-sizing:border-box;font:inherit;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text)}
.wb-dlg textarea{resize:vertical;line-height:1.45}
.wb-three{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px}
.wb-card{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:0 0 10px;background:var(--card)}
.wb-card.wb-islive{border-color:#e5484d;box-shadow:0 0 0 1px #e5484d inset}
.wb-ch{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;line-height:1.3}
.wb-when{margin:4px 0 0;color:var(--muted);font-size:.88rem}
.wb-about{margin:8px 0 10px}
.wb-warn{margin:6px 0 0;color:#b45309;font-size:.88rem}
.wb-acts{margin-top:10px;gap:6px}
.wb-acts button{padding:7px 12px;font-size:.88rem}
.wb-tag{display:inline-block;border-radius:999px;padding:1px 9px;font-size:.74rem;font-weight:700;font-style:normal;white-space:nowrap;background:var(--brand-soft);color:var(--text)}
.wb-tag.wb-live{background:#e5484d;color:#fff}
.wb-tag.wb-cancelled{background:var(--line);color:var(--muted)}
.wb-wait{display:grid;gap:6px;justify-items:start;border:1px dashed var(--line);border-radius:14px;padding:16px;margin:8px 0;background:var(--bg)}
.wb-wait span{color:var(--muted);font-size:.9rem}
.wb-ask{display:flex;gap:8px;align-items:flex-start}
.wb-ask textarea{flex:1}
.wb-ask button{flex:none}
.wb-q{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.wb-q.done>span:first-child{color:var(--muted)}
.wb-qb{flex:none;display:flex;gap:6px;align-items:center}
.wb-qb button{padding:5px 10px;font-size:.82rem}
.wb-how{margin:10px 0;border:1px solid var(--line);border-radius:12px;padding:8px 12px;font-size:.9rem}
.wb-how summary{cursor:pointer;font-weight:600}
.wb-how ol{margin:8px 0 4px;padding-left:20px}
.wb-how li{margin:6px 0}
#wbNav.wb-live{font-weight:700}
@media (max-width:820px){
  #sbMenu #subnav #wbNav{order:24}
  #sbMenu #subnav:has(#wbNav) .mn-h2{display:block !important}
}
@media (max-width:520px){.wb-three{grid-template-columns:1fr 1fr}.wb-three>div:first-child{grid-column:1/-1}.wb-q{flex-direction:column}.wb-ask{flex-direction:column}.wb-ask button{align-self:flex-end}dialog.wb-dlg{padding:0 14px 14px}}
/* the room (wbroom.js): raise hand, feedback, polls, shared questions */
.wbr-when{margin:0 0 6px;color:var(--muted);font-size:.9rem}
.wbr-about{margin:0 0 10px}
.wbr-bar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.wbr-bar button{flex:1 1 auto;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-size:.9rem;cursor:pointer}
.wbr-bar button.on{background:var(--brand,#4338ca);border-color:var(--brand,#4338ca);color:#fff;font-weight:700}
.wbr-pollc{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:12px 0;background:var(--brand-soft)}
.wbr-ph{margin:0;font-size:.78rem;font-weight:700;text-transform:none;color:var(--muted)}
.wbr-pq{margin:4px 0 10px;font-weight:700}
.wbr-opts{display:grid;gap:8px}
.wbr-opts button{text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);font:inherit;cursor:pointer}
.wbr-opts button.on{border-color:var(--brand,#4338ca);box-shadow:0 0 0 1px var(--brand,#4338ca) inset;font-weight:700}
.wbr-res{position:relative;display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:var(--card);overflow:hidden;margin:0 0 6px}
.wbr-res i{position:absolute;left:0;top:0;bottom:0;background:var(--brand,#4338ca);opacity:.16;z-index:0}
.wbr-res span,.wbr-res b{position:relative;z-index:1}
.wbr-res.mine{font-weight:700}
.wbr-ans{margin:6px 0 0;font-size:.9rem;color:var(--muted)}
.wbr-up{flex:none;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-size:.82rem;cursor:pointer;white-space:nowrap}
.wbr-up.on{background:var(--brand-soft);font-weight:700}
.wbr-up:disabled{opacity:.6;cursor:default}
.wbr-msg{margin-top:8px}
/* the host's live view */
.wb-stats{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.wb-stats .wb-hot{color:#b42318;font-weight:700}
.wb-pollnew{display:grid;gap:8px}
.wb-popts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wb-pollnew button{justify-self:start}
.wb-qt{flex:1;min-width:0}
.wb-reply{display:flex;gap:6px;margin-top:6px}
.wb-reply input{flex:1;min-width:0;padding:6px 9px}
.wb-reply button{flex:none;padding:5px 10px;font-size:.82rem}
/* sharing and the invite list */
.wb-linkrow{display:flex;gap:6px}
.wb-linkrow input{flex:1;min-width:0}
.wb-sharebtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.wb-sharebtns button{flex:1 1 auto}
.wb-qr{margin-top:12px;text-align:center}
.wb-qr #wbQrImg{display:inline-block;padding:10px;background:#fff;border-radius:12px}
.wb-qr #wbQrImg svg{display:block;width:220px;height:220px}
.wb-upl{border:1px dashed var(--line);border-radius:14px;padding:12px 14px;margin:10px 0}
.wb-inv{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line)}
.wb-invb{display:flex;gap:6px;align-items:center}
.wb-invb button{padding:5px 10px;font-size:.84rem}
@media (max-width:520px){.wb-popts{grid-template-columns:1fr}.wb-sharebtns button{flex:1 1 45%}}
