:root{--blue:#1989fa;--blue-dark:#126bd1;--light:#edf5ff;--green:#00bb96;--red:#fa5a62;--ink:#182431;--muted:#758290;--line:#e9edf3;--bg:#f7f9fc;--paper:#fff;--q-size:17px;--radius:20px;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.65}body.dark{--ink:#e4ebf5;--muted:#9eacc0;--line:#2b3a4b;--bg:#111a24;--paper:#192633;--light:#20384e;color-scheme:dark}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{border:0;cursor:pointer;color:inherit;background:none;min-height:44px}button:disabled{opacity:.5;cursor:wait}a{color:var(--blue);text-decoration:none}input,select,textarea{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--paper);color:var(--ink);width:100%;min-height:46px}input:focus,textarea:focus,select:focus{outline:2px solid #1989fa55;border-color:var(--blue)}button:focus-visible,a:focus-visible{outline:3px solid #1989fa88;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-.8px;line-height:1.3}h2{font-size:21px}h3{font-size:18px}small,.muted{color:var(--muted)}.shell{max-width:1080px;margin:auto;padding:0 24px 100px}.top{height:82px;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:750;letter-spacing:.5px}.logo{width:34px;height:34px;border-radius:11px;background:var(--blue);color:white;display:grid;place-items:center;font-size:20px}.avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--light);color:var(--blue);font-weight:700}.userline{display:flex;align-items:center;gap:8px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--blue);font-weight:700;text-transform:uppercase}.hero{padding:30px 0 24px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.hero h1{margin:7px 0 10px}.hero p{margin-bottom:0;color:var(--muted)}.pill{display:inline-flex;padding:4px 11px;background:var(--light);border-radius:30px;color:var(--blue);font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:13px;background:var(--blue);color:#fff;font-weight:600;min-height:46px}.btn:hover{background:var(--blue-dark)}.btn.secondary{background:var(--paper);border:1px solid var(--line);color:var(--ink)}.btn.soft{background:var(--light);color:var(--blue)}.btn.danger{background:#fff1f2;color:#d84252}.btn.wide{width:100%}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.actions{display:flex;gap:10px;flex-wrap:wrap}.section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 18px}.section-title h2{margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bank{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 4px 20px #17354b03;display:flex;flex-direction:column}.bank-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--light);color:var(--blue);font-size:23px}.bank h3{margin:18px 0 7px}.bank .desc{font-size:13px;color:var(--muted);min-height:22px}.bank .meta{font-size:12px;display:flex;gap:12px;margin:10px 0}.progress-line{height:5px;background:var(--line);border-radius:10px;overflow:hidden;margin:12px 0 6px}.progress-line i{height:100%;display:block;background:var(--blue);border-radius:10px}.bank .actions{margin-top:18px}.bank .actions .btn{flex:1}.collection{display:flex;align-items:center;justify-content:space-between;padding:21px 24px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin-top:25px;gap:15px}.collection strong{display:block}.collection p{font-size:13px;margin:4px 0 0;color:var(--muted)}.empty{padding:42px 25px;text-align:center;background:var(--paper);border:1px dashed var(--line);border-radius:20px;color:var(--muted)}.empty h3{color:var(--ink)}.login-shell{min-height:100dvh;display:grid;place-items:center;padding:30px 20px}.login-box{width:100%;max-width:430px}.login-box .brand{margin-bottom:60px}.login-box h1{font-size:38px}.login-box p{color:var(--muted)}.login-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:26px;margin:28px 0 18px}.divider{display:flex;gap:14px;align-items:center;font-size:12px;color:var(--muted);margin:24px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.login-card input{margin-bottom:12px}.note{font-size:12px;color:var(--muted);line-height:1.7}.practice{background:var(--paper);min-height:100dvh}.practice-shell{max-width:1120px;margin:auto}.practice-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 22px;position:sticky;top:0;background:var(--paper);border-bottom:1px solid var(--line);z-index:10}.icon-btn{padding:8px 12px;border:1px solid var(--line);border-radius:12px;font-size:18px;min-width:44px}.segments{display:flex;background:var(--bg);padding:4px;border-radius:12px}.segments button{padding:7px 22px;min-height:36px;font-size:14px;border-radius:9px;color:var(--muted)}.segments button.selected{background:var(--ink);color:var(--paper)}.practice-content{padding:28px 30px 135px;max-width:780px;margin:auto}.question-meta{font-size:13px;display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;color:var(--muted)}.question-meta strong{color:var(--blue);font-size:20px}.question-title{font-size:var(--q-size);font-weight:600;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.type-label{font-size:12px;background:var(--blue);color:#fff;padding:3px 7px;border-radius:5px;vertical-align:middle;margin-right:9px;white-space:nowrap}.options{display:grid;gap:12px;margin:28px 0}.option{display:flex;align-items:flex-start;gap:17px;text-align:left;width:100%;padding:16px 18px;border:1px solid var(--line);border-radius:16px;line-height:1.7;font-size:var(--q-size);white-space:pre-wrap;overflow-wrap:anywhere}.option .letter{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;background:var(--bg);border:1px solid var(--line);font-size:16px}.option.chosen{border-color:var(--blue);background:var(--light)}.option.right{color:var(--green);border-color:#00bb9633;background:#00bb9609}.option.right .letter{background:var(--green);color:#fff;border-color:var(--green)}.option.wrong{color:var(--red);border-color:#fa5a6244;background:#fa5a6208}.option.wrong .letter{background:var(--red);color:white;border-color:var(--red)}.answer-summary{border-top:1px solid var(--line);padding:22px 0;font-size:16px}.answer-summary strong{color:var(--green)}.analysis{padding:24px;background:var(--bg);border-radius:18px;line-height:1.9;margin:8px 0 20px;white-space:pre-wrap;overflow-wrap:anywhere}.analysis h3{font-size:15px}.analysis .textbook{border-top:1px solid var(--line);padding-top:20px;margin-top:22px;font-size:14px;color:var(--muted)}.practice-bottom{position:fixed;bottom:0;left:0;right:0;z-index:10;background:var(--paper);border-top:1px solid var(--line);padding:10px 20px calc(10px + env(safe-area-inset-bottom))}.practice-bottom .inner{max-width:760px;margin:auto;display:grid;grid-template-columns:44px 1fr 1fr 1fr;gap:10px;align-items:center}.practice-bottom .sync{font-size:11px;text-align:center;color:var(--muted);margin-top:4px}.sheet-overlay{position:fixed;inset:0;background:#14213255;z-index:40;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:750px;background:var(--paper);border-radius:25px 25px 0 0;max-height:88dvh;overflow:auto;padding:20px 24px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 50px #0001}.sheet-header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-20px;background:var(--paper);z-index:2;padding:5px 0 12px}.sheet-header h2{margin:0;font-size:18px}.sheet form{display:grid;gap:15px}.sheet label{display:grid;gap:5px;font-size:13px}.answer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:18px 0 25px}.answer-grid button{aspect-ratio:1;width:100%;border-radius:50%;border:1px solid var(--line);background:var(--bg);font-size:17px;position:relative;min-height:0}.answer-grid button.right{background:var(--green);color:white;border-color:transparent}.answer-grid button.wrong{background:var(--red);color:white;border-color:transparent}.answer-grid button.current{outline:3px solid #1989fa66;outline-offset:2px}.legend{display:flex;justify-content:center;gap:20px;font-size:13px;color:var(--muted)}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--line);margin-right:5px}.dot.green{background:var(--green)}.dot.red{background:var(--red)}.sheet-footer{display:flex;gap:10px;position:sticky;bottom:-24px;background:var(--paper);padding:12px 0}.sheet-footer .btn{flex:1}.setting{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line);gap:14px}.setting input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--blue)}.result-circle{height:150px;width:150px;margin:25px auto;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--light);color:var(--blue)}.result-circle strong{font-size:38px;line-height:1.3}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;margin-bottom:24px}.result-stats strong{display:block;font-size:26px}.result-stats small{font-size:12px}.list-item{padding:18px 0;border-bottom:1px solid var(--line)}.list-item p{margin:7px 0 0}.list-item button{width:100%;text-align:left}.admin-tabs{display:flex;gap:5px;background:var(--paper);padding:5px;border-radius:14px;border:1px solid var(--line);margin:22px 0;overflow:auto}.admin-tabs button{white-space:nowrap;flex:1;padding:8px 15px;border-radius:9px;font-size:14px}.admin-tabs .selected{color:var(--blue);background:var(--light)}.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px}.admin-list{display:grid;gap:14px}.admin-item{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px}.admin-item .actions{margin-top:12px}.admin-item .btn{font-size:13px;min-height:40px;padding:7px 13px}.code-output{white-space:pre-wrap;font-family:monospace;font-size:14px;background:var(--bg);padding:16px;border-radius:12px;overflow-wrap:anywhere}.log-detail{font-size:12px;color:var(--muted);overflow-wrap:anywhere;white-space:pre-wrap}.loading{text-align:center;padding:80px 20px;color:var(--muted)}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#182431ed;color:white;border-radius:13px;padding:12px 20px;z-index:100;max-width:90vw;display:none;font-size:14px;width:max-content}#toast.show{display:block}.watermark{position:fixed;inset:0;pointer-events:none;z-index:30;background-repeat:repeat;opacity:.085}.blocked{padding:50px 24px;text-align:center}.save-alert{background:#fff3e0;color:#95641d;padding:12px;border-radius:12px;font-size:13px;margin-bottom:15px}.page-footer{margin:30px 0;text-align:center;color:var(--muted);font-size:12px}.back-title{display:flex;align-items:center;gap:12px}.back-title h1{font-size:25px;margin:0}.searchrow{display:flex;gap:10px;margin-bottom:18px}.pagination{display:flex;gap:12px;justify-content:center;padding:20px}.check-help{display:flex;align-items:center;gap:10px}.check-help input{width:20px;min-height:20px}
@media(min-width:900px){.practice-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.practice-top{grid-column:1/-1}.practice-content{width:100%;padding:30px 38px 135px}.practice-sidebar{display:block;padding:28px 20px 120px;border-left:1px solid var(--line);height:calc(100dvh - 80px);position:sticky;top:80px;overflow:auto}.practice-sidebar .answer-grid{gap:9px}.practice-sidebar .answer-grid button{font-size:13px}.practice-sidebar h3{margin-bottom:12px}.sheet-overlay{align-items:center}.sheet{border-radius:24px;padding-bottom:24px;max-height:85dvh}.sheet-footer{bottom:-24px}.hero{padding-top:42px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bank{padding:22px}.bank .actions{gap:7px}.bank .btn{padding:9px 10px;font-size:13px}}
@media(max-width:767px){.practice-sidebar{display:none}.shell{padding:0 20px 45px}.top{height:72px}.hero{display:block;padding-top:25px}.hero .btn{margin-top:20px}.hero h1{font-size:29px}.grid{grid-template-columns:1fr;gap:16px}.bank{padding:22px}.practice-top{padding:12px 16px}.segments button{padding:6px 16px}.practice-content{padding:25px 20px 140px}.practice-bottom{padding-left:14px;padding-right:14px}.practice-bottom .btn{padding:10px 9px;font-size:14px}.option{padding:15px 13px;gap:14px}.userline .name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-tabs{gap:0}.admin-tabs button{padding:8px 12px}.collection{padding:19px}.collection .btn{padding:10px 13px}.login-box .brand{margin-bottom:46px}.sheet{padding-left:20px;padding-right:20px}.answer-grid{gap:13px}.section-title{margin-top:28px}}
@media(min-width:520px) and (max-width:767px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){.btn,.option{transition:background .12s,border-color .12s}.sheet{animation:rise .18s ease-out}@keyframes rise{from{transform:translateY(20px);opacity:.6}to{transform:translateY(0);opacity:1}}}

.practice-sidebar{display:none}@media(min-width:900px){.practice-sidebar{display:block}} .question-meta>span{max-width:66%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Mobile gestures: pan and pinch remain available, double-tap zoom is disabled. */
html,body{touch-action:manipulation}
.practice-content{touch-action:pan-y pinch-zoom}
.bank>.row{justify-content:flex-end}

.permission-roster{margin-top:30px}.permission-assign h2{margin-top:0}.permission-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;flex-wrap:wrap}.permission-bank{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.permission-bank>div{min-width:0;overflow-wrap:anywhere}.permission-bank .btn{flex-shrink:0}.permission-assign select{min-width:0;flex:1}.permission-assign .searchrow .btn{flex-shrink:0}.permission-roster .check-help{min-width:0;overflow-wrap:anywhere}.permission-roster .pill{flex-shrink:0}

.admin-item h3{font-size:17px;line-height:1.5;margin:14px 0 8px}.audit-summary{margin:0 0 16px;color:var(--muted);font-size:14px}.event-tag,.status-tag{display:inline-block;font-size:12px;font-weight:600;padding:5px 10px;border-radius:8px}.event-tag{background:var(--light);color:var(--blue)}.event-security{background:#fff0e0;color:#9e640e}.event-admin{background:#eeebff;color:#6954ad}.event-activation{background:#e6f7f0;color:#128364}.status-tag.success{color:#128364;background:#e6f7f0}.status-tag.warning{color:#bd4f36;background:#fff0e9}.audit-fields{font-size:13px;margin:16px 0 0;line-height:1.7}.audit-fields>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;margin:8px 0}.audit-fields dt{color:var(--muted)}.audit-fields dd{margin:0;overflow-wrap:anywhere}.audit-raw{border-top:1px solid var(--line);margin-top:16px;padding-top:12px;color:var(--muted);font-size:12px}.audit-raw summary{cursor:pointer}.audit-raw pre{white-space:pre-wrap;overflow-wrap:anywhere}.record-filter .actions{display:flex;gap:10px}.record-filter-grid{display:grid;grid-template-columns:1fr;gap:12px}.record-filter label{margin:0}.record-filter .searchrow{margin:8px 0 16px}.record-tabs{display:flex;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-top:24px;gap:5px}.record-tabs button{flex:1;border-radius:8px;padding:10px 4px;font-size:14px}.record-tabs .selected{color:var(--blue);background:var(--light);font-weight:600}.record-caption{font-size:13px;color:var(--muted)}.record-metrics,.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:center;padding:18px 0}.record-metrics strong,.admin-summary strong{display:block;font-size:22px;line-height:1.5}.record-metrics span,.admin-summary span{display:block;color:var(--muted);font-size:12px}.admin-summary{background:var(--paper);border:1px solid var(--line);border-radius:14px;margin:20px 0}.dark .event-tag,.dark .status-tag{background:var(--light)}@media(min-width:700px){.record-filter-grid{grid-template-columns:1fr 1fr}}

.searchrow>.btn{flex-shrink:0;white-space:nowrap}.searchrow>input,.searchrow>select{min-width:0;flex:1;width:0}

.question-viewport{position:relative;overflow:hidden;width:100%;max-width:780px;margin:0 auto;min-width:0}.question-viewport>main.practice-content{width:100%}.question-preview{position:absolute;left:0;top:0;width:100%;margin:0;pointer-events:none;background:var(--paper);transform:translate3d(100%,0,0)}.question-preview[hidden]{display:none}.question-viewport.is-swiping>main,.question-viewport.is-swiping>.question-preview{will-change:transform}.question-viewport.is-swiping{user-select:none}

/* Sign-in and learning home: mobile first, clear task hierarchy. */
/* A continuous sign-in page; no panel, border, or nested card. */
.login-page{display:block;padding:28px 24px 24px;background:radial-gradient(ellipse at 100% 0,#edf5ff 0,transparent 45%),var(--paper);min-height:100dvh}
.login-page .login-box{width:100%;max-width:1040px;margin:0 auto;min-height:calc(100dvh - 52px);display:flex;flex-direction:column}
.login-header{display:flex;align-items:center;min-height:40px}
.login-page .login-header .brand{margin:0;font-size:21px;letter-spacing:-.5px}
.login-layout{width:100%;max-width:430px;margin:72px auto 48px}
.login-intro .login-kicker{font-size:13px;color:var(--blue);font-weight:600;letter-spacing:1px;margin:0 0 18px}
.login-intro h1{font-size:35px;line-height:1.45;letter-spacing:-1px;margin:0 0 24px;font-weight:750}
.login-intro h1 span{color:var(--blue)}
.login-intro .login-description{color:var(--muted);font-size:14px;line-height:1.9;margin:0}
.login-entry{margin-top:42px;padding:0;border:0;background:none}
.login-primary{justify-content:space-between;min-height:54px;padding:13px 20px;border-radius:12px;font-size:15px}
.login-primary span{font-size:22px;font-weight:400;line-height:1}
.login-entry .login-account-note{font-size:11px;text-align:center;margin:14px 0 0;color:var(--muted)}
.login-alternative{display:flex;justify-content:center;margin-top:24px}
.guest-entry{font-size:13px;color:var(--muted);padding:6px 14px;min-height:44px;border-radius:8px;font-weight:400}
.guest-entry:hover{color:var(--blue);background:var(--light)}.guest-notice{margin:18px 0 0}
.login-page .login-footer{display:flex;align-items:center;justify-content:center;gap:9px;margin:auto 0 0;padding:18px 0 0;color:var(--muted);font-size:11px;flex-wrap:wrap}
.dark .login-page{background:var(--paper)}
.home-shell{max-width:1080px;padding-bottom:36px}.home-shell .top{height:76px;border-bottom:1px solid var(--line)}
.home-shell .brand{font-size:20px;letter-spacing:-.4px}.home-shell .userline{gap:12px;font-size:13px;color:var(--muted)}
.home-shell .userline button{color:var(--muted);font-size:12px;padding:4px 0;min-width:44px}
.home-intro{padding:32px 0 0}.home-greeting{font-size:13px;color:var(--muted);margin:0 0 10px;overflow-wrap:anywhere}
.home-intro h1{font-size:28px;line-height:1.4;letter-spacing:-.6px;margin:0 0 10px}
.home-caption{color:var(--muted);font-size:13px;margin:0}.home-mobile-break{display:none}
.home-section-title{margin:30px 0 16px;gap:16px}.home-section-title h2{font-size:19px;line-height:1.4;letter-spacing:-.3px}
.home-section-title h2 small{font-size:12px;font-weight:400;margin-left:5px;color:var(--muted)}
.home-section-title p{font-size:11px;color:var(--muted);margin:5px 0 0}.home-section-title .btn{min-height:42px;font-size:13px;padding:8px 14px;border-radius:10px;flex-shrink:0}
.home-banks .grid{grid-template-columns:1fr;gap:16px}
.home-shell .bank{padding:22px;border-radius:18px;box-shadow:0 5px 20px #142b4603}
.bank-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.home-shell .bank h3{font-size:18px;line-height:1.55;letter-spacing:-.2px;margin:0;overflow-wrap:anywhere;min-width:0;flex:1}
.home-shell .bank .pill{font-size:11px;padding:3px 9px;line-height:1.8;white-space:nowrap;flex-shrink:0;background:var(--bg);color:var(--muted);border-radius:7px;margin-top:3px}
.home-shell .bank .desc{font-size:12px;line-height:1.8;margin:8px 0 0;min-height:0;overflow-wrap:anywhere}
.bank-study{margin-top:18px}.bank-progress-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.bank-progress-label>span{color:var(--muted)}.bank-progress-label strong{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.bank-progress-label strong span{font-weight:400;color:var(--muted)}
.home-shell .progress-line{height:5px;margin:10px 0 9px;background:var(--bg)}
.bank-progress-caption{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);flex-wrap:wrap}
.bank-access{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);border-top:1px solid var(--line);margin-top:14px;padding-top:12px;font-size:11px}
.bank-access.ending-soon{color:#ac6417}.bank-access strong{font-weight:500;background:#fff5e7;border-radius:6px;padding:2px 7px}
.home-shell .bank .actions{margin-top:17px;gap:10px}.home-shell .bank .actions .btn{min-height:46px;border-radius:11px;font-size:14px;padding:10px 15px;flex:1}
.home-shell .bank .actions .btn.secondary{flex:0 0 84px;color:var(--muted)}
.home-tools{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:0 20px;margin-top:24px}
.home-tools .collection{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:19px 0;gap:14px}
.home-tools .collection:last-child{border:0}.home-tools .collection strong{font-size:14px;font-weight:600}
.home-tools .collection p{font-size:11px;margin-top:4px}.home-tools .collection .btn{padding:6px 0 6px 8px;border:0;background:none;color:var(--muted);min-height:44px;font-size:12px;white-space:nowrap;flex-shrink:0}
.home-shell .page-footer{font-size:11px;margin:26px 0 6px}
@media(max-width:767px){.home-shell .top{height:66px}.home-intro{padding-top:26px}.home-intro h1{font-size:26px}.home-shell .bank h3{font-size:17px}}
@media(min-width:768px){.login-page{padding:34px 40px 28px}.login-page .login-box{min-height:calc(100dvh - 62px)}.login-layout{max-width:460px;margin:66px auto 50px}.login-intro{text-align:center}.login-intro h1{font-size:42px}.login-entry{margin-top:38px}.home-banks .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.home-shell .bank{padding:24px}.home-intro{padding-top:36px}.home-intro h1{font-size:27px}.home-section-title{margin-top:30px}}
@media(min-width:1200px){.home-banks .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:359px){.login-page{padding-left:20px;padding-right:20px}.login-intro h1{font-size:30px}.home-shell{padding-left:16px;padding-right:16px}.home-intro h1{font-size:24px}.home-shell .bank{padding:18px}.bank-heading{gap:10px}}
@media(max-height:650px) and (max-width:767px){.login-layout{margin:32px auto 24px}.login-intro h1{font-size:29px;margin-bottom:14px}.login-intro .login-kicker{margin-bottom:12px}.login-entry{margin-top:26px}.login-alternative{margin-top:14px}.login-page .login-footer{padding-top:10px}}

/* Answer-card controls occupy their own row; numbers scroll only within the body. */
.answer-card-sheet{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:88vh;max-height:88dvh}
.answer-card-sheet .sheet-header{position:static;flex:0 0 auto;padding:20px 20px 14px;margin:0;background:var(--paper)}
.answer-card-sheet .sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 20px 20px}
.answer-card-sheet .sheet-footer{position:static;flex:0 0 auto;margin:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper);z-index:1}
.answer-card-sheet .sheet-footer .btn{min-width:0}
@media(min-width:900px){.answer-card-sheet{max-height:85vh;max-height:85dvh}.answer-card-sheet .sheet-header{padding-left:24px;padding-right:24px}.answer-card-sheet .sheet-body{padding-left:24px;padding-right:24px}.answer-card-sheet .sheet-footer{padding:12px 24px 24px}}

.permission-bank-group summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;min-height:44px;list-style:none}.permission-bank-group summary::-webkit-details-marker{display:none}.permission-bank-group summary>div{min-width:0;overflow-wrap:anywhere}.permission-bank-group summary>span{white-space:nowrap}.permission-bank-group[open] summary{border-bottom:1px solid var(--line);padding-bottom:14px}.permission-bank-group[open] summary>span{color:var(--blue)}.permission-member{padding:16px 0;border-bottom:1px solid var(--line)}.permission-member-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.permission-member-head .pill{flex-shrink:0}.permission-member .actions{gap:8px}.permission-members .empty{margin-top:16px;padding:24px 16px}.permission-bank-group .pagination:empty{display:none}
/* iOS Safari/QQ browser zooms the page when a focused field uses text below 16px. */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; }
  input, select, textarea { font-size: 16px; }
}

.shared-stem{background:var(--bg);padding:18px;border-left:3px solid var(--blue);border-radius:12px;margin:18px 0;white-space:pre-wrap;font-size:var(--q-size);line-height:1.85}.shared-stem small{display:block;margin-bottom:8px}.plain-content{white-space:pre-wrap;overflow-wrap:anywhere}.multi-choice{max-height:250px;overflow:auto;display:grid;gap:8px;margin:12px 0}.multi-choice label{display:flex;align-items:center;gap:10px;font-size:15px}.multi-choice input[type=checkbox]{width:20px;min-height:20px;flex:0 0 20px}.panel form{display:grid;gap:16px}.panel label{display:grid;gap:6px}.exam-result{display:grid;gap:8px;margin:18px 0;padding:20px;border-radius:16px;background:var(--light);color:var(--blue)}.exam-result strong{font-size:26px}.answer-grid .chosen{background:var(--blue);color:white}.home-section-title{flex-wrap:wrap}.question-comments{margin:24px 0 32px}.sheet h2{overflow-wrap:anywhere}input,select,textarea{font-size:16px}

/* 首页空状态操作居中，用户组入口提高对比度。 */
.home-banks > .empty .actions{justify-content:center}
.home-banks [data-feature="switch-group"]{background:#e9f2ff;color:#126be0;border-color:#bdd6fa}
.home-banks [data-feature="switch-group"]:hover{background:#dcecff}

.home-shell .bank .actions.has-exam{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.home-shell .bank .actions.has-exam .btn{padding-left:8px;padding-right:8px;white-space:nowrap}

.current-group{padding:18px 20px;background:var(--light);border:1px solid #bdd6fa;border-radius:14px;margin-bottom:20px}.current-group h2{color:var(--blue);margin:6px 0 0}

.exam-start-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.exam-start-actions .actions{justify-content:flex-end}.exam-start-actions .save-alert{align-self:stretch;margin-bottom:0}.exam-toolbar{box-shadow:0 -5px 24px #17354b08}.exam-toolbar .actions{max-width:780px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.exam-toolbar .btn{min-height:48px;border-radius:12px;padding:10px 6px;font-size:14px;white-space:nowrap}.exam-toolbar .btn:not(:last-child){background:var(--bg);border:1px solid var(--line);color:var(--ink)}.exam-toolbar .btn:nth-child(2){background:var(--light);border-color:transparent;color:var(--blue)}.exam-practice .option:disabled{opacity:1;cursor:default}@media(max-width:400px){.exam-toolbar .actions{gap:7px}.exam-toolbar .btn{font-size:13px}}

.question-image{margin:20px 0 26px}.question-image button{display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.question-image img{display:block;width:100%;height:auto;max-width:100%}.question-image figcaption{font-size:12px;color:var(--muted);margin-top:6px;text-align:center}.question-image-full{overflow:auto;max-height:65dvh;border:1px solid var(--line);border-radius:12px;background:#fff;touch-action:pan-x pan-y pinch-zoom}.question-image-full img{display:block;max-width:none;width:auto;height:auto}
