:root{--ink:#f1f7fc;--muted:#99b1c3;--bg:#071321;--pane:#0e2134;--panel:#11283e;--line:#284255;--teal:#18c8b4;--gold:#f5c770;--blue:#2c89bb;--radius:20px;--shadow:0 28px 84px #0008}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;height:100%}html{font-family:Inter,"Segoe UI",Arial,system-ui,sans-serif}body{background:#071321;color:var(--ink);overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffd38a;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit}.app{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:300px;background:radial-gradient(ellipse 58% 46% at 54% 49%,#183653aa,transparent 95%),radial-gradient(ellipse 45% 55% at 0% 100%,#0f6d6960,transparent),#071321}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;gap:12px;border-bottom:1px solid #344b5d99;min-height:75px;background:#0d1c2ce6;z-index:3}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{width:44px;height:44px;object-fit:contain;background:white;border-radius:11px;padding:3px;box-shadow:0 3px 11px #0003}.brand-copy{display:flex;flex-direction:column;gap:4px;white-space:nowrap;overflow:hidden}.brand-copy strong{font-size:16px;font-weight:780;text-overflow:ellipsis;overflow:hidden}.brand-copy small{font-size:12px;color:var(--muted)}.top-actions{display:flex;gap:7px;align-items:center}.small-btn{background:#12283a;border:1px solid #2b4659;color:#deebf4;font-size:13px;font-weight:650;border-radius:11px;padding:11px 13px;white-space:nowrap;transition:.15s ease}.small-btn:hover{border-color:var(--teal);background:#1a364c}.small-btn.accent{color:#061923;background:#33ddca;border-color:#33ddca}.small-btn.accent:hover{background:#b0fff2}
.main-area{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;padding:16px 24px}.stage{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden}.slide-frame{position:relative;width:min(100%,calc((100dvh - 174px) * 1.778));aspect-ratio:1601/900;max-width:1601px;max-height:100%;box-shadow:var(--shadow);background:#eaf2f5;overflow:hidden;border-radius:11px;border:1px solid #47708477}.slide-image{display:block;width:100%;height:100%;object-fit:fill;user-select:none}.slide-tag{position:absolute;top:1.4%;right:1.35%;background:#061825c4;backdrop-filter:blur(8px);border:1px solid #ffffff3b;color:#e8fff9;font-size:clamp(8px,1vw,12px);font-weight:760;letter-spacing:.12em;padding:.55em 1em;border-radius:99px;opacity:0;transition:opacity .2s}.stage:hover .slide-tag{opacity:1}.qr-layer{position:absolute;inset:0;pointer-events:none}.qr-over{position:absolute;top:48.2%;width:14.3%;height:26.1%;background:#fff;display:flex;align-items:center;justify-content:center;pointer-events:auto;padding:.7%;box-shadow:0 1px 4px #aaa7}.qr-over img{max-width:100%;max-height:100%;height:100%;width:100%;object-fit:contain}.qr-chatbot{left:20.1%}.qr-attendance{left:66.2%}.qr-over:not([href]){cursor:default}.qr-over:empty{display:none}.stage-arrow{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #4e7888bd;background:#082d3ed9;color:white;border-radius:16px;font-size:24px;width:45px;height:64px;opacity:0;transition:opacity .17s ease,background .17s;z-index:1}.stage:hover .stage-arrow,.stage-arrow:focus-visible{opacity:1}.stage-arrow:hover{background:#117b82}.stage-prev{left:max(0px,calc((100% - min(100%, (100dvh - 174px) * 1.778))/2 - 48px))}.stage-next{right:max(0px,calc((100% - min(100%, (100dvh - 174px) * 1.778))/2 - 48px))}.fs-hint{display:none}
.footer{background:#0d1c2ce9;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #344b5d99;min-height:77px;padding:12px 22px}.footer-info{display:flex;flex-direction:column;gap:3px;min-width:0;max-width:36%;flex:1}.chapter,.eyebrow{color:#6fdfd0;letter-spacing:.12em;font-size:11px;font-weight:800}.current-title{font-size:14px;font-weight:660;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{display:flex;gap:8px;align-items:center}.nav-btn{padding:11px 15px;background:#132b40;border:1px solid #31516a;color:#edf9ff;border-radius:11px;font-size:14px;font-weight:720;white-space:nowrap}.nav-btn:hover{background:#21445e}.nav-btn.home{border-color:#1c9c8c;color:#8ef7e9}.nav-btn.next{background:#21bca9;color:#04252c;border-color:#23ccb8}.nav-btn.next:hover{background:#57e9d8}.counter-area{text-align:right;min-width:87px}.counter{background:transparent;border:0;color:#fcfdff;font-size:17px;font-weight:780;letter-spacing:.03em;padding:5px 3px}.countSep{font-size:13px;color:#8fa7bb}.progress{height:4px;background:#2e465b;border-radius:99px;margin-top:5px;overflow:hidden;width:95px}.progress>div{height:100%;width:6.66%;background:linear-gradient(90deg,#14bda9,#f5c770);transition:width .22s ease}
.overlay[hidden],[hidden]{display:none!important}.overlay{position:fixed;inset:0;background:#020b15d8;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(8px)}.dialog{background:linear-gradient(145deg,#142c42,#0c1b2b);border:1px solid #365b72;box-shadow:var(--shadow);border-radius:20px;max-height:min(90vh,900px);overflow:auto;width:min(1030px,100%)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;padding:24px 26px 15px;gap:14px}.dialog-head h2{font-size:26px;letter-spacing:-.04em;margin:5px 0 6px}.dialog-head p{margin:0;color:#adc1d2;font-size:14px}.close-btn{height:40px;width:40px;font-size:28px;line-height:1;background:#20364b;color:white;border:1px solid #46657a;border-radius:11px}.close-btn:hover{background:#35617b}.chapter-filters{padding:0 25px 17px;display:flex;gap:8px;flex-wrap:wrap}.filter{border:1px solid #466278;color:#bcd4e6;padding:8px 12px;border-radius:30px;background:#173047;font-size:12px;font-weight:760}.filter[aria-pressed="true"]{background:#21bca9;color:#071c23;border-color:transparent}.thumb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;padding:0 26px 25px}.thumb{background:#172a3a;border:1px solid #29475b;border-radius:11px;padding:8px;text-align:left;color:inherit;transition:.17s}.thumb:hover,.thumb.current{border-color:#36cfbe;transform:translateY(-2px);background:#1c3b48}.thumb img{display:block;aspect-ratio:16/9;width:100%;object-fit:cover;border-radius:5px;background:#eee}.thumb-label{display:flex;align-items:start;gap:8px;margin-top:9px;font-size:12px;line-height:1.35;min-height:33px}.thumb-no{font-size:11px;color:#79e5d9;font-weight:850}.notes-dialog{max-width:780px}.notes-content{white-space:pre-wrap;line-height:1.78;font-size:16px;padding:12px 27px 24px;color:#d8e7f1}.notes-content .note-section{margin:0 0 15px}.notes-content b{color:#72e7d9}.notes-actions{padding:16px 26px 22px;border-top:1px solid #315064;display:flex;gap:10px;justify-content:flex-end}.config-dialog{max-width:840px}.qr-form{padding:2px 26px 26px}.qr-form .field-group{background:#132b41;border:1px solid #35556d;border-radius:14px;padding:18px;margin:12px 0 17px}.field-group h3{margin:0 0 14px;color:#e8ffff;font-size:16px}.field-group label{display:block;color:#c7dbe7;font-weight:600;font-size:13px;margin:12px 0 7px}.field-group input[type="url"]{display:block;width:100%;font-size:15px;padding:12px;border:1px solid #58758a;border-radius:9px;background:#0c2131;color:#eaffff}.field-group input[type="file"]{display:block;width:100%;font-size:13px;color:#bad1df}.hint{font-size:12px;display:block;color:#9eb8c9;margin-top:8px}.config-warning{line-height:1.65;font-size:13px;color:#acc1cc;margin:20px 0}.config-warning strong{color:#fff}.config-warning code{color:#ffe3aa}.form-actions{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.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}
/* Full-screen mode: no surrounding chrome; arrows surface on mouse movement */
.stage:fullscreen{width:100vw;height:100vh;max-height:none;padding:0;background:#071321}.stage:fullscreen .slide-frame{width:min(100vw,calc(100vh * 1.778));max-width:none;max-height:100vh;border-radius:0;border:0}.stage:fullscreen .stage-prev{left:8px}.stage:fullscreen .stage-next{right:8px}.stage:fullscreen .slide-tag{opacity:0}.stage:fullscreen:hover .slide-tag{opacity:1}.stage:fullscreen .fs-hint{display:block;position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:12px;background:#00131aca;color:#fff;padding:8px 13px;border-radius:99px;opacity:0;transition:.3s}.stage:fullscreen:hover .fs-hint{opacity:.92}
@media(max-width:1000px){.brand-copy small{display:none}.small-btn .btn-label{display:none}.small-btn{font-size:18px;padding:9px 11px}.topbar{min-height:64px}.slide-frame{width:min(100%,calc((100dvh - 152px) * 1.778))}.footer{min-height:76px}.footer-info{max-width:40%}.stage-prev{left:0}.stage-next{right:0}}
@media(max-width:650px){.topbar{min-height:55px;padding:6px 10px}.brand-logo{width:35px;height:35px}.brand{gap:8px}.brand-copy strong{font-size:12px}.top-actions{gap:5px}.small-btn{font-size:16px;padding:7px 9px}.main-area{padding:8px}.slide-frame{width:100%;border-radius:6px}.stage-arrow{opacity:.8;width:28px;height:37px;font-size:16px;border-radius:8px;top:50%}.footer{flex-wrap:wrap;justify-content:center;gap:7px;padding:9px}.footer-info{order:0;flex-basis:70%;max-width:70%}.counter-area{order:1;margin-left:auto;min-width:65px}.progress{width:65px}.controls{order:2;flex-basis:100%;justify-content:center}.nav-btn{padding:9px 14px;font-size:13px}.current-title{font-size:12px}.chapter{font-size:10px}.thumb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 15px 15px}.dialog-head{padding:16px 17px 15px}.dialog-head h2{font-size:21px}.chapter-filters{padding:0 15px 15px}.qr-form{padding:0 14px 18px}.notes-content{font-size:14px;padding:8px 17px 18px}.dialog{max-height:95vh}.overlay{padding:8px}}
@media(orientation:landscape) and (max-height:530px){.topbar{min-height:44px;padding:4px 12px}.brand-logo{width:30px;height:30px}.footer{min-height:48px;padding:4px 12px}.nav-btn{padding:7px 13px}.main-area{padding:3px 10px}.slide-frame{width:min(100%,calc((100dvh - 112px) * 1.778))}.stage:fullscreen .slide-frame{width:min(100vw,calc(100vh * 1.778))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
