html, body { height:100%; overflow:hidden; }
#presentation { height:100dvh; display:flex; flex-direction:column; padding:10px 24px; background:var(--page); }
.deck-toolbar { display:flex; align-items:center; gap:6px; flex:none; padding-bottom:10px; }
.toolbar-spacer { flex:1; }
.deck-stage { position:relative; display:grid; place-items:center; flex:1; min-height:0; touch-action:pan-y pinch-zoom; }
.deck-stage > img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
#slide-loading { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.deck-stage[aria-busy=false] #slide-loading { display:none; }
#retry-slide { position:absolute; }
.deck-navigation { display:flex; align-items:center; justify-content:center; gap:12px; padding-top:10px; flex:none; }
.deck-navigation [data-tooltip]::after { top:auto; bottom:calc(100% + 8px); }
.slide-position { display:flex; align-items:center; gap:6px; font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums; }
#slide-number { width:42px; height:36px; border:1px solid transparent; border-radius:4px; background:transparent; color:var(--text); font:inherit; text-align:center; appearance:textfield; }
#slide-number:hover, #slide-number:focus { border-color:var(--line); }
#slide-number::-webkit-inner-spin-button, #slide-number::-webkit-outer-spin-button { appearance:none; margin:0; }
#thumbnails { display:flex; gap:10px; overflow-x:auto; padding:14px 2px 4px; flex:none; scrollbar-width:thin; }
#thumbnails button { position:relative; flex:none; width:144px; height:81px; padding:0; border:2px solid transparent; border-radius:4px; overflow:hidden; background:var(--surface); }
#thumbnails button[aria-current=true] { border-color:var(--teal); }
#thumbnails img { display:block; width:100%; height:100%; object-fit:contain; }
#thumbnails span { position:absolute; bottom:2px; right:3px; background:#202b30e8; color:white; padding:0 4px; border-radius:2px; font-size:11px; }
#presentation.expanded { position:fixed; inset:0; z-index:100; }
#presentation:is(:fullscreen, .expanded) .deck-toolbar { justify-content:flex-end; }
#presentation:is(:fullscreen, .expanded) .deck-toolbar > :not(#fullscreen),
#presentation:is(:fullscreen, .expanded) .deck-navigation,
#presentation:is(:fullscreen, .expanded) #thumbnails,
#presentation:is(:fullscreen, .expanded) #retry-slide { display:none; }
#notes-view { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#a8b6bf55 transparent; }
.notes-inner { max-width:800px; margin:0 auto; padding:14px 10px 100px; }
.note-section { border-bottom:1px solid var(--line); }
.note-section > summary { display:flex; align-items:center; gap:16px; min-height:70px; padding:18px 6px; list-style:none; cursor:pointer; color:var(--text); }
.note-section > summary::-webkit-details-marker { display:none; }
.note-section > summary::marker { content:''; }
.note-section > summary:hover { background:#ffffff04; }
.note-number { flex:none; width:30px; color:var(--teal); font-size:14px; font-variant-numeric:tabular-nums; }
.note-heading { flex:1; min-width:0; font-size:20px; line-height:1.4; font-weight:600; overflow-wrap:anywhere; }
.note-section > summary svg { width:18px; height:18px; color:var(--muted); transition:transform .15s; }
.note-section[open] > summary svg { transform:rotate(180deg); }
.note-section[data-current=true] > summary .note-heading { color:var(--teal); }
.note-body { padding:0 34px 12px 52px; }
.note-body p { margin:0 0 18px; font-size:19px; line-height:1.8; color:#dae2e7; overflow-wrap:anywhere; }
.note-body strong { color:var(--text); font-weight:650; }
#related-notes { margin-bottom:16px; }
#related-notes .note-section { border-left:3px solid #e5bd79; background:#e5bd7909; }
#related-notes summary { padding-left:14px; padding-right:14px; }
#related-notes .note-heading, #related-notes .note-body strong { color:#e5bd79; }
#related-notes .note-body { padding-left:14px; padding-right:14px; }
#questions-notes { margin-bottom:16px; border-left:3px solid #c7b3ec; background:#c7b3ec09; }
#questions-notes > summary { padding-left:14px; padding-right:14px; }
#questions-notes .note-heading, #questions-notes h3 { color:#c7b3ec; }
#questions-notes .note-body { padding-left:14px; padding-right:14px; }
#questions-notes h3 { margin:30px 0 14px; font-size:19px; line-height:1.5; }
#questions-notes h3:first-child { margin-top:4px; }
#questions-notes ul { padding-left:22px; margin:0 0 22px; font-size:18px; line-height:1.8; color:#dae2e7; }
#questions-notes li + li { margin-top:10px; }
#questions-notes table { width:100%; table-layout:fixed; border-collapse:collapse; margin:0 0 24px; font-size:16px; line-height:1.5; }
#questions-notes th, #questions-notes td { padding:10px 6px; text-align:left; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
#questions-notes th:first-child { width:44%; }
#questions-notes tbody th { font-weight:500; }
#questions-notes thead th { color:#c7b3ec; }
#notes-qa { padding-top:48px; }
#notes-qa-title { margin:0 0 12px; font:600 24px/1.4 system-ui,sans-serif; scroll-margin-top:20px; }
#qa-notes .note-heading { font-size:18px; }
#qa-notes .note-body { padding-left:6px; }
#notes-loading, #notes-error { color:var(--muted); }
.notes-mode .deck-toolbar { border-bottom:1px solid var(--line); }
@media (max-width:600px) {
    .notes-inner { padding:6px 6px 72px; }
    .note-section > summary { gap:10px; padding:18px 2px; min-height:68px; }
    .note-number { width:25px; }
    .note-heading { font-size:18px; }
    .note-body, #qa-notes .note-body { padding:0 4px 10px; }
    .note-body p { font-size:18px; line-height:1.8; }
}
@media (max-width:600px) { #presentation { padding:8px; } .deck-toolbar { gap:4px; } .icon-button { width:38px; height:38px; } }
@media (max-height:500px) { #presentation { padding:4px 12px; } .deck-toolbar { padding-bottom:3px; } .deck-navigation { padding-top:3px; } .icon-button { width:32px; height:32px; } #thumbnails button { width:112px; height:63px; } }
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }
