.study-app,.study-modal-backdrop{--study-ink:#242729;--study-muted:#767b80;--study-line:#e7e9eb;--study-accent:#aa4c32;--study-soft:#f7eeea;--study-bg:#f8f9fa}.study-app{color:var(--study-ink);background:var(--study-bg);min-height:100vh;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}.study-app *{box-sizing:border-box}.study-app a{color:inherit;text-decoration:none}.study-app button,.study-app input,.study-app textarea,.study-app select{font:inherit}.study-app button{cursor:pointer}.study-app button:disabled{cursor:wait;opacity:.5}.study-app :is(button,a,input,textarea,select):focus-visible,.study-modal :is(button,a,input,textarea):focus-visible{outline-offset:3px;outline:3px solid #cc8d78}.study-modal button{cursor:pointer;font-family:inherit}.study-modal button:disabled{cursor:wait;opacity:.5}.google-signin{width:100%}.auth-divider{color:var(--study-muted);align-items:center;gap:12px;font-size:.8rem;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--study-line);flex:1;height:1px}.study-app h1,.study-app h2,.study-app h3{letter-spacing:-.035em}.study-app h1{margin:9px 0 12px;font:400 clamp(2.1rem,3vw,3rem)/1.13 Georgia,serif}.study-app h2{margin:10px 0 20px;font:400 1.75rem/1.2 Georgia,serif}.study-app h3{margin:0;font:600 1.1rem/1.4 Arial,sans-serif}.study-app p{margin:0 0 16px}.muted{color:var(--study-muted)}.study-kicker{letter-spacing:.13em;color:var(--study-accent);font-size:.75rem;font-weight:700}.app-button{background:var(--study-accent);border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:11px 18px;font-size:.88rem;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex;color:#fff!important}.app-button:hover{background:#8e3c27}.app-button.secondary{border-color:var(--study-line);background:#fff;color:var(--study-ink)!important}.app-button.secondary:hover{background:#f4f4f4}.app-button.small{min-height:36px;padding:7px 12px;font-size:.8rem}.app-button.danger{background:#a53030}.study-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px;display:flex}.study-heading p{color:var(--study-muted);max-width:650px;margin:0;font-size:.9rem}.icon-button{border:1px solid var(--study-line);color:#6d7275;background:#fff;border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;padding:0;font-size:1.4rem;display:inline-flex}.study-panel{border:1px solid var(--study-line);background:#fff;border-radius:10px;padding:26px}.study-stats{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px;display:grid}.stat{border:1px solid var(--study-line);background:#fff;border-radius:9px;align-items:center;gap:16px;padding:20px 24px;display:flex}.stat-icon{color:#ac7057;background:#f6f1ed;border-radius:9px;place-items:center;width:39px;height:39px;display:grid}.stat strong{font-size:1.6rem;font-weight:500;line-height:1.15;display:block}.stat span{color:#8b8e91;font-size:.78rem}.library-toolbar{justify-content:space-between;align-items:center;gap:16px;margin:30px 0 23px;display:flex}.search-input{border:1px solid var(--study-line);color:#9a9ea1;background:#fff;border-radius:7px;align-items:center;gap:10px;width:100%;max-width:360px;padding:9px 13px;display:flex}.search-input input{width:100%;min-width:0;color:var(--study-ink);background:0 0;border:0;outline:none;font-size:.88rem}.study-app select{border:1px solid var(--study-line);color:#64696e;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E") right 11px center no-repeat;border-radius:6px;padding:9px 32px 9px 12px;font-size:.85rem}.section-line{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.section-line h2{margin:0;font:600 .9rem Arial,sans-serif}.section-line>span{color:#919599;font-size:.78rem}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.library-card{border:1px solid var(--study-line);background:#fff;border-radius:9px;min-width:0;transition:border-color .18s;display:flex}.library-card:hover{border-color:#b5a89c}.library-card-link{border-radius:9px 0 0 9px;flex:1;align-items:flex-start;gap:13px;min-width:0;padding:18px 8px 18px 18px;display:flex}.library-card-remove{background:0 0;border-color:#0000;flex:none;align-self:flex-start;margin:12px 12px 12px 0}.library-card-remove:hover{background:var(--study-soft);color:#a53030}.library-card-icon{color:#8e6451;background:#f5eeea;border-radius:8px;flex:0 0 38px;place-items:center;height:38px;display:grid}.library-card-icon.is-video{color:#476482;background:#e7edf4}.library-card-body{overflow-wrap:anywhere;min-width:0}.library-card h3{font:500 1.08rem/1.45 Georgia,serif}.library-card :is(.library-card-source,.library-card-meta){color:#656a70;margin:4px 0 0;font-size:.78rem}.library-grid.is-list{grid-template-columns:1fr}.empty-library{text-align:center;background:#ffffffa6;border:1px dashed #d8dce0;border-radius:10px;padding:72px 25px}.empty-symbol{color:#b78e79;background:#f5eeea;border-radius:14px;place-items:center;width:65px;height:65px;margin:0 auto 24px;display:grid}.empty-library h2{margin:0 0 12px;font-size:1.9rem}.empty-library p{color:var(--study-muted);max-width:380px;margin:0 auto 24px;font-size:.9rem}.unfinished-imports{margin-top:28px}.jobs-list{gap:10px;margin:0 0 28px;display:grid}.job-row{border:1px solid var(--study-line);background:#fff;border-radius:7px;justify-content:space-between;align-items:center;gap:14px;padding:15px 18px;display:flex}.job-row strong{font-size:.88rem}.job-row p{color:var(--study-muted);margin:3px 0 0;font-size:.78rem}.status-badge{color:#977556;text-transform:capitalize;background:#f3eee8;border-radius:4px;padding:4px 8px;font-size:.75rem}.status-badge.known{color:#527452;background:#edf3ed}.status-badge.learning{color:#9e731f;background:#fff1d8}.status-badge.failed{color:#ab5151;background:#fbeeee}.study-loading{color:#888;justify-content:center;align-items:center;gap:12px;padding:85px 20px;font-size:.9rem;display:flex}.loading-ring{border:2px solid #e8ded8;border-top-color:var(--study-accent);border-radius:50%;width:20px;height:20px;animation:1s linear infinite study-spin}@keyframes study-spin{to{transform:rotate(360deg)}}.study-error{color:#a33c35;background:#fcf0ee;border-radius:6px;padding:12px 15px;font-size:.88rem}.error-panel{margin:20px 0;padding:24px}.error-panel p{margin:0 0 15px}.study-success{color:#40704c;background:#edf5ef;border-radius:6px;padding:12px 15px;font-size:.88rem}.study-toast{color:#fff;z-index:90;background:#272c2f;border-radius:8px;align-items:center;gap:20px;max-width:min(90vw,650px);padding:14px 18px;font:.88rem/1.5 Arial,sans-serif;display:flex;position:fixed;bottom:25px;left:50%;transform:translate(-50%);box-shadow:0 6px 30px #0002}.study-toast button{color:#fff;cursor:pointer;background:0 0;border:0;font-size:1.4rem}.study-modal-backdrop{z-index:80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#171a1f65;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.study-modal{color:#242729;background:#fff;border-radius:12px;width:min(100%,480px);max-height:90vh;padding:38px;font-family:Arial,sans-serif;position:relative;overflow:auto}.study-modal h2{letter-spacing:-.04em;margin:12px 0 16px;font:2rem/1.2 Georgia,serif}.study-modal p{font-size:.88rem;line-height:1.7}.modal-close{position:absolute;top:12px;right:12px;border:0!important}.study-form{gap:18px;display:grid}.study-form label,.study-field{gap:7px;font-size:.88rem;font-weight:600;display:grid}.study-form input,.study-form textarea,.study-field input,.study-field textarea{border:1px solid var(--study-line,#e7e9eb);width:100%;color:inherit;background:#fff;border-radius:6px;padding:11px 12px;font-size:.9rem;font-weight:400}.study-form textarea{resize:vertical;min-height:160px;line-height:1.7}.text-button{color:var(--study-accent,#aa4c32);text-align:left;background:0 0;border:0;padding:4px 0;font-size:.85rem}.study-form .text-button{text-align:center}.field-hint{color:var(--study-muted);font-size:.76rem;font-weight:400}.button-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.tabs{background:#f0f1f3;border-radius:8px;flex-wrap:wrap;gap:5px;width:fit-content;margin-bottom:25px;padding:5px;display:flex}.tabs button{color:#7a7f83;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;padding:9px 19px;font-size:.88rem;display:flex}.tabs button.active{color:var(--study-ink);background:#fff;box-shadow:0 1px 4px #0000000d}.dropzone{cursor:pointer;text-align:center;background:#fcfaf8;border:1px dashed #cfb9aa;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:220px;padding:25px;display:flex}.dropzone input{max-width:280px;padding:8px}.dropzone strong{font-size:.95rem}.dropzone small{color:#9a8e85;max-width:420px;font-size:.78rem;line-height:1.8}.preview-layout{grid-template-columns:210px 1fr;gap:22px;display:grid}.preview-chapters{border:1px solid var(--study-line);background:#fff;border-radius:8px;height:fit-content;max-height:65vh;padding:10px;overflow:auto}.preview-chapters button{text-align:left;color:#757a7d;background:0 0;border:0;border-radius:5px;width:100%;padding:11px;font-size:.85rem;display:block}.preview-chapters button.active{background:var(--study-soft);color:var(--study-accent)}.preview-editor textarea{min-height:420px;font-family:Georgia,serif;font-size:1rem}.preview-editor .button-row{margin-top:15px}.preview-actions{justify-content:space-between;align-items:end;gap:16px;margin-top:24px;display:flex}.lesson-list{gap:10px;display:grid}.lesson-level-filter{align-items:center;gap:10px;margin:0 0 12px;font-size:.84rem;display:flex}.lesson-level-filter select{width:auto}.lesson-row{border:1px solid var(--study-line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:20px;padding:19px 22px;display:flex}.lesson-row:hover{border-color:#cdb3a3}.lesson-row h3{font-family:Georgia,serif;font-size:1.15rem;font-weight:400}.lesson-row p{color:#999;margin:5px 0 0;font-size:.76rem}.back-link{align-items:center;gap:7px;margin-bottom:24px;font-size:.8rem;display:inline-flex;color:#898d91!important}.detail-actions{flex-wrap:wrap;gap:8px;margin-bottom:25px;display:flex}.vocabulary-table{border-collapse:collapse;border:1px solid var(--study-line);background:#fff;width:100%;font-size:.88rem}.vocabulary-table th{text-align:left;color:#909498;border-bottom:1px solid var(--study-line);background:#fdfdfd;padding:13px 20px;font-size:.75rem;font-weight:500}.vocabulary-table td{border-bottom:1px solid var(--study-line);vertical-align:top;padding:18px 20px}.vocabulary-table .vocab-hanzi{font:1.45rem Georgia,serif;display:block}.vocab-pinyin{color:#a27055;margin-top:3px;font-size:.8rem}.vocab-meaning{max-width:350px;font-size:.88rem}.vocab-context{color:#94989c;margin-top:9px;font:.95rem/1.8 Georgia,serif}.pagination{color:#999;justify-content:space-between;align-items:center;margin-top:20px;font-size:.85rem;display:flex}.settings-grid .study-panel h2{font-size:1.5rem}.settings-grid label{font-weight:400}.review-center{max-width:740px;margin:0 auto}.review-summary{color:#999;justify-content:center;gap:24px;margin-bottom:24px;font-size:.85rem;display:flex}.review-summary strong{color:#606a72;font-weight:600}.flashcard{border:1px solid var(--study-line);text-align:center;background:#fff;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;min-height:380px;padding:45px;display:flex;box-shadow:0 8px 30px #00000003}.flashcard-word{letter-spacing:.07em;margin:24px 0;font:4rem/1.4 Georgia,serif}.flashcard-pinyin{color:#aa775c;margin-bottom:18px;font-size:1rem}.flashcard-meaning{max-width:480px;font-size:1.05rem;line-height:1.7}.flashcard-context{border-top:1px solid var(--study-line);color:#8b8d8e;margin-top:22px;padding-top:22px;font:1.2rem/1.9 Georgia,serif}.flashcard-source{color:#aaa;margin-top:12px;font:.75rem Arial,sans-serif}.review-controls{margin-top:22px}.review-controls>.app-button{width:100%}.rating-buttons{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.rating-buttons button{border:1px solid var(--study-line);background:#fff;border-radius:7px;padding:15px 8px;font-size:.88rem;font-weight:600}.rating-buttons small{color:#999;margin-top:4px;font-size:.75rem;font-weight:400;display:block}.rating-buttons button:first-child{color:#ac5a52}.rating-buttons button:nth-child(2){color:#aa8241}.rating-buttons button:nth-child(3){color:#578267}.rating-buttons button:nth-child(4){color:#5e7f9a}.review-shortcuts{text-align:center;color:#a2a5a8;margin-top:20px;font-size:.75rem}.progress-grid{grid-template-columns:1.5fr 1fr;gap:22px;display:grid}.goal-row{margin-bottom:24px}.goal-row:last-child{margin-bottom:0}.goal-row>div:first-child{justify-content:space-between;margin-bottom:10px;font-size:.88rem;display:flex}.goal-track{background:#eeeff1;border-radius:5px;height:5px;overflow:hidden}.goal-track span{background:#b87858;border-radius:5px;height:100%;display:block}.activity-chart{border-bottom:1px solid var(--study-line);align-items:end;gap:8px;height:150px;margin-top:22px;padding:15px 0 0;display:flex}.activity-bar{background:#c9a28e;border-radius:3px 3px 0 0;flex:1;min-width:0;position:relative}.activity-labels{color:#a4a6a8;justify-content:space-between;margin-top:7px;font-size:.7rem;display:flex}.activity-history{grid-template-columns:repeat(13,1fr);gap:5px;margin-top:25px;display:grid}.activity-day{aspect-ratio:1;background:#f0f1f2;border-radius:3px}.activity-day.has-activity{background:#c5a18b}.metric-label{color:#999;font-size:.78rem}.metric-large{color:#ac7252;font-size:3.3rem;line-height:1.2}.study-notice{color:#8a765f;background:#fbf8f3;border:1px solid #e7ded2;border-radius:7px;margin-bottom:22px;padding:15px 20px;font-size:.88rem}@media (max-width:1200px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-stats{gap:10px}.stat{gap:12px;padding:17px 16px}.stat-icon{display:none}}@media (max-width:960px){.progress-grid,.preview-layout{grid-template-columns:1fr}.preview-chapters{max-height:150px;display:flex;overflow:auto}.preview-chapters button{min-width:160px}}@media (max-width:720px){.study-heading{align-items:flex-start;gap:15px}.study-heading>.app-button{padding:9px 12px;font-size:.8rem}.study-heading h1{font-size:2rem}.study-stats{gap:8px;margin-bottom:20px}.stat{padding:15px 12px}.stat strong{font-size:1.35rem}.stat span{font-size:.72rem}.library-grid{grid-template-columns:1fr}.library-toolbar{flex-direction:column;align-items:stretch}.study-toast{width:max-content;bottom:16px;left:50%}.preview-actions{flex-direction:column;align-items:stretch}.preview-editor .button-row{gap:6px}.vocabulary-table thead{display:none}.vocabulary-table,.vocabulary-table tbody,.vocabulary-table tr,.vocabulary-table td{display:block}.vocabulary-table tr{border-bottom:1px solid var(--study-line);padding:17px}.vocabulary-table td{border:0;padding:3px 0}.vocabulary-table tr td:last-child{margin-top:10px}.flashcard{min-height:330px;padding:30px 20px}.flashcard-word{font-size:3rem}.rating-buttons{gap:6px}.rating-buttons button{font-size:.8rem}.study-modal{padding:32px 24px}.lesson-row{padding:15px}.lesson-row h3{font-size:1rem}.dropzone{min-height:200px}}@media (prefers-reduced-motion:reduce){.study-app *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.study-app .app-button.small,.study-app .text-button,.study-app select{font-size:.875rem}.study-app.is-reader{--reader-bg:#28241f;--reader-surface:#302b25;--reader-ink:#d1c8bd;--reader-muted:#aaa095;--reader-border:#4b433a;--reader-accent:#d5967c;--reader-popover:#171512;--reader-popover-ink:#f4efe7;--reader-popover-accent:#e39a7d;--reader-header-height:40px;--reader-controls-height:68px;--reader-gutter:clamp(18px, 7.2vw, 28px);background:var(--reader-bg);color:var(--reader-ink);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,sans-serif}.is-reader>main{max-width:none;padding:0}.is-reader>main>:is(.study-loading,.error-panel){color:inherit;padding:28px}.reader-screen{height:100dvh;position:relative;overflow:hidden}.reader-scroll{overflow-anchor:none;overscroll-behavior-y:contain;scrollbar-width:thin;height:100%;overflow:auto}.reader-scroll:focus-visible,.reader-token:focus-visible{outline:2px solid var(--reader-accent);outline-offset:-2px}.reader-content{max-width:650px;padding:calc(var(--reader-header-height) + 28px) var(--reader-gutter) calc(var(--reader-controls-height) + 28px);margin:0 auto;container-type:inline-size}.reader-text{white-space:pre-wrap;overflow-wrap:anywhere;line-break:strict}.reader-text:not(.adaptive-reading){font-size:calc((100cqi + 3px) / var(--reader-columns) - 3px);letter-spacing:3px}.reader-text.adaptive-reading{text-align:start;letter-spacing:normal;font-size:calc(clamp(1.125rem, 3.65cqi, 1.375rem) * 10 / var(--reader-columns))}.reader-paragraph-break{white-space:normal;height:calc(.8lh * var(--reader-breaks));display:block}.is-reader+.study-toast{bottom:86px;left:50%}.reader-token{cursor:pointer;touch-action:manipulation;border-radius:3px}.reader-selected-text,.reader-text ::selection{background:#a4482d55}.reader-selected-text{border-radius:3px}.reader-screen button.reader-selection-handle{z-index:6;width:28px;height:28px;color:var(--reader-accent);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:fixed;translate:-50% -4px}.reader-screen button.reader-selection-handle.start{translate:-50% calc(4px - 100%)}.reader-screen button.reader-selection-handle:active{cursor:grabbing}.reader-selection-handle:before{content:"";background:currentColor;width:2px;height:10px;position:absolute;top:4px}.reader-selection-handle:after{content:"";width:10px;height:10px;box-shadow:0 0 0 1px var(--reader-bg);background:currentColor;border-radius:50%;position:absolute;top:12px}.reader-selection-handle.start:before{top:auto;bottom:4px}.reader-selection-handle.start:after{top:auto;bottom:12px}.reader-header,.reader-controls,.reader-tools{z-index:1;transition:opacity .18s ease-out,transform .18s ease-out,visibility .18s;position:absolute;left:0;right:0}.reader-header{height:var(--reader-header-height);background:var(--reader-bg);border-bottom:1px solid var(--reader-border);text-align:center;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;padding:0 18px;display:grid;top:0}.reader-header h1{color:var(--reader-muted);letter-spacing:normal;white-space:nowrap;text-overflow:ellipsis;max-width:100%;margin:0;font:400 13px/1.4 system-ui,sans-serif;overflow:hidden}.reader-difficulty{color:var(--reader-muted);font-size:11px;line-height:1.3}.reader-controls{height:var(--reader-controls-height);background:var(--reader-bg);border-top:1px solid var(--reader-border);gap:6px;padding:12px;display:flex;bottom:0}.reader-header[data-hidden=true],.reader-controls[data-hidden=true],.reader-tools[data-hidden=true]{pointer-events:none;opacity:0;visibility:hidden}.reader-header[data-hidden=true]{transform:translateY(-100%)}.reader-controls[data-hidden=true],.reader-tools[data-hidden=true]{transform:translateY(calc(var(--reader-controls-height) + 100%))}.reader-controls>:is(a,button),.reader-screen .reader-button,.reader-chapter-footer>a{color:var(--reader-ink);background:var(--reader-bg);border:1px solid var(--reader-border);text-align:center;border-radius:7px;justify-content:center;align-items:center;gap:6px;padding:8px 12px;font:700 13px/1.3 system-ui,sans-serif;display:inline-flex}.reader-controls>:is(a,button){flex:1;padding-inline:4px;font-size:12px}.reader-screen :is(.reader-button,.reader-controls>*,.reader-chapter-footer>a):hover{border-color:var(--reader-muted)}.reader-tools{bottom:calc(var(--reader-controls-height) + 18px);margin-inline:var(--reader-gutter);pointer-events:none;flex-direction:column;align-items:flex-start;gap:8px;display:flex}.reader-tools>*{pointer-events:auto}.reader-tools[data-hidden=true]>*{pointer-events:none}.reader-tools .reader-history{background:var(--reader-surface);min-height:44px;color:var(--reader-muted);border-radius:22px;padding-inline:28px}.reader-audio{background:var(--reader-surface);border:1px solid var(--reader-border);border-radius:12px;align-items:center;gap:6px;width:min(100%,540px);padding:8px;display:flex}.reader-audio audio{flex:auto;min-width:0;height:36px}.reader-audio select{color:var(--reader-ink);background:var(--reader-bg);border-color:var(--reader-border);padding:5px}.reader-screen .reader-load{margin-bottom:18px}.reader-end-marker{height:1px}.reader-chapter-footer{border-top:1px solid var(--reader-border);text-align:center;gap:12px;margin-top:40px;padding-top:40px;display:grid}.reader-chapter-footer h2{letter-spacing:normal;margin:0 0 6px;font:700 24px/1.2 Georgia,serif}.reader-reading-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px;display:grid}.reader-reading-summary>div{border:1px solid var(--reader-border);border-radius:10px;flex-direction:column-reverse;justify-content:start;gap:5px;padding:10px 4px;display:flex}.reader-reading-summary dt{font-size:.8rem}.reader-reading-summary dd{margin:0;font-size:1.35rem;font-weight:700}.reader-chapter-footer>a{border-radius:10px;min-height:50px;font-size:15px}.reader-screen .reader-primary,.reader-screen .reader-setting-choice [aria-pressed=true]{background:var(--reader-accent);border-color:var(--reader-accent);color:var(--reader-bg)}.reader-screen .reader-setting-choice [aria-pressed=true]{background:var(--reader-ink);border-color:var(--reader-ink)}.reader-dictionary{z-index:5;background:var(--reader-popover);border:1px solid var(--reader-border);width:min(100vw - 24px,475px);color:var(--reader-popover-ink);border-radius:14px;flex-direction:column;display:flex;position:fixed;box-shadow:0 8px 24px #0004}.reader-dictionary:before{content:"";border:8px solid #0000;border-top:0;border-bottom-color:var(--reader-popover-accent);top:-8px;left:var(--reader-pointer);position:absolute;translate:-50%}.reader-dictionary[data-above=true]:before{top:auto;bottom:-8px;rotate:180deg}.reader-definition-scroll{border-radius:inherit;overscroll-behavior:contain;padding:18px;overflow:auto}.reader-definition-heading{align-items:center;gap:8px;margin-bottom:10px;display:flex}.reader-definition-heading h2{letter-spacing:normal;overflow-wrap:anywhere;flex:1;margin:0;font:500 20px/1.5 system-ui,sans-serif}.reader-definition-heading .reader-button{min-height:44px;color:var(--reader-popover-accent);background:0 0;flex-shrink:0}.reader-dismiss{color:inherit;background:0 0;border:0;place-items:center;min-width:36px;min-height:36px;display:grid}.reader-dictionary .reader-pinyin{color:var(--reader-popover-accent);margin-bottom:8px;font-size:15px;font-weight:600}.reader-definition-loading{min-height:26px;color:var(--reader-popover-accent);align-items:center;gap:6px;margin:4px 0 12px;display:flex}.reader-definition-loading span{opacity:.5;background:currentColor;border-radius:50%;width:7px;height:7px;animation:.96s ease-in-out infinite reader-definition-pulse}.reader-definition-loading span:nth-child(2){animation-delay:.12s}.reader-definition-loading span:nth-child(3){animation-delay:.24s}@keyframes reader-definition-pulse{0%,65%,to{opacity:.45;transform:translateY(0)scale(.85)}30%{opacity:1;transform:translateY(-4px)scale(1)}}.reader-dictionary ol{margin:0 0 12px;padding-left:26px;line-height:1.5}.reader-dictionary li{margin-bottom:4px;padding-left:4px}.reader-dictionary li::marker{color:var(--reader-popover-accent);font-weight:700}.reader-definition-actions{border:1px solid var(--reader-popover-accent);border-radius:8px;display:flex}.reader-definition-actions button{color:var(--reader-popover-accent);background:0 0;border:0;justify-content:center;align-items:center;gap:6px;min-height:48px;padding-inline:12px;font-size:14px;font-weight:700;display:flex}.reader-definition-actions button+button{border-left:1px solid var(--reader-popover-accent);flex:1}.reader-save-word,.reader-save-word label{gap:8px;display:grid}.reader-save-word{gap:12px}.reader-save-word select,.reader-save-word textarea{border:1px solid var(--reader-border);background:var(--reader-popover);width:100%;min-width:0;color:var(--reader-popover-ink);font:inherit;border-radius:7px;padding:8px}.reader-save-word textarea{resize:vertical}.reader-save-word-actions{flex-wrap:wrap;gap:8px;display:flex}.reader-dialog{background:var(--reader-bg);width:min(100%,650px);max-width:none;max-height:calc(100dvh - 16px);color:var(--reader-ink);border:1px solid var(--reader-border);border-radius:16px 16px 0 0;margin:0 auto;padding:18px;position:fixed;inset:auto 0 0;overflow:auto}.reader-dialog::backdrop{background:#0006}.reader-dialog-header,.reader-setting-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.reader-dialog-header h2{letter-spacing:normal;margin:0;font:700 26px/1.2 Georgia,serif}.reader-dialog small{color:var(--reader-muted);font-size:12px;display:block}.reader-settings-card{border:1px solid var(--reader-border);background:var(--reader-surface);border-radius:14px;margin-top:24px;padding:18px;font-size:15px;font-weight:600}.reader-settings-card>div+div{border-top:1px solid var(--reader-border);margin-top:18px;padding-top:18px}.reader-setting-choice>div,.reader-setting-row>div:last-child,.reader-ai-controls{gap:8px;display:flex}.reader-setting-choice>div{margin-top:8px}.reader-setting-choice button{flex:1}.reader-ai>:is(.reader-ai-history,.reader-ai-messages){gap:8px;max-height:48dvh;margin:18px 0;display:grid;overflow:auto}.reader-ai[open]{background:var(--reader-surface);flex-direction:column;height:max(min(390px,90dvh),62dvh);display:flex}.reader-ai>:is(.reader-ai-history,.reader-ai-messages){flex:1;align-content:start}.reader-ai-history .reader-button{text-align:left;justify-content:start;display:grid}.reader-ai-messages [data-role]{background:var(--reader-surface);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;padding:12px}.reader-ai-messages [data-role=user]{background:var(--reader-border);justify-self:end}.reader-ai form{justify-items:end;gap:8px;display:grid}.reader-ai textarea{background:var(--reader-surface);width:100%;color:var(--reader-ink);border:1px solid var(--reader-border);border-radius:8px;padding:12px}.adaptive-dialog{border:1px solid var(--study-line);width:min(540px,100% - 28px);max-height:min(85vh,760px);color:var(--study-ink);background:#fff;border-radius:15px;padding:24px;overflow:auto;box-shadow:0 20px 65px #20202633}.adaptive-dialog::backdrop{background:#25232370}.adaptive-dialog-header,.adaptive-row,.adaptive-check,.import-form .adaptive-check{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.adaptive-dialog-header{justify-content:space-between;margin-bottom:16px}.adaptive-dialog-header h2,.adaptive-transcript-header h2{margin:0}.adaptive-settings,.adaptive-placement,.adaptive-watch-panel{gap:12px;display:grid}.adaptive-placement{margin-top:18px}.adaptive-settings label,.adaptive-watch-panel label{font-size:.9rem;font-weight:600}.adaptive-settings label:not(.adaptive-check),.adaptive-watch-panel label:not(.adaptive-check){gap:5px;min-width:0;display:grid}.adaptive-settings input[type=checkbox],.adaptive-watch-panel input[type=checkbox],.adaptive-settings input[type=range],.import-form input[type=checkbox]{accent-color:var(--study-accent);width:auto}.adaptive-language-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.adaptive-settings select,.adaptive-watch-panel input[type=text],.adaptive-watch-panel input[type=url],.adaptive-watch-panel input[type=file],.adaptive-transcript select,.adaptive-sentence-actions select{border:1px solid var(--study-line);width:100%;min-width:0;color:inherit;background:#fff;border-radius:7px;padding:7px 9px}.adaptive-transcript select,.adaptive-sentence-actions select{width:auto;max-width:150px;font-size:.8rem}.adaptive-sentence-actions select{border-color:var(--reader-border);background:var(--reader-surface);min-height:28px;color:var(--reader-muted)}.adaptive-range>span{justify-content:space-between;gap:10px;display:flex}.study-app .adaptive-note{color:#565c62;margin:0;font-size:.84rem}.adaptive-options{gap:8px;display:grid}.adaptive-options>button{text-align:start;justify-content:flex-start}.study-app button.adaptive-sentence-trigger{display:none}@supports selector(:popover-open){.study-app button.adaptive-sentence-trigger{vertical-align:middle;width:24px;height:24px;color:var(--reader-muted);background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;margin-inline:.12em .24em;padding:0;display:inline-flex}.study-app button.adaptive-sentence-trigger:hover{background:var(--reader-surface);color:var(--reader-accent)}}.adaptive-sentence-actions:popover-open{border:1px solid var(--reader-border);background:var(--reader-popover);white-space:normal;border-radius:10px;gap:2px;width:min(11rem,100vw - 24px);padding:5px;display:grid;overflow:auto;box-shadow:0 6px 20px #0005}@supports (position-area:block-end span-inline-end){.adaptive-sentence-actions:popover-open{position-area:block-end span-inline-end;position-try-fallbacks:flip-inline, flip-block, flip-block flip-inline;justify-self:start;margin:4px 0}}.study-app button.adaptive-inline-button{color:#7e3928;background:#fbf5f2;border:1px solid #dec1b6;border-radius:6px;padding:2px 6px;font:.7rem/1.35 Arial,sans-serif}.study-app .adaptive-sentence-actions:popover-open button.adaptive-inline-button{min-height:32px;color:var(--reader-popover-ink);text-align:start;background:0 0;border:0;padding:4px 8px;font:500 .8125rem/1.35 system-ui,sans-serif}.study-app .adaptive-sentence-actions:popover-open button.adaptive-inline-button:hover{background:var(--reader-surface);color:var(--reader-accent)}.adaptive-placeholder{color:#666;font:.9rem/1.45 Arial,sans-serif}.adaptive-reader-message{color:#663727;background:#fbf5f2;padding:10px}.study-app.is-watch{--study-ink:#f2ebe3;--study-muted:#b8ada2;--study-line:#413932;--study-accent:#efac92;--study-soft:#382b25;--study-bg:#191715;--watch-panel:#221f1c;--watch-field:#191715;--watch-gutter:clamp(14px, 3.5vw, 46px);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,sans-serif}.watch-header{z-index:2;min-height:60px;padding:8px var(--watch-gutter);border-bottom:1px solid var(--study-line);background:var(--study-bg);grid-template-columns:1fr minmax(0,max-content) 1fr;align-items:center;gap:12px;display:grid;position:sticky;top:0}.study-app .watch-header h1{text-overflow:ellipsis;white-space:nowrap;max-width:min(48vw,660px);margin:0;font:500 clamp(1rem,1.65vw,1.25rem)/1.3 system-ui,sans-serif;overflow:hidden}.watch-header-actions{justify-content:flex-end;gap:6px;display:flex}.watch-toolbar-button{min-width:40px;min-height:40px;color:var(--study-muted);white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:4px 10px;display:inline-flex}.watch-toolbar-button:hover{border-color:var(--study-line);background:var(--watch-panel);color:var(--study-ink)}.watch-toolbar-button svg{flex:none}.watch-back{justify-self:start}.adaptive-watch{width:min(100% - 2 * var(--watch-gutter), 1152px);align-items:start;gap:24px;margin:18px auto 0;padding-bottom:44px;display:grid}.adaptive-watch[data-has-source=false]{grid-template-columns:minmax(0,1fr) minmax(310px,.48fr)}.adaptive-watch[data-has-source=true]{width:min(100% - 2 * var(--watch-gutter), clamp(680px, calc((100svh - 238px) * 16 / 9), 1152px))}.adaptive-watch-main,.adaptive-watch-sidebar{gap:14px;min-width:0;display:grid}.adaptive-watch-sidebar[popover]{inset:68px var(--watch-gutter) auto auto;width:min(400px, calc(100% - 2 * var(--watch-gutter)));overscroll-behavior:contain;border:1px solid var(--study-line);background:var(--study-bg);max-height:calc(100dvh - 82px);color:var(--study-ink);border-radius:12px;margin:0;padding:12px;position:fixed;overflow:auto;box-shadow:0 16px 54px #0009}.adaptive-watch-sidebar[popover]:not(:popover-open){display:none}.watch-settings-header{justify-content:space-between;align-items:center;padding:0 2px 0 8px;display:flex}.study-app .watch-settings-header h2{margin:0;font:600 1.05rem/1.3 system-ui,sans-serif}.adaptive-player{background:#0d0c0b;border:1px solid #3d352e;border-radius:13px;overflow:hidden;box-shadow:0 12px 34px #0004}.adaptive-player video,.adaptive-youtube iframe,.adaptive-player-empty{aspect-ratio:16/9;width:100%;display:block}.watch-media-controller{aspect-ratio:16/9;--media-control-background:transparent;--media-control-hover-background:#ffffff26;--media-primary-color:#fff;--media-range-bar-color:var(--study-accent);width:100%;display:block}.watch-media-controller:fullscreen,.watch-media-controller video{width:100%;height:100%}.watch-media-controller video{object-fit:contain}.watch-player-controls{box-sizing:border-box;background:linear-gradient(#0000,#000c);width:100%;padding:8px 6px 2px}.watch-player-controls media-control-bar{--media-control-padding:7px;--media-button-icon-width:19px;--media-button-icon-height:19px;--media-font-size:.8rem;align-items:center;width:100%;display:flex}.watch-player-seek{--media-range-padding:0 7px;width:100%;display:flex}.watch-youtube-controls{border-top:1px solid var(--study-line);background:var(--watch-panel);color:var(--study-ink);align-items:center;gap:8px;padding:4px 6px;display:flex}.watch-youtube-controls .watch-toolbar-button{min-width:36px;min-height:36px;color:inherit;padding:0}.watch-youtube-seek{font-variant-numeric:tabular-nums;white-space:nowrap;flex:1 1 0;align-items:center;gap:8px;min-width:0;font-size:.75rem;display:flex}.watch-youtube-seek input{min-width:0;accent-color:var(--study-accent);flex:1 1 0;margin:0}.adaptive-youtube iframe{border:0;min-height:200px}.adaptive-player-empty{min-height:235px;color:var(--study-muted);background:radial-gradient(at 50% 40%,#2f2520,#171411 70%);place-content:center;justify-items:center;gap:14px;display:grid}.watch-empty-icon{width:58px;height:58px;color:var(--study-accent);background:#3b2b24;border:1px solid #73574a;border-radius:50%;place-items:center;display:grid}.study-app .adaptive-player-empty p,.study-app .adaptive-watch-main>p{margin:0}.adaptive-watch-panel,.adaptive-transcript{background:var(--watch-panel);border:1px solid var(--study-line);border-radius:11px;padding:16px}.study-app :is(.adaptive-watch-panel,.adaptive-transcript) h2{margin:0;font:600 1.1rem/1.3 system-ui,sans-serif}.adaptive-watch-panel details>:not(summary){margin-top:8px}.adaptive-watch-panel summary{cursor:pointer}.save-video-form{justify-items:start;gap:8px;display:grid}.save-video-form label{width:100%}.watch-caption-stage{margin-bottom:4px}.watch-timeline{height:30px;position:relative;overflow:clip}.watch-timeline-track{position:absolute;inset:0}.watch-timeline[data-playing=true] .watch-timeline-track{will-change:transform}.watch-timeline button{background:0 0;border:0;border-radius:6px;padding:0;position:absolute;inset-block:0}.watch-timeline button:enabled{cursor:pointer}.watch-timeline button:before{content:"";background:#70635a;border-radius:999px;position:absolute;inset:10px min(2px,8%)}.watch-timeline button[aria-current=true]:before{background:#bc8c78}.watch-timeline button:enabled:is(:hover,:focus-visible):before{background:var(--study-accent)}.watch-timeline-playhead{background:var(--study-accent);pointer-events:none;border-radius:2px;width:3px;position:absolute;inset:5px auto 5px 50%;transform:translate(-50%)}.watch-volume-controls{color:#fff;align-items:center;gap:3px;margin-inline-start:auto;font-size:.75rem;line-height:1.2;display:flex}.watch-player-controls .watch-volume-controls .watch-toolbar-button{min-width:32px;min-height:32px;color:inherit;padding:0}.watch-player-controls .watch-volume-controls button:hover{background:#ffffff26}.watch-volume-controls input{width:clamp(2.75rem,8vw,6rem);accent-color:var(--study-accent);margin:0}@media (max-width:420px){.watch-player-controls media-pip-button{display:none}.watch-volume-controls span{max-width:4.25rem}}.adaptive-current{border-block:1px solid var(--study-line);background:var(--watch-panel);grid-template-columns:123px minmax(0,1fr) 123px;align-items:center;gap:10px;min-height:140px;padding:12px;display:grid}.watch-caption-controls{justify-content:center;align-items:center;gap:2px;display:flex}.watch-caption-controls button{width:38px;height:38px;color:var(--study-muted);background:0 0;border:1px solid #0000;border-radius:9px;place-items:center;padding:0;display:grid}.watch-caption-controls .watch-replay{color:var(--study-accent);background:var(--study-soft);border-color:#705141}.watch-caption-controls button:enabled:hover{color:var(--study-ink);background:#4a352b;border-color:#8c6856}.watch-caption-body{text-align:center}.study-app .adaptive-current p,.study-app .adaptive-transcript-line p{overflow-wrap:anywhere;margin:0}.watch-caption-original{font-size:clamp(1.42rem,3vw,2.15rem);font-weight:500;line-height:1.34}button.watch-word{max-width:100%;color:inherit;font:inherit;text-align:inherit;cursor:pointer;background:0 0;border:0;border-radius:3px;padding:0;display:inline}.watch-word:hover,.watch-word:focus-visible{background:var(--study-soft);color:var(--study-accent);text-underline-offset:.12em;text-decoration:underline}.watch-word-definition[popover]{background:var(--watch-panel);width:min(19rem,100vw - 16px);max-height:calc(100dvh - 16px);color:var(--study-ink);border:1px solid #72574b;border-radius:10px;margin:0;padding:10px 12px;position:fixed;inset:auto;overflow:auto;box-shadow:0 8px 30px #0007}.watch-definition-header,.watch-definition-actions{align-items:center;gap:6px;display:flex}.watch-definition-header{justify-content:space-between}.study-app .watch-word-definition p{margin:4px 0}.watch-definition-actions{flex-wrap:wrap;margin-top:10px}.watch-word-definition button{border:1px solid var(--study-line);background:var(--watch-field);color:var(--study-ink);font:inherit;border-radius:6px;align-items:center;gap:5px;padding:5px 7px;font-size:.78rem;display:inline-flex}.watch-word-definition button:hover{background:var(--study-soft);color:var(--study-accent)}.adaptive-watch-main:fullscreen{--watch-fullscreen-controls-height:190px;background:#0d0c0b;flex-direction:column;align-items:center;padding:8px;display:flex;overflow:auto}.adaptive-watch-main:fullscreen:has(.watch-youtube-controls){--watch-fullscreen-controls-height:236px}.adaptive-watch-main:fullscreen:not(:has(.watch-caption-stage)){--watch-fullscreen-controls-height:65px}.adaptive-watch-main:fullscreen .watch-player-stack,.adaptive-watch-main:fullscreen .watch-caption-stage{width:min(100%, max(200px, calc((100dvh - var(--watch-fullscreen-controls-height)) * 16 / 9)));flex:none}.adaptive-watch-main:fullscreen .watch-player-stack{margin-top:auto}.adaptive-watch-main:fullscreen .watch-caption-stage{margin-bottom:auto}.watch-caption-original ruby{ruby-align:center}.watch-caption-original rt{color:var(--study-accent);font:500 .39em/1.2 system-ui,sans-serif}.watch-caption-waiting{min-height:2em;color:var(--study-muted)}.watch-caption-translation{min-height:1.65em;color:var(--study-muted);font-size:clamp(.98rem,2vw,1.27rem);line-height:1.45}.adaptive-transcript-header{flex-wrap:wrap;justify-content:space-between;margin-bottom:12px}.watch-transcript-heading{justify-content:space-between;width:100%}.watch-transcript-heading .watch-toolbar-button{flex:none;align-self:flex-start}.adaptive-transcript{margin-top:13px;scroll-margin-top:74px}.watch-transcript-scroll{scrollbar-width:none;max-height:max(21rem,100dvh - 17rem);overflow-y:auto}.watch-transcript-scroll::-webkit-scrollbar{display:none}.adaptive-transcript-line{border-top:1px solid var(--study-line);grid-template-columns:1.75rem minmax(0,1fr);gap:10px;padding:8px 6px;display:grid}.adaptive-transcript-line[data-current=true]{background:var(--study-soft)}.adaptive-transcript-line .adaptive-row{gap:6px;margin-top:5px}.watch-transcript-replay{width:28px;height:28px;color:var(--study-muted);background:0 0;border:0;border-radius:5px;align-self:start;place-items:center;padding:0;display:grid}.watch-transcript-replay:enabled:hover{background:var(--study-soft);color:var(--study-accent);cursor:pointer}.is-watch :is(.adaptive-dialog,.app-button.secondary){border-color:var(--study-line);background:var(--watch-panel)}.is-watch .app-button.secondary:hover{background:var(--study-soft)}.is-watch :is(.adaptive-settings select,.adaptive-hsk select,.adaptive-transcript select,.adaptive-watch-panel input:not([type=checkbox]):not([type=range])){background:var(--watch-field);color:var(--study-ink)}.study-app.is-watch .adaptive-note{color:var(--study-muted)}.study-app.is-watch button.adaptive-inline-button{border-color:var(--study-line);background:var(--watch-field);color:var(--study-accent)}.study-app.is-watch :is(.watch-toolbar-button,.watch-caption-controls button,.watch-word,.watch-transcript-scroll,.watch-transcript-replay,.watch-timeline button):focus-visible{outline:2px solid var(--study-accent);outline-offset:2px}.study-app.is-watch .watch-timeline button:focus-visible{outline-offset:-3px}@media (max-width:820px){.adaptive-watch[data-has-source=false]{grid-template-columns:minmax(0,1fr)}.adaptive-current{grid-template-columns:1fr 1fr;gap:4px;min-height:0;padding:8px}.watch-caption-controls{justify-content:flex-start}.watch-study-controls{justify-content:flex-end}.watch-caption-body{grid-area:1/1/auto/-1}}@media (max-width:570px){.watch-header{gap:6px}.watch-header-actions{gap:2px}.watch-header-actions .watch-toolbar-button span{display:none}.watch-toolbar-button{padding-inline:7px}}.adaptive-hsk{align-items:center;gap:10px;display:flex}.adaptive-hsk select{border:1px solid var(--study-line);color:inherit;background:#fff;border-radius:7px;padding:5px 8px}.dictionary-reading+.dictionary-reading{margin-top:.75rem}.dictionary-reading .reader-pinyin{margin:.25rem 0}.dictionary-reading ol{margin-block:.4rem;padding-inline-start:1.25rem}.dictionary-reading li+li{margin-top:.35rem}.dictionary-more{color:inherit;cursor:pointer;background:0 0;border:0;margin-inline-end:.75rem;padding:0;font-size:.75rem;text-decoration:underline}.watch-word-definition{max-height:min(55vh,24rem);overflow-y:auto}
.study-frame{--rail-width:12rem;--rail-bg:#27211d;--rail-text:#dfd5cc;--rail-line:#433830;--study-bar-height:3.75rem;--workspace-gutter:clamp(1.25rem, 4vw, 3.5rem);--study-bg:#f8f6f2;--study-line:#e7ded5;--study-ink:#2b2520;--study-muted:#655c54;--study-accent:#9e472e;--study-soft:#f2e5dd;grid-template-columns:var(--rail-width) minmax(0, 1fr);font-family:system-ui,sans-serif;display:grid}.study-frame[data-collapsed=true]{--rail-width:4.25rem}.study-sidebar{z-index:20;background:var(--rail-bg);height:100dvh;color:var(--rail-text);flex-direction:column;align-self:start;gap:1.25rem;padding:0 .625rem .75rem;display:flex;position:sticky;top:0;overflow:auto}.study-sidebar-brand{min-height:var(--study-bar-height);border-bottom:1px solid var(--rail-line);flex-shrink:0;align-items:center;gap:.1875rem;display:flex}.study-brand{white-space:nowrap;letter-spacing:-.03em;flex:1;align-items:center;gap:.4375rem;font:1.115rem Georgia,serif;display:flex}.brand-symbol{color:#ffc0a7;background:#503529;border-radius:.375rem;flex:none;place-items:center;width:2.125rem;height:2.125rem;display:grid}.rail-toggle,.rail-mobile-close{min-width:1.875rem;min-height:2rem;color:inherit;background:0 0;border:0;border-radius:.375rem;place-items:center;padding:0;display:grid}.rail-mobile-close{display:none}.study-sidebar nav{gap:.25rem;display:grid}.study-sidebar nav a{border-radius:.4375rem;align-items:center;gap:.6875rem;min-height:2.75rem;padding:.5rem .75rem;font-size:.875rem;font-weight:500;display:flex}.study-sidebar nav a svg{flex:none}.study-sidebar nav a:hover,.rail-toggle:hover,.rail-mobile-close:hover{background:var(--rail-line)}.study-sidebar nav a.active{color:#ffe1d3;background:#51382c;box-shadow:inset 3px 0 #e79d80}.sidebar-utilities{border-top:1px solid var(--rail-line);padding-top:.75rem}.study-frame[data-collapsed=true] .study-sidebar-brand{flex-direction:column;gap:.375rem;padding-block:.6875rem}.study-frame[data-collapsed=true] .study-sidebar :is(.brand-name,nav a span){clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.study-frame[data-collapsed=true] .study-sidebar nav a{justify-content:center;padding-inline:.375rem}.study-workspace{flex-direction:column;min-width:0;display:flex}.study-topbar{z-index:5;min-height:var(--study-bar-height);padding-inline:var(--workspace-gutter);border-bottom:1px solid var(--study-line);background:#fffdfa;justify-content:space-between;align-items:center;gap:1rem;display:flex;position:sticky;top:0}.study-context{font-weight:650}.study-section-tabs,.study-filter-tabs{align-items:stretch;gap:.25rem;display:flex}.study-section-tabs a,.study-app .study-filter-tabs button{min-height:2.375rem;color:var(--study-muted);white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:.375rem;justify-content:center;align-items:center;gap:.4375rem;padding:.4375rem .75rem;font-size:.875rem;font-weight:550;display:inline-flex}.study-section-tabs a:hover,.study-app .study-filter-tabs button:hover{color:var(--study-ink);background:#f4ede7}.study-section-tabs a[aria-current],.study-app .study-filter-tabs button[aria-pressed=true]{color:var(--study-accent);background:var(--study-soft);font-weight:700}.study-account{flex-shrink:0;margin-left:auto}.account-menu{position:relative}.account-chip{cursor:pointer;color:var(--study-muted);border-radius:.375rem;align-items:center;gap:.5rem;padding:.25rem;font-size:.8125rem;list-style:none;display:flex}.account-chip::-webkit-details-marker{display:none}.account-chip:hover{background:var(--study-soft)}.account-chip>span:first-child{background:var(--study-soft);width:2rem;height:2rem;color:var(--study-accent);border-radius:50%;place-items:center;font-weight:700;display:grid}.account-email{text-overflow:ellipsis;white-space:nowrap;max-width:13rem;overflow:hidden}.account-menu-panel{border:1px solid var(--study-line);width:max-content;max-width:min(19rem,100vw - 2rem);color:var(--study-ink);background:#fffdfa;border-radius:.5rem;padding:.75rem;position:absolute;inset:calc(100% + .5rem) 0 auto auto;box-shadow:0 10px 30px #25201920}.study-app .account-menu-panel p{overflow-wrap:anywhere;margin:0 0 .5rem;font-size:.875rem}.account-menu-panel button{background:var(--study-soft);width:100%;color:var(--study-ink);border:0;border-radius:.3rem;align-items:center;gap:.5rem;padding:.5rem;display:flex}.study-content{width:100%;max-width:88rem;padding:clamp(1.5rem, 4vw, 3.5rem) var(--workspace-gutter) 4rem;flex:1;min-width:0;margin:0 auto}.study-content:focus{outline:none}.study-heading h1{margin-top:0}.study-footer{min-height:0;padding:1rem var(--workspace-gutter);border-color:var(--study-line);flex-flow:wrap;justify-content:flex-end;gap:1rem}.study-footer a:hover{text-decoration:underline}.mobile-menu,.sidebar-scrim{display:none}.skip-link{z-index:50;background:#fff;border-radius:.375rem;padding:.75rem;position:fixed;inset:-100px auto auto 1rem;color:#2b2520!important}.skip-link:focus{top:.75rem}.welcome-panel{text-align:center;justify-items:center;width:min(100%,32rem);margin:clamp(3rem,12vh,8rem) auto 0;display:grid}.welcome-panel .empty-symbol{margin-bottom:.75rem}.study-app .welcome-panel p{max-width:31ch;color:var(--study-muted);margin:0 auto 1.5rem}.study-app .welcome-panel h1{margin-bottom:.75rem}.home-hero{color:#fff4e9;background:#2d221d;border-radius:.875rem;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:stretch;display:grid;overflow:hidden}.home-hero-image{object-fit:cover;object-position:50% 65%;width:100%;height:100%;min-height:24rem;display:block}.home-hero-copy{align-self:center;padding:clamp(1.5rem,5vw,4.75rem);padding-inline-start:clamp(1.5rem,4vw,3.5rem)}.home-hero-copy .study-kicker{color:#f0a98a}.study-app .home-hero h1{margin:.75rem 0 1rem;font-size:clamp(2.45rem,4.25vw,4.7rem);line-height:1.04}.study-app .home-hero p{color:#e0cdc0;max-width:32ch;margin-bottom:1.75rem}.home-hero .app-button{background:#a94f34}.home-hero .app-button:hover{background:#924129}.home-features{margin-top:clamp(2.5rem,5vw,4.5rem)}.study-app .home-features h2{font-size:clamp(1.75rem,3vw,2.375rem)}.home-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.875rem;display:grid}.home-feature{border:1px solid var(--study-line);background:#fffdfa;border-radius:.625rem;padding:clamp(1rem,2.1vw,1.5rem);display:block}.home-feature:hover{background:#fffaf6;border-color:#ab725e}.home-feature-icon{width:2.5rem;height:2.5rem;color:var(--study-accent);background:var(--study-soft);border-radius:.5rem;place-items:center;margin-bottom:.875rem;display:grid}.study-app .home-feature p{color:var(--study-muted);margin:.375rem 0 0;font-size:.875rem}.library-browser,.study-index-layout{grid-template-columns:minmax(11rem,15rem) minmax(0,1fr);align-items:start;gap:clamp(1.25rem,3vw,2.25rem);display:grid}.library-filters,.study-index{top:calc(var(--study-bar-height) + 1rem);border:1px solid var(--study-line);background:#fffdfa;border-radius:.625rem;padding:1rem;position:sticky}.library-filters{gap:1rem;display:grid}.library-collection{gap:.5rem;font-size:.875rem;font-weight:650;display:grid}.study-app .library-collection select{width:100%}.library-filters .icon-button[aria-pressed=true]{background:var(--study-soft);color:var(--study-accent);border-color:#d7b3a3}.library-results>.search-input{margin-bottom:1.125rem}.study-app .library-grid.is-list{gap:.625rem}.library-grid.is-list .library-card-link{align-items:center}.library-grid.is-list .library-card-remove{align-self:center}.library-grid.is-list .library-card-icon{flex-basis:4.25rem;height:3.125rem}.study-filter-tabs{border-bottom:1px solid var(--study-line);flex-wrap:wrap;margin-bottom:1rem;padding-bottom:.625rem}.vocabulary-table th{letter-spacing:.035em;font-size:.8125rem}.import-body{grid-template-columns:minmax(0,1fr) minmax(15rem,.42fr);align-items:start;gap:1.25rem;display:grid}.study-app .import-guide h2,.study-app .help-topics h2,.study-app .settings-grid .study-panel h2{margin:0 0 .625rem;font-size:1.45rem}.import-guide p,.help-topics p{color:var(--study-muted)}.study-index{gap:.25rem;padding:.5rem;display:grid}.study-index a{border-radius:.375rem;padding:.55rem .7rem;font-size:.875rem;font-weight:550}.study-index a:hover{background:var(--study-soft);color:var(--study-accent)}.study-index-layout .study-panel[id]{scroll-margin-top:calc(var(--study-bar-height) + 1rem)}.help-topics,.settings-grid{grid-template-columns:minmax(0,1fr);gap:1rem;display:grid}.study-index-layout>:is(form,article){max-width:48rem}.help-topics p:last-child{margin-bottom:0}.study-app .help-topics a{color:var(--study-accent);text-underline-offset:.125rem;text-decoration:underline}.is-watch .study-topbar,.is-watch .account-menu-panel{background:#24201c}.is-watch .study-section-tabs a:hover{background:var(--study-soft)}.is-watch .mobile-menu{background:var(--watch-panel);border-color:var(--study-line);color:var(--study-ink)}.watch-workspace{max-width:none;padding:0}.watch-workspace>:is(.study-loading,.error-panel){color:inherit;padding:1.75rem}.watch-workspace .watch-header{top:var(--study-bar-height)}.watch-workspace .adaptive-watch{gap:1.25rem}.watch-workspace .adaptive-watch[data-has-source=true]:has(.adaptive-transcript){width:min(100% - 2 * var(--watch-gutter), 90rem);grid-template-columns:minmax(0,1fr) minmax(15rem,.425fr)}.watch-workspace .adaptive-transcript{scroll-margin-top:calc(var(--study-bar-height) + 4rem);min-width:0;margin-top:0}.watch-workspace .adaptive-transcript-header{gap:.625rem}.watch-workspace .adaptive-watch-sidebar[popover]{top:calc(var(--study-bar-height) + 4rem);max-height:calc(100dvh - var(--study-bar-height) - 5rem)}.watch-workspace .adaptive-watch[data-has-source=false] .adaptive-watch-sidebar{grid-area:1/2/span 2}@media (max-width:1050px){.home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-email{display:none}.watch-workspace .adaptive-watch[data-has-source]{grid-template-columns:minmax(0,1fr)}.watch-workspace .adaptive-watch[data-has-source=true]:has(.adaptive-transcript){grid-template-columns:minmax(0,1fr)}.watch-workspace .adaptive-watch[data-has-source=false] .adaptive-watch-sidebar{grid-area:auto/1}}@media (max-width:840px){.library-browser,.study-index-layout,.import-body{grid-template-columns:minmax(0,1fr)}.library-filters,.study-index{position:static}.library-filters{grid-template-columns:minmax(0,1fr) auto;align-items:end}.study-index{flex-wrap:wrap;display:flex}}@media (max-width:740px){.study-frame{--workspace-gutter:1rem;display:block}.study-sidebar{visibility:hidden;width:min(17rem,100vw - 3rem);transition:transform .2s,visibility .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.study-sidebar.is-open{visibility:visible;transform:none}.study-frame[data-collapsed=true] .study-sidebar-brand{flex-direction:row;padding-block:0}.study-frame[data-collapsed=true] .study-sidebar :is(.brand-name,nav a span){clip-path:none;width:auto;height:auto;position:static;overflow:visible}.study-frame[data-collapsed=true] .study-sidebar nav a{justify-content:flex-start;padding-inline:.75rem}.study-workspace{min-height:100dvh}.rail-toggle{display:none}.rail-mobile-close{display:grid}.mobile-menu{flex:none;display:inline-flex}.sidebar-scrim{z-index:19;background:#17120fc0;border:0;display:block;position:fixed;inset:0}.study-topbar{gap:.375rem}.study-section-tabs{gap:0;min-width:0}.study-section-tabs a{padding-inline:.4375rem}.study-section-tabs svg{display:none}.study-app .study-topbar .app-button.small{padding-inline:.5rem}.study-heading{flex-wrap:wrap}.import-layout .tabs{margin-bottom:1rem}.import-layout .tabs button{padding-inline:.625rem}.import-body>.study-panel{padding:1rem}.home-hero{grid-template-columns:minmax(0,1fr)}.home-hero-image{aspect-ratio:16/10;height:auto;min-height:0;max-height:20rem}}@media (max-width:375px){.study-topbar{padding-inline:.5rem}.home-feature-grid{grid-template-columns:minmax(0,1fr)}}
