:root{color-scheme:dark;--bg:#0d0d17;--panel:#191725;--stroke:#302a45;--text:#f1eef9;--muted:#a49eb6;--accent:#a68af7;--accent2:#6c46d4;--danger:#ee919a;--green:#8ce7bb;font-family:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 60% 38% at 85% 0,rgba(110,64,190,.22),transparent),var(--bg);color:var(--text);min-height:100vh}button,input{font:inherit}button,a{transition:background .15s,border-color .15s}button{cursor:pointer;border:0}a{color:var(--accent)}.site-header{height:76px;border-bottom:1px solid var(--stroke);display:flex;justify-content:space-between;align-items:center;padding:0 max(22px,calc((100vw - 1160px)/2))}.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-.02em;font-size:22px}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#ae93ff,#6547bb);color:white}.tag{border:1px solid #4c3b72;background:rgba(145,94,236,.11);border-radius:999px;padding:5px 10px;color:#cbb5ff;font-size:12px;font-weight:550;white-space:nowrap}.right-label,.muted,footer,.note{color:var(--muted)}.right-label{font-size:13px}.shell{max-width:1160px;margin:0 auto;padding:48px 22px 80px}.intro{margin-bottom:28px;max-width:750px}.eyebrow{color:#c1adff;font-size:12px;font-weight:750;letter-spacing:.14em;margin-bottom:9px}h1{font-size:clamp(29px,4vw,43px);letter-spacing:-.035em;margin:0 0 13px}h2{font-size:23px;margin:0 0 10px;letter-spacing:-.02em}h3{font-size:19px;margin:0 0 14px}p{line-height:1.58;color:var(--muted);margin:6px 0 20px}.panel{border:1px solid var(--stroke);border-radius:20px;background:var(--panel);padding:27px;box-shadow:0 18px 60px rgba(0,0,0,.12)}.narrow{max-width:530px}.form{display:flex;flex-direction:column;gap:18px}.form label{font-size:14px;color:#ded9e9;font-weight:550;display:flex;flex-direction:column;gap:8px}.form input:not([type=checkbox]){width:100%;background:#0e0d18;color:var(--text);outline:0;border:1px solid #3b3551;border-radius:11px;padding:13px 14px}.form input:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #b6a0ff;outline-offset:3px}.form input::placeholder{color:#756d86}.primary{background:linear-gradient(110deg,#9374ef,#7652dd);color:white;font-weight:700;padding:13px 19px;border-radius:11px}.primary:hover{background:#a98cf7}.secondary{border:1px solid #514466;background:transparent;color:#e4dcfa;padding:11px 16px;border-radius:11px}.secondary:hover{background:#302642}.alert{border:1px solid var(--danger);border-radius:11px;background:#371d2d;padding:13px 16px;margin:15px 0 20px;color:#ffccd2}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:5px 0 20px}.toolbar-actions{display:flex;align-items:center;gap:14px}.identity{font-size:13px;color:#bdadd7}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.note{border-left:3px solid #6b58a7;padding-left:12px;font-size:13px;margin-top:20px}.metric{display:flex;align-items:baseline;gap:9px;margin:28px 0}.metric strong{font-size:42px;font-weight:750;color:var(--text)}.metric span{color:var(--muted);font-size:13px}.buttonlink{display:inline-block;text-decoration:none;font-size:14px}.events-panel{margin-top:22px}.section-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.section-title h3{margin:0}.event{border:1px solid #373049;border-radius:13px;padding:16px 19px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:20px}.event h4{margin:0 0 7px;font-size:16px}.event-sub{color:var(--muted);font-size:12px}.event-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.event-actions button,.event-actions a{font-size:12px;text-decoration:none}.event-actions button{padding:10px 12px}.badge-status{display:inline-block;border:1px solid #665475;border-radius:40px;padding:5px 10px;font-size:12px;color:#cbb5ff}.badge-status.ended{color:#9993a5;border-color:#524e59}footer{max-width:1160px;margin:auto;padding:25px 22px 40px;font-size:12px}.viewer-shell{max-width:950px}.viewer-shell .narrow{margin:20px auto}.two-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form label.check{display:flex;flex-direction:row;gap:10px;font-size:13px;font-weight:400;line-height:1.5}.check input{width:17px;height:17px;accent-color:#a283fa;flex-shrink:0}.room{margin:10px auto}.video-placeholder{min-height:430px;border:1px solid #403857;border-radius:24px;background:radial-gradient(ellipse at center,#282039,#110f1a 75%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.on-air-circle{color:#b7a1ff;font-size:45px;margin-bottom:15px}.status-text{font-size:21px;color:#eae2f8}.small-note{color:#9e94b3;margin-top:14px;font-size:13px}.centered{text-align:center;margin-top:22px}[hidden]{display:none!important}@media(max-width:680px){.site-header{padding:0 16px}.site-header .tag,.right-label{display:none}.shell{padding:34px 16px 60px}.grid{grid-template-columns:1fr}.panel{padding:20px}.toolbar{align-items:start;flex-direction:column}.toolbar-actions{width:100%;justify-content:space-between}.event{align-items:start;flex-direction:column}.event-actions{justify-content:start}.two-inputs{grid-template-columns:1fr}.video-placeholder{min-height:320px}}

/* v0.3 staff administration */
.team-columns{display:grid;grid-template-columns:1fr 1fr;gap:26px}.team-columns h4{margin:6px 0}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;margin:8px 0 16px}.permission-item{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:9px!important;font-size:13px!important;font-weight:400!important}.permission-item input{margin:2px 0 0;accent-color:#9d84ed}.form select,.invite-result input{width:100%;background:#0e0d18;color:var(--text);border:1px solid #3b3551;border-radius:11px;padding:12px}.invite-result{padding:16px;border:1px solid #6c4ead;margin-top:20px;border-radius:14px;display:flex;flex-direction:column;gap:10px}.invite-result label{display:flex;flex-direction:column;gap:5px;font-size:13px}.team-item{border:1px solid #373049;border-radius:12px;padding:13px;margin:9px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.staff-card{border:1px solid #373049;border-radius:14px;padding:19px;margin:14px 0}.staff-card h4{margin:0 0 13px}.row-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.row-actions select{padding:10px;background:#100e19;color:var(--text);border:1px solid #514466;border-radius:10px}.team-subheading{margin-top:32px}.team-item button,.row-actions button{font-size:13px}@media(max-width:780px){.team-columns{grid-template-columns:1fr}.permissions-grid{grid-template-columns:1fr}.team-item{align-items:start;flex-direction:column}}

/* v0.6 local LiveKit media studio */
.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.studio-grid .panel{min-width:0}.video-player{width:100%;max-height:430px;object-fit:contain;background:#090811;border:1px solid #4c4265;border-radius:12px;aspect-ratio:16/9}.live-area{width:100%;margin-top:18px}.live-area:empty{display:none}.room .video-placeholder:has(.live-area:not(:empty)){padding:20px}.room .live-track{max-height:520px}@media(max-width:780px){.studio-grid{grid-template-columns:1fr}}
.volume-label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.volume-label input{accent-color:#9878e8;max-width:100px}

/* ComExpo 0.7 chat */
.chat-panel{margin:24px 0 0;min-width:0}.chat-title{display:flex;align-items:center;gap:12px;justify-content:space-between}.chat-title h2{margin:0}.chat-messages{min-height:160px;max-height:360px;overflow-y:auto;background:#0f0d18;border:1px solid var(--stroke);border-radius:12px;padding:12px;margin:12px 0;overscroll-behavior:contain;text-align:left}.chat-entry{border-bottom:1px solid #2e2842;padding:10px 4px;overflow-wrap:anywhere}.chat-entry:last-child{border-bottom:0}.chat-head{font-size:12px;color:#bbade0;margin-bottom:6px}.chat-message{font-size:14px;color:#f1eef9;white-space:pre-wrap}.chat-pending{background:#262037}.chat-tag,.chat-rule{display:block;font-size:11px;color:#bbadcc;margin:5px 0}.chat-rule{color:#ffb9ae}.chat-form{display:flex;gap:8px}.chat-form input{flex:1;min-width:0;background:#100e19;color:var(--text);border:1px solid var(--stroke);border-radius:10px;padding:12px}.chat-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.chat-actions button{font-size:11px;padding:7px 9px}.chat-hint{margin:7px 0!important;font-size:12px}.chat-admin{border-top:1px solid var(--stroke);padding-top:16px;margin-top:20px}.chat-admin select,.chat-admin textarea{background:#100e19;border:1px solid var(--stroke);border-radius:8px;color:var(--text);padding:10px}.chat-admin textarea{width:100%;display:block;margin:14px 0}.chat-admin label{font-size:13px;display:flex;gap:8px;align-items:center}.sr-label{position:absolute;left:-9999px}
@media(max-width:680px){.chat-form{flex-direction:column}.chat-admin .row-actions{flex-direction:column;align-items:stretch}}

/* ComExpo 0.8 safe attachments / detachable chat */
.chat-upload{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px 0;border-top:1px solid rgba(150,140,180,.24)}
.chat-upload[hidden]{display:none}
.chat-upload label{font-size:.86rem;flex:1;min-width:230px}
.chat-upload input{max-width:100%;display:block;margin-top:6px}
.chat-file{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:8px;padding:8px 12px;border:1px solid #72669a;border-radius:10px;color:#d9d1ff;word-break:break-word}
.chat-thumbnail{max-width:170px;max-height:140px;object-fit:contain;border-radius:7px}
@media(max-width:500px){.chat-thumbnail{max-width:120px}}

/* v0.8.2 staff password recovery */
.staff-password-reset{border-top:1px solid var(--stroke);padding-top:12px;margin-top:15px}
.staff-password-reset form{margin:12px 0 0;max-width:460px}

/* v0.9 — private two-source scene compositor */
.scene-panel{margin-top:24px}
.scene-panel h2{margin-bottom:12px}
.scene-source-rows{display:grid;grid-template-columns:auto minmax(100px,1fr) auto minmax(100px,1fr);gap:12px;align-items:center;margin:16px 0 21px}
.scene-source-rows span{overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
.stage-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:10px 0 18px}
.stage-controls label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted)}
.stage-controls select{background:#120f1d;color:var(--text);border:1px solid #514466;padding:9px 10px;border-radius:9px;max-width:100%}
.stage-controls label.scene-check{flex-direction:row;align-items:center;color:var(--text);gap:9px}
.stage-controls input[type=range]{accent-color:var(--accent)}
.scene-preview-wrap{max-width:860px;margin:auto;background:#06050d;border:1px solid #453a60;border-radius:15px;overflow:hidden;display:flex;justify-content:center}
#sceneCanvas{display:block;max-width:100%;max-height:520px;width:auto;height:auto;object-fit:contain;touch-action:none;cursor:grab}
#sceneCanvas:active{cursor:grabbing}
.scene-caption{font-size:12px;margin-top:10px}
@media(max-width:760px){.scene-source-rows{grid-template-columns:auto minmax(0,1fr)}.stage-controls label{max-width:100%}}

/* ========================================================================== 
   ComExpo CHECK87.173 — dashboard visual polish
   CSS only. Preserves the cloud studio, viewer, streaming and account logic.
   #dashboard intentionally outranks the styles injected by app.js at runtime.
   ========================================================================== */

:root {
  --cx-173-line: #3b3652;
  --cx-173-panel: #1b1929;
  --cx-173-elevated: #242137;
  --cx-173-ink: #f5f1ff;
  --cx-173-subtle: #b7afc9;
  --cx-173-purple: #ac90ff;
  --cx-173-purple-deep: #8060e4;
  --cx-173-danger: #f4a4af;
}

/* Keep the visual identity consistent between log-in and the dashboard. */
.site-header {
  background: rgba(17, 15, 27, .92);
  box-shadow: 0 5px 24px rgba(0, 0, 0, .12);
}
.site-header .brand-mark {
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 6px 18px rgba(126, 90, 210, .21);
}

/* Page hierarchy and panel surfaces. */
#dashboard { min-width: 0; }
#dashboard .panel {
  min-width: 0;
  border: 1px solid var(--cx-173-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(40, 35, 61, .65), rgba(25, 23, 37, .94) 54%);
  box-shadow: 0 12px 34px rgba(4, 3, 12, .16);
}
#dashboard .panel h2,
#dashboard .panel h3 { color: var(--cx-173-ink); letter-spacing: -.025em; }
#dashboard .section-title { flex-wrap: wrap; gap: 10px; }
#dashboard .section-title h3 { margin: 0; }
#dashboard .toolbar { gap: 16px; }
#dashboard .identity { overflow-wrap: anywhere; color: #cfc5ea; }
#dashboard .metric { margin: 22px 0; }
#dashboard .metric strong { font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
#dashboard .metric span { color: var(--cx-173-subtle); }
#dashboard .note { border-left-color: #9278e8; }

/* Buttons remain legible against the dark UI. */
#dashboard button,
#dashboard .event-actions a { min-height: 39px; line-height: 1.25; }
#dashboard button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
#dashboard .primary {
  border: 1px solid rgba(195, 171, 255, .32);
  background: linear-gradient(125deg, #9b7df4, #7954d9);
  box-shadow: 0 4px 14px rgba(102, 69, 190, .15);
  color: #fff;
}
#dashboard .primary:hover:not(:disabled) { background: linear-gradient(125deg, #aa8cfc, #8662e8); }
#dashboard .secondary,
#dashboard a.secondary {
  border: 1px solid #52486e;
  background: #272238;
  color: #eee8ff;
}
#dashboard .secondary:hover:not(:disabled),
#dashboard a.secondary:hover { border-color: #8772bb; background: #332a4b; }
#dashboard button:focus-visible,
#dashboard a:focus-visible,
#dashboard input:focus-visible,
#dashboard select:focus-visible { outline: 2px solid #cebdff; outline-offset: 3px; }

/* Archive tabs. Higher specificity than the injected .cx-* styles in app.js. */
#dashboard .cx-view-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 5px;
  margin: 18px 0 16px;
  background: #13121f;
  border: 1px solid #383149;
  border-radius: 15px;
  width: fit-content;
  max-width: 100%;
}
#dashboard .cx-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #c6bed9;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: none;
  white-space: normal;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
#dashboard .cx-view-tab:hover:not([aria-pressed="true"]) {
  background: #262137;
  color: #f7f3ff;
}
#dashboard .cx-view-tab[aria-pressed="true"] {
  background: linear-gradient(125deg, #7859d9, #6748c0);
  border-color: #b095ff;
  color: #fff;
  box-shadow: 0 3px 12px rgba(97, 69, 178, .24);
}
#dashboard .cx-view-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: #3a3350;
  color: #e7defa;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#dashboard .cx-view-tab[aria-pressed="true"] .cx-view-count {
  background: rgba(255, 255, 255, .19);
  color: #fff;
}
#dashboard .cx-view-note {
  margin: 4px 0 15px;
  font-size: 13px;
  color: var(--cx-173-subtle);
  opacity: 1;
}
#dashboard .cx-empty {
  padding: 25px 19px;
  margin: 8px 0 0;
  border: 1px dashed #5a4a77;
  border-radius: 14px;
  background: rgba(141, 117, 207, .06);
  color: #c8bedc;
  opacity: 1;
  line-height: 1.55;
}

