:root{
  --vc-primary:#123F6D;
  --vc-secondary:#FF6B35;
  --vc-button:#FF5A1F;
  --vc-bg:#F7F9FC;
  --vc-panel:#FFFFFF;
  --vc-text:#172033;
  --vc-muted:#667085;
  --vc-border:#D7DEE8;
  --vc-success:#15A36A;
  --vc-warning:#F59E0B;
  --vc-danger:#DC2626;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Open Sans,Arial,sans-serif;background:var(--vc-bg);color:var(--vc-text)}
a{color:var(--vc-primary);font-weight:700;text-decoration:none}
.topbar{background:linear-gradient(135deg,var(--vc-primary),#1F6FAF);color:white;padding:22px 28px}
.brand{font-size:24px;font-weight:900;letter-spacing:-.02em}
.sub{opacity:.9;margin-top:4px}
.wrap{max-width:1120px;margin:0 auto;padding:26px}
.card{background:var(--vc-panel);border:1px solid var(--vc-border);border-radius:22px;padding:24px;box-shadow:0 18px 50px rgba(18,63,109,.10);margin-bottom:18px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.grid.two{
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
@media(max-width:640px){
  .grid.two{grid-template-columns:1fr}
}

.pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;background:#EEF4FA;color:var(--vc-primary);font-size:13px;font-weight:800;padding:8px 12px}
.pill.good{background:#EAF8F1;color:#10764D}.pill.warn{background:#FFF7E8;color:#985F00}.pill.danger{background:#FEECEC;color:#B42318}
h1,h2,h3{margin:0 0 12px} h1{font-size:34px;letter-spacing:-.03em} h2{font-size:23px}
p{color:var(--vc-muted);line-height:1.55}
label{display:block;font-weight:800;margin:14px 0 6px}
input,select,textarea{width:100%;padding:13px 14px;border:1px solid var(--vc-border);border-radius:13px;font:inherit;background:white}
textarea{min-height:90px}
button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:13px 18px;background:var(--vc-button);color:white;font-weight:900;font-size:15px;cursor:pointer}
.btn.secondary,button.secondary{background:var(--vc-primary)}
.btn.light,button.light{background:#EEF4FA;color:var(--vc-primary)}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;border-bottom:1px solid var(--vc-border);padding:12px 8px;vertical-align:top}.table th{font-size:13px;color:#475467;text-transform:uppercase;letter-spacing:.04em}
.flash{padding:13px 16px;border-radius:14px;margin-bottom:16px;background:#EEF4FA;border:1px solid #CAD8E8}
.flash.error{background:#FEECEC;border-color:#F8B4B4;color:#9B1C1C}.flash.good{background:#EAF8F1;border-color:#AEE5CB;color:#0B6845}
.nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.nav a{background:rgba(255,255,255,.14);color:white;border-radius:999px;padding:8px 12px}
.small{font-size:13px;color:var(--vc-muted)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#F1F5F9;border-radius:10px;padding:8px 10px;display:inline-block}
footer{text-align:center;color:#98A2B3;padding:28px}

.choice{display:block;border:1px solid var(--vc-border);border-radius:16px;padding:13px 14px;margin:10px 0;background:#fff}
.choice input{width:auto;margin-right:8px}.choice span{display:block;margin-left:26px;color:var(--vc-muted);font-size:13px;line-height:1.4}
.viewer-stage{min-height:340px;border-radius:20px;border:1px dashed #B8C7D9;background:linear-gradient(135deg,#F8FAFC,#EEF4FA);display:flex;align-items:center;justify-content:center;text-align:center;color:#667085;font-weight:800;font-size:22px;padding:30px}


/* VC-3E.3 attendee viewer polish — presentation-first, less technical */
.topbar{padding:18px 28px;background:linear-gradient(135deg,var(--vc-primary),#1F6FAF)}
.topbar .wrap{padding:0;max-width:1240px}
.brand{font-size:22px}.sub{font-size:14px;margin-top:2px}
.wrap{max-width:1240px;padding:22px 28px}
.card{box-shadow:0 16px 42px rgba(18,63,109,.09)}
.attendee-shell{display:flex;flex-direction:column;gap:18px}
.attendee-hero{margin-bottom:0;padding:22px 28px;position:relative;overflow:hidden}
.attendee-hero:after{content:"";position:absolute;right:-90px;top:-100px;width:260px;height:260px;border-radius:50%;background:linear-gradient(135deg,rgba(31,111,175,.12),rgba(255,107,53,.08));pointer-events:none}
.attendee-hero h1{font-size:34px;margin:8px 0 8px;max-width:980px;line-height:1.05}
.event-meta{margin:5px 0;color:#58667D;font-size:15px}
.attendee-stage-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}
.viewer-card,.control-card{margin-bottom:0}
.viewer-card{padding:22px}
.viewer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.viewer-heading h2{margin-bottom:2px;font-size:22px}
.companion-stage{min-height:590px;border-radius:22px;position:relative;overflow:hidden;background:radial-gradient(circle at top left,rgba(31,111,175,.08),transparent 38%),linear-gradient(135deg,#F8FAFC,#EEF4FA);font-size:24px;color:#667085}
.control-card{position:sticky;top:18px;padding:22px;box-shadow:0 20px 54px rgba(18,63,109,.13)}
.control-card h2{font-size:24px;margin-bottom:12px}
.control-card .mono{display:none}
.browser-audio-copy p{margin:10px 0 0}.audio-actions{margin-top:14px}
.audio-actions button{min-width:132px}.audio-actions #webCallConnectBtn{width:100%}
.qa-panel{border-top:1px solid var(--vc-border);margin-top:18px;padding-top:18px}
.qa-panel h3{font-size:19px;margin-bottom:10px}.qa-panel .actions{margin-top:12px}
.qa-panel #qaAskBtn,.qa-panel #qaWithdrawBtn{width:100%;font-size:15px;padding:13px 16px}
.event-status-mini{border-top:1px solid var(--vc-border);margin-top:18px;padding-top:18px}
.event-status-mini h3{font-size:18px;margin-bottom:8px}
.attendee-lower-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.table th,.table td{padding:10px 8px}
@media(max-width:980px){.wrap{padding:18px}.attendee-stage-grid{grid-template-columns:1fr}.control-card{position:static}.companion-stage{min-height:420px}.attendee-hero h1{font-size:30px}}


/* VC-3E.4 — denser, slide-first attendee layout */
body{font-size:14px}
.topbar{padding:12px 22px}
.topbar .wrap{max-width:1540px}
.brand{font-size:19px}.sub{font-size:12.5px}
.wrap{max-width:1540px;padding:14px 18px}
.card{border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 10px 28px rgba(18,63,109,.075)}
h1{font-size:28px} h2{font-size:20px} h3{font-size:16px}
p{line-height:1.42}.small{font-size:12px}
.pill{font-size:12px;padding:6px 10px}
button,.btn{font-size:13px;padding:10px 14px;border-radius:12px}
input,select,textarea{font-size:13px;padding:10px 12px;border-radius:11px}
.attendee-shell{gap:12px}
.attendee-hero{padding:16px 20px}
.attendee-hero h1{font-size:30px;line-height:1.02;margin:6px 0}
.event-meta{font-size:13px;margin:4px 0}
.attendee-stage-grid{grid-template-columns:minmax(720px,1fr) 310px;gap:12px}
.viewer-card{padding:16px}
.viewer-heading{margin-bottom:8px}
.viewer-heading h2{font-size:19px}
.companion-stage{min-height:clamp(520px, calc(100vh - 250px), 820px);font-size:22px}
.control-card{top:10px;padding:16px}
.control-card h2{font-size:20px}
.browser-audio-copy p{margin:8px 0}
.audio-actions{gap:8px;margin-top:10px}
.audio-actions button{min-width:112px}
.qa-panel{margin-top:12px;padding-top:12px}
.verbal-qa-panel{background:#F8FBFF;border:1px solid #DCE7F5;border-radius:14px;padding:12px}
.verbal-qa-panel h3{margin:0 0 8px;font-size:16px}
.verbal-qa-actions{gap:8px}
.verbal-qa-actions #qaAskBtn,.verbal-qa-actions #qaWithdrawBtn{width:100%;font-size:13px;padding:10px 12px}
.event-status-mini{margin-top:12px;padding-top:12px}
.event-status-mini h3{font-size:15px}
.attendee-lower-grid{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:12px}
.written-qa-card textarea{min-height:72px}
.table th,.table td{padding:8px 8px;font-size:12.5px}
footer{display:none}
@media(max-width:1120px){
  .attendee-stage-grid{grid-template-columns:1fr}
  .control-card{position:static}
  .companion-stage{min-height:460px}
}
@media(max-width:720px){
  .wrap{padding:10px}
  .attendee-hero h1{font-size:25px}
  .attendee-lower-grid{grid-template-columns:1fr}
  .companion-stage{min-height:360px}
}


/* VC-3E.5 — right-side Q&A/resources stack, hide attendee details */
.control-side-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-self:start;
  position:sticky;
  top:10px;
}
.control-side-stack .card{
  margin-bottom:0;
}
.side-card h2,
.written-qa-card h2,
.resources-card h2{
  font-size:18px;
  margin-bottom:8px;
}
.side-card p,
.written-qa-card p,
.resources-card p{
  margin:6px 0;
}
.written-qa-card textarea{
  width:100%;
  min-height:86px;
  resize:vertical;
}
.attendee-stage-grid{
  grid-template-columns:minmax(760px,1fr) 320px;
}
@media(max-width:1120px){
  .control-side-stack{position:static}
  .attendee-stage-grid{grid-template-columns:1fr}
}


/* VC-3E.6 — another light zoom-out pass and reconnect polish */
body{font-size:13px}
.topbar{padding:10px 18px}
.brand{font-size:18px}.sub{font-size:12px}
.wrap{max-width:1680px;padding:12px 16px}
.card{border-radius:16px;padding:14px;margin-bottom:10px}
h1{font-size:26px} h2{font-size:18px} h3{font-size:15px}
p{line-height:1.36}.small{font-size:11.5px}
.pill{font-size:11.5px;padding:5px 9px}
button,.btn{font-size:12.5px;padding:9px 13px;border-radius:11px}
.attendee-shell{gap:10px}
.attendee-hero{padding:14px 18px}
.attendee-hero h1{font-size:28px}
.attendee-stage-grid{grid-template-columns:minmax(820px,1fr) 300px;gap:10px}
.viewer-card{padding:14px}
.companion-stage{min-height:clamp(560px, calc(100vh - 220px), 860px)}
.control-card{top:8px;padding:14px}
.control-side-stack{gap:10px;top:8px}
.audio-actions{gap:7px;margin-top:9px}
.verbal-qa-panel{padding:10px}
.written-qa-card textarea{min-height:76px}
@media(max-width:1120px){
  .attendee-stage-grid{grid-template-columns:1fr}
  .companion-stage{min-height:440px}
}


/* VC-3E.7 — reliable reconnect, audio settings, and 100% browser fit polish */
body{font-size:12.5px}
.topbar{padding:8px 16px}
.brand{font-size:17px}.sub{font-size:11.5px}
.wrap{max-width:1760px;padding:10px 14px 14px}
.card{border-radius:15px;padding:12px;margin-bottom:9px}
h1{font-size:25px} h2{font-size:17px} h3{font-size:14px}
p{line-height:1.32}.small{font-size:11px}
.pill{font-size:11px;padding:5px 8px}
button,.btn{font-size:12px;padding:8px 12px;border-radius:10px}
.attendee-hero{padding:12px 16px}
.attendee-hero h1{font-size:26px}
.event-meta{font-size:12px}
.attendee-stage-grid{grid-template-columns:minmax(840px,1fr) 290px;gap:9px}
.viewer-card{padding:12px}
.viewer-heading{margin-bottom:6px}
.viewer-heading h2{font-size:17px}
.companion-stage{min-height:clamp(500px, calc(100vh - 245px), 800px)}
.control-card{padding:12px}
.control-side-stack{gap:9px}
.audio-actions{gap:6px;margin-top:8px}
.audio-actions button{min-width:96px}
.audio-actions #webCallConnectBtn{width:100%}
.audio-settings-panel{margin-top:10px;padding:10px;border:1px solid var(--vc-border);border-radius:12px;background:#F8FBFF}
.audio-settings-panel label{font-size:11.5px;margin:8px 0 4px}
.audio-settings-panel select{font-size:12px;padding:8px 10px;border-radius:9px}
.verbal-qa-panel{padding:9px}
.written-qa-card textarea{min-height:68px}
.resources-card{padding-bottom:12px}
@media(max-width:1120px){
  .attendee-stage-grid{grid-template-columns:1fr}
  .companion-stage{min-height:420px}
}
@media(max-height:760px) and (min-width:1121px){
  .attendee-hero{padding:10px 14px}
  .attendee-hero h1{font-size:23px}
  .companion-stage{min-height:calc(100vh - 235px)}
}


/* VC-3E.8 — attendee shell polish and fit-at-100% pass */
body.attendee-page{
  background:#F4F7FB;
}
body.attendee-page .wrap{
  max-width:1780px;
  padding-top:10px;
  padding-bottom:16px;
}
body.attendee-page .attendee-hero{
  margin-top:0;
  padding:10px 16px;
}
body.attendee-page .attendee-hero h1{
  font-size:25px;
  margin:2px 0 5px;
}
body.attendee-page .event-meta{
  font-size:11.5px;
  margin:2px 0;
}
body.attendee-page .attendee-stage-grid{
  grid-template-columns:minmax(860px,1fr) 288px;
  gap:9px;
}
body.attendee-page .viewer-card,
body.attendee-page .control-card,
body.attendee-page .written-qa-card,
body.attendee-page .resources-card{
  padding:11px 12px;
}
body.attendee-page .companion-stage{
  min-height:clamp(470px, calc(100vh - 205px), 760px);
}
body.attendee-page .viewer-heading h2,
body.attendee-page .control-card h2,
body.attendee-page .written-qa-card h2,
body.attendee-page .resources-card h2{
  font-size:16px;
}
body.attendee-page .audio-settings-panel{
  padding:8px;
}
@media(max-width:1120px){
  body.attendee-page .attendee-stage-grid{grid-template-columns:1fr}
  body.attendee-page .companion-stage{min-height:390px}
}
@media(max-height:780px) and (min-width:1121px){
  body.attendee-page .companion-stage{min-height:calc(100vh - 215px)}
  body.attendee-page .attendee-hero{padding:8px 14px}
}


/* VC-3E.9 — tiny viewport breathing room */
body.attendee-page .wrap{padding-bottom:22px}
body.attendee-page .companion-stage{min-height:clamp(455px, calc(100vh - 220px), 740px)}
body.attendee-page .written-qa-card textarea{min-height:58px}


/* VC-3F — Written Q&A */
.written-question-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.written-question-item{
  border:1px solid var(--vc-border);
  background:#F8FBFF;
  border-radius:12px;
  padding:9px 10px;
}
.written-question-item p{
  margin:7px 0 0;
  color:var(--vc-text);
}
.written-answer{
  margin-top:8px;
  padding:8px 9px;
  border-radius:10px;
  background:#FFFFFF;
  border:1px solid var(--vc-border);
  color:var(--vc-muted);
}
.question-action-form{
  display:grid;
  grid-template-columns:minmax(110px,150px) minmax(180px,1fr) auto;
  gap:8px;
  align-items:start;
}
.question-action-form textarea{
  min-height:54px;
}
.written-question-table td{
  vertical-align:top;
}
@media(max-width:900px){
  .question-action-form{grid-template-columns:1fr}
}


/* VC-3G — Resources */
.resources-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}
.resource-item{
  border:1px solid var(--vc-border);
  background:#F8FBFF;
  border-radius:12px;
  padding:9px 10px;
}
.resource-item strong{
  display:block;
  color:var(--vc-text);
}
.resource-file{
  display:block;
  margin-top:2px;
}
.resource-link{
  display:inline-block;
  margin-top:7px;
}
.resources-card .small{
  margin-bottom:5px;
}


/* VC-3H — Event status/live-state foundation */
.event-status-controls{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.event-status-controls.compact{
  margin-top:8px;
}
.event-status-controls.compact button{
  padding:7px 9px;
  font-size:11.5px;
}
.event-actions{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-bottom:5px;
}
body[data-event-mode="live"] .viewer-card{
  border-color:#9CD7B2;
}
body[data-event-mode="ended"] .viewer-card{
  opacity:.92;
}


/* VC-3I — Slides + collapsible side panels */
.presentation-empty{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:var(--vc-muted);
  font-weight:800;
}
.presentation-slide-image{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  border-radius:14px;
}
.presentation-slide-caption{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--vc-border);
  color:var(--vc-text);
  font-size:12px;
  font-weight:700;
}
.companion-stage{
  position:relative;
  overflow:hidden;
}
.admin-slide-thumb{
  width:120px;
  height:70px;
  object-fit:contain;
  border:1px solid var(--vc-border);
  border-radius:10px;
  background:#F8FBFF;
}
.collapsible-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.collapsible-card-header h2{
  margin:0;
}
.collapse-toggle{
  padding:6px 9px;
  font-size:11px;
}
[hidden]{
  display:none !important;
}
@media(max-width:1120px){
  .presentation-slide-caption{
    position:static;
    margin-top:8px;
  }
}


/* VC-3J — PDF/PPT upload conversion, slide controls, drag-sort */
.attendee-slide-controls{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:3;
}
.attendee-slide-controls button{
  background:rgba(255,255,255,.94);
}
.presentation-slide-caption + .attendee-slide-controls{
  bottom:70px;
}
.slide-sort-row{
  cursor:grab;
}
.slide-sort-row.dragging{
  opacity:.55;
}
.slide-order-input{
  max-width:56px;
  padding:7px 8px;
  text-align:center;
}
.admin-slide-thumb{
  width:140px;
  height:82px;
}
@media(max-width:1120px){
  .attendee-slide-controls{
    position:static;
    margin-top:8px;
  }
}


/* VC-4A — Admin lists and access control */
.admin-inline-form{
  display:inline;
}
.event-actions .btn,
.actions .btn{
  margin-bottom:4px;
}
.nav a{
  white-space:nowrap;
}
.table .btn{
  margin:2px 2px 2px 0;
}


/* VC-4A.1 — clean attendee slides + upload/conversion modal */
.presentation-slide-caption{
  display:none !important;
}

.upload-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.54);
  backdrop-filter:blur(5px);
}
.upload-modal-backdrop[hidden]{
  display:none !important;
}
.upload-modal{
  width:min(520px, calc(100vw - 48px));
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(210,220,235,.9);
  box-shadow:0 28px 80px rgba(15,23,42,.28);
  padding:28px;
  text-align:center;
}
.upload-modal h2{
  margin:14px 0 8px;
}
.upload-modal p{
  color:var(--vc-muted);
}
.upload-spinner{
  width:54px;
  height:54px;
  margin:0 auto;
  border-radius:999px;
  border:5px solid #E8EEF7;
  border-top-color:var(--vc-accent);
  animation:vieweringUploadSpin .85s linear infinite;
}
.upload-progress-track{
  width:100%;
  height:10px;
  border-radius:999px;
  background:#EEF3FA;
  overflow:hidden;
  margin:18px 0 10px;
}
.upload-progress-bar{
  height:100%;
  width:18%;
  border-radius:999px;
  background:var(--vc-accent);
  transition:width .6s ease;
}
body.upload-modal-open{
  cursor:wait;
}
@keyframes vieweringUploadSpin{
  to{transform:rotate(360deg)}
}


/* VC-4B — Simple Client/Speaker Slide Console */
.slide-console{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:14px;
  min-height:calc(100vh - 120px);
}
.console-thumbs{
  position:sticky;
  top:12px;
  align-self:start;
  max-height:calc(100vh - 44px);
  overflow:auto;
  border:1px solid var(--vc-border);
  border-radius:18px;
  background:#fff;
  padding:10px;
  box-shadow:0 18px 60px rgba(15,23,42,.08);
}
.console-panel-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:var(--vc-muted);
}
.console-thumb-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.console-thumb{
  width:100%;
  text-align:left;
  border:2px solid transparent;
  border-radius:14px;
  background:#F8FBFF;
  padding:8px;
  cursor:pointer;
  color:var(--vc-text);
}
.console-thumb:hover{
  border-color:#BFD3EA;
}
.console-thumb.is-current{
  border-color:var(--vc-accent);
  box-shadow:0 0 0 3px rgba(18,63,109,.12);
}
.console-thumb img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:contain;
  border-radius:10px;
  background:#EDF3FA;
  margin:5px 0;
}
.console-thumb-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:22px;
  border-radius:999px;
  background:#EAF2FB;
  font-weight:900;
  font-size:11px;
}
.console-thumb-title{
  display:block;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.console-main{
  min-width:0;
}
.console-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.console-status-box{
  text-align:right;
  min-width:220px;
}
.console-live-pill{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.05em;
  font-size:13px;
}
.console-live-pill.live{
  background:#DFF8EA;
  color:#087544;
}
.console-live-pill.offline{
  background:#FFF4DA;
  color:#975F00;
}
.console-live-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.console-live-button,
.console-offline-button{
  border:0;
  color:#fff;
  font-weight:900;
  letter-spacing:.02em;
}
.console-live-button{
  background:#12A45B;
}
.console-offline-button{
  background:#9A3412;
}
.console-current-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:16px;
}
.console-preview-wrap{
  border-radius:18px;
  border:1px solid var(--vc-border);
  background:#EDF3FA;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.console-main-slide{
  display:block;
  width:100%;
  height:100%;
  max-height:calc(100vh - 330px);
  object-fit:contain;
  background:#EDF3FA;
}
.console-no-slide{
  color:var(--vc-muted);
  font-weight:900;
}
.console-current-meta{
  align-self:start;
  border-left:1px solid var(--vc-border);
  padding-left:16px;
}
@media(max-width:980px){
  .slide-console{
    grid-template-columns:1fr;
  }
  .console-thumbs{
    position:static;
    max-height:none;
  }
  .console-thumb-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  }
  .console-current-card{
    grid-template-columns:1fr;
  }
  .console-status-box{
    text-align:left;
  }
}


/* VC-4C — Presenter access link */
.presenter-login-wrap{
  min-height:calc(100vh - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.presenter-login-card{
  width:min(560px, 100%);
}
.presenter-console .console-header{
  border-top:8px solid var(--vc-accent);
}
.presenter-link-card input[readonly]{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:13px;
  background:#F8FBFF;
}


/* VC-4D — Superuser Deep Health page */
.health-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  border-top:8px solid var(--vc-accent);
}
.health-hero h1{
  margin-top:8px;
}
.health-hero-status{
  min-width:180px;
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.health-grid .card h2,
.health-count-card h2{
  margin:0 0 8px;
}
.health-count-grid{
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
.health-count-card h2{
  font-size:34px;
  color:var(--vc-accent);
}
.health-table td:first-child{
  width:220px;
  color:var(--vc-muted);
  font-weight:800;
}
@media(max-width:760px){
  .health-hero{
    flex-direction:column;
  }
  .health-hero-status{
    text-align:left;
  }
}


/* VC-4E — Public join redesign and slides-only unlock flow */
.public-join-shell{
  max-width:980px;
  margin:0 auto;
}
.public-join-hero{
  padding:28px 28px 18px;
}
.public-join-hero h1{
  font-size:clamp(30px, 4vw, 52px);
  margin:10px 0 6px;
}
.public-join-hero p{
  color:var(--vc-muted);
  font-size:17px;
  margin:0;
}
.public-join-modal{
  max-width:860px;
  margin:0 auto 28px;
  border-top:8px solid var(--join-accent, var(--vc-accent));
  box-shadow:0 28px 100px rgba(15,23,42,.10);
}
.join-modal-heading{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}
.join-modal-heading h2{
  margin-bottom:4px;
}
.join-modal-heading p{
  color:var(--vc-muted);
  margin-top:0;
}
.landing-audio-options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin:16px 0;
}
.landing-audio-option{
  display:flex;
  align-items:flex-start;
  gap:12px;
  border:2px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  cursor:pointer;
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.landing-audio-option:hover{
  border-color:#BFD3EA;
  transform:translateY(-1px);
}
.landing-audio-option.selected{
  border-color:var(--join-accent, var(--vc-accent));
  box-shadow:0 0 0 4px rgba(18,63,109,.10);
}
.landing-audio-option input{
  margin-top:5px;
  width:auto;
}
.landing-option-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:14px;
  background:#EEF5FC;
  font-weight:900;
  flex:0 0 auto;
}
.landing-audio-option strong{
  display:block;
  color:var(--vc-text);
  font-size:16px;
}
.landing-audio-option small{
  display:block;
  color:var(--vc-muted);
  margin-top:4px;
  line-height:1.35;
}
.join-details-panel{
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  background:#F8FBFF;
  margin-top:14px;
}
.join-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}
.public-empty-state{
  max-width:720px;
  margin:0 auto;
}
.identity-unlock-card{
  border-top:6px solid #F59E0B;
}
.locked-card{
  opacity:.92;
}
.locked-card textarea,
.locked-card button[type="submit"]{
  pointer-events:none;
}
@media(max-width:760px){
  .public-join-hero{
    padding:18px 10px 10px;
  }
  .public-join-modal{
    border-radius:20px;
  }
  .join-actions{
    justify-content:stretch;
  }
  .join-actions button{
    width:100%;
  }
}


/* VC-4F — Superuser Project Report */
.project-report-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  border-top:8px solid var(--vc-accent);
}
.project-report-hero h1{
  margin:10px 0 6px;
}
.project-report-score{
  min-width:260px;
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  background:#F8FBFF;
  color:var(--vc-muted);
}
.project-report-score strong{
  display:block;
  color:var(--vc-text);
  margin-bottom:6px;
}
.project-agenda{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
.project-agenda div{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid var(--vc-border);
  border-radius:18px;
  background:#F8FBFF;
  padding:14px;
}
.project-agenda strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:var(--vc-accent);
  color:white;
  flex:0 0 auto;
}
.project-table td,
.project-table th{
  vertical-align:top;
}
.project-table td:first-child{
  font-weight:800;
}
.project-architecture-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  margin:14px 0;
}
.project-architecture-card{
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  background:#F8FBFF;
}
.project-architecture-card h3{
  margin-top:0;
}
@media(max-width:760px){
  .project-report-hero{
    flex-direction:column;
  }
  .project-report-score{
    min-width:0;
    width:100%;
  }
}


/* VC-4G — TurboBridge/LCM live-state worker foundation */
.live-state-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  border-top:8px solid var(--vc-accent);
}
.live-state-mode{
  min-width:260px;
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  background:#F8FBFF;
}
.live-state-mode strong{
  display:block;
  margin-bottom:6px;
}
.live-state-summary-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.live-state-summary-grid h2{
  font-size:34px;
  color:var(--vc-accent);
  margin:0 0 6px;
}
.live-state-table td,
.live-state-table th{
  vertical-align:top;
}
@media(max-width:760px){
  .live-state-hero{
    flex-direction:column;
  }
  .live-state-mode{
    min-width:0;
    width:100%;
  }
}


/* VC-4H — Live-state API mapping */
textarea.mono,
input.mono,
.mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.live-state-mode .small{
  overflow-wrap:anywhere;
}


/* VC-4I — LCM Scanner Discovery Mode */
.scan-value{
  max-width:360px;
  max-height:160px;
  overflow:auto;
  margin:0;
  padding:8px;
  border-radius:10px;
  background:#F8FBFF;
  border:1px solid var(--vc-border);
  white-space:pre-wrap;
}
.scan-value-inline{
  display:inline-block;
  max-width:360px;
  overflow-wrap:anywhere;
}
.scan-diff-table td,
.scan-diff-table th{
  vertical-align:top;
}
.scan-diff-table select,
.scan-diff-table input{
  min-width:180px;
  margin-bottom:6px;
}


/* VC-4J — Scanner export and auto-review */
.scan-moment{
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:14px 16px;
  margin:12px 0;
  background:#F8FBFF;
}
.scan-moment h3{
  margin:0 0 8px;
}
.scan-moment ul{
  margin-top:8px;
}


/* VC-4K — Clean LCM current-state model */
.lcm-clean-state .live-state-summary-grid .card{
  background:#F8FBFF;
}
.lcm-clean-state h3{
  margin-top:22px;
}


/* VC-4L — Browser-local time display */
time.js-local-time{
  white-space:nowrap;
}
time.local-time-ready{
  border-bottom:1px dotted rgba(15,23,42,.25);
  cursor:help;
}


/* VC-4M — Worker & Scanner Status */
.worker-status-note{
  border-left:6px solid var(--vc-accent);
}
.worker-status-note p{
  max-width:1100px;
}


/* VC-4N — Q&A bridge status */
.written-question-item .pill + .pill{
  margin-left:6px;
}


/* VC-4O — Queued written Q&A live gate */
.written-question-item .pill.warn{
  white-space:nowrap;
}


/* VC-4P — Adaptive polling */
.worker-status-note strong{
  color:#0F3E67;
}


/* VC-4P attendee cleanup + presenter mode */
.presenter-mode-choice label{
  display:block;
  padding:12px 14px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  margin:8px 0;
  background:#F8FBFF;
}
.presenter-mode-choice input{
  width:auto;
  margin-right:8px;
}
.presenter-mode-choice span{
  display:block;
  margin-left:26px;
  color:var(--vc-muted);
  font-size:.92rem;
}
.control-side-stack .event-status-mini{
  display:none;
}
#presentationStatusMessage:empty{
  display:none;
}


/* VC-4R — Run-of-show automation */
.presenter-mode-choice strong{
  color:#0F172A;
}
.worker-status-note{
  background:linear-gradient(135deg,#FFFFFF 0%,#F7FBFF 100%);
}


/* VC-4S — Presentation Day fast-poll tuning */
.worker-status-note strong{
  color:#0F3E67;
}


/* VC-4T — Auto-refresh status surfaces */
.auto-refresh-badge{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9999;
  background:rgba(15, 23, 42, .88);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:.78rem;
  font-weight:700;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
  pointer-events:none;
}


/* VC-4V — Attendee-facing wording polish */
.written-question-item .pill.good,
.written-question-item .pill.warn{
  white-space:nowrap;
}


/* VC-4W — Attendee email re-entry foundation */
.attendee-hero-with-actions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.attendee-logout-form{
  margin:0;
}
.attendee-logout-form button{
  white-space:nowrap;
}
@media (max-width: 760px){
  .attendee-hero-with-actions{
    flex-direction:column;
  }
}


/* VC-4Y — Live update bus foundation */
.live-update-status{
  font-size:.78rem;
  color:var(--vc-muted);
}


/* VC-4Y1 — Redis/Valkey live bus adapter */
.live-update-status.redis-ready{
  color:#0F766E;
}


/* VC-4Z — attendee audio rescue / switching */
.switch-audio-card details{
  border:0;
}
.switch-audio-card summary{
  cursor:pointer;
  font-weight:800;
  color:var(--vc-ink);
  list-style:none;
}
.switch-audio-card summary::-webkit-details-marker{
  display:none;
}
.switch-audio-card summary::after{
  content:'Change';
  float:right;
  font-size:.72rem;
  font-weight:800;
  color:var(--vc-accent);
  background:rgba(255,90,31,.10);
  border:1px solid rgba(255,90,31,.25);
  border-radius:999px;
  padding:4px 8px;
}
.switch-audio-options{
  display:grid;
  gap:8px;
  margin:12px 0;
}
.switch-audio-option{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 11px;
  border:1px solid var(--vc-border);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
}
.switch-audio-option.current{
  border-color:rgba(18,63,109,.35);
  background:rgba(18,63,109,.04);
}
.switch-audio-option input{
  width:auto;
  margin-top:3px;
}
.switch-audio-option small{
  display:block;
  margin-top:2px;
  color:var(--vc-muted);
}
.switch-audio-phone{
  margin:10px 0;
}


/* VC-5A — Q&A and Resources operational polish */
.qna-summary-grid{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
}
.question-quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.resource-access-table td,
.written-question-table td{
  vertical-align:top;
}


/* VC-5C — modern setup defaults */
.modern-hero,
.modern-setup-card{
  background:
    radial-gradient(circle at top left, rgba(255,90,31,.10), transparent 38%),
    linear-gradient(135deg, rgba(18,63,109,.07), rgba(255,255,255,.96));
}
.defaults-toggle-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:12px;
  margin:14px 0;
}
.toggle-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:13px 14px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.toggle-card.standalone{
  margin:12px 0;
}
.toggle-card input{
  width:auto;
  margin-top:4px;
}
.toggle-card strong{
  display:block;
  font-size:.95rem;
}
.toggle-card small,
.override-row small{
  display:block;
  color:var(--vc-muted);
  margin-top:3px;
  line-height:1.35;
}
.defaults-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  margin-top:12px;
}
.defaults-summary.compact{
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
}
.default-chip{
  border:1px solid var(--vc-border);
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}
.default-chip strong{
  display:block;
  font-size:.82rem;
  color:var(--vc-muted);
}
.default-chip span{
  display:block;
  margin-top:4px;
  font-weight:800;
}
.default-chip.is-on{
  border-color:rgba(15,118,110,.22);
  background:rgba(15,118,110,.045);
}
.default-chip.is-off{
  border-color:rgba(245,158,11,.25);
  background:rgba(245,158,11,.055);
}
.default-chip.is-neutral{
  border-color:rgba(18,63,109,.20);
  background:rgba(18,63,109,.045);
}
.defaults-override-list{
  display:grid;
  gap:10px;
}
.override-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,240px);
  gap:16px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:#fff;
}
.advanced-defaults-box{
  margin-top:16px;
  padding:12px 14px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:rgba(18,63,109,.035);
}
.advanced-defaults-box summary{
  cursor:pointer;
  font-weight:800;
}
@media (max-width: 720px){
  .override-row{
    grid-template-columns:1fr;
  }
}


/* VC-5D — Launch Pack contacts and preview */
.launch-contact-table input[type="checkbox"]{
  width:auto;
}
.inline-contact-form{
  margin-top:12px;
}
.launch-preview-card textarea{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.85rem;
}
.launch-email-html-preview{
  border:1px solid var(--vc-border);
  border-radius:16px;
  padding:16px;
  background:#f8fafc;
  overflow:auto;
}
.launch-email-html-preview *{
  max-width:100%;
}


/* VC-5E — schedule editor and launch pack date safety */
.schedule-card{
  margin:18px 0;
  padding:16px;
  border:1px solid var(--vc-border);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(18,63,109,.045), rgba(255,90,31,.045));
}
.schedule-card h3{
  margin-top:0;
}
.duration-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.duration-row input{
  flex:1;
}
.duration-row span{
  color:var(--vc-muted);
  font-weight:700;
}
.flash.warn{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}
.flash.warn ul{
  margin:.5rem 0 0 1.2rem;
}


/* VC-5F — Launch Pack Microsoft 365 sending */
.launch-send-panel{
  margin-top:16px;
  padding:14px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:linear-gradient(135deg, rgba(15,118,110,.055), rgba(18,63,109,.045));
}
.inline-send-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:10px;
  align-items:end;
  margin:10px 0;
}
.inline-send-form label{
  margin:0;
}
.inline-send-form input{
  margin-top:5px;
}
@media (max-width:720px){
  .inline-send-form{
    grid-template-columns:1fr;
  }
}


/* VC-5H — Launch Pack provider diagnostics */
.provider-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:12px 0;
  padding:12px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:#fff;
}
.provider-summary div{
  display:grid;
  gap:3px;
}
.provider-summary strong{
  color:var(--vc-muted);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.provider-summary span{
  font-weight:800;
  overflow-wrap:anywhere;
}
.warn-text{
  color:#9a3412;
  grid-column:1/-1;
}


/* VC-5I — Event report */
.report-metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px;
  margin:16px 0;
}
.report-metric-card{
  background:#fff;
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.report-metric-card strong{
  display:block;
  font-size:1.75rem;
  color:var(--vc-accent);
  line-height:1;
}
.report-metric-card span{
  display:block;
  margin-top:7px;
  font-weight:800;
}
.report-metric-card small{
  display:block;
  margin-top:5px;
  color:var(--vc-muted);
}
.report-table td{
  vertical-align:top;
}


/* VC-5J — Report polish */
.report-metric-card strong{
  overflow-wrap:anywhere;
}
.report-table .small{
  max-width:340px;
  display:inline-block;
}


/* VC-5L — Attendee login/session hardening */
.attendee-logout-form button{
  white-space:nowrap;
}
.public-join-hero .pill.warn{
  display:inline-flex;
  margin-top:8px;
}
.table form button.light{
  padding:7px 10px;
  font-size:.82rem;
}


/* VC-5M — Event readiness */
.readiness-hero .readiness-score{
  display:inline-grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:baseline;
  margin:12px 0;
  padding:12px 16px;
  border:1px solid var(--vc-border);
  border-radius:18px;
  background:#fff;
}
.readiness-score strong{
  font-size:2.3rem;
  color:var(--vc-accent);
  line-height:1;
}
.readiness-score span{
  font-weight:800;
  color:var(--vc-muted);
}
.readiness-group-heading{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.readiness-list{
  display:grid;
  gap:10px;
}
.readiness-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid var(--vc-border);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.readiness-item.good{
  border-color:rgba(15,118,110,.22);
  background:rgba(15,118,110,.035);
}
.readiness-item.warn{
  border-color:rgba(245,158,11,.25);
  background:rgba(245,158,11,.045);
}
.readiness-item.danger{
  border-color:rgba(180,35,24,.25);
  background:rgba(180,35,24,.045);
}
.readiness-item.muted{
  background:#f8fafc;
}
.readiness-main{
  display:grid;
  gap:4px;
}
.readiness-main strong{
  font-size:.98rem;
}
.readiness-main small{
  color:var(--vc-muted);
}
.readiness-blockers{
  margin:0;
  padding-left:1.2rem;
}
@media (max-width:720px){
  .readiness-item{
    grid-template-columns:1fr;
  }
}


/* VC-5N — Event Command Centre */
.command-hero .command-metrics{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
  margin:16px 0;
}
.command-mini-metric{
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:#fff;
  padding:12px;
}
.command-mini-metric strong{
  display:block;
  font-size:1.65rem;
  color:var(--vc-accent);
  line-height:1;
}
.command-mini-metric span{
  display:block;
  margin-top:6px;
  font-weight:800;
}
.command-mini-metric small{
  display:block;
  color:var(--vc-muted);
  margin-top:3px;
}
.command-section-heading{
  margin-bottom:14px;
}
.command-action-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
.command-action-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:15px;
  background:#fff;
}
.command-action-card.good{
  border-color:rgba(15,118,110,.22);
  background:rgba(15,118,110,.035);
}
.command-action-card.warn{
  border-color:rgba(245,158,11,.25);
  background:rgba(245,158,11,.045);
}
.command-action-card.danger{
  border-color:rgba(180,35,24,.25);
  background:rgba(180,35,24,.045);
}
.command-action-card.muted{
  background:#f8fafc;
}
.command-action-card h3{
  margin:8px 0 6px;
}
.command-action-card p{
  margin:0;
  color:var(--vc-muted);
  font-size:.92rem;
}
.command-action-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}


/* VC-5O — Partner / Client branding */
.brand-preview-card{
  display:flex;
  align-items:center;
  gap:18px;
  border:1px solid var(--vc-border);
  border-radius:20px;
  padding:18px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent 36%),
    #fff;
}
.brand-preview-logo,
.public-brand-logo,
.attendee-brand-logo{
  max-width:180px;
  max-height:70px;
  object-fit:contain;
}
.brand-preview-logo{
  padding:10px;
  border:1px solid var(--vc-border);
  border-radius:14px;
  background:#fff;
}
.brand-demo-button,
.branded-public-page button,
.branded-attendee-page button:not(.light){
  background:var(--brand-button);
}
.branded-public-page .public-join-hero,
.branded-attendee-page .attendee-hero{
  border-color:var(--brand-primary);
}
.support-line{
  margin:14px 0 0;
  text-align:center;
}
.support-line a{
  color:var(--brand-primary, var(--vc-accent));
  font-weight:800;
}
.attendee-brand-title{
  display:flex;
  gap:14px;
  align-items:center;
}
.attendee-brand-logo{
  max-width:150px;
  max-height:54px;
}
@media (max-width:720px){
  .brand-preview-card,
  .attendee-brand-title{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* VC-5P — Open API */
.api-token-once{
  border-color:rgba(180,35,24,.25);
  background:rgba(180,35,24,.045);
}
.api-token-once textarea{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.api-code{
  background:#0f172a;
  color:#e5e7eb;
  padding:14px;
  border-radius:14px;
  overflow:auto;
  font-size:.86rem;
  line-height:1.5;
}
.mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* VC-5Q — API docs / sandbox */
.api-docs-hero .mono,
.api-sandbox .mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.api-sandbox textarea,
.api-response-box{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.api-response-box{
  background:#0f172a;
  color:#e5e7eb;
  padding:14px;
  border-radius:14px;
  min-height:140px;
  overflow:auto;
  white-space:pre-wrap;
}
.api-sandbox input[type=password]{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* VC-5R — API hardening */
.api-log-table td{
  vertical-align:top;
}
.api-log-table .mono{
  font-size:.82rem;
  overflow-wrap:anywhere;
}


/* VC-5S — API domain readiness */
.domain-readiness-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin:16px 0;
}
.domain-readiness-card{
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:15px;
  background:#fff;
}
.domain-readiness-card.good{
  border-color:rgba(15,118,110,.22);
  background:rgba(15,118,110,.035);
}
.domain-readiness-card.warn{
  border-color:rgba(245,158,11,.25);
  background:rgba(245,158,11,.045);
}
.domain-readiness-card strong{
  display:block;
  margin:8px 0 4px;
}
.domain-readiness-card small{
  display:block;
  color:var(--vc-muted);
  overflow-wrap:anywhere;
}


/* VC-5T — Webhooks */
.webhook-delivery-table td{
  vertical-align:top;
}
.webhook-delivery-table .mono{
  font-size:.82rem;
  overflow-wrap:anywhere;
}


/* VC-5U — Webhook polish */
.webhook-delivery-table form{
  margin:2px 2px 2px 0;
}
.webhook-delivery-table button.light{
  padding:6px 9px;
}


/* VC-5V — API landing polish */
.api-landing-hero .mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.api-landing-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}


/* VC-5W — Admin header + attendee viewer fit polish */
body:not(.attendee-page) .topbar{
  padding:6px 18px;
  min-height:34px;
  background:linear-gradient(90deg,var(--vc-primary),#1F6FAF);
}
body:not(.attendee-page) .topbar .wrap{
  max-width:1540px;
  display:flex;
  align-items:center;
  gap:16px;
}
body:not(.attendee-page) .topbar .brand{
  font-size:16px;
  line-height:1;
  white-space:nowrap;
}
body:not(.attendee-page) .topbar .sub{
  display:none;
}
body:not(.attendee-page) .topbar .nav{
  margin-top:0;
  margin-left:auto;
  gap:6px;
}
body:not(.attendee-page) .topbar .nav a,
body:not(.attendee-page) .topbar .nav button{
  padding:5px 9px !important;
  font-size:11.5px;
}
body:not(.attendee-page) main.wrap{
  padding-top:16px;
}

body.attendee-page{
  background:#F4F7FB;
  overflow-x:hidden;
}
body.attendee-page main.wrap{
  max-width:1500px;
  padding:10px 14px 18px;
}
body.attendee-page .attendee-shell{
  gap:10px;
}
body.attendee-page .attendee-hero{
  padding:10px 14px;
  border-radius:16px;
}
body.attendee-page .attendee-hero h1{
  font-size:clamp(21px,2vw,28px);
  line-height:1.02;
  margin:2px 0;
}
body.attendee-page .event-meta{
  font-size:12px;
  margin:2px 0;
}
body.attendee-page .attendee-brand-title{
  gap:10px;
  align-items:center;
}
body.attendee-page .attendee-brand-logo{
  max-height:42px;
  max-width:120px;
}
body.attendee-page .attendee-stage-grid{
  grid-template-columns:minmax(620px,1fr) minmax(260px,300px);
  gap:10px;
  align-items:start;
}
body.attendee-page .viewer-card,
body.attendee-page .control-card,
body.attendee-page .collapsible-card{
  border-radius:16px;
  padding:10px;
  margin-bottom:8px;
}
body.attendee-page .viewer-heading{
  margin-bottom:6px;
}
body.attendee-page .viewer-heading h2{
  font-size:16px;
  margin-bottom:0;
}
body.attendee-page .control-side-stack,
body.attendee-page .control-card{
  position:static !important;
  top:auto !important;
}
body.attendee-page .control-card h2{
  font-size:17px;
  margin-bottom:6px;
}
body.attendee-page .presentation-stage-wrap{
  position:relative;
  padding-bottom:42px;
}
body.attendee-page .companion-stage{
  min-height:0 !important;
  height:min(calc(100vh - 210px), calc((100vw - 360px) * .52));
  max-height:calc(100vh - 210px);
  aspect-ratio:16/9;
  border-radius:16px;
  font-size:18px;
}
body.attendee-page .presentation-slide-image{
  border-radius:14px;
}
.attendee-slide-controls-modern{
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
}
.attendee-slide-controls-modern .slide-arrow{
  position:absolute;
  top:calc(50% - 21px);
  width:42px;
  height:42px;
  padding:0;
  border-radius:999px;
  font-size:31px;
  line-height:1;
  background:rgba(255,255,255,.88);
  color:var(--brand-primary,var(--vc-primary));
  box-shadow:0 10px 28px rgba(15,23,42,.16);
  pointer-events:auto;
}
.attendee-slide-controls-modern .slide-arrow-left{
  left:10px;
}
.attendee-slide-controls-modern .slide-arrow-right{
  right:10px;
}
.attendee-follow-row{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.attendee-follow-row button{
  pointer-events:auto;
  padding:8px 13px;
  font-size:12px;
}
body.attendee-page .audio-actions{
  gap:6px;
  margin-top:8px;
}
body.attendee-page .audio-actions button,
body.attendee-page .verbal-qa-actions button{
  padding:8px 10px;
  font-size:12px;
}
body.attendee-page .qa-panel,
body.attendee-page .event-status-mini{
  margin-top:8px;
  padding-top:8px;
}
body.attendee-page textarea{
  min-height:66px;
}
body.attendee-page .support-line{
  margin:6px 0 0;
}
@media(max-width:1100px){
  body.attendee-page .attendee-stage-grid{
    grid-template-columns:1fr;
  }
  body.attendee-page .companion-stage{
    height:auto;
    max-height:none;
    min-height:320px !important;
  }
}
@media(max-height:760px) and (min-width:1101px){
  body.attendee-page .attendee-hero{
    display:none;
  }
  body.attendee-page .companion-stage{
    height:min(calc(100vh - 115px), calc((100vw - 360px) * .52));
    max-height:calc(100vh - 115px);
  }
}

.ops-status-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
  margin:12px 0;
}
.ops-metric-card{
  margin-bottom:0;
}
.ops-metric-card.good{
  border-color:rgba(15,118,110,.22);
  background:rgba(15,118,110,.035);
}
.ops-metric-card.warn{
  border-color:rgba(245,158,11,.28);
  background:rgba(245,158,11,.045);
}
.ops-metric-card h2{
  margin-bottom:4px;
}


/* VC-5W1 hotfix — restore contained slide stage and align slide arrows */
body.attendee-page .presentation-stage-wrap{
  position:relative;
  width:100%;
  display:block;
  padding-bottom:38px;
}
body.attendee-page .companion-stage{
  position:relative !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:16/9;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:clamp(14px,2.1vw,34px);
  overflow:hidden;
  border-radius:16px;
}
body.attendee-page .presentation-slide-image{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center center;
  border-radius:10px;
}
body.attendee-page .presentation-empty{
  width:100%;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
body.attendee-page .attendee-slide-arrow-layer{
  position:absolute;
  inset:0;
  z-index:6;
  pointer-events:none;
}
body.attendee-page .attendee-slide-arrow-layer .slide-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  padding:0;
  border-radius:999px;
  font-size:32px;
  line-height:1;
  background:rgba(255,255,255,.92);
  color:var(--brand-primary,var(--vc-primary));
  box-shadow:0 10px 26px rgba(15,23,42,.18);
  pointer-events:auto;
}
body.attendee-page .attendee-slide-arrow-layer .slide-arrow-left{
  left:10px;
}
body.attendee-page .attendee-slide-arrow-layer .slide-arrow-right{
  right:10px;
}
body.attendee-page .attendee-follow-row{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:34px;
  display:flex;
  justify-content:center;
  align-items:center;
  pointer-events:none;
}
body.attendee-page .attendee-follow-row button{
  pointer-events:auto;
  padding:7px 13px;
  font-size:12px;
  background:#fff;
}
@media(min-width:1101px){
  body.attendee-page .viewer-card{
    overflow:hidden;
  }
  body.attendee-page .viewer-card .companion-stage{
    max-height:calc(100vh - 210px) !important;
  }
  body.attendee-page .viewer-card .presentation-slide-image{
    max-height:calc(100vh - 280px);
  }
}
@media(max-height:760px) and (min-width:1101px){
  body.attendee-page .viewer-card .companion-stage{
    max-height:calc(100vh - 120px) !important;
  }
  body.attendee-page .viewer-card .presentation-slide-image{
    max-height:calc(100vh - 190px);
  }
}
@media(max-width:1100px){
  body.attendee-page .companion-stage{
    aspect-ratio:16/9;
    min-height:0 !important;
  }
  body.attendee-page .attendee-slide-arrow-layer .slide-arrow-left{
    left:8px;
  }
  body.attendee-page .attendee-slide-arrow-layer .slide-arrow-right{
    right:8px;
  }
}


/* VC-5W2 hotfix — attendee hero identity cleanup */
body.attendee-page .attendee-hero-with-actions{
  align-items:flex-start;
}
body.attendee-page .attendee-hero-actions{
  min-width:260px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  margin-left:auto;
}
body.attendee-page .attendee-identity-right{
  margin:0;
  max-width:420px;
  text-align:right;
  font-size:12px;
  line-height:1.25;
  color:var(--vc-muted);
}
@media(max-width:760px){
  body.attendee-page .attendee-hero-with-actions{
    flex-direction:column;
  }
  body.attendee-page .attendee-hero-actions{
    min-width:0;
    width:100%;
    align-items:flex-start;
    margin-left:0;
  }
  body.attendee-page .attendee-identity-right{
    text-align:left;
  }
}


/* VC-5Y — AWS-aware Ops dashboard */
.ops-debug{
  margin-top:12px;
  border:1px solid var(--vc-border);
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
}
.ops-debug summary{
  cursor:pointer;
  font-weight:700;
  color:var(--vc-primary);
}
.ops-checklist{
  list-style:none;
  padding-left:0;
  margin:8px 0 0;
}
.ops-checklist li{
  position:relative;
  padding:9px 10px 9px 34px;
  border:1px solid var(--vc-border);
  border-radius:12px;
  margin-bottom:8px;
  background:#fff;
}
.ops-checklist li::before{
  position:absolute;
  left:11px;
  top:9px;
  font-weight:800;
}
.ops-checklist li.done{
  border-color:rgba(15,118,110,.24);
  background:rgba(15,118,110,.045);
}
.ops-checklist li.done::before{
  content:"✓";
  color:#0f766e;
}
.ops-checklist li.todo{
  border-color:rgba(245,158,11,.28);
  background:rgba(245,158,11,.045);
}
.ops-checklist li.todo::before{
  content:"•";
  color:#f59e0b;
}


/* VC-5Z — production cleanup polish */
.ops-status-grid .card h2{
  color:var(--vc-ink);
}
.progress-bar,
.upload-progress,
.hero-accent,
.slide-console-highlight{
  accent-color:var(--vc-accent);
}


/* VC-6B — UI font/grid polish */
.grid.two > *{
  min-width:0;
}


/* VC-6C — Events page cleanup */
.events-intro-card{
  padding-bottom:18px;
}
.event-create-drawer{
  padding:0;
  overflow:hidden;
}
.event-create-drawer[open]{
  padding-bottom:22px;
}
.event-create-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
  padding:22px 24px;
  list-style:none;
}
.event-create-summary::-webkit-details-marker{display:none}
.event-create-summary strong{
  display:block;
  color:var(--vc-ink);
  font-size:20px;
  letter-spacing:-.02em;
}
.event-create-summary small{
  display:block;
  color:var(--vc-muted);
  margin-top:4px;
  font-size:13px;
  font-weight:600;
}
.event-create-panels{
  display:grid;
  gap:16px;
  padding:0 22px;
}
.subcard{
  background:#fff;
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:20px;
  box-shadow:0 10px 28px rgba(18,63,109,.06);
}
.table .event-actions-cell{
  min-width:280px;
}
.table .event-actions{
  gap:6px;
  margin-bottom:6px;
}
.table .event-actions .btn,
.table .event-status-controls button,
.event-more-actions summary{
  font-size:12px;
  line-height:1;
  padding:8px 10px;
  border-radius:12px;
  box-shadow:none;
}
.event-actions-primary .btn{
  font-weight:850;
}
.event-more-actions{
  margin:4px 0 6px;
}
.event-more-actions summary{
  display:inline-flex;
  align-items:center;
  background:#F6F9FC;
  color:var(--vc-primary);
  border:1px solid var(--vc-border);
  font-weight:850;
  cursor:pointer;
}
.event-actions-secondary{
  margin-top:6px;
}
.event-actions-secondary .btn{
  background:#F7FAFD;
}
.event-status-controls.compact{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  margin-top:8px;
}
.event-status-controls.compact .status-label{
  color:var(--vc-muted);
  font-size:12px;
  font-weight:850;
  margin-right:2px;
}
.event-status-controls.compact button{
  background:#FFF7E8;
  color:#8A5200;
  border:0;
}
@media(max-width:900px){
  .event-create-summary{
    align-items:flex-start;
    flex-direction:column;
  }
  .table .event-actions-cell{
    min-width:220px;
  }
}


/* VC-6D — Media Suite foundation */
.media-settings-card{
  margin-top:22px;
  padding:20px;
  border:1px solid var(--vc-border);
  border-radius:18px;
  background:#FBFDFF;
}
.media-feature-grid .toggle-card.muted{
  opacity:.58;
  background:#F7F9FC;
}
.media-rule-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--vc-border);
  color:var(--vc-muted);
  background:#fff;
  font-weight:700;
}
.media-rule-note.active{
  border-color:rgba(245,158,11,.36);
  background:rgba(245,158,11,.07);
  color:#8A5200;
}
.media-command-panel{
  border-top:6px solid var(--vc-accent);
}
.media-command-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
}
.media-mode-badge{
  border-radius:999px;
  background:#EEF4FA;
  color:var(--vc-primary);
  padding:10px 13px;
  font-weight:900;
  white-space:nowrap;
}
@media(max-width:760px){
  .media-command-header{
    flex-direction:column;
  }
  .media-mode-badge{
    white-space:normal;
  }
}


