/* A slightly brighter forest palette; desktop geometry remains unchanged. */
:root{--green:#47775a;--ink:#2d4939}
header{background:linear-gradient(110deg,#365f48,#4c7657);border-color:#76916b}
.btn{background:linear-gradient(110deg,#3d6d50,#517f60)}
#setup #start{background:linear-gradient(110deg,#427454,#548463)}
#setup .settings-column>.article-entry{background:linear-gradient(130deg,#3e6a4e,#5b8058);border-color:#829a70}
.mobile-nav,.mobile-settings-summary,.mobile-manager-back,.mobile-reading-back{display:none}
@media(min-width:761px){.mobile-settings,.mobile-settings-content{display:contents}.mobile-settings-summary{display:none}#setup .mobile-settings-content>.bar{margin-bottom:14px}}
@media(max-width:760px){
 :root{--paper:#f5f3eb;--line:#dce2d3;--ink:#2d4939;--green:#47775a}
 html{scroll-padding-top:76px}body{background:radial-gradient(ellipse at 100% 0%,#e1e8d7,transparent 45%),#f5f3eb;font-size:14px}
 body>header{height:62px;padding:0 20px;background:#f5f3ebed;border-bottom:1px solid #dee3d5;box-shadow:none;position:sticky;top:0;z-index:50;backdrop-filter:blur(12px)}
 .logo{color:#365c43;font-size:23px;gap:8px}.logo:before{background:#e3eada;border-color:#b6c9ac;color:#507650;box-shadow:none;width:29px;height:30px;font-size:20px}
 body>header #home{font-size:12px;padding:8px 12px;background:#edf0e5;border:1px solid #cdd9c2;color:#466347;min-height:40px}
 main{padding:20px 16px calc(90px + env(safe-area-inset-bottom));width:100%;max-width:640px}main>section{min-width:0}
 .panel{border-radius:20px;background:#fdfbf4;border-color:#dce2d1;box-shadow:0 5px 20px #3a4c2c07}
 .btn,button,input,select,textarea{touch-action:manipulation}.btn{min-height:44px}.btn.secondary{background:#edf1e5;border-color:#d3ddc8;color:#496746}
 input[type=search],input[type=text],input:not([type]),textarea,select{font-size:16px!important}
 input[type=checkbox]{width:19px!important;height:19px!important;accent-color:#527b55}
 #setup .hero{margin-bottom:20px}#setup h1{font-size:25px;letter-spacing:0;line-height:1.5;color:#35573e;margin-bottom:6px}
 #setup .hero p{font-size:12px;line-height:1.8}#setup .badge{display:none}#setup>.grid{display:flex;flex-direction:column;gap:16px}
 #setup>.grid>.panel{padding:20px 16px;width:100%}#setup h2{font-size:18px}
 #setup .last-practice{font-size:11px!important;margin:7px 0 12px!important;line-height:1.6;overflow-wrap:anywhere}
 .library-search input{height:44px;padding-left:36px}.library-tabs{gap:3px;flex-wrap:wrap}.library-tab{min-height:40px;padding:8px!important;font-size:12px}#libraryTotal{font-size:10px}
 #setup .library-scroll{height:235px;padding:0 5px 0 0;scrollbar-gutter:stable}#setup #lists{display:grid;grid-template-columns:1fr;gap:8px}
 #setup #lists .list{min-height:65px;padding:11px 42px 11px 13px;border-radius:12px;background:#f0f2e7}#setup #lists .list:has(input:checked){background:#e2ebd9;border-color:#9ab58a;box-shadow:inset 3px 0 #6e9564}
 #setup #lists .list em{display:none}#setup #lists .list strong{font-size:16px;padding:0}#setup #lists .list input{right:13px;top:22px}#setup #lists .list small{font-size:11px;line-height:1.5}#setup #lists .list .list-audio:empty{display:none}
 #setup .practice-books{margin-top:17px}#setup .practice-books .bar{align-items:center;flex-wrap:nowrap;gap:8px}#setup .practice-books h2{font-size:14px}#setup #openImport{padding:9px 10px;min-height:40px;font-size:12px;background:#6d8d63;border:0}#setup #openImport span{margin-left:5px}
 #setup .practice-books>.cards{gap:9px}#setup .book-card{position:relative;align-items:flex-start;min-height:79px;padding:12px 9px;gap:6px;background:#edf1e3}
 #setup .book-card .book-symbol{display:none}#setup .book-card input{margin-top:1px;width:17px!important;height:17px!important}#setup .book-copy{padding-right:0}#setup .book-card strong{font-size:15px}#setup .book-card .muted{font-size:10px;white-space:normal;line-height:1.5;margin-top:5px}#setup .book-card small{position:absolute;left:32px;bottom:9px;font-size:9px}#setup .book-card .muted{padding-bottom:12px}
 #setup .library-caption{display:none}.library-selection{gap:6px}.selection-label{display:none}.selection-total{font-size:11px}.selection-chip{min-height:32px}.library-help{margin-top:12px;font-size:11px}
 #setup #confusionGroups{height:112px;grid-template-columns:1fr}#setup #confusionDetails>summary{min-height:36px;padding:7px 0}
 .settings-column{width:100%;gap:14px}#setup .settings-column>.panel{padding:0;overflow:hidden;border-radius:16px}
 .mobile-settings-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:54px;padding:14px 17px;cursor:pointer;color:#456245;font-size:14px;font-weight:600;list-style:none}.mobile-settings-summary::-webkit-details-marker{display:none}.mobile-settings-summary:after{content:'＋';font-size:18px;font-weight:400}.mobile-settings[open]>.mobile-settings-summary:after{content:'−'}
 .mobile-settings[open]>.mobile-settings-summary{border-bottom:1px solid #e0e6d7}.mobile-settings-content{padding:16px}#setup .mobile-settings-content>.bar{display:none}
 #setup .mode-buttons .btn{min-height:42px;font-size:12px}#setup .timing-fields{gap:8px}#setup .timing-fields select{padding:8px;font-size:13px!important;min-height:42px}#setup .timing-controls strong{font-size:13px}#setup .timing-controls p{font-size:11px}#setup #serviceStatus{font-size:11px;line-height:1.7}#setup #testAudio{font-size:13px;min-height:46px}
 #setup #start{display:block;width:100%;min-height:58px;margin:0;font-size:21px;font-weight:750;border-radius:15px;box-shadow:0 5px 14px #456d4824;background:linear-gradient(110deg,#477955,#608a63)}
 body[data-screen=setup] main{padding-bottom:calc(162px + env(safe-area-inset-bottom))}
 #setup .mobile-start-slot{position:fixed;left:max(16px,calc((100vw - 608px)/2));right:max(16px,calc((100vw - 608px)/2));bottom:calc(76px + env(safe-area-inset-bottom));z-index:65}
 #setup #start:before{opacity:.4}#setup .settings-column>.article-entry{min-height:116px;padding:19px 20px;border-radius:18px;background:linear-gradient(110deg,#e0e9d3,#edf1e1);border-color:#ccd9bd;box-shadow:none}
 #setup .article-entry .story-kicker{display:none}#setup .article-entry strong{font-size:22px;color:#3e6546;letter-spacing:0}#setup .article-entry strong br{display:none}#setup .article-entry strong br:after{content:' '}
 #setup .article-entry small{font-size:12px;line-height:1.7;color:#75836c;margin-top:6px;max-width:none}#setup .article-entry small br{display:none}#setup .article-entry .story-cta{display:none}#setup .settings-column>.article-entry>span:last-child{font-size:80px;bottom:2px;color:#6e8d4920}
 .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:70;display:flex;justify-content:space-around;padding:7px 14px calc(7px + env(safe-area-inset-bottom));background:#f9f8f0f5;border-top:1px solid #dce3d2;backdrop-filter:blur(12px)}
 .mobile-nav button{border:0;background:none;color:#87917b;display:grid;justify-items:center;gap:3px;min-height:48px;min-width:80px;font-size:11px}.mobile-nav button[aria-current=page]{color:#3e704c;font-weight:700}.mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 body[data-screen=practice] .mobile-nav,body[data-screen=review] .mobile-nav{display:none}body[data-screen=practice] main{padding-bottom:24px}
 #practice>.bar{gap:12px;margin:2px 0 0;align-items:center}#practice>.bar h2{font-size:19px;margin:0}#practice .eyebrow{display:none}#position{font-size:11px;text-align:right;color:#718369;max-width:60%;overflow-wrap:anywhere}
 #practice .progress{margin:15px 0 18px;height:4px}#practice .stage{min-height:390px;padding:28px 15px 23px;display:flex;flex-direction:column;align-items:center;justify-content:center}
 #practice .sound{width:90px;height:90px;background:#e4ecda;color:#517d57;box-shadow:0 0 0 12px #eff2e8;font-size:30px;margin:14px 0 16px}
 #practice .answer{font:600 clamp(32px,10vw,44px)/1.2 Georgia,serif;letter-spacing:0;min-height:0;margin:22px 0 14px;max-width:100%;overflow-wrap:anywhere}#practice .translation{font-size:16px;line-height:1.7;min-height:0;margin:0 0 12px;max-width:100%}
 #practice #audioStatus,#practice #audioCredit,#practice #feedback{font-size:10px;line-height:1.7;overflow-wrap:anywhere}#practice .stage .actions{width:100%;gap:10px;margin-top:20px;flex-wrap:nowrap}#practice .stage .actions .btn{min-width:0;flex:1;font-size:14px;padding:10px 4px;min-height:46px}
 #practice .practice-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0 0}#practice .toolbar-nav,#practice .toolbar-center,#practice .toolbar-modes{display:contents}#practice .toolbar-modes .mode-buttons{grid-column:1/-1;grid-row:1;display:flex!important;gap:3px;margin:0;border:1px solid #cedac2;background:#e9eddf;border-radius:12px;padding:4px}
 #practice .practice-toolbar .mode-buttons .btn{flex:1!important;min-width:0!important;min-height:38px;padding:7px 3px!important;font-size:12px!important;border:0;background:transparent;box-shadow:none;color:#728165;border-radius:8px}#practice .practice-toolbar .mode-buttons .btn[aria-pressed=true]{background:#648663;color:#fff}
 #practice #prev{grid-column:1;grid-row:2}#practice #auto{grid-column:2;grid-row:2;background:#658a66;color:#fff;border-color:#658a66}#practice #next{grid-column:3;grid-row:2}
 #practice #restart{grid-column:1;grid-row:3}#practice #reshuffle{grid-column:2;grid-row:3}#practice #finish{grid-column:3;grid-row:3}
 #practice .practice-toolbar #prev,#practice .practice-toolbar #next,#practice .practice-toolbar #auto{min-height:54px;font-size:13px!important;padding:10px 3px!important;border-radius:13px}
 #practice .practice-toolbar #restart,#practice .practice-toolbar #reshuffle,#practice .practice-toolbar #finish{min-height:40px;background:transparent;box-shadow:none;border:0;font-size:11px!important;padding:7px 0!important;color:#6b7f60}
 #practice .practice-content>p.muted{font-size:10px;margin:10px 0;line-height:1.7}#practice .group-hint{font-size:11px;max-width:100%;overflow-wrap:anywhere}
 .manage-heading{margin-bottom:18px;gap:8px}.manage-heading .eyebrow{display:none}.manage-heading h1{font-size:23px;line-height:1.4}.manage-heading p{font-size:11px;line-height:1.7}.manage-heading>.btn{font-size:11px;min-height:40px}
 .manager-grid{display:block}.manager-sidebar{min-height:0;padding:18px}.manager-sidebar h2{font-size:20px}.manager-folders{max-height:55dvh;margin:12px 0}.manager-folder{padding:13px 10px;font-size:15px;min-height:50px}.manager-folder small{font-size:12px}.manager-category{font-size:11px}.manager-new{min-height:46px;font-size:14px}.manager-trash summary{min-height:40px;padding-top:10px}
 .manager-workspace{display:none;padding:18px 14px}.manager-grid.mobile-detail .manager-sidebar{display:none}.manager-grid.mobile-detail .manager-workspace{display:block}.mobile-manager-back{display:block;border:0;background:transparent;color:#66815a;font-size:13px;padding:0 0 15px;min-height:40px}
 .manager-top{gap:10px;align-items:center;flex-wrap:wrap}.manager-titleline{gap:7px}.manager-titleline h2{font-size:22px;flex-basis:100%}.manager-rename{min-height:34px;padding:5px 9px;font-size:11px}.manager-top .btn{font-size:12px;padding:9px 12px}.manager-searchbar{margin:16px 0 11px;display:grid;grid-template-columns:minmax(0,1fr) 94px;gap:7px}.manager-searchbar select{width:100%;font-size:13px!important;margin:0}
 .manager-search{font-size:16px;padding:10px;min-height:44px}.manager-selection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px;position:sticky;top:64px;z-index:5;background:#e1ead7}.manager-selection>span{grid-column:1/-1;font-size:11px}.manager-selection .btn{font-size:11px;padding:5px 2px;min-height:36px}.manager-table-scroll{height:52dvh;min-height:260px;max-height:480px}.manager-table{table-layout:fixed;font-size:12px}.manager-table th,.manager-table td{padding:12px 5px;overflow-wrap:anywhere}.manager-table th:first-child{width:31px}.manager-table th:nth-child(2){width:32%}.manager-table th:nth-child(4){width:48px}.manager-table .manager-word{font-size:17px}.manager-table .manager-meaning{font-size:12px}.manager-tag{white-space:normal;font-size:9px;padding:2px}.manager-footer{font-size:11px;line-height:1.8}.manager-dialog{width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;padding:22px}
 #articles .hero{margin-bottom:20px}#articles h1{font-size:26px;letter-spacing:0}#articles .hero p{font-size:12px;line-height:1.8}#articles .eyebrow{font-size:10px}#articles .article-grid{grid-template-columns:minmax(0,1fr);gap:16px}#articles .panel{padding:19px 15px}#articles h2{font-size:18px}#articles .bar{gap:8px;flex-wrap:wrap;margin-bottom:14px}#articleCount{font-size:12px}.article-sources{max-height:148px;overflow:auto;gap:7px;margin-bottom:20px}.article-source{font-size:12px;padding:10px;min-height:42px;display:flex;align-items:center;gap:5px}.article-candidates{max-height:310px}.article-word{min-height:58px}.article-word small{font-size:12px}#articles .actions{gap:8px;margin-top:14px}#articles .actions .btn{font-size:12px;padding:8px 12px}#articles p.muted{font-size:11px;line-height:1.8}#articles #articleResult{scroll-margin-top:80px;margin-top:18px}
 #articles.mobile-reading>.hero,#articles.mobile-reading>.article-grid{display:none}#articles.mobile-reading #articleResult{margin-top:0}.mobile-reading-back{display:block;background:transparent;border:0;padding:0 0 15px;color:#607c55;font-size:13px;min-height:40px}#articleTitle{font-size:25px!important;line-height:1.3;margin:16px 0}#articleMeta{font-size:10px!important;line-height:1.8}#articleChecks{font-size:11px;line-height:1.8;padding:12px}
 .reading-tools{position:sticky;top:62px;z-index:10;background:#fdfbf4f5;backdrop-filter:blur(10px);padding:10px 0;margin:10px 0 18px;gap:6px;border-bottom:1px solid #e2e6d7}.reading-tools .btn{font-size:12px;min-height:40px}.reading-tools .muted{font-size:10px;line-height:1.7}.article-body{font:18px/1.85 Georgia,serif;overflow-wrap:anywhere;margin:18px 0}.reading-paragraph{margin-bottom:24px}.reading-zh{font-size:13px;line-height:1.9;padding:11px 12px;margin-top:12px;background:#edf1e3;border-color:#b3c99f}#wordTooltip{font-size:13px;padding:15px;max-height:55dvh;overflow:auto;pointer-events:auto;background:#fffbee;border-color:#d8dabb;box-shadow:0 8px 30px #34432f25}#wordTooltip strong{font-size:20px}
 #review h1{font-size:30px;letter-spacing:0}#review .grid{grid-template-columns:minmax(0,1fr)}#review .wordrow{flex-wrap:wrap;font-size:13px;gap:6px}#review .panel{padding:18px}
 /* Keep native form controls at 16px to avoid automatic zoom on phones. */
 #setup .timing-fields select,.manager-searchbar select{font-size:16px!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.mobile-home-status{display:none}
.mobile-sheet{width:min(540px,calc(100% - 24px));max-height:85dvh;margin:auto auto 12px;padding:20px;border:1px solid #c9d6be;border-radius:24px;background:#fcfaf1;color:#3b593e;box-shadow:0 18px 60px #243d2c33;overflow:auto;overscroll-behavior:contain}
.mobile-sheet::backdrop{background:#20372966;backdrop-filter:blur(3px)}
.mobile-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.mobile-sheet-heading h2{font-size:20px;margin:0}.mobile-sheet-heading .btn{font-size:13px;min-height:40px;padding:8px 15px}
.mobile-sheet .mobile-settings-content{padding:0}.mobile-sheet .mobile-settings-content>.bar{display:none}.mobile-sheet .setting{font-size:13px}.mobile-sheet .timing-fields select{font-size:16px}.mobile-sheet .audio-preview p{font-size:12px}.mobile-sheet #audioPreparationPanel{margin-top:16px}.mobile-sheet #confusionGroups{height:auto;max-height:62dvh;display:grid;grid-template-columns:1fr;grid-auto-rows:minmax(108px,auto);gap:12px;padding:0}.mobile-sheet .confusion-card{min-height:108px}
/* Mobile reading starts with the task, with a compact page title. */
@media(max-width:760px){
 #articles>.hero{display:block;margin:0 0 12px;padding:0}
 #articles>.hero .eyebrow,#articles>.hero p{display:none}
 #articles>.hero h1{font-size:21px;line-height:1.4;margin:0;letter-spacing:0}
 body[data-screen=articles]>main{padding-top:14px}
}
.mobile-quick-controls,.mobile-page-back{display:none}
.manager-pronounce{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:34px;border:0;border-radius:8px;background:#e6edde;color:#527651;padding:5px;cursor:pointer}
.manager-pronounce svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.manager-pronounce:hover{background:#d9e6cc}.manager-pronounce:disabled{opacity:.45}.manager-pronounce[aria-busy=true]{background:#d6e3c9}
.manager-table .manager-meaning{position:relative;padding-right:39px}
.manager-table{border-collapse:separate;border-spacing:0}.manager-table-scroll{position:relative;isolation:isolate}.manager-table thead{position:sticky;top:0;z-index:3;background:#f4f3e5;box-shadow:0 -8px 0 8px #f4f3e5}.manager-table th{position:static;background:#f4f3e5;border-bottom:1px solid #e0e5d1}
@media(max-width:760px){
 body>header #home{display:none!important}body>header>small{display:block!important;color:#819078;font-size:9px;line-height:1.5;letter-spacing:0;text-align:right;margin-left:auto;max-width:65%;white-space:nowrap}body>header{gap:8px}
 #setup .mobile-quick-controls{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:10px;width:100%;flex-shrink:0}
 #setup .mobile-quick-controls>.panel{padding:0;min-width:0;overflow:hidden;border-radius:14px;box-shadow:none}
 #setup .mobile-preview-tile{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;height:56px;padding:4px 8px;border:1px solid #ccd9c0;border-radius:14px;background:#e7eedc;color:#58784d}
 #setup .mobile-preview-tile #prepareSelected{margin:0;padding:0;width:100%;min-height:30px;border:0;background:none;box-shadow:none;color:#52754c;font-size:14px;line-height:25px;font-weight:650}
 .mobile-preview-tile>small,.mobile-preview-tile #testAudioStatus{display:block;font-size:9px;line-height:13px;margin:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b987d}
 .mobile-preview-tile #testAudioStatus:empty{display:none}.mobile-preview-tile:has(#testAudioStatus:not(:empty))>small{display:none}
 .mobile-sheet .audio-preview{display:block}
 .mobile-page-back:not([hidden]){display:inline-grid;place-items:center;width:38px;height:36px;padding:0;margin:0 0 9px;border:1px solid #d4dfca;border-radius:11px;background:#edf2e5;color:#52744d;font:30px/1 system-ui,sans-serif}
 .manage-heading,#managerBack,.mobile-manager-back,.mobile-reading-back{display:none!important}
 .manager-selection{position:relative;top:auto;z-index:1;margin-bottom:10px}.manager-table-scroll{margin-top:0;overflow:auto;overscroll-behavior:contain}
 .manager-table .manager-meaning{padding-right:36px}.manager-pronounce{right:2px;width:28px;min-width:28px;height:34px}
 .manager-grid.mobile-import-view .manager-workspace>*:not(.manager-import){display:none!important}.manager-grid.mobile-import-view .manager-import{display:block;margin:0;border:0;background:transparent;padding:0}
}

/* Mobile pages use a single document scroll; only modal sheets scroll inside. */
.mobile-list-pager{display:none}
@media(max-width:760px){
 :root{--mobile-nav-height:64px;--mobile-start-height:82px}
 html{scroll-padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-start-height) + 20px + env(safe-area-inset-bottom))}
 body[data-screen=setup]{height:auto;min-height:100dvh;overflow:visible;display:block}
 body[data-screen=setup]>header{height:62px;min-height:62px;position:sticky;top:0}
 body[data-screen=setup]>main{height:auto;min-height:0;overflow:visible;padding:18px 16px calc(var(--mobile-nav-height) + var(--mobile-start-height) + 22px + env(safe-area-inset-bottom));margin:0 auto}
 #setup{height:auto;min-height:0}#setup>.hero{display:none}#setup>.grid{height:auto;min-height:0;gap:16px}
 #setup>.grid>.panel{display:block;flex:none;min-height:0;padding:20px 16px;overflow:visible}
 #setup .last-practice{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.6!important;margin:7px 0 12px!important}
 #setup .library-scroll{height:auto;min-height:0;max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto;overscroll-behavior:auto}
 #setup #lists .list{height:auto;min-height:65px}
 #setup .practice-books{margin-top:18px}#setup .practice-books>.cards{align-items:stretch}
 #setup .book-card{height:auto;min-height:84px;max-width:100%;overflow-wrap:anywhere}
 #setup .book-card .muted{white-space:normal}#setup .book-card small{line-height:1.5}
 #setup #confusionDetails{margin-top:12px}#setup #confusionDetails>p{display:none}
 #setup .library-help,#setup .library-selection{display:none}
 #setup .mobile-home-status{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;margin:14px 0 0;padding:12px 0 0;border:0;border-top:1px solid #e0e6d5;background:transparent;color:#76856b;font-size:11px;text-align:left}
 .mobile-home-status>span{min-width:0;overflow-wrap:anywhere}.mobile-home-status>span:last-child{text-align:right;color:#66845a}
 #setup .settings-column{gap:14px}#setup .settings-column>.article-entry{display:none}
 #setup .mobile-quick-controls{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px;align-items:stretch}
 #setup .mobile-quick-controls>.panel{height:auto;min-height:82px}
 #setup .mobile-settings-summary{display:block;min-height:82px;padding:13px 29px 13px 14px;font-size:14px;line-height:1.6;position:relative}
 #setup .mobile-settings-summary:after{position:absolute;right:12px;top:50%;transform:translateY(-50%);content:'›';font-size:23px}
 #setup .mobile-settings-summary small{display:block;margin-top:4px;white-space:normal;overflow:visible;text-overflow:clip;font-size:11px;font-weight:400;line-height:1.6;color:#87947a}
 #setup .mobile-preview-tile{height:auto;min-height:82px;padding:10px 8px}
 #setup .mobile-preview-tile #prepareSelected{min-height:32px;font-size:15px}
 #setup .mobile-preview-tile>small{white-space:normal;overflow:visible;line-height:1.6;text-align:center}
 .mobile-nav{height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));padding:6px 14px calc(6px + env(safe-area-inset-bottom))}
 #setup .mobile-start-slot{position:fixed;left:0;right:0;width:100%;bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));padding:12px max(16px,calc((100vw - 608px)/2));z-index:65;background:linear-gradient(0deg,#f5f3eb 70%,#f5f3ebdb);border-top:1px solid #e4e7d9;backdrop-filter:blur(8px)}
 #setup #start{width:100%;min-height:58px;height:auto;margin:0;font-size:21px}
 .article-sources,.article-candidates,.manager-folders,.manager-table-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto}
 .manager-table thead{position:static;box-shadow:none}
 [data-mobile-page-hidden]{display:none!important}
 .mobile-list-pager:not([hidden]){display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 4px;font-size:11px;color:#7c8c70}
 .mobile-list-pager button{font:inherit;min-height:36px;padding:6px 12px;border:1px solid #ced9c2;border-radius:9px;background:#edf2e5;color:#53734c}
 .mobile-list-pager button:disabled{opacity:.4}.mobile-list-pager span{text-align:center}
 body:has(.mobile-sheet[open]){overflow:hidden}
}
/* The focused chooser is the sole scroll container while open. */
.mobile-word-summary{display:none}
.word-picker{width:min(100vw,640px);height:100dvh;max-width:100vw;max-height:100dvh;margin:0 auto;padding:0;border:0;border-radius:0;background:#f8f6ed;color:#284f3b;overflow:hidden}
.word-picker[open]{display:flex;flex-direction:column}.word-picker::backdrop{background:#183e2a66}
.word-picker .picker-heading{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;width:100%;height:62px;padding:12px 16px;background:#faf8ef;border-bottom:1px solid #e0e5d6;box-shadow:none}
.picker-heading h2{font:700 18px/1.4 system-ui,sans-serif;margin:0;letter-spacing:0}.picker-heading small{font-size:11px;color:#82917a;min-width:45px;text-align:right}
.picker-text-button{font:inherit;color:#45684b;background:transparent;border:0;padding:8px;min-height:40px;cursor:pointer}
.picker-tools{padding:10px 16px 8px;flex-shrink:0}.picker-search{display:block;width:100%;height:44px;font:16px system-ui,sans-serif;padding:10px 13px;background:#eeeee3;border:1px solid #dde3d1;border-radius:12px;color:#284f3b}
.picker-tabs{display:flex;gap:4px;background:#efeee4;border-radius:10px;margin-top:10px;padding:3px}.picker-tabs button{flex:1;min-height:36px;padding:6px 2px;font-size:12px;border-radius:8px}.picker-tabs button[aria-pressed=true]{background:#dbe5d2;font-weight:700}
.picker-bulk{display:flex;justify-content:space-between;gap:4px;margin-top:6px;font-size:12px}.picker-bulk[hidden]{display:none}
.picker-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 20px;scrollbar-width:thin;scrollbar-color:#b2c1a2 transparent;touch-action:pan-y}
.picker-group{margin:8px 0;border:1px solid #e0e4d5;border-radius:14px;background:#fdfbf4;overflow:hidden}.picker-group-heading{display:flex;align-items:center;gap:10px;padding:5px 12px;min-height:60px}.picker-group-heading>input,.picker-word>input{width:20px!important;height:20px!important;flex-shrink:0;accent-color:#416d50}
.picker-expand{display:flex;align-items:center;gap:8px;min-width:0;flex:1;min-height:48px;padding:6px 0;text-align:left;color:#284f3b;background:none;border:0;font:inherit;cursor:pointer}.picker-expand strong{font-size:16px;overflow-wrap:anywhere}.picker-expand small{margin-left:auto;font-size:11px;color:#87917a;text-align:right}.picker-expand>span{font-size:21px;min-width:18px;text-align:center}
.picker-group-words{margin:0 12px;border-top:1px solid #e1e6d7}.picker-word{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e8ebdf;min-height:62px;cursor:pointer}.picker-word:last-child{border:0}.picker-word>span{min-width:0;flex:1}.picker-word strong{font:600 16px/1.4 system-ui,sans-serif;display:block;overflow-wrap:anywhere}.picker-word small{display:block;color:#7e8975;font-size:12px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.picker-word:has(input:disabled){opacity:.5}.picker-empty,.picker-group-hint{font-size:12px;line-height:1.7;color:#7d8b70;padding:6px 0}
.picker-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #dce3d2;background:#faf8ef}.picker-footer>span{font-size:14px;font-weight:600}.picker-footer .btn{background:#355e45;color:#fffaf0;min-height:46px;min-width:136px;border-radius:12px;font-size:16px}
@media(max-width:760px){
 body:has(.word-picker[open]){overflow:hidden!important}
 #setup .library-search,#setup .library-tabs,#setup .library-scroll{display:none!important}
 #setup .mobile-word-summary,.mobile-word-summary{display:block;margin:13px 0 0}
 .picker-summary-chips{display:flex;flex-wrap:wrap;gap:7px;max-height:120px;overflow:auto}.picker-summary-chips>small{color:#829078;font-size:12px}
 .picker-chip{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border-radius:9px;background:#e5ecdd;color:#45684b;border:0;font:12px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
 .mobile-word-summary>p{font-size:12px;color:#7d8c72;margin:10px 0}.picker-open{display:block;width:100%;min-height:46px;background:#f9faf3;border:1px solid #547851;border-radius:11px;color:#365d41;font:600 15px system-ui,sans-serif;cursor:pointer}
 #setup .mobile-home-status{display:none}#setup .practice-books{margin-top:22px}#setup>.grid>.panel>.bar>h2{font-size:19px}
 .mobile-reading-selection>#articleSources,.mobile-reading-selection>#articleSearch,.mobile-reading-selection>.actions,.mobile-reading-selection>#articleCandidates,.mobile-reading-selection>.bar{display:none!important}
 .mobile-reading-selection>.mobile-word-summary{margin:0 0 18px}.mobile-reading-selection>.mobile-word-summary:before{content:'阅读目标词';display:block;font-size:18px;font-weight:700;margin-bottom:14px}
 .mobile-list-pager{display:none!important}
}
.word-picker .picker-heading,.word-picker .picker-heading h2{color:#284f3b}.word-picker .picker-heading small{color:#82917a;margin-left:0;font-size:11px}
.picker-speaker{flex-shrink:0;display:grid;place-items:center;width:34px;height:36px;padding:7px;border:0;border-radius:9px;background:#edf1e5;color:#527651;cursor:pointer}.picker-speaker svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.picker-speaker:disabled{opacity:.45}
.word-picker .picker-heading{display:grid;grid-template-columns:48px minmax(0,1fr) 56px;gap:5px}.word-picker .picker-heading h2{text-align:center;font-size:16px;white-space:nowrap}.word-picker .picker-heading small{display:block!important;white-space:nowrap;font-size:10px;max-width:none}
.picker-steps{display:flex;gap:8px;margin:0 0 9px}.picker-steps button{flex:1;font-size:12px;border-bottom:2px solid transparent}.picker-steps button[aria-current=step]{color:#28593b;font-weight:700;border-color:#6a8c5b}.picker-steps button:disabled{opacity:.45}
.picker-tabs[hidden],.picker-bulk[hidden]{display:none!important}.picker-bulk{flex-wrap:wrap;gap:0}.picker-bulk button{font-size:11px;padding:6px;min-height:34px}
.picker-group{overflow:visible}.picker-group-heading{position:sticky;top:0;z-index:2;border-radius:13px;background:#fbfaf2;box-shadow:0 1px 0 #e1e6d7}.picker-expand>span{font-size:11px;white-space:nowrap;min-width:40px}.picker-scroll{scroll-padding-top:64px}
.manager-gloss{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
@media(max-width:760px){
 .manager-workspace{padding:14px 10px}.manager-titleline h2{font-size:20px}.manager-top{gap:6px}.manager-top>div>.muted{margin:5px 0}.manager-searchbar{margin:12px 0 8px;gap:6px}.manager-searchbar input,.manager-searchbar select{min-height:40px;padding:8px;font-size:14px!important}
 .manager-selection{padding:7px;gap:4px;margin-bottom:8px}.manager-selection .btn{min-height:32px;padding:4px 2px;font-size:10px}
 .manager-table{display:block;width:100%;table-layout:auto}.manager-table thead{display:block;background:transparent;box-shadow:none;margin-bottom:7px}.manager-table thead tr{display:flex;align-items:center;gap:8px}.manager-table thead th{display:none;border:0;background:none;padding:3px!important}.manager-table thead th:first-child{display:flex;align-items:center;width:auto;gap:8px;color:#7a8b6d;font-size:11px;font-weight:400}.manager-table thead th:first-child:after{content:'全选筛选结果 · 点击释义展开'}
 .manager-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:start}.manager-table tbody tr{display:grid;grid-template-columns:20px minmax(0,1fr);gap:5px 5px;position:relative;min-width:0;padding:10px 8px;border:1px solid #dce4d1;border-radius:11px;background:#f9faf2;min-height:94px;align-content:start}.manager-table tbody tr:has(input:checked){border-color:#8ba67b;background:#e8efdf}
 .manager-table tbody td{display:block;min-width:0;width:auto!important;padding:0!important;border:0!important}.manager-table tbody td:first-child{grid-column:1;grid-row:1;padding-top:1px!important}.manager-table tbody td.manager-word{grid-column:2;grid-row:1;font:600 14px/1.4 system-ui,sans-serif;overflow-wrap:anywhere;color:#365a3e}
 .manager-table tbody td.manager-meaning{grid-column:1/-1;position:relative;min-height:31px;padding-right:26px!important;font-size:11px;line-height:1.45}.manager-gloss{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gloss-expanded .manager-gloss{display:block;overflow:visible}.manager-table tbody td:last-child{grid-column:1/-1;font-size:0;min-height:0;line-height:1}.manager-table .manager-tag{font-size:9px;padding:2px 4px;line-height:1.4}.manager-table .manager-pronounce{right:-2px;top:0;transform:none;width:25px;min-width:25px;height:28px;padding:4px;background:#e5edda}.manager-pronounce svg{width:17px;height:17px}
}
/* Uniform compact cards; the right rail reserves two marks and a speaker. */
@media(max-width:760px){
 .manager-table tbody{align-items:stretch;gap:7px}
 .manager-table tbody tr{height:88px;min-height:88px;max-height:88px;box-sizing:border-box;padding:8px 7px;gap:0 4px;align-content:start}
 .manager-table tbody td.manager-word{padding-right:38px!important;line-height:18px;font-size:13px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:36px}
 .manager-table tbody td.manager-meaning{position:static;min-height:0;padding:0!important}
 .manager-table .manager-gloss{position:absolute;left:7px;right:42px;bottom:8px;width:auto;max-height:30px;line-height:15px;font-size:11px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .manager-table tbody td:last-child{position:absolute;right:6px;top:7px;width:36px!important;height:34px;display:flex;flex-direction:column;align-items:flex-end;gap:2px;overflow:hidden;font-size:0;line-height:1}
 .manager-table .manager-tag{margin:0;white-space:nowrap;padding:1px 3px;font-size:8px;line-height:13px;box-sizing:border-box;height:15px}
 .manager-table .manager-pronounce{position:absolute;right:7px;bottom:7px;top:auto;transform:none;width:27px;min-width:27px;height:28px}
 .manager-table tr.gloss-expanded{z-index:4}.manager-table tr.gloss-expanded .manager-gloss{left:3px;right:3px;bottom:3px;max-height:150px;min-height:76px;overflow:auto;display:block;-webkit-line-clamp:unset;background:#fffdf2;border:1px solid #c8d6b9;border-radius:9px;box-shadow:0 5px 18px #304d3026;padding:9px;font-size:12px;line-height:1.65;z-index:5}
}
/* All three mobile word views use two compact columns and centered checkboxes. */
@media(max-width:760px){
 .manager-table tbody td:first-child{display:flex;align-items:center;height:36px;padding:0!important}.manager-table tbody td:first-child input{margin:0}
 .manager-table tbody td.manager-word{display:flex;align-items:center;height:36px;min-height:36px;max-height:36px;line-height:18px;overflow:hidden}
 .picker-group-words{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0;padding:9px;border-top:1px solid #e1e6d7}
 .picker-group-hint,.picker-group-words>p{grid-column:1/-1;margin:0;padding:2px 0 5px;font-size:11px}
 .picker-word{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:36px 30px;align-items:center;gap:4px;position:relative;box-sizing:border-box;min-width:0;height:88px;min-height:88px;max-height:88px;margin:0;padding:7px;border:1px solid #dce4d1!important;border-radius:10px;background:#f9faf2}
 .picker-word:has(input:checked){background:#eaf0e0;border-color:#b9cba9!important}.picker-word>input{grid-column:1;grid-row:1;margin:0;align-self:center;width:19px!important;height:19px!important}
 .picker-word>span{display:contents}.picker-word strong{grid-column:2;grid-row:1;display:flex;align-items:center;height:36px;max-height:36px;min-width:0;margin:0;font:600 13px/18px system-ui,sans-serif;overflow-wrap:anywhere;overflow:hidden}
 .picker-word small{position:absolute;left:7px;right:37px;bottom:7px;margin:0;font-size:11px;line-height:15px;max-height:30px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .picker-word .picker-speaker{position:absolute;bottom:7px;right:5px;width:27px;height:28px;padding:5px}.picker-word .picker-speaker svg{width:17px;height:17px}
}
/* Similar-word groups retain any number of words, with a two-word viewport. */
.confusion-select-actions{display:flex;justify-content:flex-end;gap:12px;grid-column:1/-1}
.confusion-card{display:block;overflow:hidden!important;min-height:148px!important;height:auto!important}.confusion-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.confusion-group-choice{display:flex;align-items:center;gap:7px;cursor:pointer}.confusion-group-choice input{margin:0;accent-color:#527b55}
.confusion-word-strip{display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#a3b68b transparent;padding:2px 0 6px}
.confusion-word-strip>.confusion-word{position:relative;flex:0 0 50%;box-sizing:border-box;min-width:0;padding:4px 8px 34px!important;border:0;border-right:1px solid #d7dfc7;scroll-snap-align:start}.confusion-word-strip>.confusion-word:last-child{border-right:0}.confusion-word-strip .confusion-word b{font-size:clamp(15px,4.5vw,21px);overflow-wrap:anywhere}.confusion-word-strip .confusion-word p{white-space:normal;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.confusion-word-strip .picker-speaker{position:absolute;right:9px;bottom:3px;width:28px;height:28px;padding:5px}
.mobile-sheet #confusionGroups{grid-auto-rows:auto!important;max-height:none!important;overflow:visible}.mobile-sheet:has(#confusionGroups){display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:85dvh}.mobile-sheet:has(#confusionGroups):not([open]){display:none}.mobile-sheet:has(#confusionGroups)>.mobile-sheet-heading{padding:18px 18px 10px;margin:0;flex-shrink:0}.mobile-sheet #confusionGroups{overflow-y:auto!important;padding:0 16px 18px;min-height:0;gap:12px}
.manager-notebooks{margin:10px 0 16px}.manager-notebooks h3{font-size:13px;margin:0 0 8px;color:#748663}.manager-notebook-links{display:flex;gap:8px}.manager-notebook-links>button{flex:1;padding:12px 8px;background:#e7eedb;border:1px solid #ccdaba;border-radius:12px;text-align:left;font-size:13px;font-weight:600}
.notebook-manager .picker-scroll{padding-top:12px}.notebook-group{border:1px solid #d8e1cb;border-radius:12px;padding:10px;margin:12px 0}.notebook-group-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.notebook-word{display:flex;align-items:center;gap:5px;padding:10px 0;border-bottom:1px solid #e2e8d8}.notebook-word>div{min-width:0;flex:1}.notebook-word b{font-size:15px;overflow-wrap:anywhere}.notebook-word small{display:block;font-size:11px;color:#829173;line-height:1.5}.notebook-word>button{font-size:11px;white-space:nowrap}.notebook-word:last-child{border:0}
@media(max-width:760px){
 .picker-word strong{padding-right:32px;font-size:12px}.picker-word .picker-word-marks{position:absolute;right:4px;top:4px;width:34px;height:32px;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.picker-word .picker-word-marks small{position:static;display:block;width:auto;max-height:none;margin:0;padding:1px 3px;border-radius:4px;background:#dce8cb;color:#60824f;white-space:nowrap;font-size:8px;line-height:12px}.picker-word .picker-word-marks small.warm{background:#eee1c8;color:#977541}
}
/* Compact comparison: audio sits beside the word, never in a separate row. */
.confusion-card{min-height:92px!important;padding:8px 9px!important}
.confusion-card-head{margin-bottom:5px;min-height:19px}.confusion-card-head small{font-size:9px}
.confusion-word-strip{padding:0 0 3px}
.confusion-word-strip>.confusion-word{padding:0 6px!important;min-height:46px}
.confusion-word-strip .confusion-word>div{padding:0;margin:0}
.confusion-word-strip .confusion-word b{display:block;padding-right:24px;font-size:16px;line-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.confusion-word-strip .confusion-word small{margin:1px 0 0;font-size:9px;line-height:12px}
.confusion-word-strip .confusion-word p{margin:2px 0 0;font-size:10px;line-height:14px;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}
.confusion-word-strip .picker-speaker{top:0;right:4px;bottom:auto;width:24px;height:23px;padding:4px;background:transparent;border-radius:6px}
.confusion-word-strip .picker-speaker svg{width:17px;height:17px}
.mobile-sheet #confusionGroups{gap:8px;padding-left:12px;padding-right:12px}
.notebook-group-compact{margin:7px 0;padding:4px 10px;border-radius:11px}.notebook-group-compact .notebook-group-heading{gap:10px;min-height:44px}.notebook-group-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:44px;padding:6px 0;border:0;background:transparent;color:#36583e;text-align:left;font:inherit;cursor:pointer}.notebook-group-open strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notebook-group-open small{font-size:11px;color:#839275;white-space:nowrap}.notebook-group-compact .notebook-group-heading>.prep-link{white-space:nowrap;font-size:11px;color:#8a7253}
.notebook-group-detail{padding:16px;margin:auto;max-height:75dvh;overflow:auto}.notebook-group-detail>.mobile-sheet-heading{position:sticky;top:-16px;padding:10px 0;background:#fcfaf1;z-index:2;margin:0}.notebook-group-detail .notebook-word{padding:10px 0}.notebook-group-detail .notebook-word>button{min-height:36px}.notebook-group-detail::backdrop{background:#20372988}
/* Desktop exposes the same selection actions with a centered workspace. */
@media(min-width:761px){
 .mobile-word-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 15px;padding:12px 14px;background:#f3f5e9;border:1px solid #dce4cd;border-radius:12px}
 .mobile-word-summary>.picker-summary-chips{display:none}.mobile-word-summary>p{margin:0;font-size:12px;color:#75866a;line-height:1.6}.picker-open{flex-shrink:0;min-height:40px;padding:9px 17px;border:1px solid #719067;border-radius:10px;background:#e8efdc;color:#365e41;font:600 13px system-ui,sans-serif;cursor:pointer}
 .mobile-reading-selection>#articleSources,.mobile-reading-selection>#articleSearch,.mobile-reading-selection>.actions,.mobile-reading-selection>#articleCandidates,.mobile-reading-selection>.bar{display:none!important}
 .reading-word-summary{display:block;padding:17px;margin-top:0}.reading-word-summary:before{content:'精选阅读目标词';display:block;font-size:18px;font-weight:700;margin-bottom:12px}.reading-word-summary>.picker-summary-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.reading-word-summary .picker-chip{padding:5px 9px;background:#e3ecd7;border-radius:7px;font-size:12px;color:#52724a}.reading-word-summary>.picker-open{margin-top:10px}.reading-word-summary>p{margin-top:5px}
 .word-picker{width:min(920px,calc(100vw - 80px));height:min(800px,calc(100dvh - 72px));max-height:calc(100dvh - 72px);margin:auto;border:1px solid #c8d5b9;border-radius:20px;box-shadow:0 20px 70px #183e2c40}
 .word-picker .picker-heading{height:66px;padding:12px 24px;grid-template-columns:70px minmax(0,1fr) 70px}.word-picker .picker-heading h2{font-size:20px}.picker-tools{padding:12px 24px}.picker-tabs{max-width:460px}.picker-steps{max-width:460px}.picker-bulk{justify-content:flex-start;gap:16px}.picker-bulk button{font-size:13px;padding:8px;min-height:38px}.picker-scroll{padding:0 24px 22px}.picker-footer{padding:14px 24px}.picker-footer .btn{min-width:170px}
 .picker-group-heading{padding:6px 15px}.picker-group-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;margin:0}.picker-group-hint,.picker-group-words>p{grid-column:1/-1}
 .picker-word{position:relative;min-height:103px;margin:0;border:1px solid #dce4cf!important;border-radius:11px;background:#f7f9ee;padding:12px 43px 10px 10px;gap:8px;align-items:flex-start}.picker-word:has(input:checked){background:#e9f0de;border-color:#b2c59e!important}.picker-word>input{margin:2px 0 0}.picker-word strong{font-size:15px;line-height:21px;overflow-wrap:anywhere}.picker-word small{font-size:11px;line-height:1.6;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .picker-word .picker-word-marks{position:absolute;right:7px;top:7px;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.picker-word .picker-word-marks small{display:block;max-height:none;margin:0;padding:1px 4px;border-radius:4px;background:#dce8cb;color:#60824f;white-space:nowrap;font-size:9px;line-height:13px}.picker-word .picker-word-marks small.warm{background:#eee1c8;color:#977541}.picker-word>.picker-speaker{position:absolute;right:7px;bottom:8px;width:29px;height:30px;padding:5px}
 .notebook-manager{width:min(700px,calc(100vw - 80px));height:min(720px,calc(100dvh - 72px))}.notebook-manager .picker-scroll{padding-top:14px}.notebook-group-detail{max-width:600px}.manager-notebook-links>button{min-height:44px}
 #confusionGroups{grid-auto-rows:minmax(92px,auto);height:220px;max-height:220px}.confusion-word-strip .confusion-word b{font-size:16px}
}
/* Utility actions occupy their own short row, rather than a full card row. */
#confusionGroups{grid-template-rows:30px;align-content:start}.confusion-select-actions{height:30px;min-height:0;align-items:center;align-self:start;margin:0;padding:0}.confusion-select-actions .prep-link{min-height:28px;padding:3px 5px;line-height:20px}
#articles .article-grid{align-items:start}
.mistake-select-opener{display:inline-block;min-height:32px;margin:8px 0 0;padding:5px 0;border:0;background:transparent;color:#527047;font:12px system-ui,sans-serif;cursor:pointer}.mistake-select-opener:before{content:'› ';font-size:16px}
/* Mistake vocabulary uses the same floating-sheet treatment as confused groups. */
.mistake-sheet-actions{display:none}.word-picker.mistake-picker{width:min(540px,calc(100% - 24px));height:auto;max-height:85dvh;margin:auto auto 12px;border:1px solid #c9d6be;border-radius:24px;background:#fcfaf1;box-shadow:0 18px 60px #243d2c33}
.mistake-picker .picker-tools{display:none}.mistake-picker .picker-heading{height:62px;padding:12px 16px;background:#fcfaf1;border-bottom:0;grid-template-columns:48px minmax(0,1fr) 48px}.mistake-picker .picker-heading h2{font-size:18px}.mistake-picker .picker-heading small{visibility:hidden}
.mistake-picker .mistake-sheet-actions{display:flex;justify-content:flex-end;gap:12px;padding:0 16px 4px;flex-shrink:0}.mistake-sheet-actions button{min-height:28px;padding:3px 5px;font-size:11px}
.mistake-picker .picker-scroll{flex:0 1 auto;min-height:0;padding:0 12px 10px}.mistake-picker .picker-group{margin:0;border:0;background:none;overflow:visible}.mistake-picker .picker-group-heading{display:none}.mistake-picker .picker-group-words{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border:0;padding:0;margin:0}
.mistake-picker .picker-word{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:28px 27px;align-items:center;gap:4px;position:relative;box-sizing:border-box;min-width:0;height:76px;min-height:76px;max-height:76px;margin:0;padding:7px;border:1px solid #dce4d1!important;border-radius:10px;background:#f9faf2}
.mistake-picker .picker-word>input{grid-column:1;grid-row:1;margin:0;align-self:center;width:19px!important;height:19px!important}.mistake-picker .picker-word>span{display:contents}.mistake-picker .picker-word strong{grid-column:2;grid-row:1;display:flex;align-items:center;height:28px;min-height:0;max-height:28px;min-width:0;padding-right:32px;margin:0;font:600 12px/14px system-ui,sans-serif;overflow-wrap:anywhere;overflow:hidden}.mistake-picker .picker-word small{position:absolute;left:7px;right:37px;bottom:7px;margin:0;font-size:11px;line-height:14px;max-height:28px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mistake-picker .picker-word .picker-word-marks{position:absolute;right:4px;top:4px;width:34px;height:32px;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.mistake-picker .picker-word .picker-word-marks small{position:static;display:block;width:auto;max-height:none;margin:0;padding:1px 3px;border-radius:4px;background:#dce8cb;color:#60824f;white-space:nowrap;font-size:8px;line-height:12px}.mistake-picker .picker-word .picker-word-marks small.warm{background:#eee1c8;color:#977541}.mistake-picker .picker-word .picker-speaker{position:absolute;bottom:7px;right:5px;width:27px;height:28px;padding:5px}.mistake-picker .picker-speaker svg{width:17px;height:17px}
.mistake-picker .picker-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fcfaf1}.mistake-picker .picker-footer .btn{min-height:40px;min-width:126px;font-size:14px}
@media(min-width:761px){.word-picker.mistake-picker{margin:auto;max-height:80dvh}}
.word-picker.mistake-picker{height:fit-content}
/* Align the mistake entry beneath its own (right-hand) notebook card. */
.mistake-select-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.mistake-select-row>.mistake-select-opener{grid-column:2;justify-self:start;text-align:left;margin-top:8px}.mistake-select-opener:before{content:'▶';display:inline-block;font-size:10px;line-height:1;margin-right:5px;vertical-align:1px;color:#60794c}
@media(max-width:760px){.mistake-select-row{column-gap:9px}}
.mistake-select-row{height:0;position:relative;z-index:1;column-gap:10px}
#setup #confusionDetails{margin-top:8px}#confusionGroupSummary{min-height:32px;padding:5px 0;box-sizing:border-box}
.mistake-select-row:has(+ #confusionDetails.hidden){height:40px}
@media(max-width:760px){.mistake-select-row{column-gap:9px}}
@media(min-width:761px){.mobile-sheet.confusion-sheet{width:min(680px,calc(100vw - 80px));max-height:80dvh;height:fit-content;margin:auto;border-radius:22px}.confusion-sheet #confusionGroups{height:auto!important;max-height:none;grid-template-columns:1fr;grid-template-rows:30px;grid-auto-rows:auto}.confusion-sheet .confusion-card{min-height:92px!important}}