/* Stream cards: title, state, metadata, compact actions. */
#dashboard .event {
  min-width: 0;
  padding: 20px;
  margin-top: 11px;
  border: 1px solid #3a3450;
  border-radius: 15px;
  background: rgba(17, 16, 28, .45);
  transition: border-color .15s ease, background .15s ease;
}
#dashboard .event:hover { border-color: #61527f; background: rgba(36, 31, 55, .68); }
#dashboard .event > :first-child { flex: 1 1 225px; min-width: 0; }
#dashboard .event h4 { margin: 0 0 7px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
#dashboard .event-sub { color: var(--cx-173-subtle); font-size: 12px; }
#dashboard .cx-item-detail { margin-top: 11px; gap: 9px; }
#dashboard .badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid #66557d;
  border-radius: 999px;
  padding: 5px 10px;
  background: #2c2441;
  color: #d8c6ff;
  font-size: 12px;
  font-weight: 600;
}
#dashboard .badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
#dashboard .badge-status.live { border-color: #366c5b; background: #17372f; color: #96ebca; }
#dashboard .badge-status.paused { border-color: #79613d; background: #382b1f; color: #f0c388; }
#dashboard .badge-status.ended { border-color: #4a455c; background: #252333; color: #b5aec4; }
#dashboard .event-actions { flex: 1 1 270px; min-width: 0; gap: 8px; }
#dashboard .event-actions button,
#dashboard .event-actions a {
  padding: 10px 12px;
  font-size: 12px;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
}
#dashboard .cx-archived-card { opacity: 1; }
#dashboard .cx-archived-card:hover { border-color: #544b68; }

