.st-preview, .st-screen-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; background: #161719; }
.st-preview { object-fit: contain; touch-action: none; cursor: move; }
.lv-tb { font-size: 16px; }
.st-preview[hidden], .st-screen-video[hidden], .st-panel[hidden] { display: none !important; }
.st-panel { position: fixed; top: 16px; right: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); z-index: 100; overflow-y: auto; padding: 20px; background: #212226; color: #F4F4F1; border: 1px solid #74757B; border-radius: 16px; box-shadow: 0 16px 64px #0008; font: 16px/1.5 Pretendard, sans-serif; }
.st-panel [hidden], .st-camera [hidden] { display: none !important; }
@media (min-width: 768px) { .st-editing .lv-stage { grid-template-columns: minmax(0,1fr) 450px !important; } .st-editing #stageSide { visibility: hidden; } }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-head h2 { font-size: 22px; margin: 0; }
.st-panel button, .st-camera button, .st-screen-video button { border: 1px solid #74757B; background: #2B2C31; color: #F4F4F1; border-radius: 10px; padding: 10px 12px; min-height: 44px; font: 700 16px/1.4 Pretendard, sans-serif; cursor: pointer; }
.st-panel button { width: 100%; margin: 5px 0; }
.st-panel .st-head button { width: auto; }
.st-panel button:disabled, .st-camera button:disabled { opacity: .5; cursor: wait; }
.st-panel .st-primary, .st-camera .st-primary { background: #D4FA3C; color: #111; border-color: #D4FA3C; }
.st-panel fieldset { border: 0; border-top: 1px solid #74757B; padding: 16px 0; margin: 18px 0 0; min-width: 0; }
.st-panel legend { font-weight: 800; padding-right: 10px; }
.st-panel label, .st-camera label { display: grid; gap: 6px; margin: 10px 0; font-size: 16px; }
.st-panel input, .st-panel select, .st-camera select { width: 100%; min-width: 0; min-height: 44px; background: #161719; color: #F4F4F1; border: 1px solid #74757B; border-radius: 8px; padding: 8px; font: 16px/1.4 Pretendard, sans-serif; }
.st-panel input:focus-visible, .st-panel select:focus-visible, .st-panel button:focus-visible, .st-preview:focus-visible { outline: 2px solid #D4FA3C; outline-offset: 2px; }
.st-panel .st-check, .st-camera .st-check { display: flex; align-items: flex-start; gap: 10px; }
.st-check input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: #D4FA3C; }
.st-coords, .st-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.st-panel .st-hint { font-size: 16px; color: #B8B9BE; margin: 8px 0; }
.st-status { padding: 12px; border-left: 3px solid #D4FA3C; background: #161719; overflow-wrap: anywhere; }
.st-status.st-error { border-color: #F4F4F1; }
.st-panel a, .st-camera a { color: #D4FA3C; overflow-wrap: anywhere; }
.st-panel canvas[data-phoneqr] { display: block; margin: 12px auto; border-radius: 8px; }
.st-intro { margin: 8px 0 16px; color: #B8B9BE; }
.st-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.st-steps button[aria-current="step"], .st-presets button[aria-pressed="true"] { border-color: #D4FA3C; background: #D4FA3C; color: #111; }
.st-panel h3 { font-size: 20px; line-height: 1.35; margin: 20px 0 8px; }
.st-panel h4 { font-size: 17px; margin: 0 0 8px; }
.st-source { padding: 14px; border: 1px solid #55565C; border-radius: 12px; margin: 14px 0; }
.st-buttonrow, .st-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-buttonrow button { padding: 10px 6px; }
.st-presets span { display: block; font-size: 28px; font-weight: 400; margin-bottom: 4px; }
.st-stepnav { display: flex; gap: 8px; position: sticky; bottom: -20px; padding: 14px 0; background: #212226; border-top: 1px solid #55565C; margin-top: 20px; }
.st-panel .st-exit { background: transparent; font-weight: 400; border: none; color: #B8B9BE; }
.st-instructions { padding-left: 22px; }
.st-instructions li { margin: 8px 0; }
.st-panel input[type="range"] { padding: 0; accent-color: #D4FA3C; cursor: pointer; }
.st-panel output { color: #D4FA3C; font-weight: 800; }
.st-panel summary, .st-camera summary { cursor: pointer; padding: 10px 0; }
.st-screen-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.st-screen-status { position: absolute; left: 5%; right: 5%; top: 40%; margin: 0; padding: 20px; color: #F4F4F1; background: #161719ee; text-align: center; font-size: 20px; }
.st-sound, .st-retry { position: absolute; bottom: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.st-sound { left: 20px; } .st-retry { right: 20px; }
.st-screen-video.st-controls button, .st-screen-video button:focus-visible { opacity: 1; pointer-events: auto; }
.st-camera { width: min(100% - 32px, 720px); margin: 32px auto 100px; display: grid; gap: 14px; font: 16px/1.6 Pretendard, sans-serif; }
.st-camera h1 { font-size: 30px; line-height: 1.2; margin: 0; }
.st-camera video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #212226; border: 1px solid #74757B; border-radius: 16px; }
.st-camera p { margin: 0; }
.st-camera [data-controls] { display: grid; gap: 12px; }
.st-camera .st-linkbutton { display: block; padding: 14px; margin-bottom: 14px; border-radius: 10px; text-align: center; text-decoration: none; font-weight: 800; }
.st-camera-steps { list-style: none; display: grid; gap: 6px; padding: 14px; margin: 0; border: 1px solid #74757B; border-radius: 12px; }
.st-camera [data-authstep], .st-camera [data-connectstep] { font-weight: 700; }
.st-camera [data-address] { overflow-wrap: anywhere; color: #B8B9BE; margin-top: 12px; }
.st-help { border-top: 1px solid #74757B; margin-top: 10px; }
@media (max-width: 767px) { .st-panel { top: 64px; right: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 150px); } }
/* 화면 전환 바 — 관리자 컴퓨터에서 송출 화면을 PPT·카메라·휴대폰 중 하나로 바로 바꾼다 */
.st-switch { position: fixed; left: 16px; bottom: 84px; z-index: 95; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100vw - 32px); padding: 8px; background: #212226f2; border: 1px solid #55565C; border-radius: 16px; box-shadow: 0 10px 30px #0008; font: 16px/1.4 Pretendard, sans-serif; color: #F4F4F1; }
.st-switch[hidden], .st-switch [hidden] { display: none !important; }
.st-switch__label { padding: 0 6px 0 4px; color: #B8B9BE; font-weight: 700; }
.st-switch button { min-height: 44px; padding: 8px 14px; border: 1px solid #74757B; background: #2B2C31; color: #F4F4F1; border-radius: 999px; font: 700 16px/1.2 Pretendard, sans-serif; cursor: pointer; }
.st-switch button[aria-pressed="true"] { background: #D4FA3C; border-color: #D4FA3C; color: #111; }
.st-switch button:disabled { opacity: .45; cursor: not-allowed; }
.st-switch button:focus-visible { outline: 2px solid #D4FA3C; outline-offset: 2px; }
html:fullscreen .st-switch { opacity: 0; transition: opacity .2s; }
html:fullscreen .st-switch:hover, html:fullscreen .st-switch:focus-within { opacity: 1; }

