/* ===================================================================
   교사용 PPT 슬라이드 (16:9) — 단위는 슬라이드 폭 기준 cqw (1cqw = 폭의 1%)
   =================================================================== */
.slide-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.deck-bars { flex: none; }
body:not(.role-teacher) .teacher-only { display: none !important; }

/* ---------------------------------------------- 첫째 줄: 이동과 보기 */
.deck-bar { display: flex; align-items: center; gap: 6px; padding: 6px 12px 8px; border-bottom: 1px solid var(--line); background: var(--pane); position: relative; }
.deck-bar .btn .lbl { margin-left: 4px; }
.s-count { font: 700 13px var(--mono); min-width: 62px; text-align: center; color: var(--muted); }
.s-slider { flex: 0 1 190px; min-width: 90px; height: 18px; margin: 0 2px; accent-color: var(--accent); cursor: pointer; background: transparent; }
.s-slide-title { font-size: 13px; font-weight: 700; color: var(--muted); max-width: 30ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deck-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.deck-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .18s ease-out; }

.timer { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card2); }
.timer .timer-main { font: 700 14px var(--mono); background: none; border: none; color: inherit; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.timer .timer-main:hover { background: var(--card); }
.timer.running #timerText { color: var(--ok); }
.timer.over #timerText { color: var(--danger); }

/* ---------------------------------------------- 둘째 줄: 판서 도구 */
.ink-bar { display: flex; align-items: center; gap: 4px; padding: 5px 12px; border-bottom: 1px solid var(--line); background: var(--card2); flex-wrap: wrap; }
.ink-label { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-right: 4px; }
.ink-label .lbl { margin-left: 3px; }
.ink-group { display: inline-flex; align-items: center; gap: 3px; }
.ink-sep { width: 1px; height: 18px; background: var(--line); margin: 0 7px; }
.ink-btn {
  display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px var(--sans);
  padding: 4px 9px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--fg); cursor: pointer;
}
.ink-btn:hover { background: var(--pane); border-color: var(--line); }
.ink-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ink-color { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid var(--line); cursor: pointer; padding: 0; }
.ink-color:hover { transform: scale(1.12); }
.ink-color.on { border-color: var(--fg); box-shadow: 0 0 0 2px var(--pane), 0 0 0 4px var(--accent); }
.ink-width { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.ink-width i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--muted); display: block; }
.ink-width:hover { background: var(--pane); border-color: var(--line); }
.ink-width.on { background: var(--accent-soft); border-color: var(--accent); }
.ink-width.on i { background: var(--accent); }

