.document-browser{padding:0!important;overflow:hidden;display:flex;flex-direction:column;background:var(--ld-bg-elevated)}.document-tabs{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding:8px 16px;background:var(--ld-bg-card);border-bottom:1px solid var(--ld-separator)}.document-tabs button{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;white-space:nowrap;color:var(--ld-label-2);background:transparent;border-radius:20px;font-size:14px}.document-tabs button[aria-pressed=true]{color:var(--ld-label);background:var(--ld-fill-2)}.document-tabs button[aria-pressed=true] svg{color:var(--ld-mint)}.document-layout{display:grid;grid-template-columns:270px minmax(0,1fr);flex:1;min-height:0}.document-filters{padding:28px 18px;overflow:auto;border-right:2px solid var(--ld-separator);background:var(--ld-bg-card)}.document-filters>label{display:flex;flex-direction:column;gap:7px;margin:0 0 22px;font-size:12px;color:var(--ld-label-2)}.document-filters input,.document-filters select{min-width:0;max-width:100%;color:var(--ld-label);background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:6px;padding:9px;font:inherit}.document-filters .document-search{display:flex;flex-direction:row;align-items:center;gap:8px;border:1px solid var(--ld-separator);border-radius:8px;padding:0 10px;margin-bottom:26px}.document-search input{width:100%;border:0;background:transparent;font-size:15px;padding:11px 0}.document-search svg{flex:0 0 18px}.difficulty-options{padding:0;border:0;margin:0 0 18px}.difficulty-options legend{color:var(--ld-label-2);font-size:12px;margin-bottom:7px}.difficulty-options button{display:block;width:100%;padding:8px;border:1px solid var(--ld-separator);background:transparent;color:var(--ld-label);font-size:13px}.difficulty-options button+button{border-top:0}.difficulty-options button[aria-pressed=true]{background:var(--ld-fill-3)}.document-note{font-size:12px;line-height:1.6;color:var(--ld-label-2);margin-bottom:20px}.document-filters input[type=range]{accent-color:var(--ld-accent);padding:0;border:0;width:100%}.document-import{display:grid;gap:8px}.document-import button{display:flex;align-items:center;gap:7px;color:var(--ld-label-2);background:var(--ld-fill-1);padding:9px;border-radius:6px;font-size:12px}.document-results{overflow:auto;min-width:0;padding:12px 18px 28px}.document-results-head{display:flex;justify-content:space-between;color:var(--ld-label-2);font-size:12px;padding:8px 12px 14px}.document-list{max-width:1120px;margin:0 auto}.document-row.content-entry{display:grid;grid-template-columns:28px 120px minmax(0,1fr);gap:18px;border:0;background:transparent;border-radius:8px;padding:16px 12px;margin-bottom:6px}.document-row:nth-child(2n){background:var(--ld-bg-card)}.document-row:hover{background:var(--ld-bg-card)}.document-number{font-size:11px;color:var(--ld-label-3);padding-top:7px}.document-cover{padding:0;border-radius:7px;background:var(--ld-fill-1);align-self:start;overflow:hidden;width:120px}.document-cover img{display:block;width:120px;aspect-ratio:16/9;object-fit:cover}.document-book-cover{display:flex;min-height:156px;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:12px;background:var(--ld-fill-1);color:var(--ld-label)}.document-book-cover>span{font-family:Georgia,serif;font-size:13px;line-height:1.45;text-align:center}.document-info{min-width:0}.document-title.content-open{display:block;margin:0;padding:0;border:0;background:transparent;text-align:left;color:var(--ld-label);font-size:20px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}.document-author{margin:2px 0 6px;color:var(--ld-label-2);font-size:13px}.document-badges{display:flex;flex-wrap:wrap;gap:6px}.document-badges span{font-size:11px;border:1px solid var(--ld-separator);border-radius:3px;padding:1px 6px;color:var(--ld-label-2)}.document-badges .coverage-badge{border-color:color-mix(in srgb,var(--ld-danger) 45%,transparent);background:var(--ld-fill-1);color:var(--ld-label-2)}.document-description{color:var(--ld-label-2);line-height:1.65;font-size:14px;margin:6px 0}.document-study-info{color:var(--ld-label-3);font-size:12px;margin:7px 0}.document-empty{padding:30px;line-height:1.7;color:var(--ld-label-2)}.document-empty h2{font-size:18px;color:var(--ld-label)}.document-empty button{background:var(--ld-fill-1);color:var(--ld-label);padding:10px;border-radius:6px}.document-mobile-tools{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:1100px){.document-layout{grid-template-columns:220px minmax(0,1fr)}.document-row.content-entry{grid-template-columns:20px 86px minmax(0,1fr);gap:12px}.document-cover,.document-cover img{width:86px}.document-book-cover{min-height:126px}.document-title.content-open{font-size:17px}}@media(max-width:880px){.document-layout{grid-template-columns:minmax(0,1fr)}.document-filters{display:none}.document-filters.filters-open{display:block;max-height:48vh;border-bottom:1px solid var(--ld-separator)}.document-layout:has(.filters-open){grid-template-rows:auto minmax(0,1fr)}.document-mobile-tools{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;flex:0 0 auto;border-bottom:1px solid var(--ld-separator);color:var(--ld-label-2);font-size:12px}.document-mobile-tools button{display:flex;align-items:center;gap:8px;padding:8px 12px;color:var(--ld-label);background:var(--ld-fill-1);border-radius:6px}}@media(max-width:570px){.document-tabs{padding:7px;gap:2px}.document-tabs button{padding:9px;font-size:12px}.document-results{padding:8px 8px 24px}.document-row.content-entry{grid-template-columns:16px 64px minmax(0,1fr);gap:9px;padding:14px 6px}.document-cover,.document-cover img{width:64px}.document-book-cover{min-height:100px;padding:8px;gap:8px}.document-book-cover>span{font-size:10px}.document-title.content-open{font-size:16px}.document-description{font-size:12px}.document-author{font-size:11px}.document-badges span{font-size:10px}.document-study-info{font-size:11px}}.document-progress{position:relative;display:flex;align-items:center;gap:8px;margin:6px 0 0;padding-top:8px;color:var(--ld-accent-text);font-size:12px;font-weight:600}.document-progress:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;border-radius:2px;background:var(--ld-fill-2)}.document-progress span{position:absolute;top:0;left:0;height:4px;border-radius:2px;background:var(--ld-accent-fill)}.library-more-filters{margin:0 0 18px}.library-more-filters summary{cursor:pointer;color:var(--ld-label-2);font-size:12px;padding:8px 0}.library-more-filters[open]>label{display:grid;gap:7px;margin:12px 0;font-size:12px}.document-filters{padding:20px 16px}.document-filters>label{margin-bottom:16px}.document-import a{font-size:12px;color:var(--ld-accent)}.document-file-picker{display:grid;gap:6px;font-size:12px;color:var(--ld-label-2)}.document-file-picker input{width:100%;font-size:11px}.article-import label{flex:1;min-width:0}.article-import input{width:100%}body.caption-window-root{background:transparent!important;margin:0;min-width:0;overflow:hidden}.caption-window-root #root{height:100vh;min-width:0}.live-caption-app{--caption-font-size:27px;--caption-opacity:.96;box-sizing:border-box;background:rgba(17,19,22,var(--caption-opacity));color:#e9ebed;border-radius:12px;height:100%;display:flex;flex-direction:column;overflow:hidden;font:14px/1.6 Segoe UI Variable Text,Segoe UI,system-ui,sans-serif}.live-caption-app *{box-sizing:border-box}.live-caption-app button{font:inherit;cursor:pointer;border:0;border-radius:7px;background:transparent;color:#c8d0dc;padding:6px 8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.4;filter:none}.live-caption-app button:hover:not(:disabled){background:#343b45;color:#fff}.live-caption-app button:disabled{opacity:.45;cursor:default}.live-caption-app button:focus-visible,.live-caption-app select:focus-visible,.live-caption-app input:focus-visible,.lc-translation:focus-visible{outline:2px solid #c568e6;outline-offset:2px}.live-caption-app button[aria-pressed=true]{color:#7af5c5;background:#233b33}.live-caption-app h1,.live-caption-app h2,.live-caption-app p{margin:0}.live-caption-app h2{font-size:16px;line-height:1.5;font-weight:650}.live-caption-app svg{flex:none}.live-caption-app select{background:#24272d;border:1px solid #414854;color:#e9ebed;border-radius:7px;font:12px Segoe UI,system-ui,sans-serif;padding:6px}.live-caption-app input{accent-color:#c568e6}.live-caption-app ::selection{background:#7af5c544;color:#eafff7}.lc-title{display:flex;align-items:center;gap:10px;min-width:0}.lc-title>svg{color:#7af5c5}.lc-title strong{font-size:12px;font-weight:600;white-space:nowrap}.lc-status{font-size:11px;color:#aeb8c7;display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lc-status i{width:5px;height:5px;border-radius:50%;background:#8793a5;flex:none}.lc-status.listening i{background:#7af5c5}.lc-status.error i{background:#f2a3a3}.lc-window-tools{display:flex;gap:2px;flex:none}.lc-window-tools button{width:30px;height:29px;padding:0}.lc-notice{flex:none;display:flex;align-items:center;gap:10px;justify-content:space-between;background:#333039;color:#ead9ed;padding:8px 20px;font-size:12px;line-height:1.5}.lc-notice>span{overflow-wrap:anywhere}.lc-current{margin-top:auto;flex:none;text-align:center;padding:14px 27px 12px}.lc-line-meta{display:flex;justify-content:center;align-items:center;gap:12px;color:#a9b6c8;font-size:11px;min-height:20px;margin-bottom:8px;font-variant-numeric:tabular-nums}.lc-line-meta button{font-size:11px;padding:2px 7px;color:#cda1dc}.lc-source{font-size:var(--caption-font-size);font-weight:550;line-height:1.55;color:#7af5c5;white-space:pre-wrap;overflow-wrap:anywhere;text-wrap:balance}.lc-source.is-partial{color:#c6d5cc;font-weight:450}.lc-source button{display:inline;padding:0 2px;margin:0 -1px;font:inherit;line-height:inherit;color:inherit;vertical-align:baseline;border-radius:4px;white-space:inherit}.lc-source button:hover,.lc-source button.saved{color:#f2d36f!important;text-decoration:underline dotted;text-underline-offset:5px;background:#f2d36f15!important}.lc-translation-label{margin-top:8px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#9aa7b7}.lc-translation{font-size:19px;line-height:1.55;color:#d2d6de;margin-top:3px;overflow-wrap:anywhere}.lc-translation>span{font-size:13px;color:#b9c3d1}.lc-translation button{font-size:12px;color:#e7b5f3;padding:2px 8px}.lc-translation.hover-only:not(:hover):not(:focus-visible){color:transparent;background:#ffffff05;border-radius:5px}.lc-reveal{font-size:12px!important;color:#b9c3d1!important;margin-top:8px;background:#2b323b!important}.lc-line-help{display:flex;gap:18px;align-items:center;justify-content:center;font-size:11px;color:#adb9cb;margin-top:10px}.lc-line-help button{font-size:11px;padding:3px 6px}.lc-empty{padding:14px 20px 20px}.lc-empty h1{font-size:22px;font-weight:550;color:#d8e9df;margin-bottom:8px}.lc-empty p{font-size:13px;color:#b3bfce;line-height:1.7}.lc-toolbar{flex:none;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 15px;border-top:1px solid #343b4590}.lc-transport,.lc-tools{display:flex;align-items:center;gap:5px}.lc-toolbar button{font-size:12px;white-space:nowrap}.lc-start{background:#343b45!important;color:#7af5c5!important}.lc-tools>span{font-size:11px;color:#abb6c6;margin-right:6px;white-space:nowrap}.lc-pane{min-height:0;overflow:auto;flex:1;border-bottom:1px solid #343b45;padding:14px 24px;background:#24272d;color:#d6deea}.lc-pane-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:14px}.lc-pane-head>div:last-child{display:flex;align-items:center;gap:5px}.lc-pane-head span{font-size:12px;color:#aebacd}.lc-pane h2{color:#e9ebed}.lc-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.lc-settings label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:14px}.lc-settings label.lc-check{flex-direction:row;align-items:center;gap:8px}.lc-check input{width:16px;height:16px}.lc-settings input[type=range]{width:100%;margin:4px 0 0}.lc-settings select{width:100%;font-size:12px}.lc-secondary{background:#343b45!important;color:#e1d0ea!important;font-size:12px!important;padding:7px 11px!important}.lc-help{font-size:12px;color:#b8c3d3;line-height:1.7;margin-top:15px!important}.lc-dictionary h2{font-size:24px;color:#f2d36f;line-height:1.3}.lc-word-meaning{font-size:17px;font-weight:550}.lc-definition{margin-top:10px}.lc-definition small{font-size:11px;color:#b6c2d4}.lc-definition p{font-size:13px;line-height:1.7;margin-top:4px}.lc-definition p button{font-size:12px;justify-content:start;display:flex;padding:3px 0;color:#aabcb3}.lc-dict-actions{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.lc-loading{display:flex;align-items:center;gap:8px;font-size:13px;color:#bdc8d8}.lc-history-list>button{display:grid;width:100%;grid-template-columns:64px 1fr;gap:4px 12px;text-align:left;justify-content:start;padding:10px 12px;border-bottom:1px solid #3a414c;border-radius:0}.lc-history-list time{font-size:11px;color:#abb9cc;grid-row:span 2}.lc-history-list span{font-size:13px;color:#7af5c5;line-height:1.6}.lc-history-list small{font-size:12px;color:#b7c3d4;line-height:1.6}.lc-history-list button.selected{background:#343b45}.lc-history-list>p{font-size:13px;color:#b8c5d7}.lc-examples{display:grid;gap:12px;margin-top:15px}.lc-examples button{font-size:13px;text-align:left;justify-content:start;padding:3px 0}.lc-examples p{font-size:12px;color:#becbdb}.lc-examples small{font-size:11px;color:#aebed2}.lc-spin{animation:lc-spin 1s linear infinite}@keyframes lc-spin{to{transform:rotate(360deg)}}@media(max-width:750px){.lc-title{gap:7px}.lc-status{max-width:220px}.lc-title strong{font-size:11px}.lc-current{padding:10px 18px}.lc-source{font-size:calc(var(--caption-font-size) * .85)}.lc-translation{font-size:17px}.lc-toolbar{justify-content:center;gap:6px;padding:7px 10px}.lc-toolbar button{font-size:11px}.lc-tools{justify-content:center}.lc-settings-grid{gap:18px}.lc-pane{padding:14px 18px}.lc-line-help{gap:10px}.lc-line-help>span{font-size:11px}.lc-window-tools button{width:27px}}@media(max-width:520px){.lc-status{display:none}.lc-current{padding:9px 13px}.lc-pane{padding:12px 14px}.lc-source{font-size:calc(var(--caption-font-size) * .75)}.lc-translation{font-size:15px}.lc-settings-grid{grid-template-columns:1fr;gap:6px}.lc-line-help{flex-wrap:wrap;gap:3px}.lc-transport,.lc-tools{gap:3px}.lc-tools>span{margin-right:2px}.lc-toolbar button{padding:5px}.lc-line-meta{gap:8px}.lc-history-list>button{grid-template-columns:52px 1fr}.lc-history-list time{font-size:11px}}.live-caption-app{padding:4px}.lc-surface{position:relative;border-radius:10px}.lc-window-tools button{width:28px;height:27px}.lc-current{padding:8px 22px 7px}.lc-line-meta{margin-bottom:3px;min-height:16px}.lc-translation-label{margin-top:4px}.lc-translation{margin-top:1px}.lc-toolbar{padding:5px 11px;gap:5px}.lc-empty{padding:5px 18px 8px}.lc-empty h1{font-size:18px;margin-bottom:4px}.lc-empty p{font-size:12px;line-height:1.45}.live-caption-app.is-docked{padding:0}.live-caption-app.is-docked .lc-surface{border-radius:0;box-shadow:0 4px 18px #0006}.live-caption-app.placement-top .lc-surface{border-bottom:1px solid #343b4590}.live-caption-app.placement-bottom .lc-surface{border-top:1px solid #343b4590}@media(prefers-reduced-motion:reduce){.lc-spin{animation:none}}html.caption-window-root,body.caption-window-root,.caption-window-root #root{background:transparent!important;color-scheme:normal}.live-caption-app{position:relative;padding:8px;display:flex;justify-content:flex-end;background:transparent;color-scheme:dark}.live-caption-app.is-docked{padding:0;border-radius:0}.live-caption-app.is-docked .lc-surface{border-radius:0;box-shadow:none}.live-caption-app.placement-top{justify-content:flex-start}.lc-surface{width:100%;flex:none;overflow:hidden;border-radius:12px;background:rgba(17,19,22,var(--caption-opacity));box-shadow:0 10px 30px #0005}.lc-current{margin:0;padding:12px 26px 10px}.lc-source,.lc-translation{max-height:none;overflow:hidden}.lc-source{white-space:normal;text-wrap:initial;line-height:1.5;text-shadow:0 1px 2px #0009}.lc-source button{padding:0;margin:0;white-space:inherit}.lc-source button.is-selected{color:#f2d36f;background:#f2d36f20;text-decoration:underline dotted;text-underline-offset:5px}.lc-text-row{display:block;white-space:pre;overflow:hidden;max-width:100%}.lc-translation{line-height:1.5;text-shadow:0 1px 2px #0008;margin-top:7px}.lc-line-meta{margin-bottom:5px;min-height:18px}.lc-line-help{margin-top:9px}.lc-pane{position:absolute;z-index:10;flex:none;bottom:calc(var(--caption-surface-height) + 20px);right:8px;width:345px;max-width:calc(100% - 16px);max-height:min(430px,calc(100% - var(--caption-surface-height) - 28px));padding:17px 19px;border:0;border-radius:12px;background:#24272d;box-shadow:0 12px 32px #0006;overflow:auto}.lc-dictionary{width:350px;right:auto;max-height:min(340px,calc(100% - var(--caption-surface-height) - 28px))}.lc-history{width:400px;max-height:min(340px,calc(100% - var(--caption-surface-height) - 28px))}.live-caption-app.is-docked .lc-pane{bottom:calc(var(--caption-surface-height) + 12px)}.live-caption-app.placement-top .lc-pane{top:calc(var(--caption-surface-height) + 12px);bottom:auto}.lc-surface{position:relative}.lc-settings-grid{display:block}.lc-pane-head{gap:9px;margin-bottom:13px}.lc-dictionary .lc-pane-head h2{font-size:25px}.lc-dictionary .lc-pane-head>div:first-child{min-width:0;overflow-wrap:anywhere}.lc-dictionary .lc-pane-head>div:last-child{flex:none}.lc-pane-head>div:last-child>button{padding:5px}.lc-definition p{font-size:13px}.lc-word-meaning{font-size:16px}.lc-dict-actions{position:sticky;bottom:-17px;padding:12px 0 5px;background:#24272d}.lc-history-list>button{grid-template-columns:56px minmax(0,1fr);padding:12px 0}.lc-history-list span,.lc-history-list small{overflow-wrap:anywhere}.lc-retry{font-size:11px!important;color:#e7b5f3!important;margin-top:3px}.lc-notice{background:rgba(55,39,58,var(--caption-opacity));max-height:58px;overflow:auto}.lc-toolbar{padding:8px 16px}.lc-empty{padding:7px 20px 13px}.lc-empty h1{font-size:20px}@media(max-width:750px){.lc-current{padding:10px 18px}.lc-toolbar{padding:7px 10px}.lc-line-help{gap:10px}}@media(max-width:520px){.lc-current{padding:9px 12px}.lc-pane{padding:15px 16px}.lc-text-row{line-height:1.5}.lc-line-help{flex-wrap:wrap;gap:3px}}.lc-pane{z-index:100}.lc-source-stack{display:grid;gap:3px;min-width:0}.lc-source-line{width:100%;padding:2px 10px;border:1px solid transparent;border-radius:6px;text-align:center;cursor:pointer}.lc-source-line:hover,.lc-source-line:focus-visible{background:#ffffff0a;border-color:#ffffff1c;outline:none}.lc-source-line-old{opacity:.72}.lc-source-line-old .lc-source{font-size:calc(var(--caption-font-size) * .78);color:#b8c8c0;font-weight:450}.lc-source-line-current .lc-source{font-size:var(--caption-font-size)}.lc-profile-block{margin:0 0 18px;padding:12px;border:1px solid #343b45;border-radius:8px;background:#1b1e23}.lc-profile-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.lc-profile-heading strong{font-size:13px;color:#e9ebed}.lc-profile-heading span{font-size:11px;color:#9ca1aa}.lc-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lc-profile{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:3px!important;min-height:58px;padding:9px 10px!important;background:#24272d!important;border:1px solid #414854!important;text-align:left}.lc-profile:hover,.lc-profile.is-selected{background:#233b33!important;border-color:#7af5c5!important;color:#e9ebed!important}.lc-profile strong{font-size:12px}.lc-profile small{font-size:10px;line-height:1.35;color:#aeb8c7}.lc-profile.is-selected small{color:#c9f5df}.lc-line-dialog{left:50%;right:auto;width:min(520px,calc(100% - 16px));transform:translate(-50%)}.lc-line-dialog-source{padding:10px 12px;border-radius:7px;background:#1b1e23;color:#7af5c5;font-size:17px;line-height:1.5}.lc-language-settings{margin-bottom:18px}.lc-language-help{margin:10px 0 14px!important;font-size:12px;line-height:1.6;color:#b8c3d3}.lc-language-settings .lc-check input{flex:none}.live-caption-app .lc-surface{display:flex;flex-direction:column}.live-caption-app .lc-current,.live-caption-app.chrome-hidden .lc-current{padding:10px 26px 11px;margin-block:auto}.lc-popup-app{height:100dvh;min-height:0;padding:0!important;display:block!important;overflow:hidden;border-radius:12px;background:#24272d}.lc-popup-app .lc-pane{position:relative!important;inset:auto!important;transform:none!important;width:100%;max-width:none;height:100%;max-height:none;margin:0;box-shadow:none;border-radius:12px;overflow:auto;padding:17px 19px}.lc-popup-app .lc-pane-head{-webkit-app-region:drag;min-height:28px}.lc-popup-app .lc-pane-head button,.lc-popup-app input,.lc-popup-app select{-webkit-app-region:no-drag}.lc-resize-handles{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:200}.lc-resize-edge{position:absolute;pointer-events:auto;-webkit-app-region:no-drag;touch-action:none}.lc-resize-n,.lc-resize-s{left:14px;right:14px;height:8px;cursor:ns-resize}.lc-resize-n{top:0}.lc-resize-s{bottom:0}.lc-resize-e,.lc-resize-w{top:14px;bottom:14px;width:8px;cursor:ew-resize}.lc-resize-e{right:0}.lc-resize-w{left:0}.lc-resize-ne,.lc-resize-nw,.lc-resize-se,.lc-resize-sw{width:14px;height:14px}.lc-resize-ne{top:0;right:0;cursor:nesw-resize}.lc-resize-nw{top:0;left:0;cursor:nwse-resize}.lc-resize-sw{bottom:0;left:0;cursor:nesw-resize}.lc-resize-se{bottom:0;right:0;cursor:nwse-resize}.lc-popup-app .lc-pane-head{position:sticky;top:-17px;padding:4px 0;background:#24272d;z-index:1}.lc-settings-tabs{display:flex;gap:4px;margin:0 0 18px;border-bottom:1px solid #414854;padding-bottom:5px}.lc-settings-tabs [role=tab]{flex:1;min-height:34px;padding:6px 4px;font-size:12px;white-space:nowrap;border-radius:5px 5px 0 0;color:#b8c3d3}.lc-settings-tabs [aria-selected=true]{color:#7af5c5;background:#233b33;box-shadow:inset 0 -2px #7af5c5}.lc-settings-content{min-width:0}.lc-settings-hint{margin:12px 0 16px!important;color:#b8c3d3;font-size:12px;line-height:1.6}.lc-profile-block{padding:0;border:0;background:transparent}.lc-profile-grid{grid-template-columns:1fr 1fr}.lc-connection-info{margin-top:18px;color:#b8c3d3;font-size:12px;line-height:1.6}.lc-connection-info summary{cursor:pointer;padding:8px 0;color:#e9ebed}.lc-connection-info p{margin-top:8px}.lc-replay-controls{margin-top:16px;padding-top:12px;border-top:1px solid #414854}.lc-replay-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.lc-replay-controls label{display:flex;gap:10px;align-items:center;margin-top:10px;color:#b8c3d3;font-size:12px}.lc-replay-controls select{width:auto;min-width:64px}@media(max-width:650px){.lc-profile-grid{grid-template-columns:1fr 1fr}.lc-profile-heading{display:block}.lc-profile-heading span{display:block;margin-top:3px}}.lc-transport{flex-wrap:wrap;min-width:0}.lc-transport>select{max-width:138px}.lc-tools{flex-wrap:wrap;min-width:0}@media(max-width:760px){.lc-toolbar{align-items:flex-start}.lc-transport,.lc-tools{max-width:100%}.lc-transport>select{max-width:116px}.lc-toolbar button{font-size:11px;padding:5px}}.island-overlay{--island-surface:0,0,0;--island-hairline:rgba(255,255,255,.06);--island-ease:cubic-bezier(.32,.72,0,1)}.island-overlay.placement-floating{justify-content:flex-start;align-items:center}.island-overlay.placement-floating .lc-surface{max-width:100%;background:rgba(var(--island-surface),var(--caption-opacity));border-radius:28px;box-shadow:0 0 0 1px var(--island-hairline),0 8px 30px #00000073}.island-overlay .lc-island-mark{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:10px;background:#18362b;color:#7af5c5}.island-overlay .lc-title{gap:8px}.island-overlay .lc-window-tools{gap:3px}.island-overlay .lc-window-tools button{width:29px;height:29px;border-radius:50%;color:#abb3bd}.island-overlay button[aria-pressed=true]{color:#7af5c5;background:#7af5c514;box-shadow:inset 0 0 0 1px #7af5c56b}.island-overlay button[aria-pressed=false]{color:#9ca1aa;background:transparent;box-shadow:none}.island-overlay button[aria-pressed=true]:hover:not(:disabled){color:#a8f8d8;background:#7af5c524}.island-overlay .lc-island-mark[data-window-drag]{cursor:grab;touch-action:none}.island-overlay .lc-island-mark[data-window-drag]:hover{background:#1f4436;color:#a8f8d8}.island-overlay .lc-island-mark[data-window-drag]:active{cursor:grabbing}.island-overlay.is-island-expanded .lc-current{padding:12px 26px 22px;margin-block:auto}.island-overlay .lc-empty{padding:28px 12px 30px;max-width:440px;margin:auto}.island-overlay .lc-empty h1{font-size:21px;font-weight:600;line-height:1.35;letter-spacing:-.025em;color:#f1f3f5;max-width:24ch;margin:0 auto 10px;text-wrap:balance}.island-overlay .lc-empty p{color:#a8afb9;font-size:12px;line-height:1.65;max-width:40ch;margin:auto}.island-overlay .lc-empty p+p{margin-top:10px;font-size:11px}.island-overlay .lc-source{color:#a1edca;font-weight:500;line-height:1.55}.island-overlay .lc-source-old{color:#aab5b0}.island-overlay .lc-translation{color:#f0f2f4;font-weight:450;margin-top:12px}.island-overlay .lc-line-meta{color:#8b949e;font-size:10px}.island-overlay .lc-toolbar{margin:0 16px;padding:12px 0 15px;border-top:1px solid #252a30;gap:10px}.island-overlay .lc-toolbar .lc-start{background:#d8f6e7!important;color:#10291f!important;border-radius:999px;padding:8px 13px;min-height:34px;font-weight:650}.island-overlay .lc-toolbar .lc-source-select{border-radius:999px;background:#1a1e23;border-color:#343b43;color:#c8ced6}.island-overlay .lc-tools>span{font-size:10px;letter-spacing:.04em;color:#a1a9b4}.island-overlay .lc-notice{background:#302921;color:#f5ddba;margin:0 16px 6px;padding:10px 12px;border-radius:10px;position:relative;inset:auto}.island-overlay .lc-island-strip{width:100%;height:40px;display:flex;align-items:center;gap:4px;padding:0 5px;-webkit-user-select:none;user-select:none}.island-overlay.is-island-collapsed{padding:0}.island-overlay.is-island-collapsed .lc-surface{width:100%;max-width:100%;min-height:0!important;border-radius:999px;box-shadow:inset 0 0 0 1px var(--island-hairline)}.island-overlay.is-island-collapsed:not(.has-caption) .lc-surface{max-width:272px}.island-overlay.is-island-collapsed .lc-surface>:not(.lc-island-strip){display:none!important}.island-overlay .lc-island-drag{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;color:#a1edca;cursor:grab;touch-action:none}.island-overlay .lc-island-drag:hover{background:#ffffff12;color:#c4f6de}.island-overlay .lc-island-drag:active{cursor:grabbing}.island-overlay .lc-island-open{display:flex;align-items:center;flex:1;min-width:0;height:30px;padding:4px 8px;gap:10px;border-radius:999px;background:transparent;color:inherit;text-align:left}.island-overlay .lc-island-open:hover:not(:disabled){background:#ffffff0d;color:inherit}.island-overlay .lc-island-chevron{flex:none;margin-left:auto;color:#7d858f}.island-overlay .lc-island-open:hover .lc-island-chevron,.island-overlay .lc-island-open:focus-visible .lc-island-chevron{color:#e9ebed}.island-overlay .lc-island-copy{display:flex;align-items:center;gap:6px;flex:1;min-width:0;white-space:nowrap;font-size:11px;font-weight:550;color:#e5e9ee}.island-overlay .lc-island-strip.has-caption{height:58px;gap:6px;padding-inline:10px 10px}.island-overlay .has-caption .lc-island-open{height:48px}.island-overlay .lc-island-caption{display:grid;gap:0;flex:1;min-width:0;text-align:left}.island-overlay .lc-island-source{font-size:16px;line-height:22px;color:#a1edca;font-weight:500}.island-overlay .lc-island-translation{font-size:12px;line-height:18px;color:#c6ced6;font-weight:400}.island-overlay .lc-island-state{flex:none;font-size:10px;line-height:15px;color:#a8afb9;white-space:nowrap}.island-overlay .lc-island-notice{width:5px;height:5px;background:#f2d36f;border-radius:50%;flex:none}.island-overlay .lc-level-wave{display:flex;align-items:center;gap:2px;height:20px;flex:none;color:#7af5c5}.island-overlay .lc-level-wave i{display:block;width:2px;height:18px;border-radius:2px;background:currentColor;transform-origin:center;transition:transform .14s ease-out}.island-overlay .lc-toolbar-wave{margin:0 6px}.island-overlay .state-error .lc-island-drag{color:#f4a8a8}.island-overlay .lc-island-transport,.island-overlay .lc-island-stop{width:30px;height:30px;padding:0;flex:none;border-radius:50%}.island-overlay .lc-island-transport{background:#d8f6e7;color:#10291f}.island-overlay .lc-island-transport:hover:not(:disabled){background:#c2efda;color:#10291f}.island-overlay .lc-island-transport.is-pausable,.island-overlay .lc-island-stop{background:#2c323a;color:#f1f3f5}.island-overlay .lc-island-transport.is-pausable:hover:not(:disabled),.island-overlay .lc-island-stop:hover:not(:disabled){background:#3b434d;color:#fff}.island-overlay .lc-toolbar .lc-stop{width:34px;min-width:34px;height:34px;padding:0;border-radius:50%;background:#2c323a;color:#f1f3f5}.island-overlay .lc-toolbar .lc-stop:hover:not(:disabled){background:#3b434d;color:#fff}.island-overlay .lc-toolbar .lc-toggle{border-radius:999px;padding:6px 11px}.island-overlay.placement-floating.is-island-expanded .lc-surface{animation:lc-island-morph .42s var(--island-ease)}.island-overlay.placement-floating.is-island-expanded.has-caption .lc-surface{animation-name:lc-island-morph-strip}@keyframes lc-island-morph{0%{clip-path:inset(0 calc(50% - 136px) calc(100% - 40px) round 20px)}to{clip-path:inset(0 0 0 0 round 28px)}}@keyframes lc-island-morph-strip{0%{clip-path:inset(0 0 calc(100% - 58px) 0 round 29px)}to{clip-path:inset(0 0 0 0 round 28px)}}.island-overlay.is-island-expanded .lc-surface>*{animation:lc-island-reveal .24s .12s var(--island-ease) backwards}@keyframes lc-island-reveal{0%{opacity:0}to{opacity:1}}.island-overlay.is-island-closing .lc-surface>*{opacity:0;transition:opacity .12s ease}.island-overlay.is-island-collapsed .lc-island-strip{animation:lc-island-reveal .16s ease-out backwards}@media(prefers-reduced-motion:reduce){.island-overlay.placement-floating.is-island-expanded .lc-surface,.island-overlay.is-island-expanded .lc-surface>*,.island-overlay.is-island-collapsed .lc-island-strip{animation:none}.island-overlay.is-island-closing .lc-surface>*{transition:none}.island-overlay .lc-level-wave i{transition:none}}.caption-strip .lc-surface{background:rgba(0,0,0,var(--caption-opacity))}.caption-strip.placement-top .lc-surface{border-bottom:1px solid var(--island-hairline)}.caption-strip.placement-bottom .lc-surface{border-top:1px solid var(--island-hairline)}.caption-strip.is-island-expanded .lc-current{margin-block:auto;padding:8px 20px 2px}.caption-strip .lc-source{font-size:var(--caption-font-size);line-height:1.4;font-weight:550;color:#a1edca;text-shadow:0 0 2px #000,0 1px 3px #000}.caption-strip .lc-translation{font-size:calc(var(--caption-font-size) * .75);line-height:1.4;margin-top:1px;color:#f0f2f4;font-weight:450;text-shadow:0 0 2px #000,0 1px 3px #000}.caption-strip .lc-source-stack{gap:0}.caption-strip .lc-source-line{padding:0 8px}.caption-strip .lc-source-line-old .lc-source{font-size:calc(var(--caption-font-size) * .78);line-height:1.35;color:#b8c8c0;font-weight:450}.caption-strip .lc-line-meta{gap:10px;min-height:0;margin:0 0 2px;font-size:10px;line-height:16px}.caption-strip .lc-line-meta button{padding:1px 8px;font-size:10px}.caption-strip .lc-retry{margin-top:2px;padding:2px 8px}.caption-strip .lc-empty{max-width:none;margin:0;padding:2px 8px 0}.caption-strip .lc-empty h1{max-width:none;margin:0;font-size:15px;line-height:22px;letter-spacing:-.01em}.caption-strip .lc-empty p{max-width:none;margin:0;font-size:11px;line-height:17px;color:#a8afb9}.caption-strip .lc-empty p+p{margin-top:0}.caption-strip .lc-notice{margin:8px 10px 0;padding:5px 6px 5px 12px;border-radius:12px;font-size:12px;line-height:1.4;max-height:none}.caption-strip .lc-notice button{padding:3px 8px}.caption-strip .lc-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 6px;margin:0;padding:3px 12px 7px;border:0;-webkit-user-select:none;user-select:none;transition:opacity .16s ease}.caption-strip .lc-title{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:7px}.caption-strip .lc-island-mark{width:26px;height:26px;border-radius:8px}.caption-strip .lc-status{display:block;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;color:#a8afb9}.caption-strip .lc-status i{display:inline-block;vertical-align:middle;margin:-2px 6px 0 0}.caption-strip .lc-transport{flex:none;flex-wrap:nowrap;gap:2px}.caption-strip .lc-toolbar-end{flex:1 1 0;min-width:max-content;display:flex;align-items:center;justify-content:flex-end;gap:2px}.caption-strip .lc-tools,.caption-strip .lc-window-tools{flex-wrap:nowrap;gap:2px}.caption-strip .lc-window-tools{margin-left:4px;padding-left:4px;border-left:1px solid #ffffff14}.caption-strip .lc-toolbar button{width:28px;min-width:28px;height:28px;padding:0;border-radius:50%;font-size:12px}.caption-strip .lc-toolbar .lc-start{width:auto;min-height:28px;padding:0 12px 0 10px;gap:6px;border-radius:999px;background:#d8f6e7!important;color:#10291f!important;font-weight:650}.caption-strip .lc-toolbar .lc-stop{width:28px;min-width:28px;height:28px;background:#2c323a;color:#f1f3f5}.caption-strip .lc-source-select{height:28px;max-width:112px;margin-right:4px;padding:0 6px;font-size:11px;border-radius:999px}.caption-strip .lc-language-pair{margin-right:4px;font-size:10px;letter-spacing:.04em;color:#8b949e;white-space:nowrap}.caption-strip .lc-toolbar-wave{margin:0 4px}.caption-strip.is-running.has-caption .lc-toolbar{opacity:.55}.caption-strip.is-running.has-caption .lc-surface:hover .lc-toolbar,.caption-strip.is-running.has-caption .lc-toolbar:has(:focus-visible){opacity:1}.caption-strip.chrome-hidden .lc-source-select,.caption-strip.chrome-hidden .lc-browse,.caption-strip.chrome-hidden .lc-language-pair,.caption-strip.chrome-hidden .lc-start-label{display:none}.caption-strip.chrome-hidden .lc-toolbar .lc-start{width:28px;padding:0}@media(max-width:640px){.caption-strip .lc-language-pair{display:none}}@media(max-width:520px){.caption-strip .lc-start-label{display:none}.caption-strip .lc-toolbar .lc-start{width:28px;padding:0}.caption-strip .lc-status{width:5px}.caption-strip.is-island-expanded .lc-current{padding-inline:12px}}@media(max-width:460px){.caption-strip .lc-source-select{display:none}}@media(prefers-reduced-motion:reduce){.caption-strip .lc-toolbar{transition:none}}:root{color-scheme:light dark;--ld-font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;--ld-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;--ld-bg-base: light-dark(#f4f5f6, #0b0c0e);--ld-bg-elevated: light-dark(#ffffff, #111316);--ld-bg-card: light-dark(#ffffff, #17191c);--ld-fill-1: light-dark(#eef0f1, #1f2227);--ld-fill-2: light-dark(#e3e6e8, #2a2e35);--ld-fill-3: light-dark(#c8cdd1, #3b4048);--ld-bg-inverse: light-dark(#111315, #e9ebed);--ld-sidebar: light-dark(rgba(236, 238, 240, .86), rgba(6, 7, 8, .92));--ld-bar: light-dark(rgba(255, 255, 255, .86), rgba(11, 12, 14, .86));--ld-label: light-dark(#111315, #e9ebed);--ld-label-2: light-dark(#383d42, #c5cad0);--ld-label-3: light-dark(#5a6066, #a1a6ae);--ld-label-4: light-dark(#60666c, #959ba3);--ld-separator: light-dark(rgba(20, 24, 28, .14), rgba(255, 255, 255, .08));--ld-separator-strong: light-dark(rgba(20, 24, 28, .28), rgba(255, 255, 255, .16));--ld-accent: light-dark(#0b7a5a, #7af5c5);--ld-accent-text: light-dark(#0a6b4f, #7af5c5);--ld-accent-fill: light-dark(#0b7a5a, #7af5c5);--ld-accent-fill-hover: light-dark(#096a4e, #a1f8d7);--ld-on-accent: light-dark(#ffffff, #04130d);--ld-accent-tint: color-mix(in srgb, var(--ld-accent) 14%, transparent);--ld-accent-tint-strong: color-mix(in srgb, var(--ld-accent) 22%, transparent);--ld-focus: var(--ld-accent);--ld-on-tint: var(--ld-on-accent);--ld-mint: light-dark(#0b7a5a, #7af5c5);--ld-gold: light-dark(#8a5d00, #f2d36f);--ld-orange: light-dark(#b34700, #ffb771);--ld-danger: light-dark(#c4001a, #ff9f97);--ld-overlay: light-dark(#000000, #ffffff);--ld-shadow: light-dark(rgba(0, 0, 0, .35), #000000);--ld-shadow-soft: 0 1px 2px light-dark(rgba(0, 0, 0, .05), rgba(0, 0, 0, .4)), 0 4px 16px light-dark(rgba(0, 0, 0, .05), rgba(0, 0, 0, .35));--ld-shadow-popover: 0 10px 34px light-dark(rgba(0, 0, 0, .16), rgba(0, 0, 0, .6)), 0 0 0 1px var(--ld-separator);--ld-radius-control: 10px;--ld-radius-card: 16px;--ld-radius-sheet: 22px;--ld-radius-pill: 999px;--ld-control-compact: 32px;--ld-control-regular: 36px;--ld-ease: cubic-bezier(.32, .72, 0, 1)}:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}:root.caption-window-root{color-scheme:dark}:root{font-family:var(--ld-font);background:var(--ld-bg-base);color:var(--ld-label);font-synthesis:none}.library-management{margin:0 0 18px;border:1px solid var(--ld-separator);border-radius:7px;padding:12px;color:var(--ld-label-2);font-size:13px}.library-management summary{cursor:pointer;color:var(--ld-label)}.library-management form,.folder-row,.library-item-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.library-management input,.library-item-actions select{background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:6px;color:var(--ld-label);padding:8px;min-width:0;max-width:100%}.library-management button,.library-item-actions button{background:var(--ld-fill-1);border-radius:6px;color:var(--ld-label);padding:8px;font-size:12px}.folder-row span{flex:1}.account-settings input[type=checkbox]{width:18px;accent-color:var(--ld-accent)}.library-management label{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.library-management input[type=file]{max-width:240px}.reading-speed{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.reading-speed button{min-width:38px;min-height:38px;padding:7px 10px}.reading-speed label{display:flex;align-items:center;gap:6px}.reading-speed button:disabled{opacity:.45;cursor:default}.library-groups{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 12px}.library-groups button{padding:9px 12px;border:1px solid var(--ld-separator);border-radius:7px;background:var(--ld-bg-card);color:var(--ld-label)}.library-groups button[aria-pressed=true]{border-color:var(--ld-mint);color:var(--ld-mint)}.content-preview{width:100%;aspect-ratio:16 / 9;object-fit:cover;border-radius:6px}.content-file{color:var(--ld-mint);font-size:13px}.provider-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px 20px;padding:0;margin:16px 0;border:0;min-width:0}.provider-fields label{margin:0;min-width:0}.provider-fields input,.provider-fields select{width:100%}.provider-fields input[type=checkbox]{width:18px;height:18px;accent-color:var(--ld-accent)}.provider-actions{display:flex;flex-wrap:wrap;gap:10px}.sentence-row .source,.sentence-row .translation,.sentence-row .study-translation,.study-translation>span{min-width:0;overflow-wrap:anywhere}.settings-card label,.settings-card select,.settings-card input{min-width:0;max-width:100%}.chat-message.user{margin-left:auto;background:var(--ld-bg-card)}.reader-head label{display:flex;gap:8px;align-items:center;max-width:40%}.reader-head select{min-width:0;max-width:100%;background:var(--ld-bg-card);color:var(--ld-label);padding:8px}.settings-card select{background:var(--ld-bg-card);color:var(--ld-label);padding:10px;max-width:100%}@media(max-width:570px){.reader-head{flex-wrap:wrap}.reader-head label{max-width:100%}}.anki-export{padding:20px 0;border-block:1px solid var(--ld-separator);margin:20px 0}.anki-export h2{font-size:18px}.anki-export p,.article-import p{color:var(--ld-label-3);line-height:1.7;max-width:70ch}.anki-export>label{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.anki-export input:not([type=checkbox]){min-width:0;max-width:100%;padding:8px;color:var(--ld-label);background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:7px}.anki-card-list{max-height:420px;overflow:auto;margin:16px 0}.anki-card{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--ld-separator)}.anki-card label{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}.anki-clip-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.anki-card label:first-child{flex:1;min-width:160px;overflow-wrap:anywhere}.anki-card input[type=file]{width:180px;font-size:12px}.anki-preview{max-width:160px;max-height:100px;object-fit:contain}.anki-card audio{max-width:240px}.anki-export button{padding:12px;background:var(--ld-bg-card);border-radius:7px;border:1px solid var(--ld-separator)}.anki-export input[type=checkbox]{width:18px;height:18px;accent-color:var(--ld-accent)}.article-import label{display:flex;flex-direction:column;gap:8px}.content-profile{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--ld-separator)}.content-profile label{display:flex;flex-direction:column;gap:6px;font-size:13px}.content-profile select{font:inherit;padding:10px;color:var(--ld-label);border:1px solid var(--ld-separator);border-radius:7px;background:var(--ld-bg-card)}.content-profile p,.content-method{color:var(--ld-label-3);max-width:70ch;line-height:1.7;font-size:13px}.content-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:20px;padding:12px 0 28px}.content-entry{display:flex;flex-direction:column;gap:12px;padding:20px;background:var(--ld-bg-elevated);border:1px solid var(--ld-separator);border-radius:8px;min-width:0}.content-entry-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--ld-label-3)}.content-entry h2{font-size:18px;line-height:1.5;margin:0;overflow-wrap:anywhere}.content-entry p{margin:0;line-height:1.7;font-size:14px}.content-entry small{color:var(--ld-label-3);line-height:1.6}.content-coverage{color:var(--ld-mint)}.content-review-words{color:var(--ld-gold)}.content-new-words{color:var(--ld-label-3)}.content-open{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding:12px;border-radius:7px;border:1px solid var(--ld-separator);background:var(--ld-bg-card)}.app-shell:not(:has(>.dictionary)){grid-template-columns:62px minmax(0,1fr)}@media(max-width:570px){.app-shell:not(:has(>.dictionary)){grid-template-columns:minmax(0,1fr)}}@media(max-width:570px){.content-catalog{grid-template-columns:minmax(0,1fr)}.content-entry{padding:16px}}.study-options{display:flex;flex-wrap:wrap;gap:12px 20px;padding:10px 20px;border-bottom:1px solid var(--ld-separator);font-size:13px}.study-options label{display:flex;align-items:center;gap:8px}.study-options input{width:18px;height:18px;accent-color:var(--ld-accent)}.study-options select,.vocabulary-filters select,.saved-entry select{font:inherit;color:var(--ld-label);border:1px solid var(--ld-separator);border-radius:7px;padding:8px;background:var(--ld-bg-card)}.study-translation [hidden]{display:none!important}.reveal-translation{padding:5px 8px;margin:4px;color:var(--ld-label);background:var(--ld-fill-1);border-radius:7px;font-size:12px}.lookup-word[data-learning-status=learning]{color:var(--ld-gold);text-decoration:underline dotted;text-underline-offset:4px}.lookup-word[data-learning-status=known]{color:var(--ld-mint)}.lookup-word[data-learning-status=ignored]{color:var(--ld-label-3);text-decoration:underline;text-underline-offset:4px}.saved-page{padding:28px;overflow-y:auto}.vocabulary-filters{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 12px}.vocabulary-filters label,.saved-entry-actions label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ld-label-2)}.vocabulary-filters label:first-child{flex:1;min-width:170px}.vocabulary-filters input{width:100%;border:1px solid var(--ld-separator);padding:10px;border-radius:7px;background:var(--ld-bg-base);color:var(--ld-label)}.vocabulary-legend,.empty-study{color:var(--ld-label-2);font-size:14px;line-height:1.7}.saved-entry{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--ld-separator)}.saved-entry>div:first-child{min-width:0;flex:1;overflow-wrap:anywhere}.saved-entry strong,.saved-entry span{display:block}.saved-entry strong{font-size:18px;color:var(--ld-gold)}.saved-entry p{color:var(--ld-label-2);line-height:1.7}.saved-entry small{color:var(--ld-label-3)}.saved-entry-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;max-width:220px}.saved-entry button,.review-mode button,.review-card>button{padding:10px 12px;border:1px solid var(--ld-separator);background:var(--ld-bg-card);border-radius:7px}.review-mode{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.review-mode button[aria-pressed=true]{border-color:var(--ld-accent);color:var(--ld-label)}.review-card>button{margin:10px 4px}select:focus-visible{outline:2px solid var(--ld-accent);outline-offset:2px}@media(max-width:570px){.app-shell .rail-button:last-child{display:none!important}.study-options{padding:10px 12px;gap:10px}.saved-page{padding:20px 14px 80px}.saved-entry{flex-direction:column;gap:12px}.saved-entry-actions{max-width:none;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.reveal-translation{min-height:40px}}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--ld-bg-base)}button,input{font:inherit}button{border:0;cursor:pointer;color:inherit}button:focus-visible,input:focus-visible{outline:2px solid var(--ld-accent);outline-offset:2px}button:hover{filter:brightness(1.12)}::selection{background:color-mix(in srgb,var(--ld-mint) 27%,transparent);color:var(--ld-label)}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-track{background:var(--ld-bg-base)}::-webkit-scrollbar-thumb{background:var(--ld-fill-2);border-radius:99px}.app-shell{--bg: var(--ld-bg-base);--surface: var(--ld-bg-elevated);--surface-2: var(--ld-bg-card);--line: var(--ld-separator);--muted: var(--ld-label-3);--mint: var(--ld-mint);--violet: var(--ld-accent);--yellow: var(--ld-gold);display:grid;grid-template-columns:62px minmax(0,1fr) 356px;min-height:100vh;background:var(--bg);overflow:hidden}.rail{display:flex;flex-direction:column;align-items:center;gap:11px;padding:13px 9px;border-right:1px solid var(--ld-separator);background:var(--ld-bg-elevated)}.rail-mark{display:grid;place-items:center;width:35px;height:35px;margin-bottom:9px;border:1px solid var(--ld-separator);border-radius:11px;color:var(--mint);font-weight:800;font-size:17px}.rail-button{display:grid;place-items:center;width:42px;height:42px;background:transparent;border-radius:12px;color:var(--ld-label-3);transition:background .18s ease,color .18s ease,transform .18s ease}.rail-button svg{width:21px;height:21px;stroke-width:1.8}.rail-button:hover{color:var(--ld-label);background:var(--ld-bg-card);transform:translateY(-1px)}.rail-button.active{color:var(--mint);background:color-mix(in srgb,var(--ld-mint) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ld-mint) 45%,transparent)}.rail-spacer{flex:1}.workspace{min-width:0;height:100vh;overflow:hidden;display:flex;flex-direction:column}.topbar{height:56px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ld-separator);background:var(--ld-bg-card)}.crumb,.top-actions,.reader-head,.reader-tools,.source-toolbar,.page-title,.dict-actions,.word-head,.dictionary-tabs{display:flex;align-items:center}.crumb{gap:9px;min-width:0;font-size:14px}.crumb strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.subtle,.muted{color:var(--ld-label-3)}.subtle{font-size:12px}.title-dot{width:6px;height:6px;border-radius:50%;background:var(--violet);box-shadow:0 0 10px color-mix(in srgb,var(--ld-accent) 73%,transparent)}.top-actions{gap:12px}.icon-button{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;background:transparent;color:var(--ld-label-2)}.icon-button:hover{background:var(--ld-fill-1)}.icon-button svg{width:17px}.status{font-size:11px;font-weight:700;color:var(--ld-label-4);letter-spacing:.02em}.status.online{color:var(--ld-mint)}.notice{display:flex;align-items:center;gap:8px;margin:10px 20px 0;padding:10px 12px;color:var(--ld-label);background:color-mix(in srgb,var(--ld-accent) 16%,transparent);border:1px solid color-mix(in srgb,var(--ld-accent) 45%,transparent);border-radius:9px;font-size:13px}.notice svg{color:var(--ld-danger)}.notice button{margin-left:auto;display:grid;background:none;color:inherit}.study-page{position:relative;flex:1;overflow:auto;min-width:0}.reader-page{padding-bottom:80px}.reader-head{position:sticky;top:0;z-index:2;justify-content:space-between;min-height:47px;padding:0 42px;border-bottom:1px solid var(--ld-separator);background:color-mix(in srgb,var(--ld-bg-base) 93%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.pager{display:flex;align-items:center;gap:12px;color:var(--ld-label-3);font-size:14px}.pager strong{color:var(--mint)}.reader-tools{gap:8px}.reader-tools button,.source-toolbar button,.page-title button{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;background:var(--ld-fill-1);border:1px solid var(--ld-separator);border-radius:7px;color:var(--ld-label);font-size:12px}.reader-tools button:last-child{color:var(--ld-label);background:color-mix(in srgb,var(--ld-accent) 16%,transparent);border-color:color-mix(in srgb,var(--ld-accent) 45%,transparent)}.reading-intro{max-width:1100px;padding:42px 45px 28px;margin:auto}.reading-intro span,.page-title span{color:var(--ld-accent-text);font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.reading-intro h1,.page-title h1{margin:7px 0;font-size:clamp(22px,2vw,31px);line-height:1.15;letter-spacing:-.025em}.reading-intro p{margin:0;color:var(--ld-label-3);font-size:14px}.segment-table{max-width:1100px;margin:auto;padding:0 26px}.sentence-row{position:relative;display:grid;grid-template-columns:35px minmax(0,1.05fr) minmax(0,1fr) 22px;align-items:start;width:100%;padding:16px 14px;gap:13px;border-top:1px solid var(--ld-separator);background:var(--ld-bg-elevated);text-align:left;transition:background .18s ease,box-shadow .18s ease}.sentence-row:hover{background:var(--ld-bg-card)}.sentence-row.active{z-index:1;background:var(--ld-bg-card);box-shadow:inset 3px 0 0 var(--yellow)}.line-index{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ld-fill-1);color:var(--ld-label-3);font-size:10px;font-variant-numeric:tabular-nums}.active .line-index{color:var(--ld-on-tint);background:var(--violet)}.source,.translation{font-size:calc(15px * var(--font-scale));line-height:1.72}.source{color:var(--ld-label)}.translation{color:var(--ld-label-2)}.source .word-accent{color:var(--ld-accent-text)}.translation small{display:inline-block;margin-left:7px;color:var(--ld-label-4);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.translation-pending{color:var(--ld-label-4)}.inline-loader{display:inline-flex;gap:7px;align-items:center;color:var(--ld-accent-text)}.inline-loader svg,.dictionary-loading svg{animation:spin 1s linear infinite}.row-more{color:var(--ld-label-4);margin-top:5px}.floating-play{position:fixed;right:384px;bottom:27px;display:grid;place-items:center;width:61px;height:61px;border-radius:50%;color:var(--ld-on-accent);background:var(--violet);box-shadow:0 15px 36px color-mix(in srgb,var(--ld-shadow) 53%,transparent)}.floating-play svg{width:25px}.dictionary{height:100vh;overflow:auto;border-left:1px solid var(--ld-separator);background:var(--ld-bg-card)}.dictionary-tabs{height:56px;gap:28px;padding:0 16px;border-bottom:1px solid var(--ld-separator);font-size:13px;font-weight:700}.dictionary-tabs span:first-child{display:flex;gap:7px;align-items:center;color:var(--ld-label)}.search-box{display:flex;align-items:center;gap:8px;margin:13px;padding:0 10px;height:42px;border:1px solid var(--ld-separator);border-radius:8px;background:var(--ld-bg-elevated);color:var(--ld-label-3)}.search-box input{width:100%;min-width:0;background:transparent;outline:0;border:0;color:var(--ld-label);font-size:15px;font-weight:650}.search-box button{background:transparent;color:var(--ld-label-4);display:grid}.dictionary-body{padding:7px 18px 32px}.word-head{justify-content:space-between}.word-head h2{margin:12px 0 2px;color:var(--yellow);font-size:25px;letter-spacing:-.03em}.word-head p{margin:0;color:var(--ld-label-3);font-family:ui-monospace,monospace;font-size:12px}.speaker{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:var(--ld-fill-1);color:var(--ld-label)}.dict-actions{gap:8px;margin:20px 0 16px}.dict-actions button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:9px 6px;background:var(--ld-fill-1);border-radius:7px;color:var(--ld-label);font-size:12px}.dict-actions button:first-child{color:var(--ld-mint);background:color-mix(in srgb,var(--ld-mint) 16%,transparent)}.meaning{padding:15px 0;border-top:1px solid var(--ld-separator)}.meaning h3{margin:0 0 7px;color:var(--ld-accent-text);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.meaning p{margin:0 0 7px;color:var(--ld-label);font-size:14px;line-height:1.55}.meaning blockquote{margin:4px 0 11px;color:var(--ld-label-3);font-size:12px;line-height:1.5}.dictionary-loading,.not-found{padding:24px 0;color:var(--ld-label-3);font-size:13px}.dictionary-loading{display:flex;align-items:center;gap:9px}.context-card{margin-top:18px;padding:15px;background:var(--ld-bg-card);border:1px solid color-mix(in srgb,var(--ld-accent) 45%,transparent);border-radius:11px}.context-card>div{display:flex;gap:7px;align-items:center;color:var(--ld-label-2);font-size:12px;font-weight:800}.context-card>p{margin:11px 0;color:var(--ld-label-2);font-size:13px;line-height:1.5}.context-card button{padding:8px 10px;border-radius:7px;background:var(--ld-accent);color:var(--ld-on-accent);font-size:12px;font-weight:700}.luna-answer{white-space:pre-wrap;margin-top:12px;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--ld-accent) 45%,transparent);color:var(--ld-label);font-size:13px;line-height:1.6}.video-page{display:grid;grid-template-columns:minmax(420px,.96fr) minmax(370px,1.04fr);gap:18px;padding:22px}.video-column{min-width:0}.source-toolbar{gap:8px;margin-bottom:12px}.local-video,.youtube-frame,.video-empty{display:block;width:100%;aspect-ratio:16 / 9;border:0;border-radius:12px;background:var(--ld-bg-card);overflow:hidden}.video-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;border:1px dashed var(--ld-separator);color:var(--ld-label-3);text-align:center}.video-empty svg{color:var(--violet)}.video-empty h2{margin:11px 0 4px;color:var(--ld-label)}.video-empty p{margin:0 0 17px;font-size:13px}.youtube-loader{display:flex;width:min(460px,100%);padding:4px;background:var(--ld-bg-elevated);border:1px solid var(--ld-separator);border-radius:8px}.youtube-loader input{min-width:0;flex:1;padding:8px;color:var(--ld-label);border:0;outline:0;background:transparent;font-size:12px}.youtube-loader button{padding:8px 10px;background:var(--ld-accent);border-radius:5px;color:var(--ld-on-accent);font-size:12px;font-weight:700;white-space:nowrap}.active-caption{display:grid;grid-template-columns:31px 1fr;gap:8px 12px;align-items:start;margin-top:14px;padding:15px;border-radius:10px;background:var(--ld-bg-card)}.active-caption button{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ld-accent)}.active-caption span{color:var(--ld-mint);font-size:17px;line-height:1.45}.active-caption em{grid-column:2;color:var(--ld-label-2);font-style:normal;line-height:1.5}.subtitle-list{overflow:auto;min-height:0}.subtitle-head{display:flex;justify-content:space-between;padding:8px 4px 13px;color:var(--ld-label);font-size:13px;font-weight:750}.subtitle-head span:last-child{color:var(--ld-label-3);font-weight:500}.subtitle-list .sentence-row{grid-template-columns:30px minmax(0,1fr);margin-bottom:7px;border:0;border-radius:8px}.subtitle-list .translation{grid-column:2;font-size:13px}.subtitle-list .row-more{display:none}.subtitle-empty{padding:25px;color:var(--ld-label-3);background:var(--ld-bg-elevated);border-radius:8px;text-align:center}.library-page,.review-page,.settings-page{padding:42px}.page-title{justify-content:space-between;max-width:1000px;margin:0 auto 28px}.page-title>div:last-child:not(:first-child){display:flex;gap:8px}.library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;max-width:1000px;margin:auto}.library-item{display:flex;align-items:center;gap:13px;padding:14px;background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:12px;text-align:left}.library-item>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}.library-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-item small{color:var(--ld-label-3)}.library-item>svg{color:var(--ld-label-3)}.content-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;color:var(--ld-label);background:var(--ld-fill-2)}.content-icon.youtube{color:var(--ld-accent-text);background:color-mix(in srgb,var(--ld-accent) 16%,transparent)}.content-icon.video{color:var(--ld-mint);background:color-mix(in srgb,var(--ld-mint) 16%,transparent)}.review-card,.settings-card{max-width:680px;margin:auto;padding:28px;background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:14px}.review-card>span{color:var(--ld-accent-text);text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:700}.review-card h2{margin:14px 0 4px;color:var(--yellow);font-size:39px}.review-card p{color:var(--ld-label-2);line-height:1.6}.review-card em{display:block;margin:18px 0;color:var(--ld-mint);font-style:normal}.review-card div{display:flex;gap:9px}.review-card button,.settings-card button{padding:10px 13px;border-radius:8px;color:var(--ld-label);background:var(--ld-fill-2)}.review-card .known{display:flex;align-items:center;gap:6px;background:color-mix(in srgb,var(--ld-mint) 16%,transparent);color:var(--ld-label)}.settings-card+.settings-card{margin-top:15px}.settings-card h2{margin-top:0;font-size:18px}.settings-card p{color:var(--ld-label-2);font-size:14px;line-height:1.6}.settings-card code{color:var(--ld-accent-text)}.settings-card label{display:grid;gap:6px;margin:13px 0;color:var(--ld-label-2);font-size:13px}.settings-card input{padding:10px;border:1px solid var(--ld-separator);border-radius:8px;outline:none;color:var(--ld-label);background:var(--ld-bg-base)}.settings-card button{background:var(--ld-accent)}.paste-panel{display:grid;gap:10px;max-width:1000px;margin:-10px auto 24px;padding:16px;border:1px solid var(--ld-separator);border-radius:12px;background:var(--ld-bg-elevated)}.paste-panel input,.paste-panel textarea{width:100%;padding:11px 12px;border:1px solid var(--ld-separator);border-radius:8px;outline:none;color:var(--ld-label);background:var(--ld-bg-base)}.paste-panel textarea{min-height:150px;resize:vertical;line-height:1.55}.paste-panel>div{display:flex;justify-content:flex-end;gap:8px}.paste-panel button{padding:9px 12px;border-radius:7px;background:var(--ld-fill-1)}.paste-panel button:last-child{background:var(--ld-accent)}.dependency-list{display:grid;gap:1px;margin:14px 0;border-radius:8px;overflow:hidden}.dependency-list span{display:flex;justify-content:space-between;padding:11px 12px;background:var(--ld-fill-1);font-size:13px}.dependency-list strong{color:var(--ld-danger)}.dependency-list strong.ready{color:var(--ld-mint)}.preview-badge{padding:4px 7px;color:var(--ld-label-2);border:1px solid color-mix(in srgb,var(--ld-accent) 45%,transparent);border-radius:6px;background:color-mix(in srgb,var(--ld-accent) 16%,transparent);font-size:10px;font-weight:700;white-space:nowrap}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(max-width:1180px){.app-shell{grid-template-columns:62px minmax(0,1fr) 315px}.floating-play{right:337px}.video-page{grid-template-columns:1fr}.subtitle-list{max-height:380px}}@media(max-width:880px){.app-shell{grid-template-columns:54px minmax(0,1fr)}.rail{padding-inline:6px}.dictionary{position:fixed;z-index:4;right:0;top:0;width:min(356px,90vw);box-shadow:-20px 0 50px color-mix(in srgb,var(--ld-shadow) 53%,transparent)}.floating-play{right:25px}.topbar{padding-inline:12px}.subtle{display:none}.reader-head{padding-inline:18px}.segment-table{padding-inline:12px}.reading-intro{padding-inline:26px}.sentence-row{grid-template-columns:27px 1fr;gap:9px}.translation{grid-column:2;font-size:14px}.row-more{display:none}.library-page,.review-page,.settings-page{padding:26px}.page-title>div:last-child:not(:first-child){flex-wrap:wrap}}@media(max-width:570px){.app-shell{grid-template-columns:1fr}.rail{position:fixed;z-index:5;bottom:0;left:0;right:0;height:57px;padding:7px;flex-direction:row;justify-content:space-around;border-top:1px solid var(--ld-separator);border-right:0}.rail-mark,.rail-spacer,.rail-button:nth-of-type(4),.rail-button:nth-of-type(5){display:none}.rail-button{width:40px;height:40px}.workspace{padding-bottom:57px}.topbar{height:50px}.crumb .icon-button{display:none}.video-page{padding:12px}.reader-tools button:not(:last-child){display:none}.reader-head{padding-inline:12px}.reading-intro{padding:28px 20px 20px}.dictionary{width:100vw}.page-title{align-items:flex-start;gap:14px;flex-direction:column}.page-title h1{font-size:26px}.library-page,.review-page,.settings-page{padding:25px 18px 82px}}.sentence-row{cursor:pointer}.sentence-row:focus-visible{outline:2px solid var(--ld-accent);outline-offset:-2px}.word-button{display:inline;padding:1px 0;border-radius:3px;background:transparent;color:inherit;line-height:inherit;text-align:left}.active-caption .lookup-word{display:inline;width:auto;height:auto;padding:1px 0;border-radius:3px;background:transparent;color:inherit;font:inherit}.translation-listen,.active-caption .translation-listen{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:28px;height:28px;padding:4px;border-radius:5px;background:transparent;color:inherit}.translation-listen:hover,.active-caption .translation-listen:hover{background:var(--ld-bg-elevated);color:var(--ld-accent)}.translation-listen.is-speaking{color:var(--ld-accent)}.translation-listen .spin{animation:spin 1s linear infinite}@media(prefers-reduced-motion:reduce){.translation-listen .spin{animation:none}}.word-button:hover{background:color-mix(in srgb,var(--ld-mint) 15%,transparent);color:var(--ld-mint)}.lookup-token{white-space:nowrap}.row-save{display:grid;place-items:center;width:24px;height:24px;padding:0;color:var(--ld-label-3);background:transparent;border-radius:5px}.row-save:hover{color:var(--ld-gold);background:color-mix(in srgb,var(--ld-gold) 9%,transparent)}.source-toolbar{flex-wrap:wrap}.source-toolbar button.selected{color:var(--ld-label);background:color-mix(in srgb,var(--ld-mint) 16%,transparent);border-color:color-mix(in srgb,var(--ld-mint) 45%,transparent)}.source-toolbar select{padding:7px 9px;min-height:32px;border:1px solid var(--ld-separator);border-radius:7px;color:var(--ld-label);background:var(--ld-fill-1)}.subtitle-head{align-items:center;gap:10px}.subtitle-head label{display:flex;align-items:center;gap:7px;width:min(210px,48%);padding:5px 7px;border:1px solid var(--ld-separator);border-radius:7px;color:var(--ld-label-3);background:var(--ld-bg-elevated)}.subtitle-head input{width:100%;min-width:0;color:var(--ld-label);background:transparent;border:0;outline:0;font-size:12px}.subtitle-head input::placeholder{color:var(--ld-label-3)}.transcript-paste{display:grid;gap:8px;margin-bottom:12px;padding:10px;border:1px solid var(--ld-separator);border-radius:9px;background:var(--ld-bg-card)}.transcript-paste textarea{min-height:110px;padding:10px;resize:vertical;color:var(--ld-label);background:var(--ld-bg-base);border:1px solid var(--ld-separator);border-radius:7px;font:inherit}.transcript-paste button{justify-self:end;padding:8px 11px;color:var(--ld-on-accent);background:var(--ld-accent);border-radius:7px}.word-translation{max-width:290px;margin-top:8px!important;color:var(--ld-mint)!important;font-family:inherit!important;font-size:13px!important;line-height:1.5}.dictionary-subtabs{display:flex;gap:4px;margin-bottom:12px;border-bottom:1px solid var(--ld-separator)}.dictionary-subtabs button{padding:10px 8px;color:var(--ld-label-3);background:transparent;border-bottom:2px solid transparent;font-size:12px}.dictionary-subtabs button.selected{color:var(--ld-label);border-bottom-color:var(--ld-accent)}.dictionary-examples>section{margin-top:22px}.example-section-title{margin:0 0 7px;color:var(--ld-label-2);font-size:12px;font-weight:650}.example-section-title a{color:var(--ld-label-2);text-underline-offset:3px}.dictionary-example{padding:13px 0;border-bottom:1px solid var(--ld-separator)}.example-source{display:flex;align-items:flex-start;gap:10px}.example-source p{flex:1;min-width:0;overflow-wrap:anywhere}.example-source>button{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;margin-top:-4px;color:var(--ld-label-2);background:transparent;border-radius:6px}.example-source>button:hover{color:var(--mint);background:var(--ld-fill-1)}.lookup-highlight{padding:1px 2px;color:var(--ld-gold);background:color-mix(in srgb,var(--ld-orange) 16%,transparent);border-radius:3px}.lookup-word{font:inherit;vertical-align:baseline}.lookup-word.lookup-highlight{color:var(--ld-gold);background:color-mix(in srgb,var(--ld-orange) 16%,transparent)}.lookup-word:hover,.lookup-word:focus-visible{color:var(--ld-mint);background:var(--ld-fill-2)}.word-lookup-tooltip{position:fixed;z-index:1000;display:grid;gap:6px;width:max-content;max-width:min(250px,calc(100vw - 16px));padding:12px 14px;border-radius:8px;background:var(--ld-fill-1);color:var(--ld-label);box-shadow:0 8px 24px color-mix(in srgb,var(--ld-shadow) 40%,transparent);font:13px/1.5 Segoe UI,system-ui,sans-serif;overflow-wrap:anywhere}.word-lookup-tooltip strong{color:var(--ld-gold);font-size:12px;font-weight:650}.word-lookup-tooltip>span{font-size:15px}.word-lookup-tooltip small,.word-lookup-tooltip .lookup-pending{color:var(--ld-label-2);font-size:11px}.example-attribution{display:flex;flex-wrap:wrap;gap:3px 9px;margin-top:7px;font-size:10px;line-height:1.5;color:var(--ld-label-3)}.example-attribution a{color:var(--ld-label-3);text-decoration:none;overflow-wrap:anywhere}.example-attribution a:hover{color:var(--ld-label);text-decoration:underline;text-underline-offset:3px}.dictionary-message{padding:8px 0;color:var(--ld-label-2);font-size:12px;line-height:1.6}.dictionary-retry{display:block;margin-top:8px;padding:7px 10px;color:var(--ld-label);background:color-mix(in srgb,var(--ld-accent) 16%,transparent);border:1px solid color-mix(in srgb,var(--ld-accent) 45%,transparent);border-radius:7px;font-size:12px}.dictionary-examples p.dictionary-message{color:var(--ld-label-2);font-size:12px}.dictionary-examples small.example-translation-state{color:var(--ld-label-3)}.dictionary-body button:disabled{cursor:default;opacity:.5}.dictionary-examples p{margin:0;color:var(--ld-mint);font-size:13px;line-height:1.55}.dictionary-examples small{display:block;margin-top:6px;color:var(--ld-label-2);font-size:12px;line-height:1.5}.subtitle-list .sentence-row{grid-template-columns:30px minmax(0,1fr) minmax(0,1fr) 24px;align-items:start}.subtitle-list .translation{grid-column:3;font-size:13px}.subtitle-list .row-save{grid-column:4}.subtitle-modes{display:flex;align-items:center;gap:2px}.subtitle-modes button{padding:8px 9px;border-bottom:2px solid transparent;color:var(--ld-label-3);background:transparent;font-size:12px;font-weight:700;white-space:nowrap}.subtitle-modes button.selected{color:var(--ld-label);border-bottom-color:var(--ld-accent)}.youtube-player-wrap{position:relative;width:100%;aspect-ratio:16 / 9}.youtube-player-wrap .youtube-frame{width:100%;height:100%}.youtube-frame iframe{display:block;width:100%;height:100%;border:0}.youtube-error{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:25px;color:var(--ld-label);background:color-mix(in srgb,var(--ld-bg-base) 93%,transparent);text-align:center}.youtube-error span{color:var(--ld-label-2);font-size:13px}.youtube-error button{padding:9px 13px;color:var(--ld-on-accent);background:var(--ld-accent);border-radius:7px}.video-url-entry{width:100%;margin-bottom:12px}@media(max-width:570px){.subtitle-list .sentence-row{grid-template-columns:28px minmax(0,1fr) 24px}.subtitle-list .translation{grid-column:2}.subtitle-list .row-save{grid-column:3;grid-row:1}}@media(min-width:571px){.dictionary-close{display:none!important}}.reader-inline-play{display:none!important}@media(max-width:570px){.reader-tools{gap:3px}.reader-tools button{min-width:40px;min-height:40px;padding-inline:7px}.reader-tools button:nth-child(3),.reader-tools button:last-child{display:none}.reader-tools .reader-inline-play{display:grid!important;place-items:center}.reader-head{gap:4px;padding-inline:4px}.pager{gap:2px}.reader-head .icon-button{width:34px;height:38px}.floating-play{display:none}}@media(max-width:880px)and (min-width:681px){.app-shell{grid-template-columns:54px minmax(0,1fr) 300px}.rail{position:relative;inset:auto;height:100vh;padding:12px 6px;flex-direction:column;justify-content:flex-start;border-top:0;border-right:1px solid var(--ld-separator)}.rail-mark,.rail-spacer{display:grid}.rail-spacer{display:block}.rail-button{display:grid!important;flex:0 0 42px;width:42px;height:42px}.workspace{padding-bottom:0}.dictionary{position:relative;inset:auto;width:auto;height:100vh;box-shadow:none}.dictionary-close{display:none}.floating-play{right:324px;bottom:22px}.video-page{grid-template-columns:minmax(0,1fr)}.video-column{max-width:760px;margin-inline:auto;width:100%}.subtitle-list{max-height:min(420px,52vh);max-width:760px;width:100%;margin-inline:auto}.subtitle-list .sentence-row{grid-template-columns:28px minmax(0,1fr)}.subtitle-list .translation{grid-column:2}.subtitle-list .row-save{grid-column:3}}@media(max-width:680px)and (min-width:571px){.app-shell{grid-template-columns:54px minmax(0,1fr)}.dictionary{position:fixed;z-index:5;inset:0 0 0 auto;width:min(340px,78vw);height:100vh;box-shadow:-20px 0 50px color-mix(in srgb,var(--ld-shadow) 60%,transparent)}.dictionary-close{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;color:var(--ld-label);background:transparent;border-radius:8px}.floating-play{right:22px}}@media(max-width:570px){.app-shell{grid-template-columns:minmax(0,1fr);min-height:100dvh}.workspace{width:100%;min-width:0;height:100dvh;padding-bottom:66px}.rail{position:fixed;z-index:6;inset:auto 0 0;display:flex;height:64px;padding:6px 5px max(6px,env(safe-area-inset-bottom));gap:3px;flex-direction:row;justify-content:space-around;border-top:1px solid var(--ld-separator);border-right:0;background:var(--ld-bg-elevated)}.rail-mark,.rail-spacer{display:none}.rail-button,.rail-button:nth-of-type(4),.rail-button:nth-of-type(5){display:grid!important;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px}.topbar{padding-inline:9px}.crumb{gap:5px;font-size:12px}.crumb strong{max-width:min(44vw,190px)}.crumb .icon-button{display:none}.top-actions{gap:3px}.top-actions .status{max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.reader-head{gap:6px;padding-inline:8px}.reader-tools{gap:3px}.reader-tools button{min-height:40px;padding-inline:8px}.reader-tools button:nth-last-child(2){display:none}.reader-tools button:last-child{max-width:122px;overflow:hidden;white-space:nowrap}.reading-intro{padding:25px 16px 17px}.reading-intro h1{overflow-wrap:anywhere;font-size:23px}.reading-intro p{line-height:1.5}.segment-table{padding-inline:8px}.sentence-row{grid-template-columns:26px minmax(0,1fr) 40px;gap:7px;padding:13px 9px}.sentence-row .source{grid-column:2;font-size:calc(15px * var(--font-scale));overflow-wrap:anywhere}.sentence-row .translation{grid-column:2;font-size:calc(14px * var(--font-scale));overflow-wrap:anywhere}.sentence-row .row-save{grid-column:3;grid-row:1;min-width:40px;min-height:40px}.sentence-row .row-more{display:none}.floating-play{right:14px;bottom:78px;width:52px;height:52px;z-index:2}.video-page{display:flex;flex-direction:column;gap:13px;padding:10px 10px 20px}.source-toolbar{gap:6px}.source-toolbar button{min-height:40px;padding-inline:8px;font-size:11px}.source-toolbar select{min-height:40px}.youtube-loader{width:100%}.active-caption{margin-top:10px;padding:12px}.active-caption span{font-size:15px;overflow-wrap:anywhere}.subtitle-list{width:100%;max-height:36dvh;min-height:160px}.subtitle-head{position:sticky;top:0;z-index:1;padding:7px 2px;background:var(--ld-bg-base)}.subtitle-head label{width:min(48%,190px)}.subtitle-list .sentence-row{grid-template-columns:25px minmax(0,1fr) 40px;gap:7px;padding:11px 8px}.subtitle-list .source,.subtitle-list .translation{grid-column:2;overflow-wrap:anywhere}.subtitle-list .row-save{grid-column:3;grid-row:1;min-width:40px;min-height:40px}.dictionary{position:fixed;z-index:5;top:0;right:0;bottom:64px;left:0;display:flex;flex-direction:column;width:100vw;height:auto;box-shadow:0 0 0 100vmax color-mix(in srgb,var(--ld-shadow) 60%,transparent)}.dictionary-tabs{flex:0 0 52px;height:52px;gap:14px;padding-inline:14px}.dictionary-close{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;color:var(--ld-label);background:transparent;border-radius:8px}.search-box{flex:0 0 42px;margin:10px 12px}.dictionary-body{min-height:0;overflow:auto;padding:7px 16px 20px}.dictionary-subtabs button{min-height:42px}.library-page,.review-page,.settings-page{padding:22px 14px 82px}.page-title{gap:12px}.page-title h1{overflow-wrap:anywhere;font-size:24px}.page-title>div:last-child:not(:first-child){width:100%;gap:6px}.page-title button{min-height:42px}.library-grid{grid-template-columns:minmax(0,1fr)}.review-card,.settings-card{padding:19px 16px}.review-card h2{font-size:32px}.review-card div{flex-wrap:wrap}.paste-panel{margin-inline:0}.notice{margin-inline:8px;font-size:12px}}.choice-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:24px;color:var(--ld-label);background:var(--ld-bg-elevated);border:1px solid var(--ld-separator);border-radius:12px}.choice-dialog::backdrop{background:color-mix(in srgb,var(--ld-bg-base) 80%,transparent)}.choice-dialog h2{margin:0 0 8px;font-size:18px}.choice-dialog p{color:var(--ld-label-2);font-size:14px;line-height:1.6}.choice-dialog .choice-options{display:grid;gap:10px;margin:16px 0}.choice-dialog .choice-option{display:grid;gap:4px;padding:12px 14px;text-align:left;color:var(--ld-label);background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:8px}.choice-dialog .choice-option span{color:var(--ld-label-3);font-size:13px;line-height:1.5}.choice-dialog .choice-option:focus-visible{outline:2px solid var(--ld-accent);outline-offset:2px}.choice-dialog .choice-option.danger{border-color:color-mix(in srgb,var(--ld-danger) 45%,transparent)}.choice-dialog .choice-option.danger strong{color:var(--ld-danger)}.choice-dialog .choice-option.danger:hover:not(:disabled){border-color:var(--ld-danger)}.choice-dialog .choice-option:disabled{opacity:.55;cursor:not-allowed}.choice-dialog .choice-option .choice-reason{color:var(--ld-label-2);font-style:italic}.choice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.choice-dialog .choice-actions button{padding:9px 13px;color:var(--ld-label);background:var(--ld-fill-1);border-radius:7px}.google-sign-in,.settings-card .google-sign-in{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:9px 14px;border:1px solid var(--ld-separator-strong);border-radius:8px;color:var(--ld-label);background:var(--ld-bg-base);font-weight:500}.google-sign-in:hover:not(:disabled),.settings-card .google-sign-in:hover:not(:disabled){background:var(--ld-bg-elevated)}.google-sign-in:focus-visible{outline:2px solid var(--ld-accent);outline-offset:2px}.google-sign-in:disabled{opacity:.55;cursor:wait}.google-sign-in-mark{flex:none}.account-google{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 4px}.account-google-hint{margin:6px 0 0;font-size:13px}.update-notes{margin:10px 0 0;padding:10px 12px;max-height:12em;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ld-label-2);background:var(--ld-bg-base);border:1px solid var(--ld-separator);border-radius:8px;font-size:13px;line-height:1.55}.update-limitation,.update-notice{margin:8px 0 0;color:var(--ld-label-2);font-size:13px;line-height:1.5}.update-progress{display:block;width:100%;height:8px;margin:10px 0 0;accent-color:var(--ld-mint)}.update-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.update-actions button{padding:8px 12px;border-radius:7px;color:var(--ld-label);background:var(--ld-fill-1);font-size:13px}.update-actions button.primary{color:var(--ld-on-tint);background:var(--ld-mint);font-weight:700}.update-settings>button{margin-top:12px}.update-settings .update-error{color:var(--ld-danger)}.update-settings .update-checked{margin-top:-6px;color:var(--ld-label-3);font-size:12px}.word-status-legend{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:-6px 4px 10px;color:var(--ld-label-3);font-size:11px}.word-status-legend [data-learning-status=learning]{color:var(--ld-gold);text-decoration:underline dotted;text-underline-offset:3px}.word-status-legend [data-learning-status=known]{color:var(--ld-mint)}.word-status-legend [data-learning-status=ignored]{color:var(--ld-label-3);text-decoration:underline;text-underline-offset:3px}.collapse-bar{display:flex;align-items:stretch;border-bottom:1px solid var(--ld-separator)}.collapse-toggle{flex:1;display:inline-flex;align-items:center;gap:9px;min-height:44px;min-width:0;padding:8px 14px;color:var(--ld-label-2);background:transparent;border-radius:0;font-size:13px;font-weight:650;text-align:left}.collapse-toggle:hover{background:var(--ld-bg-card);color:var(--ld-label)}.collapse-chevron{display:grid;place-items:center;flex:0 0 18px;color:var(--ld-label-3);transition:transform .16s ease,color .16s ease}.collapse-chevron svg{display:block}.is-collapsed .collapse-chevron{transform:rotate(-90deg)}.collapse-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collapse-meta{margin-left:auto;flex:0 0 auto;color:var(--ld-label-3);font-size:12px;font-weight:500}.collapse-state{flex:0 0 auto;margin-left:auto;padding:3px 8px;color:var(--ld-label-2);background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:5px;font-size:12px}.collapse-meta+.collapse-state{margin-left:4px}.is-collapsed .collapse-state{color:var(--ld-mint);border-color:color-mix(in srgb,var(--ld-mint) 45%,transparent);background:color-mix(in srgb,var(--ld-mint) 16%,transparent)}.collapse-toggle:focus-visible{outline-offset:-3px}.collapse-actions>button{display:grid;place-items:center;min-width:40px;min-height:40px;padding:8px;color:var(--ld-label);background:var(--ld-bg-card);border:1px solid var(--ld-separator);border-radius:6px}.collapse-actions{display:flex;align-items:center;padding-right:10px;flex:0 0 auto}.collapse-body[hidden]{display:none!important}.collapsible-panel{min-width:0;min-height:0}.is-collapsed .collapse-toggle{min-height:40px;color:var(--ld-label-3);font-weight:600}.is-collapsed .collapse-bar{background:var(--ld-bg-elevated)}.study-options-panel{flex:0 0 auto}.study-options-panel .study-options{border-bottom:0}.video-column .collapse-body{padding-top:12px}.subtitle-panel{min-width:0;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100dvh - 230px)}.subtitle-panel .collapse-body{min-height:0;flex:1;overflow:hidden;display:flex;flex-direction:column}.subtitle-panel .subtitle-list{flex:1 1 auto;height:auto;min-height:0;max-height:none;overflow-y:auto}.video-page{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-rows:max-content;align-items:start}.video-page:has(.video-column.is-collapsed),.video-page:has(.subtitle-panel.is-collapsed){grid-template-columns:minmax(0,1fr);align-content:start}.video-page:has(.video-column.is-collapsed) .subtitle-panel{height:calc(100dvh - 220px);min-height:220px}.video-page:has(.subtitle-panel.is-collapsed) .video-column{width:min(100%,1100px);justify-self:center}.video-page:has(.subtitle-panel.is-collapsed) .subtitle-panel{height:auto;min-height:0}.app-shell{width:100%;max-width:100vw}.workspace{width:100%;min-width:0}.topbar{min-width:0;gap:8px;position:relative;z-index:7}.topbar .crumb{flex:1 1 0%;overflow:hidden;min-width:0}.topbar .crumb strong{min-width:0}.topbar .top-actions{flex:0 0 auto}.top-actions>.icon-button{min-width:40px;min-height:40px}@media(prefers-reduced-motion:reduce){.collapse-chevron{transition:none}}@media(max-width:1180px){.video-page{grid-template-columns:minmax(0,1fr);align-content:start}.subtitle-panel .subtitle-list{max-height:420px}}@media(max-width:680px){.video-page:has(.video-column.is-collapsed) .subtitle-panel{height:auto}.top-actions .preview-badge,.topbar .subtle,.top-actions .status{display:none}}@media(max-width:570px){.topbar .crumb{flex:1}.topbar .crumb strong{max-width:none}.video-page{display:flex;flex-direction:column}.video-page .video-column{flex:0 0 auto;width:100%;max-width:none}.subtitle-panel{width:100%;flex:0 0 auto}.subtitle-panel .subtitle-list{max-height:48dvh;height:auto}.collapse-toggle{padding:9px 11px}}.app-shell{--navigation-width: 218px;--dictionary-width: 356px;grid-template-columns:var(--navigation-width) minmax(0,1fr) var(--dictionary-width)}.app-shell:not(:has(>.dictionary)){grid-template-columns:var(--navigation-width) minmax(0,1fr)}.app-shell.navigation-collapsed{--navigation-width: 62px;grid-template-columns:var(--navigation-width) minmax(0,1fr) var(--dictionary-width)}.app-shell.navigation-collapsed:not(:has(>.dictionary)){grid-template-columns:var(--navigation-width) minmax(0,1fr)}.app-shell.navigation-collapsed>.workspace{grid-column:auto}.app-shell.navigation-collapsed>.dictionary{grid-column:auto}.app-shell>.rail,.app-shell.navigation-collapsed>.rail{display:flex!important;position:relative;flex-direction:column;align-items:stretch;overflow-y:auto;min-height:0;gap:5px;padding:12px 8px}.rail-brand{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 5px}.rail-brand .rail-mark{flex:0 0 35px;margin:0}.rail-brand-name{font-size:17px;font-weight:700;white-space:nowrap}.app-shell>.rail .rail-button{display:flex!important;flex:0 0 46px;width:100%;height:46px;align-items:center;justify-content:flex-start;gap:14px;padding:9px 12px;border-radius:7px}.rail-button svg{flex:0 0 21px}.rail-label{font-size:14px;white-space:nowrap}.app-shell>.rail .rail-collapse{display:flex;align-items:center;justify-content:center;align-self:flex-end;width:34px;min-height:34px;flex:0 0 34px}.navigation-collapsed .rail-brand-name,.navigation-collapsed .rail-label{display:none}.app-shell.navigation-collapsed>.rail .rail-button{justify-content:center;padding:9px}.navigation-collapsed .rail-brand{padding:0;justify-content:center}.app-shell.navigation-collapsed>.rail .rail-collapse{align-self:center}.app-shell .navigation-reopen{display:flex;align-items:center;justify-content:center}.rail-header{position:sticky;top:-12px;display:flex;align-items:center;flex:0 0 auto;gap:5px;min-height:52px;padding:6px 0;background:var(--ld-bg-elevated);z-index:1}.rail-header .rail-brand{flex:1;min-width:0;padding:0;gap:7px}.rail-header .rail-brand-name{font-size:15px}.navigation-toggle{display:grid;place-items:center;flex:0 0 38px;width:38px;height:40px;padding:7px;border-radius:6px;background:var(--ld-bg-card);color:var(--ld-label-2)}.navigation-toggle:hover{background:var(--ld-fill-2);color:var(--ld-label)}.navigation-collapsed .rail-header{justify-content:center}.navigation-collapsed .rail-header .rail-brand{display:none!important}@media(max-width:1180px){.app-shell{--dictionary-width:315px}}@media(max-width:880px)and (min-width:681px){.app-shell{--dictionary-width:300px;--navigation-width:200px}.app-shell.navigation-collapsed{--navigation-width:54px}}@media(max-width:680px)and (min-width:571px){.app-shell,.app-shell.navigation-collapsed{grid-template-columns:54px minmax(0,1fr)}.app-shell:not(.navigation-collapsed)>.rail{position:fixed;z-index:8;top:0;bottom:0;left:0;width:218px;background:var(--ld-bg-elevated);box-shadow:12px 0 30px color-mix(in srgb,var(--ld-shadow) 47%,transparent)}.navigation-collapsed .rail-brand-name,.navigation-collapsed .rail-label{display:none}.app-shell.navigation-collapsed>.rail .rail-button{padding:9px 6px}}@media(max-width:570px){.app-shell,.app-shell.navigation-collapsed,.app-shell:not(:has(>.dictionary)),.app-shell.navigation-collapsed:not(:has(>.dictionary)){grid-template-columns:minmax(0,1fr)}.app-shell.navigation-collapsed>.rail{position:fixed;inset:auto 0 0;height:64px;min-height:64px;display:flex!important;flex-direction:row;align-items:center;gap:0;padding:5px 2px;overflow-x:auto;overflow-y:hidden;z-index:6}.navigation-collapsed .rail-brand,.navigation-collapsed .rail-collapse,.navigation-collapsed .rail-spacer{display:none!important}.app-shell.navigation-collapsed>.rail .rail-button{display:flex!important;flex:1 0 40px;width:40px;min-width:40px;min-height:44px;justify-content:center;padding:8px 5px}.app-shell.navigation-collapsed>.rail .rail-button:last-child{display:none!important}.app-shell:not(.navigation-collapsed)>.rail{position:fixed;inset:0 auto 0 0;height:100dvh;width:min(250px,80vw);z-index:8;background:var(--ld-bg-elevated);box-shadow:12px 0 30px color-mix(in srgb,var(--ld-shadow) 53%,transparent);padding:12px 8px}.app-shell:not(.navigation-collapsed) .rail-brand,.app-shell:not(.navigation-collapsed) .rail-brand-name,.app-shell:not(.navigation-collapsed) .rail-label{display:flex}.app-shell:not(.navigation-collapsed)>.rail .rail-button{display:flex!important;width:100%;flex:0 0 46px;justify-content:flex-start}.app-shell:not(.navigation-collapsed)>.rail .rail-spacer{display:block}.app-shell .workspace,.app-shell.navigation-collapsed .workspace{padding-bottom:66px}}.navigation-backdrop{display:none}@media(max-width:680px){.app-shell .navigation-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:8;background:color-mix(in srgb,var(--ld-shadow) 53%,transparent);border:0}.app-shell:not(.navigation-collapsed)>.rail{z-index:9}}@media(max-width:570px){.app-shell,.app-shell.navigation-collapsed,.app-shell:not(:has(>.dictionary)),.app-shell.navigation-collapsed:not(:has(>.dictionary)){grid-template-columns:48px minmax(0,1fr);width:100%}.app-shell.navigation-collapsed>.rail{position:relative;inset:auto;height:100dvh;min-height:0;width:48px;display:flex!important;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;padding:8px 3px;overflow-x:hidden;overflow-y:auto;border-top:0;border-right:1px solid var(--ld-separator)}.app-shell.navigation-collapsed>.rail .rail-button{flex:0 0 44px;width:42px;min-width:42px;height:44px;min-height:44px;padding:9px}.app-shell.navigation-collapsed>.rail .rail-collapse{display:flex!important;flex:0 0 36px;width:40px;min-height:36px}.app-shell.navigation-collapsed>.rail .rail-brand{display:none!important}.app-shell.navigation-collapsed>.rail .rail-spacer{display:block!important;flex:1;min-height:12px}.app-shell.navigation-collapsed>.rail .rail-button:last-child{display:flex!important}.app-shell:not(.navigation-collapsed)>.rail{width:220px;height:100dvh}.rail-header{top:-8px;width:100%;min-height:44px;justify-content:center;background:var(--ld-bg-elevated)}.navigation-toggle{width:40px;height:40px;min-height:40px}.app-shell:not(.navigation-collapsed) .rail-brand .rail-mark{display:grid}.app-shell .workspace,.app-shell.navigation-collapsed .workspace{grid-column:2;width:100%;padding-bottom:0;height:100dvh}.app-shell>.dictionary,.app-shell.navigation-collapsed>.dictionary{position:fixed;top:0;right:0;bottom:0;left:48px;width:calc(100vw - 48px);height:100dvh;z-index:7;box-shadow:-8px 0 24px color-mix(in srgb,var(--ld-shadow) 40%,transparent);grid-column:auto}.topbar{height:48px;min-height:48px;padding:0 7px;gap:3px}.topbar .navigation-reopen{display:none!important}.topbar .crumb{font-size:12px;gap:4px}.topbar .crumb strong{max-width:100%}.top-actions{gap:2px}.top-actions .status,.top-actions .preview-badge,.top-actions [aria-label="Toàn màn hình"]{display:none}.layout-menu summary{font-size:11px;padding:7px 5px;border:0}.layout-menu-content{right:8px;top:52px;width:220px;max-width:calc(100vw - 64px)}.collapse-bar>button{padding:7px 8px;font-size:12px}.collapse-hint{font-size:11px}.study-options{padding:10px;gap:8px}.study-options label{font-size:12px}.reader-head{position:sticky;top:0;padding:3px 6px;min-height:46px;gap:5px}.reader-tools button{min-width:32px;min-height:36px;padding:5px}.reader-tools button:first-child,.reader-tools button:nth-child(2){display:inline-flex!important}.reading-intro{padding:18px 12px 14px}.reading-intro h1{font-size:21px;line-height:1.3}.reading-intro p{font-size:12px;line-height:1.6}.segment-table{padding:0 6px}.sentence-row{grid-template-columns:24px minmax(0,1fr) 36px;gap:6px;padding:12px 7px}.sentence-row .row-save{min-width:36px;min-height:36px;width:36px}.sentence-row .source{font-size:15px;line-height:1.75}.sentence-row .translation{font-size:13px;line-height:1.7}.video-page{padding:7px;gap:10px}.subtitle-panel .subtitle-list{max-height:none;min-height:0}.subtitle-list .sentence-row{grid-template-columns:22px minmax(0,1fr) 36px;padding:10px 5px;gap:5px}.subtitle-list .row-save{min-width:36px;min-height:36px;width:36px}.subtitle-head{flex-wrap:wrap;gap:6px}.subtitle-head label{width:100%}.active-caption{padding:10px;grid-template-columns:28px minmax(0,1fr);gap:7px}.active-caption span{font-size:14px}.source-toolbar button{font-size:11px;padding:7px;min-height:36px}.document-tabs{padding:5px;min-height:44px}.document-tabs button{font-size:12px;padding:7px 9px}.document-mobile-tools{padding:7px 9px}.document-results{padding:5px 6px 16px}.document-row.content-entry{grid-template-columns:14px 52px minmax(0,1fr);gap:7px;padding:12px 3px}.document-cover,.document-cover img{width:52px}.document-title.content-open{font-size:15px;line-height:1.45}.document-book-cover{min-height:88px;padding:5px}.document-book-cover>span{font-size:9px}.document-author{font-size:11px;line-height:1.5}.document-study-info{line-height:1.6}.document-filters{padding:16px 12px}.document-filters.filters-open{max-height:55dvh}.library-management{padding:9px;font-size:12px}.library-item-actions{gap:5px}.library-item-actions select{width:100%}.saved-page,.review-page,.settings-page,.chat-page{padding:18px 12px 24px}.page-title h1{font-size:22px;line-height:1.3}.settings-card,.review-card{padding:16px 12px}.dictionary-tabs{height:48px;flex-basis:48px;padding:0 10px;gap:8px}.dictionary-body{padding:8px 12px 20px}.dictionary-close{display:grid!important}.notice{margin:6px;font-size:12px}}.study-toolbar{position:relative;display:flex;align-items:center;gap:3px;flex:none}.study-toolbar .icon-button,.auto-pause-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;color:var(--ld-label-2)}.study-toolbar .icon-button:hover,.auto-pause-button:hover{background:var(--ld-fill-2);color:var(--ld-label)}.study-toolbar button:focus-visible{outline:2px solid var(--ld-accent);outline-offset:2px}.study-toolbar .selected{background:color-mix(in srgb,var(--ld-accent) 16%,transparent);color:var(--ld-label)}.auto-pause-button{gap:3px;background:transparent;border:1px solid var(--ld-separator);border-radius:50%;font-size:11px;font-weight:700}.auto-pause-dot{width:6px;height:6px;background:var(--ld-bg-inverse);border-radius:50%}.auto-pause-button[aria-pressed=true] .auto-pause-dot{background:var(--ld-mint)}.study-popover{position:absolute;z-index:12;right:0;top:calc(100% + 12px);width:300px;max-width:calc(100vw - 80px);max-height:calc(100dvh - 80px);padding:25px 12px 14px;overflow:auto;background:var(--ld-fill-1);border-radius:12px;box-shadow:0 12px 36px color-mix(in srgb,var(--ld-shadow) 53%,transparent);color:var(--ld-label)}.study-popover h2{margin:10px 8px 18px;font-size:13px;line-height:1.4;font-weight:700;letter-spacing:.025em}.study-popover .popover-close{position:absolute;right:5px;top:4px}.subtitle-layout-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.subtitle-layout-options>button{display:flex;flex-direction:column;gap:7px;align-items:center;padding:12px 7px;background:transparent;color:var(--ld-label);border-radius:9px;min-width:0}.subtitle-layout-options>button:hover{background:var(--ld-fill-2)}.subtitle-layout-options>button[aria-pressed=true]{background:color-mix(in srgb,var(--ld-accent) 16%,transparent);color:var(--ld-label)}.subtitle-layout-options strong{font-size:12px;line-height:1.4}.subtitle-layout-options small{font-size:11px;color:var(--ld-label-2);line-height:1.4}.subtitle-layout-preview{display:grid;gap:4px;width:100%;height:62px;padding:4px;background:var(--ld-fill-3);border-radius:6px}.subtitle-layout-preview i{background:var(--ld-bg-inverse);border-radius:3px}.subtitle-layout-preview.plain{grid-template-rows:repeat(3,1fr)}.subtitle-layout-preview.plain i:nth-child(n+4){display:none}.subtitle-layout-preview.parallel{grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr)}.subtitle-layout-preview.parallel i:nth-child(2n),.subtitle-layout-preview.stacked i:nth-child(2n){background:var(--ld-bg-inverse)}.subtitle-layout-preview.stacked{grid-template-rows:repeat(6,1fr);gap:3px}.shortcut-popover{width:340px;background:color-mix(in srgb,var(--ld-accent) 28%,transparent)}.shortcut-popover h2{color:var(--ld-label)}.shortcut-popover dl{margin:0 6px}.shortcut-popover dl>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;align-items:center;margin:9px 0}.shortcut-popover dt{text-align:right}.shortcut-popover dd{margin:0;font-size:13px;line-height:1.5;color:var(--ld-label)}.shortcut-popover kbd{display:inline-block;padding:5px 7px;border-radius:3px;background:color-mix(in srgb,var(--ld-accent) 28%,transparent);color:var(--ld-label);font-family:inherit;font-size:12px}.app-shell .sentence-row .source,.app-shell .sentence-row .translation{min-width:0;overflow-wrap:anywhere}.app-shell.subtitle-layout-parallel .sentence-row{grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 28px}.app-shell.subtitle-layout-parallel .sentence-row .source{grid-column:2;grid-row:1}.app-shell.subtitle-layout-parallel .sentence-row .translation{grid-column:3;grid-row:1}.app-shell.subtitle-layout-parallel .sentence-row .row-save{grid-column:4;grid-row:1}.app-shell.subtitle-layout-stacked .sentence-row,.app-shell.subtitle-layout-plain .sentence-row{grid-template-columns:28px minmax(0,1fr) 28px}.app-shell.subtitle-layout-stacked .sentence-row .source,.app-shell.subtitle-layout-plain .sentence-row .source{grid-column:2;grid-row:1}.app-shell.subtitle-layout-stacked .sentence-row .translation{grid-column:2;grid-row:2}.app-shell.subtitle-layout-stacked .sentence-row .row-save,.app-shell.subtitle-layout-plain .sentence-row .row-save{grid-column:3;grid-row:1}.app-shell.subtitle-layout-plain .sentence-row .translation{display:none}@media(max-width:1100px){.top-actions:has(.study-toolbar) .preview-badge,.top-actions:has(.study-toolbar) .status{display:none}}@media(max-width:680px){.study-toolbar{gap:1px}.study-toolbar .icon-button,.auto-pause-button{width:32px;height:36px}.study-popover{position:fixed;top:54px;right:8px;max-width:calc(100vw - 64px);max-height:calc(100dvh - 70px)}.topbar .crumb>.icon-button{display:none}.app-shell.subtitle-layout-parallel .sentence-row{grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 32px;gap:6px}.app-shell.subtitle-layout-stacked .sentence-row,.app-shell.subtitle-layout-plain .sentence-row{grid-template-columns:22px minmax(0,1fr) 32px;gap:6px}.app-shell .sentence-row .row-save{width:32px;min-width:32px}.app-shell .sentence-row .translation{font-size:calc(13px * var(--font-scale))}.app-shell .sentence-row .source{font-size:calc(14px * var(--font-scale))}.shortcut-popover dl>div{grid-template-columns:90px minmax(0,1fr);gap:8px}.shortcut-popover dd{font-size:12px}}.reader-browse{position:sticky;top:47px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 28px;background:var(--ld-bg-elevated);border-bottom:1px solid var(--ld-separator)}.reader-browse .search-box{margin:0;width:min(330px,48%);min-width:120px;height:36px}.reader-browse .search-box input{font-size:13px}.reader-search-state{margin:18px 28px;color:var(--ld-label-2);font-size:13px}.study-word-list{max-width:1100px;margin:auto;padding:18px 28px 40px}.study-word-filters{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:14px;color:var(--ld-label-2);font-size:13px}.study-word-filters label{display:flex;align-items:center;gap:8px}.study-word-filters select{padding:8px;border:1px solid var(--ld-separator);border-radius:7px;background:var(--ld-bg-card);color:var(--ld-label)}.study-word-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 5px;border-bottom:1px solid var(--ld-separator)}.study-word-row>div{min-width:0}.study-word-name{padding:0;background:transparent;color:var(--ld-mint);font-size:18px;text-align:left;overflow-wrap:anywhere}.study-word-name[data-learning-status=learning]{color:var(--ld-gold)}.study-word-name[data-learning-status=ignored]{color:var(--ld-label-3)}.study-word-row small{display:block;color:var(--ld-label-2);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.study-word-occurrences{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.study-word-occurrences button,.study-words-more,.saved-source-button,.saved-audio-button{padding:8px 10px;background:var(--ld-bg-card);border:1px solid var(--ld-separator);color:var(--ld-label);border-radius:7px;font-size:12px}.study-words-more{margin-top:18px}.saved-source-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.saved-source-button:disabled{opacity:.5;cursor:default}.saved-audio-button{display:inline-flex;align-items:center;gap:6px}.sentence-row .row-save.is-saved{color:var(--ld-gold)}.sentence-row .row-save.is-saved svg{fill:currentColor}.dict-actions{flex-wrap:wrap}.sentence-row .line-index{padding:0;cursor:pointer}.sentence-row .line-index:hover{background:color-mix(in srgb,var(--ld-accent) 16%,transparent);color:var(--ld-label)}.study-options .pause-lookup-option{white-space:normal}@media(max-width:680px){.reader-browse{top:46px;padding:6px;gap:6px;flex-wrap:wrap}.reader-browse .search-box{flex:1;min-width:130px}.reader-browse .subtitle-modes button{padding:8px 6px}.study-word-list{padding:12px 10px 40px}.study-word-row{align-items:flex-start;flex-direction:column;gap:10px;padding:13px 0}.study-word-occurrences{justify-content:flex-start}.reader-search-state{margin:12px}}.study-rate{width:58px;height:36px;padding:0 4px;border:1px solid var(--ld-separator);border-radius:7px;background:var(--ld-bg-card);color:var(--ld-label);font:inherit;font-size:12px;cursor:pointer}.study-options-menu{width:310px;padding:12px 18px 18px}.study-options-menu h2{margin:6px 0 22px;font-size:15px}.study-options-menu fieldset{min-width:0;margin:0;padding:16px 0;border:0;border-top:1px solid var(--ld-separator)}.study-options-menu fieldset:last-child{padding-bottom:0}.study-options-menu legend{padding:0 8px 0 0;color:var(--ld-label);font-size:12px;font-weight:600}.study-options-menu label{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:13px;line-height:1.5;cursor:pointer}.study-options-menu input{flex:none;width:16px;height:16px;accent-color:var(--ld-accent)}.study-options-menu p{margin:8px 0 0;color:var(--ld-label-2);font-size:12px;line-height:1.6}.study-options-menu fieldset>button{display:flex;align-items:center;gap:8px;width:100%;padding:10px 0;background:transparent;color:var(--ld-label);font-size:13px;text-align:left;border-radius:4px}.study-options-menu fieldset>button:hover{background:var(--ld-fill-2)}.study-options-menu button:disabled{color:var(--ld-label-3);opacity:.6;cursor:default}.study-font-controls{display:flex;align-items:center;gap:8px;padding-top:8px;font-size:13px}.study-font-controls span{flex:1}.study-font-controls button{width:40px;height:34px;background:var(--ld-fill-2);color:var(--ld-label);border-radius:5px}.reader-page .reader-head{min-height:52px;gap:18px;padding:4px 28px;top:0;background:var(--ld-bg-elevated);-webkit-backdrop-filter:none;backdrop-filter:none;flex-wrap:wrap}.reader-page .pager{flex:none;gap:7px;font-size:13px;font-variant-numeric:tabular-nums}.reader-page .pager .icon-button{width:32px;height:36px}.reader-page .subtitle-modes{display:flex;gap:10px;margin-left:auto}.reader-page .subtitle-modes button{min-height:40px;padding:0 9px;background:transparent;color:var(--ld-label-2);border:0;border-bottom:2px solid transparent;font-size:13px}.reader-page .subtitle-modes button.selected{color:var(--ld-label);border-bottom-color:var(--ld-accent)}.reader-page .reader-head .search-box{width:200px;max-width:40%;min-width:100px;height:34px;margin:0}.reader-page .reader-head .search-box input{font-size:12px}.reader-page .reader-head>label:not(.search-box){font-size:12px}.reader-page .segment-table{max-width:1200px;padding:28px 28px 60px}.reader-page .sentence-row{padding:14px 12px;border:0;background:var(--ld-bg-elevated)}.reader-page .sentence-row:nth-child(2n){background:var(--ld-bg-card)}.reader-page .sentence-row:hover{background:var(--ld-bg-card)}.reader-page .sentence-row.active{background:var(--ld-fill-1)}.reader-page .sentence-row .translation small{font-size:9px;color:var(--ld-label-2)}.reader-page .source,.reader-page .translation{line-height:1.75}.reader-page .floating-play{position:sticky;float:right;right:auto;bottom:24px;margin:0 24px 24px 0;width:58px;height:58px}.reader-page .floating-play:focus-visible,.study-rate:focus-visible{outline:2px solid var(--ld-accent);outline-offset:3px}@media(max-width:1180px){.top-actions:has(.study-toolbar)>.account-topbar-button{display:none}}@media(max-width:800px){.reader-page .reader-head{gap:6px;padding-inline:10px}.reader-page .reader-head .search-box{width:140px}.reader-page .segment-table{padding:18px 12px 40px}.study-toolbar>.icon-button[aria-label="Sao chép câu đang chọn"]{display:none}}@media(max-width:570px){.topbar:has(.study-toolbar){min-height:50px;height:auto;flex-wrap:wrap;padding:6px 8px;gap:6px}.topbar:has(.study-toolbar) .crumb{flex:1 1 100%;font-size:13px}.topbar:has(.study-toolbar) .top-actions{flex:1;justify-content:flex-end;gap:5px}.reader-page .reader-head{gap:6px}.reader-page .subtitle-modes{gap:3px}.reader-page .reader-head .search-box{max-width:none;width:100%;flex:1 1 100%}.reader-page .segment-table{padding:14px 6px 40px}.reader-page .floating-play{bottom:12px;margin-right:14px;width:50px;height:50px}.study-options-menu{position:fixed;top:108px;right:8px;width:min(310px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 184px)}}.status-island{--island-surface: #000000;--island-hairline: rgba(255, 255, 255, .06);--island-shadow: 0 8px 30px rgba(0, 0, 0, .45);--island-text: #e9ebed;--island-muted: #9ca1aa;--island-live: #7af5c5;--island-action: #c568e6;--island-warning: #f2d36f;--island-error: #f4a8a8;--island-ease: cubic-bezier(.32, .72, 0, 1);--island-accent: var(--island-muted);position:relative;z-index:20;display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;max-width:min(340px,36%);color:var(--island-text);font-family:Segoe UI Variable Text,Segoe UI,ui-sans-serif,system-ui,sans-serif}.status-island[data-state=idle]{gap:0}.topbar>.crumb{flex:1 1 0%;min-width:min(160px,30%)}.topbar>.top-actions{flex:1 1 0%;min-width:max-content;justify-content:flex-end}.status-island[data-tone=error],.status-island-minimal[data-tone=error],.status-island-others [data-tone=error]{--island-accent: var(--island-error)}.status-island[data-tone=success],.status-island[data-tone=live],.status-island-minimal[data-tone=success],.status-island-minimal[data-tone=live],.status-island-others [data-tone=success],.status-island-others [data-tone=live]{--island-accent: var(--island-live)}.status-island[data-tone=action],.status-island-minimal[data-tone=action],.status-island-others [data-tone=action]{--island-accent: var(--island-action)}.status-island[data-tone=warning],.status-island-minimal[data-tone=warning],.status-island-others [data-tone=warning]{--island-accent: var(--island-warning)}.status-island-slot{position:relative;flex:0 1 auto;min-width:0;height:36px}.status-island-row{display:flex;align-items:center;gap:2px;height:36px;padding:0 4px 0 6px;min-width:0}.status-island-sizer{visibility:hidden;pointer-events:none;max-width:100%}.status-island-toggle{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;height:30px;margin:0;padding:0 8px 0 0;border:0;border-radius:999px;background:transparent;color:inherit;font-family:inherit;font-size:12.5px;font-weight:600;line-height:1.2;text-align:left;cursor:pointer}.status-island-leading{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;color:var(--island-accent)}.status-island-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-island-trailing{display:grid;place-items:center;flex:none;width:28px;height:28px;margin:0;padding:0;border:0;border-radius:50%;background:#1c1f24;color:var(--island-text);cursor:pointer}.status-island-trailing.is-indicator{background:transparent;cursor:default;color:var(--island-accent)}.status-island-trailing:not(.is-indicator):hover{background:#2a2e35}.status-island-surface{position:absolute;top:0;left:50%;translate:-50% 0;width:100%;height:36px;overflow:hidden;interpolate-size:allow-keywords;background:var(--island-surface);border-radius:999px;box-shadow:0 0 0 1px var(--island-hairline),var(--island-shadow);transition:width .32s var(--island-ease),height .32s var(--island-ease),border-radius .32s var(--island-ease),translate .32s var(--island-ease)}.status-island[data-state=expanded] .status-island-surface{width:min(380px,calc(100vw - 16px));height:auto;max-height:min(70vh,520px);overflow:auto;translate:calc(-50% + var(--island-shift, 0px)) 0;border-radius:28px;transition-duration:.42s}.status-island-toggle:hover .status-island-label{color:#fff}.status-island-toggle:focus-visible,.status-island-trailing:focus-visible,.status-island-minimal:focus-visible,.status-island-actions button:focus-visible,.status-island-others button:focus-visible{outline:2px solid var(--island-action);outline-offset:2px}.status-island-details{padding:4px 16px 16px;animation:status-island-reveal .22s .12s var(--island-ease) backwards;transition:opacity .12s ease}.status-island-surface.is-closing .status-island-details{opacity:0}@keyframes status-island-reveal{0%{opacity:0}to{opacity:1}}.status-island-heading{margin:2px 0 0;font-size:14px;font-weight:650;line-height:1.4;color:var(--island-text)}.status-island-detail{margin:6px 0 0;font-size:12.5px;line-height:1.55;color:var(--island-muted);overflow-wrap:anywhere}.status-island-progress{display:block;width:100%;height:6px;margin:12px 0 0;accent-color:var(--island-live)}.status-island-notes{margin:10px 0 0;padding:10px 12px;max-height:7.5em;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#c5cad0;background:#0f1113;border:1px solid var(--island-hairline);border-radius:14px;font-size:12.5px;line-height:1.55}.status-island-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.status-island-actions button{min-height:32px;padding:7px 14px;border:0;border-radius:999px;background:#1c1f24;color:var(--island-text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}.status-island-actions button:hover{background:#2a2e35}.status-island-actions button.primary{background:var(--island-live);color:#0b231a}.status-island-actions button.primary:hover{background:#a1f8d7}.status-island[data-tone=error] .status-island-actions button.primary{background:var(--island-error);color:#2b1010}.status-island-others{list-style:none;margin:14px 0 0;padding:10px 0 0;border-top:1px solid var(--island-hairline);display:grid;gap:4px}.status-island-others button{display:flex;align-items:center;gap:8px;width:100%;min-height:32px;padding:2px 8px 2px 2px;border:0;border-radius:999px;background:transparent;color:var(--island-text);font:inherit;font-size:12.5px;text-align:left;cursor:pointer}.status-island-others button:hover{background:#15171a}.status-island-minimal{--island-accent: var(--island-muted);display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:999px;background:var(--island-surface);box-shadow:0 0 0 1px var(--island-hairline),var(--island-shadow);color:var(--island-accent);cursor:pointer;animation:status-island-reveal .22s var(--island-ease) backwards}.status-island-minimal:hover{color:#fff}.status-island-live{display:block;width:8px;height:8px;border-radius:50%;background:var(--island-live);box-shadow:0 0 0 3px #7af5c52e}.status-island-ring{transform:rotate(-90deg)}.status-island-ring circle{fill:none;stroke-width:2.2}.status-island-ring-track{stroke:#2a2e35}.status-island-ring-value{stroke:var(--island-accent);stroke-linecap:round;transition:stroke-dashoffset .3s ease}.status-island-spin{animation:spin 1.1s linear infinite}.status-island-live-region{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:880px){.status-island{max-width:min(300px,46%)}}@media(max-width:570px){.status-island{max-width:60%}.status-island-toggle{font-size:12px}.topbar:has(.study-toolbar)>.crumb{min-height:36px}.topbar:has(.study-toolbar):has(.status-island:not([data-state=idle]))>.crumb{flex:1 1 0%;min-width:0}.topbar:has(.study-toolbar):has(.status-island:not([data-state=idle]))>.top-actions{flex:1 1 100%}}@media(prefers-reduced-motion:reduce){.status-island-surface,.status-island[data-state=expanded] .status-island-surface{transition-duration:0s}.status-island-details,.status-island-minimal,.status-island-spin{animation:none}}.status-island-toggle:focus-visible{outline-offset:-2px;border-radius:999px}body,button,input,select,textarea{font-family:var(--ld-font)}body{-webkit-font-smoothing:antialiased}::selection{background:color-mix(in srgb,var(--ld-accent) 30%,transparent);color:inherit}.page-title h1,.library-page h1,.settings-page h1,.review-page h1,.saved-page h1{margin:0;font-family:var(--ld-font-display);font-size:clamp(26px,2.4vw,32px);font-weight:700;letter-spacing:-.022em;line-height:1.12}.page-title>div:first-child{display:grid;gap:6px;min-width:0}.page-title>div:first-child>span{color:var(--ld-label-3);font-size:13px;font-weight:600;letter-spacing:.01em;text-transform:none}.page-title>div:last-child:not(:first-child){flex-wrap:wrap;gap:8px}.settings-card h2{font-size:17px;font-weight:650;letter-spacing:-.01em}:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--ld-focus);outline-offset:2px}button:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--ld-focus)}.rail{background:var(--ld-sidebar);border-right:1px solid var(--ld-separator)}@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.rail,.topbar{-webkit-backdrop-filter:saturate(160%) blur(20px);backdrop-filter:saturate(160%) blur(20px)}}.rail-header,.navigation-toggle{background:transparent}.app-shell>.rail .rail-button,.app-shell .rail-button{border-radius:var(--ld-radius-pill);color:var(--ld-label-3);box-shadow:none;transform:none}.app-shell>.rail .rail-button:hover{background:var(--ld-fill-1);color:var(--ld-label);filter:none}.app-shell>.rail .rail-button.active{color:var(--ld-accent-text);background:var(--ld-accent-tint);box-shadow:none}.rail-mark{border:0;border-radius:50%;background:var(--ld-accent-fill);color:var(--ld-on-accent)}.app-shell .navigation-toggle{width:36px;height:36px;flex-basis:36px;border-radius:50%;color:var(--ld-label-2)}.app-shell .navigation-toggle:hover{background:var(--ld-fill-1);color:var(--ld-label);filter:none}.topbar{gap:8px;background:var(--ld-bar);border-bottom:1px solid var(--ld-separator)}.topbar>.crumb{gap:4px}.topbar .top-actions,.study-toolbar{gap:4px}.app-shell .account-topbar-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;max-width:180px;height:var(--ld-control-compact);padding:0 12px 0 10px;border:0;border-radius:var(--ld-radius-pill);background:var(--ld-fill-1);color:var(--ld-label);font-size:12.5px;font-weight:600}.app-shell .account-topbar-button:hover{background:var(--ld-fill-2);filter:none}.account-topbar-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-topbar-button.is-signed-in svg{color:var(--ld-accent-text)}.app-shell .top-actions:has(.study-toolbar)>.account-topbar-button{width:var(--ld-control-compact);padding:0}.top-actions:has(.study-toolbar) .account-topbar-label{display:none}@media(max-width:1100px){.app-shell .account-topbar-button{width:var(--ld-control-compact);padding:0}.account-topbar-label{display:none}}:where(.top-actions) .status{display:inline-flex}.app-shell .top-actions .status{align-items:center;gap:6px;flex:none;height:24px;padding:0 6px;color:var(--ld-label-3);font-size:12px;font-weight:600;letter-spacing:0;white-space:nowrap}.status-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--ld-label-4)}.app-shell .top-actions .status.online{color:var(--ld-accent-text)}.status.online .status-dot{background:var(--ld-accent);box-shadow:0 0 0 3px var(--ld-accent-tint)}.app-shell .top-actions:has(.study-toolbar) .status{width:20px;padding:0;justify-content:center}.top-actions:has(.study-toolbar) .status-text,.sr-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.preview-badge{border:0;border-radius:var(--ld-radius-pill);padding:4px 9px;background:var(--ld-accent-tint);color:var(--ld-accent-text)}button{transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}.app-shell button:hover:not(:disabled){--pill-hover: color-mix(in srgb, var(--ld-overlay) 7%, transparent)}.app-shell button:active:not(:disabled){--pill-hover: color-mix(in srgb, var(--ld-overlay) 12%, transparent)}.app-shell button:is([aria-pressed=true],[aria-checked=true],.selected){--pill-bg: var(--ld-accent-tint);--pill-fg: var(--ld-accent-text)}.app-shell :is(.source-toolbar button,.reader-tools button,.page-title button,.library-groups button,.library-management button,.library-item-actions button,.document-import button,.document-empty button,.document-mobile-tools button,.study-word-occurrences button,.study-words-more,.saved-source-button,.saved-audio-button,.saved-entry button,.review-card button,.new-word-actions button,.anki-export button,.chat-page button,.paste-panel button,.transcript-paste button,.youtube-loader button,.youtube-error button,.context-card button,.dictionary-retry,.dict-actions>button,.settings-card button,.choice-actions button,.update-actions button,.reading-speed button,.study-font-controls button,.reveal-translation){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:var(--ld-control-compact);height:auto;margin:0;padding:0 14px;border:0;border-radius:var(--ld-radius-pill);background-color:var(--pill-bg, var(--pill-base-bg, var(--ld-fill-1)));background-image:linear-gradient(var(--pill-hover, transparent),var(--pill-hover, transparent));color:var(--pill-fg, var(--pill-base-fg, var(--ld-label)));box-shadow:none;filter:none;font-size:12.5px;font-weight:600;line-height:1.2;text-align:center;white-space:nowrap}.app-shell :is(.source-toolbar,.reader-tools,.dict-actions,.review-card,.saved-entry,.document-import,.library-item-actions) button svg{flex:none;width:16px;height:16px}.app-shell :is(.settings-card button,.review-card button,.paste-panel button,.choice-actions button,.update-actions button,.dict-actions>button,.youtube-error button,.chat-page form button,.settings-card .google-sign-in){min-height:var(--ld-control-regular);padding-inline:16px}.app-shell :is(.settings-card button,.paste-panel button:last-child,.context-card button,.youtube-loader button,.transcript-paste button,.youtube-error button,.chat-page form button,.review-card>button,.review-card div button:last-child,.dict-actions>button.dict-save,.choice-actions button.primary,.update-actions button.primary){--pill-base-bg: var(--ld-accent-fill);--pill-base-fg: var(--ld-on-accent)}.app-shell :is(.settings-card button.secondary,.settings-card .provider-actions button+button,.settings-card .update-actions button:not(.primary),.settings-card .library-management button){--pill-base-bg: var(--ld-fill-1);--pill-base-fg: var(--ld-label)}.app-shell .settings-card button:disabled{--pill-bg: var(--ld-fill-1);--pill-fg: var(--ld-label-3)}.app-shell button:disabled{cursor:default}.app-shell :is(.source-toolbar,.page-title,.library-item-actions,.document-import,.saved-entry,.review-card,.dict-actions) button:disabled{opacity:.5}.app-shell :is(.google-sign-in,.settings-card .google-sign-in){--pill-base-bg: var(--ld-bg-base);--pill-base-fg: var(--ld-label);border:1px solid var(--ld-separator-strong);border-radius:var(--ld-radius-pill);min-height:var(--ld-control-regular);background-color:var(--pill-base-bg);color:var(--pill-base-fg)}.app-shell .source-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:14px}.toolbar-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.app-shell .toolbar-group>button{flex:1 0 auto}.app-shell .toolbar-group>select{flex:0 0 auto}.video-column{container-type:inline-size}@container (max-width: 560px){.app-shell .source-toolbar button svg{display:none}.app-shell .source-toolbar button{padding-inline:12px}}.app-shell :is(.source-toolbar select,.library-item-actions select){height:var(--ld-control-compact);min-height:var(--ld-control-compact);padding:0 8px 0 12px;border:0;border-radius:var(--ld-radius-pill);background-color:var(--ld-fill-1);color:var(--ld-label);font-size:12.5px;font-weight:600}.app-shell :is(.icon-button,.top-actions>.icon-button,.pager .icon-button,.study-toolbar .icon-button,.speaker,.collapse-actions>button,.example-source>button,.dictionary-close,.search-box button,.active-caption>button,.sentence-row .row-save,.sentence-row .line-index){place-items:center;flex:none;width:var(--ld-control-compact);height:var(--ld-control-compact);min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background-color:var(--pill-bg, var(--icon-base-bg, transparent));background-image:linear-gradient(var(--pill-hover, transparent),var(--pill-hover, transparent));color:var(--pill-fg, var(--icon-base-fg, var(--ld-label-2)));box-shadow:none;filter:none}.app-shell :is(.icon-button,.study-toolbar .icon-button,.speaker,.collapse-actions>button) svg{width:18px;height:18px}.app-shell :is(.speaker,.collapse-actions>button){--icon-base-bg: var(--ld-fill-1);--icon-base-fg: var(--ld-label)}.app-shell .speaker{width:var(--ld-control-regular);height:var(--ld-control-regular)}.app-shell .search-box button{width:28px;height:28px}.app-shell .example-source>button{width:30px;height:30px;margin-top:-4px}.app-shell .icon-button[aria-expanded=true],.app-shell button.icon-button.selected{--pill-bg: var(--ld-accent-tint);--pill-fg: var(--ld-accent-text)}.app-shell .active-caption>button{--icon-base-bg: var(--ld-accent-fill);--icon-base-fg: var(--ld-on-accent)}.app-shell .sentence-row .line-index{width:24px;height:24px;--icon-base-bg: var(--ld-fill-1);--icon-base-fg: var(--ld-label-3)}.app-shell .sentence-row.active .line-index{--icon-base-bg: var(--ld-accent-fill);--icon-base-fg: var(--ld-on-accent)}.app-shell .sentence-row .row-save{width:28px;height:28px;--icon-base-fg: var(--ld-label-3)}.app-shell .sentence-row button.row-save.is-saved{--pill-bg: transparent;--pill-fg: var(--ld-gold)}.app-shell .floating-play{background:var(--ld-accent-fill);color:var(--ld-on-accent);box-shadow:0 10px 28px color-mix(in srgb,var(--ld-accent) 30%,transparent),0 2px 8px color-mix(in srgb,var(--ld-shadow) 40%,transparent)}.app-shell .floating-play:hover{filter:none;background:var(--ld-accent-fill-hover)}.app-shell .study-toolbar .auto-pause-button{display:inline-flex;align-items:center;gap:5px;width:auto;height:var(--ld-control-compact);padding:0 10px;border:0;border-radius:var(--ld-radius-pill);background-color:var(--pill-bg, var(--ld-fill-1));background-image:linear-gradient(var(--pill-hover, transparent),var(--pill-hover, transparent));color:var(--pill-fg, var(--ld-label-2));font-size:11.5px}.app-shell .study-rate{width:auto;height:var(--ld-control-compact);padding:0 6px 0 10px;border:0;border-radius:var(--ld-radius-pill);background-color:var(--ld-fill-1);color:var(--ld-label);font-size:12px;font-weight:600}.app-shell :is(.segmented,.subtitle-modes,.dictionary-subtabs,.review-mode,.word-status){display:inline-flex;align-items:stretch;gap:2px;margin:0;padding:3px;border:0;border-radius:var(--ld-radius-pill);background:var(--ld-fill-1)}.app-shell :is(.segmented,.subtitle-modes,.dictionary-subtabs,.review-mode,.word-status)>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:28px;margin:0;padding:0 14px;border:0;border-radius:var(--ld-radius-pill);background-color:var(--pill-bg, transparent);background-image:linear-gradient(var(--pill-hover, transparent),var(--pill-hover, transparent));color:var(--pill-fg, var(--ld-label-2));box-shadow:none;filter:none;font-size:12.5px;font-weight:600;white-space:nowrap}.app-shell :is(.segmented,.subtitle-modes,.dictionary-subtabs,.review-mode,.word-status)>button:disabled{opacity:.5}.appearance-settings .segmented{margin-top:12px}.app-shell :is(.dictionary-subtabs,.word-status,.difficulty-segments){display:flex;width:100%}.app-shell :is(.dictionary-subtabs,.word-status,.difficulty-segments)>button{flex:1 1 0;padding-inline:6px}.app-shell .dictionary-subtabs{margin-bottom:14px}.app-shell .difficulty-segments>button span{color:inherit;opacity:.7;font-variant-numeric:tabular-nums}.app-shell .difficulty-segments>button span:empty{display:none}.app-shell .review-mode{margin:4px 0 20px}.app-shell .document-tabs{gap:4px;padding:8px 16px;background:var(--ld-bg-elevated);border-bottom:1px solid var(--ld-separator)}.app-shell .document-tabs button{min-height:var(--ld-control-compact);padding:0 14px;border-radius:var(--ld-radius-pill);background-color:var(--pill-bg, transparent);background-image:linear-gradient(var(--pill-hover, transparent),var(--pill-hover, transparent));color:var(--pill-fg, var(--ld-label-2));font-size:13px;font-weight:600}.app-shell .document-tabs button[aria-pressed=true] svg{color:currentColor}.app-shell .document-badges{gap:6px}.app-shell .document-badges span{display:inline-flex;align-items:center;height:22px;padding:0 9px;border:0;border-radius:var(--ld-radius-pill);background:var(--ld-fill-1);color:var(--ld-label-2);font-size:11.5px;font-weight:600}.app-shell .document-badges .coverage-badge{background:var(--ld-accent-tint);color:var(--ld-accent-text)}.app-shell .collapse-state{padding:3px 10px;border:0;border-radius:var(--ld-radius-pill);background:var(--ld-fill-1);color:var(--ld-label-2);font-weight:600}.app-shell .is-collapsed .collapse-state{background:var(--ld-accent-tint);color:var(--ld-accent-text)}.app-shell .reveal-translation{min-height:26px;padding:0 10px;font-size:12px}.app-shell :is(.settings-card,.document-filters,.vocabulary-filters,.saved-entry,.paste-panel,.transcript-paste,.chat-page,.anki-export,.library-management,.study-word-filters,.study-options,.reader-head,.content-profile,.choice-dialog) :is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]),select,textarea){min-height:var(--ld-control-regular);border:1px solid transparent;border-radius:var(--ld-radius-control);background-color:var(--ld-fill-1);color:var(--ld-label)}.app-shell :is(input,select,textarea)::placeholder{color:var(--ld-label-3)}.app-shell :is(input:not([type=checkbox],[type=radio],[type=range]),select,textarea):focus-visible{outline:2px solid var(--ld-focus);outline-offset:0;border-color:transparent}.app-shell :is(.search-box,.subtitle-head label,.youtube-loader,.document-filters .document-search){border:0;border-radius:var(--ld-radius-pill);background:var(--ld-fill-1);color:var(--ld-label-3)}.app-shell :is(.search-box,.subtitle-head label,.youtube-loader,.document-filters .document-search):focus-within{box-shadow:0 0 0 2px var(--ld-focus)}.app-shell :is(.search-box,.subtitle-head label,.youtube-loader,.document-search) input,.app-shell :is(.search-box,.subtitle-head label,.youtube-loader,.document-search) input:focus-visible{min-height:0;border:0;background:transparent;outline:none}.app-shell .search-box{height:40px;padding:0 6px 0 14px}.app-shell .subtitle-head label{height:var(--ld-control-compact);padding:0 12px}.app-shell .youtube-loader{padding:4px 4px 4px 14px}.app-shell .document-filters .document-search{padding:0 14px}input[type=range],progress{accent-color:var(--ld-accent)}.settings-page label>input[type=checkbox],.study-options label>input[type=checkbox],.study-popover label>input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;flex:none;position:relative;width:38px;height:22px;margin:0;border-radius:999px;background:var(--ld-fill-3);cursor:pointer;transition:background-color .2s var(--ld-ease)}.settings-page label>input[type=checkbox]:after,.study-options label>input[type=checkbox]:after,.study-popover label>input[type=checkbox]:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0000004d;transition:transform .2s var(--ld-ease),background-color .2s var(--ld-ease)}.settings-page label>input[type=checkbox]:checked,.study-options label>input[type=checkbox]:checked,.study-popover label>input[type=checkbox]:checked{background:var(--ld-accent-fill)}.settings-page label>input[type=checkbox]:checked:after,.study-options label>input[type=checkbox]:checked:after,.study-popover label>input[type=checkbox]:checked:after{transform:translate(16px);background:var(--ld-on-accent)}.settings-page label>input[type=checkbox]:disabled,.study-options label>input[type=checkbox]:disabled{opacity:.5;cursor:default}.app-shell :is(.settings-card,.review-card,.library-item,.paste-panel,.transcript-paste,.chat-message,.saved-entry,.saved-filters,.active-caption,.video-empty,.context-card,.library-management,.subtitle-empty,.document-row.content-entry){border:0;border-radius:var(--ld-radius-card);background:var(--ld-bg-card);box-shadow:0 0 0 1px var(--ld-separator)}.app-shell .settings-card{padding:24px}.app-shell .settings-card+.settings-card{margin-top:14px}.app-shell .settings-card details{margin:8px 0 14px;color:var(--ld-label-2);font-size:13px;line-height:1.6}.app-shell .settings-card summary{cursor:pointer;color:var(--ld-label);font-weight:600}.app-shell .video-empty svg{color:var(--ld-accent)}.app-shell .active-caption{gap:8px 12px;padding:14px 16px}.app-shell .context-card{margin-top:18px;padding:16px}.app-shell .context-card>div{color:var(--ld-accent-text)}.app-shell .luna-answer{border-top-color:var(--ld-separator)}.app-shell .subtitle-empty{background:var(--ld-bg-card)}.dictionary{background:var(--ld-bg-elevated);border-left:1px solid var(--ld-separator)}.segment-table .sentence-row,.subtitle-list .sentence-row{border-radius:12px}.app-shell .sentence-row.active{background:color-mix(in srgb,var(--ld-accent) 8%,var(--ld-bg-card));box-shadow:inset 3px 0 0 var(--ld-accent)}.app-shell .reader-page .sentence-row.active{background:color-mix(in srgb,var(--ld-accent) 8%,var(--ld-bg-card))}.app-shell .collapse-bar{border-bottom-color:var(--ld-separator)}.app-shell .document-browser{background:var(--ld-bg-base)}.app-shell .document-filters{background:var(--ld-bg-elevated);border-right:1px solid var(--ld-separator)}.app-shell .document-filters select{width:100%;padding:0 10px}.app-shell .difficulty-options legend{margin-bottom:8px}.app-shell .document-import{gap:6px}.app-shell .document-import button{justify-content:flex-start;width:100%}.app-shell .document-row.content-entry{margin-bottom:10px;padding:16px}.app-shell .document-row.content-entry:nth-child(2n){background:var(--ld-bg-card)}.app-shell .document-row.content-entry:hover{background:color-mix(in srgb,var(--ld-overlay) 3%,var(--ld-bg-card))}.app-shell .document-cover{border-radius:12px}.app-shell .document-book-cover{background:var(--ld-fill-1)}.app-shell .library-management{padding:12px 16px}.app-shell .library-management summary{font-weight:600}.app-shell .library-item-actions{gap:6px}.app-shell .article-import{display:flex;align-items:flex-end;gap:12px;max-width:none;margin:0 0 18px;padding:16px}.app-shell .article-import label{flex:1;min-width:0;display:grid;gap:8px;font-size:13px}.app-shell .article-import button{flex:0 0 auto;white-space:nowrap}.app-shell .document-file-picker{position:relative;display:flex;align-items:center;min-height:34px;padding:8px 12px;background:var(--ld-fill-1);border-radius:999px;cursor:pointer;font-size:12px}.app-shell .document-file-picker input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;cursor:pointer}.app-shell .document-file-picker:focus-within{outline:2px solid var(--ld-accent);outline-offset:2px}.app-shell .rail a.rail-button{color:var(--ld-label-2);text-decoration:none}@media(max-width:680px){.app-shell .article-import{flex-direction:column;align-items:stretch}.app-shell .article-import button{width:100%}}.app-shell .settings-page .page-title,.app-shell .review-page .page-title,.app-shell .review-page .review-mode,.app-shell .review-page .empty-study,.app-shell .review-page [role=alert]{width:100%;max-width:680px;margin-inline:auto}.app-shell .review-page .review-mode{display:flex;width:fit-content;margin-left:max(0px,calc((100% - 680px)/2))}.app-shell .review-card{padding:28px}.app-shell .review-card div{flex-wrap:wrap;gap:8px}.app-shell .saved-page>:not(.page-title){max-width:1000px;margin-inline:auto}.app-shell .saved-filters{display:grid;gap:14px;margin-block:0 16px;padding:16px 18px}.app-shell .saved-filters .vocabulary-filters{margin:0;align-items:flex-end}.app-shell .saved-filters .vocabulary-filters>p{flex:1 1 220px;margin:0;color:var(--ld-label-3);font-size:12px;line-height:1.5}.app-shell .saved-filters .vocabulary-legend{margin:0;color:var(--ld-label-3);font-size:12px}.app-shell .saved-list{display:grid;gap:10px}.app-shell .saved-entry{padding:18px 20px;border-bottom:0}.app-shell .saved-entry-actions{align-items:stretch;gap:10px;width:200px;flex:none}.app-shell .saved-entry-actions label{gap:4px;color:var(--ld-label-3);font-size:12px}.app-shell .saved-entry-actions>button,.app-shell .saved-entry-actions>div{align-self:flex-end}.app-shell .saved-entry-actions>div{display:flex;gap:6px}.app-shell .saved-entry select{min-height:var(--ld-control-compact);padding:0 10px}.app-shell .dict-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 16px}.app-shell .dict-actions>button.dict-save,.app-shell .dict-actions>.word-status{flex:1 1 100%}.study-popover,.study-options-menu,.layout-menu-content,.word-lookup-tooltip{border:0;border-radius:16px;background:var(--ld-bg-card);box-shadow:var(--ld-shadow-popover)}.shortcut-popover{background:var(--ld-bg-card)}.shortcut-popover kbd{border-radius:6px;background:var(--ld-fill-1);color:var(--ld-label)}.study-options-menu fieldset>button{border-radius:10px;padding-inline:8px}.subtitle-layout-options>button{border-radius:12px}.choice-dialog{border:0;border-radius:var(--ld-radius-sheet);background:var(--ld-bg-card);color:var(--ld-label);box-shadow:var(--ld-shadow-popover);animation:ld-sheet-in .32s var(--ld-ease)}.choice-dialog::backdrop{background:light-dark(rgba(0,0,0,.25),rgba(0,0,0,.6))}.choice-dialog .choice-option{border-radius:14px}.choice-dialog .choice-option:hover:not(:disabled){border-color:var(--ld-accent)}@keyframes ld-sheet-in{0%{opacity:0;transform:translateY(-12px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:570px){.app-shell :is(.icon-button,.top-actions>.icon-button,.study-toolbar .icon-button){width:var(--ld-control-regular);height:var(--ld-control-regular)}.app-shell .study-toolbar .auto-pause-button,.app-shell .study-rate{height:var(--ld-control-regular)}.app-shell .source-toolbar{gap:6px}.app-shell .settings-card{padding:18px 16px}.app-shell .review-card{padding:20px 16px}.app-shell .saved-entry{padding:16px}.app-shell .saved-entry-actions{width:auto;flex-direction:row;flex-wrap:wrap;align-items:flex-end}.app-shell .saved-entry-actions>button,.app-shell .saved-entry-actions>div{align-self:auto}}@media(prefers-reduced-motion:reduce){.choice-dialog{animation:none}.settings-page label>input[type=checkbox],.settings-page label>input[type=checkbox]:after,.study-options label>input[type=checkbox]:after{transition:none}}.app-shell .review-card .review-ratings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}.app-shell .review-card .review-ratings button{display:grid;justify-items:center;gap:2px;min-height:52px;padding:8px 6px}.app-shell .review-card .review-ratings button:not([data-rating="3"]){--pill-base-bg: var(--ld-fill-1);--pill-base-fg: var(--ld-label)}.app-shell .review-card .review-ratings button[data-rating="3"]{--pill-base-bg: var(--ld-accent-fill);--pill-base-fg: var(--ld-on-accent)}.app-shell .review-card .review-ratings small{font-size:12px;opacity:.8}.app-shell .review-card .review-rating-label{display:inline-flex;align-items:center;gap:6px;font-weight:600}.app-shell .review-card kbd{min-width:1.4em;padding:0 4px;border:1px solid currentColor;border-radius:4px;font:inherit;font-size:11px;line-height:1.4;opacity:.7}@media(max-width:420px){.app-shell .review-card .review-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}}.app-shell .study-plan{max-width:680px;margin:0 auto 20px;display:grid;gap:12px}.app-shell .study-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.app-shell .study-stat{display:grid;gap:2px;align-content:start;padding:12px 14px;border:1px solid var(--ld-separator);border-radius:12px;background:var(--ld-bg-card)}.app-shell .study-stat-label{color:var(--ld-label-2);font-size:12px}.app-shell .study-stat-value{color:var(--ld-label);font-size:26px;font-weight:600;line-height:1.2}.app-shell .study-stat-detail{color:var(--ld-label-3);font-size:12px}.app-shell .study-levels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0}.app-shell .study-levels div{display:flex;justify-content:space-between;gap:6px;padding:6px 10px;border-radius:8px;background:var(--ld-fill-1);font-size:12px}.app-shell .study-levels dt{color:var(--ld-label-2);font-weight:600}.app-shell .study-levels dd{margin:0;color:var(--ld-label);font-variant-numeric:tabular-nums}.app-shell .new-words{padding:14px 16px;border:1px solid var(--ld-separator);border-radius:12px;background:var(--ld-bg-card)}.app-shell .new-words h2{display:flex;justify-content:space-between;gap:8px;margin:0 0 8px;font-size:15px}.app-shell .new-words h2 span{color:var(--ld-label-3);font-size:12px;font-weight:500}.app-shell .new-words ul{display:grid;gap:0;margin:0;padding:0;list-style:none}.app-shell .new-words li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--ld-separator)}.app-shell .new-words li p{margin:2px 0;color:var(--ld-label-2);font-size:13px;line-height:1.5}.app-shell .new-words li small,.app-shell .new-words-empty,.app-shell .study-plan-note{color:var(--ld-label-3);font-size:12px}.app-shell .study-plan-note{margin:0}.app-shell .new-word-actions{display:flex;flex-shrink:0;gap:6px}.app-shell .new-word-actions button:not(.secondary){--pill-base-bg: var(--ld-accent-fill);--pill-base-fg: var(--ld-on-accent)}.app-shell .new-word-actions button.secondary{--pill-base-bg: var(--ld-fill-1);--pill-base-fg: var(--ld-label)}@media(max-width:560px){.app-shell .study-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .study-levels{grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell .new-words li{flex-direction:column;align-items:stretch}}.app-shell .chat-page{position:relative;flex:1 1 0;height:100%;min-height:0;min-width:0;padding:0;display:flex;flex-direction:column;overflow:hidden;background:var(--ld-bg-base)}.chat-header{min-height:80px;flex:0 0 auto;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.chat-identity{display:flex;align-items:center;gap:12px}.chat-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--ld-accent-text);background:var(--ld-accent-tint)}.chat-identity h1{font-size:17px;line-height:1.4;margin:0;font-weight:650}.chat-identity div>span{color:var(--ld-label-3);font-size:12px}.app-shell .chat-page .chat-new{background:transparent;color:var(--ld-label-2);gap:7px;font-size:13px}.chat-clear-confirm{display:flex;align-items:center;gap:8px;font-size:13px}.chat-viewport{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}.chat-welcome{width:min(100%,780px);min-height:100%;margin:auto;padding:36px 32px 48px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.chat-welcome-mark{width:64px;height:64px;color:var(--ld-accent-text);display:grid;place-items:center;background:var(--ld-accent-tint);border-radius:22px;margin-bottom:24px}.chat-welcome h2{margin:0;font-size:clamp(28px,3vw,40px);font-weight:600;letter-spacing:-.025em;line-height:1.2;text-wrap:balance}.chat-welcome>p{color:var(--ld-label-3);font-size:15px;line-height:1.7;margin:16px 0 32px}.chat-starters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:10px}.app-shell .chat-page .chat-starters button{position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:7px;border:1px solid var(--ld-separator);border-radius:16px;padding:18px 16px 36px;background:transparent;min-width:0;white-space:normal}.chat-starters button>span{font-size:14px;font-weight:600}.chat-starters small{font-size:12px;color:var(--ld-label-3);line-height:1.5}.chat-starters svg{position:absolute;right:14px;bottom:12px;color:var(--ld-label-3);transform:rotate(45deg)}.chat-thread{width:min(100%,792px);margin:auto;padding:24px 32px 40px}.chat-turn{margin:0 0 30px;min-width:0;overflow-wrap:anywhere}.chat-turn-user{margin-left:auto;width:fit-content;max-width:85%;padding:12px 18px;border-radius:20px 20px 5px;background:var(--ld-fill-1)}.chat-user-text{margin:0;white-space:pre-wrap;line-height:1.7;font-size:15px}.chat-turn-author{display:block;margin-bottom:10px;font-size:13px;font-weight:650;color:var(--ld-accent-text)}.chat-prose{color:var(--ld-label);font-size:15px;line-height:1.85}.chat-prose p{margin:0 0 16px;white-space:pre-wrap}.chat-prose h3{font-size:17px;margin:24px 0 10px}.chat-prose ul,.chat-prose ol{padding-left:23px;margin:0 0 16px}.chat-prose li{padding-left:3px;margin-bottom:6px}.chat-prose code{font-family:ui-monospace,Consolas,monospace;background:var(--ld-fill-1);border-radius:4px;padding:2px 5px;font-size:.9em}.chat-prose pre{overflow-x:auto;max-width:100%;padding:16px;border-radius:12px;background:var(--ld-fill-1);line-height:1.6}.chat-prose pre code{padding:0;background:none}.chat-turn-actions{display:flex;gap:4px}.app-shell .chat-page .chat-turn-actions button{min-width:30px;min-height:30px;padding:6px;color:var(--ld-label-3);background:transparent}.chat-thinking{font-size:14px;color:var(--ld-label-3)}.chat-thinking>span{display:inline-block;animation:luna-thinking 1.3s ease-in-out infinite}@keyframes luna-thinking{50%{opacity:.35}}.chat-result{font-size:11px;color:var(--ld-label-3);margin:-14px 0 0}.chat-compose-area{width:min(100%,792px);margin:0 auto;padding:10px 32px 18px;flex:0 0 auto}.chat-composer{border:1px solid var(--ld-separator-strong);background:var(--ld-bg-card);border-radius:24px;padding:14px 14px 10px;transition:border-color .16s}.chat-composer:focus-within{border-color:var(--ld-accent)}.app-shell .chat-page form.chat-composer textarea{display:block;width:100%;min-height:38px;max-height:180px;padding:3px 5px 8px;resize:none;border:0;outline:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ld-label);font:inherit;font-size:15px;line-height:1.65}.chat-composer textarea::placeholder{color:var(--ld-label-3)}.chat-composer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}.app-shell .chat-page .chat-composer .chat-context{--pill-base-bg: transparent;--pill-base-fg: var(--ld-label-3);padding:5px 9px;min-height:32px;font-size:12px;gap:6px}.app-shell .chat-page .chat-composer .chat-context[aria-pressed=true]{--pill-base-bg: var(--ld-accent-tint);--pill-base-fg: var(--ld-accent-text)}.app-shell .chat-page .chat-send{width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:var(--ld-accent-fill);color:var(--ld-on-accent)}.chat-composer-hint{color:var(--ld-label-3);font-size:11px;line-height:1.5;display:flex;justify-content:space-between;gap:8px;margin:10px 6px 0}.chat-error{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:var(--ld-danger);font-size:13px;overflow-wrap:anywhere}.chat-error>span{flex:1}.app-shell .chat-page .chat-error button{background:transparent;color:inherit;padding:6px}.app-shell .chat-page .chat-jump{position:absolute;bottom:168px;left:calc(50% - 18px);padding:8px;width:36px;height:36px;min-height:36px;border:1px solid var(--ld-separator);background:var(--ld-bg-card);color:var(--ld-label)}@media(max-width:680px){.chat-header{padding:14px 18px;min-height:72px}.chat-identity{gap:9px}.chat-welcome{padding:24px 20px}.chat-welcome>p{font-size:14px;margin:14px 0 24px}.chat-starters{grid-template-columns:1fr;gap:8px}.app-shell .chat-page .chat-starters button{padding:13px 36px 13px 14px;gap:3px}.chat-starters svg{bottom:21px}.chat-thread{padding:20px 18px 28px}.chat-compose-area{padding:8px 14px 14px}.chat-composer-hint{justify-content:center;font-size:10px}.chat-composer-hint>span{display:none}.chat-identity div>span{display:none}.chat-clear-confirm>span{max-width:100px}}@media(max-width:570px){.chat-wide-break{display:none}.chat-welcome-mark{margin-bottom:18px;width:52px;height:52px;border-radius:18px}}@media(prefers-reduced-motion:reduce){.chat-thinking>span{animation:none}}.chat-header-actions{display:flex;align-items:center;gap:4px}.app-shell .chat-page .chat-new[aria-expanded=true]{color:var(--ld-accent-text)}.chat-turn-user+.chat-turn-actions,.chat-turn-user .chat-turn-actions{justify-content:flex-end;margin-top:4px}.learner-profile{flex:0 0 auto;max-height:55vh;overflow:auto;margin:0 32px 12px;padding:14px 16px;border:1px solid var(--ld-separator);border-radius:14px;background:var(--ld-bg-card)}.learner-profile-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.learner-profile h2{margin:0;font-size:15px}.learner-profile h3{margin:12px 0 6px;font-size:13px;color:var(--ld-label-2)}.learner-profile-note{margin:6px 0;color:var(--ld-label-3);font-size:12px;line-height:1.5}.learner-profile fieldset{margin:0;padding:0;border:0;display:grid;gap:10px}.learner-profile fieldset:disabled{opacity:.55}.learner-profile label{display:grid;gap:4px;color:var(--ld-label-2);font-size:12px}.learner-profile label.learner-profile-toggle{display:flex;align-items:center;gap:8px;margin:8px 0;color:var(--ld-label);font-size:13px}.learner-profile :is(input:not([type=checkbox]),textarea,select){padding:8px 10px;border:1px solid var(--ld-separator);border-radius:8px;color:var(--ld-label);background:var(--ld-bg-base);font:inherit;font-size:13px;resize:vertical}.learner-profile ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}.learner-profile li{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px;background:var(--ld-fill-1);font-size:12.5px;line-height:1.45}.app-shell .chat-page .learner-profile :is(li button,.learner-profile-close){flex-shrink:0;min-width:26px;min-height:26px;padding:4px;border:0;border-radius:999px;color:var(--ld-label-3);background:transparent}@media(max-width:680px){.learner-profile{margin:0 12px 10px}}@media(max-width:420px){.chat-header-actions .chat-new span{display:none}}.video-column :is(.youtube-player-wrap,.local-video,.video-empty){margin-bottom:12px}.app-shell .source-toolbar{margin-bottom:10px}.app-shell .source-toolbar .sources-toggle{display:inline-flex;align-items:center;gap:4px;margin-left:auto}.app-shell .source-toolbar .sources-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.app-shell .source-menu{margin-top:-2px}.app-shell .source-toolbar button:disabled{opacity:.45}.app-shell .active-caption .retranslate{display:inline-flex;align-items:center;gap:5px;width:auto;height:26px;min-height:26px;margin:6px 0 0;padding:0 10px;border-radius:var(--ld-radius-pill, 999px);background:var(--ld-fill-1);color:var(--ld-label-2);font-size:11.5px;font-weight:600;vertical-align:middle}.app-shell .active-caption .retranslate:disabled{opacity:.5}.app-shell .active-caption em{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px}.app-shell .active-caption em>.study-translation{flex:1 1 100%}.subtitle-list .subtitle-head{position:sticky;top:0;z-index:2;background:var(--ld-bg-base)}.subtitle-list .subtitle-head{flex-wrap:wrap;row-gap:6px}.subtitle-head .word-status-legend{flex:1 0 100%;margin:0;font-weight:500}.subtitle-list .study-word-list{padding:4px 4px 24px}.subtitle-list .study-word-row{padding:11px 4px}.subtitle-list .study-word-name{font-size:16px}@media(min-width:1181px){.video-page .subtitle-panel{height:calc(100dvh - 100px);max-height:none}}@media(min-width:881px)and (max-width:1499px){.app-shell:has(.video-page):has(>.dictionary){grid-template-columns:var(--navigation-width) minmax(0,1fr)}.app-shell:has(.video-page)>.dictionary{position:fixed;z-index:8;top:0;right:0;width:min(380px,42vw);height:100vh;box-shadow:-20px 0 50px color-mix(in srgb,var(--ld-shadow) 53%,transparent)}.app-shell:has(.video-page)>.dictionary .dictionary-close{display:grid!important;place-items:center;width:40px;height:40px;margin-left:auto;background:transparent;color:var(--ld-label)}}@media(max-width:570px){.video-page .video-column{position:sticky;top:0;z-index:3;background:var(--ld-bg-base)}.video-page .video-column .collapse-bar{display:none}.video-page .source-toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.video-page .source-toolbar :is(.toolbar-group,.sources-toggle){flex:0 0 auto;flex-wrap:nowrap}.video-page .source-toolbar .sources-toggle{margin-left:0}.app-shell.subtitle-layout-parallel .video-page .subtitle-list .sentence-row{grid-template-columns:22px minmax(0,1fr) 32px}.app-shell.subtitle-layout-parallel .video-page .subtitle-list .translation{grid-column:2;grid-row:2}.app-shell.subtitle-layout-parallel .video-page .subtitle-list .row-save{grid-column:3;grid-row:1}.video-page .source-toolbar button{flex:0 0 auto;white-space:nowrap}.video-page .source-toolbar button svg{display:none}.video-page .active-caption{margin-top:0}.video-page .active-caption .retranslate{display:none}.app-shell:has(.video-page)>.dictionary,.app-shell.navigation-collapsed:has(.video-page)>.dictionary{top:46dvh;right:0;bottom:0;left:48px;width:auto;height:auto;border-radius:14px 14px 0 0;box-shadow:0 -12px 30px color-mix(in srgb,var(--ld-shadow) 45%,transparent)}}:root{--word-a1: light-dark(#096847, #7af5c5);--word-a2: light-dark(#446300, #c6e881);--word-b1: light-dark(#7c5900, #f2d36f);--word-b2: light-dark(#9b4400, #ffb771);--word-c1: light-dark(#9e2450, #ffa6b5);--word-c2: light-dark(#7440a4, #d4b4ff)}[data-cefr-level=A1]{--word-level-color: var(--word-a1)}[data-cefr-level=A2]{--word-level-color: var(--word-a2)}[data-cefr-level=B1]{--word-level-color: var(--word-b1)}[data-cefr-level=B2]{--word-level-color: var(--word-b2)}[data-cefr-level=C1]{--word-level-color: var(--word-c1)}[data-cefr-level=C2]{--word-level-color: var(--word-c2)}.app-shell .lookup-word[data-cefr-level],.app-shell .lookup-word[data-cefr-level]:hover,.app-shell .lookup-word[data-cefr-level]:focus-visible,.app-shell .lookup-word[data-cefr-level].lookup-highlight,.app-shell .study-word-name[data-cefr-level],.word-lookup-tooltip strong[data-cefr-level]{color:var(--word-level-color, var(--ld-label))}.app-shell .study-word-name:not([data-cefr-level]){color:var(--ld-label)}.app-shell .lookup-word:not([data-cefr-level]){color:inherit}.word-level-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:2px 4px 12px;color:var(--ld-label-2);font-size:12px;line-height:1.6}.word-level-legend label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}.word-level-legend input{width:16px;height:16px;accent-color:var(--ld-accent)}.word-level-badge{color:var(--word-level-color, var(--ld-label-2));font-size:12px;font-weight:650;white-space:nowrap}.word-level-legend small{color:var(--ld-label-3);font-size:11px}.subtitle-head .word-level-legend{flex-basis:100%;grid-column:1 / -1;margin-top:6px}.reader-page>.word-level-legend{margin:12px 28px}.word-lookup-tooltip .word-level-badge{display:block;font-size:11px}.word-lookup-tooltip{pointer-events:none}@media(max-width:570px){.word-level-legend{gap:6px 10px}.word-level-legend small{flex-basis:100%}}
