/* Quiet desktop composition: original components, bounded reading widths and decorative margins. */
.desktop-margin-ring{display:none}
@media(min-width:900px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]).active{max-width:880px!important;width:calc(100% - 100px)!important;margin:36px auto 0;padding-top:16px!important;min-height:650px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.view-orbits{display:none}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.desktop-margin-ring{display:block;position:fixed;z-index:-1;opacity:.36;animation:none;pointer-events:none}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-one{width:220px;height:220px;right:-105px;top:120px;border-width:14px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-two{width:145px;height:145px;left:-65px;right:auto;top:auto;bottom:150px;border-width:11px;opacity:.26}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy{margin-bottom:32px}
body[data-theme="dark"] #reviewHub{max-width:800px;margin:44px auto;gap:24px!important}
body[data-theme="dark"] #reviewHub .review-cover{min-height:160px;padding:22px 18px}
body[data-theme="dark"] #reviewHub .cover-copy strong{font-size:24px!important}
body[data-theme="dark"] #reviewHub .cover-copy small,body[data-theme="dark"] #reviewHub .cover-copy em{font-size:14px!important;line-height:1.6}
body[data-theme="dark"] #reviewHub .cover-number{font-size:38px!important}
body[data-theme="dark"] #reviewHub .cover-badge{font-size:13px!important}
body[data-theme="dark"] #clueReviewPanel,body[data-theme="dark"] #finalTestPanel{width:min(600px,100%);margin:30px auto}
body[data-theme="dark"] #clueReviewPanel .review-card,body[data-theme="dark"] #finalTestPanel .final-test-card{width:100%;margin:22px auto;padding:28px}
body[data-theme="dark"] #clueReviewPanel .panel-heading h2{font-size:22px!important;line-height:1.5}
body[data-theme="dark"] .review-target-word{font-size:48px!important}
body[data-theme="dark"] #reviewOptions .review-option{min-height:68px}
body[data-theme="dark"] #reviewOptions .review-option-word{font-size:22px!important}
body[data-theme="dark"] #reviewOptions .review-option-letter{font-size:14px!important}
body[data-theme="dark"] #reviewCaption{font-size:14px!important}
body[data-theme="dark"] #wordLibraryPanel{max-width:680px;margin:28px auto}
body[data-theme="dark"] .vocabulary-data-dashboard{max-width:780px;margin:30px auto;grid-template-columns:1fr;gap:24px}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-grid{gap:24px}
body[data-theme="dark"] .archive-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin-top:32px;align-items:start}
body[data-theme="dark"] .archive-dashboard .daily-goal-card{grid-column:1;grid-row:1}
body[data-theme="dark"] .archive-dashboard .learning-card{grid-column:1;grid-row:2}
body[data-theme="dark"] .archive-dashboard .ranking-card{grid-column:2;grid-row:1/3;margin-top:44px}
body[data-theme="dark"] .archive-dashboard .daily-goal-card,body[data-theme="dark"] .archive-dashboard .learning-card,body[data-theme="dark"] .archive-dashboard .ranking-card{padding:22px}
body[data-theme="dark"] .archive-dashboard h3{font-size:20px!important;line-height:1.5}
body[data-theme="dark"] .archive-dashboard .goal-score{font-size:23px!important}
body[data-theme="dark"] .archive-dashboard :is(.goal-progress-copy,.goal-form label,.goal-form small,.podium-name,.ranking-row,.ranking-columns){font-size:14px!important}
body[data-theme="dark"] .archive-dashboard :is(.podium-score,.podium-score small,.podium-step small){font-size:13px!important}
body[data-theme="dark"] .archive-dashboard .podium-step>span{font-size:30px!important}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]) h2{font-size:28px!important}
}
@media(min-width:1600px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]).active{max-width:1000px!important;margin-top:65px}
body[data-theme="dark"] #reviewHub{max-width:880px;margin-top:60px;gap:32px!important}
body[data-theme="dark"] #clueReviewPanel,body[data-theme="dark"] #finalTestPanel{width:700px}
body[data-theme="dark"] #reviewOptions .review-option{min-height:80px}
body[data-theme="dark"] #reviewOptions .review-option-word{font-size:26px!important}
body[data-theme="dark"] #wordLibraryPanel{max-width:760px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-one{right:30px;top:160px;width:300px;height:300px;opacity:.3}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-two{left:30px;bottom:180px;width:180px;height:180px}
}
@media(min-width:900px){
body[data-theme="dark"] .archive-study-stack{display:flex;flex-direction:column;gap:28px;grid-column:1;grid-row:1}
body[data-theme="dark"] .archive-dashboard .ranking-card{grid-row:1;align-self:start;margin-top:36px}
body[data-theme="dark"] .archive-dashboard .ranking-scroll{max-height:180px}
body[data-theme="dark"] .archive-dashboard .learning-card{margin:0}
body[data-theme="dark"] .archive-dashboard .dashboard-heading{flex-wrap:wrap;gap:8px}
}