/* VC-6E — Replay MVP */
.replay-shell{
  max-width:1300px;
  margin:0 auto;
  padding:20px;
}
.replay-hero{
  text-align:center;
  padding:28px 18px 16px;
}
.replay-hero h1{
  font-size:clamp(28px,4vw,48px);
  margin:10px 0 6px;
}
.replay-player-card{
  padding:14px;
}
.replay-stage .companion-stage{
  aspect-ratio:16/9;
  min-height:360px;
}
.replay-controls{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(220px,360px);
  gap:16px;
  align-items:center;
  margin-top:14px;
}
.replay-controls audio{
  width:100%;
}
.replay-meta{
  border:1px solid var(--vc-border);
  border-radius:16px;
  padding:12px 14px;
  background:#FBFDFF;
}
.replay-meta strong{
  display:block;
  color:var(--vc-ink);
}
.replay-meta span{
  color:var(--vc-muted);
  font-size:13px;
}
.replay-chapter-list{
  display:grid;
  gap:8px;
}
.replay-chapter-list button{
  text-align:left;
  border:1px solid var(--vc-border);
  border-radius:14px;
  padding:11px 12px;
  background:#fff;
  cursor:pointer;
}
.replay-chapter-list button strong{
  display:block;
  color:var(--vc-primary);
}
.replay-chapter-list button span{
  color:var(--vc-muted);
  font-size:12px;
}
.replay-transcript{
  max-height:420px;
  overflow:auto;
}
.replay-transcript p{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid var(--vc-border);
  margin:0;
}
.replay-transcript span{
  color:var(--vc-primary);
  font-weight:900;
}
.replay-admin-upload form{
  border:1px solid var(--vc-border);
  border-radius:18px;
  padding:16px;
  background:#FBFDFF;
}
@media(max-width:800px){
  .replay-controls,
  .replay-below-grid{
    grid-template-columns:1fr;
  }
}


