*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #0f172a;--surface: #1e293b;--surface-2: #283449;--border: #334155;--text: #e2e8f0;--text-muted: #94a3b8;--text-faint: #64748b;--primary: #3b82f6;--primary-hover: #2563eb;--success: #10b981;--success-hover: #059669;--danger: #ef4444;--warn: #f59e0b}:root[data-theme=paper]{--bg: #f6f7f9;--surface: #ffffff;--surface-2: #edf1f5;--border: #c9d2dc;--text: #172033;--text-muted: #4f5f70;--text-faint: #758397;--primary: #2f65c8;--primary-hover: #2554a9;--success: #21835f;--success-hover: #196b4d;--danger: #c2413d;--warn: #9a6a12}:root[data-theme=mint]{--bg: #f2f7f4;--surface: #fbfefd;--surface-2: #e8f1ed;--border: #bfd4ca;--text: #183027;--text-muted: #52685f;--text-faint: #74897f;--primary: #24756a;--primary-hover: #1e6259;--success: #2f8054;--success-hover: #276a46;--danger: #c2413d;--warn: #93691a}:root[data-theme=pink]{--bg: #f8f4f6;--surface: #fffdfd;--surface-2: #f1e8ed;--border: #d8c4ce;--text: #33202a;--text-muted: #67535d;--text-faint: #8a7580;--primary: #a8476f;--primary-hover: #8f3a5d;--success: #247a5b;--success-hover: #1e654b;--danger: #bd3f45;--warn: #95651c}:root[data-theme=beige]{--bg: #f6f2ea;--surface: #fffdf8;--surface-2: #eee7dc;--border: #d4c7b5;--text: #2f281f;--text-muted: #675d50;--text-faint: #897d6e;--primary: #79613f;--primary-hover: #665133;--success: #33764f;--success-hover: #285f3f;--danger: #b3453f;--warn: #926916}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;padding:.65rem}#app{max-width:1080px;margin:0 auto}.top-controls{display:grid;grid-template-columns:4.4rem minmax(10rem,1fr) auto auto auto auto;align-items:center;gap:.4rem;margin-bottom:.55rem}.youtube-search{width:100%;min-width:0;height:2.15rem;display:flex;align-items:center;gap:0}.search-step-section{padding:.55rem .65rem;border:1px solid color-mix(in srgb,var(--primary) 32%,var(--border));border-radius:8px;background:color-mix(in srgb,var(--primary) 5%,var(--surface))}.step-heading{display:flex;align-items:center;gap:.45rem;min-width:0;flex-wrap:wrap}.step-heading .muted{line-height:1.2}.youtube-search-submit{min-width:4.4rem;height:2.15rem;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding-inline:.8rem;margin-left:.5rem}.youtube-search input{min-width:0;flex:1;height:100%;padding:0 .85rem 0 .55rem;border:1px solid var(--border);border-left:0;border-radius:0 8px 8px 0;background:var(--surface);color:var(--text);font-size:.8rem;outline:0}.youtube-search input:focus{border-color:var(--primary)}.youtube-search input::placeholder{color:var(--text-muted)}.youtube-mark{position:relative;display:inline-flex;width:1.45rem;height:2.15rem;border-radius:8px 0 0 8px;background:#f03;flex:0 0 auto;border:1px solid var(--border);border-right:0}.youtube-mark:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-top:.24rem solid transparent;border-bottom:.24rem solid transparent;border-left:.38rem solid #fff;transform:translate(-38%,-50%)}.search-chip-row{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem}.search-chip{min-height:1.65rem;padding:.22rem .5rem;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:.76rem}.search-chip:hover{border-color:var(--primary);color:var(--text)}.search-chip.custom{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 45%,var(--border))}.search-chip.saved{background:color-mix(in srgb,var(--primary) 8%,var(--surface));border-color:color-mix(in srgb,var(--primary) 35%,var(--border))}.saved-chip{display:inline-flex;align-items:stretch}.saved-chip .search-chip{border-radius:6px 0 0 6px}.search-chip-delete{min-width:1.75rem;padding:0 .45rem;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--border));border-left:0;border-radius:0 6px 6px 0;background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--text-faint);font-size:.8rem}.search-chip-delete:hover{color:var(--danger);border-color:var(--danger)}.top-actions{display:flex;gap:.35rem;align-items:center;height:2.35rem}.top-leading{width:4.4rem;height:2rem;align-self:center}.session-controls{grid-template-columns:4.4rem minmax(10rem,1fr) auto auto auto auto;align-items:center}.compact-back,.session-controls .top-leading{min-width:0;height:2rem;padding:.35rem .65rem;font-size:.78rem;align-self:center;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;line-height:1}.top-placeholder{display:block}.top-middle-spacer{min-width:0}.top-controls>.progress{align-self:center;text-align:right;white-space:nowrap}.icon-btn{width:2.05rem;height:2.05rem;display:inline-flex;align-items:center;justify-content:center;padding:0;border-color:var(--border);border-radius:999px;color:var(--text-muted);font-size:.9rem}.icon-btn:hover{border-color:var(--primary);color:var(--primary)}.tip-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:1rem;background:#0f172a9e}.tip-dialog{width:min(100%,26rem);max-height:min(82vh,36rem);overflow:auto;padding:1rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);box-shadow:0 18px 50px #00000052}.tip-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}.tip-dialog h2{font-size:1rem;line-height:1.3}.tip-dialog ul{display:grid;gap:.5rem;padding-left:1.15rem;color:var(--text-muted);font-size:.86rem;line-height:1.5}.tip-close{width:2rem;height:2rem;flex:0 0 auto;padding:0;border-radius:999px;background:transparent;color:var(--text-muted)}.compact-field{display:grid;gap:.2rem;font-size:.75rem;color:var(--text-muted)}.compact-field span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-field select{width:100%;max-width:7.8rem;height:2.05rem}.compact-field .language-select{max-width:4.8rem}.app-header{display:flex;align-items:center;gap:.55rem;margin-bottom:.65rem;flex-wrap:wrap}.app-logo{width:1.8rem;height:1.8rem;flex:0 0 auto;border-radius:6px;object-fit:cover}h1{font-size:1.35rem;font-weight:700;color:#f8fafc;margin-bottom:0;flex-shrink:0}h1 span{color:var(--text-faint);font-size:.72em;font-weight:500}:root[data-theme=paper] h1,:root[data-theme=mint] h1,:root[data-theme=pink] h1,:root[data-theme=beige] h1{color:var(--text)}.subtitle{font-size:.8rem;color:var(--text-muted);min-width:0}.muted{color:var(--text-muted)}.muted.small{font-size:.75rem}.error{margin-top:.5rem;font-size:.75rem;color:var(--danger)}.section{margin-bottom:.7rem}.section-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem}.section-title{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-faint)}.management-panel{padding:.65rem .75rem;margin-bottom:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.management-help{margin-bottom:.55rem}.manage-toggle{padding:.32rem .6rem;font-size:.76rem}.compact-add-section{padding:.55rem .65rem;border:1px solid color-mix(in srgb,var(--primary) 38%,var(--border));border-radius:8px;background:color-mix(in srgb,var(--primary) 7%,var(--surface))}.compact-add-section .section-title{margin-bottom:.25rem}.compact-add-section .input-group{margin-top:.45rem}.library-step-section{min-height:50vh}.management-actions{display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap;margin-top:.65rem}.hidden-file-input{display:none}.danger-text{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 55%,var(--border))}.danger-text:hover{color:#fff;background:var(--danger);border-color:var(--danger)}.input-group{display:flex;gap:.5rem}.input-group.end{justify-content:flex-end;margin-top:.75rem}.transcript-fetch-row{align-items:center;flex-wrap:wrap}.transcript-fetch-row select{flex:1 1 12rem}.transcript-fetch-row button{flex:0 0 auto;white-space:nowrap}input[type=text],textarea,select{padding:.58rem .75rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:.82rem;font-family:inherit}input[type=text]{flex:1}input[type=text]::placeholder,textarea::placeholder{color:var(--text-faint)}input[type=text]:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary)}textarea{width:100%;resize:vertical}.transcript-input{font-family:ui-monospace,Menlo,Consolas,monospace;min-height:200px}.sort-select{padding:.4rem .6rem;font-size:.8rem}.home-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin-bottom:.55rem}.tab-btn{display:flex;align-items:center;justify-content:center;gap:.45rem;border-color:var(--border);background:var(--surface);color:var(--text-muted)}.tab-btn span{color:var(--text-faint);font-size:.75rem}.tab-btn.active span{color:#ffffffd1}.filter-fallback{margin:-.35rem 0 .75rem}.community-sync-note{margin:-.2rem 0 .45rem}button{padding:.48rem .85rem;border:1px solid transparent;border-radius:8px;font-size:.82rem;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s,color .15s;background:var(--surface);color:var(--text)}button.primary{background:var(--primary);color:#fff}button.primary:hover{background:var(--primary-hover)}button.secondary{background:transparent;border-color:var(--border);color:var(--text)}button.secondary:hover{border-color:var(--primary);color:var(--primary)}button:disabled{opacity:.5;cursor:not-allowed}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:2.4rem;padding:.55rem 1rem;border:1px solid transparent;border-radius:8px;font-size:.85rem;font-weight:600;text-decoration:none;white-space:nowrap}.button-link.secondary{background:transparent;border-color:var(--border);color:var(--text)}.button-link.secondary:hover{border-color:var(--primary);color:var(--primary)}.helper-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.65rem}.helper-note{flex:1 1 18rem;min-width:12rem;color:var(--text-muted);font-size:.8rem;line-height:1.45}.video-list{display:grid;grid-template-columns:1fr;gap:.45rem}@media(min-width:900px){.video-list{grid-template-columns:repeat(2,minmax(0,1fr))}.library-step-section .section-row,.community-section .section-row{margin-bottom:.45rem}}.load-more-row{display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-top:.9rem}.video-card{display:flex;gap:.5rem;padding:.45rem;background:var(--surface);border:1px solid var(--border);border-radius:8px}.video-card .thumb{width:96px;height:54px;object-fit:cover;border-radius:6px;background:var(--surface-2);flex-shrink:0}.video-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.video-content-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.45rem;min-width:0}.video-main{min-width:0;flex:1}.video-title{font-size:.84rem;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-meta-line{display:flex;align-items:center;gap:.35rem;min-width:0;overflow:hidden;color:var(--text-faint);font-size:.68rem;white-space:nowrap}.video-channel{overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:35%}.language-badge{flex-shrink:0;max-width:6.5rem;overflow:hidden;text-overflow:ellipsis;padding:.1rem .3rem;border:1px solid var(--border);border-radius:999px;color:var(--text-muted);background:var(--surface-2);font-size:.64rem;line-height:1.2;white-space:nowrap}.video-note-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.4rem;color:var(--text-faint);font-size:.72rem}.video-note-field input{min-width:0;padding:.28rem .45rem;border-radius:6px;font-size:.75rem;background:var(--surface-2)}.video-actions{display:flex;justify-content:flex-end;gap:.28rem;flex-wrap:nowrap;flex-shrink:0;max-width:14rem}.video-secondary-actions{display:inline-flex;gap:.35rem;flex-wrap:nowrap}.video-actions button{padding:.28rem .42rem;white-space:nowrap}.vote-btn{background:transparent;border:1px solid var(--border);color:var(--text-muted);font-size:.72rem;padding:.28rem .45rem}.vote-btn:hover{border-color:var(--primary);color:var(--primary)}.vote-btn.voted{background:var(--success);border-color:var(--success);color:#fff}.recommend-btn{display:inline-flex;align-items:center;gap:.28rem}.recommend-btn span{font-size:.92em;line-height:1}.vote-btn.danger{border-color:transparent;color:var(--text-faint);padding:.4rem .6rem}.vote-btn.danger:hover{border-color:var(--danger);color:var(--danger)}.remove-btn{font-size:.76rem;font-weight:600}.fetch-status{margin-top:.45rem;padding:.48rem .7rem;border-radius:6px;font-size:.85rem;border:1px solid var(--border)}.fetch-status.loading{color:var(--text-muted)}.fetch-status.success{color:var(--success);border-color:var(--success);background:#10b9811a}.fetch-status.notice{color:var(--text-muted);border-color:var(--border);background:var(--surface-2)}.fetch-status.error{color:var(--danger);border-color:var(--danger);background:#ef444414}.empty-state{padding:2rem;text-align:center;color:var(--text-faint);font-size:.875rem;border:1px dashed var(--border);border-radius:10px}@media(max-width:620px){body{padding:.55rem}.top-controls{grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem}.top-leading{grid-column:1 / 2;width:100%}.top-middle-spacer{grid-column:2 / 5}.session-controls .top-leading{grid-column:1 / 2}.session-controls .study-timer{grid-column:2 / 5}.session-controls .top-actions{grid-column:5 / 7}.top-actions{grid-column:5 / 7;justify-content:flex-end}.compact-field{min-width:0}.compact-field:nth-of-type(1){grid-column:1 / 3}.compact-field:nth-of-type(2){grid-column:3 / 5}.compact-field:nth-of-type(3){grid-column:5 / 7}.compact-field select{max-width:none;width:100%}.top-controls>.progress{grid-column:5 / 7;justify-self:end}.app-header{gap:.5rem;margin-bottom:.85rem}h1{font-size:1.35rem}.subtitle{font-size:.78rem;line-height:1.35}.input-group{flex-direction:column}.transcript-fetch-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.transcript-fetch-row select{grid-column:1 / -1}.transcript-fetch-row button{width:100%;min-width:0}.compact-add-section .input-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(4.8rem,5.8rem) auto;align-items:center}.compact-add-section input,.compact-add-section select,.compact-add-section button{min-width:0}.compact-add-section input{width:100%;padding-inline:.65rem}.compact-add-section select{width:100%;padding-inline:.45rem}.compact-add-section button{padding-inline:.65rem;white-space:nowrap}.section-row{align-items:flex-start;flex-wrap:wrap;gap:.5rem}.section-row select{flex:1;min-width:8.5rem}.management-actions button{flex:1;min-width:8rem}.video-card{gap:.55rem;padding:.5rem}.video-card .thumb{width:96px;height:54px}.video-content-row{flex-direction:column;gap:.45rem}.video-title{font-size:.85rem}.video-meta-line{gap:.35rem;font-size:.68rem}.video-channel{max-width:28%}.language-badge{max-width:4.8rem}.video-actions{justify-content:flex-start;max-width:none;width:100%}.video-secondary-actions{flex:1 1 auto}.video-actions button{min-width:0;padding:.32rem .45rem;font-size:.72rem}.video-note-field{grid-template-columns:minmax(0,1fr);gap:.2rem}.video-note-field span{display:none}.load-more-row button{width:100%}}.session-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.exit-btn{background:transparent;color:var(--text-muted);padding:.5rem .75rem;font-size:.875rem;border:1px solid var(--border)}.exit-btn:hover{color:var(--text);border-color:var(--primary)}.session-header-actions{display:inline-flex;align-items:center;gap:.5rem}.progress{font-size:.875rem;color:var(--text-faint)}.player-host{position:relative;width:100%;aspect-ratio:16 / 9;background:#000;border-radius:10px;overflow:hidden;margin-bottom:1rem}.player-host iframe,.player-host #yt-player{width:100%;height:100%;border:0}.player-error{display:flex;align-items:center;justify-content:center;height:100%;color:var(--danger);font-size:.875rem;padding:1rem;text-align:center}.session-tool-row{display:flex;align-items:center;gap:.45rem;margin-bottom:.6rem;flex-wrap:wrap}.study-timer{display:grid;grid-template-columns:auto auto auto auto;align-items:center;gap:.35rem;padding:.35rem .45rem;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--surface) 94%,var(--primary));min-width:0;width:max-content;max-width:100%}.study-time{min-width:3.05rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;font-weight:700;color:var(--text);text-align:center;padding:.25rem .45rem;border-radius:6px;background:var(--surface-2)}.timer-icon-btn{width:1.7rem;height:1.7rem;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--text-muted);font-size:.72rem;line-height:1}.timer-icon-btn:hover{border-color:var(--primary);color:var(--text)}.timer-goal-field{display:inline-flex;align-items:center;gap:.25rem;min-width:0}.timer-goal-field input{width:2.55rem;height:1.65rem;padding:0 .3rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--text);font-size:.78rem}.learning-help-row{display:flex;gap:.4rem;flex:0 0 auto;order:2}.transcript-controls{display:flex;gap:.4rem;margin-bottom:0;flex-wrap:wrap;align-items:center;flex:1;order:1}.transcript-ctrl{background:var(--surface);border:1px solid var(--border);color:var(--text-muted);padding:.4rem .75rem;font-size:.8rem;border-radius:6px;cursor:pointer}.transcript-ctrl:hover:not(:disabled){color:var(--text);border-color:var(--primary)}.transcript-ctrl.primary{background:var(--primary);border-color:var(--primary);color:#fff}.transcript-ctrl.primary:hover:not(:disabled){background:var(--primary-hover)}.transcript-ctrl:disabled{opacity:.4;cursor:not-allowed}.group-control{display:inline-flex;align-items:center;gap:.35rem;margin-left:auto}.inline-progress{padding-right:.4rem;white-space:nowrap}.group-control .muted{padding-right:.2rem}.group-btn{min-width:2rem;padding:.35rem .5rem;font-weight:600}.group-size-display{font-size:.85rem;min-width:2.4rem;text-align:center;color:var(--text)}@media(max-width:620px){.session-tool-row{display:grid;grid-template-columns:1fr;gap:.35rem}.study-timer{width:100%;justify-content:space-between}.learning-help-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.learning-help-row .transcript-ctrl{width:100%;padding-inline:.45rem}.transcript-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}.group-control{margin-left:0;justify-content:flex-end}}.transcript-panel{max-height:200px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:1rem;padding:.25rem 0}.transcript-panel.hidden{display:none}.transcript-line{display:flex;gap:.6rem;padding:.4rem .85rem;font-size:.85rem;line-height:1.5;cursor:pointer;border-left:3px solid transparent;color:var(--text-muted);transition:background .1s,color .1s,border-color .1s}.transcript-line:hover{background:var(--surface-2);color:var(--text)}.transcript-line .time{flex-shrink:0;width:3rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.75rem;color:var(--text-faint);padding-top:.1rem}.transcript-line .text{flex:1;min-width:0}.transcript-line.current{border-left-color:var(--primary);color:var(--text)}.transcript-line.playing{background:#3b82f62e;color:var(--text)}.transcript-line.current.playing{border-left-color:var(--success)}.tab-bar{display:flex;gap:.5rem;margin-bottom:1rem}.tab-btn{flex:1;padding:.7rem .5rem;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.4rem}.tab-btn:hover:not(.active):not(:disabled){border-color:var(--primary);color:var(--text)}.tab-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}.tab-score{font-size:.7rem;background:#00000040;padding:.1rem .4rem;border-radius:999px}.tab-btn:not(.active) .tab-score{background:var(--surface-2);color:var(--text)}.session-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;margin-bottom:1rem;display:flex;flex-direction:column;gap:.75rem}.phase-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint)}.hint-text{font-size:1rem;color:var(--text);line-height:1.5}.hint-text.subtle{color:var(--text-muted);font-size:.875rem}.speak-hint-trigger{cursor:pointer;border-radius:6px}.speak-hint-trigger:hover{color:var(--primary)}.speak-hint-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.sentence-text{font-size:1.05rem;color:var(--text);font-weight:500;line-height:1.5}.sentence-text.large{font-size:1.25rem}.word-lookup{display:inline;padding:0 .05rem;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;cursor:pointer}.word-lookup:hover,.word-lookup:focus-visible{background:var(--surface-2);color:var(--primary);outline:none;text-decoration:underline;text-underline-offset:.18em}.word-popover{position:fixed;z-index:80;width:min(15rem,calc(100vw - 1rem));padding:.65rem .75rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);box-shadow:0 18px 36px #00000047}.word-popover-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.35rem}.word-popover-head button{width:1.5rem;height:1.5rem;padding:0;border:0;background:transparent;color:var(--text-muted)}.word-search-link{display:inline-flex;color:var(--primary);font-size:.82rem;font-weight:600;text-decoration:none}.word-search-link:hover{text-decoration:underline;text-underline-offset:.18em}.reference-line{font-size:.85rem;color:var(--text-muted);border-left:3px solid var(--primary);padding:.4rem .75rem;background:var(--surface-2);border-radius:4px}.decode-input{min-height:4.5rem;font-family:inherit}.engine-toggle{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;font-size:.8rem}.engine-label{display:inline-flex;align-items:center;gap:.25rem}.speech-tip-toggle{width:1.35rem;height:1.35rem;padding:0;border:1px solid var(--border);border-radius:999px;background:var(--surface-2);color:var(--text-muted);font-size:.75rem;line-height:1}.speech-tip-toggle:hover{border-color:var(--primary);color:var(--text)}.speech-tip{padding:.55rem .75rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--text-muted);font-size:.8rem;line-height:1.45}.speech-tip.hidden{display:none}.speech-tip.ok{border-color:var(--success);color:var(--success)}.engine-toggle .muted{padding-right:.25rem}.pill{padding:.3rem .7rem;font-size:.75rem;background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);border-radius:999px}.pill:hover:not(:disabled){border-color:var(--primary);color:var(--text)}.pill.active{background:var(--primary);border-color:var(--primary);color:#fff}.pill:disabled{opacity:.4;cursor:not-allowed}.shadow-status{font-size:.8rem;color:var(--text-muted);min-height:1.2em}.recognized{background:var(--surface-2);padding:.6rem .85rem;border-radius:6px;font-size:.95rem;min-height:2.5rem}.diff-result{display:flex;flex-direction:column;gap:.4rem;padding-top:.25rem}.score-line{font-size:.9rem;font-weight:600;color:var(--success)}.diff-row{display:flex;gap:.5rem;font-size:.875rem;align-items:baseline}.diff-label{color:var(--text-faint);font-size:.75rem;width:2.4rem;flex-shrink:0}.diff-words{line-height:1.6}.word{padding:0 .15rem;border-radius:3px}.word.match{color:var(--success)}.word.missing{color:var(--danger);text-decoration:line-through;opacity:.85}.word.extra{color:var(--warn);font-style:italic}.session-actions{display:flex;flex-direction:column;gap:.6rem}.action-row{display:flex;gap:.5rem;flex-wrap:wrap}.action-row button{flex:1;min-width:7rem}.primary-row{align-items:stretch}.primary-row .nav-mini{flex:0 0 auto;min-width:4.4rem;padding-inline:.65rem}.score-grid{display:flex;gap:.75rem;justify-content:center;margin:1.5rem 0}.score-cell{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:1rem;min-width:6rem;text-align:center}.score-cell-label{font-size:.75rem;color:var(--text-muted);margin-bottom:.4rem}.score-big{font-size:1.6rem;font-weight:700;color:var(--success)}.complete-view{text-align:center;padding:3rem 1rem;display:flex;flex-direction:column;gap:.75rem;align-items:center}.complete-view h2{font-size:1.5rem;color:var(--success)}.complete-view button{max-width:240px}button.saved{background:var(--success);border-color:var(--success);color:#fff}
