.top { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.top select { min-height: 40px; }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main { padding: 24px 16px; }
.narrow { max-width: 560px; margin: 0 auto; }
.narrow input { width: 100%; }
ol { padding-left: 24px; }
ol li + li { margin-top: 8px; }
.preview { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--soft); border-radius: 8px; overflow: hidden; }
.preview video, .preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); object-fit: cover; }
.bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 150ms var(--ease); }
.warn { position: sticky; top: 0; z-index: 5; padding: 12px 16px; border-bottom: 2px solid var(--alert); color: var(--alert); background: var(--bg); font-weight: 700; }
.exam { max-width: 820px; margin: 0 auto; }
.questions { padding-left: 24px; }
.questions li { margin-bottom: 24px; }
.questions textarea { width: 100%; }
.cal-layer { position: fixed; inset: 0; z-index: 20; background: var(--bg); }
.cal-layer i { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--line); transition: left 350ms var(--ease), top 350ms var(--ease); }
.debug { position: fixed; right: 8px; bottom: 8px; z-index: 30; margin: 0; padding: 8px 12px; background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 8px; font: 14px/1.4 ui-monospace, monospace; max-width: 360px; white-space: pre-wrap; }
.gaze-pt { position: fixed; z-index: 25; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid var(--ink); border-radius: 50%; pointer-events: none; }
/* 알림창: K-SMART 요구 문구를 띄우는 모달. 경보색 테두리 */
.dlg { border: 1px solid var(--line); border-radius: 8px; padding: 24px; max-width: 480px; width: calc(100% - 32px); color: var(--ink); }
.dlg.alert { border: 2px solid var(--alert); }
.dlg.alert h2 { color: var(--alert); }
.dlg::backdrop { background: rgba(23, 23, 23, 0.45); }
.dlg p { font-size: 18px; line-height: 1.55; }
.paused { position: fixed; inset: 0; z-index: 40; background: rgba(250, 250, 250, 0.97); display: grid; place-items: center; padding: 16px; }
.paused .card { max-width: 520px; border: 2px solid var(--ink); }
.live-note { position: fixed; left: 16px; bottom: 16px; z-index: 30; margin: 0; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--bg); font-size: 14px; }