/* VC-6F — AI Replay Intelligence */
.replay-ai-summary{
  border:1px solid var(--vc-border);
  border-radius:18px;
  background:#FBFDFF;
  padding:16px;
}
.replay-ai-summary h3{
  margin:8px 0;
  color:var(--vc-ink);
}
.replay-ai-summary ul{
  margin:10px 0 0;
  padding-left:20px;
  color:var(--vc-muted);
}
.replay-ai-summary li{
  margin-bottom:6px;
}


/* VC-6G — Presenter WebCall host audio */
.presenter-audio-card{
  border-top:6px solid var(--vc-accent);
}
.presenter-audio-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.presenter-audio-header h2{
  margin-top:8px;
}
.webcall-settings-panel{
  margin-top:14px;
  border:1px solid var(--vc-border);
  border-radius:16px;
  background:#FBFDFF;
  padding:14px;
}
.presenter-audio-card audio{
  width:100%;
  margin-top:10px;
}
@media(max-width:760px){
  .presenter-audio-header{
    flex-direction:column;
  }
}


/* VC-6H — Attendee audio + Replay AI reliability polish */
.event-actions-primary a[href*="/replay"]{
  background:#FFF1EA;
  color:var(--vc-button);
}
.media-settings-card form + form{
  margin-top:8px;
}


/* VC-6I — Report recording exports */
.report-export-card{
  border-top:6px solid var(--vc-accent);
}
.report-export-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:12px;
}
.report-export-header h2{
  margin-top:8px;
}
@media(max-width:760px){
  .report-export-header{
    flex-direction:column;
  }
}


/* VC-6J — Replay captions / transcript polish */
.replay-admin-upload form[method="post"]{
  margin-bottom:10px;
}
.event-actions-secondary a[href*="/replay"]{
  display:none;
}
