/* KFW 2026 · 엑셀코스피 발표 덱 공용 스타일
   1920×1080 고정 캔버스를 창 크기에 맞춰 축소·확대한다.
   화면 전체가 '엑셀 시트'로 위장되어 있고, 슬라이드는 시트 위에 그려진다. */

@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations"),
       url("assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: block;
}

:root {
  --stage: #0f1a14;
  --chrome: #1d6f42;
  --chrome-2: #185c37;
  --chrome-ink: #ffffff;
  --ribbon: #f3f2f1;
  --ribbon-ink: #323130;
  --ribbon-line: #e1dfdd;
  --sheet: #ffffff;
  --grid: #e4e4e4;
  --head: #f3f3f3;
  --head-ink: #5f5f5f;
  --head-on: #d3f0e0;
  --head-on-ink: #0e5c34;
  --ink: #141a16;
  --ink-2: #4b5a51;
  --ink-3: #7b8a81;
  --accent: #107c41;
  --accent-soft: #e3f4ea;
  --accent-ink: #0b5a2f;
  --up: #d7263d;
  --down: #1f5fd1;
  --human: #c97a00;
  --human-soft: #fff1d6;
  --card: #ffffff;
  --card-line: #d9e2dc;
  --shadow: 0 18px 48px rgba(16, 40, 26, .16), 0 2px 6px rgba(16, 40, 26, .08);
  --mono: "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;

  --title-h: 54px;
  --ribbon-h: 46px;
  --formula-h: 50px;
  --colhead-h: 30px;
  --tabs-h: 44px;
  --status-h: 30px;
  --rownum-w: 56px;
  --cell-w: 143px;
  --cell-h: 46px;
}

/* ── 세션 2: 엑셀 다크 테마 ───────────────────────── */
body.theme-dark {
  --stage: #050806;
  --chrome: #202020;
  --chrome-2: #161616;
  --chrome-ink: #f1f1f1;
  --ribbon: #262626;
  --ribbon-ink: #e6e6e6;
  --ribbon-line: #383838;
  --sheet: #1a1b1a;
  --grid: #2c2e2c;
  --head: #232423;
  --head-ink: #9a9a9a;
  --head-on: #18412b;
  --head-on-ink: #8ee0b2;
  --ink: #f2f5f3;
  --ink-2: #b9c4bd;
  --ink-3: #85918a;
  --accent: #3ccf83;
  --accent-soft: #163626;
  --accent-ink: #8ee0b2;
  --up: #ff5a6a;
  --down: #6aa2ff;
  --human: #ffb547;
  --human-soft: #3a2a0c;
  --card: #222422;
  --card-line: #343834;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--stage); overflow: hidden; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "ss06" 1; }
img { display: block; max-width: 100%; }

/* ── 캔버스 ───────────────────────────────────────── */
.frame {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  margin: -540px 0 0 -960px;
  transform-origin: center center;
  background: var(--sheet);
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--title-h) var(--ribbon-h) var(--formula-h) var(--colhead-h) minmax(0, 1fr) var(--tabs-h) var(--status-h);
  grid-template-columns: minmax(0, 1fr);
}

