:root{--blue:#2563ff;--blue-dark:#174cdf;--navy:#10234f;--text:#263d64;--muted:#697f9f;--line:#dce8f7;--surface:#fff;--green:#079b6c;--red:#e25469;--radius:18px;--shadow:0 8px 35px #2a69b308;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--navy);background:#f0f7ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 96% 0%,#ddecff 0,transparent 45%),linear-gradient(145deg,#f4f9ff,#edf6ff 64%,#f8fbff);min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #83b0ff;outline-offset:3px}button{border:0}a{color:var(--blue)}svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.4;letter-spacing:-.025em}h2{font-size:22px;line-height:1.5}h3{font-size:18px;line-height:1.5}.muted{color:var(--muted)}.small{font-size:14px;line-height:1.6}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.icon{display:inline-flex;align-items:center;justify-content:center}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy);font-size:29px;font-weight:800;white-space:nowrap;letter-spacing:-1px}.brand .brand-icon{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:12px;color:white;background:linear-gradient(140deg,#11b9ff,#2171ff);box-shadow:0 5px 12px #267aff25}.brand-icon svg{width:28px;height:28px;stroke-width:2}.header{height:88px;background:#ffffffed;border-bottom:1px solid #e0ebfa;display:flex;align-items:center;padding:0 max(28px,calc((100vw - 1360px)/2));gap:40px;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.nav{display:flex;align-items:center;gap:14px;flex:1;justify-content:center}.nav-item{display:flex;align-items:center;gap:10px;background:none;color:#475e81;font-weight:650;font-size:18px;white-space:nowrap;padding:10px 14px;border-radius:30px;min-height:48px}.nav-item .step{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#edf2fa;color:#516b91;font-size:18px;font-weight:700}.nav-item.active{background:#edf4ff;color:var(--blue)}.nav-item.active .step{color:white;background:var(--blue);box-shadow:0 3px 9px #2563ff35}.nav-item.done .step{background:#e7f7f0;color:var(--green)}.nav-line{height:1px;width:30px;background:#c8d9ee}.nav-record{margin-left:14px}.avatar{border-radius:50%;width:40px;height:40px;background:#e1efff;color:var(--blue);font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center}.account-btn{background:none;border-radius:50%;padding:3px}.main{max-width:1360px;margin:auto;padding:34px 28px 128px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:16px}.page-heading p{font-size:16px;color:var(--muted);margin-top:7px;line-height:1.6}.text-btn{background:transparent;color:#587197;display:inline-flex;gap:7px;align-items:center;padding:8px;border-radius:8px;white-space:nowrap;font-size:14px}.text-btn:hover{background:#e5effc;color:var(--blue)}.toolbar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:17px 20px;margin-bottom:18px;display:flex;gap:20px;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}.filters{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.field-inline{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}select,input{border:1px solid #d7e3f3;background:#fff;border-radius:9px;color:var(--navy);padding:11px 13px;min-height:44px;max-width:100%}select{padding-right:32px;cursor:pointer;font-size:15px;min-width:102px}select:disabled{background:#f6f8fc;color:#6b7c93}.edition-select{max-width:224px}.stats{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.stat{font-size:14px;white-space:nowrap;color:#657997;display:flex;align-items:center;gap:7px}.stat b{font-size:23px;color:var(--navy);font-variant-numeric:tabular-nums}.stat.blue b{color:var(--blue)}.stat.red b{color:var(--red)}.grid{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:20px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-head{padding:20px 26px;border-bottom:1px solid #e6eef8;background:linear-gradient(100deg,#f8fbff,#fff);display:flex;align-items:center;justify-content:space-between;gap:12px}.card-body{padding:26px}.table-wrap{overflow:auto}.word-table{border-collapse:collapse;width:100%;table-layout:fixed}.word-table th{font-size:14px;font-weight:600;color:#5e7598;text-align:left;padding:16px 16px;background:#f8fbff;border-bottom:1px solid var(--line)}.word-table td{padding:11px 16px;border-bottom:1px solid #e7eef7;height:59px;font-size:16px}.word-table th:first-child,.word-table td:first-child{width:55px;text-align:center;color:#7e92ae;font-size:14px}.word-table th:nth-child(2){width:28%}.word-table th:nth-child(3){width:27%}.word-table th:last-child{width:216px;text-align:center}.word-en{font-size:22px;font-weight:550;letter-spacing:.01em;overflow-wrap:anywhere}.word-zh{color:#526b8e;font-size:16px;line-height:1.5}.mask{background:linear-gradient(100deg,#ecf0f6,#e5ebf4);color:#8597b0;border-radius:7px;padding:7px 12px;display:inline-flex;gap:6px;align-items:center;font-size:13px}.mask svg{width:15px;height:15px}.judgment{display:flex;gap:8px;justify-content:center}.judge{min-width:82px;min-height:36px;padding:7px 14px;border:1px solid #dde6f2;border-radius:8px;background:#f4f7fb;color:#597299;font-size:15px;display:flex;gap:7px;align-items:center;justify-content:center}.judge svg{height:16px;width:16px}.judge:hover{border-color:#aabfdf;background:#eaf1fb}.judge.correct{background:#e2faf2;border-color:#6eddb7;color:#087e59}.judge.wrong{background:#fff0f2;border-color:#f49bab;color:#d54057}.pager{display:flex;justify-content:center;align-items:center;gap:6px;padding:17px 14px;flex-wrap:wrap}.page-btn{border:0;background:none;border-radius:50%;width:34px;height:34px;color:#557198;font-size:14px}.page-btn.active{background:var(--blue);color:white}.pager .text-btn{font-size:14px}.word-footer{color:#8a9bb4;font-size:13px;text-align:center;padding:0 16px 15px}.side{display:flex;flex-direction:column;gap:18px}.side-head{background:linear-gradient(120deg,#fff5f5,#fffafc);padding:22px 24px 18px}.side-head b{font-size:28px;color:var(--red);margin-left:8px}.chips{display:flex;flex-wrap:wrap;gap:9px;max-height:295px;overflow:auto;padding:20px 23px}.chip{border:0;border-radius:8px;background:#fff0f2;padding:8px 12px;color:#314d75;font-size:15px;display:inline-flex;gap:5px;align-items:center;max-width:100%;overflow-wrap:anywhere}.chip.covered{background:#e7faf1;color:#077e58}.chip svg{width:15px;height:15px}.side-foot{border-top:1px solid var(--line);padding:16px 23px;color:#6c83a3;font-size:14px;line-height:1.6}.tip-card{border:1px solid #dbeafa;border-radius:var(--radius);background:linear-gradient(120deg,#e3f0ff,#edf6ff);padding:19px;display:flex;align-items:center;gap:6px;min-height:145px;overflow:hidden}.mascot-small{width:116px;height:110px;object-fit:contain;mix-blend-mode:multiply;margin-left:-14px;flex-shrink:0}.tip-card h3{font-size:17px;line-height:1.7}.tip-card p{font-size:14px;color:#6b83a8;line-height:1.7;margin-top:5px}.source-note{font-size:13px;color:#7890af;line-height:1.7;padding:0 4px}.bottom-bar{position:fixed;bottom:0;left:0;right:0;background:#ffffffee;backdrop-filter:blur(18px);border-top:1px solid #dbe7f7;z-index:25;box-shadow:0 -5px 24px #3071c206}.bottom-inner{max-width:1360px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:17px 28px;gap:16px;min-height:84px}.save-state{color:var(--green);font-size:14px;display:flex;align-items:center;gap:8px}.save-state.error{color:var(--red)}.save-state.pending{color:#b27b13}.save-state svg{width:20px;height:20px}.btn{border-radius:10px;min-height:46px;padding:12px 22px;font-weight:600;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .15s,transform .15s;white-space:nowrap;border:1px solid transparent}.btn:active:not(:disabled){transform:translateY(1px)}.btn.primary{background:var(--blue);color:white;box-shadow:0 4px 12px #2563ff22}.btn.primary:hover:not(:disabled){background:var(--blue-dark)}.btn.secondary{background:#fff;color:var(--blue);border-color:#b6cdff}.btn.secondary:hover:not(:disabled){background:#f1f6ff}.btn.quiet{background:#edf3fc;color:#536d93}.btn.danger{color:#d93e54;background:#fff1f3;border-color:#ffd0d8}.btn.sm{padding:8px 14px;font-size:14px;min-height:39px}.empty{padding:54px 26px;text-align:center;min-height:395px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.empty .empty-icon{width:66px;height:66px;border-radius:20px;background:#edf4ff;color:var(--blue);display:flex;align-items:center;justify-content:center;margin-bottom:4px}.empty-icon svg{width:30px;height:30px}.empty h2{font-size:24px}.empty p{color:var(--muted);font-size:16px;line-height:1.9;max-width:430px}.setup-numbers{display:flex;gap:40px;justify-content:center;margin:13px 0}.setup-numbers div{color:#7c8faa;font-size:14px}.setup-numbers strong{display:block;color:var(--blue);font-size:34px;margin-bottom:4px}.notice{border-radius:10px;background:#fff8e9;color:#947021;padding:12px 16px;font-size:14px;line-height:1.7;display:flex;align-items:flex-start;gap:9px;margin-bottom:18px}.notice svg{margin-top:2px;flex-shrink:0;width:18px;height:18px}.notice.info{background:#edf4ff;color:#557aa8}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 9px;font-size:12px;font-weight:500;white-space:nowrap;background:#edf4ff;color:#587fbc}.badge.demo{background:#fff3dc;color:#a27423}.badge.success{background:#e3f7ef;color:#148261}.article-body{padding:28px 32px 36px;min-height:365px}.article-title{font-size:26px;line-height:1.5;font-weight:700;margin:0 0 22px;letter-spacing:-.01em}.article-en{font-size:23px;line-height:2;letter-spacing:.005em;color:#163057;margin-bottom:19px}.word-highlight{border:0;display:inline;font:inherit;padding:1px 4px;margin:0;border-radius:5px;background:#e8f1ff;color:#1259ef;cursor:pointer}.word-highlight:hover{background:#d4e5ff}.read-hint{font-size:14px;color:#8197b3;display:flex;align-items:center;gap:7px;margin-top:25px}.progress-pill{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f1f6ff;border-radius:8px;font-size:15px;color:#4a6996}.progress-pill svg{color:var(--blue);width:19px}.coverage{border:1px solid #8fdbc0;background:#f5fdf9;border-radius:8px;padding:9px 15px;color:#05885f;font-size:16px;white-space:nowrap}.segmented{display:flex;gap:5px;background:#eef3fa;border-radius:11px;padding:5px}.segment{background:none;color:#667e9f;font-weight:600;padding:11px 18px;border-radius:8px;font-size:16px;display:flex;align-items:center;gap:8px;justify-content:center}.segment.active{background:#fff;color:var(--blue);box-shadow:0 3px 9px #1737690c}.sentence-list{padding:10px 25px}.sentence{padding:20px 0;border-bottom:1px solid #e5edf7}.sentence:last-child{border-bottom:0}.sentence-top{display:flex;align-items:flex-start;gap:13px}.sentence-number{color:#91a1b8;font-size:13px;padding-top:6px;min-width:23px;font-variant-numeric:tabular-nums}.sentence-content{flex:1;min-width:0}.sentence-source{font-size:22px;line-height:1.8;color:#1c3458}.sentence-source.zh{font-size:19px;line-height:1.9}.answer-hidden{border:1px dashed #d2dfef;background:#f8faff;border-radius:10px;padding:13px 15px;color:#8196b3;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;min-height:55px;font-size:14px}.answer-hidden button{background:none;color:var(--blue);font-size:14px;display:flex;align-items:center;gap:7px;white-space:nowrap}.answer-revealed{margin-top:13px;background:#f1f6ff;border:1px solid #dce9ff;border-radius:10px;padding:14px 16px}.answer-text{color:#35587f;font-size:18px;line-height:1.8}.answer-actions{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:10px;flex-wrap:wrap}.practice-tools{padding:17px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f8fbff;border-bottom:1px solid var(--line);flex-wrap:wrap}.switch-label{display:flex;gap:8px;align-items:center;font-size:14px;color:#5c7292;cursor:pointer}.switch-label input{min-height:initial;accent-color:var(--blue);width:16px;height:16px;margin:0}.progress-block{padding:21px 23px}.progress-block+.progress-block{padding-top:0}.progress-track{height:7px;border-radius:8px;background:#edf2fa;margin-top:11px;overflow:hidden}.progress-fill{background:var(--blue);height:100%;border-radius:8px;transition:width .25s}.progress-fill.green{background:#18ac82}.list-card{padding:0 26px}.history-item{padding:24px 0;display:grid;grid-template-columns:48px 1fr auto;gap:18px;align-items:center;border-bottom:1px solid #e7eef7}.history-item:last-child{border-bottom:0}.history-icon{width:48px;height:56px;border-radius:12px;background:#edf4ff;color:#4380ed;display:flex;align-items:center;justify-content:center}.history-icon svg{width:25px;height:25px}.history-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:19px;margin-bottom:8px}.history-meta{display:flex;align-items:center;gap:13px;flex-wrap:wrap;color:#7c8faa;font-size:13px}.history-excerpt{font-size:15px;color:#7187a4;margin:12px 0;line-height:1.6;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.history-progress{display:flex;gap:17px;align-items:center;flex-wrap:wrap;font-size:13px;color:#6e85a3}.history-actions{display:flex;flex-direction:column;align-items:end;gap:6px}.login-shell{max-width:1320px;margin:auto;padding:36px 36px 44px}.login-main{display:grid;grid-template-columns:1.05fr .95fr;gap:78px;align-items:center;min-height:calc(100vh - 140px);padding:32px 24px 0}.login-story h1{font-size:49px;font-weight:800;line-height:1.5;letter-spacing:-.04em}.login-story .login-sub{font-size:21px;letter-spacing:.1em;color:#6d87ae;margin-top:12px}.login-visual{position:relative;margin-top:12px;min-height:255px;display:flex;align-items:center;justify-content:center}.mascot-large{width:100%;height:300px;object-fit:contain;mix-blend-mode:multiply}.floating-word{position:absolute;background:#ffffffd9;border:1px solid #fff;border-radius:12px;padding:12px 18px;box-shadow:0 8px 24px #4486c809;color:#21467a;font-size:19px}.floating-word small{display:block;font-size:13px;color:#91a1b9;margin-top:4px}.floating-word.one{left:1%;top:16%;transform:rotate(-9deg)}.floating-word.two{right:0;top:8%;transform:rotate(9deg)}.floating-word.three{right:4%;bottom:10%;transform:rotate(4deg)}.login-card{background:#fffffff5;border:1px solid white;border-radius:27px;padding:44px 42px 32px;box-shadow:0 20px 70px #4b87c711;position:relative;max-width:490px;width:100%}.login-card:before{content:"";position:absolute;top:0;left:calc(50% - 42px);width:84px;height:5px;border-radius:0 0 6px 6px;background:#3b7cff}.login-card h2{font-size:30px;line-height:1.5;margin-bottom:7px}.login-card>p{font-size:16px;color:#7c90ae;margin-bottom:31px}.login-field{display:block;margin:0 0 20px;font-size:15px}.login-field>span{display:block;margin-bottom:8px;font-weight:550}.input-with-icon{display:flex;align-items:center;border:1px solid #d6e2f4;border-radius:10px;min-height:54px;padding:0 13px;gap:12px;background:#fdfefe}.input-with-icon>svg{color:#8ba0bd;width:21px;height:21px}.input-with-icon input{border:0;outline:0;background:none;flex:1;min-width:0;padding:13px 0;font-size:18px;border-radius:0}.input-with-icon:focus-within{border-color:#588df9;box-shadow:0 0 0 3px #5b95ff15}.input-with-icon button{background:none;color:#8398b6;padding:5px;display:flex}.login-remember{font-size:14px;display:flex;align-items:center;gap:8px;color:#6d83a3;margin:5px 0 25px}.login-remember input{min-height:0;width:17px;height:17px;accent-color:var(--blue)}.login-card .btn{width:100%;min-height:54px;font-size:18px}.login-bottom{font-size:13px!important;text-align:center;line-height:1.7;margin:21px 0 0!important;color:#8da0ba!important}.login-error{color:#d64b63;font-size:14px;margin:-7px 0 16px;line-height:1.6;min-height:0}.login-foot{text-align:center;font-size:13px;color:#8da2bd;padding:20px 10px 0;line-height:1.8}.mode-note{font-size:13px;color:#8a713d;background:#fff7e9;border:1px solid #f2e4c9;padding:10px 12px;border-radius:8px;line-height:1.7;margin:18px 0 0}.boot{height:100vh;display:flex;align-items:center;justify-content:center;color:#7489a7;font-size:16px}#toast{position:fixed;bottom:103px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;z-index:80;background:#18375a;color:white;padding:12px 20px;border-radius:12px;font-size:14px;box-shadow:0 8px 28px #123a7030;max-width:min(90vw,560px);line-height:1.7;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:19px;width:min(500px,calc(100vw - 36px));padding:28px;color:var(--navy);box-shadow:0 24px 100px #163b7b2e;max-height:85vh;overflow:auto}dialog::backdrop{background:#13335c45;backdrop-filter:blur(4px)}dialog h2{font-size:23px;margin:0 0 14px}dialog p{font-size:15px;line-height:1.85;color:#637c9f;margin-bottom:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px;flex-wrap:wrap}.dialog-close{position:absolute;right:14px;top:14px;background:none;color:#8498b2;padding:6px}.dialog-list{display:flex;flex-direction:column;gap:11px}.dialog-list .btn{justify-content:flex-start}.loading-box{padding:64px 26px;min-height:400px;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:16px}.spinner{width:38px;height:38px;border-radius:50%;border:3px solid #e0eafe;border-top-color:var(--blue);animation:spin .9s linear infinite}.loading-box p{color:#728aab;line-height:1.8;font-size:15px}.task-steps{display:flex;gap:13px;color:#a0aec2;font-size:13px;margin-top:10px}.task-steps .current{color:var(--blue)}.history-count{font-size:14px;color:#7990af}.mobile-only{display:none}.hide{display:none!important}.review-note{background:#f6f9fd;border-top:1px solid #e5edf8;padding:13px 25px;color:#7890af;font-size:13px;line-height:1.7}.tag-neutral{background:#f1f5fa;color:#647e9f;padding:5px 9px;border-radius:6px;font-size:13px}.article-stats{display:flex;gap:9px;flex-wrap:wrap}.scroll-chips{max-height:365px}.error-box{padding:27px;border-radius:14px;background:#fff5f5;border:1px solid #f7dce1;line-height:1.8;color:#96576a;margin:23px}.subtle-divider{width:1px;height:22px;background:#dfe9f5}.no-mascot .mascot-small,.no-mascot .mascot-large{display:none}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1500px){.login-main{gap:110px}.login-story h1{font-size:54px}.mascot-large{height:360px}}@media(max-width:1200px){.header{gap:20px;padding:0 24px}.brand{font-size:25px}.nav{gap:7px}.nav-item{font-size:16px;padding:10px 10px;gap:7px}.nav-line{width:16px}.nav-record{margin-left:4px}.toolbar{flex-wrap:wrap;gap:16px}.grid{grid-template-columns:minmax(0,1fr) 278px}.word-table td{padding:10px 12px}.word-table th:last-child{width:185px}.judge{min-width:70px;padding:7px 10px}.login-main{gap:48px}.login-story h1{font-size:43px}.login-card{padding:35px 30px}.tip-card{padding:16px}.mascot-small{width:92px;height:100px}.card-head{padding:18px 23px}}@media(max-width:950px){.header{height:auto;min-height:80px;flex-wrap:wrap;padding:16px 22px 12px;gap:12px}.brand{font-size:26px;flex:1}.account-btn{order:0}.nav{order:1;flex-basis:100%;justify-content:space-between;gap:5px}.nav-line{flex:1;min-width:8px;max-width:45px}.nav-record{margin-left:10px}.main{padding:26px 22px 135px}.grid{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.tip-card{display:none}.side-head{padding:18px}.chips{padding:17px}.side-foot{padding:15px 18px}.source-note{font-size:12px}.word-table th:last-child{width:160px}.word-table th:nth-child(3){width:26%}.word-table th:first-child,.word-table td:first-child{width:40px}.word-table th,.word-table td{padding-left:8px;padding-right:8px}.word-en{font-size:20px}.judge{min-width:61px;font-size:14px;padding:7px 8px}.mask{font-size:12px;padding:7px 8px}.mask svg{display:none}.word-zh{font-size:14px}.word-table th{font-size:13px}.login-shell{padding:25px}.login-main{gap:26px;padding:20px 0 0;min-height:calc(100vh - 140px)}.login-story h1{font-size:36px}.login-story .login-sub{font-size:17px}.floating-word{padding:9px 13px;font-size:17px}.login-card{padding:34px 26px}.login-card h2{font-size:26px}.login-visual{min-height:240px}.mascot-large{height:250px}.sentence-list{padding:9px 20px}.sentence-source{font-size:20px}.history-item{grid-template-columns:38px 1fr;gap:14px}.history-actions{grid-column:2;flex-direction:row;align-items:center}.history-icon{width:38px;height:47px}.article-body{padding:25px}.article-en{font-size:22px}.article-title{font-size:24px}.progress-block{padding:19px}.bottom-inner{padding:15px 22px}.bottom-inner>.row>.small{display:none}}@media(max-width:720px){h1{font-size:26px}h2{font-size:20px}.grid{grid-template-columns:1fr}.side{display:grid;grid-template-columns:1fr;gap:14px}.side .source-note{font-size:13px}.main{padding:23px 18px 143px}.page-heading{align-items:flex-start;gap:8px;margin-bottom:18px}.page-heading p{font-size:14px}.page-heading>.text-btn{font-size:0;padding:10px}.page-heading>.text-btn svg{width:19px}.header{padding:13px 18px 10px;gap:10px}.brand{font-size:25px}.brand .brand-icon{width:35px;height:35px;border-radius:10px}.brand-icon svg{width:24px;height:24px}.avatar{width:34px;height:34px;font-size:15px}.nav{overflow:visible;gap:2px}.nav-item{font-size:14px;padding:7px 8px;gap:5px;min-height:38px}.nav-item .step{width:24px;height:24px;font-size:13px}.nav-line{width:8px;max-width:15px;min-width:4px}.nav-record{margin-left:3px}.nav-record svg{width:17px;height:17px}.toolbar{padding:15px;gap:14px}.filters{gap:10px;width:100%;align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.field-inline{font-size:13px;flex-direction:column;align-items:stretch;gap:6px}.field-inline:last-child{grid-column:1/-1}.edition-select{max-width:none}.stats{gap:15px}.stat b{font-size:21px}.stat{font-size:13px}.toolbar>.btn{margin-left:auto}.toolbar .subtle-divider{display:none}.word-table th:nth-child(2){width:30%}.word-table th:nth-child(3){width:26%}.word-table th:last-child{width:138px}.word-table th:first-child,.word-table td:first-child{width:30px}.word-table td{height:64px;padding:11px 5px}.word-table th{font-size:12px;padding:13px 5px}.word-en{font-size:19px}.word-zh{font-size:13px}.mask{font-size:11px;padding:6px 5px;white-space:nowrap}.judge{min-width:53px;font-size:13px;padding:7px 6px;gap:4px;min-height:38px}.judge svg{width:14px}.judgment{gap:5px}.pager{gap:2px}.page-btn{width:30px;height:31px}.bottom-inner{padding:12px 18px;flex-wrap:wrap;gap:10px;min-height:99px}.bottom-inner>.save-state{flex-basis:100%;font-size:12px}.bottom-inner>.row{width:100%;justify-content:flex-end;gap:10px}.bottom-inner>.text-btn{font-size:13px}.bottom-inner .btn{font-size:14px;min-height:44px;padding:10px 16px}.bottom-inner>.text-btn+.row{width:auto;flex:1}.bottom-inner .save-state svg{width:16px;height:16px}.side-head{display:flex;align-items:center;justify-content:space-between;padding:16px 19px}.side-head h2{font-size:19px}.chips{padding:16px 19px;max-height:180px}.side-foot{font-size:13px;padding:12px 19px}.chip{font-size:14px;padding:7px 10px}.login-shell{padding:24px 22px}.login-main{grid-template-columns:1fr;gap:22px;padding:25px 0 0;min-height:auto}.login-story h1{font-size:30px;text-align:center;line-height:1.5}.login-story h1 br{display:none}.login-story .login-sub{text-align:center;font-size:16px;margin-top:8px}.login-visual{display:none}.login-card{margin:auto;max-width:430px;padding:29px 27px;border-radius:23px}.login-card h2{font-size:26px}.login-card>p{font-size:15px;margin-bottom:23px}.login-foot{font-size:12px}.article-title{font-size:23px}.article-body{padding:23px;min-height:300px}.article-en{font-size:22px;line-height:1.95}.card-head{padding:17px 20px}.card-head h2{font-size:20px}.article-stats{gap:7px}.progress-pill{padding:7px 9px;font-size:13px}.coverage{padding:8px 11px;font-size:14px}.segmented{width:100%;gap:3px}.segment{padding:10px 8px;font-size:14px;flex:1}.segment svg{width:17px;height:17px}.sentence-list{padding:5px 17px}.sentence{padding:17px 0}.sentence-number{min-width:18px}.sentence-top{gap:8px}.sentence-source{font-size:20px}.sentence-source.zh{font-size:18px}.answer-hidden{font-size:13px;padding:12px}.answer-text{font-size:17px}.answer-revealed{padding:13px}.answer-actions .judge{min-width:85px}.answer-actions .text-btn{font-size:12px;padding:6px}.progress-block{padding:16px 19px}.list-card{padding:0 19px}.history-item{padding:19px 0;gap:12px}.history-title{font-size:18px;line-height:1.6}.history-meta{gap:6px 12px;font-size:12px}.history-progress{font-size:12px;gap:12px}.history-excerpt{font-size:14px}.empty{min-height:340px;padding:35px 23px}.empty h2{font-size:22px}.empty p{font-size:15px}.notice{font-size:13px;padding:11px 13px}.card-body{padding:22px}.desktop-only{display:none}.mobile-only{display:initial}.practice-tools{padding:14px 17px}.task-steps{gap:8px;font-size:12px}.history-count{font-size:13px}.review-note{padding:12px 18px}#toast{bottom:126px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:380px){.nav-item{font-size:12px;padding:6px}.nav-item .step{width:20px;height:20px;font-size:12px}.nav-record{margin-left:0}.word-table th:last-child{width:126px}.judge{min-width:49px}.brand{font-size:23px}.main{padding-left:12px;padding-right:12px}}

@media(max-width:480px){.nav{gap:2px}.nav-item{font-size:12px;padding:7px 4px;gap:4px}.nav-item .step{width:20px;height:20px;font-size:12px}.nav-line{min-width:2px;max-width:6px}.nav-record{margin-left:0}.nav-record svg{display:none}.bottom-inner>.text-btn+.row{width:100%;flex-basis:100%}.history-actions{flex-wrap:wrap}.article-stats{width:100%}}
@media(max-width:380px){.header{padding-left:14px;padding-right:14px}.nav-item{font-size:11px;gap:3px}.nav-item .step{width:18px;height:18px;font-size:11px}.nav-line{max-width:3px}}

/* Learning screens share one viewport. Word lists and records are paginated;
   longer reading and translation content stays inside its reading area. */
.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.header-actions .text-btn{font-size:13px}
.content-pager{display:flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;padding:10px 16px;border-top:1px solid #e7eef7;color:#6c83a3;font-size:13px}
.content-pager .text-btn{font-size:13px;min-height:30px;padding:5px 8px}
.content-pager .page-indicator{font-variant-numeric:tabular-nums;white-space:nowrap}
.content-pager[hidden]{display:none}
[hidden]{display:none!important}
.article-pages:empty{display:none}
.page-fragment-note{font-size:12px;color:#7b91ae;line-height:1.6;margin-bottom:7px}
.chips-page{display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;width:100%}
.card-head h2,.article-title{overflow-wrap:anywhere}

@media(min-width:1000px) and (min-height:560px){
  :root{
    --screen-gap:clamp(10px,1.8vh,18px);
    --screen-edge:clamp(10px,1.9vh,20px);
    --header-height:clamp(62px,9.5vh,82px);
    --footer-height:clamp(60px,9.5vh,82px);
  }
  body{min-height:100dvh}
  #app.study-view{height:100dvh;min-height:0;display:flex;flex-direction:column}
  .study-view .header{
    height:var(--header-height);min-height:var(--header-height);flex-shrink:0;
    position:relative;padding:0 max(22px,calc((100vw - 1320px)/2));gap:22px;
    flex-wrap:nowrap;
  }
  .study-view .brand{font-size:clamp(24px,1.9vw,29px);gap:10px;flex:none}
  .study-view .brand .brand-icon{width:39px;height:39px;border-radius:11px}
  .study-view .brand-icon svg{width:26px;height:26px}
  .study-view .nav{min-width:0;gap:clamp(4px,.65vw,10px);flex-basis:auto;order:0;justify-content:center}
  .study-view .nav-item{font-size:clamp(15px,1.2vw,18px);gap:8px;padding:8px 10px;min-height:44px}
  .study-view .nav-item .step{width:30px;height:30px;font-size:16px}
  .study-view .nav-line{width:clamp(12px,1.5vw,24px);flex-shrink:1;min-width:8px}
  .study-view .nav-record{margin-left:7px}
  .study-view .header-actions{gap:8px}
  .study-view .avatar{width:36px;height:36px;font-size:16px}
  .study-view .main{
    width:100%;max-width:1360px;min-height:0;flex:1;display:flex;flex-direction:column;
    margin:0 auto;padding:var(--screen-edge) 28px;gap:var(--screen-gap);
  }
  .study-view .main>.toolbar,.study-view .main>.notice{flex-shrink:0;margin:0}
  .study-view .toolbar{
    min-height:clamp(46px,7.4vh,64px);padding:clamp(7px,1.2vh,13px) 18px;
    flex-wrap:nowrap;gap:16px;border-radius:15px;
  }
  .study-view .filters{gap:14px;flex-wrap:nowrap;min-width:0}
  .study-view .field-inline{gap:8px;font-size:13px;min-width:0}
  .study-view .field-inline>span{white-space:nowrap}
  .study-view select{min-height:36px;padding:7px 28px 7px 10px;min-width:90px;font-size:14px}
  .study-view .edition-select{max-width:210px}
  .study-view .stats{gap:16px;flex-wrap:nowrap}
  .study-view .stat{font-size:13px;gap:5px}
  .study-view .stat b{font-size:21px}
  .study-view .grid{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) clamp(246px,21vw,300px);gap:18px;align-items:stretch}
  .study-view .grid>.card{min-height:0;display:flex;flex-direction:column;overflow:visible}
  .study-view .card{border-radius:16px}
  .study-view .card-head{
    padding:clamp(10px,1.65vh,17px) 23px;min-height:49px;flex-shrink:0;
    border-radius:16px 16px 0 0;
  }
  .study-view .card-head h2{font-size:clamp(18px,2.6vh,22px);line-height:1.4}
  .study-view .card-body{padding:clamp(16px,2.3vh,24px)}
  .study-view .bottom-bar{position:relative;left:auto;right:auto;bottom:auto;flex-shrink:0}
  .study-view .bottom-inner{min-height:var(--footer-height);padding:10px 28px;flex-wrap:nowrap}
  .study-view .bottom-inner>.row{gap:12px}
  .study-view .btn{min-height:42px;padding:10px 20px;font-size:15px}
  .study-view .btn.sm{min-height:34px;padding:7px 12px;font-size:13px}
  .study-view .save-state{font-size:13px}
  .study-view .notice{padding:8px 13px;font-size:12px;line-height:1.6}
  .study-view .notice svg{width:16px;height:16px;margin-top:1px}
  .study-view .empty,.study-view .loading-box{
    flex:1;min-height:0;padding:clamp(18px,3vh,32px) 25px;gap:clamp(10px,1.7vh,16px);
  }
  .study-view .empty .empty-icon{width:56px;height:56px;border-radius:17px;margin-bottom:0}
  .study-view .empty h2{font-size:clamp(20px,2.9vh,24px)}
  .study-view .empty p{font-size:15px;line-height:1.7}
  .study-view .setup-numbers{margin:4px 0;gap:42px}
  .study-view .setup-numbers strong{font-size:30px;margin-bottom:2px}

  /* Ten table rows share the entire remaining table area. */
  .study-view .table-wrap{flex:1;min-height:0;overflow:visible;border-radius:16px 16px 0 0}
  .study-view .word-table{height:100%;border-collapse:separate;border-spacing:0}
  .study-view .word-table thead{height:clamp(29px,4.6vh,39px)}
  .study-view .word-table th{padding:6px 14px;font-size:13px;line-height:1.3}
  .study-view .word-table th:first-child{border-top-left-radius:15px}
  .study-view .word-table th:last-child{border-top-right-radius:15px;width:190px}
  .study-view .word-table th:first-child,.study-view .word-table td:first-child{width:46px;font-size:12px}
  .study-view .word-table th:nth-child(2){width:30%}
  .study-view .word-table th:nth-child(3){width:auto}
  .study-view .word-table td{height:auto;padding:2px 14px;line-height:1.2;font-size:14px}
  .study-view .word-en{font-size:clamp(18px,2.85vh,24px);line-height:1.2;letter-spacing:.008em}
  .study-view .word-zh{font-size:clamp(12px,1.85vh,15px);line-height:1.35}
  .study-view .mask{padding:4px 9px;font-size:12px;line-height:1.25}
  .study-view .judge{min-height:clamp(27px,4.2vh,36px);min-width:73px;padding:4px 10px;font-size:14px;line-height:1.1;gap:6px}
  .study-view .judge svg{width:15px;height:15px}
  .study-view .judgment{gap:8px}
  .study-view .pager{flex-shrink:0;padding:clamp(5px,1vh,10px) 12px;gap:5px;flex-wrap:nowrap}
  .study-view .page-btn{width:30px;height:30px;font-size:13px}
  .study-view .pager .text-btn{font-size:13px;padding:6px 8px}
  .study-view .word-footer{flex-shrink:0;font-size:12px;line-height:1.3;padding:0 12px clamp(6px,1.1vh,12px)}

  /* Side cards use explicit pages; all chips stay reachable without scrolling. */
  .study-view .side{min-height:0;display:flex;flex-direction:column;gap:var(--screen-gap)}
  .study-view .side>.card{flex-shrink:0;overflow:visible}
  .study-view .side>.card:first-child{display:flex;flex-direction:column;min-height:0}
  .study-view .side:has(.chips)>.card:first-child{flex:1}
  .study-view .side-head{padding:clamp(13px,2vh,20px) 20px;flex-shrink:0;border-radius:16px 16px 0 0}
  .study-view .side-head h2{font-size:19px}
  .study-view .side-head b{font-size:25px}
  .study-view .chips{
    flex:1;min-height:0;max-height:none;overflow:visible;padding:16px 18px;
    gap:8px;align-content:flex-start;
  }
  .study-view .chip{font-size:14px;line-height:1.25;padding:7px 10px;align-self:flex-start}
  .study-view .side-foot{flex-shrink:0;padding:12px 18px;font-size:13px;line-height:1.6}
  .study-view .side .content-pager{height:39px;min-height:39px;flex-basis:39px;padding:4px 9px;gap:7px}
  .study-view .side .content-pager .text-btn{padding:4px 7px;font-size:12px}
  .study-view .tip-card{flex-shrink:0;min-height:105px;padding:12px 14px;gap:6px;border-radius:16px}
  .study-view .mascot-small{width:87px;height:85px;margin-left:-9px}
  .study-view .tip-card h3{font-size:15px;line-height:1.6}
  .study-view .tip-card p{font-size:12px;line-height:1.6;margin-top:4px}
  .study-view .source-note{flex-shrink:0;font-size:11px;line-height:1.5;padding:0 3px}
  .study-view .progress-block{padding:16px 20px}
  .study-view .progress-block+.progress-block{padding-top:0}

  /* Reading scrolls inside its card; measured word/history pages stay fixed. */
  .study-view .article-body{flex:1;min-height:0;padding:clamp(17px,2.8vh,28px) 28px;display:flex;flex-direction:column}
  .study-view .article-title{flex-shrink:0;font-size:clamp(21px,3.1vh,26px);line-height:1.4;margin:0 0 clamp(12px,2vh,20px)}
  .study-view .article-pages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:12px}
  .study-view .article-en{font-size:clamp(19px,2.8vh,24px);line-height:1.8;margin-bottom:clamp(12px,2vh,18px);overflow-wrap:anywhere}
  .study-view .article-en:last-child{margin-bottom:0}
  .study-view .read-hint{flex-shrink:0;font-size:12px;margin-top:12px;line-height:1.5}
  .study-view .read-hint svg{width:16px;height:16px}
  .study-view .review-note{flex-shrink:0;padding:9px 22px;font-size:12px;line-height:1.6;border-radius:0 0 16px 16px}
  .study-view .progress-pill{font-size:13px;padding:7px 10px}
  .study-view .coverage{font-size:14px;padding:7px 10px}
  .study-view .article-stats{gap:8px;flex-wrap:nowrap}
  .study-view .segmented{padding:4px}
  .study-view .segment{font-size:15px;padding:8px 14px;gap:7px}
  .study-view .practice-tools{padding:9px 21px;flex-shrink:0;flex-wrap:nowrap}
  .study-view .practice-tools .small{font-size:12px}
  .study-view .switch-label{font-size:13px}
  .study-view .sentence-list{flex:1;min-height:0;overflow:visible;padding:4px 23px}
  .study-view .sentence{padding:clamp(10px,1.65vh,16px) 0}
  .study-view .sentence-top{gap:10px}
  .study-view .sentence-source{font-size:clamp(19px,2.7vh,23px);line-height:1.65;overflow-wrap:anywhere}
  .study-view .sentence-source.zh{font-size:clamp(17px,2.35vh,20px);line-height:1.7}
  .study-view .answer-hidden{margin-top:9px;padding:10px 13px;min-height:43px;font-size:13px}
  .study-view .answer-hidden button{font-size:13px}
  .study-view .answer-revealed{margin-top:9px;padding:11px 13px}
  .study-view .answer-text{font-size:clamp(16px,2.25vh,19px);line-height:1.65;overflow-wrap:anywhere}
  .study-view .answer-actions{margin-top:9px;gap:8px;flex-wrap:nowrap}
  .study-view .answer-actions .text-btn{font-size:12px;padding:5px 7px}
  .study-view .answer-actions .judge{min-width:84px;min-height:30px;font-size:13px}
  .study-view .content-pager{height:43px;min-height:43px;flex-basis:43px;padding:6px 16px}
  .study-view .list-card{flex:1;min-height:0;padding:0 23px;overflow:visible}
  .study-view .history-item{padding:clamp(12px,2vh,20px) 0;grid-template-columns:42px minmax(0,1fr) auto;gap:15px}
  .study-view .history-icon{width:42px;height:49px}
  .study-view .history-title{font-size:18px;line-height:1.4;margin-bottom:6px;gap:6px}
  .study-view .history-meta{font-size:12px;gap:7px 11px}
  .study-view .history-excerpt{font-size:14px;line-height:1.5;margin:8px 0}
  .study-view .history-progress{font-size:12px;gap:13px}
  .study-view .history-actions{gap:3px}
  .study-view .history-actions .text-btn{font-size:12px;padding:4px 8px}
  .study-view .history-count{font-size:12px}
  .study-view .error-box{margin:16px;padding:20px;font-size:14px}
  #toast{bottom:calc(var(--footer-height) + 14px)}

  /* Login uses the same fixed canvas, with illustration size yielding to height. */
  #app.login-view{height:100dvh;min-height:0}
  .login-view .login-shell{height:100%;max-width:1320px;padding:clamp(20px,3.2vh,34px) 36px 20px;display:flex;flex-direction:column}
  .login-view .login-shell>.brand{flex-shrink:0}
  .login-view .login-main{flex:1;min-height:0;padding:16px 24px 0;gap:clamp(38px,6vw,100px);grid-template-columns:1.05fr .95fr}
  .login-view .login-story h1{font-size:clamp(36px,5.8vh,53px);line-height:1.45}
  .login-view .login-story .login-sub{font-size:clamp(17px,2.5vh,21px);margin-top:10px}
  .login-view .login-visual{min-height:0;height:clamp(175px,32vh,315px);margin-top:8px}
  .login-view .mascot-large{height:100%;max-height:315px}
  .login-view .floating-word{font-size:17px;padding:10px 15px}
  .login-view .login-card{padding:clamp(24px,4.5vh,40px) 35px 27px;border-radius:25px;max-width:470px}
  .login-view .login-card h2{font-size:28px}
  .login-view .login-card>p{margin-bottom:clamp(18px,3vh,27px);font-size:15px}
  .login-view .login-field{margin-bottom:clamp(13px,2.2vh,19px);font-size:14px}
  .login-view .input-with-icon{min-height:48px}
  .login-view .input-with-icon input{padding:11px 0;font-size:17px}
  .login-view .login-remember{margin:4px 0 18px;font-size:13px}
  .login-view .login-card .btn{min-height:48px;font-size:17px}
  .login-view .login-bottom{margin-top:17px!important;font-size:12px!important}
  .login-view .login-foot{flex-shrink:0;padding:12px 10px 0;font-size:12px}
  .login-view .mode-note{padding:8px 10px;font-size:12px;margin-top:13px}
}

@media(min-width:1000px) and (max-width:1199px) and (min-height:560px){
  .study-view .header{padding:0 20px;gap:12px}
  .study-view .brand{font-size:23px;gap:8px}
  .study-view .brand .brand-icon{width:35px;height:35px}
  .study-view .nav{gap:3px}
  .study-view .nav-item{font-size:14px;gap:6px;padding:8px 6px}
  .study-view .nav-item .step{width:27px;height:27px;font-size:14px}
  .study-view .nav-line{width:12px;min-width:8px}
  .study-view .nav-record{margin-left:4px}
  .study-view .header-actions{gap:4px}
  .study-view .header-actions .text-btn{font-size:12px;padding:7px 5px;gap:5px}
  .study-view .header-actions .text-btn svg{width:17px;height:17px}
  .study-view .main{padding-left:20px;padding-right:20px}
  .study-view .grid{gap:15px}
  .study-view .toolbar{padding-left:13px;padding-right:13px;gap:12px}
  .study-view .filters{gap:10px}
  .study-view .field-inline{font-size:12px;gap:6px}
  .study-view select{min-width:79px;font-size:13px;padding-left:8px;padding-right:25px}
  .study-view .edition-select{max-width:162px}
  .study-view .stats{gap:10px}
  .study-view .stat{font-size:12px;gap:4px}
  .study-view .stat b{font-size:19px}
  .study-view .word-table th:last-child{width:161px}
  .study-view .word-table th:first-child,.study-view .word-table td:first-child{width:35px}
  .study-view .word-table th,.study-view .word-table td{padding-left:10px;padding-right:10px}
  .study-view .judge{min-width:62px;padding-left:8px;padding-right:8px}
  .study-view .judgment{gap:6px}
  .study-view .mask{font-size:11px;padding:4px 7px;gap:4px}
  .study-view .mask svg{width:13px;height:13px}
  .study-view .article-body{padding-left:22px;padding-right:22px}
  .study-view .article-stats{gap:5px}
  .study-view .progress-pill{font-size:12px;padding:6px 8px;gap:5px}
  .study-view .progress-pill svg{width:16px;height:16px}
  .study-view .coverage{font-size:12px;padding:7px 8px}
  .study-view .tag-neutral{font-size:12px}
  .study-view .history-item{gap:11px;grid-template-columns:36px minmax(0,1fr) auto}
  .study-view .history-icon{width:36px;height:44px}
  .study-view .history-title{font-size:16px}
  .study-view .history-meta{gap:5px 8px}
  .study-view .bottom-inner{padding-left:20px;padding-right:20px}
  .study-view .bottom-inner>.row>.small{display:none}
  .login-view .login-main{padding-left:6px;padding-right:6px;gap:34px}
  .login-view .login-story h1{font-size:clamp(35px,5.6vh,46px)}
}

@media(min-width:1000px) and (min-height:560px) and (max-height:640px){
  :root{--screen-gap:10px;--screen-edge:10px;--header-height:60px;--footer-height:58px}
  .study-view .toolbar{min-height:44px;padding-top:6px;padding-bottom:6px}
  .study-view select{min-height:31px;padding-top:5px;padding-bottom:5px}
  .study-view .bottom-inner{padding-top:8px;padding-bottom:8px}
  .study-view .btn{min-height:38px;padding-top:8px;padding-bottom:8px;font-size:14px}
  .study-view .word-table thead{height:27px}
  .study-view .word-table th{padding-top:4px;padding-bottom:4px;font-size:12px}
  .study-view .word-table td{padding-top:0;padding-bottom:0}
  .study-view .word-en{font-size:18px}
  .study-view .judge{min-height:26px;font-size:13px;padding-top:3px;padding-bottom:3px}
  .study-view .pager{padding-top:4px;padding-bottom:4px}
  .study-view .page-btn{height:27px;width:27px}
  .study-view .pager .text-btn{padding-top:4px;padding-bottom:4px;font-size:12px}
  .study-view .word-footer{padding-bottom:6px;font-size:11px}
  .study-view .side-head{padding-top:11px;padding-bottom:11px}
  .study-view .side-head h2{font-size:17px}
  .study-view .side-head b{font-size:22px}
  .study-view .chips{padding:10px 14px;gap:7px}
  .study-view .chip{font-size:13px;padding:6px 9px}
  .study-view .side-foot{padding:9px 15px;font-size:12px}
  .study-view .tip-card{min-height:81px;padding:8px 12px}
  .study-view .mascot-small{width:64px;height:64px}
  .study-view .tip-card h3{font-size:13px}
  .study-view .tip-card p{font-size:11px}
  .study-view .source-note{font-size:10px;line-height:1.4}
  .study-view .card-head{min-height:42px;padding:9px 19px}
  .study-view .card-head h2{font-size:18px}
  .study-view .content-pager,.study-view .side .content-pager{height:35px;min-height:35px;flex-basis:35px;padding:3px 12px;font-size:12px}
  .study-view .content-pager .text-btn{min-height:27px}
  .study-view .article-body{padding-top:14px;padding-bottom:13px}
  .study-view .article-title{font-size:21px;margin-bottom:11px}
  .study-view .article-en{font-size:19px;line-height:1.65;margin-bottom:12px}
  .study-view .review-note{padding-top:7px;padding-bottom:7px;font-size:11px}
  .study-view .read-hint{margin-top:9px;font-size:11px}
  .study-view .practice-tools{padding-top:7px;padding-bottom:7px}
  .study-view .sentence-list{padding:3px 20px}
  .study-view .sentence{padding:9px 0}
  .study-view .sentence-source{font-size:18px;line-height:1.5}
  .study-view .sentence-source.zh{font-size:17px;line-height:1.55}
  .study-view .answer-hidden{padding:8px 11px;min-height:37px;margin-top:7px}
  .study-view .answer-revealed{padding:8px 11px;margin-top:7px}
  .study-view .answer-text{font-size:16px;line-height:1.5}
  .study-view .answer-actions{margin-top:7px}
  .study-view .answer-actions .judge{min-height:27px}
  .study-view .history-item{padding:11px 0}
  .study-view .history-excerpt{margin:6px 0;font-size:13px}
  .study-view .progress-block{padding:13px 18px}
  .study-view .empty,.study-view .loading-box{padding:14px 20px;gap:9px}
  .study-view .empty .empty-icon{width:44px;height:44px;border-radius:13px}
  .study-view .empty p{font-size:14px;line-height:1.6}
  .study-view .setup-numbers strong{font-size:25px}
  .study-view .setup-numbers div{font-size:12px}
  .login-view .login-shell{padding:18px 30px 14px}
  .login-view .login-shell>.brand{font-size:25px}
  .login-view .login-main{padding-top:10px}
  .login-view .login-card{padding:23px 30px 20px}
  .login-view .login-card h2{font-size:25px}
  .login-view .login-card>p{margin-bottom:17px;font-size:14px}
  .login-view .login-field{margin-bottom:13px;font-size:13px}
  .login-view .login-field>span{margin-bottom:6px}
  .login-view .input-with-icon{min-height:43px}
  .login-view .input-with-icon input{padding:9px 0;font-size:16px}
  .login-view .login-remember{margin-bottom:14px;font-size:12px}
  .login-view .login-card .btn{min-height:43px;font-size:16px}
  .login-view .login-bottom{margin-top:13px!important;font-size:11px!important}
  .login-view .login-foot{font-size:11px;padding-top:8px}
  .login-view .login-visual{height:175px}
}

/* An unusually long imported sentence may need more room than one screen.
   Preserve its complete text and controls instead of clipping it. */
#app.study-view.layout-flow{height:auto;min-height:100dvh}
.study-view.layout-flow .main{min-height:auto;flex:1}
.study-view.layout-flow .grid{flex:0;min-height:auto;align-items:start}
.study-view.layout-flow .grid>.card{min-height:auto}
.study-view.layout-flow .article-body,.study-view.layout-flow .article-pages,
.study-view.layout-flow .sentence-list,.study-view.layout-flow .list-card,
.study-view.layout-flow .chips{flex:0 0 auto;min-height:auto;max-height:none;overflow:visible}
.study-view.layout-flow .side:has(.chips)>.card:first-child{flex:0 0 auto}

/* Small windows and large browser zoom retain document flow for accessibility. */
@media(max-width:999px),(max-height:559px){
  .study-view .header-actions{margin-left:auto}
  .study-view .main{padding-top:20px}
  .study-view .main>.toolbar{margin-bottom:16px}
  .study-view .grid>.card{min-width:0}
  .study-view .chips{max-height:none;overflow:visible}
  .study-view .article-pages,.study-view .sentence-list,.study-view .list-card{overflow:visible}
  .study-view .content-pager{flex-wrap:wrap}
  .study-view .table-wrap{overflow:visible}
}
@media(max-width:720px){
  .header-actions .text-btn{font-size:12px;padding:6px;gap:4px}
  .header-actions .text-btn svg{width:17px;height:17px}
  .header-actions{gap:5px}
  .study-view .main{padding-top:16px}
}

/* Two aligned languages share one scroll area, like facing pages in a book. */
.grid.book-layout{grid-template-columns:minmax(0,1fr)}
.book-card{min-width:0}
.book-card .card-head{gap:18px}
.book-card .card-head h2{flex:1;min-width:0}
.book-progress{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#6b83a4;font-size:13px}
.book-progress>span{white-space:nowrap}
.book-progress b{color:#3d65a0;font-weight:650;font-variant-numeric:tabular-nums}
.book-columns-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex-shrink:0;border-bottom:1px solid #dce7f5;background:#f5f9ff}
.book-columns-header>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 28px;color:#456691;font-size:16px;font-weight:650;min-width:0}
.book-columns-header>div+div{border-left:1px solid #dce7f5}
.book-columns-header .text-btn{font-size:13px;font-weight:500;color:#587fae;padding:6px 8px}
.book-columns-header .text-btn svg{width:18px;height:18px}
.sentence-list.book-pages{padding:0;background:#fff}
.sentence.book-row{padding:0;border-bottom:1px solid #e2ebf7}
.sentence.book-row:last-child{border-bottom:0}
.book-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.book-cell{min-width:0;padding:22px 28px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.book-cell+.book-cell{border-left:1px solid #e1e9f5;background:linear-gradient(90deg,#f5f8fc70,transparent 24px)}
.book-cell-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:26px;color:#8a9db7;font-size:12px}
.book-cell-head .sentence-number{min-width:0;padding:0;color:inherit}
.book-cell-head .text-btn{font-size:12px;min-height:26px;padding:4px 6px}
.book-cell-head .text-btn svg{width:16px;height:16px}
.book-cell .book-text,.book-cell .sentence-source{font-size:23px;line-height:1.85;color:#1c365b;overflow-wrap:anywhere;margin:0}
.book-cell.chinese .book-text,.book-cell.zh .book-text,.book-cell .sentence-source.zh{font-size:21px;line-height:1.95;color:#365576}
.book-cell .answer-hidden,.book-hidden{margin:0;min-height:57px;border:1px dashed #d5e2f1;border-radius:10px;background:#f8faff;color:#8a9cb5;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;line-height:1.5}
.book-hidden button{background:transparent;color:var(--blue);font-size:13px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.book-hidden svg{width:17px;height:17px}
.book-row-actions,.book-judgment{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:0 28px 16px}
.book-row-actions .small,.book-judgment .small{font-size:12px}
.book-cell .book-row-actions,.book-cell .book-judgment{padding:5px 0 0;margin-top:auto}
.book-row-actions .judge,.book-judgment .judge{min-width:91px;min-height:33px;font-size:13px;padding:6px 11px}
.book-pages .empty{min-height:260px}
/* Revealed translations use the same text origin as the facing source. */
.study-view .book-cell .answer-revealed,.study-view .book-cell .book-source{
  margin:0;padding:0;border:0;border-radius:0;background:transparent;
  min-width:0;display:flex;flex-direction:column;gap:0;
}
.study-view .book-cell .answer-text{margin:0;font-size:23px;line-height:1.85;color:#1c365b;overflow-wrap:anywhere}
.study-view .book-cell.book-chinese .answer-text,.study-view .book-cell.book-chinese .sentence-source{font-size:23px;line-height:1.85;color:#365576}
.study-view .book-cell .answer-actions.book-row-actions{
  margin:15px 0 0;padding:0;justify-content:space-between;align-items:center;gap:10px;
}
.study-view .book-cell .book-row-actions>.text-btn{padding:5px 0;font-size:12px;gap:5px;flex-shrink:0}
.study-view .book-cell .book-row-actions .judgment{flex-wrap:wrap}
.registration-card .login-field{margin-bottom:16px}
.registration-card .login-bottom{margin-top:15px!important}
.auth-switch{display:flex;align-items:center;justify-content:center;gap:5px;min-height:29px;margin-top:11px;font-size:13px;color:#7b90ac}
.auth-switch .text-btn{color:var(--blue);font-size:13px;padding:5px 7px}
.registration-card .auth-switch{margin-top:10px}

@media(min-width:1000px) and (min-height:560px){
  .study-view{--reading-font:clamp(20px,2.85vh,24px);--translation-font:clamp(18px,2.55vh,22px)}
  .study-view .grid.book-layout{grid-template-columns:minmax(0,1fr)}
  .study-view .book-card{display:flex;flex-direction:column;min-height:0}
  .study-view .book-card .card-head{padding-top:clamp(10px,1.65vh,16px);padding-bottom:clamp(10px,1.65vh,16px)}
  .study-view .book-card .card-head h2{font-size:clamp(19px,2.6vh,22px)}
  .study-view .book-card .practice-tools{padding:9px 25px;min-height:40px}
  .study-view .book-columns-header{overflow-y:hidden;scrollbar-gutter:stable both-edges;scrollbar-width:thin}
  .study-view .book-columns-header>div{padding:10px 27px;min-height:47px;font-size:15px}
  .study-view .book-columns-header .text-btn{font-size:12px;padding:5px 7px}
  .study-view .sentence-list.book-pages{
    flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:#c4d6eb #f7faff;padding:0;
  }
  .study-view .sentence.book-row{padding:0}
  .study-view .book-cell{padding:clamp(17px,2.7vh,27px) 27px;gap:clamp(8px,1.5vh,13px)}
  .study-view .book-cell .book-text,.study-view .book-cell .sentence-source,.study-view .book-cell .answer-text,.study-view .article-en{font-size:var(--reading-font);line-height:1.85}
  .study-view .book-cell.chinese .book-text,.study-view .book-cell.zh .book-text,.study-view .book-cell.book-chinese .sentence-source,.study-view .book-cell.book-chinese .answer-text{font-size:var(--reading-font);line-height:1.85}
  .study-view .book-cell .answer-hidden,.study-view .book-hidden{margin:0;min-height:52px;padding:12px 15px;font-size:13px}
  .study-view .book-row-actions,.study-view .book-judgment{padding:0 27px 16px;gap:10px}
  .study-view .book-cell .book-row-actions,.study-view .book-cell .book-judgment{padding:5px 0 0}
  .study-view .book-row-actions .judge,.study-view .book-judgment .judge{min-height:31px;min-width:90px;font-size:13px;padding:5px 10px}
  .study-view .article-pages{scrollbar-width:thin;scrollbar-color:#c4d6eb #f7faff}
  .study-view .book-pages::-webkit-scrollbar,.study-view .book-columns-header::-webkit-scrollbar,.study-view .article-pages::-webkit-scrollbar{width:8px}
  .study-view .book-pages::-webkit-scrollbar-track,.study-view .article-pages::-webkit-scrollbar-track{background:#f7faff;border-radius:8px}
  .study-view .book-pages::-webkit-scrollbar-thumb,.study-view .article-pages::-webkit-scrollbar-thumb{background:#c4d6eb;border:2px solid #f7faff;border-radius:8px}
  .study-view .book-pages::-webkit-scrollbar-thumb:hover,.study-view .article-pages::-webkit-scrollbar-thumb:hover{background:#9db8da}
  .login-view .registration-card{padding-top:clamp(21px,3.6vh,32px);padding-bottom:23px}
  .login-view .registration-card>p{margin-bottom:18px}
  .login-view .registration-card .login-field{margin-bottom:13px}
  .login-view .registration-card .login-field>span{margin-bottom:6px}
  .login-view .registration-card .input-with-icon{min-height:45px}
  .login-view .registration-card .input-with-icon input{padding-top:9px;padding-bottom:9px}
  .login-view .registration-card .login-bottom{margin-top:12px!important}
  .login-view .registration-card .auth-switch{margin-top:9px}
  .login-view .login-card .auth-switch .text-btn{min-height:27px;padding:4px 6px}
}

@media(min-width:1000px) and (min-height:560px) and (max-height:640px){
  .study-view .book-card .card-head{padding:9px 22px;min-height:42px}
  .study-view .book-card .card-head h2{font-size:19px}
  .study-view .book-progress{font-size:12px;gap:10px}
  .study-view .book-card .practice-tools{padding:7px 22px;min-height:35px}
  .study-view .book-columns-header>div{min-height:40px;padding:7px 23px;font-size:14px}
  .study-view .book-cell{padding:16px 23px;gap:8px}
  .study-view .book-cell .answer-hidden,.study-view .book-hidden{padding:10px 12px;min-height:47px}
  .study-view .book-row-actions,.study-view .book-judgment{padding:0 23px 13px}
  .study-view .book-row-actions .judge,.study-view .book-judgment .judge{min-height:29px}
  .study-view .book-cell .answer-actions.book-row-actions{margin-top:12px}
  .login-view .login-card{padding-top:21px;padding-bottom:18px}
  .login-view .login-card>p{margin-bottom:15px}
  .login-view .login-card .auth-switch{margin-top:8px;font-size:12px;min-height:26px}
  .login-view .login-card .auth-switch .text-btn{font-size:12px;padding:3px 6px;min-height:25px}
  .login-view .login-card .login-bottom{margin-top:10px!important}
  .login-view .registration-card{padding:19px 30px 17px}
  .login-view .registration-card h2{font-size:24px}
  .login-view .registration-card>p{font-size:13px;margin-bottom:13px}
  .login-view .registration-card .login-field{font-size:12px;margin-bottom:10px}
  .login-view .registration-card .login-field>span{margin-bottom:5px}
  .login-view .registration-card .input-with-icon{min-height:39px}
  .login-view .registration-card .input-with-icon input{font-size:15px;padding-top:7px;padding-bottom:7px}
  .login-view .registration-card .btn{min-height:40px;font-size:15px}
  .login-view .registration-card .login-bottom{margin-top:9px!important;font-size:11px!important}
  .login-view .registration-card .auth-switch{margin-top:6px;font-size:12px}
  .login-view .registration-card .auth-switch .text-btn{font-size:12px;padding-top:4px;padding-bottom:4px}
}

@media(max-width:999px),(max-height:559px){
  .study-view .book-columns-header>div{padding:10px 19px;font-size:14px}
  .study-view .sentence-list.book-pages{padding:0;overflow:visible}
  .study-view .book-cell{padding:18px 20px;gap:9px}
  .study-view .book-cell .book-text,.study-view .book-cell .sentence-source,.study-view .book-cell .answer-text{font-size:21px;line-height:1.8}
  .study-view .book-cell.chinese .book-text,.study-view .book-cell.zh .book-text,.study-view .book-cell.book-chinese .sentence-source,.study-view .book-cell.book-chinese .answer-text{font-size:21px;line-height:1.8}
  .study-view .book-row-actions,.study-view .book-judgment{padding:0 20px 14px}
  .book-card .card-head{flex-wrap:wrap;gap:7px}
  .book-progress{font-size:12px;gap:10px}
}
@media(max-width:720px){
  .book-columns-header>div{padding:9px 12px!important;font-size:13px!important;gap:5px}
  .book-columns-header .text-btn{font-size:11px;padding:5px 4px;gap:4px}
  .book-columns-header .text-btn svg{width:15px;height:15px}
  .study-view .book-cell{padding:15px 13px;gap:8px}
  .study-view .book-cell .book-text,.study-view .book-cell .sentence-source,.study-view .book-cell .answer-text{font-size:18px;line-height:1.75}
  .study-view .book-cell.chinese .book-text,.study-view .book-cell.zh .book-text,.study-view .book-cell.book-chinese .sentence-source,.study-view .book-cell.book-chinese .answer-text{font-size:18px;line-height:1.75}
  .book-cell-head{min-height:24px;gap:6px}
  .book-cell-head .text-btn{font-size:11px;padding:4px;gap:3px}
  .book-cell .answer-hidden,.book-hidden{padding:10px;font-size:12px;min-height:51px;flex-wrap:wrap;gap:6px}
  .book-hidden button{font-size:12px}
  .study-view .book-row-actions,.study-view .book-judgment{padding:0 13px 13px;gap:7px;flex-wrap:wrap}
  .book-row-actions .judge,.book-judgment .judge{font-size:12px;min-width:79px;min-height:31px;padding:5px 8px}
  .study-view .book-cell .answer-actions.book-row-actions{margin-top:12px;justify-content:flex-start;gap:7px}
  .study-view .book-cell .book-row-actions .judgment{justify-content:flex-start;gap:5px}
}

/* Verified textbook selection shares the fixed screen layout. */
.vocab-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.vocab-toolbar .filters{display:flex;flex-wrap:wrap;gap:12px;width:100%}
.vocab-toolbar .edition-field{flex:1;min-width:220px}
.vocab-toolbar .edition-select{width:100%;max-width:none}
.vocab-toolbar .volume-field select{max-width:220px}
.vocab-toolbar .catalog-help{padding:7px;flex:0 0 auto}
.selection-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.selection-note{font-size:12px;color:#7b8ea8;line-height:1.45;min-width:0}
.vocab-total{font-size:12px;color:#597299;white-space:nowrap;font-variant-numeric:tabular-nums}
.vocab-breakdown{display:block;margin-top:5px;font-size:12px;font-weight:400;color:#6b83a8;white-space:nowrap}
.source-note .source-info{font-size:12px;padding:2px 0;white-space:normal;text-align:left}
.source-note .source-info svg{width:14px;height:14px}
@media(min-width:1000px) and (min-height:560px){
  .study-view .vocab-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding-top:8px;padding-bottom:8px}
  .study-view .vocab-toolbar .filters{gap:12px;flex-wrap:nowrap}
  .study-view .vocab-toolbar .edition-field{min-width:180px;flex:1}
  .study-view .vocab-toolbar .edition-select{min-width:0;max-width:none}
  .study-view .vocab-toolbar .volume-field{min-width:150px;flex:0 1 230px}
  .study-view .vocab-toolbar .volume-field select{min-width:105px;width:100%;max-width:none}
  .study-view .vocab-toolbar .catalog-help{min-height:30px;padding:5px}
  .study-view .selection-meta{min-height:19px}
  .study-view .selection-meta .stats{gap:13px}
  .study-view .selection-meta .stat{font-size:12px}
  .study-view .selection-meta .stat b{font-size:15px}
  .study-view .selection-note,.study-view .vocab-total{font-size:11px}
  .study-view .vocab-breakdown{font-size:11px;margin-top:3px}
}
@media(max-width:720px){
  .vocab-toolbar .filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .vocab-toolbar .field-inline{min-width:0;grid-column:auto}
  .vocab-toolbar .edition-field{grid-column:1/-1}
  .vocab-toolbar .volume-field{grid-column:1}
  .vocab-toolbar .volume-field select{width:100%;max-width:none}
  .vocab-toolbar .catalog-help{justify-self:end;align-self:end}
  .selection-meta{flex-wrap:wrap;gap:7px}
  .selection-note{flex-basis:100%}
}
/* Compact range selector; detailed selection stays inside a scrollable dialog. */
.scope-button{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d5e2ff;border-radius:10px;background:#fff;color:#142958;padding:9px 13px;max-width:540px;min-height:40px;font:inherit;cursor:pointer;text-align:left}
.scope-button svg{width:16px;height:16px;flex-shrink:0}.range-toolbar{width:100%;gap:16px}.range-toolbar .scope-field{flex:1}.range-toolbar .scope-button{flex:1}.range-modal{width:min(780px,94vw);max-height:88dvh;overflow-y:auto}.range-pickers{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}.range-to{display:flex;align-items:center;justify-content:center;align-self:center;line-height:1;min-height:40px}.range-pickers label,.range-editions label{min-width:0;display:flex;flex-direction:column;gap:7px;font-size:14px;color:#527094}.range-pickers select,.range-editions select{font:inherit;background:white;border:1px solid #d5e2ff;border-radius:9px;min-height:40px;padding:8px;color:#142958;width:100%}.range-editions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}.range-presets{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0}.range-books{max-height:31vh;overflow:auto;border:1px solid #e2eaff;border-radius:12px}.range-book{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #edf1fa;cursor:pointer;font-size:15px}.range-book:last-child{border-bottom:0}.range-book input{width:18px;height:18px;accent-color:#2563ff}.range-book span{flex:1}.range-book small{display:block;margin-top:3px;font-size:12px;color:#70829e}.range-book b{font-size:13px;font-weight:500;color:#527094}.range-summary{display:flex;justify-content:space-between;gap:12px;margin:16px 0 6px;color:#2454be;font-size:15px;flex-wrap:wrap}.range-summary span{font-size:13px}.range-warning{padding:10px 12px;border-radius:8px;background:#fff7e6;color:#835c1b;font-size:13px;line-height:1.7}.selection-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-books{font-size:13px;line-height:1.8}.range-toolbar .field-inline{white-space:nowrap}
@media(max-width:1000px){.range-toolbar .scope-field{flex:auto}.scope-button{max-width:none}.range-toolbar{flex-wrap:wrap}.range-summary{flex-direction:column}}

@media(max-width:520px){.range-pickers{gap:8px}.range-pickers select{font-size:13px;padding:8px 4px}.range-toolbar .scope-field{grid-column:1/-1}.range-toolbar .scope-field>span{flex-shrink:0}.range-toolbar .scope-button{min-width:0;max-width:100%;overflow:hidden}}

/* Region, detection range, reading level follow the same order at every size. */
.range-toolbar,.study-view .range-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px}
.range-toolbar .field-inline{grid-column:auto;min-width:0}
.range-toolbar .scope-button{width:100%;max-width:none;min-width:0}
.range-toolbar .scope-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.range-toolbar .region-field select{width:116px}
.range-toolbar .reading-field select{width:122px}
.selection-meta .restart-test{margin-left:auto;white-space:nowrap;color:#517ab4;padding:4px 8px;font-size:13px}
.selection-meta .restart-test svg{width:17px;height:17px}
.avatar{overflow:hidden;line-height:0}
.avatar svg{display:block;width:100%;height:100%;stroke:none;fill:none}

/* Empty detection and learning history stretch the companion card to the lower edge. */
@media(min-width:1000px) and (min-height:560px){
  .study-view .side.side-showcase{height:100%;min-height:0}
  .study-view .side-showcase>.card:first-child{flex:0 0 auto}
  .study-view .side-showcase .tip-card{flex:1;min-height:0;flex-direction:column;justify-content:center;text-align:center;gap:clamp(6px,1.2vh,14px);padding:clamp(14px,2.3vh,26px) 16px}
  .study-view .side-showcase .mascot-small{width:min(78%,220px);height:clamp(96px,19vh,200px);max-height:62%;min-height:0;flex:0 1 auto;margin:0}
  .study-view .side-showcase .tip-card h3{font-size:clamp(15px,1.2vw,18px);line-height:1.6}
  .study-view .side-showcase .tip-card p{font-size:clamp(12px,1vw,14px);margin-top:5px}
  .study-view.layout-flow .side.side-showcase{height:auto}
  .study-view.layout-flow .side-showcase .tip-card{min-height:230px;flex:0 0 auto}
}
@media(max-width:999px){
  .range-toolbar,.study-view .range-toolbar{gap:12px;grid-template-columns:auto minmax(0,1fr) auto}
  .range-toolbar .field-inline{flex-direction:column;align-items:stretch;gap:6px;width:auto}
  .range-toolbar .region-field select{width:100px}
  .range-toolbar .reading-field select{width:110px}
}
@media(max-width:620px){
  .range-toolbar,.study-view .range-toolbar{grid-template-columns:1fr;gap:10px}
  .range-toolbar .field-inline{grid-column:1;display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:10px}
  .range-toolbar .region-field select,.range-toolbar .reading-field select{width:100%}
  .selection-meta .restart-test{margin-left:0}
}

.practice-heading{display:flex;align-items:center;gap:12px;min-width:0}
.practice-heading>span{min-width:0;overflow-wrap:anywhere}
.practice-mascot{display:block;width:42px;height:36px;object-fit:contain;flex:none}
@media(max-width:620px){.practice-mascot{width:34px;height:30px}.practice-heading{gap:7px}}

/* Student-authored sentences: two focused regions share the fixed canvas. */
.sentence-card{min-width:0}.sentence-workspace{display:flex;flex-direction:column;min-height:0}
.sentence-bank{padding:22px 26px 20px;background:linear-gradient(135deg,#f8fbff,#fff);border-bottom:1px solid #e4edfa;display:flex;flex-direction:column;gap:14px;min-height:0}
.sentence-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.sentence-section-head h3{font-size:18px;color:#19345e;line-height:1.5}
.section-kicker{display:block;font-size:12px;line-height:1.5;color:#8093b0;margin-bottom:5px;letter-spacing:.025em}
.word-bank-count{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:24px;margin-left:5px;border-radius:7px;background:#e8f0ff;color:#4072c9;font-size:13px;font-weight:600;vertical-align:middle;padding:0 6px}
.bilingual-words{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;align-content:start;overflow:auto;min-height:0;max-height:230px;padding:2px 5px 3px 2px;overscroll-behavior:contain}
.bilingual-word{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:12px 14px;border:1px solid #e0eafa;background:#fff;border-radius:11px;min-width:0;transition:border-color .15s,background .15s}
.bilingual-word:hover{border-color:#a8c6fb;background:#f1f6ff}.bilingual-en{display:flex;align-items:center;gap:5px;color:#295896;font-size:17px;font-weight:650;line-height:1.35;overflow-wrap:anywhere;max-width:100%}.bilingual-en svg{width:15px;height:15px}.bilingual-zh{color:#7689a5;font-size:13px;line-height:1.6;overflow-wrap:anywhere;max-width:100%}
.sentence-composer{display:flex;flex-direction:column;gap:12px;min-height:0;padding:23px 26px 22px;flex:1}.sentence-composer label{cursor:text}.draft-count{font-size:12px;color:#95a3b9;white-space:nowrap;font-variant-numeric:tabular-nums}.composer-guidance{font-size:14px;color:#6f84a3;line-height:1.65}
#sentence-draft{display:block;box-sizing:border-box;width:100%;flex:1;min-height:150px;resize:none;border:1px solid #cdddf5;border-radius:12px;background:#fbfdff;padding:17px 19px;outline:0;font:inherit;font-size:19px;line-height:1.9;color:#263f68;overflow:auto;overscroll-behavior:contain;transition:border-color .15s,box-shadow .15s}#sentence-draft::placeholder{color:#a1b0c6}#sentence-draft:focus{border-color:#6397f6;box-shadow:0 0 0 3px #4488ff12;background:#fff}#sentence-draft[readonly]{color:#6681a9;background:#f7faff}
.composer-status{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#7c91b0;line-height:1.6;flex-shrink:0}.composer-status>span{display:inline-flex;align-items:center;gap:6px}.composer-status svg{width:15px;height:15px;color:#6f96d4}.draft-save{white-space:nowrap;color:#8ba3bc}
.idea-guide{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 23px;background:radial-gradient(ellipse at 60% 35%,#f7fcff,#eaf4ff 70%);min-height:490px;gap:18px}.idea-guide>.section-kicker{font-size:12px;letter-spacing:.05em;margin:0}.idea-guide>img{display:block;object-fit:contain;width:85%;max-width:235px;height:225px;mix-blend-mode:multiply}.idea-guide>h2{font-size:22px;color:#21436f}.idea-guide>p{font-size:16px;line-height:1.9;color:#718bac}.idea-guide-note{margin-top:12px;border-top:1px solid #d6e6f8;padding-top:20px;font-size:13px;line-height:1.9;color:#7a93b1;width:100%}
.sentence-result{padding:24px 29px 30px;overflow:auto;min-height:0;overscroll-behavior:contain;flex:1}.source-thought{border-radius:12px;border:1px solid #e1eaf7;background:#f6f9fe;padding:15px 19px;margin-bottom:28px}.source-thought .sentence-section-head{margin-bottom:7px}.source-thought h3{font-size:13px;color:#7c8fae;font-weight:500}.source-thought .text-btn{color:#437dcc;font-size:13px;padding:3px 0}.source-thought>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:16px;color:#536d8f}.english-expression>.sentence-section-head{margin-bottom:12px}.english-expression .section-kicker{margin:0}.english-expression .article-title{font-size:24px;margin-bottom:18px}.sentence-english .article-en{font-size:25px;line-height:1.95;margin-bottom:14px}
.sentence-translation{margin-top:23px;border-top:1px solid #e5edf7;padding-top:15px}.sentence-translation summary{display:flex;align-items:center;gap:5px;cursor:pointer;color:#7189aa;font-size:13px;list-style:none;width:fit-content;padding:4px 0}.sentence-translation summary::-webkit-details-marker{display:none}.sentence-translation summary svg{width:14px;height:14px;transition:transform .15s}.sentence-translation[open] summary svg{transform:rotate(90deg)}.sentence-translation>div{padding-top:12px;color:#5b7395;font-size:16px;line-height:1.85}.sentence-translation p+p{margin-top:9px}
.sentence-coverage{display:flex;flex-direction:column;min-height:0}.sentence-coverage .card-head b{font-size:27px;color:#1c9f7a;margin-left:5px}.coverage-content{padding:20px 19px;overflow:auto;flex:1;min-height:0;max-height:420px;overscroll-behavior:contain}.coverage-group h3{font-size:13px;color:#428878;margin-bottom:11px;display:flex;gap:6px;align-items:center;font-weight:550}.coverage-group h3 svg{height:16px;width:16px}.coverage-chips{display:flex;flex-wrap:wrap;gap:8px}.coverage-group.unused{border-top:1px solid #e6edf7;padding-top:19px;margin-top:23px}.coverage-group.unused h3{color:#778bab}.coverage-group.unused .chip{background:#f0f4fa;color:#6b80a0}.coverage-group.unused p{font-size:12px;line-height:1.7;margin-top:12px}.all-used{color:#6d91a0;font-size:13px;margin-top:18px;line-height:1.7}
.sentence-error{display:flex;align-items:flex-start;gap:8px;color:#a85c6c;background:#fff6f7;border:1px solid #f3dfe6;border-radius:9px;padding:10px 12px;font-size:12px;line-height:1.6;flex-shrink:0}.sentence-error svg{width:17px;height:17px;margin-top:2px}.sentence-error strong{font-weight:600}.sentence-error p{margin-top:2px}.generation-status{color:#467bd0!important}.mini-spinner{display:inline-block;width:15px;height:15px;border:2px solid #d9e6fa;border-top-color:#447bde;border-radius:50%;animation:spin .9s linear infinite}
.bilingual-words,.coverage-content,.sentence-result,#sentence-draft{scrollbar-width:thin;scrollbar-color:#c4d6eb transparent;scrollbar-gutter:stable}
@media(min-width:1000px) and (min-height:560px){
.study-view .sentence-layout>.sentence-card{overflow:hidden}.study-view .sentence-workspace{flex:1;min-height:0;overflow:hidden}.study-view .sentence-bank{flex:0 1 39%;padding:clamp(12px,2vh,22px) 25px 15px;gap:10px}.study-view .bilingual-words{flex:1;max-height:none;min-height:44px;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:8px}.study-view .bilingual-word{padding:9px 11px;gap:3px}.study-view .bilingual-en{font-size:clamp(14px,1.95vh,17px)}.study-view .bilingual-zh{font-size:12px;line-height:1.5}.study-view .sentence-composer{padding:clamp(12px,2vh,22px) 25px 17px;gap:clamp(7px,1.3vh,12px)}.study-view #sentence-draft{min-height:65px;padding:12px 16px;font-size:clamp(16px,2.3vh,20px);line-height:1.8}.study-view .sentence-section-head h3{font-size:clamp(15px,2.1vh,18px)}.study-view .sentence-composer .section-kicker{display:none}.study-view .composer-guidance{font-size:13px}.study-view .sentence-side>.idea-guide{flex:1;min-height:0;padding:clamp(20px,3.8vh,40px) 20px;overflow:hidden;gap:clamp(10px,1.7vh,18px)}.study-view .idea-guide>img{height:clamp(125px,25vh,245px);min-height:0;max-height:45%;width:90%}.study-view .idea-guide>h2{font-size:clamp(18px,2.6vh,22px)}.study-view .idea-guide>p{font-size:clamp(13px,1.85vh,16px)}.study-view .idea-guide-note{padding-top:clamp(10px,2vh,20px);margin-top:4px;font-size:12px}.study-view .sentence-side>.sentence-coverage{flex:1;overflow:hidden}.study-view .coverage-content{max-height:none}.study-view .sentence-result{padding:clamp(17px,2.8vh,28px) 28px;overflow:auto}.study-view .sentence-english .article-en{font-size:clamp(21px,2.8vh,25px);line-height:1.95}.study-view .source-thought{margin-bottom:22px}
}
@media(min-width:1000px) and (min-height:560px) and (max-height:680px){.study-view .sentence-bank{padding:11px 20px;gap:8px;flex-basis:38%}.study-view .sentence-composer{padding:12px 20px;gap:7px}.study-view .sentence-section-head>.small,.study-view .sentence-bank .section-kicker,.study-view .draft-save{display:none}.study-view .composer-status{font-size:11px}.study-view .sentence-error{padding:6px 9px;font-size:11px}.study-view .idea-guide>.section-kicker{font-size:11px}}
@media(max-width:999px),(max-height:559px){.sentence-layout{grid-template-columns:minmax(0,1fr)}.sentence-side:has(.idea-guide){display:none}.sentence-workspace{min-height:490px}.sentence-bank{max-height:265px;flex:0 0 auto}.sentence-composer{min-height:265px}.sentence-result{max-height:none}.sentence-side:has(.sentence-coverage){display:block}.coverage-content{max-height:250px}.sentence-side .tip-card{display:none}}
@media(max-width:720px){.sentence-bank,.sentence-composer{padding:17px 18px}.sentence-card .card-head>.small,.sentence-section-head>.small{display:none}.bilingual-words{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bilingual-word{padding:10px 12px}.bilingual-en{font-size:16px}.composer-guidance{font-size:13px}.draft-save{display:none}.composer-status{font-size:11px}.sentence-result{padding:20px}.source-thought{padding:12px 14px}.sentence-english .article-en{font-size:22px;line-height:1.85}.route-article .bottom-inner{gap:5px}.route-article .bottom-inner>.row{flex-wrap:wrap;gap:7px}.route-article .bottom-inner .btn{font-size:13px;padding:9px 12px}}

/* Ten visible bilingual cards: paging adds more words without a hidden scroll area. */
.sentence-bank{max-height:none;flex:0 0 auto}
.bilingual-words{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;max-height:none;padding:0;scrollbar-gutter:auto;align-items:stretch}
.bilingual-word{justify-content:center;min-height:76px;padding:10px 11px}
.bilingual-en{font-size:17px;line-height:1.4}.bilingual-zh{font-size:13px;line-height:1.45}
.bank-pagination{display:flex;align-items:center;gap:8px;color:#7690b3;font-size:12px;flex-shrink:0}
.bank-pagination .text-btn{padding:6px;min-width:30px;min-height:30px;border:1px solid #dce8fb;border-radius:8px}
.bank-pagination .text-btn svg{width:15px;height:15px}
.composer-input-frame{position:relative;display:flex;flex:1;min-height:150px;border-radius:12px;isolation:isolate;overflow:hidden;background:#fbfdff}
.composer-input-frame #sentence-draft{position:relative;z-index:1;margin:0;background:transparent}
.composer-input-frame.is-generating{background:#f5f9ff;box-shadow:inset 0 0 22px #5f9cf20b}
.composer-input-frame.is-generating #sentence-draft{background:transparent;color:#46648c;border-color:#bdcff0}
.composer-glow{position:absolute;z-index:0;inset:-70%;pointer-events:none;user-select:none;opacity:.6;background:radial-gradient(ellipse at 34% 45%,#82b8ff38 0,transparent 27%),radial-gradient(ellipse at 65% 55%,#b1adff28 0,transparent 30%),linear-gradient(110deg,transparent 40%,#94c3ff24 49%,transparent 59%);animation:composer-light-flow 7s ease-in-out infinite alternate;will-change:transform}
@keyframes composer-light-flow{from{transform:translate3d(-9%,-2%,0) rotate(-7deg)}to{transform:translate3d(9%,3%,0) rotate(7deg)}}
@media(min-width:1000px) and (min-height:560px){
  .study-view .sentence-bank{flex:0 0 auto;max-height:none;padding:clamp(10px,1.7vh,18px) 25px;gap:10px}
  .study-view .bilingual-words{flex:none;min-height:0;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:8px}
  .study-view .bilingual-word{min-height:66px;padding:8px 10px;gap:3px}
  .study-view .bilingual-en{font-size:clamp(15px,1.95vh,18px);line-height:1.35}
  .study-view .bilingual-zh{font-size:13px;line-height:1.4}
  .study-view .composer-input-frame{min-height:65px}
  .study-view .sentence-composer{min-height:145px}
}
@media(min-width:1000px) and (max-height:680px){
  .study-view .sentence-bank{padding:10px 20px;gap:8px}
  .study-view .bilingual-word{min-height:60px;padding:7px 8px}
  .study-view .bilingual-en{font-size:15px}.study-view .bilingual-zh{font-size:12px}
  .study-view .sentence-composer{min-height:132px}
  .study-view .sentence-composer .composer-guidance{font-size:12px}
}
@media(max-width:999px),(max-height:559px){.sentence-bank{max-height:none}.sentence-workspace{min-height:0}.sentence-composer{min-height:300px}.composer-input-frame{min-height:160px}}
@media(max-width:720px){.bilingual-words{grid-template-columns:repeat(2,minmax(0,1fr))}.bilingual-word{min-height:72px}.bilingual-en{font-size:16px}.bilingual-zh{font-size:13px}}

/* Ordinary words keep the surrounding typography; only learning targets are colored. */
.lookup-context{user-select:text;-webkit-user-select:text}
.lookup-word{display:inline;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;vertical-align:baseline;cursor:pointer;user-select:text;-webkit-user-select:text;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.lookup-word:not(.word-highlight):hover{background:#eaf1fb;text-decoration:underline;text-decoration-color:#9bb9e8;text-underline-offset:4px}
.lookup-word:focus-visible{outline:2px solid #5189ee;outline-offset:2px;background:#eaf1ff}
.lookup-word.word-highlight{color:#2670da;background:#edf4ff;padding:0 3px;font-weight:650}
.word-lookup-card{position:fixed;z-index:1000;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dbe7f8;background:#fff;border-radius:16px;box-shadow:0 12px 40px #34598829,0 2px 8px #3459880d;padding:20px 22px;color:#294363}
.word-lookup-card h3{font-size:21px;line-height:1.4;padding-right:30px;margin:0 0 12px;overflow-wrap:anywhere;color:#1c3d68}
.lookup-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:#f3f7fd;color:#7a90ad;cursor:pointer}.lookup-close svg{width:17px;height:17px}
.lookup-content{font-size:15px;line-height:1.7;overflow-wrap:anywhere}.lookup-meaning{font-size:18px;color:#365575;margin:4px 0 10px;white-space:pre-line}.lookup-lemma,.lookup-forms{font-size:13px;color:#7c92ad;margin-bottom:8px}.lookup-source{font-size:11px;color:#92a2b7}.lookup-loading{display:flex;align-items:center;gap:8px;color:#7790b1}.lookup-error{font-size:14px;color:#956679}.lookup-parts{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #e9eff7;padding-top:12px;margin-top:12px}.lookup-parts>span{width:100%;font-size:12px;color:#8a9db8}.lookup-parts button{font:inherit;font-size:13px;color:#4c74ae;background:#f2f6fc;border:1px solid #e0eafa;border-radius:6px;padding:2px 8px;cursor:pointer}
.lookup-selection{position:fixed;z-index:999;border:1px solid #d1e0f7;background:white;box-shadow:0 5px 18px #3f639323;color:#4477c6;border-radius:9px;font:inherit;font-size:13px;padding:8px 12px;cursor:pointer}
@media(prefers-reduced-motion:reduce){.composer-glow{animation:none!important;will-change:auto;transform:none;opacity:.4}}
/* Long bilingual meanings and zoomed/short windows must not hide the composer. */
.study-view.layout-flow .sentence-layout>.sentence-card{height:auto;overflow:visible}
.study-view.layout-flow .sentence-workspace{flex:0 0 auto;min-height:0;overflow:visible}
.study-view.layout-flow .sentence-composer{flex:0 0 auto;min-height:265px}
.study-view.layout-flow .composer-input-frame{min-height:130px}

/* Original layout retained. Only assessment records and scope additions below. */
.assessment-view .range-toolbar{grid-template-columns:minmax(0,1fr)}
.assessment-view .range-toolbar .scope-field{display:flex;flex-direction:row;align-items:center}
.assessment-view .range-toolbar .scope-field>span{flex-shrink:0}
.assessment-view .range-toolbar .scope-button{min-height:40px}
.assessment-view .save-and-filing{display:flex;flex-direction:column;gap:5px;flex-shrink:0}
.assessment-view .save-state{display:flex;align-items:center;gap:8px}
.filing-link{font-size:11px;color:#8da2bd;text-decoration:none;letter-spacing:0}
.filing-link:hover{text-decoration:underline}
.alert{border:1px solid #dbe7f7;border-radius:10px;padding:12px 16px;font-size:14px;line-height:1.7;display:flex;gap:14px;align-items:center;background:#fff;flex-shrink:0}
.alert.error{color:#b53e54;border-color:#f0c6ce;background:#fff8f9}
.alert button{margin-left:auto;flex-shrink:0}
.coverage-note{font-size:12px;line-height:1.6;color:#6d87ae;background:#f5f9ff;padding:8px 14px;border-radius:8px;flex-shrink:0}
.test-card>.coverage-note{margin:0 14px 10px;text-align:center}
.forms{display:block;font-size:11px;line-height:1.4;color:#879ab4;overflow-wrap:anywhere}
.word-tag{display:inline-block;font-size:10px;font-weight:400;color:#6689ba;background:#eef5ff;border-radius:4px;padding:2px 5px;margin-top:3px}
.word-en,.word-zh{overflow-wrap:anywhere}
.good{color:var(--green)}.bad{color:var(--red)}
.result-badge{font-size:14px}.answer-time{display:block;color:#8b9cb5;font-size:11px;margin-top:5px;line-height:1.5}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px;border-bottom:1px solid var(--line)}
.panel-heading>.muted{font-size:13px}
.record-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.record-stats>div{display:flex;flex-direction:column;gap:5px;text-align:center;padding:12px;background:#f6f9fe;border-radius:10px}
.record-stats b{font-size:28px;font-variant-numeric:tabular-nums}.record-stats span{font-size:13px;color:#7890af}
.record-summary{padding:24px;margin-bottom:22px}.record-summary .coverage-note{margin-top:15px}
.record-times{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:20px;font-size:13px;color:var(--muted)}
.record-filters{display:flex;flex-wrap:wrap;gap:8px}
.filter{padding:9px 15px;border-radius:8px;color:#7187a8;background:#f2f6fc;font-size:14px}.filter.active{background:#e9f1ff;color:var(--blue)}
.history-list{display:flex;flex-direction:column;gap:14px;margin-bottom:22px}
.history-card{padding:24px;display:flex;align-items:center;gap:22px;text-align:left;width:100%;color:var(--navy)}
.history-card:hover{border-color:#a8c6fb}
.history-icon{width:52px;height:52px;border-radius:16px;background:#edf4ff;display:flex;align-items:center;justify-content:center;color:#6a8ac0;flex-shrink:0}
.history-main{flex:1;min-width:0}.history-main h2{display:inline;font-size:18px;margin-left:10px}.history-main p{font-size:13px;color:var(--muted);margin:9px 0;line-height:1.6}
.history-counts{font-size:14px;color:#7187a5}.history-counts b{font-weight:600}
.status-tag{display:inline-block;background:#f0f4fa;color:#8192aa;border-radius:6px;padding:4px 7px;font-size:12px}.status-tag.ongoing{color:#36856b;background:#e8f6ef}
.history-arrow{display:flex;align-items:center;gap:8px;color:#6d8fbf;font-size:13px;flex-shrink:0}
.back-link{padding-left:0;margin-bottom:16px}.page-heading h1 small{font-size:16px;color:var(--muted);font-weight:400}
.field-note{font-size:12px;color:#7c90ac;line-height:1.8}.word-definition{font-size:21px;line-height:1.8}
dialog{padding:0;width:560px;max-width:calc(100vw - 30px);max-height:88dvh;overflow:auto}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 24px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:1}
.dialog-head h2{font-size:22px}.icon-btn{background:transparent;color:#7188a8;display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:8px}
.dialog-body{padding:22px 24px}.dialog-body p+p{margin-top:12px}
.dialog-actions{padding:16px 24px;border-top:1px solid var(--line);background:#fafcff;margin:0;position:sticky;bottom:0}
.range-dialog{width:780px}.range-section h3{margin-bottom:6px}.range-pickers{margin-top:18px}
.range-books{margin:14px 0}.range-book input{min-height:0;flex-shrink:0}
.curriculum-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.curriculum-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.curriculum-options .btn{flex-direction:column;align-items:flex-start;white-space:normal;text-align:left;font-size:14px;gap:5px;padding:12px 14px}
.curriculum-options b{font-size:12px;color:#8a9ebc;font-weight:400}
@media(min-width:1000px) and (min-height:560px){
  .assessment-view .test-card .table-wrap{overflow:auto;min-height:0;scrollbar-width:thin}
  .assessment-view .side .chips{overflow:auto;scrollbar-width:thin;align-content:flex-start}
  .assessment-view .test-card .word-footer{padding-top:3px}
  #app.assessment-view.route-history,#app.assessment-view.route-detail{height:auto;min-height:100dvh}
  .assessment-view.route-history .main,.assessment-view.route-detail .main{display:block;flex:1;padding-top:26px;padding-bottom:30px}
  .assessment-view.route-detail .word-table{height:auto}
  .assessment-view.route-detail .word-table td{padding-top:15px;padding-bottom:15px}
}
@media(max-width:999px),(max-height:559px){
  .assessment-view .bottom-bar{position:relative}.assessment-view .main{padding-bottom:24px}
  .assessment-view .table-wrap{overflow:auto}.assessment-view .word-table{min-width:590px}
  .assessment-view .bottom-inner{flex-wrap:wrap}.assessment-view .bottom-inner>.row{flex-wrap:wrap}
  .assessment-view .side .chips{max-height:280px;overflow:auto}
}
@media(max-width:720px){
  .assessment-view .header{gap:10px}.assessment-view .header-actions{margin-left:auto}
  .assessment-view .range-toolbar .scope-field{gap:8px}.assessment-view .scope-button{font-size:13px}
  .assessment-view .bottom-inner{min-height:85px;gap:12px}.assessment-view .bottom-inner>.row{justify-content:flex-end}
  .assessment-view .side-showcase .tip-card{display:none}
  .history-card{padding:18px;gap:12px}.history-icon{display:none}.history-main h2{display:block;margin:8px 0 0;font-size:16px}.history-arrow{font-size:0;gap:0}
  .history-counts{font-size:12px}.record-stats{gap:7px}.record-stats>div{padding:10px 4px}.record-stats b{font-size:24px}.record-stats span{font-size:12px}
  .record-summary{padding:17px}.record-times{font-size:12px;flex-direction:column;gap:6px}
  .panel-heading{padding:16px}.panel-heading>.muted{display:none}.filter{padding:8px 10px;font-size:12px}
  .page-heading{align-items:flex-start;flex-wrap:wrap}.page-heading h1{font-size:26px}
  .dialog-head,.dialog-body{padding:18px}.dialog-actions{padding:14px 18px}.dialog-actions .btn{font-size:13px;padding:10px 12px}
  .curriculum-options{grid-template-columns:1fr}.range-book{font-size:13px;padding:10px}
}

/* Keep the original selection flow; show choices as cards instead of scroll lists. */
.login-title span{white-space:nowrap}
.assessment-view .range-toolbar{grid-template-columns:auto minmax(0,1fr)}
.assessment-view .range-toolbar .region-field{display:flex;flex-direction:row;align-items:center;gap:10px}
.assessment-view .region-button{width:130px;min-width:130px;justify-content:space-between}
.range-dialog,.region-dialog{width:850px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:hidden}
.range-dialog .dialog-head,.region-dialog .dialog-head{position:static;padding:16px 22px}
.range-dialog .dialog-head h2,.region-dialog .dialog-head h2{margin:0;font-size:22px}
.range-dialog .dialog-body,.region-dialog .dialog-body{padding:16px 22px;overflow:visible}
.range-dialog .dialog-actions,.region-dialog .dialog-actions{position:static;margin:0;padding:14px 22px;flex-wrap:nowrap}
.range-dialog .dialog-actions .btn,.region-dialog .dialog-actions .btn{min-height:42px}
.range-dialog .range-pickers{margin:0;gap:10px}
.range-choice{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d8e4f7;border-radius:11px;background:#fff;padding:9px 12px;color:var(--navy);text-align:left;cursor:pointer}
.range-choice>span{display:flex;align-items:center;gap:12px;min-width:0}
.range-choice small{color:#7d91af;white-space:nowrap;font-size:12px;font-weight:400}
.range-choice b{font-size:14px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.range-choice svg{width:15px;height:15px;color:#8aa2c2;flex-shrink:0}
.range-choice:hover{border-color:#9dbbfc;background:#fafcff}
.range-choice:focus-visible,.choice-card:focus-visible,.choice-tabs button:focus-visible,.range-book:focus-within{outline:3px solid #94b8ff;outline-offset:2px}
.range-dialog .range-presets{gap:6px 10px;margin:10px 0}
.range-dialog .range-presets .text-btn{padding:4px 6px;font-size:12px;min-height:28px;border-radius:6px;background:#f2f6fc;color:#5276ad}
.range-dialog .range-presets .text-btn:hover{background:#e6efff;color:var(--blue)}
.range-dialog .range-editions{grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px;margin:0 0 14px}
.edition-choice>span{flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.edition-choice b{max-width:100%}
.range-books-heading{display:flex;align-items:center;justify-content:space-between;min-height:28px;font-size:13px;color:#7188a9}
.card-pager{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#8195af;min-height:28px}
.card-pager .icon-btn{width:28px;height:28px;padding:0;font-size:22px;background:#f0f5fc;line-height:1}
.card-pager .icon-btn:disabled{opacity:.32;cursor:default}
.range-dialog .range-books{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:none;overflow:visible;border:0;border-radius:0;margin:8px 0 0;animation:choice-enter .16s ease-out}
.range-dialog .range-book{min-width:0;min-height:48px;border:1px solid #e3ebf8;border-radius:10px;padding:10px 11px;gap:9px;font-size:13px;transition:background .15s,border-color .15s}
.range-dialog .range-book.selected{background:#f3f7ff;border-color:#c5d7fc}
.range-dialog .range-book input{width:16px;height:16px;margin:0}
.range-dialog .range-book span{line-height:1.4;min-width:0}
.range-dialog .range-book b{font-size:11px;white-space:nowrap;font-weight:400}
.range-dialog .range-books>.muted{grid-column:1/-1;margin:12px 0}
.range-dialog .range-summary{margin:13px 0 0;min-height:22px;font-size:13px;gap:5px 12px;flex-direction:row;align-items:center}
.range-dialog .range-summary span{font-size:11px;color:#7e93b3}
.choice-tabs{display:flex;background:#f0f4fb;border:1px solid #e5edf8;border-radius:11px;padding:4px;gap:4px;margin-bottom:18px}
.choice-tabs button{flex:1;padding:9px 12px;font-size:14px;border-radius:8px;color:#7a90af;background:transparent;transition:color .15s,background .15s,box-shadow .15s}
.choice-tabs button.active{background:white;color:var(--blue);box-shadow:0 2px 8px #2548790d}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;animation:choice-enter .16s ease-out}
.choice-card{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:12px 15px;border:1px solid #e0e9f6;border-radius:10px;background:#fff;color:#526f97;font-size:14px;text-align:left;line-height:1.4;cursor:pointer}
.choice-card:hover{background:#f7faff;border-color:#b4ccfc}
.choice-card.selected{background:#edf4ff;border-color:#a9c5ff;color:var(--blue)}
.choice-card svg{width:17px;height:17px;flex-shrink:0}
.region-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.region-grid .choice-card{justify-content:center;text-align:center;min-height:40px;padding:10px 4px;font-size:13px}
.region-dialog .card-pager{margin-top:12px}
@keyframes choice-enter{from{opacity:.5;transform:translateX(6px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:620px){
  .assessment-view .range-toolbar{grid-template-columns:1fr;gap:10px}
  .assessment-view .range-toolbar .field-inline{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px}
  .assessment-view .region-button{width:100%;min-width:0}
  .range-dialog .dialog-head,.region-dialog .dialog-head{padding:13px 15px}
  .range-dialog .dialog-head h2,.region-dialog .dialog-head h2{font-size:19px}
  .range-dialog .dialog-body,.region-dialog .dialog-body{padding:13px 15px}
  .range-dialog .dialog-actions,.region-dialog .dialog-actions{padding:12px 15px;gap:8px}
  .range-choice{padding:8px;gap:5px}.range-choice>span{flex-direction:column;align-items:flex-start;gap:2px}
  .range-choice b{font-size:12px}.range-choice small{font-size:11px}.range-choice svg{width:12px}
  .range-dialog .range-presets{gap:5px;margin:9px 0}
  .range-dialog .range-presets .text-btn{font-size:11px;padding:4px 5px;min-height:24px}
  .range-dialog .range-editions{gap:6px;margin-bottom:10px}
  .range-dialog .range-book{gap:6px;padding:8px;min-height:50px;font-size:12px}
  .range-dialog .range-book b{display:none}
  .range-dialog .range-summary{font-size:12px;margin-top:10px;display:grid;gap:3px}
  .choice-grid{gap:8px}.choice-card{padding:10px;font-size:13px;min-height:46px}
  .choice-tabs{margin-bottom:12px}.choice-tabs button{padding:8px}
  .region-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .region-grid .choice-card{font-size:12px;min-height:34px;padding:7px 2px}
  .login-title span{white-space:normal}
}
@media(max-height:559px){
  .range-dialog,.region-dialog{max-height:calc(100dvh - 16px)}
  .range-dialog .dialog-head,.region-dialog .dialog-head{padding:8px 16px}
  .range-dialog .dialog-head h2,.region-dialog .dialog-head h2{font-size:18px}
  .range-dialog .dialog-body,.region-dialog .dialog-body{padding:9px 16px}
  .range-dialog .dialog-actions,.region-dialog .dialog-actions{padding:8px 16px}
  .range-dialog .dialog-actions .btn,.region-dialog .dialog-actions .btn{min-height:34px;padding:7px 12px}
  .range-choice{padding:6px 9px}.range-choice>span{flex-direction:row;gap:8px}.range-choice b{font-size:12px}
  .range-dialog .range-presets{margin:6px 0;gap:4px 8px}.range-dialog .range-presets .text-btn{min-height:22px;padding:2px 5px}
  .range-dialog .range-editions{margin-bottom:6px}.range-dialog .range-book{min-height:38px;padding:7px 10px}
  .range-dialog .range-summary{margin-top:7px;display:flex;font-size:12px}
  .choice-grid{gap:6px}.choice-card{min-height:33px;padding:7px 10px;font-size:12px}
  .choice-tabs{margin-bottom:10px}.choice-tabs button{padding:6px;font-size:12px}
  .region-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.region-grid .choice-card{min-height:32px;padding:6px}
}
@media(prefers-reduced-motion:reduce){.choice-grid,.range-dialog .range-books{animation:none}}

/* Ten visible rows, stable review panels and compact record metadata. */
#app.assessment-view .table-wrap{overflow:visible;min-width:0;min-height:0}
#app.assessment-view .word-table{--word-columns:42px minmax(0,.9fr) minmax(0,1.2fr) 172px;display:flex;flex-direction:column;min-width:0;width:100%;height:100%;border-collapse:separate;border-spacing:0}
#app.assessment-view .word-table thead{display:block;flex:0 0 32px;height:32px}
#app.assessment-view .word-table tbody{display:grid;grid-template-rows:repeat(10,minmax(0,1fr));flex:1;min-height:0}
#app.assessment-view .word-table tr{display:grid;grid-template-columns:var(--word-columns);min-height:0;height:100%}
#app.assessment-view .word-table tr>:is(th,td){display:flex;align-items:center;min-width:0;width:auto;height:auto;padding:2px 13px;line-height:1.25;font-size:14px;overflow:hidden}
#app.assessment-view .word-table th{font-size:12px;background:#f7faff}
#app.assessment-view .word-table tr>:first-child{justify-content:center;padding:2px;font-size:12px}
#app.assessment-view .word-table tr>:last-child{justify-content:center}
#app.assessment-view .word-table .blank-word-row td{border-color:#eef3f9}
#app.assessment-view .word-table .word-label,#app.assessment-view .meaning-detail{border:0;background:transparent;text-align:left;min-width:0;width:100%;max-height:100%;padding:1px 0;display:block;color:inherit}
#app.assessment-view .word-label:hover,#app.assessment-view .meaning-detail:hover{color:var(--blue)}
#app.assessment-view .word-en{font-size:clamp(17px,2.7vh,23px);line-height:1.2;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.assessment-view .word-zh{font-size:clamp(12px,1.7vh,15px);line-height:1.3;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.assessment-view .judge{min-height:0;height:clamp(24px,3.8vh,34px);min-width:66px;padding:2px 9px;gap:5px;font-size:13px}
#app.assessment-view .judge svg{width:14px;height:14px}
#app.assessment-view .judgment{gap:7px}
#app.assessment-view .mask{padding:3px 8px;font-size:11px;white-space:nowrap}
#app.assessment-view .pager{margin:0;padding:5px 12px;min-height:40px;flex-wrap:nowrap}
#app.assessment-view .pager .text-btn{padding:4px 7px;font-size:12px}
#app.assessment-view .page-btn{width:28px;height:28px;font-size:12px}
#app.assessment-view .word-footer{padding:1px 12px 10px;font-size:11px;line-height:1.4}
#app.assessment-view .record-result{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
#app.assessment-view .result-badge{font-size:13px;white-space:nowrap}
#app.assessment-view .answer-time{display:inline;font-size:10px;color:#94a4bc;line-height:1.2;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
#app.assessment-view .empty-row-note{font-size:12px;white-space:nowrap}
#app.assessment-view .side .words-card{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#app.assessment-view .side-head{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;flex-shrink:0}
#app.assessment-view .side-head h2{font-size:18px}#app.assessment-view .side-head b{font-size:23px}
#app.assessment-view .side-head>span{color:#a08992;font-size:11px}
.wrong-word-area{flex:1;min-height:0;padding:6px 15px}
.wrong-word-list{display:grid;grid-template-rows:repeat(10,minmax(0,1fr));height:100%;min-height:0}
.wrong-word-item,.wrong-word-placeholder{border:0;border-bottom:1px solid #edf2f9;min-height:0;background:transparent;display:flex;align-items:center;gap:10px;padding:2px 3px;text-align:left;border-radius:4px;color:#456084}
.wrong-word-item:hover{background:#f2f7ff;color:var(--blue)}
.wrong-word-item>span{width:20px;flex-shrink:0;font-size:10px;color:#96a7bf;text-align:center}
.wrong-word-item>b{font-size:14px;font-weight:500;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wrong-word-item>svg{width:12px;height:12px;color:#b5c3d7}
.wrong-word-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;color:#8296b3}
.wrong-word-empty>span{color:#b0c7ec}.wrong-word-empty>span svg{width:30px;height:30px}
.wrong-word-empty p{font-size:15px}.wrong-word-empty small{font-size:12px;line-height:1.8;color:#98a9c0}
#app.assessment-view .side-foot{padding:8px 13px 11px;display:flex;flex-direction:column;gap:5px;flex-shrink:0}
.side-pagination{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8b9fbc;min-height:29px}
.side-pagination .text-btn{font-size:11px;padding:4px 6px}
.side-note{font-size:11px;text-align:center;color:#8a9eb9;line-height:29px}
#app.assessment-view .pdf-download{min-height:34px;padding:7px 13px;font-size:12px;border-radius:8px;gap:6px;white-space:nowrap}
#app.assessment-view .pdf-download svg{width:16px;height:16px}
#app.assessment-view .side .pdf-download{width:100%}
#app.assessment-view .tip-card{height:96px;min-height:96px;padding:9px 12px;flex-direction:row;justify-content:center}
#app.assessment-view .tip-card .mascot-small{height:80px;width:80px;margin-left:-9px}
#app.assessment-view .tip-card h3{font-size:14px}#app.assessment-view .tip-card p{font-size:12px;margin-top:3px}
.detail-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-shrink:0;min-height:62px}
.record-heading{min-width:0;flex:1}.record-title-row{display:flex;align-items:center;gap:13px;min-width:0}
.record-title-row h1{font-size:24px;line-height:1.35;letter-spacing:-.02em;white-space:nowrap}
.record-title-row .back-link{margin:0;padding:5px 9px 5px 0;font-size:12px}
.record-heading p{margin-top:7px;font-size:12px;color:#7d92b2;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.assessment-view .detail-banner .record-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;flex:0 0 360px}
#app.assessment-view .record-stats>div{padding:7px 13px;gap:0;background:#ffffffbf;border:1px solid #e4edf9;border-radius:10px}
#app.assessment-view .record-stats b{font-size:22px;line-height:1.25}#app.assessment-view .record-stats span{font-size:10px;line-height:1.7}
.record-meta{display:flex;align-items:center;gap:18px;flex-shrink:0;font-size:11px;line-height:1.5;color:#8a9cb6;min-height:18px}
.record-meta .text-btn{margin-left:auto;padding:0 6px;font-size:11px}
#app.assessment-view .record-table-card{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#app.assessment-view .record-table-card .panel-heading{flex-shrink:0;padding:9px 17px;min-height:48px;gap:14px}
#app.assessment-view .record-table-card .panel-heading>.muted{font-size:11px}
#app.assessment-view .record-filters{flex-wrap:nowrap;gap:7px}
#app.assessment-view .record-filters .filter{padding:7px 12px;font-size:12px;white-space:nowrap}
.record-table-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e6eef8;padding:8px 17px;min-height:52px;flex-shrink:0;background:#fff}
.record-table-bottom>.pager{flex:1}.record-page-count{min-width:125px;color:#8b9fbc;font-size:11px}
#app.assessment-view .record-table-bottom>.pdf-download{min-width:164px}
@media(min-width:1000px) and (min-height:560px){
  #app.assessment-view,#app.assessment-view.route-history,#app.assessment-view.route-detail{height:100dvh;min-height:0;display:flex;flex-direction:column}
  #app.assessment-view .main{display:flex;flex-direction:column;min-height:0;flex:1;padding-top:var(--screen-edge);padding-bottom:var(--screen-edge);gap:12px}
  #app.assessment-view .main>.toolbar{flex-shrink:0}
  #app.assessment-view .grid{min-height:0;flex:1}
  #app.assessment-view .grid>.test-card{overflow:hidden}
  #app.assessment-view .word-table-wrap{flex:1;min-height:0;overflow:visible}
  #app.assessment-view .side{min-height:0;gap:12px}
  #app.assessment-view.route-history .page-heading{flex-shrink:0;margin:0;min-height:66px}
  #app.assessment-view.route-history .page-heading h1{font-size:24px}
  #app.assessment-view.route-history .page-heading p{font-size:12px;margin-top:4px}
  #app.assessment-view.route-history .eyebrow{display:none}
  #app.assessment-view.route-history .history-list{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));flex:1;min-height:0;gap:9px;margin:0}
  #app.assessment-view.route-history .history-card{padding:10px 18px;gap:16px;min-height:0}
  #app.assessment-view.route-history .history-icon{height:40px;width:40px}
  #app.assessment-view.route-history .history-main h2{font-size:15px}
  #app.assessment-view.route-history .history-main p{font-size:11px;margin:4px 0;line-height:1.4}
  #app.assessment-view.route-history .history-counts{font-size:12px}
  #app.assessment-view.route-history .history-list>.empty{grid-row:1/-1}
  #app.assessment-view .bottom-bar{position:relative;flex-shrink:0}
}
@media(min-width:1000px) and (max-height:700px) and (min-height:560px){
  #app.assessment-view .main{gap:8px;padding-top:10px;padding-bottom:10px}
  #app.assessment-view .detail-banner{min-height:46px;gap:18px}
  #app.assessment-view .record-title-row h1{font-size:21px}
  #app.assessment-view .record-heading p{font-size:11px;margin-top:3px}
  #app.assessment-view .record-stats>div{padding:3px 10px}#app.assessment-view .record-stats b{font-size:19px}
  #app.assessment-view .record-meta{font-size:10px;line-height:1.2;min-height:14px}
  #app.assessment-view .record-table-card .panel-heading{padding:5px 13px;min-height:36px}
  #app.assessment-view .record-filters .filter{padding:5px 10px;font-size:11px}
  #app.assessment-view .record-table-bottom{min-height:43px;padding:4px 13px}
  #app.assessment-view .word-table thead{flex-basis:25px;height:25px}
  #app.assessment-view .word-table tr>:is(th,td){padding-top:1px;padding-bottom:1px}
  #app.assessment-view .word-en{font-size:17px}#app.assessment-view .word-zh{font-size:12px}
  #app.assessment-view .pager{padding:3px 9px;min-height:33px}
  #app.assessment-view .side-head{padding:9px 15px}
  #app.assessment-view .side-foot{padding:4px 10px 7px;gap:3px}
  #app.assessment-view .tip-card{height:72px;min-height:72px}#app.assessment-view .tip-card .mascot-small{height:62px;width:65px}
  #app.assessment-view .wrong-word-item>b{font-size:12px}
}
@media(max-width:999px),(max-height:559px){
  #app.assessment-view .word-table-wrap{height:560px;flex:none;overflow:visible}
  #app.assessment-view .record-table-card .word-table-wrap{height:540px}
  #app.assessment-view .words-card .wrong-word-area{height:330px;flex:none}
  #app.assessment-view .detail-banner{flex-wrap:wrap;gap:12px;margin-bottom:10px}
  #app.assessment-view .detail-banner .record-stats{flex:1 1 100%;gap:8px}
  #app.assessment-view .record-meta{flex-wrap:wrap;gap:6px 14px;margin-bottom:12px}
  #app.assessment-view .main>.record-table-card{display:flex}
  #app.assessment-view .bottom-bar{position:relative}
}
@media(max-width:720px){
  #app.assessment-view .word-table{--word-columns:26px minmax(0,.9fr) minmax(0,1fr) 110px}
  #app.assessment-view .word-table tr>:is(th,td){padding-left:5px;padding-right:5px}
  #app.assessment-view .word-en{font-size:17px}#app.assessment-view .word-zh{font-size:12px}
  #app.assessment-view .judge{min-width:44px;height:31px;padding:2px 5px;font-size:12px;gap:2px}
  #app.assessment-view .judge svg{width:12px;height:12px}#app.assessment-view .judgment{gap:4px}
  #app.assessment-view .mask{font-size:10px;padding:3px 5px}
  #app.assessment-view .answer-time{display:none}
  #app.assessment-view .record-heading{width:100%;flex:auto}
  #app.assessment-view .record-title-row{gap:9px}#app.assessment-view .record-title-row h1{font-size:22px}
  #app.assessment-view .record-title-row .status-tag{font-size:10px}
  #app.assessment-view .record-table-card .panel-heading{padding:9px;gap:8px}
  #app.assessment-view .record-table-card .panel-heading>.muted{display:none}
  #app.assessment-view .record-filters{gap:5px}#app.assessment-view .record-filters .filter{font-size:11px;padding:7px 9px}
  #app.assessment-view .record-table-bottom{flex-wrap:wrap;padding:7px 10px;gap:4px 10px}
  #app.assessment-view .record-page-count{display:none}
  #app.assessment-view .record-table-bottom>.pager{flex:1 1 100%;order:0}
  #app.assessment-view .record-table-bottom>.pdf-download{margin-left:auto;order:1}
}

@media(min-width:1000px) and (min-height:560px) and (max-height:740px){
  #app.assessment-view.route-history .history-card{padding:5px 14px;gap:12px}
  #app.assessment-view.route-history .history-icon{width:30px;height:30px}
  #app.assessment-view.route-history .history-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 15px}
  #app.assessment-view.route-history .history-main>.status-tag{display:none}
  #app.assessment-view.route-history .history-main h2{display:block;grid-row:1;grid-column:1;font-size:13px;line-height:1.4;margin:0}
  #app.assessment-view.route-history .history-main p{grid-row:2;grid-column:1;font-size:10px;line-height:1.4;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #app.assessment-view.route-history .history-counts{grid-row:1/3;grid-column:2;align-self:center;font-size:11px}
  #app.assessment-view.route-history .history-arrow{font-size:11px}
}
@media(min-width:1000px) and (min-height:560px) and (max-height:640px){
  #app.assessment-view .side .tip-card{display:none}
}

/* Keep the four results together, with a dedicated action to their right. */
#app.assessment-view .detail-summary{display:flex;align-items:center;gap:18px;flex:0 0 auto}
#app.assessment-view .detail-banner .detail-summary .record-stats{width:320px;flex:0 0 320px}
#app.assessment-view .retest-button{min-height:42px;min-width:126px;padding:10px 16px;gap:7px;font-size:14px;white-space:nowrap;border-radius:10px}
#app.assessment-view .retest-button svg{width:17px;height:17px}
#app.assessment-view .record-meta .source-record-link{margin-left:0;color:#527db8;max-width:340px;overflow:hidden;text-overflow:ellipsis}
@media(min-width:1000px) and (max-width:1150px){
  #app.assessment-view .detail-summary{gap:12px}
  #app.assessment-view .detail-banner .detail-summary .record-stats{width:280px;flex-basis:280px}
  #app.assessment-view .retest-button{min-width:114px;padding:9px 12px;font-size:13px}
  #app.assessment-view .record-title-row{gap:8px}#app.assessment-view .record-title-row h1{font-size:21px}
  #app.assessment-view .record-title-row .status-tag{font-size:10px}
}
@media(max-width:999px),(max-height:559px){
  #app.assessment-view .detail-summary{width:100%;gap:14px}
  #app.assessment-view .detail-banner .detail-summary .record-stats{flex:1;min-width:0;width:auto}
}
@media(max-width:520px){
  #app.assessment-view .detail-summary{flex-wrap:wrap;gap:10px}
  #app.assessment-view .detail-banner .detail-summary .record-stats{flex:1 1 100%}
  #app.assessment-view .retest-button{margin-left:auto;min-height:36px;padding:8px 13px}
  #app.assessment-view .record-title-row{flex-wrap:wrap}
}
