
:root{--bg:#f7f7f2;--paper:#fff;--ink:#233d36;--muted:#78837c;--line:#e3e8e0;--green:#235447;--sage:#e8eee6;--accent:#d77c54;--cream:#f0e8ce;--error:#b34e3b;font-family:Arial,"Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--bg);font-size:15px}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,textarea,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #d7aa61;outline-offset:3px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fff;color:var(--ink);outline:none}input:focus,textarea:focus,select:focus{border-color:#719180;box-shadow:0 0 0 3px #e5eee5}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:600;margin:18px 0 8px}label input,label textarea{margin-top:8px}p{line-height:1.8}h1,h2,h3{margin:0;font-weight:650;letter-spacing:-1px}h1{font-size:38px;line-height:1.5}h2{font-size:24px;line-height:1.5}h3{font-size:20px;letter-spacing:-.5px}small,.small{font-size:12px;line-height:1.8}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;margin:0 0 13px;color:#718277}.serif{font-family:Arial,"Microsoft JhengHei",sans-serif;font-weight:400}.primary,.secondary,.cream-button{border:0;border-radius:10px;padding:13px 20px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:30px;text-decoration:none}.primary{background:var(--green);color:#fff}.primary:hover{background:#183f34}.secondary{background:var(--sage);color:var(--green)}.cream-button{background:var(--cream);color:var(--green);margin-top:12px;gap:42px}.full{width:100%}.text-button{background:none;border:0;color:var(--green);padding:8px 0;font-size:13px;font-weight:600}.text-button:hover{text-decoration:underline}.brand-mark{background:var(--green);color:var(--cream);width:54px;height:54px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;font-size:32px;position:relative}.brand-mark span{font:16px sans-serif;position:absolute;right:4px;top:6px}.small-mark{width:34px;height:34px;font-size:21px;border-radius:10px}.small-mark span{font-size:11px;right:1px;top:3px}.brand{display:flex;align-items:center;font-family:Arial,sans-serif;gap:9px;font-size:25px;color:var(--ink);text-decoration:none;font-weight:600;letter-spacing:-1.5px}.brand-dot{color:var(--accent)}.brand .brand-dot{margin-left:-8px}.sidebar{width:235px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);background:#fdfdf9;padding:35px 22px;display:flex;flex-direction:column;z-index:3}.workspace-tag{font-size:9px;letter-spacing:1.5px;color:#9ba499;margin:42px 10px 17px}.nav{display:flex;width:100%;align-items:center;gap:13px;text-align:left;border:0;background:none;color:var(--muted);padding:14px;border-radius:10px;margin:4px 0;font-size:14px}.nav span{font-size:20px;width:23px}.nav.active{background:var(--sage);color:var(--green);font-weight:650}.nav b{margin-left:auto;font-size:10px;background:white;padding:3px 6px;border-radius:5px}.side-bottom{margin-top:auto;padding:20px 10px 0}.private-note{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:24px;margin-bottom:12px}.private-note strong{display:block;font-size:11px;font-weight:600}.private-note small{font-size:10px;color:var(--muted)}.status-dot{width:7px;height:7px;border-radius:50%;background:#73967a;display:inline-block;flex-shrink:0}.status-dot.busy{background:#d99a4a;animation:pulse 1.5s infinite}.status-dot.error{background:#bf644b}.status-dot.paused{background:#999}main{margin-left:235px;min-height:100vh}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.top-right{display:flex;align-items:center;gap:20px}.pill{font-size:9px;letter-spacing:1.3px;border:1px solid #d9e1d6;padding:6px 9px;border-radius:5px;color:#6e7c6c}.avatar{width:32px;height:32px;border-radius:50%;background:#e7eadf;display:grid;place-items:center;color:var(--green);font-size:12px}.content{max-width:1350px;margin:auto;padding:43px 48px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading p.muted{font-size:13px;margin:9px 0 0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:23px 23px 18px}.stat>span{font-size:12px;color:#748174}.stat>strong{display:block;font-family:Arial,sans-serif;font-size:39px;font-weight:400;padding:13px 0 7px}.stat>small{color:#929b90;font-size:10px}.home-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.practice-card{background:var(--green);border-radius:16px;color:#fff;padding:32px;display:flex;position:relative;overflow:hidden;min-height:300px}.practice-card .eyebrow{color:#b6c5ad;font-size:9px}.practice-card h2{font-size:29px;font-weight:500}.practice-card p:not(.eyebrow){font-size:12px;color:#ced8cd;margin:14px 0 3px}.practice-card small{display:block;color:#afc1b3;font-size:10px;margin-top:16px}.practice-art{width:200px;position:absolute;right:22px;top:58px;height:200px;pointer-events:none}.paper{position:absolute;width:125px;height:170px;border-radius:9px;box-shadow:0 8px 15px #102a2630}.paper.back{background:#a4b89b;transform:rotate(-12deg);left:30px;top:9px}.paper.front{background:#f5f2e5;transform:rotate(9deg);left:46px;top:14px;padding:19px;color:var(--green)}.paper.front span{font-size:8px;letter-spacing:1.5px}.paper.front p{font-family:Arial,sans-serif;color:var(--green)!important;font-size:17px!important;line-height:1.4}.paper.front i{color:#a7b89a}.paper.front b{display:block;font-size:9px;font-weight:400;margin-top:12px}.sun{position:absolute;right:0;top:-18px;color:#d6b87b;font-size:65px;transform:rotate(15deg)}.worker-card{background:#edf0e7;border:1px solid #e1e6d8;border-radius:16px;padding:26px}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.mini-icon{font-size:30px;color:#5c785c}.soft{border:0;background:#e2e8d9}.worker-card h3{font-size:18px}.worker-card p{font-size:12px;margin:10px 0 17px}.worker-state{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:600}.worker-detail{font-size:10px;color:#87907e;line-height:1.8;margin:8px 0}.worker-card .text-button{font-size:11px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 18px}.section-heading .eyebrow{font-size:9px;margin-bottom:5px}.section-heading h2{font-size:20px}.word-list{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}.word-row{width:100%;display:grid;grid-template-columns:1.25fr 1.4fr 1fr auto;gap:16px;align-items:center;border:0;border-bottom:1px solid #eef0e9;background:#fff;padding:19px 22px;text-align:left;color:var(--ink)}.word-row:last-child{border-bottom:0}.word-row:hover{background:#fafbf6}.word-term{font-family:Arial,sans-serif;font-size:20px}.word-meaning{font-size:12px;color:#788474;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.word-meta{font-size:10px;color:#8a9688}.word-tag{font-size:10px;background:var(--sage);color:#658063;padding:5px 9px;border-radius:5px;justify-self:end}.word-tag.warn{color:#a77b40;background:#f5efdf}.empty{border:1px dashed #cbd5c5;border-radius:13px;padding:45px 20px;text-align:center;background:#fcfcf7}.empty .empty-icon{font-size:33px;color:#9bad96}.empty h3{font-size:17px;margin:12px 0}.empty p{font-size:12px;color:var(--muted);margin:8px 0 18px}.bottom-note{display:flex;gap:12px;align-items:center;justify-content:center;color:#969e90;font-family:Arial,sans-serif;font-style:italic;font-size:12px;margin:35px 0 18px}.bottom-note span{font-style:normal;color:#b5bda4;font-size:22px}footer{max-width:1350px;margin:auto;padding:25px 48px;border-top:1px solid var(--line);font-family:Arial,sans-serif;font-size:16px;color:#5e715e}footer span{font:10px Arial,"Microsoft JhengHei",sans-serif;color:#929b8c;margin-left:15px}footer small{font:9px Arial,"Microsoft JhengHei",sans-serif;float:right;color:#a0a798;margin-top:5px}.toolbar{display:flex;gap:16px;margin-bottom:20px}.toolbar input{flex:1}.toolbar select{width:180px}.settings-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:20px}.panel h2{font-size:19px;margin-bottom:18px}.panel p{font-size:12px}.panel button{margin-top:8px}.toggle-label{display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid var(--line)}.toggle-label small{display:block;font-weight:400;color:var(--muted);font-size:10px;margin-top:7px}.toggle-label input{width:18px;height:18px;accent-color:var(--green);margin-left:15px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.job{font-size:11px;padding:10px 0;border-bottom:1px solid var(--line);line-height:1.7}.job span{display:block;color:var(--muted);font-size:10px}.quiz-intro{max-width:700px;margin:20px auto;text-align:center;padding:45px}.quiz-intro h2{font-size:27px;margin:12px 0}.quiz-intro p{color:var(--muted);font-size:13px}.quiz-actions{display:flex;justify-content:center;gap:12px;margin-top:25px}.quiz-card{max-width:800px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:35px}.quiz-top{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:16px}.progress{height:4px;background:var(--sage);border-radius:5px;overflow:hidden;margin-bottom:30px}.progress span{display:block;height:100%;background:#8aa57e;transition:width .2s}.question{font-family:Arial,sans-serif;font-size:25px;line-height:1.8;margin:20px 0 28px;color:#263c32}.option-list{display:grid;gap:11px}.option{display:flex;align-items:center;text-align:left;gap:15px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)}.option b{font:12px Arial,sans-serif;background:#f1f3ec;border-radius:6px;width:28px;height:28px;display:grid;place-items:center}.option:hover:not(:disabled){background:#f5f8ef;border-color:#a7b59d}.option.right{background:#edf4e7;border-color:#88aa75;opacity:1}.option.wrong{background:#fcf0e8;border-color:#d19b84;opacity:1}.explanation{background:#f5f7ee;border-radius:10px;padding:20px;margin-top:22px;font-size:13px;line-height:1.9;white-space:pre-wrap}.explanation h3{font-size:16px;margin-bottom:8px}.quiz-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:15px}.result-number{font:70px Arial,sans-serif;color:var(--green);margin:22px}.review-card{max-width:650px;margin:0 auto;padding:45px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:15px}.review-word{font:40px Arial,sans-serif;margin:30px 0}.review-answer{padding:20px;background:var(--bg);border-radius:10px;margin-bottom:22px;text-align:left;font-size:14px;line-height:1.9}.detail-title{font:34px Arial,sans-serif;margin:0 0 12px}.detail-section{margin:20px 0;line-height:1.9;white-space:pre-wrap;font-size:14px}.detail-section small{display:block;color:var(--muted);font-size:11px}.detail-controls{display:flex;gap:20px;flex-wrap:wrap}.danger{color:var(--error)}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-card{max-width:420px;width:100%;margin:auto;padding:40px}.login-card>.eyebrow{margin:35px 0 15px;font-size:9px}.login-card h1{font-size:38px;line-height:1.5}.login-card>.muted{font-size:13px}.login-card button{margin-top:20px}.login-card>.small{margin-top:22px;font-size:10px}.login-art{background:#e5ebdf;position:relative;display:grid;place-items:center;overflow:hidden}.art-orbit{position:absolute;width:570px;height:570px;border:1px solid #c6d0bc;border-radius:50%}.art-orbit:after{content:'';position:absolute;inset:50px;border:1px solid #c6d0bc;border-radius:50%}.art-card{width:270px;background:#fcfaf0;padding:35px;border-radius:10px;box-shadow:0 30px 80px #304d3220;transform:rotate(-7deg);z-index:1}.art-card small{font-size:9px;letter-spacing:2px;color:#87967b}.art-card strong{display:block;font:40px Arial,sans-serif;margin-top:24px}.art-card em{font:12px Arial,sans-serif;color:#8c967c}.art-card p{font-size:12px;line-height:2;color:#7f8b75}.art-card hr{border:0;border-top:1px solid #e0e5d5;margin:25px 0}.art-label{position:absolute;bottom:70px;font-size:9px;letter-spacing:3px;color:#839375}dialog{border:1px solid var(--line);border-radius:18px;padding:30px;max-width:540px;width:calc(100% - 30px);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 25px 100px #192e3230}dialog::backdrop{background:#122d2655;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:25px}.dialog-heading .eyebrow{font-size:8px}.icon-button{border:0;background:none;font-size:28px;color:var(--muted)}.optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:6px}.required{color:var(--accent)}.error{color:var(--error);font-size:12px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#233e34;color:#fff;padding:15px 23px;border-radius:10px;font-size:13px;box-shadow:0 4px 25px #143b2330;z-index:20;max-width:90vw}#toast.failure{background:#994c3d}@keyframes pulse{50%{opacity:.35}}@media(min-width:1450px){.practice-art{right:40px}}@media(max-width:1200px){.sidebar{width:205px;padding:30px 15px}main{margin-left:205px}.topbar{padding:0 30px}.content{padding:35px 30px}.practice-art{opacity:.7;right:-20px;top:80px;transform:scale(.85)}.practice-card>div:first-child{position:relative;z-index:1}.practice-card{padding:26px}.worker-card{padding:23px}.stat{padding:20px 17px}.home-grid{grid-template-columns:1.5fr 1fr}.practice-card p:not(.eyebrow){max-width:230px}}@media(max-width:950px){.sidebar{width:170px}.brand{font-size:21px;gap:7px}.workspace-tag{font-size:7px}.nav{font-size:12px;padding:12px 8px;gap:6px}.nav span{font-size:17px}main{margin-left:170px}.stats-grid{gap:10px}.stat{padding:17px 13px}.stat small{font-size:9px}.stat>strong{font-size:32px}.home-grid{grid-template-columns:1fr}.practice-art{opacity:1;right:25px;top:45px;transform:none}.practice-card p:not(.eyebrow){max-width:none}.practice-card{min-height:300px}.worker-card{display:block}.settings-grid{grid-template-columns:1fr}.word-row{grid-template-columns:1fr 1fr auto}.word-meta{display:none}h1{font-size:31px}.page-heading .primary{font-size:12px;padding:12px}.content{padding:30px 23px}footer{padding:22px}footer small{float:none;display:block;margin-top:10px}}@media(max-width:650px){.sidebar{position:fixed;width:100%;inset:auto 0 0;height:69px;flex-direction:row;padding:5px 6px;border:0;border-top:1px solid var(--line);background:#fcfdf9}.sidebar>.brand,.workspace-tag,.side-bottom{display:none}.sidebar nav{display:flex;justify-content:space-around;width:100%}.nav{display:flex;flex-direction:column;gap:2px;font-size:10px;width:auto;margin:0;padding:5px 13px}.nav span{font-size:20px;text-align:center}.nav b{display:none}main{margin-left:0;padding-bottom:70px}.topbar{height:60px;padding:0 22px;font-size:10px}.top-right{gap:12px}.avatar{width:26px;height:26px}.content{padding:28px 20px 10px}.page-heading{align-items:flex-start;margin-bottom:25px;gap:10px}.page-heading h1{font-size:27px}.eyebrow{font-size:8px;letter-spacing:1.3px}.page-heading p.muted{font-size:11px;max-width:240px;line-height:1.8}.page-heading .primary{font-size:10px;padding:11px 12px;white-space:nowrap;margin-top:25px}.stats-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.stat{padding:18px}.stat>strong{font-size:33px;padding-top:9px}.stat>small{font-size:9px}.practice-card{padding:25px;min-height:310px}.practice-card h2{font-size:26px}.practice-art{transform:scale(.7);right:-38px;top:66px;opacity:.8}.practice-card p:not(.eyebrow){font-size:11px;max-width:225px}.practice-card .cream-button{font-size:12px;gap:20px}.worker-card{padding:23px}.home-grid{gap:16px}.section-heading{margin-top:27px}.word-row{padding:17px;grid-template-columns:1fr 1fr;gap:9px}.word-tag{display:none}.word-term{font-size:19px}.word-meaning{font-size:11px}.bottom-note{font-size:10px;line-height:1.8;text-align:center}footer span{font-size:9px}footer small{font-size:8px}.toolbar{gap:10px}.toolbar input{font-size:12px;min-width:0}.toolbar select{font-size:11px;width:120px;padding:10px}.panel{padding:22px}.quiz-intro{padding:30px 10px}.quiz-intro h2{font-size:24px}.quiz-actions{flex-direction:column}.quiz-card{padding:23px 19px}.question{font-size:22px}.option{font-size:13px;padding:13px}.quiz-bottom{align-items:flex-end}.quiz-bottom .primary{font-size:12px}.quiz-top{font-size:10px}.review-card{padding:28px 20px}.review-word{font-size:34px}.login-wrap{grid-template-columns:1fr}.login-art{display:none}.login-card{padding:35px}.login-card h1{font-size:36px}dialog{padding:24px}.dialog-heading h2{font-size:22px}}
/* Touch and tablet refinements */
.progress{appearance:none;-webkit-appearance:none;display:block;width:100%;border:0}
.progress::-webkit-progress-bar{background:var(--sage);border-radius:5px}
.progress::-webkit-progress-value{background:#8aa57e;border-radius:5px}
.progress::-moz-progress-bar{background:#8aa57e;border-radius:5px}
.result-total{font-size:28px}
input,textarea,select{font-size:16px}
button{touch-action:manipulation}
.word-term,.question,.detail-title,.review-word{overflow-wrap:anywhere}
.sidebar{padding-bottom:max(20px,env(safe-area-inset-bottom))}
@media(pointer:coarse){button:not(.nav){min-height:44px}.option{min-height:60px}.dialog-close{min-width:44px}}
@media(min-width:651px) and (max-width:1050px){.page-heading h1{font-size:30px}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat>small{font-size:11px}.practice-card{min-height:310px}.quiz-card{padding:30px 25px}.question{font-size:25px}.option{min-height:60px}}
@media(max-width:650px){.sidebar{height:calc(69px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}main{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.page-heading{display:block}.page-heading p.muted{max-width:none}.page-heading .primary{margin-top:17px;font-size:12px;min-height:44px}.page-heading h1{font-size:28px}.page-heading .eyebrow{font-size:8px}.practice-art{opacity:.22;right:-27px;top:85px}.practice-card>div:first-child{position:relative;z-index:1}.practice-card p:not(.eyebrow){max-width:none}.toolbar input,.toolbar select{font-size:16px}.toolbar{flex-wrap:wrap}.toolbar input{flex-basis:100%}.toolbar select{width:100%}.quiz-bottom{flex-wrap:wrap}.quiz-top{gap:12px}.quiz-top>span:first-child{font-size:9px}.option{min-height:58px}.question{font-size:23px}.field-row{grid-template-columns:1fr}dialog{max-height:85dvh}.login-card{padding-bottom:env(safe-area-inset-bottom,35px)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
.mistake summary{cursor:pointer;list-style:none}.mistake summary::-webkit-details-marker{display:none}.mistake summary>.muted{float:right}.mistake .question{font-size:21px;margin:15px 0}.mistake .correct-label{color:var(--green);display:block;margin-top:8px}.mistake[open]{border-color:#a3b69b}.mistake .explanation{font-size:13px}.mistake .word-term{font-size:23px}
@media(max-width:650px){.sidebar nav{gap:0}.nav{padding:5px 6px;flex:1;min-width:0;white-space:nowrap;font-size:9px}.mistake summary>.muted{float:none;display:block;margin-top:8px}.mistake .question{font-size:19px}}
.kind-badge{display:inline-block;font-size:9px;color:#70856a;background:var(--sage);padding:2px 5px;margin-right:8px;border-radius:4px}.quiz-kind-label{max-width:320px;margin:20px auto 0;text-align:left}.quiz-kind-label select{margin-top:8px}#word-kind{margin-top:8px}

/* Plain exam-style typography, with larger desktop reading sizes. */
h1,h2,h3{letter-spacing:0}.serif{font-weight:600}.bottom-note{font-style:normal}
.question,.option,.review-word,.word-term,.detail-title{font-family:Arial,"Microsoft JhengHei",sans-serif}
@media(min-width:951px){
  :root{font-size:18px}
  h1{font-size:42px}h2{font-size:28px}h3{font-size:23px}
  .page-heading p.muted{font-size:17px}.eyebrow,.section-heading .eyebrow{font-size:12px;letter-spacing:1px}
  .nav{font-size:17px}.nav b{font-size:13px}.workspace-tag{font-size:11px}
  .private-note strong,.private-note small{font-size:13px}.topbar{font-size:15px}.pill{font-size:12px}
  .primary,.secondary,.cream-button,.text-button{font-size:17px}
  .stat>span{font-size:16px}.stat>strong{font-size:44px}.stat>small{font-size:14px;line-height:1.7}
  .practice-card{min-height:350px}.practice-card h2{font-size:32px}
  .practice-card p:not(.eyebrow){font-size:17px;max-width:none;line-height:1.8}
  .practice-card small{font-size:14px}.practice-card .eyebrow{font-size:12px}
  .practice-card>div:first-child{position:relative;z-index:1}.practice-art{opacity:.14;right:12px}
  .worker-card h3{font-size:23px}.worker-card p,.worker-state{font-size:16px}
  .worker-detail{font-size:14px}.worker-card .text-button{font-size:16px}
  .section-heading h2{font-size:26px}.word-term{font-size:25px}.word-meaning{font-size:17px}
  .word-meta,.word-tag,.kind-badge{font-size:13px}.word-row{padding:22px}
  .empty h3{font-size:23px}.empty p{font-size:17px}
  .panel h2{font-size:25px}.panel p,label{font-size:17px}
  .small,small,.optional,.toggle-label small{font-size:14px;line-height:1.8}
  input,textarea,select{font-size:18px}
  .question,.mistake .question{font-size:28px;line-height:1.85}
  .option{font-size:20px;padding:18px 20px}.option b{font-size:16px;width:32px;height:32px}
  .explanation,.mistake .explanation,.detail-section,.review-answer{font-size:18px;line-height:1.9}
  .quiz-top{font-size:14px}.quiz-intro p{font-size:17px}.quiz-intro h2{font-size:30px}
  .detail-title{font-size:36px}.detail-section small{font-size:14px}
  .dialog-heading h2{font-size:28px}.dialog-heading .eyebrow{font-size:11px}
  .job{font-size:15px}.job span{font-size:13px}.bottom-note{font-size:15px}
  footer span{font-size:13px}footer small{font-size:12px}
}
/* Persistent exam interface */
.exam-selectors{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;text-align:left;max-width:550px;margin:20px auto}.exam-selectors select{margin-top:8px}.prepare-box{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.resume-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px;background:#e8efdf;border:1px solid #d4dfc9;border-radius:12px;margin-bottom:20px}.resume-banner p{font-size:14px;margin:7px 0 0}.exam-save-note{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:#71816c}.option.selected{border-color:#527d54;background:#edf4e6;box-shadow:0 0 0 1px #527d54}.option.selected b{background:#235447;color:white}.exam-tools{display:flex;justify-content:space-between;gap:15px;margin:15px 0}.marked-text{color:#9e6c23}.exam-navigation{display:flex;justify-content:space-between;gap:15px;margin:20px 0}.question-map{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;margin-top:25px}.question-number{border:1px solid #d7dfd0;border-radius:8px;background:#fff;color:#526d4e;min-height:40px;font-size:14px;padding:8px 3px}.question-number.done{background:#e4edda}.question-number.current{outline:2px solid #235447;outline-offset:1px}.question-number.marked{border-color:#b88f42;color:#8f672b}.result-overview{text-align:center}.result-overview h2{font-size:28px}.result-overview .result-number{margin:16px 0}.result-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 18px}.result-toolbar h2{font-size:23px}.result-toolbar>div{display:flex;gap:8px}.filter-active{background:#235447;color:#fff}.result-question .quiz-top{gap:16px;flex-wrap:wrap;line-height:1.5}.result-question .question{margin:16px 0;font-size:25px;line-height:1.55}.result-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-option{padding:13px;border:1px solid var(--line);border-radius:8px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.result-option.right{background:#edf4e7;border-color:#8aaa79}.result-option.wrong{background:#faebe5;border-color:#d09a86}.result-option b{margin-right:8px}.result-translation{background:#f3f6ed;border-radius:10px;padding:20px;margin-top:20px}.result-translation h3,.result-explanation h3{font-size:17px;letter-spacing:0;margin:0 0 10px}.result-translation p,.result-explanation p{font-size:18px;line-height:1.65;white-space:pre-wrap;margin:10px 0}.result-translation p[lang=en]{color:#496446}.result-explanation{margin-top:20px}.history-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.history-card h3{font-size:21px;margin:13px 0 6px}.history-card p{font-size:16px;margin:6px 0;line-height:1.5}.history-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.quiz-intro{max-width:800px}.quiz-card{max-width:850px}
/* Comfortable phone typography without excessive leading */
@media(max-width:650px){
  :root{font-size:16px}p{line-height:1.55}small,.small{font-size:14px;line-height:1.5}
  .nav{font-size:12px;padding:5px 3px;line-height:1.3}.nav span{font-size:20px}.topbar{font-size:12px}.pill{font-size:11px;letter-spacing:.4px}
  .eyebrow,.page-heading .eyebrow,.section-heading .eyebrow{font-size:11px;letter-spacing:.8px;line-height:1.4}
  .page-heading p.muted{font-size:16px;line-height:1.5}.page-heading h1{font-size:28px;line-height:1.3}.page-heading{margin-bottom:23px}
  .primary,.secondary,.cream-button,.text-button,.page-heading .primary{font-size:16px;line-height:1.4}.primary,.secondary{padding:12px 14px}
  .stat{padding:16px 14px}.stat>span{font-size:15px}.stat>small{font-size:13px;line-height:1.45}.stat>strong{font-size:33px;padding:9px 0}.stats-grid{gap:10px}
  .practice-card{min-height:0;padding:23px}.practice-card h2{font-size:26px;line-height:1.45}.practice-card p:not(.eyebrow){font-size:16px;line-height:1.55;margin-top:13px}.practice-card .eyebrow{font-size:11px}.practice-card small{font-size:13px;line-height:1.5;margin-top:13px}.practice-card .cream-button{font-size:16px}.practice-art{display:none}
  .worker-card h3{font-size:21px;line-height:1.4}.worker-card p{font-size:16px;line-height:1.55}.worker-state{font-size:15px;line-height:1.5}.worker-detail{font-size:14px;line-height:1.5}.worker-card .text-button{font-size:16px}
  .section-heading h2{font-size:22px}.word-row{grid-template-columns:1fr;gap:8px;padding:17px}.word-term{font-size:22px}.word-meaning{font-size:16px;line-height:1.5;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.kind-badge{font-size:12px}.empty h3{font-size:21px;line-height:1.4}.empty p{font-size:16px;line-height:1.55}.empty{padding:30px 18px}
  .panel{padding:20px}.panel h2{font-size:23px}.panel p{font-size:16px;line-height:1.55}.panel p.small{font-size:14px}.quiz-intro{padding:24px 19px}.quiz-intro h2{font-size:24px;line-height:1.4}.quiz-intro p{font-size:16px;line-height:1.55}.quiz-intro p.small{font-size:14px}.quiz-actions{margin-top:18px;gap:10px}
  .quiz-card{padding:22px 18px}.question{font-size:23px;line-height:1.55;margin:20px 0}.option{font-size:18px;line-height:1.4;min-height:56px;padding:14px}.option b{font-size:15px}.quiz-top{font-size:14px;line-height:1.4;flex-wrap:wrap}.quiz-top>span:first-child{font-size:12px}.quiz-bottom .primary{font-size:16px}.explanation{font-size:17px;line-height:1.6}
  label{font-size:16px;line-height:1.4}.optional{font-size:13px}.dialog-heading .eyebrow{font-size:10px}.dialog-heading h2{font-size:23px;line-height:1.4}.detail-section{font-size:17px;line-height:1.6}.detail-section small{font-size:14px}.review-answer{font-size:17px;line-height:1.6}.detail-title{font-size:30px}
  .exam-selectors{grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}.exam-selectors label{font-size:15px}.exam-selectors select{font-size:16px;padding:11px 8px}.prepare-box{margin-top:22px;padding-top:20px}.resume-banner{display:block;padding:19px}.resume-banner p{font-size:15px;line-height:1.5}.resume-banner button{margin-top:13px}.exam-save-note{font-size:13px}.exam-tools .text-button{font-size:14px}.exam-navigation{gap:12px}.exam-navigation button{flex:1;font-size:16px}.question-map{grid-template-columns:repeat(5,1fr);gap:9px;margin-top:20px}.question-number{min-height:43px;font-size:16px}.result-toolbar{display:block}.result-toolbar>div{margin-top:12px}.result-toolbar button{font-size:14px;padding:10px 12px}.result-question .question{font-size:21px;line-height:1.55}.result-options{grid-template-columns:1fr}.result-option{font-size:16px;line-height:1.5}.result-translation{padding:16px}.result-translation p,.result-explanation p{font-size:17px;line-height:1.6}.result-translation h3,.result-explanation h3{font-size:17px}.history-card{display:block}.history-card h3{font-size:20px;line-height:1.4}.history-card p{font-size:16px;line-height:1.5}.history-actions{align-items:stretch;margin-top:16px}.result-overview h2{font-size:24px}.result-overview .result-number{font-size:58px}
  .mistake .question{font-size:21px;line-height:1.55}.mistake .explanation{font-size:17px;line-height:1.6}.mistake summary>.muted{font-size:13px}.mistake .small{font-size:15px;line-height:1.5}.bottom-note{font-size:13px;line-height:1.5}footer span{font-size:12px}footer small{font-size:11px}.job{font-size:15px;line-height:1.5}.job span{font-size:13px}.toggle-label small{font-size:13px;line-height:1.5}
}

@media(max-width:360px){.question-map{grid-template-columns:repeat(4,1fr)}}
.user-picker{min-height:100vh;display:grid;place-items:center;padding:24px}.user-picker-card{width:min(480px,100%);background:white;border:1px solid var(--line);border-radius:18px;padding:35px}.user-picker-card .eyebrow{margin-top:30px}.user-choice{width:100%;display:flex;justify-content:space-between;align-items:center;padding:20px;border:1px solid var(--line);border-radius:10px;margin:12px 0;background:#f8faf5;color:var(--green);font-size:18px}.user-choice span{font-size:14px;color:var(--muted)}.avatar{border:0;cursor:pointer}.private-note .text-button{display:block;font-size:12px;padding:3px 0}

/* Independent reading practice */
.practice-passage{white-space:pre-wrap;background:#f6f8f2;border-radius:10px;padding:20px;font:18px/1.65 Arial,sans-serif;overflow-wrap:anywhere}.practice-history{margin-top:25px}.practice-progress{margin:18px 0}.practice-actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:650px){.sidebar nav{justify-content:space-between}.sidebar .nav{flex:1 1 0;min-width:0;font-size:11px}.practice-passage{font-size:17px;line-height:1.55;padding:16px}}

#shark-widget{position:fixed;right:24px;bottom:30px;z-index:30}#shark-widget[hidden],#shark-chat[hidden],#shark-restore[hidden]{display:none}#shark-avatar{width:clamp(60px,7vw,88px);height:clamp(60px,7vw,88px);border-radius:50%;border:3px solid white;box-shadow:0 5px 22px #173e3960;background:#dbf0f2 url('/shark.png') center 18%/210% no-repeat;cursor:grab;touch-action:none}#shark-chat{position:fixed;right:20px;bottom:125px;width:min(380px,calc(100vw - 24px));max-height:min(620px,75dvh);display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px #173e3930;padding:16px}#shark-chat header{display:flex;justify-content:space-between;align-items:center;color:var(--green)}#shark-close{border:0;background:none;font-size:25px;cursor:pointer}#shark-messages{overflow:auto;min-height:100px;max-height:45dvh;padding:8px 0}.shark-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;border-radius:12px;background:#edf4ed;margin:8px 0;font-size:15px;line-height:1.55}.shark-message.user{background:#e2eff4;margin-left:30px}#shark-form{display:flex;gap:8px;align-items:end}#shark-form textarea{flex:1;min-width:0;resize:vertical}#shark-form button{margin:0}#shark-chat .small{margin:8px 0 0}#shark-restore{position:fixed;right:12px;bottom:12px;z-index:29;border:1px solid var(--line);border-radius:20px;background:white;padding:8px;color:var(--green)}@media(max-width:650px){#shark-widget{bottom:calc(85px + env(safe-area-inset-bottom));right:14px}#shark-chat{right:12px;bottom:calc(155px + env(safe-area-inset-bottom));max-height:65dvh}#shark-restore{bottom:calc(75px + env(safe-area-inset-bottom))}}

#shark-translate-form{border-bottom:1px solid var(--line);padding:10px 0}.shark-translate-row{display:flex;gap:6px;align-items:center}.shark-translate-row input{flex:1;min-width:0;font-size:15px}.shark-translate-row select{width:72px;padding:8px 3px;font-size:14px}.shark-translate-row button{padding:8px;font-size:14px;margin:0}#shark-translation{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.5;color:var(--green);padding-top:6px}

/* Show the full shark and keep the phone dialog within the viewport. */
#shark-avatar{background-size:cover;background-position:center}#shark-translation{max-height:25dvh;overflow:auto}@media(max-width:650px){#shark-chat{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:calc(100vw - 24px);max-height:min(82dvh,700px);overflow:auto}#shark-messages{min-height:65px;max-height:24dvh}}

/* Sharkly: calm ocean blues and subtle fin details. */
:root{--bg:#f4f8fa;--paper:#fff;--ink:#203945;--muted:#667e89;--line:#dbe8ec;--green:#245a70;--sage:#e6f0f3;--accent:#70a8ba;--cream:#edf6f5;--error:#ad5448}
body{background:var(--bg)}.sidebar{background:#fbfdfe;border-color:#dce9ed}.brand{letter-spacing:-1px;color:#203f50}.brand-mark{color:#e9f8fa;background:#295f75;overflow:hidden}.brand-mark svg{display:block;width:70%;height:70%}.small-mark svg{width:75%;height:75%}.brand-dot{color:#69aabd}.workspace-tag{color:#8aa0a8}.nav.active{background:#e5f0f3;color:#245a70}.nav b{color:#456d7a}.topbar{border-color:#e0ebee}.eyebrow{color:#6e8d98}.pill{border-color:#cfdee4;color:#64808b}.avatar{background:#e2eef1;color:#245a70}.primary:hover{background:#19485c}.primary:focus-visible,.secondary:focus-visible,button:focus-visible,a:focus-visible{outline-color:#82b9ca}input:focus,textarea:focus,select:focus{border-color:#75a9ba;box-shadow:0 0 0 3px #e1f0f4}.stat{border-color:#dfeaed;box-shadow:0 5px 18px #2c5d6d08}.stat>span{color:#6d8790}.stat>small{color:#849ba3}.practice-card{background:linear-gradient(135deg,#245a70,#33768a);color:white}.practice-card .eyebrow{color:#bedce2}.practice-card p:not(.eyebrow){color:#dcebef}.practice-card small{color:#c3dde2}.cream-button{background:#e9f4f4;color:#245a70}.worker-card{background:#eaf3f5;border-color:#d9e9ed}.worker-detail{color:#78919a}.soft{background:#daeaf0;color:#4e7e8d}.mini-icon{color:#6091a0}.shark-spark{font-size:35px;line-height:1;color:#74aaba}.status-dot{background:#6da1a5}.word-row:hover{background:#f4f9fa}.word-meaning{color:#708a92}.word-meta{color:#8ba0a7}.word-tag{color:#4e7d8b}.empty{border-color:#cadae0;background:#fbfdfe}.bottom-note{color:#839aa1}.bottom-note span{color:#8ab4c0}footer{color:#557b87}footer span,footer small{color:#8aa1a8}.option.selected{border-color:#5b92a4;background:#eaf4f6;box-shadow:0 0 0 1px #5b92a4}.option.selected b{background:#245a70}.option:hover:not(:disabled){background:#f1f8f9;border-color:#9bc1ca}.question-number.current{outline-color:#397486}.question-number.done{background:#e2f0f2}.result-translation,.review-answer{background:#f0f7f8}.resume-banner{background:#e9f3f5;border-color:#d4e7eb}.filter-active{background:#245a70}.shark-message{background:#edf5f7}.shark-message.user{background:#deedf2}.user-choice{background:#f5fafb;border-color:#dbe9ed;color:#245a70}.user-choice:hover{background:#eaf4f6}.user-picker-card{box-shadow:0 12px 45px #2e60700a}.practice-passage{background:#f3f8f9}.progress::-webkit-progress-value{background:#6ca4b2}.progress::-moz-progress-bar{background:#6ca4b2}

.mobile-wordmark{display:none}@media(max-width:650px){.mobile-wordmark{display:inline-flex;align-items:center;gap:5px;color:#245a70;font-size:20px;font-weight:700;letter-spacing:-.5px}.mobile-wordmark>span:first-child{font-size:15px;color:#74a8b8}.topbar #date-label{display:none}}

/* Chrome extension download */
.extension-download{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px 28px;margin:26px 0 8px;padding:24px 26px;background:#fff;border:1px solid var(--line);border-radius:16px}.extension-copy{display:flex;gap:16px;align-items:flex-start}.extension-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:#e5f1f3;color:#397286;font-size:24px}.extension-copy .eyebrow{margin:1px 0 5px}.extension-copy h2{font-size:21px;line-height:1.4}.extension-copy p:not(.eyebrow){margin:7px 0 0;color:var(--muted);font-size:15px;line-height:1.5}.extension-copy p.small{font-size:13px}.extension-download-button{white-space:nowrap;gap:8px;font-size:15px}.extension-guide{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;color:var(--ink)}.extension-guide summary{cursor:pointer;color:var(--green);font-weight:600;font-size:15px}.extension-guide p,.extension-guide li{font-size:15px;line-height:1.65}.extension-guide ol{padding-left:24px}.extension-guide code{overflow-wrap:anywhere;font-size:.92em}@media(max-width:650px){.extension-download{grid-template-columns:1fr;padding:20px;gap:16px}.extension-copy h2{font-size:20px}.extension-copy p:not(.eyebrow){font-size:15px}.extension-download-button{width:100%;font-size:15px}.extension-guide{grid-column:auto}.extension-guide p,.extension-guide li,.extension-guide summary{font-size:15px;line-height:1.55}}

.question-assist{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.question-assist .secondary{font-size:15px;padding:10px 14px}@media(max-width:650px){.question-assist{display:grid;grid-template-columns:1fr 1fr}.question-assist .secondary{font-size:14px;padding:10px 6px}}

.shark-conversation-bar{display:flex;align-items:center;gap:7px;margin-top:10px}.shark-conversation-bar select{flex:1;min-width:0;font-size:14px;padding:9px}.shark-conversation-bar button{flex:none;min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:9px;background:#f2f8f9;color:var(--green);font-size:21px;line-height:1}.shark-conversation-bar button:disabled{opacity:.5}.shark-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#shark-chat .shark-conversation-bar select{margin:0}@media(max-width:650px){.shark-conversation-bar{margin-top:7px}.shark-conversation-bar select{font-size:16px}#shark-messages{min-height:48px}}