/* Invite list and staff cards. */
#dashboard .team-columns { gap: 22px; }
#dashboard .team-item,
#dashboard .staff-card {
  border: 1px solid #3a3450;
  background: rgba(17, 16, 28, .45);
  border-radius: 15px;
}
#dashboard .team-item { padding: 15px 16px; margin: 10px 0; line-height: 1.5; overflow-wrap: anywhere; }
#dashboard .team-item > :first-child { flex: 1 1 240px; min-width: 0; }
#dashboard .team-item .row-actions { margin: 0; }
#dashboard .staff-card { padding: 21px; margin: 12px 0; }
#dashboard .staff-card h4 { margin: 0 0 15px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#dashboard .row-actions { align-items: center; gap: 8px; }
#dashboard .row-actions select,
#dashboard .form select {
  max-width: 100%;
  border: 1px solid #514666;
  border-radius: 10px;
  background: #191626;
  color: var(--cx-173-ink);
  padding: 11px 12px;
}
#dashboard .permissions-grid { gap: 9px 13px; margin: 15px 0 17px; }
#dashboard .permission-item {
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #383249;
  border-radius: 10px;
  background: rgba(29, 26, 44, .65);
  font-size: 12px !important;
  line-height: 1.4;
  cursor: pointer;
}
#dashboard .permission-item:has(input:checked) { border-color: #5f5089; background: rgba(110, 85, 180, .13); }
#dashboard .permission-item input { flex-shrink: 0; accent-color: var(--cx-173-purple); }
#dashboard .permission-item:has(input:disabled) { opacity: .55; cursor: default; }
#dashboard .staff-password-reset { border-top-color: #3a3450; }
#dashboard .staff-password-reset form { padding-top: 7px; }
#dashboard .form input:not([type="checkbox"]) { border-color: #514666; background: #12111c; }

