[hidden]{display:none!important}*{box-sizing:border-box}button,input{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #153e5a;outline-offset:4px}button{border:1px solid #f5fcff9c;background:#edfaff4f;color:#183d5b;border-radius:12px;padding:11px 15px;min-height:44px;box-shadow:inset 0 1px #fff6}button:disabled{opacity:.4;cursor:default}.reviewbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 22px;background:#173d59e8;color:#e3f5ff;font-size:10px;letter-spacing:1px}.reviewbar div{display:flex;gap:5px}.reviewbar button{min-height:32px;padding:4px 10px;background:#ffffff12;color:#ebfaff;border-color:#ffffff30;font-size:11px;letter-spacing:0}.reviewbar button.active{background:#ffffff30}.back{display:inline-block;color:#254e6a;text-decoration:none;font-size:13px;padding:14px 0 0}.glass{border:1px solid #eaf8ff94;background:linear-gradient(140deg,#f3faffb0,#c6dceb63);border-radius:25px;box-shadow:inset 0 1px #fff7,0 12px 26px #25496c1c;backdrop-filter:blur(22px)}.badge{font-size:11px;white-space:nowrap;border:1px solid #ffffff70;background:#edfaff40;padding:6px 10px;border-radius:20px;color:#244b65}.refined-hub .welcome{margin:16px 0 30px}.refined-hub .welcome h1{font-size:38px}.page-copy{margin:12px 0 0;font-size:14px;line-height:1.75;color:#244b66}.section-head{margin-bottom:15px}.deck-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.deck{overflow:hidden}.cover{height:235px;padding:25px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;isolation:isolate}.cover:after{content:'';position:absolute;z-index:-1;width:220px;height:330px;right:-95px;top:5px;transform:rotate(28deg);background:linear-gradient(110deg,#ffffff08,#ffffff38);border:1px solid #ffffff35;box-shadow:-30px 15px 0 #ffffff07,-65px 30px 0 #ffffff08}.cover-one{background:linear-gradient(130deg,#183d56,#38697c);color:#f2f7ee}.cover-two{background:linear-gradient(130deg,#d1d6cb,#f0ecdf);color:#304d53}.cover-label{font-size:9px;letter-spacing:2px}.cover-small{font-size:8px;letter-spacing:1.7px;opacity:.75}.refined-hub .cover h2{font-size:28px;letter-spacing:-.9px;line-height:1.2;font-weight:550;margin:8px 0}.cover-bottom{font-size:8px;letter-spacing:1.4px;opacity:.7}.deck-copy{padding:22px}.deck-tag{font-size:8px;letter-spacing:1px;color:#365c74;display:flex;justify-content:space-between;gap:10px}.deck-tag span{letter-spacing:0;font-size:10px}.refined-hub .deck-copy h2{font-size:20px;margin:14px 0 6px}.deck-copy p{font-size:12px;color:#365c74;margin:0 0 20px}.open-deck{width:100%;text-align:left;display:flex;justify-content:space-between}.note{text-align:center;font-size:12px;color:#e6f3fa;margin-top:26px;line-height:1.6}.primary{background:#234f6b;color:#f0f9ff;border-color:#ffffff50;box-shadow:inset 0 1px #ffffff30}.intro{padding:32px;margin:22px 0 30px}.refined-hub .intro h2{font-size:38px;line-height:1.1;letter-spacing:-1px;margin:12px 0}.intro p{font-size:14px;line-height:1.7}.refined-hub .apps{margin:25px 0}.refined-hub .app-grid{max-width:600px;gap:18px}.refined-hub .app-icon{font-size:40px;font-weight:200}.viewer-heading{display:flex;align-items:center;justify-content:space-between;margin-top:18px}#viewer h1{font-size:25px;letter-spacing:-.6px;margin:22px 0}#player{overflow:hidden}.toolbar,.player-bottom{display:flex;gap:8px;align-items:center;padding:12px 16px}.toolbar button{font-size:11px;padding:9px 11px}.toolbar #slide-status{flex:1;text-align:center;font-size:11px}.stage{display:flex;height:clamp(260px,49vw,540px);gap:12px;background:#25486220;padding:16px}#thumbs{width:110px;flex-shrink:0;overflow:auto;display:flex;flex-direction:column;gap:9px}#thumbs button{padding:5px;min-height:auto;font-size:10px}#thumbs canvas{display:block;width:100%;height:auto;margin-bottom:4px}#thumbs button[aria-current=page]{background:#effaff99;border-color:#285c7d;box-shadow:0 0 0 1px #285c7d}#canvas-host{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}#slide{max-width:100%;max-height:100%;object-fit:contain;background:#fff;box-shadow:0 6px 20px #18334e30}.player-bottom{justify-content:center;gap:25px;font-size:12px}#player:fullscreen{border-radius:0;background:#65899f;height:100dvh;display:flex;flex-direction:column}#player:fullscreen .stage{flex:1;min-height:0;height:auto}.admin-layout-preview{display:grid;grid-template-columns:240px 1fr;gap:24px}.admin-list{padding:16px;align-self:start;display:flex;flex-direction:column;gap:12px}.admin-list button{display:block;text-align:left}.admin-list small{display:block;font-size:11px;margin-top:7px;font-weight:400}.admin-list strong{font-size:13px}.admin-list .selected{background:#f3fbffa8;border-color:#fff}.editor{padding:26px}.editor label{margin-top:18px}label{display:block;font-size:12px;font-weight:600}input{display:block;width:100%;border:1px solid #ffffffa0;border-radius:10px;background:#f2faff66;color:#183d5b;padding:12px;margin-top:7px;min-width:0}input::placeholder{color:#52758c}input[type=file]{font-size:11px}.cover-mini{width:180px;padding:20px;font-size:17px;border-radius:9px;line-height:1.2;margin-top:8px}.hint{display:block;font-size:11px;font-weight:400;line-height:1.6;color:#345b74;margin:7px 0}.inline{display:flex;align-items:end;gap:8px}.sync-box{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:16px;background:#e9f8ff50;border:1px solid #ffffff60;border-radius:14px;margin-top:23px}.sync-box strong{font-size:12px}.sync-box p{font-size:10px;margin:6px 0 0;line-height:1.5}.sync-box button{white-space:nowrap;font-size:12px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}.danger{color:#813f44;background:#ffe5e42e}.editor #admin-status{font-size:11px;line-height:1.6}dialog{border:1px solid #fff9;border-radius:25px;background:#e3f0f8ed;color:#183d5b;padding:30px;width:min(420px,calc(100% - 30px));box-shadow:0 20px 70px #163d6155;backdrop-filter:blur(24px)}dialog::backdrop{background:#183b5680;backdrop-filter:blur(9px)}dialog h2{font-size:24px;line-height:1.2;margin:12px 0}dialog p{font-size:13px;line-height:1.7}.dialog-close{position:absolute;right:14px;top:14px;border:0;background:none;font-size:23px;padding:2px 12px}.lock-symbol{display:grid;place-items:center;width:50px;height:50px;border:1px solid #fff9;border-radius:16px;background:#fff4;font-size:32px;margin-bottom:24px}#unlock-form .primary{width:100%;margin-top:15px}#unlock-status{font-size:11px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);padding:14px 20px;background:#173e59f2;color:white;border-radius:14px;font-size:12px;z-index:100;width:max-content;max-width:90vw}body[data-screen=admin] .hub-dock{display:none}@media(min-width:1000px){.dealer-home.refined-hub .dealer-shell{max-width:1140px;padding-left:46px;padding-right:46px}}@media(max-width:759px){.deck-grid{grid-template-columns:1fr}.admin-layout-preview{grid-template-columns:1fr}.admin-list{display:none}.reviewbar{padding:8px 14px;letter-spacing:.4px;font-size:8px}.reviewbar button{font-size:10px;padding:4px 7px}.cover{height:210px}.refined-hub .welcome h1{font-size:34px}.editor{padding:20px}.toolbar{padding:10px;flex-wrap:wrap}.toolbar #slide-status{display:none}.toolbar #full{margin-left:auto}.stage{padding:8px;gap:8px;height:320px}#thumbs{width:65px}.toolbar button{padding:8px}.player-bottom{gap:15px}.sync-box{align-items:start;flex-wrap:wrap}.viewer-heading .badge{font-size:10px}.refined-hub #viewer h1{font-size:22px}.dealer-header .badge{font-size:10px}}
/* Reserve space for the existing floating Hub dock on short screens. */
#viewer .stage{height:clamp(180px,calc(100svh - 500px),540px)}#player:fullscreen .stage{height:auto;flex:1}

#library-status{font-size:14px;line-height:1.7}.cover img{width:100%;height:100%;object-fit:cover}.cover:has(img){padding:0}.cover:has(img):after{display:none}.empty-library{padding:30px;margin:20px 0}.empty-library p{line-height:1.7;font-size:14px}.dealer-home .deck-grid .deck{min-width:0}.deck-copy h2{overflow-wrap:anywhere}.welcome h1{margin-top:0}.stage canvas{max-width:100%}#player:fullscreen .toolbar,#player:fullscreen .player-bottom{flex-shrink:0}

.live-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;border-bottom:1px solid #ffffff50}.live-buttons{display:flex;gap:8px}.live-toolbar button{font-weight:600;font-size:13px}.live-toolbar button.is-live{background:#23734f;color:white;border-color:#b9f4cc}.live-toolbar p{font-size:11px;line-height:1.5;margin:0;flex-basis:100%}#live-count{margin-left:auto;font-size:11px}#annotation-tools{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px 16px;background:#e7f7ff55}#annotation-tools button{font-size:11px;padding:8px 10px}#annotation-tools button[aria-pressed=true]{background:#244f6b;color:white}#annotation-tools label{display:flex;gap:5px;align-items:center;margin:0;font-size:11px}#ink-color{background:#edfaff85;border:1px solid #fff8;color:inherit;padding:9px 5px;border-radius:10px;min-height:40px}#slide-surface{position:relative;flex:none;max-width:100%;max-height:100%}#slide-surface canvas{display:block;width:100%;height:100%;max-width:100%;max-height:100%}#annotation-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}#viewer .stage{height:clamp(150px,calc(100svh - 490px),560px)}#player:has(#annotation-tools:not([hidden])) .stage{height:clamp(150px,calc(100svh - 550px),560px)}#player:fullscreen .stage,#player:fullscreen:has(#annotation-tools:not([hidden])) .stage{height:auto;flex:1}#player:fullscreen .live-toolbar,#player:fullscreen #annotation-tools{flex-shrink:0}#control-dialog::backdrop{background:#183b5666}.dealer-home.refined-hub .dealer-shell{padding-top:24px}.refined-hub #library .welcome{margin-top:6px}.viewer-heading{margin-top:0}@media(max-width:600px){.live-toolbar{padding:10px}.live-toolbar button{font-size:12px;padding:10px 12px}#annotation-tools{padding:8px;gap:5px}#annotation-tools button{min-height:40px}.refined-hub #viewer h1{font-size:20px;margin:16px 0}.live-toolbar p{font-size:10px}}

/* Phone browsers without native Fullscreen still receive a complete viewport-filling viewer. */
html.presentation-fullscreen,html.presentation-fullscreen body{height:100%;overflow:hidden;overscroll-behavior:none}
html.presentation-fullscreen body{position:fixed;inset:0;width:100%}
html.presentation-fullscreen .hub-dock,html.presentation-fullscreen .viewer-heading,html.presentation-fullscreen #viewer>h1,html.presentation-fullscreen #viewer>.note{display:none!important}
#player.is-expanded{position:fixed!important;left:var(--presentation-left,0px);top:var(--presentation-top,0px);width:var(--presentation-width,100vw);height:var(--presentation-height,100dvh);max-width:none;max-height:none;min-height:0;margin:0;border:0;border-radius:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);display:flex;flex-direction:column;z-index:1000;background:#65899f;box-shadow:none;backdrop-filter:none;isolation:isolate;overflow:hidden}
#viewer #player.is-expanded .stage{height:auto!important;min-height:0!important;flex:1;overflow:hidden}
#player.is-expanded .live-toolbar,#player.is-expanded #annotation-tools,#player.is-expanded .toolbar,#player.is-expanded .player-bottom{flex-shrink:0}
#player.is-expanded #full{display:none}
#expanded-controls{display:flex;align-self:flex-end;gap:7px;flex-shrink:0;padding:6px 8px;z-index:5}
#expanded-controls button{font-size:12px;min-height:44px;background:#e6f5ffbf;color:#153b57;border-color:#fff9}
#player.is-focus-view #expanded-controls{position:absolute;top:calc(env(safe-area-inset-top,0px) + 6px);right:calc(env(safe-area-inset-right,0px) + 6px)}
#player.is-focus-view .live-toolbar,#player.is-focus-view #annotation-tools,#player.is-focus-view .toolbar,#player.is-focus-view #thumbs{display:none!important}
#player.is-focus-view .stage{padding:6px;gap:0}
#player.is-focus-view .player-bottom{padding:5px 8px;gap:16px;background:#65899f}
@media(max-height:520px){#player.is-expanded .live-toolbar{padding:5px 8px;gap:5px}#player.is-expanded #live-status{display:none}#player.is-expanded #annotation-tools{flex-wrap:nowrap;overflow-x:auto;padding:5px 8px}#player.is-expanded #annotation-tools>*{flex-shrink:0}#player.is-expanded .toolbar{padding:5px 8px}#player.is-expanded .player-bottom{padding:5px 8px}#player.is-expanded #expanded-controls{padding:4px 8px}#player.is-expanded .stage{padding:5px}}

/* Keep phone input focus at its normal zoom, with manual pinch zoom available. */
#access-code,#share-link{font-size:16px;line-height:1.5}
#back-library.icon-button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%;flex-shrink:0}
#back-library svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#share-dialog{max-height:calc(100dvh - 24px);overflow:auto}
#share-link{min-width:0;width:100%}

/* Suppress accidental double-tap zoom while retaining scrolling and pinch zoom. */
html,body,main,nav,dialog,#player,#thumbs,#canvas-host,button,input,select{touch-action:manipulation}

/* The slide owns pinch/pan; its controls never scale. */
#canvas-host{overflow:hidden;position:relative;touch-action:none;user-select:none;-webkit-user-select:none}
#slide-surface{transform-origin:center;will-change:transform}
#canvas-host.is-zoomed{cursor:grab}
#canvas-host.is-zoomed:active{cursor:grabbing}
.zoom-controls{display:flex;align-items:center;justify-content:center;gap:7px;padding:6px 8px;border-top:1px solid #ffffff40;flex-shrink:0;background:#b1cddd55}
.zoom-controls button{min-height:40px;padding:7px 12px;font-size:12px}
.zoom-controls output{font-size:12px;min-width:42px;text-align:center;font-variant-numeric:tabular-nums}
#player.is-focus-view .zoom-controls{background:#65899f;padding:4px}
@media(max-width:600px){.zoom-controls button{min-width:40px}.zoom-controls{gap:6px}}

/* Slide-first viewer. Overlay controls never reduce the slide viewport. */
#player{position:relative}
#player #reset-zoom{position:absolute;z-index:7;bottom:12px;left:50%;transform:translateX(-50%);min-height:36px;padding:7px 15px;font-size:12px;border-radius:20px;background:#eef9ffe0;box-shadow:0 3px 18px #1234}
#player .player-bottom{position:absolute;inset:0;pointer-events:none;padding:0;z-index:6}
#player .player-bottom button{pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;border-radius:50%;font-size:29px;line-height:1;background:#eaf7ffc7;box-shadow:0 2px 14px #193d5226}
#player #prev{left:calc(env(safe-area-inset-left,0px) + 9px)}#player #next{right:calc(env(safe-area-inset-right,0px) + 9px)}
#player #counter{position:absolute;bottom:12px;right:calc(env(safe-area-inset-right,0px) + 13px);padding:4px 9px;border-radius:20px;background:#173b5688;color:#f3faff;font-size:11px}
#viewer #player.is-expanded .stage{position:absolute;inset:0;padding:0!important;gap:0;height:100%!important;min-height:0!important}
#player.is-expanded #thumbs{position:absolute;left:calc(env(safe-area-inset-left,0px) + 10px);top:64px;bottom:12px;z-index:9;display:flex;width:90px;background:#c8e4f0ed;border:1px solid #fff9;border-radius:16px}
#player.is-expanded #canvas-host{width:100%;height:100%;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
#player.is-expanded #expanded-controls{position:absolute;top:calc(env(safe-area-inset-top,0px) + 10px);right:calc(env(safe-area-inset-right,0px) + 10px);padding:0;gap:8px;z-index:12}
#player.is-expanded #expanded-controls button{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:26px;background:#eaf7ffd4;box-shadow:0 2px 14px #193d5226}
#player.is-expanded #tools-panel{position:absolute;z-index:11;top:calc(env(safe-area-inset-top,0px) + 64px);right:calc(env(safe-area-inset-right,0px) + 10px);width:min(350px,calc(100% - 20px));max-height:calc(100% - 85px);overflow:auto;background:#d3e8f4f5;border:1px solid #fff8;border-radius:20px;box-shadow:0 10px 30px #17384c33;backdrop-filter:blur(20px)}
#player.is-expanded #tools-panel .toolbar{flex-wrap:wrap}
#player.is-focus-view #tools-panel{display:none}
#player.is-expanded #slide{box-shadow:none}
#player.is-chrome-hidden #expanded-controls,#player.is-chrome-hidden .player-bottom{opacity:0;pointer-events:none}
#player.is-chrome-hidden .player-bottom button{pointer-events:none}
#expanded-controls,.player-bottom{transition:opacity .2s}
#player.is-chrome-hidden #reset-zoom{opacity:1;pointer-events:auto}

#player.is-focus-view .player-bottom,#player .player-bottom{background:transparent!important}

/* Anchor navigation to the slide host, including when thumbnails are open. */
#canvas-host>.player-bottom{position:absolute;inset:0;z-index:6}
#player #canvas-host #prev{left:calc(env(safe-area-inset-left,0px) + 9px)}
#player #canvas-host #next{right:calc(env(safe-area-inset-right,0px) + 9px)}
#thumbs{padding:7px 7px 9px}
#thumbs button{position:relative;border:2px solid transparent;transition:border-color .18s,box-shadow .18s,background .18s}
#thumbs button::after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-left:5px;vertical-align:middle;background:#187db1;box-shadow:0 0 7px #70d7ff;opacity:0}
#thumbs button[aria-current=page]{background:linear-gradient(145deg,#f1fcffd9,#c3eaf6ad);border-color:#59b8e5;box-shadow:inset 0 0 0 1px #f1fdffcc,0 0 0 2px #b9edff66,0 0 13px #7ad7ff99}
#thumbs button[aria-current=page]::after{opacity:1}

/* Presentation workspace: keep Hub navigation on the library only. */
body.presentation-open .hub-dock{display:none!important}
body.presentation-open .dealer-shell{padding-bottom:24px}
/* Automatic surround is chosen once from the opening slide. Safe areas share it. */
#player{--slide-surround:#182b3b}
#player .stage,#player #canvas-host,#player.is-expanded,#player:fullscreen{background:var(--slide-surround)!important}
#player:-webkit-full-screen{background:var(--slide-surround)!important}
#player .stage{border:0;box-shadow:none}
#player #slide-surface,#player #slide{border:0;outline:0;box-shadow:none;background:transparent}
#player #slide{object-fit:fill}
/* Original outline SVGs follow the iPhone-style weight and glass control system. */
#player button svg,#back-library svg{display:block;flex:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#player .toolbar button,#player #reset-zoom{display:inline-flex;align-items:center;justify-content:center;gap:7px}
#player .toolbar button svg{width:17px;height:17px}
#player #reset-zoom svg{width:15px;height:15px}
#player .player-bottom button,#player.is-expanded #expanded-controls button{display:grid;place-items:center;background:rgba(238,247,252,.84);color:#193a52;border:1px solid rgba(255,255,255,.7);box-shadow:0 3px 12px #0b263523,inset 0 1px 0 #ffffff80;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
#player .viewer-icon-button:active{background:rgba(220,237,247,.96)}
#player.is-expanded #expanded-controls button[aria-expanded=true]{background:#e7f5ffff;box-shadow:0 0 0 2px #8bd3f566}
#player[data-surround-tone=dark] .player-bottom button,#player[data-surround-tone=dark].is-expanded #expanded-controls button{color:#f3f8fc;background:rgba(39,62,79,.78);border-color:#edf6ff3d;box-shadow:0 3px 16px #0003,inset 0 1px 0 #fff2}
@media(prefers-reduced-motion:reduce){#expanded-controls,.player-bottom,#thumbs button{transition:none}}

/* Single-row phone actions and clean thumbnail frames. */
@media(max-width:759px){
 #player .toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:11px 10px}
 #player .toolbar #slide-status{display:none}
 #player .toolbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:64px;margin:0;padding:8px 3px;border-radius:14px;font-size:10px;line-height:1.2;white-space:nowrap;background:#edf8ff35;border:1px solid #edf8ff7a;box-shadow:none}
 #player .toolbar button svg{width:21px;height:21px;stroke-width:1.7}
 #player .toolbar #thumb-toggle[aria-expanded=true]{background:#d9f2ffb3;border-color:#82c8ea;color:#17496a;box-shadow:inset 0 0 0 1px #edfaff80}
 #player.is-expanded .toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
}
#player #thumbs{gap:10px;padding:8px 7px 10px;isolation:isolate}
#player #thumbs button{appearance:none;-webkit-appearance:none;flex-shrink:0;overflow:hidden;isolation:isolate;contain:paint;border-radius:13px;border:1px solid #b3c8d940;padding:5px 5px 7px;box-shadow:none;background:#263d4e;color:#e9f5ff;font-weight:600;line-height:1.25;transition:background .15s,border-color .15s}
#player #thumbs button canvas{display:block;width:100%;height:auto;margin:0 0 6px;border:0;border-radius:5px;box-shadow:none;outline:none}
#player #thumbs button::before{content:none}
#player #thumbs button::after{width:5px;height:5px;margin-left:4px;background:#197daa;box-shadow:none}
#player #thumbs button[aria-current=page]{background:#d9f1fc;color:#154462;border-color:#8cd9fa;box-shadow:0 0 0 1px #8edaff70,0 0 9px #70cded70;transform:none}
#player #thumbs button[aria-current=page]::after{opacity:1}
#player #thumbs button:focus-visible{outline:2px solid #b4eaff;outline-offset:2px}

/* Safari rotation: anchor to the viewport rather than transient JS offsets. */
#player.is-expanded{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;height:100dvh!important}

/* Top-level document-flow expansion avoids fixed-body hit-testing after rotation. */
html.presentation-fullscreen{height:100%;min-height:0;overflow:hidden}
html.presentation-fullscreen body{position:static!important;inset:auto!important;width:100%;height:100dvh;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden}
html.presentation-fullscreen body>main,html.presentation-fullscreen body>nav{display:none!important}
html.presentation-fullscreen body>#player.is-expanded{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;width:100%!important;height:100dvh!important;margin:0!important;border-radius:0}
html.presentation-fullscreen #player.is-expanded .stage{position:absolute;inset:0;height:100%!important;min-height:0!important;flex:none;padding:0!important;gap:0}
/* All overlay controls, including Exit, follow the same auto-hide behaviour. */
#player.is-chrome-hidden #expanded-controls{opacity:0;pointer-events:none}
#player.is-chrome-hidden #expanded-controls button{pointer-events:none}

/* Visible loading/recovery on every phone layout, including expanded view. */
#pdf-message{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;text-align:center;background:var(--slide-surround,#182b3b);color:#f0f7fc;overflow:auto}
#pdf-message p{margin:0;max-width:340px;font-size:13px;line-height:1.6}
#player[data-surround-tone=light] #pdf-message{color:#183b55}
#retry-pdf{min-height:44px;background:#eff9ffe6;color:#173c56;box-shadow:none}
#refresh-presentation{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%;box-shadow:none}
#refresh-presentation svg{width:21px;height:21px}
#refresh-presentation.is-busy svg{animation:presentation-refresh 1s linear infinite}
@keyframes presentation-refresh{to{transform:rotate(360deg)}}
.live-toolbar #live-count{margin-left:auto}
@media(max-width:600px){.live-toolbar{gap:7px}.live-toolbar .live-buttons{gap:6px}.live-toolbar .live-buttons button{padding:9px}.live-toolbar #live-count{font-size:10px}#refresh-presentation{width:40px;height:40px;min-height:40px;padding:9px}}
@media(prefers-reduced-motion:reduce){#refresh-presentation.is-busy svg{animation:none}}

/* Reset confirmation remains protected by its separate PIN. */
#reset-live-dialog{max-width:min(390px,calc(100vw - 32px));color:#183d5b}
#reset-live-dialog p{font-size:14px;line-height:1.5}
#reset-live-pin{font-size:18px;letter-spacing:.4em;width:100%;min-height:44px}
#reset-live-status:empty{display:none}
#confirm-reset-live{background:#813d49;color:white}
@media(max-width:380px){.live-toolbar .live-buttons button{padding:8px 6px;font-size:11px}.live-toolbar{gap:5px}#refresh-presentation{width:34px;height:34px;min-height:34px}.live-toolbar #live-count{font-size:9px}}

/* Keep the original status badge appearance while making it a native button. */
.viewer-heading button.badge{min-height:0;box-shadow:none;font-weight:400;line-height:normal}