/* Second composition: study actions above resources, learning evidence before rankings. */
@media(min-width:900px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]).active{max-width:1040px!important;width:calc(100% - 60px)!important;margin-top:22px;padding-bottom:80px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy{padding-bottom:22px;margin-bottom:30px;border-bottom:1px solid #ffffff18}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-one{right:-170px;top:130px;width:300px;height:300px;opacity:.22}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-two{left:-95px;bottom:80px;width:190px;height:190px;opacity:.2}
body[data-theme="dark"] #reviewHub{max-width:none;margin:0;gap:22px!important;grid-template-columns:1fr 1fr}
body[data-theme="dark"] #reviewHub .review-cover{display:grid;grid-template-columns:1fr auto;grid-template-rows:80px auto;align-items:end;min-height:250px;padding:28px 30px;column-gap:12px;--cover-ring-left:auto;--cover-ring-size:118px}
body[data-theme="dark"] #reviewHub .review-cover::after{left:auto;right:22px;top:22px;transform:none;width:118px;height:118px;border-width:12px;opacity:.55}
body[data-theme="dark"] #reviewHub .cover-number{left:30px;top:28px;transform:none;width:auto;height:auto;font-size:30px!important;place-items:start;color:white}
body[data-theme="dark"] #reviewHub .cover-copy{grid-column:1;grid-row:2;align-self:end}
body[data-theme="dark"] #reviewHub .cover-copy strong{font-size:27px!important;line-height:1.3}
body[data-theme="dark"] #reviewHub .cover-copy em{margin-top:10px}
body[data-theme="dark"] #reviewHub .cover-badge{grid-column:2;grid-row:2;align-self:end;position:static;font-size:14px!important}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){min-height:120px;grid-template-columns:48px 1fr auto;grid-template-rows:auto;padding:24px 26px;background:#101110;box-shadow:none;border-color:#ffffff1c}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover)::after{display:none}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-number{position:static;grid-column:1;grid-row:1;align-self:center;font-size:23px!important;color:#ffffff80}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy{grid-column:2;grid-row:1;align-self:center}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy strong{font-size:21px!important}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-badge{grid-column:3;grid-row:1;align-self:center}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy small{display:block}
body[data-theme="dark"] .archive-dashboard{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:28px;margin-top:0}
body[data-theme="dark"] .archive-study-stack{gap:24px}
body[data-theme="dark"] .archive-dashboard .ranking-card{margin-top:0;padding:24px;grid-column:2}
body[data-theme="dark"] .archive-dashboard .daily-goal-card{padding:26px;background:#121311}
body[data-theme="dark"] .archive-dashboard .learning-card{padding:26px;background:#121311}
body[data-theme="dark"] .archive-dashboard .goal-score{font-size:26px!important;white-space:nowrap}
body[data-theme="dark"] .archive-dashboard .goal-form{display:grid;grid-template-columns:1fr 180px;align-items:center;gap:6px 20px;padding-top:16px;margin-top:16px;border-top:1px solid #ffffff15}
body[data-theme="dark"] .archive-dashboard .goal-form>div{grid-column:2;grid-row:1/3}
body[data-theme="dark"] .archive-dashboard .goal-form small{grid-column:1;font-size:11px!important}
body[data-theme="dark"] .archive-dashboard .learning-chart svg{height:190px}
body[data-theme="dark"] .archive-dashboard .ranking-podium{padding:24px 0 0;margin-bottom:16px;gap:6px}
body[data-theme="dark"] .archive-dashboard .ranking-scroll{max-height:220px}
body[data-theme="dark"] .archive-dashboard .podium-name{font-size:12px!important}
body[data-theme="dark"] #wordLibraryPanel{max-width:820px;margin:24px auto}
body[data-theme="dark"] .vocabulary-data-dashboard{max-width:none;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:24px;margin-top:0}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-grid{grid-column:1/-1}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-input-data{grid-column:1/-1}
}
@media(min-width:1600px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]).active{max-width:1180px!important;margin-top:48px}
body[data-theme="dark"] #reviewHub{max-width:1040px;margin:0 auto;gap:28px!important}
body[data-theme="dark"] #reviewHub .review-cover{min-height:280px}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){min-height:130px}
}
@media(min-width:900px){
body[data-theme="dark"] #reviewHub{grid-template-rows:250px 140px;grid-auto-rows:auto}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){height:140px}
body[data-theme="dark"] .archive-dashboard .ranking-scroll{max-height:145px}
body[data-theme="dark"] #clueReviewPanel{width:min(780px,100%)}
body[data-theme="dark"] #clueReviewPanel .review-card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px 32px;align-items:center;padding:32px}
body[data-theme="dark"] #reviewCaption{grid-column:1/-1;margin:0}
body[data-theme="dark"] #reviewClues{grid-column:1;grid-row:2;margin:0;justify-content:center}
body[data-theme="dark"] #reviewOptions{grid-column:2;grid-row:2;margin:0}
body[data-theme="dark"] #reviewFeedback,body[data-theme="dark"] #nextReviewButton{grid-column:1/-1}
}
@media(min-width:1600px){body[data-theme="dark"] #reviewHub{grid-template-rows:280px 150px}body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){height:150px}}

/* Frameless desktop edition: typography, alignment and whitespace establish hierarchy. */
@media(min-width:900px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]).active{max-width:1040px!important;margin-top:38px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy{border:0;padding-bottom:12px;margin-bottom:44px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy h2{font-size:34px!important;letter-spacing:-.04em}
body[data-theme="dark"] #reviewHub{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:0 70px!important;margin:0}
body[data-theme="dark"] #reviewHub .review-cover{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0;min-height:220px;height:auto;padding:24px 0 32px;grid-template-columns:1fr auto;grid-template-rows:42px auto;overflow:visible;transform:none}
body[data-theme="dark"] #reviewHub .review-cover::before,body[data-theme="dark"] #reviewHub .review-cover::after{display:none!important}
body[data-theme="dark"] #reviewHub .cover-number{position:static;grid-column:1;grid-row:1;font-size:17px!important;color:#ffbd45;align-self:start;letter-spacing:.1em}
body[data-theme="dark"] #reviewHub .cover-copy{grid-column:1;grid-row:2;align-self:start}
body[data-theme="dark"] #reviewHub .cover-copy small{font-size:13px!important;letter-spacing:.08em;color:#a5a29b}
body[data-theme="dark"] #reviewHub .cover-copy strong{font-size:34px!important;margin-top:12px;line-height:1.25;font-weight:650}
body[data-theme="dark"] #reviewHub .cover-copy em{font-size:14px!important;margin-top:14px;color:#a5a29b}
body[data-theme="dark"] #reviewHub .cover-badge{border:0;background:transparent;box-shadow:none;padding:0;grid-column:2;grid-row:1;align-self:start;color:#ffbd45;font-size:16px!important}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){border-top:1px solid #ffffff26!important;min-height:180px;height:auto;padding-top:28px;grid-template-columns:1fr auto;grid-template-rows:32px auto}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-number{grid-column:1;grid-row:1;align-self:start;color:#a5a29b;font-size:14px!important}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy{grid-column:1;grid-row:2;align-self:start}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy strong{font-size:26px!important;margin-top:10px}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-badge{grid-column:2;grid-row:1;align-self:start}
body[data-theme="dark"] #reviewHub .review-cover:hover .cover-copy strong{color:#ffd060}
body[data-theme="dark"] #reviewHub .review-cover:focus-visible{outline:2px solid #ffd060;outline-offset:10px}
body[data-theme="dark"] .archive-dashboard{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:64px}
body[data-theme="dark"] .archive-study-stack{gap:38px}
body[data-theme="dark"] .archive-dashboard :is(.daily-goal-card,.learning-card,.ranking-card){padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body[data-theme="dark"] .archive-dashboard :is(.daily-goal-card,.learning-card,.ranking-card)::before,body[data-theme="dark"] .archive-dashboard :is(.daily-goal-card,.learning-card,.ranking-card)::after{display:none!important}
body[data-theme="dark"] .archive-dashboard .ranking-card{padding-left:30px!important;border-left:1px solid #ffffff20!important}
body[data-theme="dark"] .archive-dashboard .dashboard-heading{align-items:start;gap:18px}
body[data-theme="dark"] .archive-dashboard .daily-goal-card .dashboard-heading{flex-direction:column}
body[data-theme="dark"] .archive-dashboard .goal-score{font-size:48px!important;letter-spacing:-.04em;line-height:1.15}
body[data-theme="dark"] .archive-dashboard .goal-score small{font-size:14px!important;letter-spacing:0}
body[data-theme="dark"] .archive-dashboard .goal-progress{height:5px;margin-top:22px}
body[data-theme="dark"] .archive-dashboard h3{font-size:19px!important;font-weight:550}
body[data-theme="dark"] .archive-dashboard .learning-chart svg{height:170px}
body[data-theme="dark"] .archive-dashboard .ranking-podium{padding-top:24px}
body[data-theme="dark"] .archive-dashboard .ranking-row{border-radius:0;background:transparent;box-shadow:none;border-bottom:1px solid #ffffff10}
body[data-theme="dark"] .archive-dashboard .ranking-scroll{max-height:180px}
body[data-theme="dark"] #clueReviewPanel .review-card,body[data-theme="dark"] #finalTestPanel .final-test-card,body[data-theme="dark"] .vocabulary-data-dashboard :is(.vocabulary-summary-card,.vocabulary-data-card),body[data-theme="dark"] .vocabulary-input-data>section{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
body[data-theme="dark"] #clueReviewPanel .review-card::before,body[data-theme="dark"] #clueReviewPanel .review-card::after,body[data-theme="dark"] #finalTestPanel .final-test-card::before,body[data-theme="dark"] #finalTestPanel .final-test-card::after{display:none!important}
body[data-theme="dark"] #clueReviewPanel{width:min(880px,100%);margin-top:8px}
body[data-theme="dark"] #clueReviewPanel .review-card{position:relative;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:12px 60px;padding:24px 0}
body[data-theme="dark"] #reviewCaption{grid-column:1!important;grid-row:1!important;align-self:start!important;justify-self:start!important;margin:0!important;transform:none}
body[data-theme="dark"] #reviewClues{position:static!important;display:flex!important;width:240px;grid-column:1!important;grid-row:3!important;align-self:center!important;align-items:center!important;justify-content:center!important;margin:0!important;transform:none!important}
body[data-theme="dark"] #reviewOptions{display:contents!important;margin:0!important;padding:0!important}
body[data-theme="dark"] #reviewOptions > :nth-child(1){grid-column:2;grid-row:2}
body[data-theme="dark"] #reviewOptions > :nth-child(2){grid-column:2;grid-row:3}
body[data-theme="dark"] #reviewOptions > :nth-child(3){grid-column:2;grid-row:4}
body[data-theme="dark"] #reviewOptions .review-option{border:0;border-bottom:1px solid #ffffff26;border-radius:0;background:transparent;box-shadow:none;min-height:78px}
body[data-theme="dark"] #reviewOptions .review-option:hover{background:#ffffff08}
body[data-theme="dark"] #reviewOptions .review-option:focus-visible{outline:2px solid #ffd060}
body[data-theme="dark"] #wordLibraryPanel{max-width:none}
body[data-theme="dark"] .vocabulary-data-dashboard{gap:36px 48px}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card{padding:0 0 28px;border-bottom:1px solid #ffffff26!important}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-data-card{padding:0}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-one{opacity:.15;right:-220px;top:170px;width:360px;height:360px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.auth-orbit-two{opacity:.14;left:-130px;bottom:70px;width:220px;height:220px}
}
@media(min-width:900px){
body[data-theme="dark"] #reviewOptions .review-option.correct{border-color:#9d69ff;background:#211631;color:#c8a9ff}
body[data-theme="dark"] #reviewOptions .review-option.wrong{border-color:#8e3d43;background:#2b1316;color:#ff858c}
body[data-theme="dark"] .view[data-view="archive"]>.auth-orbit-one{opacity:.08}
}
@media(min-width:900px){
body[data-theme="dark"] #alphabetGrid{grid-template-columns:repeat(13,minmax(0,1fr));gap:4px;margin:24px 0 32px}
body[data-theme="dark"] #alphabetGrid button{aspect-ratio:auto;min-height:44px;border:1px solid #62615d;border-radius:9px;background:#171715;box-shadow:none;font-size:16px!important}
body[data-theme="dark"] #alphabetGrid button.active{color:#ffd060;border:2px solid #ffd060;background:#352406}
body[data-theme="dark"] #alphabetGrid button:disabled{border-color:#3b3b38;background:#101110}
body[data-theme="dark"] #alphabetGrid button:focus-visible{outline:2px solid #ffd060;outline-offset:2px}
body[data-theme="dark"] #wordLibraryPanel .library-word-row{border:0;border-bottom:1px solid #ffffff20;border-radius:0;background:transparent;box-shadow:none;padding:15px 0}
}

/* Typography and functional boundaries; preserve the frameless composition. */
@media(min-width:900px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]){--desktop-rule:rgba(255,255,255,.16)}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy{border-bottom:1px solid var(--desktop-rule);padding-bottom:24px;margin-bottom:32px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy h2{font-size:32px!important;line-height:1.3;font-weight:650;letter-spacing:-.025em}
body[data-theme="dark"] #reviewHub .cover-copy strong{font-size:32px!important;font-weight:600;letter-spacing:-.02em}
body[data-theme="dark"] #reviewHub .cover-copy small{font-size:14px!important;line-height:1.5;color:#b8b5ad}
body[data-theme="dark"] #reviewHub .cover-copy em{font-size:15px!important;line-height:1.7;color:#b8b5ad}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy strong{font-size:25px!important;font-weight:600}
body[data-theme="dark"] #reviewHub .cover-badge{font-size:16px!important;font-weight:550;line-height:1.5;font-variant-numeric:tabular-nums}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){border-top-color:var(--desktop-rule)!important}
body[data-theme="dark"] .archive-dashboard h3{font-size:20px!important;line-height:1.5;font-weight:600}
body[data-theme="dark"] .archive-dashboard .goal-score{font-size:46px!important;font-weight:650;font-variant-numeric:tabular-nums}
body[data-theme="dark"] .archive-dashboard :is(.goal-progress-copy,.goal-form label,.ranking-row,.ranking-columns){font-size:15px!important;line-height:1.6}
body[data-theme="dark"] .archive-dashboard .goal-form small{font-size:12px!important;line-height:1.6;color:#aaa79f}
body[data-theme="dark"] .archive-dashboard .learning-card{border-top:1px solid var(--desktop-rule)!important;padding-top:26px!important}
body[data-theme="dark"] .archive-dashboard .ranking-card{border-left-color:var(--desktop-rule)!important}
body[data-theme="dark"] .archive-dashboard .ranking-columns{padding-bottom:10px;border-bottom:1px solid var(--desktop-rule);color:#aaa79f}
body[data-theme="dark"] .archive-dashboard .podium-name{font-size:14px!important}
body[data-theme="dark"] .archive-dashboard .goal-form input{border:1px solid #ffffff40;box-shadow:none;border-radius:8px;font-size:17px!important;min-height:42px}
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"]) input:focus-visible{outline:2px solid #e8b24d;outline-offset:3px}
body[data-theme="dark"] #clueReviewPanel .panel-heading h2{font-size:22px!important;line-height:1.6;font-weight:550}
body[data-theme="dark"] #reviewCaption{font-size:15px!important;line-height:1.6;color:#b8b5ad}
body[data-theme="dark"] #reviewOptions .review-option{border-bottom-color:#ffffff35;padding:16px;min-height:78px}
body[data-theme="dark"] #reviewOptions .review-option-word{font-size:24px!important;font-weight:550;line-height:1.4}
body[data-theme="dark"] #reviewOptions .review-option:hover:not(:disabled){background:#ffffff09;border-bottom-color:#e8b24d}
body[data-theme="dark"] #finalTestPanel .meaning-form input,body[data-theme="dark"] #wordLibraryPanel .library-search input{border:1px solid #ffffff38;border-radius:8px;box-shadow:none;min-height:48px;font-size:18px!important}
body[data-theme="dark"] #wordLibraryPanel .library-word-row{border-bottom-color:var(--desktop-rule)}
body[data-theme="dark"] #wordLibraryPanel .library-word-main strong{font-size:23px!important;font-weight:600;line-height:1.5}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card>span{font-size:16px!important;color:#b8b5ad}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card>strong{font-size:40px!important;line-height:1.3;font-weight:600}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card>small{font-size:14px!important;line-height:1.6;color:#aaa79f}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-data-heading h3{font-size:22px!important;line-height:1.4}
}
/* Larger readable type for the two desktop sections. */
@media(min-width:900px){
body[data-theme="dark"] .view:is([data-view="review"],[data-view="archive"])>.progress-copy h2{font-size:38px!important}
body[data-theme="dark"] #reviewHub .cover-copy strong{font-size:38px!important}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy strong{font-size:30px!important}
body[data-theme="dark"] #reviewHub .cover-copy small{font-size:17px!important}
body[data-theme="dark"] #reviewHub .cover-copy em{font-size:18px!important;line-height:1.6}
body[data-theme="dark"] #reviewHub .cover-badge{font-size:19px!important}
body[data-theme="dark"] #reviewHub .cover-number{font-size:20px!important}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-number{font-size:18px!important}
body[data-theme="dark"] .archive-dashboard{grid-template-columns:minmax(0,1.4fr) minmax(340px,1fr);gap:44px}
body[data-theme="dark"] .archive-dashboard h3{font-size:24px!important}
body[data-theme="dark"] .archive-dashboard .goal-score{font-size:54px!important}
body[data-theme="dark"] .archive-dashboard .goal-score small{font-size:17px!important}
body[data-theme="dark"] .archive-dashboard :is(.goal-progress-copy,.goal-form label,.ranking-row){font-size:18px!important}
body[data-theme="dark"] .archive-dashboard .goal-form small{font-size:14px!important}
body[data-theme="dark"] .archive-dashboard .goal-form{grid-template-columns:1fr 165px;gap:8px 12px}
body[data-theme="dark"] .archive-dashboard .goal-form input{font-size:20px!important}
body[data-theme="dark"] .archive-dashboard .ranking-columns{font-size:15px!important;white-space:nowrap}
body[data-theme="dark"] .archive-dashboard :is(.ranking-columns,.ranking-row){grid-template-columns:34px 34px minmax(0,1fr) auto;gap:7px}
body[data-theme="dark"] .archive-dashboard .podium-name{font-size:17px!important}
body[data-theme="dark"] .archive-dashboard :is(.podium-score,.podium-score small,.podium-step small){font-size:15px!important}
body[data-theme="dark"] .archive-dashboard :is(.curve-total,.my-rank){font-size:17px!important}
body[data-theme="dark"] #clueReviewPanel .panel-heading h2{font-size:26px!important}
body[data-theme="dark"] #reviewCaption{font-size:18px!important}
body[data-theme="dark"] #reviewOptions .review-option-word{font-size:36px!important}
body[data-theme="dark"] #reviewOptions .review-option-letter{width:40px;height:40px;font-size:18px!important}
body[data-theme="dark"] .review-target-word{font-size:56px!important}
body[data-theme="dark"] #wordLibraryPanel .library-word-main strong{font-size:27px!important}
body[data-theme="dark"] #alphabetGrid button{font-size:19px!important}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card>span{font-size:19px!important}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card>strong{font-size:48px!important}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-card>small{font-size:17px!important}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-data-heading h3{font-size:26px!important}
}
/* Review hub: distinct warm title outlines, no numeric ornaments. */
@media(min-width:900px){
body[data-theme="dark"] #reviewHub .cover-number{display:none!important}
body[data-theme="dark"] #reviewHub .review-cover{grid-template-rows:auto;min-height:235px;padding:26px 0 32px}
body[data-theme="dark"] #reviewHub .cover-copy,body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy{grid-row:1;grid-column:1;align-self:start;align-items:flex-start}
body[data-theme="dark"] #reviewHub .cover-badge,body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-badge{grid-row:1;grid-column:2;align-self:start}
body[data-theme="dark"] #reviewHub .clue-cover{--title-accent:#ffd45a}
body[data-theme="dark"] #reviewHub .final-cover{--title-accent:#ff9e42}
body[data-theme="dark"] #reviewHub .library-cover{--title-accent:#ff7568}
body[data-theme="dark"] #reviewHub .data-cover{--title-accent:#ff7398}
body[data-theme="dark"] #reviewHub .cover-copy strong,body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover) .cover-copy strong{border:1.5px solid var(--title-accent);border-radius:12px;padding:10px 18px;margin:14px 0 0;background:color-mix(in srgb,var(--title-accent) 7%,transparent);color:#fff;line-height:1.35}
body[data-theme="dark"] #reviewHub .cover-copy small{font-size:21px!important;line-height:1.5}
body[data-theme="dark"] #reviewHub .cover-copy em{font-size:22px!important;line-height:1.55;margin-top:18px}
body[data-theme="dark"] #reviewHub :is(.library-cover,.data-cover){grid-template-rows:auto;min-height:225px;height:auto}
body[data-theme="dark"] #reviewHub .review-cover:hover .cover-copy strong{border-color:var(--title-accent);color:#fff;background:color-mix(in srgb,var(--title-accent) 15%,transparent)}
}
/* Desktop welcome: spacious brand column and a focused account panel. */
@media(min-width:900px){
body .auth-shell{width:min(1140px,calc(100% - 100px));min-height:100dvh;grid-template-columns:minmax(0,1fr) 450px;gap:100px;align-content:center;align-items:center;padding:48px 0}
body .auth-brand{position:relative;align-self:center;margin:0;padding:0;display:grid;grid-template-columns:72px 1fr;gap:24px;align-items:center}
body .auth-brand .auth-logo{width:72px;height:72px;font-size:45px;border-radius:22px}
body .auth-brand>span:nth-child(2){gap:20px}
body .auth-brand b{font-size:64px!important;letter-spacing:.12em;line-height:1.1;font-weight:650}
body .auth-brand small{font-size:23px!important;line-height:1.8;white-space:nowrap;color:#d0c5b3}
body .auth-brand .desktop-version-button{grid-column:2;margin:12px 0 0;justify-self:start;font-size:15px}
body .auth-card{width:100%;padding:36px;border:1px solid #ffffff20;border-radius:26px;background:#0e0f0e;box-shadow:0 24px 90px #0009}
body .auth-heading>span{font-size:12px!important;letter-spacing:.16em}
body .auth-heading h1{font-size:34px!important;line-height:1.35;max-width:320px;margin-top:16px}
body .auth-heading p{font-size:16px!important;line-height:1.8;margin-top:16px}
body .auth-tabs{margin-top:28px}
body .auth-tabs button{font-size:17px!important;min-height:44px}
body .auth-form{gap:18px;margin-top:24px}
body .auth-form label>span{font-size:15px!important}
body .auth-form input{font-size:17px!important;min-height:50px;border-radius:10px}
body .auth-primary{font-size:18px!important;min-height:52px;margin-top:5px}
body .guest-entry{min-height:66px}
body .guest-entry>span{font-size:18px!important}
body .guest-entry small{font-size:13px!important}
body .auth-card .auth-orbit-one{width:160px;height:160px;right:-95px;top:-90px;opacity:.6}
body .auth-card .auth-orbit-two{width:80px;height:80px;right:-47px;top:42px;opacity:.45}
}
body[data-theme="dark"] .archive-dashboard .goal-form[hidden]{display:none!important}
/* Stack analytics and enlarge vocabulary input records. */
@media(min-width:900px){
body[data-theme="dark"] .vocabulary-data-dashboard{grid-template-columns:minmax(0,1fr);gap:36px}
body[data-theme="dark"] .vocabulary-data-dashboard :is(.target-trend-card,.activation-ranking-card,.vocabulary-input-data){grid-column:1}
body[data-theme="dark"] .vocabulary-data-dashboard .vocabulary-summary-grid{grid-column:1}
body[data-theme="dark"] .vocabulary-input-data .input-data-heading h3{font-size:28px!important;line-height:1.4}
body[data-theme="dark"] .vocabulary-input-data .input-data-heading b{font-size:18px!important}
body[data-theme="dark"] .vocabulary-input-data :is(.typo-error-words strong,.typo-error-words span,.typo-correct-result,.new-word-translation){font-size:25px!important;line-height:1.5}
body[data-theme="dark"] .vocabulary-input-data .new-word-data-row small{font-size:21px!important;line-height:1.5}
body[data-theme="dark"] .vocabulary-input-data :is(.typo-comparison>small,.typo-suggestion summary){font-size:17px!important;line-height:1.6}
body[data-theme="dark"] .vocabulary-input-data :is(input,button){font-size:19px!important;min-height:42px}
body[data-theme="dark"] .vocabulary-input-data .typo-confirmation{font-size:19px!important}
body[data-theme="dark"] .vocabulary-input-data .typo-confirmation :is(strong,i){font-size:22px!important}
body[data-theme="dark"] .vocabulary-input-data :is(.typo-data-row,.new-word-data-row){padding:18px 16px;gap:18px}
body[data-theme="dark"] .vocabulary-input-data :is(.typo-correct-answer i,.new-word-matched){font-size:30px!important}
}
@media(min-width:900px){
body[data-theme="dark"] #targetTrendChart{width:min(100%,820px);margin:18px auto 0}
body[data-theme="dark"] #targetTrendChart svg{width:100%;height:auto;min-height:180px;overflow:visible}
}
@media(min-width:900px){
body[data-theme="dark"] #targetTrendChart{width:100%;max-width:none;margin:18px 0 0}
body[data-theme="dark"] #targetTrendChart svg{width:100%;height:auto;min-height:0;overflow:visible}
body[data-theme="dark"] .vocabulary-data-dashboard .activation-ranking-card{width:100%}
}
/* Keep the quiz and its next action above the desktop navigation. */
@media(min-width:900px){
body .progress-copy #targetPronounce{width:40px!important;height:40px!important;min-width:40px;flex:0 0 40px;padding:0;display:grid;place-items:center}
body .progress-copy #targetPronounce svg{width:22px!important;height:22px!important}
body .progress-copy #courseProgress{margin-top:13px!important}
}
body[data-theme="dark"] #reviewOptions .review-add-target{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  padding:0!important;border:0!important;border-radius:50%!important;
  background:#ffb323!important;color:#fff!important;box-shadow:none!important;
  display:grid!important;place-items:center!important;font-size:0!important;line-height:1!important;
}
body[data-theme="dark"] #reviewOptions .review-add-target:not(:disabled)::before,
body[data-theme="dark"] #reviewOptions .review-add-target:not(:disabled)::after{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  background:#111;border-radius:2px;width:19px;height:3px;
}
body[data-theme="dark"] #reviewOptions .review-add-target:not(:disabled)::after{width:3px;height:19px}
body[data-theme="dark"] #reviewOptions .review-add-target:disabled{font-size:20px!important}
@media(min-width:900px){
body[data-theme="dark"] .view[data-view="review"]:has(#clueReviewPanel:not([hidden])){margin-top:0!important;padding-top:0!important}
body[data-theme="dark"] .view[data-view="review"]:has(#clueReviewPanel:not([hidden]))>.progress-copy{margin-bottom:12px;padding-bottom:12px}
body[data-theme="dark"] #clueReviewPanel .review-card{margin:0 auto;padding:8px 0;row-gap:8px}
body[data-theme="dark"] #clueReviewPanel #reviewOptions .review-option{min-height:70px;padding-top:14px;padding-bottom:14px}
body[data-theme="dark"] #clueReviewPanel #reviewOptions > :is(.review-option,.review-settled-option){height:114px;min-height:114px}
body[data-theme="dark"] #clueReviewPanel #reviewOptions .review-settled-option .review-option{height:100%;min-height:0}
body[data-theme="dark"] #clueReviewPanel #reviewFeedback{margin:22px 0!important;line-height:1.4}
body[data-theme="dark"] #clueReviewPanel #nextReviewButton{margin:22px 0 24px;min-height:48px}
}

/* Final mode-switch geometry: keep the two choices in fixed, non-overlapping cells. */
.match-mode-switch{
  --mode-cell-width:48px;
  --mode-cell-height:28px;
  display:grid;
  grid-template-columns:repeat(2,var(--mode-cell-width));
  width:calc(var(--mode-cell-width) * 2 + 6px);
  height:calc(var(--mode-cell-height) + 6px);
  box-sizing:border-box;
  padding:3px;
  flex:0 0 auto;
  align-items:stretch;
  overflow:hidden;
}
.match-mode-switch::before{
  top:3px;
  left:3px;
  width:var(--mode-cell-width);
  height:var(--mode-cell-height);
  pointer-events:none;
}
.match-mode-switch.is-free::before{transform:translateX(var(--mode-cell-width))}
body[data-theme="dark"] .match-mode-switch{
  grid-template-columns:repeat(2,var(--mode-cell-width));
  width:calc(var(--mode-cell-width) * 2 + 6px);
  height:calc(var(--mode-cell-height) + 6px);
}
body[data-theme="dark"] .match-mode-switch::before{
  width:var(--mode-cell-width);
  height:var(--mode-cell-height);
}
.match-mode-switch button{
  width:var(--mode-cell-width);
  min-width:0;
  height:var(--mode-cell-height);
  min-height:var(--mode-cell-height);
  margin:0;
  padding:0;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
}
body[data-theme="dark"] .match-mode-switch.is-free button.is-active{color:#171006}
@media(max-width:899px){
  .match-mode-switch{--mode-cell-width:44px;--mode-cell-height:26px}
  body[data-theme="dark"] .match-mode-switch{--mode-cell-width:44px;--mode-cell-height:26px}
}
@media(max-width:380px){
  .match-mode-switch{--mode-cell-width:40px;--mode-cell-height:22px}
  body[data-theme="dark"] .match-mode-switch{--mode-cell-width:40px;--mode-cell-height:22px}
}

/* Keep the inline typo correction in the left matching column. */
@media(min-width:900px){
body .view[data-view="find"]:has(#matchingTypo:not([hidden])){grid-template-rows:auto auto auto auto auto 1fr!important}
.view[data-view="find"]>#matchingTypo{grid-column:1;grid-row:3}
.view[data-view="find"]:has(#matchingTypo:not([hidden]))>.clue-strip{grid-row:4}
.view[data-view="find"]:has(#matchingTypo:not([hidden]))>.description-row{grid-row:5}
.view[data-view="find"]:has(#matchingTypo:not([hidden]))>.results-section{grid-row:2/7}
}
body #resultsList.results-list:not(.is-loading){height:auto!important;grid-auto-rows:max-content!important;gap:10px!important}

/* Short desktop viewports: keep the answer action clear of the floating nav. */
@media (min-width:900px) and (max-height:820px) {
  body[data-theme="dark"] #clueReviewPanel #reviewOptions > :is(.review-option,.review-settled-option) {height:88px;min-height:88px}
  body[data-theme="dark"] #clueReviewPanel #reviewFeedback {margin:12px 0!important}
  body[data-theme="dark"] #clueReviewPanel #nextReviewButton {margin:12px 0 16px}
}
@media (min-width:900px) {
  body[data-theme="dark"] #clueReviewPanel:not([hidden]) {flex:none;height:auto;overflow:visible}
}

/* Scroll long desktop content inside the space above the navigation. */
@media (min-width:900px) {
  body[data-theme="dark"] .view.active {min-height:0!important;max-height:calc(100dvh - 140px);overflow-y:auto;overflow-x:hidden;scroll-padding-bottom:16px}
}
@media (min-width:1600px) {
  body[data-theme="dark"] .view.active {max-height:calc(100dvh - 170px)}
}

/* Matching page fidelity: the reference uses a balanced two-column desktop canvas. */
@media (min-width: 900px) {
  body[data-theme="dark"] .view[data-view="find"].active {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 44px;
  }

  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation {
    min-height: 58px !important;
    gap: 10px;
    padding: 7px 12px 9px;
    border-radius: 18px;
  }

  body[data-theme="dark"] .view[data-view="find"] #resultsList .candidate-word { font-size: 18px !important; line-height: 1.2 !important; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-word strong { font-size: 18px !important; }
  body[data-theme="dark"] .view[data-view="find"] #resultsList .candidate-word small { font-size: 11px !important; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .rank { width: 28px; height: 28px; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .percent { font-size: 16px !important; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .candidate-pronounce { width: 30px; height: 30px; }
  body[data-theme="dark"] .view[data-view="find"] .clue-form label { display: none; }
  body[data-theme="dark"] .view[data-view="find"] #promptTarget,
  body[data-theme="dark"] .view[data-view="find"] .prompt-target { font-size: 36px !important; }
  body[data-theme="dark"] .view[data-view="find"] #promptMeaning { font-size: 13px !important; }
  body[data-theme="dark"] .view[data-view="find"] .clue-form { padding: 12px; }
  body[data-theme="dark"] .view[data-view="find"] .input-row { min-height: 48px; }
  body[data-theme="dark"] .view[data-view="find"] #clueInput { min-height: 48px; height: 48px; font-size: 16px !important; }
  body[data-theme="dark"] .view[data-view="find"] #addClueButton { min-height: 48px; font-size: 16px !important; }
}

/* Mobile matching canvas follows the supplied dark reference: breathe at the top,
   keep the source row visible, and leave candidate rows free of desktop controls. */
@media (max-width: 899px) {
  body[data-theme="dark"] .view { padding-top: 104px; }
  body[data-theme="dark"] .view[data-view="find"] > .progress-copy { min-height: 66px; }
  body[data-theme="dark"] .view[data-view="find"] .clue-form {
    margin-top: 7px;
    padding: 14px;
    border-radius: 22px;
  }
  body[data-theme="dark"] .view[data-view="find"] .clue-form label {
    display: block;
    margin-bottom: 8px;
    color: #f3f2ef;
    font-size: 14px;
    font-weight: 550;
  }
  body[data-theme="dark"] .view[data-view="find"] .input-row input,
  body[data-theme="dark"] .view[data-view="find"] .input-row button {
    height: 48px;
    min-height: 48px;
    border-radius: 16px;
  }
  body[data-theme="dark"] .view[data-view="find"] .input-row input { font-size: 16px; }
  body[data-theme="dark"] .view[data-view="find"] .input-row button { font-size: 16px; padding: 0 18px; }
  body[data-theme="dark"] .view[data-view="find"] .course-progress { display: none; }
  body[data-theme="dark"] .view[data-view="find"] .score-column::before {
    content: "当前分数";
    display: block;
    margin-bottom: 4px;
    color: #aaa8a3;
    font-size: 14px;
    font-weight: 550;
  }
  body[data-theme="dark"] .view[data-view="find"] .current-score-goal { display: none; }
  body[data-theme="dark"] .view[data-view="find"] .current-score-value::after {
    content: "分";
    margin-left: 2px;
    font-size: .7em;
  }
  body[data-theme="dark"] .view[data-view="find"] .result-source-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin: 0 8px 8px;
    padding: 0 13px;
    border: 1px solid #292d2b;
    border-radius: 20px;
    background: rgba(10, 12, 11, .98);
    color: #aaa8a3;
    font-size: 16px;
    box-shadow: 5px 7px 16px rgba(0, 0, 0, .28);
  }
  body[data-theme="dark"] .view[data-view="find"] .result-source-row[hidden] { display: none; }
  body[data-theme="dark"] .view[data-view="find"] .result-source-icon { display: grid; place-items: center; color: #c7c8c5; }
  body[data-theme="dark"] .view[data-view="find"] .result-source-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body[data-theme="dark"] .view[data-view="find"] .result-source-arrow { color: #c7c8c5; font-size: 31px; line-height: 1; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation {
    min-height: 52px;
    gap: 12px;
    padding: 7px 12px 8px;
    border-radius: 18px;
  }
  body[data-theme="dark"] .view[data-view="find"] .candidate-pronounce,
  body[data-theme="dark"] .view[data-view="find"] .candidate-score-track { display: none; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .candidate-word {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    line-height: 1.15;
  }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .candidate-word strong { font-size: 18px; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .candidate-word small { font-size: 12px; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .rank { width: 27px; height: 27px; }
  body[data-theme="dark"] .view[data-view="find"] .candidate-row.with-pronunciation .percent { font-size: 18px; }
  body[data-theme="dark"] .bottom-nav {
    bottom: 10px;
    width: calc(100% - 20px);
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #202321;
    border-radius: 36px;
  }
  body[data-theme="dark"] .nav-item { min-height: 58px; }
}