/* Destructive actions never look like primary actions. app.js uses !important. */
#dashboard .cx-danger,
#dashboard button.cx-danger {
  color: #ffd6db !important;
  border: 1px solid #95535d !important;
  background: #40222d !important;
  box-shadow: none !important;
  font-weight: 650;
}
#dashboard .cx-danger:hover:not(:disabled) {
  border-color: #d78690 !important;
  background: #582a38 !important;
}
#dashboard .cx-danger:focus-visible { outline-color: #f3a6b0; }

@media (max-width: 900px) {
  #dashboard .event { align-items: stretch; flex-direction: column; }
  #dashboard .event-actions { flex: none; justify-content: flex-start; }
}
@media (max-width: 680px) {
  #dashboard .panel { padding: 20px 17px; border-radius: 17px; }
  #dashboard .cx-view-tabs { width: 100%; }
  #dashboard .cx-view-tab { flex: 1 1 135px; padding: 10px 9px; }
  #dashboard .team-columns { grid-template-columns: minmax(0, 1fr); }
  #dashboard .event { padding: 16px; }
  #dashboard .event-actions { width: 100%; gap: 7px; }
  #dashboard .event-actions a,
  #dashboard .event-actions button { flex: 1 1 145px; }
  #dashboard .staff-card { padding: 17px; }
  #dashboard .team-item { align-items: stretch; }
  #dashboard .team-item .row-actions { justify-content: flex-start; }
  #dashboard .permissions-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #dashboard .event,
  #dashboard .cx-view-tab { transition: none; }
}

/* CHECK87.240 / 241: scoped polish of the streaming studio. Other pages unchanged. */
.ce-studio-page { background: radial-gradient(ellipse 75% 44% at 87% 0,rgba(115,75,206,.14),transparent), #0d0c17; }
.ce-studio-header { height:68px; background:rgba(16,14,27,.88); }
.ce-studio-header .brand { font-size:20px; }
.ce-studio-header > a { text-decoration:none; font-size:13px; color:#c9b6fa; }
.ce-studio-header > a:hover { color:#f1eafe; }
.ce-studio { padding-top:34px; }
.ce-studio .ce-page-intro { margin-bottom:16px; }
.ce-studio .ce-page-intro h1 { font-size:clamp(29px,3.5vw,38px); margin:0 0 8px; }
.ce-studio .ce-lead { max-width:720px; margin:0; color:#b5aacb; font-size:14px; line-height:1.6; }
.ce-studio .eyebrow,.ce-studio .ce-kicker { color:#bca8f6; font-size:11px; font-weight:750; letter-spacing:.12em; }
.ce-studio .ce-kicker { margin-bottom:6px; }
.ce-studio .panel { background:linear-gradient(155deg,rgba(33,28,51,.97),rgba(24,21,37,.98)); border:1px solid #383047; border-radius:17px; box-shadow:0 14px 35px rgba(0,0,0,.14); }
.ce-studio .panel h2 { font-size:21px; line-height:1.3; }
.ce-studio .ce-panel-head { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:17px; }
.ce-studio .ce-panel-head h2 { margin:0; }
.ce-studio .ce-mini-badge { padding:7px 10px; border:1px solid #4c4266; border-radius:999px; color:#d2c4f2; font-size:11px; background:rgba(155,122,228,.09); }
.ce-studio .ce-live-pill { max-width:100%; display:inline-flex; align-items:center; gap:8px; border:1px solid #54466a; background:#211a31; color:#ded0f9; border-radius:999px; padding:7px 11px; font-size:12px; overflow-wrap:anywhere; }
.ce-studio .ce-status-dot { flex:none; width:7px; height:7px; border-radius:100%; background:#b4a4d4; }
.ce-studio .ce-control-card .row-actions { gap:8px; }
.ce-studio .ce-control-card .row-actions button { flex:0 1 auto; }
.ce-studio .ce-control-card #goLive { min-width:160px; }
.ce-studio .ce-end-button { border-color:#744451; color:#f1c0cb; }
.ce-studio .ce-end-button:hover { background:#452734; }
.ce-studio .ce-state-note { margin-top:9px; margin-bottom:12px; color:#afa5c4; font-size:12px; }
.ce-studio .ce-disclosure,.ce-studio .ce-help { border:1px solid #423955; background:rgba(10,9,20,.26); border-radius:12px; margin:13px 0 17px; }
.ce-studio .ce-disclosure > summary,.ce-studio .ce-help > summary { cursor:pointer; padding:11px 14px; color:#d7c7f5; font-weight:650; font-size:13px; list-style-position:inside; }
.ce-studio .ce-disclosure[open] > summary,.ce-studio .ce-help[open] > summary { border-bottom:1px solid #423955; }
.ce-studio .ce-disclosure > .row-actions,.ce-studio .ce-disclosure > p,.ce-studio .ce-help > p,.ce-studio .ce-help > ol { margin:13px 15px; }
.ce-studio .ce-help p,.ce-studio .ce-help li { font-size:13px; line-height:1.65; color:#bfb4d3; }
.ce-studio .ce-help ol { padding-left:27px; }
.ce-studio .ce-start-help { max-width:760px; margin:0 0 24px; }
.ce-studio .ce-operator-help { margin-top:17px; margin-bottom:0; }
.ce-studio .ce-small-help { margin-top:14px; margin-bottom:0; }
.ce-studio .ce-disclosure .row-actions label { min-width:160px; font-size:12px; color:#cbc0dc; }
.ce-studio .ce-disclosure select,.ce-studio .ce-disclosure input[type=file] { max-width:100%; }
.ce-studio .row-actions { gap:9px; }
.ce-studio .row-actions button { min-height:37px; }
.ce-studio .scene-panel { margin-top:22px; }
.ce-studio #pdfDeckPanel { background:#161323; border-color:#453955; border-radius:14px; }
.ce-studio #pdfDeckPanel .note { margin:10px 0 14px; }
.ce-studio .ce-record-warning { border:1px solid #776042; border-radius:10px; padding:11px 13px; background:#282116; color:#e8d4a7; font-size:12px; line-height:1.55; }
.ce-studio .ce-record-warning strong { color:#ffe0a9; }
.ce-studio .scene-preview-wrap { border-color:#4b3c69; }
.ce-studio #comexpoMediaDiagnostics { background:#191527 !important; border:1px solid #4b3b68 !important; border-radius:12px !important; padding:12px 16px !important; margin:0 0 22px !important; }
.ce-studio #comexpoMediaDiagnostics > summary { color:#b9a8df; font-size:12px; }
.ce-studio #comexpoMediaDiagnostics[open] { border-color:#7e658f !important; }
.ce-studio #comexpoMediaDiagnostics pre { max-height:280px; overflow:auto; }
.ce-studio .chat-panel { margin-top:23px; }
.ce-studio .chat-panel h2 { font-size:21px; }
@media(max-width:900px) { .ce-studio .studio-grid { grid-template-columns:minmax(0,1fr); } .ce-studio .ce-panel-head { gap:12px; } }
@media(max-width:680px) { .ce-studio { padding-top:23px; } .ce-studio .panel { padding:18px; } .ce-studio .ce-mini-badge { display:none; } .ce-studio .ce-control-card .row-actions button { flex:1 1 145px; } .ce-studio .scene-source-rows { grid-template-columns:auto minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .ce-studio * { scroll-behavior:auto; } }

/* CHECK87.294 BUG-03: PDF/PPTX presentation preview must never enlarge the studio layout.
   Canvas pixel dimensions remain untouched so broadcast resolution is unchanged. */
.ce-studio .studio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ce-studio .scene-panel,.ce-studio #pdfDeckPanel { min-width:0; max-width:100%; }
.ce-studio #pdfPageCanvas { box-sizing:border-box; display:block; width:auto !important;
  height:auto !important; max-width:100% !important; max-height:320px !important;
  object-fit:contain; }
.ce-studio #pdfDeckPanel .row-actions { min-width:0; }
.ce-studio #pdfDeckPanel label { min-width:0; max-width:100%; }
.ce-studio #pdfDeckPanel input[type=file] { max-width:100%; }
@media(max-width:900px){.ce-studio .studio-grid { grid-template-columns:minmax(0,1fr); }}

/* EXAM-01: focusable contextual help next to each permission checkbox. */
.cx-permission-hint { display:inline-flex;align-items:center;justify-content:center;
  width:19px;height:19px;margin-left:8px;border:1px solid currentColor;
  border-radius:50%;font-size:12px;font-weight:700;opacity:.82;cursor:help;
  flex-shrink:0;vertical-align:middle; }
.cx-permission-hint:hover,.cx-permission-hint:focus-visible {
  outline:2px solid currentColor;outline-offset:2px;opacity:1;
}
