:root{--font-app:"Phetsarath", "Segoe UI", system-ui, -apple-system, sans-serif;--font-mono:ui-monospace, "Cascadia Mono", Consolas, monospace;--bg:#050a12;--panel:#0a121d;--panel-border:#17303e;--text:#eaf6fb;--text-dim:#7fa3b5;--text-faint:#4d6a78;--accent:#2be3ff;--accent-ink:#03141a;--accent-soft:#2be3ff1f;--tr:#ffb86b;--danger:#c93a3a;--danger-text:#ff8a8a;--warn-bg:#ffaa3c1f;--warn-border:#ffaa3c66;--warn-text:#ffc27a;--ok-text:#4fdc9a;--input-bg:#050c14;--hairline:#2be3ff2e;--radius:10px;--shadow-md:0 10px 30px #00000080;--overlay:#02060cb3;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light]{--bg:#eef6f9;--panel:#fff;--panel-border:#c7e4ec;--text:#0a1f27;--text-dim:#4f7683;--text-faint:#9ab3bd;--accent:#0b7285;--accent-ink:#fff;--accent-soft:#0b72851a;--tr:#b35c00;--danger-text:#b02f2f;--warn-bg:#fff4e5;--warn-border:#f5c27a;--warn-text:#8a4b00;--ok-text:#158a55;--input-bg:#f4fafc;--hairline:#0b728529;--shadow-md:0 14px 30px #0f28301f;--overlay:#0a1f2759;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}button,input,select,option,optgroup,textarea,svg text{font-family:inherit}html,body{height:100%;margin:0}body{font-family:var(--font-app);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}h2{margin:4px 0 14px;font-size:20px}h3{margin:0 0 12px;font-size:16px}.mono{font-family:var(--font-mono)}.app{flex-direction:column;max-width:960px;height:100dvh;margin:0 auto;padding:0 16px 12px;display:flex;overflow:hidden}.topbar{flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 0 10px;display:flex}.brand{color:var(--text);cursor:pointer;background:0 0;border:none;align-items:center;gap:10px;padding:0;display:flex}.brand-mark{background:var(--accent);width:34px;height:34px;color:var(--accent-ink);border-radius:9px;place-items:center;display:grid}.brand-name{font-size:18px;font-weight:700}.topbar-actions{align-items:center;gap:8px;display:flex}.icon-btn{border:1px solid var(--panel-border);background:var(--panel);width:38px;height:38px;color:var(--text-dim);cursor:pointer;border-radius:50%;place-items:center;display:grid}.icon-btn:hover,.icon-btn.on{color:var(--accent);border-color:var(--accent)}.btn-primary{border-radius:var(--radius);background:var(--accent);color:var(--accent-ink);cursor:pointer;white-space:nowrap;border:none;justify-content:center;align-items:center;gap:6px;padding:11px 20px;font-size:15px;font-weight:700;display:inline-flex}.btn-primary:disabled{opacity:.5;cursor:default}.btn-ghost,.btn-danger,.btn-logout{border-radius:var(--radius);border:1px solid var(--panel-border);color:var(--text);cursor:pointer;white-space:nowrap;background:0 0;justify-content:center;align-items:center;padding:8px 14px;font-size:14px;text-decoration:none;display:inline-flex}.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}.btn-ghost:disabled{opacity:.5;cursor:default}.btn-danger{border-color:var(--danger);background:var(--danger);color:#fff}.btn-logout{border-color:var(--danger);color:var(--danger-text)}.small{padding:6px 12px;font-size:13.5px}.back-link{color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:8px;align-self:flex-start;align-items:center;gap:2px;margin:0 0 6px -6px;padding:4px 8px 4px 2px;font-size:14.5px;display:inline-flex}.back-link:hover{color:var(--accent)}.notice{border-radius:var(--radius);flex-shrink:0;margin:0 0 10px;padding:10px 12px;font-size:14.5px;line-height:1.6}.notice-error{color:var(--danger-text);background:#c93a3a1f;border:1px solid #c93a3a59}.notice-warn{background:var(--warn-bg);border:1px solid var(--warn-border);color:var(--warn-text)}.field-error{color:var(--danger-text);margin:0;font-size:14px}.hint{color:var(--text-dim);margin:0;font-size:13.5px;font-weight:400}.hint-warn{color:var(--warn-text)}.center{text-align:center}.test-ok{color:var(--ok-text);font-size:14px}.page{flex-direction:column;flex:1;min-height:0;padding-bottom:24px;display:flex;overflow-y:auto}.section-head{align-items:center;gap:10px;margin-bottom:12px;display:flex}.section-head h2{margin:0}.count-badge{background:var(--accent-soft);color:var(--accent);border-radius:12px;padding:2px 10px;font-size:13.5px;font-weight:700}.empty-card{border:1px dashed var(--panel-border);border-radius:var(--radius);text-align:center;color:var(--text-dim);padding:28px 16px;line-height:1.7}.empty-card p{margin:0}.empty-sub{font-size:14px}.groups{flex-direction:column;gap:10px;display:flex}.group-head{z-index:1;border:1px solid var(--panel-border);border-radius:var(--radius);background:var(--panel);width:100%;color:var(--text);text-align:left;cursor:pointer;align-items:center;gap:8px;padding:10px 12px;font-size:16px;font-weight:700;display:flex;position:sticky;top:0}.group-label{flex:1}.chevron{color:var(--text-dim);transition:transform .15s;display:inline-block}.chevron.open{transform:rotate(90deg)}.group-body{padding:10px 0 4px}.group-empty{border:1px dashed var(--panel-border);border-radius:var(--radius);color:var(--text-dim);text-align:center;margin:0;padding:14px 12px;font-size:14px}.lesson-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.lesson-card{border:1px solid var(--panel-border);border-radius:var(--radius);background:var(--panel);align-items:center;gap:10px;padding:10px;display:flex}.lesson-open{min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;gap:12px;padding:0;display:flex}.lesson-thumb{aspect-ratio:16/9;background:#000;border-radius:8px;flex-shrink:0;width:120px;position:relative;overflow:hidden}.lesson-thumb img{object-fit:cover;width:100%;height:100%;display:block}.lesson-thumb-play{color:#fff;background:#00000040;place-items:center;display:grid;position:absolute;inset:0}.lesson-info{flex-direction:column;gap:4px;min-width:0;display:flex}.lesson-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;font-weight:700;line-height:1.45;display:-webkit-box;overflow:hidden}.lesson-meta{color:var(--text-dim);font-size:13px}.btn-create{align-self:center;margin:18px 0 8px}.create-form{flex-direction:column;gap:14px;margin-bottom:14px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field.narrow{max-width:200px}.field-label{color:var(--text-dim);font-size:14px;font-weight:700}.field input,.field select,.lang-table input,.modal input,.paste-box textarea{border-radius:var(--radius);border:1px solid var(--panel-border);background:var(--input-bg);width:100%;min-width:0;color:var(--text);padding:10px 12px;font-size:16px}.field input:focus,.field select:focus,.lang-table input:focus,.modal input:focus,.paste-box textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.field select:disabled,.field input:disabled{opacity:.6}.lang-chips{flex-wrap:wrap;gap:8px;display:flex}.lang-chip{border:1px solid var(--panel-border);background:var(--input-bg);color:var(--text);cursor:pointer;border-radius:18px;padding:8px 14px;font-size:15px}.lang-chip.on{border-color:var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:700}.lang-chip:disabled:not(.on){opacity:.45;cursor:default}.paste-box{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.paste-box textarea{resize:vertical;flex-shrink:0;min-height:150px;line-height:1.5}.fallback-help{color:var(--text-dim);margin:0;font-size:14.5px;line-height:1.7}.fallback-help b{color:var(--text)}.card{border:1px solid var(--panel-border);border-radius:var(--radius);background:var(--panel);flex-direction:column;flex-shrink:0;align-items:flex-start;gap:12px;margin-bottom:14px;padding:16px;display:flex}.card .field{align-self:stretch}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.lang-table{grid-template-columns:70px 1fr 1fr auto;align-self:stretch;align-items:center;gap:6px;display:grid}.lang-table input{padding:8px 10px}.usage-head{justify-content:space-between;align-self:stretch;align-items:center;display:flex}.usage-list,.health-list{flex-direction:column;align-self:stretch;gap:6px;margin:0;padding:0;font-size:14px;list-style:none;display:flex}.usage-list li{align-items:center;gap:12px;display:flex}.usage-list li .mono{flex:1}.health-list li{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.health-list li.ok>span:first-child{color:var(--ok-text)}.health-list li.fail>span:first-child{color:var(--danger-text)}.health-error{color:var(--text-dim);word-break:break-word;flex-basis:100%;font-size:12.5px}.save-bar{background:var(--bg);justify-content:flex-end;align-items:center;gap:12px;padding:10px 0 0;display:flex;position:sticky;bottom:0}.modal-backdrop{z-index:10;background:var(--overlay);place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{border:1px solid var(--panel-border);background:var(--panel);width:min(360px,100%);box-shadow:var(--shadow-md);border-radius:14px;flex-direction:column;gap:12px;padding:20px;display:flex}.modal h3{margin:0}.modal-head{justify-content:space-between;align-items:center;display:flex}.modal-close{width:32px;height:32px;color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:50%;place-items:center;font-size:16px;display:grid}.modal-close:hover{background:var(--accent-soft);color:var(--text)}.login-portal,.account-body{flex-direction:column;gap:12px;display:flex}.login-portal input{text-align:center;letter-spacing:.2em;font-family:var(--font-mono)}.account-level{color:var(--text-dim);margin:0;font-size:14.5px}.account-body .btn-logout{align-self:flex-start}.modal-wide{width:min(560px,100%)}.modal{max-height:calc(100dvh - 32px)}.modal-scroll{flex-direction:column;gap:14px;min-height:0;margin:0 -4px;padding:0 4px 4px;display:flex;overflow-y:auto}.account-name{margin:0;font-size:17px;font-weight:700}.account-section{border-top:1px solid var(--hairline);flex-direction:column;gap:8px;padding-top:14px;display:flex}.account-section h4,.top-donors h4{color:var(--text-dim);margin:0;font-size:14.5px}.modal-scroll input:not([type=file]),.page-search{border-radius:var(--radius);border:1px solid var(--panel-border);background:var(--input-bg);width:100%;min-width:0;color:var(--text);padding:10px 12px;font-size:16px}.modal-scroll input:focus,.page-search:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.row.nowrap{flex-wrap:nowrap}.row.end{justify-content:flex-end}.row.spread{justify-content:space-between}label.btn-ghost{cursor:pointer}.qr-edit{grid-template-columns:1fr 1fr;gap:12px;display:grid}.qr-slot{flex-direction:column;gap:8px;display:flex}.qr-preview{aspect-ratio:1;border:1px dashed var(--panel-border);border-radius:var(--radius);background:#fff;place-items:center;display:grid;overflow:hidden}.qr-preview img,.qr-card img{object-fit:contain;width:100%;height:100%}.qr-row{justify-content:center;gap:12px;display:flex}.qr-card{border-radius:var(--radius);text-align:center;background:#fff;flex:1;max-width:220px;margin:0;padding:8px}.qr-card img{aspect-ratio:1}.qr-card figcaption{color:#0a1f27;font-size:13.5px;font-weight:700}.donate-form{flex-direction:column;gap:12px;display:flex}.issued{text-align:center;flex-direction:column;align-items:center;gap:12px;display:flex}.issued p{margin:0}.issued-code{border:2px dashed var(--accent);border-radius:var(--radius);font-family:var(--font-mono);letter-spacing:.15em;padding:12px 20px;font-size:26px;font-weight:700}.top-donors ol{flex-direction:column;gap:4px;margin:8px 0 0;padding-left:20px;font-size:14.5px;display:flex}.top-donors li{justify-content:space-between;gap:10px;display:flex}.page-tabs{flex-shrink:0;gap:4px;margin-bottom:12px;display:flex;overflow-x:auto}.page-tab{border:1px solid var(--panel-border);color:var(--text-dim);white-space:nowrap;cursor:pointer;background:0 0;border-radius:18px;align-items:center;gap:6px;padding:8px 12px;font-size:14px;display:inline-flex}.page-tab.on{border-color:var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:700}.tab-count{text-align:center;background:#7f7f7f2e;border-radius:10px;min-width:20px;padding:0 6px;font-size:12.5px}.page-search{flex-shrink:0;margin-bottom:12px}.donation-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.donation-card{border:1px solid var(--panel-border);border-radius:var(--radius);background:var(--panel);align-items:center;gap:12px;padding:10px;display:flex}.receipt-thumb{background:#000;border-radius:8px;flex-shrink:0;width:64px;height:64px;overflow:hidden}.receipt-thumb img{object-fit:cover;width:100%;height:100%}.donation-info{flex-direction:column;flex:1;gap:2px;min-width:0;font-size:14.5px;display:flex}.donation-actions{flex-direction:column;gap:6px;display:flex}.user-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.user-card{border:1px solid var(--panel-border);border-radius:var(--radius);background:var(--panel);width:100%;color:var(--text);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;display:flex}.user-card:hover{border-color:var(--accent)}.user-card-name{font-size:15px;font-weight:700}.status-badge{border-radius:10px;align-self:flex-start;padding:2px 10px;font-size:12.5px;font-weight:700;display:inline-block}.status-active{color:var(--ok-text);background:#4fdc9a26}.status-inactive{color:var(--text-dim);background:#7f7f7f2e}.status-expired{background:var(--warn-bg);color:var(--warn-text)}.status-rejected{color:var(--danger-text);background:#c93a3a24}.user-lessons{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.user-lessons li{align-items:center;gap:10px;font-size:14px;display:flex}.user-lesson-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.hint.urgent{color:var(--danger-text);font-weight:700}@media (width<=480px){.qr-edit{grid-template-columns:1fr}.donation-card{flex-wrap:wrap}.donation-actions{flex-direction:row}}.modal-actions{justify-content:flex-end;gap:8px;display:flex}.stage{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex}.stage-head{flex-shrink:0;align-items:center;gap:8px;min-width:0;display:flex}.stage-head .back-link{flex-shrink:0;margin:0 0 0 -6px}.stage-title{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:14.5px;font-weight:700;overflow:hidden}.player-panel{flex-shrink:0}.video-area{aspect-ratio:16/9;border-radius:var(--radius);background:#000;width:min(100%,71.1111dvh);margin:0 auto;position:relative;overflow:hidden;container-type:size}.video-area.portrait{aspect-ratio:9/16;width:min(100%,31.5dvh)}.player-frame{width:100%;height:100%}.text-stage{z-index:1;color:#fff;text-align:center;justify-content:center;align-items:center;display:flex;position:absolute;inset:-1px}.stage-hit{cursor:pointer;background:0 0;border:none;position:absolute;inset:0}.stage-lines{pointer-events:none;flex-direction:column;align-items:center;gap:.8em;width:88%;max-height:84%;font-size:clamp(15px,min(8.5cqw,9.5cqh),52px);display:flex;position:relative;overflow:hidden}.stage-current{flex-direction:column;gap:.35em;animation:.28s ease-out stage-in;display:flex}@keyframes stage-in{0%{opacity:0;transform:translateY(.4em)}to{opacity:1;transform:none}}.stage-text,.stage-tr,.stage-title,.stage-hint,.stage-next{text-shadow:0 2px 10px #0000008c;margin:0}.stage-text{font-weight:700;line-height:1.35}.stage-text.is-blurred{filter:blur(.3em)}.stage-tr{color:#ffd29a;font-size:.74em;line-height:1.5}.stage-title{font-size:.7em;font-weight:700}.stage-hint,.stage-next{opacity:.55;font-size:.5em}.stage-more{z-index:2;color:#fff;cursor:pointer;background:#0006;border:none;border-radius:50%;place-items:center;width:32px;height:32px;display:grid;position:absolute;top:8px;right:8px}.stage-more:hover{background:#0009}.stage-menu-label{color:#fff9;text-align:left;font-size:12px}.stage-menu-sep{background:#ffffff1f;height:1px;margin:2px 0}.stage-seg{background:#ffffff1a;border-radius:14px;padding:2px;display:flex}.stage-seg button{flex:1}.stage-tool.record{justify-content:center;align-items:center;gap:8px;display:flex}.rec-dot{background:var(--danger);border-radius:50%;flex-shrink:0;width:9px;height:9px;display:inline-block}.rec-bar .rec-dot{animation:1s steps(2,start) infinite rec-blink}@keyframes rec-blink{to{visibility:hidden}}.rec-bar{color:var(--text);flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:8px;font-size:14px;display:flex}.video-area.recording{border-radius:0}.stage-seg button,.stage-tool{color:#ffffffd9;cursor:pointer;background:0 0;border:none;border-radius:13px;height:26px;padding:0 10px;font-size:12.5px}.stage-tool{background:#00000073}.stage-seg button.on{color:#000;background:#fff;font-weight:700}.stage-menu{z-index:3;width:min(196px,100% - 16px);max-height:calc(100% - 48px);box-shadow:var(--shadow-md);background:#0a1018eb;border-radius:12px;flex-direction:column;gap:8px;padding:10px;display:flex;position:absolute;top:40px;right:8px;overflow-y:auto}.stage-swatches{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.swatch{aspect-ratio:1;cursor:pointer;border:2px solid #0000;border-radius:8px;min-height:22px}.swatch.on{border-color:#fff}.stage-tool.wide{background:#ffffff1f;width:100%;height:30px}.stage-error{color:#ff9a9a;margin:0;font-size:12.5px}.stage-notice{margin:8px 0 0}.player-frame iframe,.player-frame>div{border:0;width:100%;height:100%;display:block}.controls{justify-content:center;align-items:center;gap:8px;margin-top:10px;display:flex}.speed-pick{position:relative}.click-away{z-index:4;position:fixed;inset:0}.ctrl.speed-current{font-variant-numeric:tabular-nums;justify-content:center;min-width:58px;font-weight:700}.speed-menu{z-index:5;border:1px solid var(--panel-border);background:var(--panel);box-shadow:var(--shadow-md);border-radius:12px;flex-direction:column;gap:2px;padding:4px;display:flex;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.speed-menu button{min-width:64px;height:34px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:8px;font-size:14px}.speed-menu button:hover{background:var(--accent-soft)}.speed-menu button.on{background:var(--accent);color:var(--accent-ink);font-weight:700}.view-menu{z-index:5;border:1px solid var(--panel-border);background:var(--panel);width:210px;max-height:60dvh;box-shadow:var(--shadow-md);border-radius:12px;flex-direction:column;gap:8px;padding:10px;display:flex;position:absolute;bottom:calc(100% + 6px);right:0;overflow-y:auto}.vm-row{justify-content:space-between;align-items:center;gap:8px;font-size:14px;display:flex}.vm-label{color:var(--text-dim);font-size:12.5px}.vm-seg{background:var(--accent-soft);border-radius:14px;gap:2px;padding:2px;display:flex}.vm-seg button,.vm-list button{color:var(--text);cursor:pointer;background:0 0;border:none;font-size:13.5px}.vm-seg button{border-radius:12px;height:26px;padding:0 10px}.vm-list{flex-wrap:wrap;gap:6px;display:flex}.vm-list button{border:1px solid var(--panel-border);border-radius:15px;height:30px;padding:0 12px}.vm-list button:disabled{opacity:.5;cursor:default}.vm-seg button.on,.vm-list button.on{border-color:var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:700}.ctrl.ctrl-icon.on{color:var(--accent);border-color:var(--accent)}.ctrl.ctrl-icon{width:40px;color:var(--text-dim);justify-content:center;padding:0}.ctrl.ctrl-icon:hover{color:var(--accent);border-color:var(--accent)}.ctrl{border:1px solid var(--panel-border);background:var(--panel);height:40px;color:var(--text);cursor:pointer;border-radius:20px;align-items:center;gap:2px;padding:0 12px;font-size:14px;display:inline-flex}.ctrl-main{background:var(--accent);width:48px;height:48px;color:var(--accent-ink);border:none;border-radius:50%;justify-content:center;padding:0}.ctrl:disabled,.speed:disabled{opacity:.45;cursor:default}.speeds,.toggles{border:1px solid var(--panel-border);background:var(--panel);border-radius:20px;gap:4px;padding:3px;display:flex}.speed,.toggle{min-width:44px;height:32px;color:var(--text-dim);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:16px;padding:0 8px;font-size:13.5px}.toggle{height:28px;padding:0 12px}.toggle-select{appearance:none;text-overflow:ellipsis;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 12px),calc(100% - 8px);background-repeat:no-repeat;background-size:4px 4px;max-width:120px;padding:0 22px 0 12px}.toggle-select option,.toggle-select optgroup{color:var(--text);background:var(--panel);font-weight:400}.speed.on,.toggle.on{background:var(--accent);color:var(--accent-ink);font-weight:700}.transcript-panel{border:1px solid var(--panel-border);border-radius:var(--radius);background:var(--panel);flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.transcript-head{border-bottom:1px solid var(--hairline);flex-shrink:0;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px 8px 12px;display:flex}.meta{color:var(--text-dim);font-size:13px}.transcript-panel .notice{margin:8px 10px 0}.cue-list{overscroll-behavior:contain;flex:1;min-height:0;margin:0;padding:6px 0;list-style:none;position:relative;overflow-y:auto}.cue-list:after{content:"";height:60%;display:block}.cue-list li{border-left:3px solid #0000;transition:opacity .25s;display:flex;position:relative}.cue-main{min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;flex:1;gap:12px;padding:8px 12px;display:flex}.cue-list li:hover{background:var(--accent-soft)}.cue-list.is-following li.past{opacity:.45}.cue-list li.active{border-left-color:var(--accent);background:var(--accent-soft)}.cue-edit{width:34px;height:34px;color:var(--text-dim);opacity:0;cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;align-self:center;place-items:center;margin-right:6px;display:grid}.cue-list li:hover .cue-edit,.cue-list li.active .cue-edit,.cue-edit:focus-visible{opacity:1}.cue-edit:hover{background:var(--panel);color:var(--accent)}@media (hover:none){.cue-edit{opacity:.55}}.cue-editor{flex:1;gap:12px;padding:8px 12px;display:flex}.cue-editor-fields{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.cue-editor textarea{border:1px solid var(--panel-border);background:var(--input-bg);width:100%;color:var(--text);resize:vertical;border-radius:8px;padding:8px 10px;font-size:16px;line-height:1.5}.cue-editor textarea.tr{color:var(--tr)}.cue-editor textarea:focus{border-color:var(--accent);outline:none}.cue-time{min-width:42px;color:var(--text-dim);font-variant-numeric:tabular-nums;flex-shrink:0;padding-top:3px;font-size:13px}.cue-lines{flex-direction:column;gap:2px;min-width:0;display:flex}.cue-text{font-size:16.5px;line-height:1.55}.cue-tr{color:var(--tr);font-size:15px;line-height:1.6}.kw{transition:color .12s linear,opacity .12s linear}.stage-text .kw,.stage-tr .kw{color:#fff}.stage-text .kw.sung,.stage-tr .kw.sung{color:var(--hl,#ffd60a);text-shadow:0 0 1px #000, 0 0 3px #000000e6, 0 0 16px color-mix(in srgb, var(--hl,#ffd60a) 45%, transparent)}.stage-tool.active{color:#aff5d3;background:#4fdc9a40}.stage-menu-hint{color:#ffffff80;margin-top:-4px;font-size:11.5px}.stage-toggle-row{color:#ffffffd9;justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.stage-seg.small button{height:24px;padding:0 10px;font-size:12px}.stage-colors{flex-wrap:wrap;gap:8px;display:flex}.color-dot{cursor:pointer;border:2px solid #0000;border-radius:50%;width:24px;height:24px;padding:0;position:relative}.color-dot.on{border-color:#fff;box-shadow:0 0 0 2px #00000080}.color-dot.custom{background:conic-gradient(#f44,#fd0,#4d4,#2cf,#a4f,#f44);overflow:hidden}.color-dot.custom input{opacity:0;cursor:pointer;position:absolute;inset:0}.speech-spectrum{pointer-events:none;width:80%;height:11%;position:absolute;bottom:5%;left:10%}.cue-list li.active .cue-text{color:var(--accent);font-weight:700}.cue-list li.active .cue-tr{font-weight:700}.cue-list.hide-text .cue-text{filter:blur(6px);-webkit-user-select:none;user-select:none}.cue-list.hide-tr .cue-tr{display:none}.follow-btn{background:var(--accent);color:var(--accent-ink);box-shadow:var(--shadow-md);cursor:pointer;border:none;border-radius:20px;padding:8px 16px;font-size:14px;font-weight:700;position:absolute;bottom:14px;right:14px}@media (width<=480px){.app{padding:0 12px 8px}.topbar{padding:8px 0 6px}.controls{gap:6px}.ctrl{height:38px;padding:0 10px}.ctrl-main{width:46px;height:46px}.ctrl.speed-current{min-width:52px}.ctrl.ctrl-icon{width:38px}.cue-text{font-size:15.5px}.cue-tr{font-size:14.5px}.lesson-thumb{width:96px}.lang-table{grid-template-columns:56px 1fr 1fr auto}.btn-logout{padding:6px 10px}}
