:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0d121b;color:#f4f7fb}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#182437,#0d121b 65%)}button,input{font:inherit}h1,h2,p{margin:0}.file-label,button{-webkit-tap-highlight-color:transparent;cursor:pointer}.score-sync-link{min-height:44px;padding:11px 15px;display:inline-flex;align-items:center;border:1px solid #ad8feb;border-radius:12px;color:#e5d9ff;text-decoration:none;font-size:.85rem;background:#362d53}.score-sync-link:hover{background:#48396f}button{color:inherit;border:1px solid #344157;border-radius:12px;background:#202c3e;padding:10px 16px;min-height:44px}button:hover{background:#2c3d55}button:disabled{opacity:.35;cursor:not-allowed}.file-label:focus-within,button:focus-visible{outline:3px solid #89bdff;outline-offset:4px}.app-shell{max-width:1480px;margin:auto;min-height:100dvh;padding:24px;flex-direction:column}.app-shell,.topbar{display:flex;gap:16px}.topbar{justify-content:space-between;align-items:center}.brand-block h1{font-size:1.15rem}.brand-block p{font-size:.85rem;color:#9fb0c6;margin-top:5px}.topbar-actions{display:flex;align-items:center;gap:8px}.usage-guide-button{background:#83dfbc;color:#102b22;border-color:#a5efd2;font-weight:700;box-shadow:0 3px 12px #83dfbc26}.usage-guide-button:hover{background:#a5efd2;border-color:#c3f8e2}.usage-guide-button:active{background:#6bd0a8}.file-label{position:relative;min-height:44px;padding:12px 22px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#d8e8ff;color:#10203a}.file-label:hover{background:#edf5ff}.file-label input{position:absolute;width:1px;height:1px;opacity:0}.motion-bar{justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #2a394c;border-radius:14px;background:#142031}.motion-bar,.motion-bar-copy{display:flex;align-items:center}.motion-bar-copy{flex-wrap:wrap;gap:10px}.motion-bar-copy strong{font-size:.95rem}.motion-bar-copy>span:last-child{font-size:.82rem;color:#9fb0c6}.status-dot{width:8px;height:8px;border-radius:50%;background:#9fb0c6}.status-dot.is-ready{background:#79ddb3}.camera-toggle{flex-shrink:0;background:transparent;font-size:.85rem}.permission-help{padding:14px;border:1px solid #8b6140;border-radius:12px;background:#362719;color:#ffe0bd;line-height:1.6}.workspace-grid{display:grid;flex:1 1;min-height:480px}.viewer-card{position:relative;padding:14px;border:1px solid #293448;border-radius:18px;background:#111a27;display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-gap:12px;gap:12px;min-width:0}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.viewer-heading{min-width:0;flex:1 1}.viewer-heading h2{font-size:.92rem;color:#b2bfd0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.page-buttons{flex-shrink:0}.page-buttons button{font-size:.85rem}.zoom-controls{display:flex;align-items:center;border:1px solid #344157;border-radius:12px;overflow:hidden}.zoom-controls button{min-width:42px;min-height:42px;padding:6px 10px;border:0;border-radius:0;background:transparent;font-size:1.1rem}.zoom-controls span{min-width:52px;text-align:center;color:#c9d5e5;font-size:.8rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.head-scroll-hint{color:#9fb0c6;font-size:.75rem;white-space:nowrap}.head-scroll-hint.is-active{color:#83dfbc}.pdf-viewer{position:relative;display:flex;align-items:center;justify-content:center;background:#080e17;border-radius:12px;overflow:hidden;min-height:380px;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;user-select:none}.pdf-canvas-stage{display:grid;place-items:center;min-width:100%;min-height:100%}.pdf-canvas-stage[hidden]{display:none}.pdf-viewer canvas{display:block;max-width:100%;max-height:75dvh;width:auto;height:auto;object-fit:contain}.pdf-viewer.is-zoomed{align-items:flex-start;justify-content:center;overflow-x:hidden;overflow-y:auto;touch-action:pan-y}.pdf-viewer.is-zoomed .pdf-canvas-stage{width:100%;min-width:100%;min-height:100%;place-items:start center}.pdf-viewer.is-zoomed canvas{max-width:100%;max-height:none}.empty-viewer{width:100%;padding:56px 20px;text-align:center}.empty-viewer-content{display:flex;flex-direction:column;gap:20px;align-items:center}.empty-eyebrow{font-size:.7rem;letter-spacing:.16em;color:#89b8f3}.empty-viewer h2{font-size:clamp(1.9rem,4vw,3rem);line-height:1.35;letter-spacing:-.05em}.empty-viewer p{color:#aabbd1;line-height:1.7}.empty-viewer .file-label{margin-top:8px;min-height:54px;padding:14px 34px}.empty-note{font-size:.8rem;color:#91a2b9;line-height:1.5}.reader-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:20px;padding:4px}.page-navigation{display:flex;align-items:center;gap:16px}.page-navigation>span{min-width:68px;text-align:center;color:#aabbd1}.page-navigation strong{color:#fff}.page-navigation button{background:transparent}.detection-feedback{min-width:220px;max-width:100%;text-align:center}.detection-feedback p{font-size:.85rem;color:#b9d3f1;line-height:1.5}.hold-progress{height:4px;max-width:280px;margin:8px auto 0;background:#27364a;overflow:hidden;border-radius:4px}.hold-progress>div{height:100%;background:#83dfbc;transition:width .08s linear}.saved-library{padding:18px;background:#172132;border:1px solid #344157;border-radius:14px}.saved-library h2{font-size:1rem;margin-bottom:12px}.saved-score-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));grid-gap:10px;gap:10px;padding:0;margin:0;list-style:none}.saved-score-item{display:flex;gap:8px;min-width:0}.saved-score-open{flex:1 1;min-width:0;text-align:left}.saved-score-open strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-empty,.saved-score-open span{display:block;font-size:.8rem;color:#aabbd1;margin-top:6px}.saved-score-delete{color:#f6babb;background:transparent}.gesture-notice{flex-shrink:0;border-radius:6px;background:#1b3b31;color:#c5ffe5;padding:3px 8px;font-size:.75rem;line-height:18px;white-space:nowrap}.camera-feed-hidden{position:fixed;top:-9999px;left:-9999px;width:160px;height:120px;opacity:0;pointer-events:none}.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}.is-focus-mode{max-width:none;padding:0;gap:0}.is-focus-mode .motion-bar,.is-focus-mode .permission-help,.is-focus-mode .saved-library,.is-focus-mode .topbar,.is-focus-mode .viewer-heading{display:none}.is-focus-mode .workspace-grid{height:100dvh;min-height:0;flex:none}.is-focus-mode .viewer-card{height:100%;min-height:0;padding:0;border:0;border-radius:0;gap:0;grid-template-rows:calc(24px + env(safe-area-inset-top, 0px)) minmax(0,1fr)}.is-focus-mode .pdf-viewer{grid-row:2;border-radius:0;height:100%;min-height:0}.is-focus-mode .pdf-viewer canvas{width:100%;height:100%;max-height:100%;object-fit:contain}.is-focus-mode .pdf-viewer.is-zoomed{align-items:flex-start;justify-content:center;overflow-x:hidden;overflow-y:auto}.is-focus-mode .pdf-viewer.is-zoomed canvas{width:auto;height:auto;max-width:100%;max-height:none}.is-focus-mode .reader-footer,.is-focus-mode .viewer-toolbar{display:none}.focus-feedback-slot{grid-row:1;min-width:0;padding:env(safe-area-inset-top,0) 8px 0;display:flex;align-items:center;justify-content:center;background:#080e17}.focus-detection-feedback{min-width:0;max-width:100%;pointer-events:none}.focus-detection-feedback .detection-feedback{display:flex;align-items:center;gap:10px;min-width:0}.focus-detection-feedback .detection-feedback p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px}.focus-detection-feedback .hold-progress{flex:0 0 52px;width:52px;height:2px;margin:0}.focus-close-button{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px;min-height:44px;padding:0;justify-content:center;border-radius:50%;background:#111a27;color:#fff;border:1px solid #6b7d95;font-size:30px;line-height:1}.focus-close-button,.focus-view-controls{position:absolute;z-index:9;display:flex;align-items:center;box-shadow:0 2px 8px #0006;opacity:0;pointer-events:none;transition:opacity .15s}.focus-view-controls{top:max(8px,env(safe-area-inset-top));left:50%;gap:6px;max-width:calc(100% - 120px);padding:2px 6px 2px 2px;border:1px solid #40516a99;border-radius:12px;background:#111a27c7;transform:translateX(-50%)}.focus-view-controls .zoom-controls{border:0}.focus-view-controls .zoom-controls button{min-width:40px;min-height:40px;padding:4px 8px}.focus-view-controls .zoom-controls span{min-width:46px}.focus-page-position{padding-left:4px;color:#c9d5e5;font-size:.75rem;white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.focus-close-button:focus-visible,.focus-view-controls:focus-within,.show-focus-controls .focus-close-button,.show-focus-controls .focus-view-controls{opacity:1;pointer-events:auto}@media (max-width:640px){.app-shell{padding:12px;gap:12px}.brand-block h1{font-size:1rem}.brand-block p{display:none}.topbar-actions{gap:6px}.topbar-actions .file-label,.topbar-actions button{font-size:.8rem;padding:10px}.motion-bar{padding:10px;gap:8px}.motion-bar-copy{gap:6px}.motion-bar-copy>span:last-child{display:none}.motion-bar-copy strong{font-size:.85rem}.viewer-card{padding:10px}.viewer-toolbar{align-items:flex-start}.viewer-actions{gap:6px}.head-scroll-hint{display:none}.focus-view-controls{top:max(6px,env(safe-area-inset-top));left:6px;max-width:calc(100% - 62px);transform:none}.focus-view-controls .zoom-controls button{min-width:40px;min-height:40px}.focus-close-button{top:max(8px,env(safe-area-inset-top));right:8px}.zoom-controls button{min-width:38px;padding:6px 8px}.zoom-controls span{min-width:46px}.page-buttons button{padding:10px}.workspace-grid{min-height:420px}.pdf-viewer{min-height:300px}.empty-viewer{padding:40px 12px}.empty-viewer p{font-size:.9rem}.reader-footer{gap:12px}.is-focus-mode{padding:0;gap:0}.is-focus-mode .viewer-card{padding:0}}@media (orientation:landscape) and (max-height:900px){.is-focus-mode .pdf-viewer{align-items:flex-start;overflow-x:hidden;overflow-y:auto;touch-action:pan-y}.is-focus-mode .pdf-canvas-stage{width:100%;min-width:100%;min-height:100%;place-items:start center}.is-focus-mode .pdf-viewer canvas{width:100%;height:auto;max-width:100%;max-height:none}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.mouth-duration-setting{display:grid;grid-template-columns:1fr auto;grid-gap:6px 10px;gap:6px 10px;align-items:center;padding:10px;border-radius:12px;background:rgba(116,196,255,.08);color:#e9f3ff;font-size:.88rem;font-weight:700}.mouth-duration-control select{min-height:34px;padding:0 28px 0 10px;border:1px solid rgba(116,196,255,.35);border-radius:9px;background:#182538;color:#f4f7fb;cursor:pointer}.mouth-duration-setting small{grid-column:1/-1;color:#9fb0c6;font-size:.78rem;font-weight:400;line-height:1.4}.practice-link{font-size:.85rem;color:#b9d7ff;background:transparent;border-color:#405878}.practice-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:24px;border:1px solid #405878;border-radius:20px;background:#111a27;color:#f4f7fb;box-shadow:0 20px 80px #0008}.practice-dialog::-webkit-backdrop{background:#030810cc}.practice-dialog::backdrop{background:#030810cc}.practice-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.practice-heading button{padding:0;width:44px;flex-shrink:0;font-size:26px}.practice-dialog h2{font-size:1.3rem;line-height:1.5}.practice-dialog>p{margin-top:12px;color:#c3d0e2;line-height:1.8;font-size:1rem}.practice-dialog>p strong{color:#f4f7fb;font-weight:700}.practice-demo{display:flex;flex-direction:column;align-items:center;gap:20px;margin:24px 0 16px;padding:24px 12px;border-radius:14px;background:#172336}.demo-portrait{display:block;width:132px;height:auto;overflow:visible}.demo-mouth{transform-box:fill-box;transform-origin:center;transform:scaleY(.12);animation:practice-mouth 1.6s linear infinite}@keyframes practice-mouth{0%,24%,35%,50%,9%,to{transform:scaleY(.12)}12%,21%,38%,47%{transform:scaleY(1)}}.demo-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px;width:100%;margin:0;padding:0;list-style-position:inside;color:#d4e3f7;font-size:.85rem;text-align:center}.practice-feedback{margin-top:20px;padding:16px;background:#202e42;border-radius:12px;color:#deebff;line-height:1.6;min-height:80px}.practice-feedback.is-success{color:#b6f4d7;background:#19392e}.practice-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px}.practice-dialog .practice-note{font-size:.8rem}@media (prefers-reduced-motion:reduce){.demo-mouth,.demo-mouth.is-next{animation:none!important}}.guide-directions{display:flex;gap:8px;padding:4px;border-radius:14px;background:#080e17}.guide-directions button{flex:1 1;padding-inline:10px;font-size:.85rem}.guide-directions button[aria-pressed=true]{background:#d8e8ff;color:#10203a;border-color:#d8e8ff}.demo-mouth.is-next{animation-name:practice-next-mouth;animation-timing-function:linear;animation-delay:.3s}@keyframes practice-next-mouth{0%,49.99%{transform:scaleY(1)}50%,to{transform:scaleY(.12)}}@media (max-width:480px){.topbar{flex-wrap:wrap}.topbar-actions{margin-left:auto;flex-wrap:wrap}}.practice-dialog .mouth-duration-setting{margin-top:16px}.storage-error{justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px;border:1px solid #8b6140;border-radius:12px;background:#362719;line-height:1.6}.render-error,.storage-error{display:flex;align-items:center;color:#ffe0bd}.render-error{position:absolute;inset:0;z-index:10;flex-direction:column;justify-content:center;gap:16px;padding:24px;text-align:center;background:#080e17ed}.is-focus-mode .storage-error{display:none}.guide-action-title{margin:24px 0 0;font-size:1.1rem;line-height:1.5}.practice-dialog .guide-tip{padding:12px;border-radius:10px;background:#1c2a3c;color:#c5d9f3;font-size:.85rem}.head-scroll-guide{display:grid;grid-template-columns:110px 1fr;grid-gap:18px;gap:18px;align-items:center;margin:24px 0 16px;padding:20px;border-radius:14px;background:#172336}.head-scroll-visual{display:grid;grid-template-columns:64px;grid-template-rows:32px 76px 32px;place-items:center;color:#83dfbc;font-size:1.4rem}.head-scroll-up{grid-column:1}.head-scroll-face{grid-column:1;grid-row:2}.head-scroll-down{grid-column:1;grid-row:3}.head-scroll-face{width:64px;height:76px;display:grid;place-items:center;border:3px solid #d8e8ff;border-radius:45%;color:#d8e8ff;font-size:.75rem;animation:head-guide-motion 2.4s ease-in-out infinite}.head-scroll-steps{display:grid;grid-gap:12px;gap:12px;margin:0;padding-left:20px;color:#d4e3f7}.head-scroll-steps li{padding-left:4px}.head-scroll-steps span,.head-scroll-steps strong{display:block}.head-scroll-steps span{margin-top:2px;color:#9fb0c6;font-size:.8rem;line-height:1.4}@keyframes head-guide-motion{0%,20%,80%,to{transform:translateY(0)}40%{transform:translateY(-8px)}60%{transform:translateY(8px)}}@media (prefers-reduced-motion:reduce){.head-scroll-face{animation:none}}@media (max-width:480px){.guide-directions{flex-wrap:wrap}.guide-directions button{min-width:30%}.head-scroll-guide{grid-template-columns:1fr}}.guide-try{margin-top:24px;padding-top:20px;border-top:1px solid #344157}.guide-try h3{margin:0;font-size:1rem;line-height:1.5}.guide-try>p{margin-top:8px;color:#bfcee2;font-size:.85rem;line-height:1.6}.guide-try .practice-feedback{margin-top:12px}.primary-practice-action{margin-top:16px;width:100%;background:#d8e8ff;color:#10203a;border-color:#d8e8ff;font-weight:700}.primary-practice-action:hover{background:#edf5ff}.language-control select{min-height:44px;max-width:100%;padding:10px 12px;border:1px solid #405878;border-radius:12px;background:#172336;color:#f4f7fb;font:inherit;cursor:pointer}.language-control select:focus-visible{outline:3px solid #89bdff;outline-offset:4px}.topbar{flex-wrap:wrap}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}html:lang(en) .empty-viewer h2{letter-spacing:-.03em}@media (max-width:640px){.language-control select{font-size:.8rem;padding:10px}}