* { box-sizing: border-box; }
:root { color-scheme: dark; --navy:#00131f; --panel:#061e2a; --mint:#8ce7cf; --gold:#dcc188; --white:#f3f8f8; --muted:#a9c0c5; --line:rgba(140,231,207,.19); }
html, body { margin:0; height:100%; width:100%; background:var(--navy); color:var(--white); font-family:Inter, "Segoe UI", Arial, sans-serif; font-size:16px; }
body { overflow:hidden; }
button { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:focus-visible, a:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
[hidden] { display:none !important; }
.viewer { display:flex; flex-direction:column; height:100vh; height:100dvh; width:100%; overflow:hidden; }
.topbar { min-height:64px; padding:10px 32px; display:flex; align-items:center; gap:20px; border-bottom:1px solid var(--line); flex-shrink:0; }
.edition { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 18px; font-size:.94rem; }
.edition-detail { color:var(--muted); font-size:.875rem; }
.topbar .primary { margin-left:auto; }
.button { border:1px solid rgba(140,231,207,.3); border-radius:6px; min-height:42px; padding:10px 18px; background:transparent; color:var(--white); font-size:.875rem; line-height:1.2; white-space:nowrap; transition:background .15s, border-color .15s, color .15s; }
.button:hover:not(:disabled) { border-color:var(--mint); background:rgba(140,231,207,.1); }
.button:disabled { cursor:default; opacity:.3; }
.button.primary { background:var(--mint); color:var(--navy); border-color:var(--mint); font-weight:650; }
.button.primary:hover { background:#b5f3e3; border-color:#b5f3e3; }
.button.quiet { border-color:transparent; color:var(--muted); }
.button.quiet:hover:not(:disabled) { color:var(--white); }
.stage { flex:1; min-height:0; position:relative; display:flex; align-items:center; justify-content:center; padding:20px 32px; overflow:hidden; background:radial-gradient(ellipse at 50% 55%, #0b2733 0, #00131f 75%); touch-action:pan-y pinch-zoom; }
.slide-frame { position:relative; margin:0; width:100%; aspect-ratio:16/9; flex-shrink:0; box-shadow:0 14px 50px rgba(0,0,0,.32); background:#04151f; }
.slide-frame > img { display:block; width:100%; height:100%; object-fit:fill; user-select:none; }
.slide-frame.changed { animation:slide-reveal .24s ease-out; }
@keyframes slide-reveal { from { opacity:.6; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
.slide-links { position:absolute; inset:0; pointer-events:none; }
.slide-links a { position:absolute; display:block; pointer-events:auto; border-radius:2px; }
.slide-links a:hover { background:rgba(140,231,207,.1); box-shadow:0 0 0 1px var(--mint); }
.bottom-bar { padding:0 32px 16px; flex-shrink:0; }
.controls { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:24px; align-items:center; min-height:64px; }
.slide-caption { display:flex; flex-direction:column; gap:6px; min-width:0; }
.eyebrow { font-size:.75rem; letter-spacing:.14em; font-weight:600; color:var(--gold); margin:0; }
.slide-title { font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pagination { display:flex; align-items:center; gap:14px; }
.pagination .button { min-width:88px; }
.page-number { color:var(--white); font-variant-numeric:tabular-nums; font-size:.875rem; min-width:54px; text-align:center; }
.view-options { display:flex; justify-content:flex-end; gap:6px; }
.presentation-exit { display:none; }
.progress { height:2px; margin:11px 0 12px; background:rgba(140,231,207,.13); overflow:hidden; }
.progress span { display:block; height:100%; width:0; background:var(--mint); transition:width .2s ease; }
.footer-note { display:flex; justify-content:space-between; gap:20px; font-size:.75rem; line-height:1.5; color:var(--muted); }
.loading, .error-state { text-align:center; padding:28px; }
.loading p, .error-state p { font-size:1rem; color:var(--muted); }
.error-state h1 { font-size:1.5rem; }
.loading-ring { display:inline-block; width:32px; height:32px; border:2px solid var(--line); border-top-color:var(--mint); border-radius:50%; animation:rotate 1s linear infinite; }
@keyframes rotate { to { transform:rotate(360deg); } }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.toast { position:fixed; z-index:50; bottom:130px; left:50%; transform:translateX(-50%); max-width:90vw; width:max-content; padding:14px 20px; background:var(--mint); color:var(--navy); box-shadow:0 6px 30px #0006; font-size:.875rem; border-radius:6px; }
.update-notice { position:fixed; z-index:40; bottom:140px; left:50%; transform:translateX(-50%); max-width:92vw; display:flex; align-items:center; gap:20px; padding:18px; background:var(--panel); border:1px solid var(--mint); border-radius:8px; box-shadow:0 10px 40px #0007; }
dialog { color:var(--white); background:var(--navy); border:1px solid var(--line); border-radius:12px; padding:0; }
dialog::backdrop { background:rgba(0,7,12,.85); backdrop-filter:blur(6px); }
.overview-dialog { width:min(1280px,94vw); max-width:94vw; height:min(900px,92dvh); max-height:92dvh; }
.dialog-header { position:sticky; top:0; z-index:2; background:var(--navy); display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 28px; border-bottom:1px solid var(--line); }
.dialog-header h1 { font-size:1.45rem; font-weight:500; letter-spacing:-.02em; margin:8px 0 0; }
.slide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 22px; padding:28px; }
.thumbnail { display:block; width:100%; padding:0; border:0; background:transparent; color:var(--white); text-align:left; }
.thumbnail img { display:block; width:100%; aspect-ratio:16/9; object-fit:fill; border:1px solid var(--line); border-radius:3px; transition:border-color .15s; }
.thumbnail:hover img, .thumbnail[aria-current="true"] img { border:2px solid var(--mint); }
.thumbnail-label { display:flex; align-items:baseline; gap:12px; padding-top:11px; font-size:.875rem; line-height:1.4; }
.thumbnail-number { flex-shrink:0; color:var(--gold); font-variant-numeric:tabular-nums; }
.thumbnail[aria-current="true"] .thumbnail-title { color:var(--mint); }
.zoom-dialog { width:96vw; max-width:96vw; height:94dvh; max-height:94dvh; overflow:hidden; }
.zoom-dialog[open] { display:flex; flex-direction:column; }
.zoom-dialog .dialog-header { flex-shrink:0; padding:16px 24px; }
.zoom-dialog .dialog-header h1 { font-size:1.1rem; }
.zoom-controls { padding:12px 24px; display:flex; align-items:center; gap:16px; border-bottom:1px solid var(--line); flex-shrink:0; }
#zoomLevel { font-variant-numeric:tabular-nums; min-width:48px; text-align:center; font-size:.875rem; }
.zoom-help { color:var(--muted); font-size:.875rem; margin-left:auto; }
.zoom-scroll { flex:1; overflow:auto; background:#07101a; min-height:0; }
.zoom-scroll img { display:block; max-width:none; height:auto; margin:0 auto; }
.print-note { display:none; }
.noscript { position:fixed; bottom:150px; left:5%; width:90%; text-align:center; background:var(--panel); padding:20px; }
body.presenting .topbar { display:none; }
body.presenting .bottom-bar { position:static; padding:6px 24px; border-top:1px solid var(--line); background:var(--navy); }
body.presenting .controls { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 30px; min-height:48px; padding:0; }
body.presenting .stage { padding:0; }
body.presenting .slide-caption, body.presenting .progress, body.presenting .footer-note { display:none; }
body.presenting .presentation-exit { display:inline-flex; align-items:center; }
@media (min-width:1700px) { .topbar,.bottom-bar { padding-left:48px; padding-right:48px; } .stage { padding:24px 48px; } }
@media (max-width:900px) { .topbar { gap:18px; padding:10px 20px; } .stage { padding:16px 20px; } .bottom-bar { padding-left:20px; padding-right:20px; } .controls { gap:12px; } .pagination { gap:8px; } .pagination .button { min-width:70px; padding:10px 12px; } .view-options .button { padding:10px; } }
@media (max-width:650px) { .topbar { gap:12px; padding:12px 18px; } .edition { flex:1; flex-direction:column; align-items:flex-start; gap:5px; font-size:.875rem; } .edition-detail { font-size:.875rem; } .topbar .button { padding:10px 13px; } .stage { padding:14px 0; } .bottom-bar { padding:0 16px 16px; } .controls { grid-template-columns:1fr auto; row-gap:14px; padding-top:8px; } .slide-caption { grid-column:1/-1; text-align:center; } .slide-title { white-space:normal; line-height:1.4; min-height:2.8em; display:flex; align-items:center; justify-content:center; } .pagination { gap:10px; } .view-options { gap:0; } .view-options .button { padding:10px 8px; } .footer-note { justify-content:center; } .footer-note span:last-child { display:none; } .progress { margin-top:16px; } .slide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 16px; padding:18px; } .dialog-header { padding:20px 18px; } .dialog-header h1 { font-size:1.3rem; } .thumbnail-label { gap:8px; } .zoom-controls { padding:12px 16px; gap:12px; } .zoom-help { display:none; } .zoom-dialog .dialog-header { padding:16px; } .zoom-dialog .eyebrow { display:none; } .zoom-dialog .dialog-header h1 { margin:0; line-height:1.35; } .update-notice { flex-direction:column; gap:12px; text-align:center; } }
@media (max-height:560px) and (orientation:landscape) { .topbar { min-height:54px; padding:8px 20px; } .edition { font-size:.875rem; gap:6px 16px; } .stage { padding:8px 20px; } .bottom-bar { padding-bottom:8px; } .controls { min-height:46px; } .footer-note,.progress { display:none; } .button { min-height:36px; padding:8px 13px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
@media (max-width:380px) { .controls { grid-template-columns:1fr; row-gap:8px; } .pagination,.view-options { justify-content:center; } .topbar { gap:8px; } .slide-title { min-height:0; } }
@media print { body { overflow:visible; background:white; color:black; } .viewer,dialog { display:none !important; } .print-note { display:block; padding:40px; font:16px Arial,sans-serif; } }