/* ---------------------------------------------- 무대 (1280 x 720 고정 · 화면에 맞춰 확대·축소) */
.deck-wrap { flex: 1; min-height: 0; display: flex; position: relative; background: var(--bg); }
.stage-host { flex: 1; min-width: 0; min-height: 0; display: grid; place-items: center; padding: 14px; position: relative; }
.stage-fit { position: relative; width: 960px; height: 540px; }
.stage {
  container-type: inline-size;
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px; overflow: hidden;
  transform-origin: 0 0;
  background: var(--s-bg); color: var(--s-fg); border-radius: 10px; box-shadow: 0 10px 40px rgba(15, 25, 45, .18);
  --s-bg: #ffffff; --s-fg: #1b2230; --s-muted: #6a7486; --s-line: #e3e8ef; --s-card: #f5f7fb;
  --s-accent: #3776ab; --s-accent2: #a16207;
  font-family: var(--sans);
}
.stage-slide { position: absolute; inset: 0; }
:root[data-theme="dark"] .stage { --s-bg: #161b23; --s-fg: #e7ecf3; --s-muted: #95a0b2; --s-line: #2b3340; --s-card: #1d2430; --s-accent: #5fa8e8; --s-accent2: #f2c14e; }
.blackout { position: absolute; inset: 0; background: #000; z-index: 20; display: grid; place-items: center; color: #444; font-size: 14px; }

/* 판서 캔버스 — 슬라이드 좌표(1280x720) 위에 겹칩니다 */
.ink-canvas { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none; z-index: 8; }

/* 좌우 가장자리 클릭 이동 구간 */
.edge-band { position: absolute; top: 0; bottom: 0; z-index: 12; pointer-events: none; display: grid; place-items: center;
  font-size: 34px; font-weight: 300; color: var(--s-fg); opacity: 0; transition: opacity .15s; border-radius: 10px; }
.edge-band.prev { left: 0; background: linear-gradient(90deg, rgba(120, 140, 170, .22), transparent); }
.edge-band.next { right: 0; background: linear-gradient(270deg, rgba(120, 140, 170, .22), transparent); }
.edge-band.hot { opacity: .9; }
.deck-wrap.is-full .edge-band { color: #dfe6f0; }
:root[data-theme="dark"] .edge-band { color: #dfe6f0; }

/* 슬라이드 위 커서 */
.stage.cur-prev { cursor: w-resize; }
.stage.cur-next { cursor: e-resize; }
.stage.cur-point { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cline x1='6' y1='6' x2='26' y2='26' stroke='%23444c5a' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='6' r='4.6' fill='%23e53935' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E") 6 6, crosshair; }
.stage.cur-marker { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cline x1='9' y1='9' x2='26' y2='26' stroke='%23c9a227' stroke-width='9' stroke-linecap='round' opacity='.75'/%3E%3Ccircle cx='6' cy='6' r='3.4' fill='%23ffc400' stroke='%23ffffff' stroke-width='1.2'/%3E%3C/svg%3E") 6 6, crosshair; }
.stage.cur-eraser { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23555f6e' stroke-width='2' stroke-dasharray='4 3'/%3E%3C/svg%3E") 16 16, cell; }

/* 슬라이드 틀 */
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 3.2cqw 4.2cqw 2.6cqw; animation: slideIn .22s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(.8cqw); } to { opacity: 1; transform: none; } }
.slide::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: .55cqw; background: linear-gradient(var(--s-accent), var(--s-accent2)); }
.s-top { display: flex; align-items: center; gap: 1cqw; font-size: 1.15cqw; color: var(--s-muted); font-weight: 600; margin-bottom: .6cqw; }
.s-top .s-ch { color: var(--s-accent); font-weight: 800; }
.s-title { font-size: 3.1cqw; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; margin: 0 0 1.4cqw; }
.s-title::after { content: ''; display: block; width: 5cqw; height: .35cqw; border-radius: 1cqw; background: var(--s-accent); margin-top: .9cqw; }
.s-lead { font-size: 1.75cqw; color: var(--s-muted); margin: -.4cqw 0 1.2cqw; line-height: 1.45; }
.s-body { flex: 1; min-height: 0; font-size: 2cqw; line-height: 1.5; position: relative; }
.s-foot { display: flex; align-items: center; gap: 1cqw; font-size: 1.05cqw; color: var(--s-muted); margin-top: .8cqw; }
.s-foot .pg { font-family: var(--mono); font-weight: 700; }
.s-body code { font-family: var(--mono); font-size: .9em; background: var(--s-card); border: 1px solid var(--s-line); border-radius: .4cqw; padding: 0 .4cqw; color: var(--tk-def); }
.s-body b { color: var(--s-accent2); }
.s-body mark { background: var(--warn-soft); color: inherit; padding: 0 .3cqw; border-radius: .3cqw; }
.s-body pre { margin: 0; }

/* 불릿 */
.s-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05cqw; }
.s-bullets > li { position: relative; padding-left: 2.6cqw; }
.s-bullets > li::before { content: ''; position: absolute; left: .4cqw; top: .78cqw; width: 1cqw; height: 1cqw; border-radius: .25cqw; background: var(--s-accent); transform: rotate(45deg); }
.s-bullets ul { list-style: none; margin: .4cqw 0 0; padding: 0; font-size: .82em; color: var(--s-muted); display: grid; gap: .3cqw; }
.s-bullets ul li { position: relative; padding-left: 2cqw; }
.s-bullets ul li::before { content: '–'; position: absolute; left: .5cqw; color: var(--s-accent2); }
.s-bullets.dense { gap: .6cqw; font-size: .9em; }

/* 제목 슬라이드 */
.slide.title-slide { justify-content: center; padding: 5cqw 7cqw; background: radial-gradient(circle at 88% 12%, rgba(231, 111, 0, .16), transparent 38%), radial-gradient(circle at 10% 95%, rgba(47, 111, 179, .16), transparent 40%); }
.slide.title-slide::before { width: 1cqw; }
.title-slide .badge { align-self: flex-start; font-size: 1.5cqw; font-weight: 800; color: var(--s-accent); border: .18cqw solid var(--s-accent); border-radius: 3cqw; padding: .2cqw 1.4cqw; margin-bottom: 1.8cqw; }
.title-slide h1 { font-size: 5cqw; line-height: 1.15; margin: 0 0 1.4cqw; letter-spacing: -.03em; }
.title-slide .sub { font-size: 2.1cqw; color: var(--s-muted); }
.title-slide .deco { position: absolute; right: 5cqw; bottom: 3cqw; font-size: 12cqw; opacity: .12; }
.title-slide .meta { margin-top: 3cqw; font-size: 1.4cqw; color: var(--s-muted); display: flex; gap: 2cqw; }

/* 코드 슬라이드 */
.s-code { display: grid; grid-template-columns: 1fr; gap: 1.6cqw; height: 100%; }
.s-code.has-points { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.s-editor { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--s-line); border-radius: .9cqw; overflow: hidden; background: var(--code-bg); }
.s-editor-bar { display: flex; align-items: center; gap: .6cqw; padding: .5cqw .8cqw; background: var(--s-card); border-bottom: 1px solid var(--s-line); font-size: 1.1cqw; }
.s-editor-bar .fname { font-family: var(--mono); font-weight: 700; color: var(--s-muted); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-editor-bar button { font-size: 1.1cqw; padding: .25cqw .9cqw; border-radius: .5cqw; }
.s-editor-host { flex: 1; min-height: 0; position: relative; }
.s-editor-host .CodeMirror { position: absolute; inset: 0; height: 100%; font-size: var(--s-code-font, 1.45cqw); line-height: 1.5; }
.s-editor-host .CodeMirror-linenumber { min-width: 1.6cqw; }
.s-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1cqw; font-size: 1.65cqw; line-height: 1.45; overflow: hidden; }
.s-points li { background: var(--s-card); border: 1px solid var(--s-line); border-left: .45cqw solid var(--s-accent2); border-radius: .7cqw; padding: .8cqw 1.1cqw; }
.s-stdin { font-size: 1.1cqw; color: var(--s-muted); padding: .35cqw .8cqw; border-top: 1px dashed var(--s-line); background: var(--s-card); }
.s-stdin code { font-size: 1em !important; }

/* 2단 비교 */
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; height: 100%; }
.s-col { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 1cqw; padding: 1.4cqw 1.6cqw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.s-col h3 { margin: 0 0 1cqw; font-size: 2.1cqw; color: var(--s-accent); }
.s-col:nth-child(2) h3 { color: var(--s-accent2); }
.s-col .s-bullets { font-size: .9em; gap: .7cqw; }
.s-col pre.s-static { flex: 1; min-height: 0; overflow: hidden; font-size: 1.35cqw; line-height: 1.5; background: var(--code-bg); border: 1px solid var(--s-line); border-radius: .6cqw; padding: .8cqw 1cqw; color: var(--code-fg); white-space: pre; }

/* 표 */
.s-table { width: 100%; border-collapse: collapse; font-size: 1.6cqw; line-height: 1.4; }
.s-table th, .s-table td { border: 1px solid var(--s-line); padding: .6cqw 1cqw; text-align: left; vertical-align: top; }
.s-table th { background: var(--s-card); color: var(--s-accent2); font-weight: 800; }
.s-table tr:nth-child(even) td { background: color-mix(in srgb, var(--s-card) 45%, transparent); }
.s-table.dense { font-size: 1.35cqw; }
.s-table.dense th, .s-table.dense td { padding: .4cqw .8cqw; }

/* 다이어그램 */
.s-diagram { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8cqw; }
.s-diagram .d-host { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.s-diagram svg { width: 100%; height: 100%; max-height: 100%; font-family: var(--sans); }
.s-diagram svg text:not([fill]) { fill: var(--s-fg); }
.s-diagram .cap { font-size: 1.4cqw; color: var(--s-muted); }

/* 퀴즈 */
.s-quiz .q { font-size: 2.2cqw; font-weight: 700; margin-bottom: 1.4cqw; line-height: 1.45; }
.s-quiz .q pre { font-size: 1.45cqw; background: var(--code-bg); border: 1px solid var(--s-line); border-radius: .7cqw; padding: .8cqw 1.2cqw; margin: .8cqw 0 0; font-weight: 400; color: var(--code-fg); white-space: pre; overflow: hidden; }
.s-quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.s-quiz .opt { display: flex; gap: 1cqw; align-items: center; text-align: left; font-size: 1.8cqw; padding: 1cqw 1.4cqw; border-radius: .9cqw; border: .15cqw solid var(--s-line); background: var(--s-card); cursor: pointer; color: var(--s-fg); }
.s-quiz .opt .n { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; display: grid; place-items: center; background: var(--s-bg); border: .12cqw solid var(--s-line); font-weight: 800; flex: none; font-size: 1.4cqw; }
.s-quiz .opt:hover { border-color: var(--s-accent2); }
.s-quiz .opt.right { border-color: var(--ok); background: var(--ok-soft); }
.s-quiz .opt.right .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.s-quiz .opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.s-quiz .explain { margin-top: 1.2cqw; font-size: 1.6cqw; padding: .9cqw 1.3cqw; border-radius: .8cqw; background: var(--accent2-soft); }
.s-quiz .reveal { margin-top: 1cqw; font-size: 1.2cqw; }

/* 실습 */
.s-practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.6cqw; height: 100%; }
.s-practice .desc { font-size: 1.75cqw; line-height: 1.5; overflow: hidden; }
.s-practice .desc p { margin: 0 0 .8cqw; }
.s-practice .desc ul { margin: .4cqw 0; padding-left: 2.4cqw; }
.s-practice .s-editor-bar .sol-on { background: var(--s-accent2); color: #fff; border-color: var(--s-accent2); }

/* 요약 */
.slide.summary-slide .s-bullets > li::before { content: '✓'; transform: none; background: none; color: var(--ok); font-weight: 900; top: 0; left: .2cqw; width: auto; height: auto; font-size: 1.1em; }
.slide.summary-slide .s-bullets > li { padding-left: 3cqw; }

/* 목표 슬라이드 */
.s-goals { display: grid; gap: 1.2cqw; counter-reset: g; }
.s-goals div { counter-increment: g; display: flex; gap: 1.4cqw; align-items: center; background: var(--s-card); border: 1px solid var(--s-line); border-radius: 1cqw; padding: 1.1cqw 1.6cqw; font-size: 2cqw; }
.s-goals div::before { content: counter(g); width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--s-accent2); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 1.6cqw; }
.s-flow { display: flex; margin-top: 2cqw; border-radius: .8cqw; overflow: hidden; border: 1px solid var(--s-line); font-size: 1.35cqw; }
.s-flow div { padding: .6cqw 1cqw; background: var(--s-card); border-right: 1px solid var(--s-line); text-align: center; }
.s-flow div:last-child { border-right: none; }
.s-flow b { color: var(--s-accent); }

/* 목록(그리드) */
.grid-overlay { position: absolute; inset: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(4px); overflow: auto; padding: 20px; }
.grid-overlay h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.grid-item { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: left; box-shadow: var(--shadow); }
.grid-item:hover { border-color: var(--accent); }
.grid-item.cur { border: 2px solid var(--accent); }
.grid-item .gi-n { font: 700 11px var(--mono); color: var(--accent); }
.grid-item .gi-l { font-size: 11px; color: var(--muted); }
.grid-item .gi-t { font-weight: 700; font-size: 13.5px; line-height: 1.35; overflow: hidden; }

/* 교사 노트 */
.notes-pane { flex: none; height: 30%; min-height: 120px; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--pane); font-size: 14.5px; }
.notes-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 18px; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line); }
.notes-head:hover { background: var(--card2); }
.notes-head .nh-title { font-size: 13px; font-weight: 800; color: var(--accent2); }
.notes-head .nh-next { font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notes-body { flex: 1; min-height: 0; overflow: auto; padding: 12px 18px; }
.notes-pane.collapsed { height: auto; min-height: 0; }
.notes-pane.collapsed .notes-body { display: none; }
.notes-pane.collapsed .notes-head { border-bottom: none; }
.notes-pane h5 { margin: 0 0 6px; font-size: 13px; color: var(--accent2); display: flex; align-items: center; gap: 8px; }
.notes-pane .n-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
.notes-pane .n-notes p { margin: 0 0 6px; }
.notes-pane .n-side { font-size: 13px; border-left: 1px dashed var(--line); padding-left: 14px; }
.notes-pane .n-side .row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 2px 0; }
.notes-pane .answer { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--ok-soft); border: 1px solid var(--ok); }

/* 전체 화면 */
.fs-console-slot { display: none; }
.fs-controls { display: none; }
.deck-wrap.is-full { background: #0b0e13; }
.deck-wrap.is-full .stage-host { padding: 1.2vh 1.2vw; }
.deck-wrap.is-full .stage { border-radius: 0; box-shadow: none; }
.deck-wrap.is-full .fs-console-slot { display: flex; width: 32%; min-width: 320px; max-width: 560px; border-left: 1px solid #262c36; }
.deck-wrap.is-full .fs-console-slot.off { display: none; }

/* 전체 화면일 때 상단 메뉴는 숨기고, 마우스를 화면 위쪽에 올리면 내려옵니다 */
.deck-wrap.is-full .deck-bars {
  position: absolute; left: 0; right: 0; top: 0; z-index: 46;
  transform: translateY(-101%); transition: transform .22s ease-out;
  background: rgba(14, 18, 25, .96); border-bottom: 1px solid #2b333f; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.deck-wrap.is-full.bar-peek .deck-bars,
.deck-wrap.is-full .deck-bars:hover,
.deck-wrap.is-full .deck-bars:focus-within { transform: none; }
.deck-wrap.is-full .deck-bar, .deck-wrap.is-full .ink-bar { background: transparent; border-color: #2b333f; color: #e6ecf5; }
.deck-wrap.is-full .deck-bars .btn { color: #e6ecf5; background: transparent; border-color: #39424f; }
.deck-wrap.is-full .deck-bars .btn:hover:not(:disabled) { border-color: var(--accent); }
.deck-wrap.is-full .deck-bars .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.deck-wrap.is-full .deck-bars .ink-btn { color: #e6ecf5; }
.deck-wrap.is-full .deck-bars .ink-btn:hover { background: rgba(255, 255, 255, .08); border-color: #39424f; }
.deck-wrap.is-full .deck-bars .ink-btn.on { background: rgba(12, 139, 141, .3); border-color: var(--accent); color: #7fe3e4; }
.deck-wrap.is-full .deck-bars .ink-width:hover { background: rgba(255, 255, 255, .08); border-color: #39424f; }
.deck-wrap.is-full .deck-bars .ink-color.on { box-shadow: 0 0 0 2px #0e1219, 0 0 0 4px var(--accent); border-color: #e6ecf5; }
.deck-wrap.is-full .deck-bars .timer { background: rgba(255, 255, 255, .06); border-color: #39424f; color: #e6ecf5; }
.deck-wrap.is-full .deck-bars .timer .timer-main:hover { background: rgba(255, 255, 255, .1); }
.deck-wrap.is-full .deck-bars .s-count, .deck-wrap.is-full .deck-bars .s-slide-title,
.deck-wrap.is-full .deck-bars .ink-label { color: #9fb0c6; }
.deck-wrap.is-full .deck-bars .deck-progress { background: #2b333f; }
.deck-wrap.is-full .deck-bars .ink-sep { background: #39424f; }
.deck-wrap.is-full .deck-bars .icon-btn { color: #9fb0c6; }
.deck-wrap.is-full .deck-bars .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.deck-wrap.is-full .fs-console-slot .console-panel { width: 100%; }
.deck-wrap.is-full .fs-console-slot .fs-only { display: inline-flex !important; }
.deck-wrap.is-full .fs-controls {
  display: flex; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; gap: 4px; align-items: center;
  background: rgba(20, 24, 32, .82); border: 1px solid #333b48; border-radius: 12px; padding: 4px 6px; color: #d7dde8; opacity: 0; transition: opacity .25s;
}
.deck-wrap.is-full:hover .fs-controls, .deck-wrap.is-full .fs-controls:focus-within { opacity: 1; }
.deck-wrap.idle.is-full .fs-controls { opacity: 0 !important; }
.deck-wrap.idle.is-full { cursor: none; }
.fs-controls button { background: transparent; border: none; color: #d7dde8; cursor: pointer; font-size: 14px; padding: 5px 10px; border-radius: 8px; font-weight: 600; }
.fs-controls button:hover { background: rgba(255, 255, 255, .1); }
.fs-controls span { font: 700 13px var(--mono); padding: 0 6px; }
.deck-wrap.is-full .grid-overlay { background: rgba(11, 14, 19, .95); color: #e3e8f0; }

@media (max-width: 860px) {
  .slide-view { min-height: 70vh; }
  .notes-pane .n-grid { grid-template-columns: 1fr; }
}
.deck-wrap.pfull { position: fixed; inset: 0; z-index: 900; }
.s-goals.dense { gap: .7cqw; }
.s-goals.dense div { font-size: 1.5cqw; padding: .6cqw 1.2cqw; line-height: 1.4; }
.s-goals.dense div::before { width: 2.6cqw; height: 2.6cqw; font-size: 1.3cqw; }
.s-goals.dense + .s-flow { margin-top: 1.2cqw; }

/* ---------------------------------------------- 크게 보기 (라이트박스)
   전체 화면 대상 요소(#deckWrap) 안에 두어 발표 중에도 보이게 합니다. */
.lightbox { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 10px;
  background: rgba(10, 14, 20, .93); backdrop-filter: blur(3px); padding: 14px 18px 20px; color: #e8eef7; }
.lightbox.hidden { display: none; }
.lb-head { display: flex; align-items: center; gap: 10px; font-size: 15px; flex: none; }
.lb-head .btn { color: #e8eef7; border-color: #3a4552; }
.lb-body { flex: 1; min-height: 0; display: grid; place-items: center; }
.lb-body svg, .lb-body img { width: auto; height: auto; max-width: 100%; max-height: 100%; }

/* ---------------------------------------------- 좁은 창: 버튼 글자는 숨기고 아이콘만 */
@media (max-width: 1180px) {
  .deck-bar .btn .lbl, .ink-bar .ink-btn .lbl, .ink-label .lbl { display: none; }
  .ink-btn { padding: 4px 7px; }
  .s-slide-title { max-width: 18ch; }
  .s-slider { flex-basis: 120px; }
}
@media (max-width: 900px) {
  .s-slide-title { display: none; }
  .ink-sep { margin: 0 4px; }
}

/* 판서 버튼 비활성 · 문서에 직접 붙은 크게 보기 */
.ink-btn:disabled { opacity: .38; cursor: default; }
.ink-btn:disabled:hover { background: transparent; border-color: transparent; }
body > .lightbox { position: fixed; z-index: 1500; }
.lb-body #simBoard { width: 100%; height: 100%; display: grid; place-items: center; background: none; border: none; padding: 0; }
.lb-body #simBoard .mb-svg { width: auto; height: 100%; max-height: 100%; max-width: 100%; }
