@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-vietnamese-wght-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Lora Variable';font-style:normal;font-display:swap;font-weight:400 700;src:url(/fonts/lora-vietnamese-wght-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Lora Variable';font-style:normal;font-display:swap;font-weight:400 700;src:url(/fonts/lora-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Lora Variable';font-style:normal;font-display:swap;font-weight:400 700;src:url(/fonts/lora-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--ink:#241B1E;--muted:#5C5157;--green:#8F022C;--bg:#F8F6F4;--line:#E8E1DE;--accent:#8A5A0B}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button,.button{background:var(--green);color:white;border:0;border-radius:9px;padding:12px 20px;cursor:pointer;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:26px}
button:hover,.button:hover{filter:brightness(.94)}
button:disabled{opacity:.5;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d7a84f;outline-offset:3px}
aside{width:242px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:750;letter-spacing:-.5px}
.brandicon{background:var(--green);color:white;padding:0 11px;border-radius:11px;font-size:32px}
.brand small{display:block;font-size:8px;letter-spacing:1.6px;color:var(--muted);margin-top:3px}
.level{margin:36px 6px 25px;font-size:9px;letter-spacing:1.5px;color:var(--muted)}
.level b{display:block;font-size:13px;letter-spacing:0;color:var(--green);margin-top:8px}
nav{display:grid;gap:7px}
nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;color:#83797d;font-size:13px;border-radius:8px}
nav a>span{font-size:21px;width:22px}
nav a.active{background:#f4edf0;color:var(--green);font-weight:650}
nav em{font-size:8px;font-style:normal;background:#eee9f7;color:#7c6a9d;padding:2px 5px;border-radius:4px;margin-left:auto}
.sidebar-bottom{margin-top:auto;font-size:10px;color:var(--muted);padding:20px 5px 0}
.sidebar-bottom p{font-size:10px;line-height:1.6}
.sidebar-bottom a{color:var(--green)}
.live{display:inline-block;width:6px;height:6px;background:#2E8A57;border-radius:50%;margin-right:4px}
.workspace{margin-left:242px}
header{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:11px;color:var(--muted)}
header b{font-weight:500;color:var(--ink)}
.slash{margin:0 15px;color:#d0c8cb}
.avatar{height:33px;width:33px;background:#f4edf0;border:3px solid #fff;box-shadow:0 0 0 1px var(--line);border-radius:50%;display:grid;place-items:center;color:var(--green);font-size:10px;font-weight:700}
main{max-width:1350px;margin:auto;padding:34px 44px 22px}
.eyebrow{font-size:9px;letter-spacing:2px;font-weight:650;color:#8e8287}
h1{font-size:29px;line-height:1.3;letter-spacing:-.9px;margin:8px 0}
h2{font-size:20px;line-height:1.4}
h3{font-size:15px;margin:0 0 8px}
p{color:var(--muted)}
.pagehead{margin-bottom:25px}
.pagehead p{font-size:12px;margin:8px 0}
.hero{border-radius:15px;background:#7d0a2d;color:#fff;padding:32px 36px;display:flex;justify-content:space-between;overflow:hidden;min-height:284px;position:relative}
.hero h2{font-size:32px;line-height:1.3;letter-spacing:-.8px;margin:15px 0 12px;font-weight:600}
.hero p{font-size:11px;color:#ded1d7}
.pill{font-size:8px;letter-spacing:1.6px;background:#ffffff16;border:1px solid #ffffff28;border-radius:5px;padding:5px 8px;display:inline-block}
.light{background:#fdf2f7;color:#7a102e;font-size:11px;margin-top:10px;padding:10px 17px}
.hero-art{width:300px;position:relative;margin-right:20px}
.orbit{width:260px;height:260px;border:1px solid #ffffff12;border-radius:50%;position:absolute;top:0;left:0;box-shadow:0 0 0 32px #ffffff03,0 0 0 64px #ffffff03}
.art-card{position:absolute;width:142px;height:174px;padding:20px 24px;box-shadow:0 18px 30px #122d4025;border-radius:13px}
.art-card small{display:block;font-size:8px;letter-spacing:1px;margin-top:14px}
.back{background:#e9dce1;color:#7b333f;transform:rotate(-14deg);top:18px;left:30px;font:52px Georgia,serif}
.front{background:#fcf7e9;color:#9d4151;transform:rotate(10deg);top:61px;left:133px;font:44px Georgia,serif}
.front small{font:21px/1.25 Georgia,serif;letter-spacing:0}
.spark{position:absolute;font-size:44px;left:240px;top:0;color:#e8cbcd}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:23px 0 30px}
.stats>div{background:white;border:1px solid var(--line);border-radius:11px;padding:18px 20px}
.stats span{font-size:10px;color:var(--muted)}
.stats strong{display:block;font-size:29px;line-height:1.6;font-weight:600}
.stats small{font-size:12px;color:#a79ba0;font-weight:400}
.stats p{font-size:9px;margin:0}
.sectiontitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.sectiontitle h2{margin:0;font-size:18px}
.sectiontitle>span{font-size:10px;color:var(--muted)}
.modules{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.module{display:block;background:white;border:1px solid var(--line);border-radius:12px;padding:21px 19px;transition:transform .15s}
.module:hover{transform:translateY(-3px);border-color:#dbb4b7}
.moduleicon{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:10px;font-size:22px;margin-bottom:17px}
.mint{background:#f6eef1;color:#a93c51}
.lavender{background:#f0ecf8;color:#8a77a9}
.sand{background:#faf2df;color:#ad9458}
.rose{background:#f9ece7;color:#b98a72}
.module h3{font-size:13px}
.module p{font-size:10px;margin:6px 0 24px}
.module b{font-size:10px;color:var(--green);display:flex;justify-content:space-between}
.bottomgrid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;margin-top:24px}
.panel{background:#fff;border:1px solid var(--line);padding:24px;border-radius:12px;margin-bottom:18px}
.panel p{font-size:13px}
.panel small{font-size:10px;color:var(--muted)}
.bottomgrid .panel{margin:0}
.bottomgrid p{font-size:10px}
.bottomgrid h3{font-size:13px}
.bottomgrid b{font-size:12px}
.teacher-callout{display:flex;align-items:center;gap:20px}
.teacher-callout .moduleicon{flex-shrink:0;margin:0}
.teacher-callout a{font-size:10px;color:var(--green);font-weight:600}
progress{width:100%;height:6px;border:0;border-radius:5px;overflow:hidden;background:#f4eef0}
progress::-webkit-progress-bar{background:#f4eef0}
progress::-webkit-progress-value{background:#bc6773}
footer{max-width:1350px;margin:0 auto;padding:10px 44px 25px;color:#a59ba0;font-size:9px;display:flex;justify-content:space-between}
.study{max-width:780px;margin:0 auto 22px}
.flashcard{width:100%;display:flex;flex-direction:column;gap:10px;min-height:290px;background:#f6f0f2;color:var(--ink);margin-bottom:20px}
.flashcard strong{font-size:36px;font-weight:550}
.flashcard p{margin:0;font-weight:400;font-size:16px}
.flashcard small{margin-top:15px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.secondary{background:white;border:1px solid #e6dde1;color:var(--green)}
fieldset{min-width:0}
legend{font-weight:650;padding:0 10px;font-size:15px}
.option{display:flex;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;margin:9px 0;cursor:pointer}
.option:has(input:checked){background:#f6f0f2;border-color:#c47a83}
.option input{accent-color:var(--green)}
.explanation{display:none}
.explanation.visible{display:block;padding:12px;border-radius:7px;font-size:13px;margin-top:15px}
.correct{background:#E2F2E8;color:#1F6F43}
.incorrect{background:#fff0f0;color:#8f2330}
.passage p{line-height:1.95;color:#5c2c33;font-size:16px}
.subtle{background:#f6eff2;border-color:#ede3e7;color:#9e515c}
textarea{display:block;resize:vertical;width:100%;min-height:230px;border:1px solid #e6dde1;border-radius:9px;padding:16px;margin:14px 0;color:var(--ink);background:#fefcfd;line-height:1.8}
.feedback{background:#f9f5f7;border-radius:10px;padding:22px;margin-top:20px}
.feedback h3{margin-top:14px}
.nexttip{border-top:1px solid var(--line);padding-top:14px}
.savedtext{white-space:pre-wrap;overflow-wrap:anywhere}
details{border-bottom:1px solid var(--line);padding:12px 0}
summary{cursor:pointer;font-size:13px}
li{margin:10px 0;color:#796d72}
.danger{color:#ae4c40}
.danger:not(.secondary){background:#ae4c40;color:#fff}
#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#411a20;color:white;padding:12px 22px;border-radius:9px;opacity:0;pointer-events:none;z-index:9;max-width:90%;font-size:13px}
#toast.show{opacity:1}
@media(min-width:1500px){main{padding-top:45px}
.hero{min-height:310px}
}
@media(max-width:1100px){aside{width:205px;padding:25px 14px}
.brand{font-size:15px}
.workspace{margin-left:205px}
main{padding:28px 24px}
.hero-art{width:230px;transform:scale(.85);transform-origin:center}
.stats{gap:10px}
.stats>div{padding:15px}
.modules{grid-template-columns:repeat(2,1fr)}
header{padding:0 24px}
}
@media(max-width:720px){aside{position:static;width:auto;padding:16px;display:block;border-right:0}
.brand{font-size:17px}
.level,.sidebar-bottom{display:none}
nav{display:flex;overflow-x:auto;margin-top:15px;gap:5px}
nav a{white-space:nowrap;font-size:11px;padding:8px 10px}
nav a>span{display:none}
nav em{display:none}
.workspace{margin-left:0}
header{height:52px;padding:0 20px}
main{padding:25px 18px}
.hero{padding:25px;min-height:275px}
.hero h2{font-size:29px}
.hero-art{display:none}
.stats{grid-template-columns:repeat(2,1fr);margin:18px 0 25px}
.modules{gap:12px}
.module{padding:16px}
.module h3{font-size:12px}
.bottomgrid{grid-template-columns:1fr}
h1{font-size:25px}
.sectiontitle>span{font-size:9px}
.panel{padding:20px}
footer{padding:12px 18px}
footer span{display:none}
.flashcard strong{font-size:28px}
.flashcard p{font-size:14px}
.actions button{flex:1;font-size:12px;padding:10px}
.pagehead p{font-size:12px}
legend{font-size:14px}
}
/* Vocabulary bank and topic-based grammar */
.filterrow{display:flex;align-items:end;gap:20px;flex-wrap:wrap}.filterrow label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.filterrow select,.filterrow input{font:inherit;color:var(--ink);background:#fefcfd;border:1px solid #e3dade;border-radius:8px;padding:11px 13px;min-height:45px}.filterrow select{min-width:210px}.searchlabel{flex:1;min-width:220px}.banktabs{display:flex;gap:6px;flex-wrap:wrap;margin:24px 0 16px;border-bottom:1px solid var(--line);padding-bottom:12px}.banktabs button{background:transparent;color:var(--muted);font-size:12px;padding:9px 14px}.banktabs button[aria-selected=true]{background:#f3ebee;color:var(--green)}.smallnote{font-size:11px!important;line-height:1.8}.wordgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wordrow{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:9px;cursor:pointer;min-width:0}.wordrow:has(input:checked){background:#f9f2f5;border-color:#cb8d93}.wordrow input{margin:6px 0 0;accent-color:var(--green);width:16px;height:16px;flex-shrink:0}.wordrow>span{min-width:0;overflow-wrap:anywhere}.wordrow b{font-size:15px}.wordmeaning{display:block;font-size:12px;color:#807479;line-height:1.6;margin:5px 0}.wordrow small{font-size:10px}.compact{margin:0 0 20px}.compact button,.smallbutton{font-size:11px;padding:8px 12px}.study .flashcard{margin-top:16px}.study .flashcard strong{font-size:30px;overflow-wrap:anywhere}.empty{padding:35px;text-align:center;background:#fbf7f9;border-radius:10px}.topicgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.topiccard{display:block;text-align:left;background:white;border:1px solid var(--line);color:var(--ink);padding:24px;border-radius:12px;align-self:stretch}.topiccard:hover{border-color:#c7848c;filter:none;background:#fffcfd}.topiccard h2{font-size:17px;margin:17px 0 9px}.topiccard p{font-size:12px;font-weight:400;min-height:42px}.topiccard b{display:block;color:var(--green);font-size:12px;margin-top:18px}.topicstatus{font-size:10px;color:#908489;font-weight:400}.lesson li{font-size:14px;color:#7e434b}.lesson h2{margin-top:0}.examplebox{padding:18px 22px;background:#f8f1f4;border-radius:9px;margin-top:22px}.examplebox p{color:#782c3a}.textlink{color:var(--green);text-decoration:underline;text-underline-offset:3px}.bank-controls .actions{margin-bottom:8px}#studyarea{scroll-margin-top:20px}#backtopics{margin-bottom:22px}@media(max-width:1150px){.wordgrid,.topicgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.wordgrid,.topicgrid{grid-template-columns:1fr}.filterrow{align-items:stretch;gap:14px}.filterrow label{width:100%;min-width:0}.filterrow input,.filterrow select{width:100%;min-width:0}.banktabs{gap:5px}.banktabs button{font-size:11px;padding:8px 10px}.bank-controls{padding:18px}.wordrow{padding:14px}.study .flashcard strong{font-size:24px}.topiccard p{min-height:0}.bank-controls .actions button{flex-basis:100%}.study .sectiontitle{align-items:start}.study .sectiontitle>span{font-size:11px}}
/* Scalable vocabulary library: bounded rows, paging, separate study mode. */
[hidden]{display:none!important}.compact-library{padding:22px 24px}.library-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.scope-switch{display:flex;gap:6px}.scope-switch button{background:#f8f4f6;color:#945e65;font-size:12px;padding:9px 13px;gap:8px}.scope-switch button.current{background:#f2e9ed;color:var(--green)}.scope-switch span{font-size:10px;background:#ffffffa0;padding:1px 6px;border-radius:12px}.library-note{font-size:10px;color:var(--muted)}.compact-library .filterrow{gap:12px}.compact-library .filterrow label{font-size:10px}.compact-library .filterrow input,.compact-library .filterrow select{padding:8px 11px;min-height:39px}.compact-library .banktabs{margin:15px 0 10px;padding-bottom:9px;gap:4px}.compact-library .banktabs button{padding:7px 11px;font-size:11px}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 10px;font-size:11px;color:var(--muted)}.list-toolbar>div{display:flex;gap:7px}.list-toolbar button{padding:5px 9px;font-size:10px}#wordresults{max-height:420px;overflow:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:8px}.word-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.word-table th{background:#f8f4f6;position:sticky;top:0;z-index:1;color:#8b8085;font-weight:500;font-size:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.word-table td{padding:9px 12px;border-bottom:1px solid #f3edef;vertical-align:middle}.word-table tr:last-child td{border-bottom:0}.word-table td:first-child{width:36px;padding-right:0}.word-table td:nth-child(2){font-weight:600;min-width:110px;color:#6c182c}.word-table td:nth-child(3){color:#955e64}.word-table td:last-child{text-align:center;width:52px}.word-table td:nth-child(4){white-space:nowrap;font-size:10px}.word-table tr.chosen{background:#faf1f5}.word-table tr:hover{background:#fcf6f8}.word-table input{width:15px;height:15px;accent-color:var(--green);cursor:pointer;display:block;margin:0}.word-table label{cursor:pointer}.level-chip{font-size:9px;background:#f4edf0;border-radius:4px;padding:3px 5px;display:inline-block;color:#a44d5a}.pos-label{margin-left:5px;color:#998d92}.known-check{color:var(--green)}.unknown-dash{color:#d3c7cc}.pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 0 16px;font-size:11px;color:#8b8085}.pagination label{display:flex;align-items:center;gap:8px}.pagination select,.random-actions select{padding:4px 6px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit}.page-nav{display:flex;align-items:center;gap:14px}.page-nav button{padding:5px 10px}.study-dock{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.chosen-actions,.random-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.study-dock button{font-size:11px;padding:9px 13px}.random-actions label{display:flex;align-items:center;gap:8px;font-size:10px;color:#8b8085}.quietbutton{background:transparent;color:#a87076;padding:5px!important;font-weight:400}.dock-note{margin:12px 0 0;font-size:10px!important}.bank-footnote{padding:13px 20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1100px){.library-note{display:none}.study-dock{gap:12px}.word-table .pos-label{display:block;margin:3px 0 0}}@media(max-width:720px){.compact-library{padding:16px}.compact-library .filterrow{flex-wrap:nowrap;align-items:end}.compact-library .filterrow .searchlabel{flex:1;width:auto;min-width:0}.compact-library .filterrow label:not(.searchlabel){width:125px;flex-shrink:0}.compact-library .filterrow select{font-size:10px}.scope-switch button{font-size:11px;padding:8px 10px}.word-table td,.word-table th{padding:8px}.word-table td:nth-child(2){min-width:80px;font-size:11px}.word-table td:nth-child(3){font-size:11px}.word-table td:nth-child(4){white-space:normal;min-width:54px}.word-table td:last-child,.word-table th:last-child{display:none}.word-table td:first-child{width:27px}.study-dock{align-items:stretch}.chosen-actions,.random-actions{width:100%;justify-content:space-between}.chosen-actions button:first-child{flex:1}.study-dock button{font-size:10px}.compact-library .banktabs{gap:1px}.compact-library .banktabs button{font-size:10px;padding:7px 8px}#wordresults{max-height:360px}.pagination{font-size:10px}.list-toolbar{font-size:10px}}
.jump-label{gap:5px!important}#pagejump{width:47px;padding:4px;border:1px solid var(--line);border-radius:5px;color:var(--ink);background:white;font-size:11px}.page-nav{gap:9px}
/* Topic-first vocabulary: no manual word picking. */
.topic-controls .scope-switch{margin-bottom:20px}.topic-controls .filterrow{gap:12px}.topic-controls .filterrow label{font-size:10px;flex:1;min-width:150px}.topic-controls .filterrow .searchlabel{flex:1.5}.topic-controls .filterrow select,.topic-controls .filterrow input{width:100%;min-width:0;padding:9px 10px;font-size:11px}.topic-controls .banktabs{margin:16px 0 12px}.topic-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.topic-toolbar>span{font-size:11px;color:var(--muted)}.topic-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.topic-word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.vocabulary-topic{margin:0;display:flex;flex-direction:column;padding:22px}.topic-icon{height:36px;width:36px;border-radius:9px;display:grid;place-items:center;background:#f5ebef;color:#a84456;font-size:22px;margin-bottom:10px}.vocabulary-topic h2{font-size:17px;line-height:1.5;margin:8px 0}.vocabulary-topic>p{font-size:12px;margin:0 0 18px;flex:1}.topic-progress{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#9c5d65;margin-bottom:7px}.vocabulary-topic .actions{margin:16px 0 0;gap:7px}.vocabulary-topic .actions button{font-size:11px;padding:9px 12px}.topic-word-grid+.panel{margin-top:18px}.topic-notes{margin-top:20px}.learned-table-wrap{max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:8px}.learned-panel .word-table td:first-child{width:auto;padding:11px 12px;font-weight:600}.learned-panel .word-table td:nth-child(2){font-weight:400;min-width:100px}.learned-panel .word-table td:nth-child(3){white-space:normal;max-width:150px;font-size:10px}.learned-panel .word-table td:last-child{width:90px;white-space:nowrap}.learned-panel .word-table small{display:block;font-weight:400;margin-top:3px}.topic-study .flashcard{margin-top:20px}.topic-study .flashcard h3{font-size:22px;color:#a34f5c;font-weight:500}.learning-answer button{flex:1}.session-complete{text-align:center;max-width:780px;margin:0 auto}.session-complete .moduleicon{margin-bottom:0}.session-complete .actions{justify-content:center}.topic-study .flashcard strong{font-size:32px}#topicresults{margin-top:20px}@media(max-width:1150px){.topic-word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.topic-word-grid{grid-template-columns:1fr}.topic-controls .filterrow .searchlabel{flex-basis:100%}.topic-controls .filterrow label{min-width:110px}.topic-toolbar>div{width:100%}.topic-toolbar button{flex:1;font-size:10px}.vocabulary-topic{padding:20px}.learned-panel .word-table td:last-child,.learned-panel .word-table th:last-child{display:table-cell}.learned-panel .word-table td:nth-child(3),.learned-panel .word-table th:nth-child(3){display:none}.learned-panel .word-table td:last-child{padding:5px;width:auto}.learned-panel .word-table button{font-size:9px;padding:6px}.topic-study .flashcard strong{font-size:27px}.topic-study .flashcard h3{font-size:18px}.topic-study .sectiontitle>span{font-size:10px}}
.word-practice-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.word-practice-entry button{font-size:12px}.word-practice-entry span{color:var(--muted);font-size:11px}.word-practice h2{font-size:20px}.word-practice{margin-top:20px}.word-practice fieldset{padding:20px;margin-top:20px}.word-practice fieldset p{font-size:14px;color:#78353f}.practice-text{width:100%;padding:12px;border:1px solid #e6d9de;border-radius:7px;color:var(--ink);background:#fffbfd}.answer-tiles,.available-tiles{display:flex;gap:8px;flex-wrap:wrap;min-height:55px;padding:12px;border-radius:9px;margin-top:12px}.answer-tiles{background:#f8eef2;border:1px dashed #d19ea3}.answer-tiles>span{color:#c47a83;font-size:12px}.available-tiles{background:#fdf9fb}.tile{font-size:13px;padding:7px 11px;border:1px solid #e3d6dc;border-radius:6px;background:#fff;color:var(--ink);font-weight:500}.tile.picked{background:#f3dddf}.tile:disabled{opacity:.25}.tile.picked:disabled{opacity:1}#wordpracticeresult{margin-top:20px}
.flashcard-pos{display:inline-block;background:#fff9;border:1px solid #e6d9df;border-radius:20px;padding:5px 14px;color:#a12945;font-size:12px;font-weight:500;letter-spacing:.2px;margin:2px 0 10px}@media(max-width:720px){.flashcard-pos{font-size:11px;padding:5px 11px}}
.lookup-word{display:inline!important;background:transparent!important;border:0!important;border-radius:3px;padding:0!important;margin:0!important;color:inherit;font:inherit!important;line-height:inherit!important;letter-spacing:inherit;text-align:inherit;white-space:normal;cursor:help}.lookup-word.in-bank{text-decoration:underline dotted #cb8e94;text-underline-offset:4px}.lookup-word:hover,.lookup-word:focus-visible{background:#f0d9db!important;color:#81002d}.flashcard{align-items:center;justify-content:center;text-align:center}.flip-control{background:transparent;color:#a85863;font-size:11px;font-weight:500;padding:8px 10px;margin-top:12px}.wordhint{position:fixed;z-index:10000;max-width:min(340px,calc(100vw - 16px));padding:10px 14px;background:#4d252b;color:#fff;border-radius:8px;font-size:12px;line-height:1.6;box-shadow:0 6px 25px #37121830;pointer-events:none}.lookup-dialog{width:min(560px,calc(100vw - 30px));max-height:85vh;overflow:auto;border:1px solid #e8dee2;border-radius:16px;padding:26px;color:var(--ink);background:#fff;box-shadow:0 20px 80px #122e3733}.lookup-dialog::backdrop{background:#3c161c55}.lookup-dialog h2{font-size:30px;margin:10px 0 20px}.lookup-entry{border-top:1px solid var(--line);padding:18px 0}.lookup-entry h3{font-size:20px;margin-top:14px}.lookup-entry p{font-size:14px}.lookup-entry small{color:var(--muted)}
.lesson-shortcuts{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 22px;padding:0}.lesson-shortcuts button{font-size:11px;padding:8px 12px}.grammar-prep{background:#f9f0f4;border-color:#ecdfe4}.grammar-prep h2,.lesson h2{margin:7px 0 13px}.grammar-prep p{color:#973347}.prerequisite-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}.prerequisite-links>span{font-size:11px;color:var(--muted)}.prerequisite-links button{font-size:11px;font-weight:500}.grammar-help-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.grammar-help-table th{background:#f9f1f4;color:#ab4356;font-size:11px;padding:12px 15px;font-weight:600}.grammar-help-table td{padding:14px 15px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.8}.grammar-help-table td:first-child{width:38%;color:#7d0b2e;font-weight:550}.grammar-help-table td:last-child{color:#9b5c64}.grammar-table-wrap{border:1px solid var(--line);border-radius:9px;overflow:auto}.grammar-help-table tr:last-child td{border-bottom:0}.cue-caution{background:#fbf4e6;color:#92713e!important;border-radius:8px;padding:15px 18px;margin:20px 0 0}.lesson[id],.grammar-prep{scroll-margin-top:20px}.grammar-practice-start p{line-height:1.8}@media(max-width:720px){.grammar-help-table{font-size:12px}.grammar-help-table td,.grammar-help-table th{padding:10px}.grammar-help-table td:first-child{width:43%}.lesson-shortcuts button{font-size:10px;padding:7px 10px}.prerequisite-links button{width:100%}}
.grammar-prose p{font-size:14px;line-height:1.9;color:#743c44;margin:0 0 15px}.grammar-prose p:last-child{margin-bottom:0}.examplebox .example-explanation{border-top:1px solid #eadde3;margin-top:16px;padding-top:15px;color:#8a3343;font-size:13px;line-height:1.9}
.formula-list{display:grid;gap:8px;margin:15px 0}.formula-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;align-items:baseline;padding:12px 15px;background:#faf4f6;border:1px solid #f2e7ec;border-radius:8px}.formula-row>span{font-size:11px;color:#a5616a}.formula-row code{font-family:inherit;font-size:15px;font-weight:600;color:#80002c;line-height:1.8;overflow-wrap:anywhere}.formula-legend{font-size:10px!important;line-height:1.8;color:#b3757c!important;margin:10px 0 22px}@media(max-width:720px){.formula-row{grid-template-columns:1fr;gap:3px;padding:11px 13px}.formula-row code{font-size:14px}}
.usage-point+.usage-point{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.usage-example{margin-top:12px;border-left:3px solid #d29fa4;background:#faf3f6;padding:13px 17px;border-radius:0 8px 8px 0}.usage-example-label{font-size:9px;color:#bf6f79;letter-spacing:.5px}.usage-example p[lang=en]{color:#70102a;font-weight:600;font-size:14px;margin:6px 0 5px}.usage-example .usage-translation{font-size:13px;color:#a0666d;margin:0;line-height:1.8}

.grammar-filters{display:grid;grid-template-columns:1.2fr .7fr 1.2fr;gap:18px}.grammar-filters label{display:grid;gap:8px;min-width:0;font-weight:600}.grammar-filters input,.grammar-filters select{width:100%;min-width:0}.grammar-chapter{background:#fff;border:1px solid var(--line,#e8e0e3);border-radius:18px;margin:20px 0;padding:22px}.grammar-chapter summary{display:flex;gap:16px;align-items:center;cursor:pointer;list-style:none}.grammar-chapter summary::after{content:'＋';margin-left:auto;color:#8f0434;font-size:24px}.grammar-chapter[open] summary::after{content:'−'}.grammar-chapter summary strong{font-size:21px;display:block}.grammar-chapter summary small{display:block;color:#7e7378;margin-top:6px;line-height:1.6}.chapter-number{font-size:24px;color:#9d2241;background:#f5eff2;border-radius:12px;padding:12px}.grammar-chapter .topicgrid{margin-top:22px}.topiccard h3{font-size:19px;line-height:1.4;margin:14px 0}.grammar-chapter .topiccard{box-shadow:none}.grammar-chapter .topiccard:focus-visible{outline:3px solid #9f2543;outline-offset:3px}@media(max-width:760px){.grammar-filters{grid-template-columns:1fr}.grammar-chapter{padding:16px}.grammar-chapter summary strong{font-size:18px}.chapter-number{font-size:19px;padding:9px}}

.grammar-filters input,.grammar-filters select{font:inherit;color:inherit;min-height:46px;padding:10px 12px;border:1px solid #dcd2d6;border-radius:10px;background:#fff}.grammar-filters input:focus,.grammar-filters select:focus{outline:2px solid #b04c5d;outline-offset:2px}@media(min-width:761px) and (max-width:1100px){.grammar-filters{grid-template-columns:1fr 1.4fr}.grammar-filters label:first-child{grid-column:1/-1}}

.exam-levels{display:flex;gap:12px;flex-wrap:wrap}.exam-levels button{min-width:70px}.exam-paper button{margin:5px 8px 5px 0}.exam-progress{display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap}.exam-progress span{color:#7e7277}.exam-passage p,.exam-reading-text{white-space:pre-line;line-height:1.9;font-size:18px}.exam-score{font-size:56px;font-weight:750;color:#8f0434}.exam-score small{font-size:25px;font-weight:500}#exam-form fieldset{min-width:0}#exam-form legend{font-weight:650;line-height:1.6;padding:0 8px}#exam-error{color:#9f3838}@media(max-width:600px){.exam-score{font-size:44px}.exam-passage p,.exam-reading-text{font-size:16px}}

.exam-paper-grid{grid-template-columns:1fr}.exam-paper-grid .exam-paper{margin-bottom:0}

.exam-paper-grid{margin-bottom:22px}
.exam-modes{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #ebe5e7}.exam-review-item{padding:18px 0;border-top:1px solid #ebe5e7}.exam-review-item h3{margin:0 0 8px;font-size:18px}.exam-review-item p{margin:8px 0}.exam-review-item:first-of-type{border-top:0}.exam-review .smallbutton{font-size:14px}.exam-paper-grid{gap:20px}.exam-paper .actions{margin-top:16px}#exam-language,[id^="exam-reading-"],[id^="exam-answer-"]{scroll-margin-top:24px}

.exam-picker{display:grid;gap:8px;margin-top:20px;font-weight:600}.exam-picker select{min-width:0;width:100%;padding:11px 12px;font:inherit;color:inherit;background:#fff;border:1px solid #dcd2d6;border-radius:10px}.exam-picker select:focus{outline:2px solid #b04c5d;outline-offset:2px}

.random-exam-card h2{font-size:26px}.random-exam-card>button{margin-top:10px}

.speak-button{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e6d9df;color:var(--green);font-size:11px;font-weight:600;padding:5px 11px;border-radius:20px;margin:4px 0;vertical-align:middle;line-height:1.4}.speak-button:hover{background:#f9f2f5;filter:none}.speak-button.speaking{background:#f3e5eb;border-color:#ca8b92}.lookup-dialog h2 .speak-button{margin-left:8px;font-size:12px}.usage-example .speak-button{margin:2px 0 6px}
.speak-button{padding:2px 7px;font-size:14px;line-height:1.5;margin:0 0 0 6px;border-radius:999px;vertical-align:baseline;font-weight:400}.flashcard strong .speak-button{font-size:18px;padding:3px 9px;vertical-align:middle}.usage-example .speak-button,.lookup-entry .speak-button{margin:0 0 0 6px}
.speak-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;margin:0 0 0 6px;border:0;border-radius:50%;background:transparent;color:#b45c69;vertical-align:-6px;box-shadow:none}.speak-button:hover{background:#f3e8ed;color:var(--green);filter:none}.speak-button.speaking{background:#efe2e8;color:var(--green)}.speak-icon{width:17px;height:17px;display:block}.flashcard strong .speak-button{width:34px;height:34px;padding:0;vertical-align:4px}.flashcard strong .speak-icon{width:21px;height:21px}.lookup-dialog h2 .speak-button{width:32px;height:32px;vertical-align:3px}.lookup-dialog h2 .speak-icon{width:20px;height:20px}
.speak-button,.flashcard strong .speak-button,.lookup-dialog h2 .speak-button{vertical-align:middle}

/* Recall form: keep the label, answer field and submit button separated. */
#recall-form{display:flex;flex-direction:column;align-items:stretch;gap:12px}
#recall-form>button{align-self:flex-start}

.session-size-control{margin:18px 0}.session-size-control label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-weight:600}.session-size-control select{font:inherit;color:var(--ink);padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;min-height:44px}

/* IPA stays with its word and never reveals the answer before the card is shown. */
.word-ipa{display:flex;flex-direction:column;gap:3px;margin:8px 0 14px;color:#7c3843;line-height:1.5}
.word-ipa>span{font-family:"Arial","DejaVu Sans",sans-serif;font-size:21px;font-weight:400;overflow-wrap:anywhere}
.word-ipa>small{font-size:11px;font-weight:400;color:var(--muted)}
.lookup-word-heading>b{font-size:20px}.lookup-word-heading .word-ipa{margin:4px 0 12px}.lookup-word-heading .word-ipa>span{font-size:18px}
.form-explain{background:#faf3f6;border-left:3px solid #d29fa4;border-radius:0 8px 8px 0;padding:10px 14px;margin:4px 0 14px}.form-explain p{margin:4px 0;font-size:13px;color:#7c3843}.form-explain .form-base b{font-size:18px;color:var(--ink)}
/* Keep long terms and new exam labels usable on narrow screens. */
fieldset.panel{min-inline-size:0}
.option>span{min-width:0;overflow-wrap:anywhere}
.option input[type="radio"]{flex:0 0 auto;align-self:flex-start;margin-top:4px}
.flashcard strong,.lookup-dialog h2{overflow-wrap:anywhere}
.exam-levels button{white-space:normal}
.exam-passage,.exam-reading-text{overflow-wrap:anywhere}
@media(max-width:620px){.exam-levels{gap:8px}.exam-levels button{flex:1 1 110px;min-height:44px}.exam-progress{position:static}.lookup-dialog{padding:18px}.word-practice .actions>button{width:100%}}
/* Grammar/reading quiz polish (2026-11-03): sticky progress, compact short options */
.quiz-progress{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:14px;background:#fffffff2;border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0 0 16px;box-shadow:0 4px 14px #411a2012;backdrop-filter:blur(4px)}
.quiz-progress span{font-size:13px;font-weight:600;color:var(--green);white-space:nowrap}
.quiz-progress progress{flex:1;height:8px}
.quiz-progress .smallbutton{padding:6px 12px;font-size:12px;white-space:nowrap}
#quiz fieldset.panel{padding:18px 22px;margin-bottom:14px;scroll-margin-top:80px}
#quiz .option{margin:7px 0;padding:9px 14px}
.options-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:6px}
.options-inline .option{margin:0}
@media(max-width:720px){.quiz-progress{gap:10px;padding:8px 10px}.quiz-progress .smallbutton{display:none}.options-inline{gap:8px}#quiz fieldset.panel{padding:14px 14px}}
#quiz legend{float:left;width:100%;padding:0;margin:0 0 10px;line-height:1.5}
#quiz legend+*{clear:both}
@media(max-width:720px){.options-inline{display:flex;flex-wrap:wrap}.options-inline .option{flex:1 1 auto}.options-inline .option>span{white-space:nowrap;overflow-wrap:normal}}
/* UI clarity pass (2026-11-03) */
/* Từ vựng: thanh công cụ gọn */
.session-inline{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);font-weight:600}
.session-inline select{font:inherit;font-weight:600;color:var(--ink);background:#fefcfd;border:1px solid #e3dade;border-radius:8px;padding:7px 10px}
.topic-toolbar>div{align-items:center}
.howto{margin-top:12px;border:0;padding:0}
.howto summary{font-size:12px;color:var(--green);font-weight:600}
.howto p{margin:8px 0 0}
/* Chữ phụ dễ đọc hơn */
.smallnote{font-size:12px!important}
.topicstatus{font-size:11px}
.stats p{font-size:10px}
.module p{font-size:11px}
.sidebar-bottom,.sidebar-bottom p{font-size:11px}
/* Bài đọc: dòng ngắn hơn, dấu tra từ nhẹ hơn */
.passage p,.exam-passage p,.exam-reading-text{max-width:68ch}
.lookup-word.in-bank{text-decoration:underline dotted #d9b1b5;text-decoration-thickness:1px;text-underline-offset:5px}
.lookup-word.in-bank:hover,.lookup-word.in-bank:focus-visible{text-decoration-color:#bc6873}
/* Ngữ pháp: nút nộp trên thanh tiến độ */
.quiz-progress #quizsubmittop{white-space:nowrap}
/* Điện thoại: menu 2 hàng, thấy đủ 8 mục */
@media(max-width:720px){
 nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:4px;margin-top:12px}
 nav a{flex-direction:column;gap:2px;padding:7px 2px;font-size:10px;white-space:normal;text-align:center;line-height:1.25;justify-content:center}
 nav a>span{display:block;font-size:16px;width:auto}
 nav em{display:none}
 .topic-toolbar>div{width:100%}
 .topic-toolbar button{flex:1 1 auto}
 .session-inline{flex:1 1 100%;justify-content:space-between}
 .quiz-progress #quizsubmittop{display:inline-flex}
}
.filterbox{border:0;padding:0}
.filterbox>summary{display:none}
@media(max-width:720px){.filterbox>summary{display:block;font-size:12px;font-weight:600;color:var(--green);padding:10px 12px;background:#f8f4f6;border-radius:8px;margin-bottom:10px}.filterbox[open]>summary{margin-bottom:14px}}
.filterbox>summary::after{content:' ▾';float:right}.filterbox[open]>summary::after{content:' ▴'}

/* Victor English logo */.brand.brand-logo{flex-direction:column;align-items:flex-start;gap:6px}.brandlogo{display:block;width:190px;max-width:100%;height:auto}.brand.brand-logo small{margin:0 0 0 4px}@media(max-width:1100px){.brandlogo{width:170px}}@media(max-width:720px){.brand.brand-logo{flex-direction:row;align-items:center}.brandlogo{width:150px}.brand.brand-logo small{display:none}}

/* Dấu V nhận diện (chi tiết nhỏ) */.vmark{display:inline-block;width:.86em;height:1em;vertical-align:-.12em;background:currentColor;-webkit-mask:url(/brand/v-mark.svg) no-repeat center/contain;mask:url(/brand/v-mark.svg) no-repeat center/contain;flex:none}.brandv{color:#8f022c}header .vmark{margin-right:8px;font-size:13px}footer .vmark{margin-right:6px;font-size:11px}.art-card.front .vmark{font-size:50px;display:block;color:#8f022c}
@media(max-width:720px){footer .footbrand{display:inline}footer .footbrand .vmark{display:inline-block}}

/* Bảng màu 2 · Đỏ rượu & Vàng đồng + font Lora/Inter (Claude, 2026-11-03) */body,button,input,textarea,select{font-family:'Inter Variable',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1,h2,.hero h2,.stats strong,.flashcard strong{font-family:'Lora Variable',Georgia,'Times New Roman',serif;letter-spacing:-.3px}h1{font-weight:650}h2{font-weight:600}
nav a{color:#6B6065}.eyebrow{color:#6B6065}.stats small{color:#756A6F}nav em{color:#6a5890}
footer{color:#756A6F}.topicstatus{color:#756A6F}th{color:#6B6065}.quietbutton{color:var(--green)}
.navicon{display:inline-flex;align-items:center;justify-content:center}.navicon svg{width:20px;height:20px;display:block}@media(max-width:720px){.navicon svg{width:18px;height:18px}}

/* Victor English · typography, filter visibility and accessible actions · 2026-11-04 */
:root{--muted:#6b6065}
.pagehead p,.smallnote,.panel .smallnote{font-size:14px;line-height:1.7}
.eyebrow{font-size:10px;letter-spacing:1.6px}
.topic-controls label,.grammar-filters label{font-size:13px}
button,.button{font-size:13px;min-height:40px}
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b98b38;outline-offset:3px}
button:disabled{opacity:.55;cursor:not-allowed}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:12px 0 0}
.active-filters:empty{display:none}
.filter-caption{font-size:12px;color:var(--muted);margin-right:2px}
.filter-chip{font-size:12px;font-weight:600;line-height:1.5;color:#760b2d;background:#f7edf1;border:1px solid #e5cbd5;border-radius:6px;padding:4px 9px;overflow-wrap:anywhere;max-width:100%}
.topic-word-grid{gap:18px}
.vocabulary-topic{display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s}
.vocabulary-topic:hover{border-color:#cfb6c0;box-shadow:0 4px 16px #44152708}
.vocabulary-topic .topic-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f7edf1;color:#8f022c}
.topic-icon svg{width:22px;height:22px}
.vocabulary-topic h2{font-size:19px;line-height:1.45;margin:14px 0 8px}
.vocabulary-topic>p{font-size:14px;line-height:1.65;margin:0 0 20px;flex:1}
.topic-progress{font-size:12px;color:#6b6065}
.vocabulary-topic .actions{margin-top:14px;gap:8px}
.vocabulary-topic .actions button{font-size:12px;min-height:40px}
.topicstatus,.stats span,.stats p,.sectiontitle>span{font-size:12px;line-height:1.6}
.grammar-chapter summary small{font-size:12px;line-height:1.6}
.lookup-word{text-decoration-thickness:1px;text-underline-offset:4px}
.quiz-progress{gap:10px}
.quiz-progress progress{min-width:30px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:720px){
 header{height:48px;padding:0 18px}
 main{padding:22px 18px}
 .pagehead{margin-bottom:20px}.pagehead h1{font-size:26px;line-height:1.3}.pagehead p{font-size:13px}
 nav a{min-height:44px;font-size:11px}.brandlogo{width:150px}
 .topic-controls{padding:18px}.scope-switch button{min-height:40px}
 .filterbox>summary{font-size:13px;padding:12px}
 .topic-toolbar{gap:12px}.topic-toolbar>span{font-size:12px}
 .topic-toolbar button{min-height:44px;font-size:12px}
 .topic-toolbar #topicrandom{flex:1 1 100%;font-size:13px}
 .topic-controls select,.topic-controls input{font-size:16px;min-height:44px}
 .topic-word-grid{gap:12px}.vocabulary-topic{padding:20px}.vocabulary-topic .actions button{min-height:44px}
 .quiz-progress{flex-wrap:wrap;padding:10px;top:0}.quiz-progress span{font-size:12px}.quiz-progress progress{flex:1 1 45px}
 .quiz-progress #quiznext{display:inline-flex;min-height:36px;padding:6px 9px;font-size:11px}
 .quiz-progress #quizsubmittop{min-height:36px;font-size:12px}
 .options-inline .option{min-width:76px;min-height:44px}
}
@media(max-width:720px){.active-filters{display:none}.topic-controls .filterbox{margin-bottom:6px}}

/* Answer status uses semantic colors; brand color is reserved for actions. */
.option:has(input:checked){background:#f3f4f5;border-color:#7b818a}
.answer-correct .option:has(input:checked){background:#eaf6ee;border:2px solid #2e7d4d}
.answer-incorrect .option:has(input:checked){background:#fff0f0;border:2px solid #bb3542}
.answer-correct .option input:checked{accent-color:#247245}
.answer-incorrect .option input:checked{accent-color:#b52f3c}
.answer-correct .practice-text:disabled{border:2px solid #2e7d4d;background:#eaf6ee;opacity:1;color:var(--ink)}
.answer-incorrect .practice-text:disabled{border:2px solid #bb3542;background:#fff0f0;opacity:1;color:var(--ink)}

/* Sentence tiles follow the same grading colors as text and choice answers. */
.answer-tiles{background:#f4f5f6;border-color:#89909a}
.tile.picked{background:#e8ebee}
.answer-correct .answer-tiles{background:#eaf6ee;border:2px solid #2e7d4d}
.answer-correct .tile.picked{background:#d5ecde;border-color:#91c4a4;color:#205e3a}
.answer-incorrect .answer-tiles{background:#fff0f0;border:2px solid #bb3542}
.answer-incorrect .tile.picked{background:#f8dfe2;border-color:#db969e;color:#8f2330}
.answer-correct .explanation p{color:#205e3a}
.answer-incorrect .explanation p{color:#8f2330}

/* iPhone Home Screen shell: safe areas, keyboard-friendly fields, touch targets. */
body{min-height:100vh;min-height:100svh}
#toast{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.lookup-dialog{max-height:85vh;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}
@media(max-width:720px){
 aside{padding-top:calc(12px + env(safe-area-inset-top,0px));padding-left:calc(16px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}
 header{padding-left:calc(18px + env(safe-area-inset-left,0px));padding-right:calc(18px + env(safe-area-inset-right,0px))}
 main{padding-left:calc(18px + env(safe-area-inset-left,0px));padding-right:calc(18px + env(safe-area-inset-right,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 footer{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));gap:12px;flex-wrap:wrap}
 input:not([type=radio]):not([type=checkbox]),textarea,select{font-size:16px!important;min-height:44px;max-width:100%}
 input,textarea{scroll-margin-block:80px}
 .actions button,.tile,.speak-button,.flashcard strong .speak-button,.lookup-dialog h2 .speak-button{min-width:44px;min-height:44px}
 .speak-button{width:44px;height:44px}
 .quiz-progress{top:env(safe-area-inset-top,0px)}
 .lookup-dialog{width:calc(100% - 24px);max-width:680px;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
 #recallgate,.session-review{scroll-margin-top:12px}
}
@media(max-width:960px) and (orientation:landscape) and (pointer:coarse){
 aside{padding-left:calc(14px + env(safe-area-inset-left,0px));padding-top:calc(16px + env(safe-area-inset-top,0px));padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 .workspace{padding-right:env(safe-area-inset-right,0px)}
 footer{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:720px){.lookup-dialog button:not(.lookup-word){min-height:44px}}
