:root{--ink:#20252b;--paper:#f5f6f7;--green:#316a70;--line:#e2e6e8;--muted:#70767d}
body{background:var(--paper);color:var(--ink);padding-left:112px;font:16px/1.7 "Segoe UI","Microsoft JhengHei",Arial,sans-serif}
button,input,select,textarea{font:inherit;border-radius:9px}
button{min-height:44px;padding:9px 16px;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button:hover{filter:none;border-color:#7b9fa2;background:#f0f5f5}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #85afb3;outline-offset:3px}
button:disabled{cursor:default;opacity:.6}
.primary,.exam-workspace .primary{background:var(--green);border:1px solid var(--green);color:white}
.primary:hover,.exam-workspace .primary:hover{background:#24555a;color:white}
.ui-icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}
header{position:fixed;inset:0 auto 0 0;width:112px;background:#fff;border:0;border-right:1px solid var(--line);z-index:30}
header>div{display:flex;flex-direction:column;gap:28px;align-items:stretch;min-height:100dvh;padding:26px 12px 20px}
header .brand{display:block;text-align:center;font:650 20px/1.4 "Segoe UI","Microsoft JhengHei",sans-serif;letter-spacing:0;color:var(--ink)}
header .brand>span{display:block;font-size:12px;font-weight:500;color:var(--muted);margin-top:3px}
header nav{display:flex;flex:1;flex-direction:column;gap:12px;width:100%}
header nav button{display:flex;flex-direction:column;width:100%;border-radius:12px;padding:12px 4px;min-height:72px;font-size:14px;font-weight:500;gap:8px;color:var(--muted)}
header nav button:last-child{margin-top:auto}
header nav .ui-icon{width:24px;height:24px}
header nav button.active{background:#edf4f4;color:#234f55}
main{max-width:1060px;margin:auto;padding:42px 38px 60px}
h1,h2,h3{letter-spacing:-.02em;color:var(--ink)}
h1{font-size:clamp(28px,3vw,38px);line-height:1.3}
h2{font-size:20px;line-height:1.45}
h3{font-size:16px}
p{overflow-wrap:anywhere}
.muted,small{color:var(--muted)}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:.09em;color:var(--muted)}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}
.page-heading h1{margin-top:6px}
.level-label{color:var(--muted);font-size:14px;white-space:nowrap}
.row{gap:10px;flex-wrap:wrap}
.panel,.tint,.exam-card,.exam-sheet,.exam-summary,.exam-history,.exam-review-item{border:1px solid var(--line);border-radius:16px;background:white;box-shadow:none}
.panel{padding:26px}
.focused{max-width:760px;margin:0 auto}
.dash-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.section-icon{width:42px;height:42px;background:#edf4f0;color:#527548;border-radius:50%;display:inline-grid;place-items:center;margin-bottom:16px}
body[data-screen=home] #app{max-width:940px;margin:auto}
.home-study-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:stretch}
.daily-one,.home-mission{margin:0;padding:28px;background:white;border:1px solid var(--line);border-radius:18px;box-shadow:none}
.daily-one>.eyebrow{margin-left:12px;vertical-align:top;line-height:42px}
.one-word-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 14px}
.daily-one .one-word-row h2{flex-basis:100%;font:650 40px/1.3 "Segoe UI",Arial,sans-serif;overflow-wrap:anywhere;margin:2px 0}
.daily-one .one-meaning{font-size:16px;margin:12px 0}
.daily-one .one-example{border-top:1px solid var(--line);margin-top:20px;padding-top:18px;background:transparent}
.daily-one .one-example p[lang=en]{font:16px/1.8 "Segoe UI",Arial,sans-serif}
.daily-one .one-translation{font-size:14px;margin-top:8px;color:var(--muted)}
.daily-one button.link,.word-star{font-size:14px;padding:6px 10px;min-height:38px;font-weight:500}
.home-mission{display:flex;flex-direction:column}
.home-mission>p{margin:12px 0 6px;color:var(--muted);font-size:14px}
.home-mission>.completion-progress{margin:20px 0}
.home-mission .start-area{margin:auto 0 0;padding-top:20px;text-align:left}
.start-area>.primary{width:100%;min-height:48px}
.start-area p{font-size:14px;margin-top:8px}
.completion-progress{margin:18px 0}
.progress-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;margin:0 0 8px}
.progress-caption b{font-weight:650}
.progress-caption small{font-size:12px;font-weight:400}
progress{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:#e7ebed;accent-color:var(--green)}
progress::-webkit-progress-bar{background:#e7ebed;border-radius:8px}
progress::-webkit-progress-value{background:var(--green);border-radius:8px;transition:width .2s}
progress::-moz-progress-bar{background:var(--green);border-radius:8px}
.exam-resume{margin-top:24px;background:white;border:1px solid var(--line);padding:24px 28px;border-radius:18px;display:grid;grid-template-columns:1.3fr 1fr auto;gap:24px;align-items:center}
.resume-heading{display:flex;align-items:center;gap:14px}
.resume-heading .section-icon{margin:0;background:#edf3f6;color:#3a7584}
.resume-heading h2{font-size:20px}
.resume-heading p{font-size:14px;margin-top:4px;color:var(--muted)}
.exam-resume .completion-progress{margin:0}
.level-welcome{padding:10px 0}
.level-welcome>p{margin:16px 0 26px}
.level-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.level-picker button{display:block;text-align:left;background:white;padding:24px;border:1px solid var(--line);border-radius:14px}
.level-picker button:hover,.level-picker button.selected{background:#eef5f5;border-color:var(--green)}
.level-picker strong,.level-picker span{display:block}
.level-picker strong{font-size:20px}
.level-picker span{font-size:14px;margin-top:8px;color:var(--muted);font-weight:400}
.study-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:26px 0}
.study-stages span{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;color:var(--muted);padding-top:12px;border-top:4px solid #e2e6e8}
.study-stages .current,.study-stages .complete{border-color:var(--green);color:var(--green)}
.round-card{margin:24px 0 0;padding:30px}
.round-card>.row{font-size:14px;color:var(--muted)}
.round-card h2{font:650 clamp(36px,6vw,52px)/1.3 "Segoe UI",Arial,sans-serif;text-align:center;margin:26px 0 14px}
.round-card>button:not(.primary):not(.link){display:flex;margin:0 auto}
.round-card .word-meaning{margin:26px 0 20px;font-size:20px}
.round-card p[lang=en]{font:20px/1.85 "Segoe UI",Arial,sans-serif;margin:16px 0}
.round-card .choices{display:grid;gap:12px;margin-top:22px}
.round-card .choices button{display:block;text-align:left;padding:18px 22px;font-size:16px;font-weight:400;border:1px solid var(--line);border-radius:12px;background:white}
.round-card .choices button:hover{background:#edf4f4;border-color:#8cacae}
.round-card>.primary{display:flex;width:100%;margin-top:26px;min-height:48px}
.round-card>.link{display:flex;margin:10px auto 0}
.round-summary{padding:26px 0}
.round-summary>.ui-icon{color:var(--green);width:30px;height:30px;margin-bottom:12px}
.round-summary>p{margin-top:12px}
.word-review{padding:20px 0;border-top:1px solid var(--line);margin-top:20px}
.word-review p{margin-top:10px}
.word-review p[lang=en],.context-sentence{font:20px/1.8 "Segoe UI",Arial,sans-serif}
.context-sentence{margin:24px 0}
.extra-practice{margin-top:24px}
#context-answer{display:grid;gap:12px;margin-top:20px}
#context-answer input{width:100%;padding:12px;border:1px solid var(--line)}
.search-label{display:block;font-size:14px;margin-top:24px}
.vocab-search{width:100%;margin:10px 0 4px;min-height:52px;border:1px solid #d5dfe2;background:white;border-radius:12px;padding:12px 16px}
.search-count:empty,.pagination:empty{display:none}
.vocab-entry{background:white;border:1px solid var(--line);border-radius:12px;margin-top:12px}
.vocab-entry summary{padding:16px}
.vocab-entry summary strong{font:650 20px "Segoe UI",Arial,sans-serif}
.word-suggestions{margin-top:32px}
.word-suggestions h2{display:flex;gap:10px;align-items:center;font-size:16px}
.word-suggestions>p{font-size:14px;margin:8px 0 16px}
.suggestion-list{display:flex;gap:10px;flex-wrap:wrap}
.suggestion-list button{padding:12px 16px;background:white;min-width:130px;justify-content:space-between}
.suggestion-list .ui-icon{width:16px;color:var(--muted)}
.folder-tabs{gap:8px;margin:20px 0}
.saved-word{padding:14px 0;border-top:1px solid var(--line)}
.saved-word>summary{display:flex;gap:16px;align-items:center;font-weight:650}
.saved-word>summary span{font-weight:400;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}
.saved-word .row{margin-top:16px}
.saved-word select{max-width:100%}
.exam-workspace{color:var(--ink)}
.exam-header{margin:0 0 24px}
.exam-header h1{color:var(--ink);font-size:32px}
.exam-daily{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:white;border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink)}
.exam-daily>div{flex:1}
.exam-daily h2{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:20px}
.exam-daily p{color:var(--muted);margin:8px 0 0;font-size:14px}
.source-picker{font-size:14px}
.source-picker select{margin-left:8px;background:#f7f9fa;padding:7px;border:1px solid var(--line)}
.exam-daily .primary{background:var(--green);color:white;border-color:var(--green)}
.exam-filters{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 14px}
.exam-filters .exam-actions{margin:0}
.exam-filters>label{font-size:14px;white-space:nowrap}
.exam-filters select{margin-left:8px;background:white;padding:7px;border:1px solid var(--line)}
.paper-table-wrap{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.paper-table{width:100%;border-collapse:collapse;text-align:left}
.paper-table th{font-size:12px;font-weight:500;color:var(--muted);background:#fafbfc;padding:14px 20px}
.paper-table td{padding:16px 20px;border-top:1px solid var(--line);vertical-align:middle}
.paper-table td:first-child{width:13%}
.paper-table td:nth-child(2){width:20%}
.paper-table td:nth-child(3){width:42%}
.paper-table small{display:block;font-size:12px;margin-top:3px;white-space:nowrap}
.paper-table button{min-width:116px;font-size:14px}
.paper-progress-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:8px}
.paper-table progress{height:6px}
.exam-layout{display:block;max-width:820px;margin:auto}
.exam-sheet{max-height:none;overflow:visible;padding:28px}
.exam-sheet>div>h2{font-size:20px}
.exam-toolbar{display:flex;gap:16px;align-items:center;margin:24px 0}
.exam-toolbar progress{flex:1;width:auto}
.exam-toolbar>span{font-size:14px}
.exam-passage{font:20px/1.9 "Segoe UI",Arial,sans-serif;white-space:pre-line;border-bottom:1px solid var(--line);padding-bottom:24px;margin:18px 0 24px}
.exam-stem,.exam-review-item p[lang=en]{font:20px/1.8 "Segoe UI",Arial,sans-serif;margin:20px 0}
.question-figure{display:block;max-width:100%;height:auto;margin:20px auto}
.exam-option{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px}
.exam-option>button{flex:0 0 44px;min-height:44px;padding:8px}
.exam-option>div{font:16px/1.75 "Segoe UI",Arial,sans-serif;padding-top:6px}
.exam-opts button[aria-pressed=true],#exam-jump button.now{border:2px solid var(--green);background:#edf4f4;color:var(--ink)}
.exam-sheet .exam-opts{margin:20px 0}
.exam-actions{display:flex;gap:10px;flex-wrap:wrap}
.exam-score{background:white;border:1px solid var(--line);color:var(--ink);border-radius:16px;padding:28px}
.exam-score p{color:var(--ink)}
.exam-history{margin-top:24px}
.exam-history p{padding:10px 0;border-top:1px solid var(--line)}
.inline-blank{display:inline-block;max-width:190px;min-height:34px;margin:0 5px;padding:3px 8px;border:1px solid #9ab7ba;background:#f2f7f7;color:var(--ink);font:14px/1.5 "Segoe UI",Arial,sans-serif;vertical-align:baseline}
.click-word{cursor:pointer;border-radius:3px}
.click-word:hover,.click-word:focus-visible{background:#ddebef;outline:1px solid #8aaeb6}
dialog{width:min(480px,92vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 16px 70px #1b29322b}
dialog::backdrop{background:#1c28394d}
dialog label{display:block;margin:12px 0}
dialog input,dialog select{display:block;width:100%}
.dismiss{float:right;min-height:36px;width:36px;padding:0;border:0}
.word-dialog-heading{display:flex;align-items:center;gap:14px;clear:both}
.word-dialog-heading h2{font-size:28px}
.word-definition{white-space:pre-line;margin:20px 0;font-size:16px}
.word-sample{font:16px/1.8 "Segoe UI",Arial,sans-serif;margin-top:16px}
#word-detail-body{max-height:50dvh;overflow:auto;margin:16px 0}
#collect-word{width:100%}
.voice-settings{margin-top:24px;display:grid;gap:12px}
.voice-settings h2{display:flex;align-items:center;gap:10px}
.voice-settings select{width:100%;padding:10px;border:1px solid var(--line)}
.voice-settings>button{justify-self:start}
.level-summary{margin-top:20px}
.level-summary p{margin:14px 0;font-size:14px}
.mastery-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}
.mastery-counts strong,.mastery-counts span{display:block}
.mastery-counts strong{font-size:28px}
.mastery-counts span{font-size:14px;color:var(--muted)}
.all-level-progress{margin-top:24px}
.all-level-progress .tint{margin-top:12px}
.upgrade-note{margin-top:20px}
details>summary{cursor:pointer;min-height:44px;padding-top:8px}
.extra-practice .row{margin-top:12px}
footer{margin-top:46px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px}
.empty-state{padding:24px;color:var(--muted)}
.word-star .ui-icon{width:16px;height:16px}
@media(max-width:850px){
  body{padding-left:88px}
  header{width:88px}
  header>div{padding:24px 8px}
  main{padding:30px 24px 50px}
  .home-study-grid{grid-template-columns:1fr}
  .home-mission .start-area{margin-top:0}
  .exam-resume{grid-template-columns:1fr auto;gap:16px}
  .exam-resume .completion-progress{grid-column:1/-1;grid-row:2}
  .paper-table th,.paper-table td{padding:14px 12px}
}
@media(max-width:600px){
  body{padding-left:0}
  header{position:sticky;top:0;width:auto;height:auto;border-right:0;border-bottom:1px solid var(--line)}
  header>div{min-height:0;padding:6px 8px;display:block}
  header .brand{display:none}
  header nav{display:flex;flex-direction:row;gap:3px;justify-content:space-between}
  header nav button{min-height:59px;padding:7px 4px;font-size:12px;gap:3px}
  header nav .ui-icon{width:20px;height:20px}
  header nav button:last-child{margin-top:0}
  main{padding:24px 16px 40px}
  .page-heading{align-items:flex-start;margin-bottom:22px}
  .level-label{font-size:12px;padding-top:10px}
  .page-heading .eyebrow{font-size:12px}
  .daily-one,.home-mission,.exam-resume,.panel,.round-card,.exam-sheet{padding:22px}
  .home-study-grid{gap:18px}
  .level-picker{grid-template-columns:repeat(2,1fr)}
  .level-picker button{padding:20px 16px}
  .level-picker strong{font-size:20px}
  .dash-heading{align-items:center}
  .dash-heading h1{font-size:28px}
  .dash-heading button{font-size:12px;padding:7px 10px}
  .exam-daily{padding:20px;gap:14px}
  .exam-daily>div{flex-basis:100%}
  .exam-daily .primary{margin-left:auto}
  .exam-filters{flex-wrap:wrap;gap:12px}
  .exam-filters button{font-size:14px;padding:8px 12px}
  .paper-table th,.paper-table td{padding:12px 8px}
  .paper-table th{font-size:12px}
  .paper-table td:first-child{font-size:14px}
  .paper-table td:nth-child(2){font-size:12px}
  .paper-table small{font-size:12px}
  .paper-table button{min-width:0;width:100%;font-size:12px;padding:8px 6px}
  .paper-progress-label{font-size:12px;gap:4px}
  .paper-table td:nth-child(3){width:33%}
  .exam-toolbar{gap:10px}
  .exam-toolbar button{font-size:12px;padding:8px}
  .exam-resume{grid-template-columns:1fr}
  .exam-resume>.primary{width:100%;grid-row:3}
  .resume-heading h2{font-size:20px}
  .exam-resume .completion-progress{grid-row:2}
  .saved-word>summary{display:block}
  .saved-word>summary span{display:block;max-width:100%}
  .saved-word .row{display:block}
  .saved-word select{width:100%;padding:9px;margin-bottom:8px}
  .exam-ability{grid-template-columns:1fr 1.4fr}
  .mastery-counts{gap:8px}
  .mastery-counts strong{font-size:20px}
  .mastery-counts span{font-size:12px}
  .study-stages{gap:8px}
  .study-stages span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){progress::-webkit-progress-value{transition:none}}

.home-mission>.completion-progress{display:block}.progress-caption>span,.progress-caption>b{white-space:nowrap}.home-mission .progress-caption{display:flex;justify-content:space-between;margin-bottom:10px}.completion-progress>progress{width:100%}

@media(max-width:600px){header nav{flex-wrap:nowrap}header nav button{width:auto;flex:1;min-width:0}}

.home-mission>.start-area{display:block}.home-mission progress::-webkit-progress-value,.completion-progress progress::-webkit-progress-value{background:var(--green)}.home-mission progress::-moz-progress-bar{background:var(--green)}

.study-rating{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:26px}.study-rating>button{min-height:50px}.learning-complete-actions{margin-top:24px}.self-rating-note{font-size:14px;margin-top:20px}.inline-blank{max-width:100%;text-overflow:ellipsis}@media(max-width:600px){header{position:fixed;top:auto;bottom:0;border-bottom:0;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}body{padding-bottom:0}.inline-blank{font-size:14px}.study-rating{gap:12px}}

@media(max-width:600px){header{left:0;right:0;width:100%}}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.exit-control{width:40px;height:40px;min-height:40px;flex:0 0 40px;padding:8px;background:white;border:1px solid var(--line);border-radius:50%}
.exam-header{display:flex;align-items:center;gap:16px}
.exam-header .exit-control{align-self:flex-start;margin-top:3px}
.exam-header h1{font-size:clamp(23px,3vw,32px)}
.exam-intro{color:var(--muted);font-size:14px;margin:0 0 16px}
.daily-random{margin:12px 0 20px}
.daily-random>summary{font-size:14px;color:var(--muted)}
.exam-start-actions{display:grid;gap:7px;justify-items:stretch}
.paper-table .compact-button{font-size:12px;min-height:30px;padding:3px 8px;background:transparent;border:0;color:var(--muted)}
.exam-stage-track{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:22px 0 12px}
.exam-stage-track button{position:relative;display:flex;flex-direction:column;gap:3px;padding:10px 3px 13px;background:#fff;border:1px solid var(--line);border-radius:9px;min-width:0}
.exam-stage-track button>span{font-size:14px;color:var(--muted)}
.exam-stage-track button>b{font-size:12px;font-weight:600;white-space:nowrap}
.exam-stage-track button>small{font-size:12px;font-weight:400}
.exam-stage-track button>i{position:absolute;bottom:0;left:0;right:0;height:4px;border-radius:0 0 8px 8px;background:linear-gradient(to right,var(--green) var(--stage-percent),#e7ebed var(--stage-percent))}
.exam-stage-track .current{border-color:var(--green);background:#f0f6f6}
.exam-stage-track .complete{color:var(--green)}
.exam-stage-track button:disabled{cursor:default;opacity:.48}
.exam-toolbar{margin:12px 0}
.exam-toolbar>span{max-width:58%;font-size:12px}
.reading-preferences{margin:12px 0}
.reading-preferences>summary{font-size:14px;color:var(--muted)}
.reading-preferences>div,.reading-settings{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.reading-settings{margin-top:24px}
.reading-settings h2,.reading-settings p{width:100%}
.reading-preferences label,.reading-settings label{font-size:14px}
.reading-preferences select,.reading-settings select{padding:6px 8px;border:1px solid var(--line);background:white;margin-left:8px}
.exam-mode-full .exam-option{padding:8px 10px;gap:10px}
.exam-mode-full .exam-option>button{font-size:14px;flex-basis:40px;padding:6px;min-height:40px}
.exam-mode-full .exam-option>div{font-size:var(--reading-size,18px);padding-top:4px}
.exam-passage,.exam-stem,.context-sentence,.word-sample,.dict-example,.round-card p[lang=en]{font-size:var(--reading-size,18px);line-height:1.95}
body[data-reading-font=exam] .exam-passage,body[data-reading-font=exam] .exam-stem,body[data-reading-font=exam] .exam-option>div,body[data-reading-font=exam] .context-sentence,body[data-reading-font=exam] [lang=en],body[data-reading-font=exam] .word-sample,body[data-reading-font=exam] .dict-example{font-family:"Times New Roman","PMingLiU","Noto Serif TC",serif}
.flash-stages{display:grid;gap:12px}
.flash-stages>section{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:18px;padding:20px 24px;background:white;border:1px solid var(--line);border-radius:14px}
.flash-stages h2{font-size:20px}
.flash-stages .completion-progress{margin:12px 0 0}
.stage-number{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf1f2;color:var(--green);font-size:14px}
.flash-stages .muted{font-size:14px}
.placement-question{text-align:center}
.placement-question h2{font-size:42px;margin:24px 0}
.placement-question .choices{display:grid;gap:12px;margin-top:24px}
.placement-question .choices button{text-align:left;justify-content:flex-start;font-weight:400}
.placement-scores{margin:22px 0}
.level-welcome .level-picker{margin-top:22px}
.placement-scores .completion-progress{margin:14px 0}
@media(max-width:600px){
  .exam-stage-track{gap:4px;margin:18px 0 10px}
  .exam-stage-track button{padding:7px 2px 11px;gap:2px}
  .exam-stage-track button>b{font-size:12px;letter-spacing:-.06em}
  .exam-stage-track button>small{font-size:12px}
  .exam-stage-track button>span{font-size:12px}
  .exam-toolbar{gap:8px;flex-wrap:wrap}
  .exam-toolbar>span{max-width:none;flex-basis:calc(100% - 114px)}
  .exam-toolbar>progress{order:3;flex-basis:100%}
  .exam-toolbar>button{margin-left:auto}
  .paper-table button{min-width:0}
  .paper-table .compact-button{font-size:12px;min-height:28px}
  .flash-stages>section{padding:18px 14px;gap:10px;grid-template-columns:28px 1fr auto}
  .flash-stages .stage-number{width:26px;height:26px;font-size:12px}
  .flash-stages h2{font-size:16px}
  .flash-stages button{font-size:14px;padding:8px 12px}
  .exam-mode-full .exam-option>button{min-height:44px;flex-basis:44px}
  .reading-settings{gap:12px}
  .placement-question h2{font-size:34px;overflow-wrap:anywhere}
}

/* Quiet colour cues keep study, testing and progress easy to distinguish. */
:root{--paper:#f6f7fa;--blue:#426d9d;--violet:#7d6ca0;--amber:#a77b3c;--mint:#4f8070;--serif:"Times New Roman","Microsoft JhengHei","Noto Sans TC",Arial,sans-serif}
body:not([data-reading-font=default]),body[data-reading-font=exam] #app *,body[data-reading-font=exam] header *,body[data-reading-font=exam] footer *,body[data-reading-font=exam] dialog *{font-family:var(--serif)}
body[data-reading-font=default]{font-family:"Segoe UI","Microsoft JhengHei",Arial,sans-serif}
header nav button:nth-child(1) .ui-icon{color:var(--mint)}
header nav button:nth-child(2) .ui-icon{color:var(--blue)}
header nav button:nth-child(3) .ui-icon{color:var(--violet)}
header nav button:nth-child(4) .ui-icon{color:var(--amber)}
header nav button:nth-child(5) .ui-icon{color:#ad6b78}
.daily-one{background:linear-gradient(135deg,#fff 70%,#edf3fd);border-top:3px solid #b4c9e8}
.home-mission{background:linear-gradient(135deg,#fff 70%,#ecf5ef);border-top:3px solid #b6d3c2}
.daily-one .section-icon{background:#e8effa;color:var(--blue)}
.home-mission .section-icon{background:#eaf3ed;color:var(--mint)}
body progress{accent-color:var(--meter-color,var(--green))}
body progress::-webkit-progress-value,body .completion-progress progress::-webkit-progress-value{background:var(--meter-color,var(--green));transition:width .6s ease,background .6s ease;animation:meter-tint .65s ease both}
body progress::-moz-progress-bar,body .completion-progress progress::-moz-progress-bar{background:var(--meter-color,var(--green));transition:background .6s ease}
@keyframes meter-tint{from{background:var(--meter-from,var(--meter-color))}to{background:var(--meter-color,var(--green))}}
.exam-stage-track button>i{background:linear-gradient(to right,var(--stage-color,var(--green)) var(--stage-percent),#e7ebed var(--stage-percent));transition:background .6s}
.suggestions-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.suggestions-heading>button{font-size:14px;white-space:nowrap;flex-shrink:0}
.word-suggestions>p{margin-top:5px}
.suggestion-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.suggestion-list button{min-width:0;max-width:100%;width:100%;padding:16px;text-align:left;gap:10px;border:1px solid #dce5ee;background:#f3f7fc}
.suggestion-list button:nth-child(2){background:#f5f2fa;border-color:#e3deed}
.suggestion-list button:nth-child(3){background:#faf5ed;border-color:#ede1d0}
.suggestion-list button>span{min-width:0;flex:1}
.suggestion-list strong{display:block;font-size:20px;font-weight:600;overflow-wrap:anywhere}
.suggestion-list small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;margin-top:4px;max-width:100%}
.suggestion-list .ui-icon{flex:0 0 16px}
.icon-button{width:44px;height:44px;padding:10px;background:white;border:1px solid var(--line);border-radius:50%;color:var(--muted)}
.assessment-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.assessment-metrics>section{position:relative;min-width:0;padding:22px;border:1px solid #dbe5ed;border-radius:14px;background:#eff5fb}
.assessment-metrics>section:nth-child(2){background:#f3f0f9;border-color:#e6def1}
.assessment-metrics>section:nth-child(3){background:#f9f2e8;border-color:#ece1cf}
.assessment-metrics>section:nth-child(4){background:#edf5ef;border-color:#dbe9df}
.assessment-metrics .ui-icon{color:var(--blue);margin-bottom:16px}
.assessment-metrics>section:nth-child(2) .ui-icon{color:var(--violet)}
.assessment-metrics>section:nth-child(3) .ui-icon{color:var(--amber)}
.assessment-metrics>section:nth-child(4) .ui-icon{color:var(--mint)}
.assessment-metrics strong,.assessment-metrics span{display:block}
.assessment-metrics strong{font-size:28px;line-height:1.3;font-weight:600}
.assessment-metrics span{font-size:14px;color:var(--muted);margin-top:5px}
.status-table{width:100%;border-collapse:collapse;margin:22px 0;font-size:14px;text-align:left}
.status-table th,.status-table td{padding:12px 8px;border-bottom:1px solid var(--line);font-weight:400}
.status-table thead{color:var(--muted);font-size:12px}
.status-table tbody tr:first-child th{color:#ac626c}
.status-table tbody tr:nth-child(2) th{color:var(--blue)}
.status-table tbody tr:last-child th{color:var(--mint)}
.weak-entry{background:#fbf0f1;color:#914f59;border-color:#ebd3d8}
.schedule-note{margin-top:16px;color:var(--muted);font-size:14px}
.schedule-note p{font-size:14px}
.level-summary h2>.ui-icon,.papers-heading>.ui-icon{margin-right:9px;color:var(--violet)}
.weak-list{display:grid;gap:10px;margin:20px 0}
.weak-list>.panel{padding:16px 20px}
.weak-list summary{display:flex;justify-content:space-between;gap:14px;font-size:20px}
.weak-list summary small{font-size:12px;white-space:nowrap;align-self:center}
.weak-pagination{justify-content:center;margin-top:24px}
.weak-list p{margin:12px 0}
.word-test-entry{display:flex;align-items:center;gap:18px;padding:22px 26px;margin-bottom:30px;border:1px solid #e1daed;border-radius:16px;background:#f6f3fb}
.word-test-entry .section-icon{background:#e9e1f5;color:var(--violet);margin:0;flex:0 0 42px}
.word-test-entry>div{flex:1;min-width:0}
.word-test-entry h2{font-size:20px}
.word-test-entry p{font-size:14px;color:var(--muted);margin-top:4px}
.word-test-entry>button{flex-shrink:0}
.papers-heading{margin-bottom:12px}
.three-ratings{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.three-ratings>button{flex-direction:column;gap:8px;padding:14px 5px;font-size:14px;font-weight:500}
.rating-unknown{color:#a2606a;background:#faf0f2;border-color:#ead3d8}
.rating-good{color:#436e99;background:#edf3fa;border-color:#d4e2ee}
.rating-mastered{color:#447765;background:#edf5ee;border-color:#d4e5d9}
.rating-help{font-size:12px;color:var(--muted);margin-top:16px}
.learning-word{font-weight:750;color:#234f73;background:#edf3fa;padding:0 2px;border-radius:3px}
.question-instruction{font-size:14px;color:var(--muted);margin:18px 0 12px}
.round-card .sentence-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
.round-card .sentence-choices button{display:flex;justify-content:flex-start;align-items:center;gap:14px;min-width:0;padding:13px 16px;font-size:20px;overflow-wrap:anywhere}
.choice-letter{display:grid;place-items:center;flex:0 0 27px;height:27px;background:#eef1f6;color:#66809e;border-radius:50%;font-size:12px}
.word-score{text-align:center;background:linear-gradient(135deg,#fff,#f1f6fb)}
.word-score .section-icon{display:grid;margin:0 auto 8px;background:#e8eff8;color:var(--blue)}
.score-percent{display:block;font-size:64px;line-height:1.2;color:var(--green);font-weight:600}
.score-percent small{font-size:28px;color:inherit;margin-left:3px}
.word-score>.completion-progress{max-width:440px;margin:22px auto}
.word-score>.row{justify-content:center;margin-top:24px}
.word-score>.muted{font-size:14px}
.word-quiz-review{margin-top:28px}
.word-quiz-review>.word-review{margin-top:12px}
.word-review summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600;font-size:20px}
.word-review summary .ui-icon{width:18px;color:var(--mint)}
.answer-status{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.word-review p{margin:14px 0}
.word-option-notes{display:grid;grid-template-columns:minmax(70px,auto) 1fr;gap:8px 14px;border-top:1px solid var(--line);padding-top:14px;font-size:14px}
.word-option-notes dd{margin:0;color:var(--muted)}
.settings-heading{margin-bottom:24px}.settings-heading .dash-heading{justify-content:flex-start;margin:0}
.settings-level,.settings-heading~.panel,.settings-heading~.voice-settings{margin-top:20px;max-width:none}
.settings-level{display:flex;align-items:center;justify-content:space-between;gap:16px}
.settings-heading~.reading-settings{display:flex;flex-wrap:wrap}
@media(max-width:600px){
  .suggestion-list{grid-template-columns:1fr;gap:8px}
  .suggestion-list button{padding:13px 16px}.suggestion-list strong{font-size:20px}
  .assessment-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .assessment-metrics>section{padding:18px}.assessment-metrics .ui-icon{margin-bottom:10px}
  .status-table{font-size:14px}.status-table th,.status-table td{padding:11px 4px}
  .word-test-entry{padding:20px;flex-wrap:wrap;gap:12px}
  .word-test-entry>div{flex-basis:calc(100% - 56px)}
  .word-test-entry>button{width:100%}
  .round-card .sentence-choices{grid-template-columns:1fr;gap:10px}
  .round-card .sentence-choices button{padding:12px 16px;min-height:52px}
  .three-ratings{gap:8px}.three-ratings>button{font-size:14px;min-height:78px}
  .progress-caption{gap:6px}.progress-caption small{font-size:12px}
  .settings-level{align-items:flex-start}.settings-level h2{font-size:20px}
  .word-option-notes{font-size:14px}.weak-list summary{font-size:20px}
}
@media(prefers-reduced-motion:reduce){body progress::-webkit-progress-value{animation:none;transition:none}.exam-stage-track button>i{transition:none}}

.two-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}
.two-ratings>button{min-height:60px;gap:10px;font-weight:500}
.level-completion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.level-completion{padding:16px 18px;border-radius:12px;background:#f7f8fb;border:1px solid #e9ecf1}
.level-completion:nth-child(3n+2){background:#f7f4fa;border-color:#ebe5f1}
.level-completion:nth-child(3n){background:#f1f7f4;border-color:#e2ede7}
.level-completion.current-level{border-color:#9cb4ce}
.level-completion h3{font-size:16px}.level-completion h3 small{font-size:12px;font-weight:400;margin-left:6px}
.level-completion .completion-progress{margin:12px 0 0}.level-completion .progress-caption{font-size:12px}
.level-completion .progress-caption small{font-size:12px}.level-completion progress{height:6px}
.weak-summary{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.weak-summary>div{display:flex;align-items:center;gap:12px}.weak-summary .section-icon{margin:0;background:#f7e9ed;color:#a96676}
.weak-summary h2{font-size:20px}.weak-summary h2 small{font-size:14px;font-weight:400}
.word-test-entry .completion-progress{margin:12px 0 4px;max-width:390px}.word-test-entry .progress-caption{font-size:12px}
progress[hidden],#exam-progress{display:none}
.exam-stage-track{gap:7px}.exam-stage-track button{border:0;background:transparent;padding:8px 2px 13px;border-radius:0}
.exam-stage-track button>i{height:6px;border-radius:5px}.exam-stage-track .current{background:transparent;color:var(--blue)}
.exam-stage-track button:disabled{opacity:.62}.exam-stage-track button.current{opacity:1}
.exam-stage-track button>b{font-weight:500}.exam-toolbar{justify-content:space-between}
.exam-history p{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.history-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.history-actions>button{font-size:12px}
.delete-attempt{border-color:transparent;background:transparent;color:#a46c78;width:38px;min-height:38px;height:38px}
.delete-attempt .ui-icon{width:18px}.delete-notice{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#f2f5f9;border-radius:12px;margin-bottom:18px;font-size:14px}
@media(max-width:600px){
  .level-completion-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.level-completion{padding:14px 12px}
  .level-completion .progress-caption small{display:none}.level-completion h3{font-size:14px}.level-completion h3 small{font-size:12px;margin-left:4px}
  .weak-summary{padding:20px 18px}.weak-summary h2{font-size:16px}.weak-summary>.section-icon{display:none}
  .exam-history p{flex-wrap:wrap}.history-actions{margin-left:auto}
  .word-test-entry .progress-caption{flex-wrap:wrap}.two-ratings>button{min-height:62px}
}
.word-suggestions{background:transparent;border:0;box-shadow:none;padding:0;margin-top:28px}

.page-heading h1>.ui-icon{width:25px;height:25px;margin-right:8px;color:var(--violet)}
.word-star{max-width:100%}.word-star.saved{color:var(--mint)}
.save-label{display:block;max-width:24ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.collection-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 10px;margin-bottom:12px;scrollbar-width:thin}
.collection-tabs>button{flex-shrink:0;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;padding:9px 13px}
.collection-tabs .ui-icon{width:18px;height:18px}
.create-folder{margin-bottom:20px;font-size:14px;color:var(--muted)}
.create-folder summary{display:flex;align-items:center;gap:8px;min-height:40px;padding:0}
.create-folder form{margin-top:12px}.create-folder input{flex:1;min-width:0;padding:10px 12px}
.collection-folder-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.collection-folder-heading h2{overflow-wrap:anywhere}
.folder-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.folder-actions>button{font-size:12px;padding:7px 10px}
.folder-actions .icon-button{padding:9px}
.folder-actions .default-folder{border:0;background:#edf5ef;color:var(--mint);font-size:12px}
.collection-bulk{display:grid;grid-template-columns:auto 1fr minmax(120px,180px) auto;align-items:center;gap:12px;background:#f6f7fa;padding:12px;border-radius:10px;margin-bottom:12px}
.collection-bulk label{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.collection-bulk input,.saved-row>input{width:17px;height:17px;accent-color:var(--green)}
.collection-bulk>span{font-size:12px;color:var(--muted)}
.collection-bulk select{width:100%;min-width:0;padding:9px 8px;background:white;border:1px solid var(--line);font-size:14px}
.collection-bulk>button{font-size:14px}
.saved-row{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;gap:8px;border-bottom:1px solid var(--line);padding:12px 0}
.saved-row>input{margin-top:17px}
.saved-row>.saved-word{border:0;padding:0;margin:0;min-width:0;background:transparent}
.saved-row summary{padding:10px 0;min-height:44px;display:flex;gap:14px;align-items:center;font-size:20px}
.saved-row summary strong{font-weight:600;overflow-wrap:anywhere}
.saved-row summary>span{font-size:14px;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-details .word-definition{font-size:14px}.saved-details .word-sample{font-size:16px}
.collection-pagination{justify-content:center;margin-top:24px;font-size:14px}
.collection-notice{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100vw - 36px);padding:12px 20px;border:1px solid #d8e4e3;border-radius:12px;background:#f1f7f5;color:#356658;font-size:14px;box-shadow:0 5px 22px #263b4012;pointer-events:none;overflow-wrap:anywhere}
#app>.page-heading,#app>.focused,#app>.home-study-grid,#app>.assessment-metrics,#app>.exam-workspace,#app>.collection-tabs,#app>.collection-panel{animation:page-arrive .24s cubic-bezier(.22,.75,.3,1) both}
body{--page-entry:12px}body[data-motion=back]{--page-entry:-12px}
@keyframes page-arrive{from{opacity:.8;transform:translateX(var(--page-entry))}to{opacity:1;transform:translateX(0)}}
@media(max-width:600px){
  .collection-folder-heading{display:block}.collection-folder-heading h2{font-size:20px}.folder-actions{margin-top:10px}
  .collection-panel{padding:20px 16px}.collection-bulk{grid-template-columns:1fr auto;gap:8px}
  .collection-bulk>select{grid-row:2;grid-column:1}.collection-bulk>button{grid-row:2;grid-column:2}
  .saved-row summary{display:block}.saved-row summary>span{display:block;max-width:100%;margin-top:4px}
  .save-label{max-width:21ch}.collection-notice{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){#app>*{animation:none!important}}
.rename-collection,.folder-delete-prompt{margin:0 0 18px;padding:16px;background:#f7f2f4;border:1px solid #eadde2;border-radius:10px;font-size:14px}
.rename-collection label{width:100%}.rename-collection input{flex:1;min-width:130px;padding:9px 12px;background:white;border:1px solid var(--line)}
.folder-delete-prompt p{margin-bottom:12px}.folder-delete-prompt button{margin-right:8px;font-size:14px}

/* Compact actions and quiet, directional motion. */
:root{--paper:#f5f5f7;--line:#e5e7eb}
main{overflow-x:clip}
.panel,.daily-one,.home-mission,.exam-resume{box-shadow:0 2px 12px #202b3903}
button{transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s cubic-bezier(.2,.7,.3,1);-webkit-tap-highlight-color:transparent}
button:active:not(:disabled){transform:scale(.97)}
header{background:#fffffff0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
header nav button.active{background:#eaf1f2}
.home-study-grid{align-items:start}
.home-mission{display:flex;flex-direction:row;align-items:center;gap:20px;border-top:1px solid #dce8e0;padding:24px}
.home-mission>.mission-content{display:block;flex:1;min-width:0}.mission-heading{display:flex;align-items:center;gap:10px}
.mission-heading h2{font-size:20px}.home-mission .section-icon{width:32px;height:32px;flex:0 0 32px;margin:0}
.home-mission .section-icon .ui-icon{width:19px;height:19px}
.mission-content>p{font-size:14px;color:var(--muted);margin:10px 0}
.mission-content>.completion-progress{margin:14px 0 0}.mission-content .progress-caption{font-size:12px;gap:6px}
.mission-content .progress-caption small{font-size:12px}
.square-action,.exam-resume>.square-action{display:grid;place-items:center;width:56px;height:56px;min-width:56px;min-height:56px;flex:0 0 56px;padding:0;border-radius:16px;box-shadow:0 3px 8px #285d6512}
.square-action .ui-icon{width:23px;height:23px}
.exam-resume{grid-template-columns:minmax(0,1fr) 56px;gap:12px 20px;padding:22px 24px;margin-top:20px}
.exam-resume>.resume-heading{grid-column:1;grid-row:1;gap:12px}
.exam-resume .resume-heading .section-icon{width:32px;height:32px;flex:0 0 32px}
.exam-resume .resume-heading h2{font-size:20px}.exam-resume .resume-heading p{font-size:12px;line-height:1.6;margin-top:4px}
.exam-resume>.completion-progress{grid-column:1;grid-row:2;margin:0}
.exam-resume>.square-action{grid-column:2;grid-row:1 / span 2;align-self:center}
.exam-resume .progress-caption{font-size:12px;gap:6px}.exam-resume .progress-caption small{font-size:12px}
.collection-bulk{display:flex;flex-wrap:wrap;gap:10px 16px;padding:0 0 14px;background:transparent;border-bottom:1px solid var(--line);border-radius:0}
.collection-bulk>span{margin-left:auto}.bulk-actions{display:flex;align-items:center;gap:8px;flex-basis:100%;padding:12px;border-radius:12px;background:#f4f6f9;animation:selection-arrive .18s ease both}
.bulk-actions[hidden],#bulk-count[hidden]{display:none!important}
.bulk-actions>select{flex:1;max-width:320px;min-width:0}.bulk-actions>button{font-size:14px;flex-shrink:0}
.bulk-actions .link{padding:6px 8px;font-size:12px;color:var(--muted)}
@keyframes selection-arrive{from{opacity:.65;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}
body[data-quiz-feedback=shown] #app>.focused{animation:none}
.round-card .sentence-choices button:disabled{opacity:1;color:var(--muted);cursor:default}
.round-card .sentence-choices .correct-choice:disabled{border-color:#8cb6a0;background:#eef7f0;color:#34684c}
.round-card .sentence-choices .wrong-choice:disabled{border-color:#d1a1a9;background:#fbf1f3;color:#9a5865}
.quiz-feedback{margin-top:26px;padding-top:22px;border-top:1px solid var(--line);animation:feedback-arrive .16s ease both}
.quiz-feedback-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.quiz-feedback-heading h2{display:flex;align-items:center;gap:9px;font-size:20px;color:var(--mint)}
.feedback-wrong .quiz-feedback-heading h2{color:#a26472}.quiz-feedback-heading>button{font-size:14px;padding:8px 13px}
.feedback-answer{font-size:16px;margin:14px 0}.feedback-answer strong{color:var(--green)}
.quiz-feedback>p[lang=en]{font-size:var(--reading-size,18px);line-height:1.85}
.feedback-translation{color:var(--muted);font-size:14px;margin:12px 0 16px}
.quiz-feedback .word-option-notes{margin-top:18px}.inline-quiz-score{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}
.inline-quiz-score>span{color:var(--muted);font-size:14px}.inline-quiz-score>strong{display:block;font-size:48px;line-height:1.3;color:var(--green);margin:4px 0}
.inline-quiz-score strong small{font-size:20px;color:inherit}.inline-quiz-score>p{font-size:14px;color:var(--muted);margin-bottom:16px}
@keyframes feedback-arrive{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover) and (pointer:fine){.square-action:hover{transform:translateX(2px);box-shadow:0 4px 12px #285d6525}}
@media(max-width:600px){
  .home-mission{padding:20px;gap:16px}.mission-heading h2{font-size:20px}.mission-content>p{font-size:12px}
  .square-action,.exam-resume>.square-action{width:52px;height:52px;min-width:52px;min-height:52px;flex-basis:52px;border-radius:15px}
  .exam-resume{grid-template-columns:minmax(0,1fr) 52px;gap:12px 16px;padding:20px}
  .exam-resume .resume-heading h2{font-size:16px}.exam-resume .resume-heading{gap:10px}
  .exam-resume .resume-heading p{font-size:12px}.bulk-actions{gap:6px;padding:10px}
  .bulk-actions>button{padding:8px 10px}.bulk-actions .link{padding:6px}.collection-bulk>span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}.bulk-actions,.quiz-feedback{animation:none}button:active:not(:disabled),.square-action:hover{transform:none}}

.word-test-entry{display:flex;flex-wrap:nowrap;gap:18px}.word-test-entry>.section-icon{width:32px;height:32px;flex-basis:32px}
.word-test-entry>.square-action{width:56px;height:56px;flex:0 0 56px;min-width:56px;padding:0}
.word-test-entry .progress-caption{flex-wrap:wrap;gap:4px}.word-test-entry .completion-progress{margin-top:10px}
body[data-screen=studyRound] #app>.focused{animation:none}
body[data-screen=studyRound] .round-card{animation:study-card-arrive .18s cubic-bezier(.2,.7,.3,1) both}
body[data-quiz-feedback=shown] .round-card{animation:none;-webkit-user-select:none;user-select:none}
@keyframes study-card-arrive{from{opacity:.85;transform:translateX(6px)}to{opacity:1;transform:translateX(0)}}
.story-progress{margin:18px 0 24px}.story-segments{display:flex;gap:5px}
.story-segments>span{position:relative;flex:1;height:5px;overflow:hidden;border-radius:4px;background:#e4e8ed}
.story-segments i{display:block;width:var(--story-fill);height:100%;border-radius:4px;background:var(--green)}
.feedback-timer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 14px}
.feedback-timer>span{font-size:12px;color:var(--muted)}
.feedback-timer>.icon-button{width:36px;height:36px;min-height:36px;flex-shrink:0;padding:8px;background:#f4f6f8;border:0}
.feedback-timer .ui-icon{width:17px;height:17px}.quiz-feedback{touch-action:pan-y}
@media(max-width:600px){
  .word-test-entry{position:relative;gap:14px;padding:20px}.word-test-entry>.section-icon{display:none}
  .word-test-entry>div{flex:1;flex-basis:auto}.word-test-entry>.square-action{width:52px;height:52px;min-width:52px;flex-basis:52px}
  .word-test-entry .progress-caption small{font-size:12px}.story-segments{gap:4px}
}
@media(prefers-reduced-motion:reduce){body[data-screen=studyRound] .round-card{animation:none}}

/* Colour follows the task, while text and reading surfaces stay quiet. */
body{--action:#397c75}body[data-screen=levels],body[data-screen=levelWords]{--action:#477fa6}
body[data-screen=exams],body[data-screen=placement]{--action:#7665aa}
body[data-screen=notebook]{--action:#a77648}body[data-screen=analysis],body[data-screen=settings]{--action:#637db2}
body[data-screen=studyRound]{--action:#477e9b}
body .primary,body .exam-workspace .primary{background:var(--action);border-color:var(--action);color:white}
button:active:not(:disabled){background:color-mix(in srgb,var(--action) 13%,white);border-color:var(--action)}
body .primary:active:not(:disabled),body .exam-workspace .primary:active:not(:disabled){background:color-mix(in srgb,var(--action) 83%,black);color:white}
button:focus-visible{outline-color:color-mix(in srgb,var(--action) 55%,white)}
button.level-completion{display:block;text-align:left;width:100%;padding:16px 18px;box-shadow:none;cursor:pointer}
.level-completion h3{display:flex;align-items:center;gap:7px}.level-completion h3 small{margin:0;flex:1}
.level-completion h3>.ui-icon{width:16px;height:16px;opacity:.55}
button.level-completion:nth-child(1){background:#eff5fc;border-color:#dbe6f4}
button.level-completion:nth-child(2){background:#f4effb;border-color:#e4daf3}
button.level-completion:nth-child(3){background:#edf6f0;border-color:#d9eade}
button.level-completion:nth-child(4){background:#fff4e9;border-color:#f0e1ce}
button.level-completion:nth-child(5){background:#fbedf2;border-color:#eed9e2}
button.level-completion:nth-child(6){background:#edf6f7;border-color:#d8e8eb}
button.level-completion:active{transform:scale(.98);filter:saturate(1.18);border-color:var(--action)}
.placement-entry{display:flex;align-items:center;gap:18px;margin-top:22px;background:linear-gradient(120deg,#f6f1fb,#eff5fc)}
.placement-entry>.section-icon{margin:0;background:#e9dff6;color:#7b62a6}
.placement-entry>div{flex:1;min-width:0}.placement-entry h2{font-size:20px}.placement-entry p,.placement-help{font-size:14px;color:var(--muted);margin-top:6px}
.level-welcome>.primary{margin-top:8px}.level-welcome>h2{font-size:16px;margin-top:28px}
.placement-question .choices button{display:flex;align-items:center;gap:14px}
.placement-question .context-sentence{text-align:left}.placement-question .choices{margin-top:22px}
.placement-question>.link{margin-top:16px;font-size:14px}.placement-result p{margin:14px 0}
.placement-scores{margin-top:20px}.placement-scores article{padding:5px 0 13px;border-bottom:1px solid var(--line)}
.placement-scores article p{font-size:12px;color:var(--muted);margin-top:5px}.placement-scores details{margin-top:16px;font-size:14px}
.placement-scores details p{margin:12px 0}.placement-review{margin:20px 0}.placement-review article{margin:12px 0;font-size:14px}
.level-word-tools{display:flex;gap:12px}.level-word-tools input{flex:1;min-width:0;padding:12px 15px;border:1px solid var(--line);background:white}
.level-word-tools select{width:90px;padding:10px;background:#edf3fb;border:1px solid #dae5f2}
#level-word-count{font-size:12px;margin:18px 0 10px}.level-word-list{border:1px solid var(--line);background:white;border-radius:16px;padding:0 22px}
.level-word-list article{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}
.level-word-list article:last-child{border-bottom:0}.level-word-list article>div{min-width:0;flex:1}
.level-word-head{display:block;font-size:20px;font-weight:600;padding:0;text-align:left;min-height:32px;border:0;background:transparent;overflow-wrap:anywhere}
.level-word-list p{font-size:14px;color:var(--muted);margin-top:4px}.level-word-list .word-star{font-size:12px;max-width:45%;flex-shrink:0;padding:8px}
.level-word-list .save-label{max-width:16ch}
.quiz-feedback.inline-feedback{display:flex;align-items:center;gap:10px;border:0;padding:0;margin:10px 0 18px;animation:none}
.inline-verdict{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;color:var(--mint);flex:1}
.feedback-wrong .inline-verdict{color:#a55c70}.inline-feedback>.icon-button{width:36px;height:36px;min-height:36px;padding:8px;border:0;background:#edf2f7}
.next-inline{width:38px;height:38px;padding:8px;color:var(--action);border:1px solid #dce5ed;background:#f1f5fa}
.answer-fill{color:#327859;background:#edf7ef;border-bottom:2px solid #9bbda8;padding:0 3px;border-radius:3px}
.inline-translation{font-size:14px;line-height:1.7;color:var(--muted);margin:10px 0 16px}
.choice-body{flex:1;min-width:0}.choice-explanation{display:block;font-size:12px;font-weight:400;line-height:1.5;margin-top:3px;color:var(--muted)}
.choice-verdict{font-size:20px;flex-shrink:0}.wrong-choice .choice-verdict{color:#a55c70}
.quiz-feedback.inline-quiz-score{border:0;padding:0;margin:10px 0 18px}.inline-final-score{font-size:12px;color:var(--muted);white-space:nowrap}
.inline-final-score strong{font-size:20px;color:var(--action);margin-left:5px}.inline-feedback .square-action{width:40px;height:40px;min-width:40px;min-height:40px;flex-basis:40px;border-radius:12px}
@media(hover:hover) and (pointer:fine){
  button:hover:not(:disabled):not(.primary){background:color-mix(in srgb,var(--action) 7%,white);border-color:color-mix(in srgb,var(--action) 45%,white)}
  button.level-completion:hover{transform:translateY(-2px);box-shadow:0 5px 14px #35496b0b}
  body .primary:hover{background:color-mix(in srgb,var(--action) 90%,black)}
}
@media(max-width:600px){
  button.level-completion{padding:14px 12px}.level-completion h3{gap:4px}.level-completion h3>.ui-icon{width:13px}
  .placement-entry{padding:20px;gap:12px}.placement-entry>.section-icon{display:none}.placement-entry h2{font-size:20px}
  .placement-entry .square-action{flex:0 0 52px}.placement-entry p{font-size:12px}
  .level-word-list{padding:0 16px}.level-word-list article{gap:12px}.level-word-head{font-size:20px}
  .level-word-list .save-label{max-width:10ch}.level-word-list .word-star{font-size:12px}
  .round-card .sentence-choices button{padding:10px 14px;gap:11px}.choice-explanation{font-size:12px}
}
@media(prefers-reduced-motion:reduce){button.level-completion:hover,button.level-completion:active{transform:none}}
body .flash-action,body .primary.flash-action,.exam-workspace .flash-action{background:#ffe49a;border:1px solid #efcf76;color:#654a13}
.flash-action .ui-icon{width:17px;height:17px}.exam-start-actions>.flash-action{gap:5px}
body .flash-action:hover,body .primary.flash-action:hover{background:#ffda79;border-color:#dfbb57;color:#654a13}
body .flash-action:active:not(:disabled),body .primary.flash-action:active:not(:disabled){background:#f6ce65;border-color:#d9b34e;color:#59400d}
.exam-workspace:has(.exam-mode-lightning) .exam-header p{color:#88671b}
footer[hidden]{display:none!important}#warning:empty{display:none}#warning:not(:empty){margin-top:18px;padding:12px 16px;border-radius:10px;background:#fff4df;color:#775c2b;font-size:14px}
.resume-copy{min-width:0;flex:1}.resume-title{display:flex;align-items:center;gap:5px}.resume-title h2{flex:1;min-width:0}
.quiet-cancel{position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;flex:0 0 28px;padding:6px;border:0;border-radius:50%;color:#727272;background:#00000006}
.quiet-cancel::before{content:"";position:absolute;inset:-5px}.quiet-cancel .ui-icon{width:14px;height:14px}
.exam-header>.quiet-cancel{margin-left:auto;align-self:flex-start}.exam-header>div{flex:1;min-width:0}
.cancelled-exam-note{display:flex;align-items:center;gap:8px;margin:14px 0 -8px;color:var(--muted);font-size:12px}
.cancelled-exam-note .link{font-size:12px;min-height:34px;padding:4px 8px}.flash-tint{background:#fff1bd!important;color:#98701a!important}
.suggested-exam{background:linear-gradient(120deg,#fff,#fff9e9)}#exam-workspace #exam-suggestion-card{margin-bottom:28px}
.exam-reset-settings{margin-top:20px}.exam-reset-settings>summary{display:flex;align-items:center;gap:9px;font-size:20px;color:var(--ink)}
.exam-reset-settings>p{font-size:14px;color:var(--muted);margin:12px 0}.exam-reset-settings>label{display:block;font-size:14px;margin:14px 0 7px}
.exam-reset-settings>select{display:block;width:100%;padding:11px 12px;border:1px solid var(--line);background:white;margin-bottom:14px}
.reset-paper-button{background:#fbf0f2;border:1px solid #ead3da;color:#995568;font-size:14px}.reset-paper-button:disabled{opacity:.45}
#exam-reset-confirm .folder-delete-prompt{margin-top:16px}.reset-done{color:var(--mint)!important}
.hold-hint{font-size:12px;color:var(--muted);font-weight:400;white-space:nowrap}.round-card .sentence-choices button:disabled{pointer-events:none}
#vocab-results.suggestion-view{border:0;border-radius:0;background:transparent;overflow:visible}
#vocab-count:empty,#vocab-pagination:empty{display:none}
.suggestion-view .word-suggestions{margin-top:26px}.suggestions-heading h2{font-size:20px}.suggestions-heading>.link{padding:7px 10px;min-height:38px;color:var(--action);background:#edf3f9;border:1px solid #e0e8f0}
.suggestion-view .suggestion-list{gap:10px}.suggestion-view .suggestion-list button{border-radius:14px;padding:15px 18px}
.suggestion-view .suggestion-list small{font-size:14px;line-height:1.6}.suggestion-view .suggestion-list strong{font-weight:600}
.word-test-entry .completion-progress{margin:10px 0}.word-test-entry .completion-progress progress{height:5px}
.word-test-entry .progress-caption{margin-bottom:5px}
@media(max-width:600px){.hold-hint{font-size:12px}.inline-feedback{gap:7px}.resume-title h2{font-size:16px!important}.suggestion-view .suggestion-list button{padding:14px 16px}}