/* 제목 표시줄 */
.xl-title {
  background: var(--chrome); color: var(--chrome-ink);
  display: grid; grid-template-columns: 520px 1fr 520px; align-items: center;
  padding: 0 22px; font-size: 19px; letter-spacing: -.01em;
}
.xl-title .qa { display: flex; align-items: center; gap: 18px; opacity: .95; }
.xl-title .logo { width: 30px; height: 30px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.xl-title .logo img { width: 26px; height: 26px; }
.xl-title .autosave { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.xl-title .toggle { width: 38px; height: 20px; border-radius: 10px; border: 2px solid currentColor; position: relative; opacity: .9; }
.xl-title .toggle::after { content: ""; position: absolute; right: 3px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.xl-title .fname { text-align: center; font-weight: 600; white-space: nowrap; }
.xl-title .fname small { font-weight: 400; opacity: .8; margin-left: 6px; font-size: 17px; }
.xl-title .who { justify-self: end; display: flex; align-items: center; gap: 14px; font-size: 16px; }
.xl-title .who .pill { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 5px 14px; }
.xl-title .who .avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--chrome); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
body.theme-dark .xl-title .who .avatar { background: var(--accent); color: #0b1a12; }

/* 리본 탭 */
.xl-ribbon {
  background: var(--ribbon); color: var(--ribbon-ink);
  border-bottom: 1px solid var(--ribbon-line);
  display: flex; align-items: center; gap: 26px; padding: 0 26px; font-size: 17px; white-space: nowrap;
}
.xl-ribbon span { position: relative; padding: 10px 0; opacity: .88; }
.xl-ribbon span.on { font-weight: 700; opacity: 1; color: var(--accent); }
.xl-ribbon span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--accent); }
.xl-ribbon .spacer { flex: 1; }
.xl-ribbon .event { font-size: 15px; opacity: .75; }

/* 수식 입력줄 */
.xl-formula {
  display: grid; grid-template-columns: 150px 74px 1fr; align-items: stretch;
  background: var(--sheet); border-bottom: 1px solid var(--grid);
  font-size: 22px;
}
.xl-formula .namebox { display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--grid); font-family: var(--mono); font-size: 20px; color: var(--ink-2); }
.xl-formula .fx { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--grid); font-style: italic; color: var(--ink-3); font-family: Georgia, serif; font-size: 22px; }
.xl-formula .formula { display: flex; align-items: center; padding: 0 20px; font-family: var(--mono); font-size: 22px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.xl-formula .formula .fn { color: var(--accent); font-weight: 700; }
.xl-formula .formula .str { color: #a15c00; }
body.theme-dark .xl-formula .formula .str { color: #ffc46b; }
.xl-formula .formula .caret { display: inline-block; width: 2px; height: 26px; background: var(--ink); margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 열 머리글 */
.xl-colhead {
  display: grid; grid-template-columns: var(--rownum-w) repeat(13, var(--cell-w)) 1fr;
  background: var(--head); border-bottom: 1px solid var(--grid);
  font-size: 15px; color: var(--head-ink);
}
.xl-colhead div { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--grid); }
.xl-colhead div.on { background: var(--head-on); color: var(--head-on-ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.xl-colhead .corner { background: var(--head); position: relative; }
.xl-colhead .corner::after { content: ""; position: absolute; right: 5px; bottom: 5px; border: 7px solid transparent; border-right-color: #b9b9b9; border-bottom-color: #b9b9b9; }

/* 시트 본문 */
.xl-sheet {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: var(--rownum-w) 1fr;
}
.xl-rownums { background: var(--head); border-right: 1px solid var(--grid); color: var(--head-ink); font-size: 15px; }
.xl-rownums div { height: var(--cell-h); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--grid); }
.xl-rownums div.on { background: var(--head-on); color: var(--head-on-ink); font-weight: 700; box-shadow: inset -3px 0 0 var(--accent); }
.xl-cells {
  position: relative; overflow: hidden;
  background-color: var(--sheet);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--cell-w) var(--cell-h);
  background-position: -1px -1px;
}

/* 시트 탭 */
.xl-tabs {
  background: var(--ribbon); border-top: 1px solid var(--ribbon-line);
  display: flex; align-items: stretch; padding-left: 14px; font-size: 17px; color: var(--ribbon-ink);
}
.xl-tabs .nav { display: flex; align-items: center; gap: 16px; padding: 0 18px 0 8px; opacity: .55; font-size: 15px; }
.xl-tabs button {
  all: unset; cursor: pointer; padding: 0 22px; display: flex; align-items: center; position: relative;
  border-right: 1px solid var(--ribbon-line); opacity: .78; white-space: nowrap;
}
.xl-tabs button:hover { opacity: 1; }
.xl-tabs button.on { background: var(--sheet); color: var(--accent); font-weight: 700; opacity: 1; }
.xl-tabs button.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--accent); }
.xl-tabs .plus { padding: 0 18px; display: flex; align-items: center; opacity: .5; font-size: 22px; }

/* 상태 표시줄 */
.xl-status {
  background: var(--chrome-2); color: var(--chrome-ink);
  display: flex; align-items: center; gap: 28px; padding: 0 22px; font-size: 15px;
}
.xl-status .grow { flex: 1; }
.xl-status .live { display: flex; align-items: center; gap: 8px; }
.xl-status .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7ef0a8; box-shadow: 0 0 0 3px rgba(126,240,168,.25); }
.xl-status .zoom { display: flex; align-items: center; gap: 10px; opacity: .9; }
.xl-status .zoom i { display: block; width: 120px; height: 3px; background: rgba(255,255,255,.45); position: relative; }
.xl-status .zoom i::after { content: ""; position: absolute; left: 50%; top: -5px; width: 3px; height: 13px; background: #fff; }
.xl-status .progress { position: absolute; left: 0; bottom: 0; height: 3px; background: #7ef0a8; transition: width .35s ease; }

/* ── 슬라이드 ─────────────────────────────────────── */
.slide {
  position: absolute; inset: 0;
  padding: 64px 104px 56px 92px;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: opacity .38s ease, transform .38s ease, visibility 0s linear .38s;
}
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .38s ease, transform .38s ease; }
.slide .notes { display: none; }

.step { opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .35s ease; }
.step.in { opacity: 1; transform: none; }
.dim-on-step.dimmed { opacity: .28; transition: opacity .3s ease; }

/* 시트 위 '흰 셀' 덩어리 — 그리드가 비치지 않게 */
.paper { background: var(--sheet); }

/* 타이포 */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 26px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-soft); border: 2px solid var(--accent);
  padding: 8px 18px; border-radius: 4px; letter-spacing: -.01em;
}
.kicker.human { color: var(--human); background: var(--human-soft); border-color: var(--human); }
.kicker .mono { font-family: var(--mono); font-weight: 600; font-size: 22px; opacity: .8; }
.h-display { font-size: 132px; line-height: 1.04; font-weight: 820; letter-spacing: -.045em; margin: 0; }
.h1 { font-size: 86px; line-height: 1.12; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.h2 { font-size: 60px; line-height: 1.18; font-weight: 780; letter-spacing: -.035em; margin: 0; }
.h3 { font-size: 40px; line-height: 1.25; font-weight: 750; letter-spacing: -.03em; margin: 0; }
.lead { font-size: 38px; line-height: 1.5; color: var(--ink-2); font-weight: 500; letter-spacing: -.02em; margin: 0; }
.body { font-size: 31px; line-height: 1.55; color: var(--ink-2); letter-spacing: -.015em; margin: 0; }
.small { font-size: 24px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.src { position: absolute; left: 92px; bottom: 26px; font-size: 20px; color: var(--ink-3); background: var(--sheet); padding: 2px 8px; }
.accent { color: var(--accent); }
.human-c { color: var(--human); }
.up { color: var(--up); }
.down { color: var(--down); }
.mono { font-family: var(--mono); }
.strike { text-decoration: line-through; text-decoration-thickness: 6px; text-decoration-color: var(--up); }
mark { background: linear-gradient(transparent 58%, rgba(16,124,65,.22) 58%); color: inherit; padding: 0 4px; }
body.theme-dark mark { background: linear-gradient(transparent 58%, rgba(60,207,131,.3) 58%); }

/* 선택 셀 테두리 — 엑셀의 초록 선택 상자 */
.sel { position: relative; outline: 4px solid var(--accent); outline-offset: 8px; }
.sel::after { content: ""; position: absolute; right: -16px; bottom: -16px; width: 14px; height: 14px; background: var(--accent); border: 3px solid var(--sheet); }

/* 레이아웃 유틸 */
.row { display: flex; gap: 40px; }
.col { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1; }
.center { align-items: center; }
.stack-gap > * + * { margin-top: 28px; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 60px; } .mt-xl { margin-top: 96px; }
.full { position: absolute; inset: 64px 104px 64px 92px; }

/* 지표 카드 */
.metrics { display: grid; gap: 28px; }
.metric { background: var(--card); border: 2px solid var(--card-line); padding: 30px 34px 28px; position: relative; }
.metric .num { font-size: 104px; font-weight: 820; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.metric .num small { font-size: .46em; font-weight: 750; letter-spacing: -.02em; margin-left: 6px; color: var(--ink-2); }
.metric .lbl { font-size: 28px; color: var(--ink-2); margin-top: 14px; font-weight: 600; letter-spacing: -.02em; }
.metric .sub { font-size: 22px; color: var(--ink-3); margin-top: 6px; }
.metric.hero { border-color: var(--accent); background: var(--accent-soft); }
.metric.hero .num { color: var(--accent-ink); }
.metric.human { border-color: var(--human); background: var(--human-soft); }
.metric.human .num { color: var(--human); }

/* 엑셀 표 */
table.xl { border-collapse: collapse; background: var(--sheet); font-size: 28px; width: 100%; }
table.xl th, table.xl td { border: 1px solid var(--grid); padding: 14px 22px; text-align: left; letter-spacing: -.015em; }
table.xl th { background: var(--head); color: var(--head-ink); font-weight: 650; font-size: 23px; }
table.xl td.num, table.xl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.xl tr.hl td { background: var(--accent-soft); font-weight: 700; }
table.xl tr.hu td { background: var(--human-soft); }
table.xl td .tag { font-size: 19px; border: 1px solid var(--card-line); border-radius: 999px; padding: 2px 12px; color: var(--ink-3); margin-left: 10px; vertical-align: 3px; }

/* 스크린샷 프레임 */
.shot { background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot.phone { border-radius: 34px; border: 10px solid #111; background: #111; }
.shot.phone img { border-radius: 24px; }
.shot .bar { height: 34px; background: var(--head); display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--card-line); }
.shot .bar i { width: 12px; height: 12px; border-radius: 50%; background: #d5d5d5; }
.shot .bar span { margin-left: 12px; font-size: 16px; color: var(--ink-3); font-family: var(--mono); }

/* 카드 */
.cards { display: grid; gap: 26px; }
.card { background: var(--card); border: 2px solid var(--card-line); padding: 30px 32px; position: relative; }
.card .t { font-size: 34px; font-weight: 780; letter-spacing: -.03em; line-height: 1.25; }
.card .d { font-size: 25px; color: var(--ink-2); line-height: 1.5; margin-top: 12px; letter-spacing: -.015em; }
.card .n { font-family: var(--mono); font-size: 20px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.card.on { border-color: var(--accent); background: var(--accent-soft); }
.card.human { border-color: var(--human); background: var(--human-soft); }
.card .pill { display: inline-block; font-size: 19px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; margin-right: 8px; vertical-align: 4px; }
body.theme-dark .card .pill { color: #0b1a12; }
.card .pill.h { background: var(--human); }

/* 타임라인 */
.tl { position: relative; display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 190px 36px 1fr; align-items: start; min-height: 66px; }
.tl-row .date { font-family: var(--mono); font-size: 25px; color: var(--ink-3); padding-top: 6px; text-align: right; padding-right: 18px; }
.tl-row .dot { position: relative; height: 100%; }
.tl-row .dot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--card-line); }
.tl-row .dot::after { content: ""; position: absolute; left: 50%; top: 13px; width: 18px; height: 18px; transform: translateX(-50%); background: var(--sheet); border: 4px solid var(--accent); border-radius: 50%; }
.tl-row.big .dot::after { background: var(--accent); }
.tl-row .what { font-size: 30px; font-weight: 650; letter-spacing: -.02em; padding: 3px 0 18px 14px; }
.tl-row .what small { display: block; font-size: 23px; color: var(--ink-3); font-weight: 500; margin-top: 4px; }

/* 언론 헤드라인 */
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.press .p { background: var(--card); border: 2px solid var(--card-line); padding: 24px 26px; min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; }
.press .p .hd { font-size: 27px; font-weight: 720; line-height: 1.38; letter-spacing: -.025em; }
.press .p .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 21px; color: var(--ink-3); }
.press .p .who img { height: 26px; width: auto; }

/* 말풍선(채팅 인용) */
.chat { display: flex; flex-direction: column; gap: 16px; }
.bubble { background: var(--card); border: 2px solid var(--card-line); border-radius: 18px 18px 18px 4px; padding: 18px 24px; font-size: 28px; line-height: 1.45; max-width: 1100px; letter-spacing: -.015em; }
.bubble .nick { display: block; font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.bubble.me { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--accent-soft); border-color: var(--accent); }

/* 흐름도 */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow .node { flex: 1; background: var(--card); border: 2px solid var(--card-line); padding: 26px 24px; position: relative; }
.flow .node .who { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.flow .node .who.ai { color: var(--accent); }
.flow .node .who.h { color: var(--human); }
.flow .node .t { font-size: 32px; font-weight: 780; letter-spacing: -.03em; margin-top: 8px; line-height: 1.25; }
.flow .node .d { font-size: 23px; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }
.flow .arrow { width: 54px; display: grid; place-items: center; color: var(--ink-3); font-size: 36px; }
.flow .node.h { border-color: var(--human); background: var(--human-soft); }
.flow .node.ai { border-color: var(--accent); }

/* 큰 인용 */
.quote { font-size: 62px; line-height: 1.32; font-weight: 760; letter-spacing: -.035em; }
.quote::before { content: "“"; color: var(--accent); }
.quote::after { content: "”"; color: var(--accent); }

/* 바 차트(가로) */
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 300px 1fr 200px; align-items: center; gap: 20px; font-size: 27px; }
.bar-row .track { height: 40px; background: var(--head); position: relative; }
.bar-row .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transform-origin: left; }
.bar-row .fill.h { background: var(--human); }
.bar-row .v { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.slide.on .bar-row .fill { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* QR */
.qr { background: #fff; padding: 14px; border: 2px solid var(--card-line); width: 280px; }
.qr img { width: 100%; image-rendering: pixelated; }
.qr-cap { font-size: 24px; font-weight: 700; margin-top: 14px; text-align: center; letter-spacing: -.02em; }

/* 표지 */
.cover-badge { display: inline-flex; gap: 14px; align-items: center; font-size: 26px; font-weight: 700; color: var(--ink-2); }
.cover-badge b { background: var(--ink); color: var(--sheet); padding: 6px 14px; border-radius: 4px; font-weight: 800; letter-spacing: .02em; }

/* 화면 전체 오버레이 */
.blackout { position: fixed; inset: 0; background: #000; z-index: 50; display: none; }
body.is-black .blackout { display: block; }
.notes-overlay {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 42vh; overflow: auto;
  background: rgba(10, 16, 12, .94); color: #e9f3ed; font-size: 18px; line-height: 1.7; padding: 18px 28px 22px;
  border-top: 3px solid #3ccf83; display: none;
}
body.show-notes .notes-overlay { display: block; }
.notes-overlay .meta { font-family: var(--mono); color: #8ee0b2; font-size: 14px; margin-bottom: 6px; }
.notes-overlay p { margin: 0 0 10px; }
.help-hint {
  position: fixed; right: 14px; bottom: 14px; z-index: 30; font: 13px/1.4 var(--sans); color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.35); padding: 6px 10px; border-radius: 6px; transition: opacity .6s; pointer-events: none;
}
body.hint-off .help-hint { opacity: 0; }

/* ── 발표자 보기 ─────────────────────────────────── */
body.presenter { overflow: auto; background: #0d120f; color: #e8efe9; }
body.presenter .frame, body.presenter .help-hint { display: none; }
.pv { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr; gap: 18px; padding: 18px; height: 100vh; }
.pv-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; font-size: 18px; }
.pv-top .clock { font-family: var(--mono); font-size: 44px; font-weight: 700; color: #fff; }
.pv-top .plan { font-family: var(--mono); font-size: 20px; color: #9fb3a7; }
.pv-top .plan b.late { color: #ff8a8a; }
.pv-top .plan b.ok { color: #8ee0b2; }
.pv-top .idx { font-family: var(--mono); font-size: 22px; color: #8ee0b2; }
.pv-top .grow { flex: 1; }
.pv-top button { all: unset; cursor: pointer; border: 1px solid #3b4a41; padding: 8px 14px; border-radius: 6px; color: #cfe1d6; font-size: 15px; }
.pv-top button:hover { background: #1c2621; }
.pv-left { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.pv-right { display: grid; grid-template-rows: auto auto; gap: 12px; align-content: start; }
.pv-label { font-size: 13px; letter-spacing: .12em; color: #7f9488; text-transform: uppercase; }
.pv-thumb { position: relative; background: #000; overflow: hidden; border-radius: 6px; border: 1px solid #2a352f; }
.pv-thumb .frame { display: grid; position: absolute; left: 0; top: 0; }
.pv-notes { background: #141b17; border: 1px solid #2a352f; border-radius: 8px; padding: 18px 24px; overflow: auto; font-size: 25px; line-height: 1.7; color: #f1f6f2; }
.pv-notes p { margin: 0 0 14px; }
.pv-notes .cue { color: #ffd27a; font-weight: 700; }
.pv-notes .time { font-family: var(--mono); color: #8ee0b2; font-size: 16px; }

/* 노트 안 표기 */
.notes .cue, .notes-overlay .cue { color: #ffd27a; font-weight: 700; }

/* ── 인쇄·PDF ────────────────────────────────────── */
body.print-mode { overflow: visible; background: #fff; height: auto; }
body.print-mode .help-hint, body.print-mode .notes-overlay, body.print-mode .blackout { display: none !important; }
body.print-mode .frame { position: relative; left: 0; top: 0; margin: 0; transform: none !important; page-break-after: always; break-after: page; }
body.presenter .pv-thumb .frame { display: grid; margin: 0; transform-origin: 0 0; }
body.print-mode .slide { transition: none; }
body.print-mode .step { opacity: 1; transform: none; }
body.print-mode .caret { display: none !important; }
@page { size: 1920px 1080px; margin: 0; }

/* 캡처용: 배율 1, 왼쪽 위 고정 */
body.shot-mode .frame { left: 0; top: 43px; margin: 0; }
body.shot-mode .help-hint { display: none; }
