@font-face{font-family:BrandSerif;src:url('/mobile/brand-wordmark.woff?v=20261102') format('woff');font-style:normal;font-weight:700;font-display:swap}
:root {
  --bg:#f5f7fb; --surface:#fff; --surface-2:#fafbfe;
  --ink:#172847; --ink-2:#52627b; --ink-3:#7f8da3;
  --line:#dfe7f2; --line-2:#edf1f7;
  --brand:#1d4ed8; --brand-2:#3b82f6; --brand-soft:#edf3ff; --brand-line:#cbdaf6;
  --gold:#b78325; --gold-soft:#fff8ec;
  --shadow:0 1px 3px rgba(16,24,40,.07),0 10px 28px -14px rgba(16,24,40,.22);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink); background:var(--bg); font-synthesis:none;
}
*{box-sizing:border-box} html{-webkit-text-size-adjust:100%} body{margin:0;position:static;height:auto;max-height:none;overflow:visible;overscroll-behavior-y:auto;transform:none;background:var(--bg);line-height:1.7}
dialog:not([open]){display:none!important}
body.dialog-fallback-active{overflow:hidden}
body.dialog-fallback-active::before{content:"";position:fixed;inset:0;z-index:998;background:rgba(0,0,0,.62)}
dialog.dialog-fallback-open{position:fixed;z-index:999}
@media(min-width:651px){dialog.dialog-fallback-open{inset:0;margin:auto}}
@media(max-width:650px){dialog.dialog-fallback-open.share-dialog,dialog.dialog-fallback-open.password-reset-dialog,dialog.dialog-fallback-open.phone-whitelist-dialog{inset:0;margin:auto}}
button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--brand);text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93b4fb;outline-offset:2px}
.shell{min-height:100vh}.workspace{margin-left:272px;min-height:100vh;display:flex;flex-direction:column}
.sidebar{position:fixed;inset:0 auto 0 0;width:272px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:16px 18px;border-bottom:1px solid var(--line-2);color:var(--ink)}
.sidebar-brand b,.sidebar-brand small{display:block;line-height:1.25}.sidebar-brand b{font-size:15.5px}.sidebar-brand small{font-size:11.5px;letter-spacing:.16em;color:var(--ink-3)}
.brand-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(140deg,var(--brand),#4f46e5);color:#fff;display:grid;place-items:center;font:700 17px Georgia,serif;box-shadow:0 5px 14px -5px rgba(29,78,216,.55)}
.sidebar-scroll{flex:1;overflow:auto;padding:12px 10px}.side-caption{font-size:11px;color:var(--ink-3);letter-spacing:.12em;padding:0 10px;margin:7px 0 10px}
.side-group{margin-bottom:5px}.side-grade,.side-alone{width:100%;border:0;background:transparent;text-align:left;color:var(--ink);border-radius:9px;padding:9px 10px;font-size:14px;font-weight:650;display:flex;align-items:center;gap:9px}
.side-grade:hover,.side-alone:hover,.side-modules button:hover{background:var(--surface-2)}.side-grade.active,.side-modules button.active{background:var(--brand-soft);color:var(--brand)}
.side-badge{width:23px;height:23px;border-radius:7px;display:grid;place-items:center;background:#eef1f6;color:var(--ink-2);font:700 12px Georgia,serif}.side-grade.active .side-badge{background:var(--brand);color:#fff}
.side-modules{padding:1px 0 7px 34px}.side-modules button{display:block;width:100%;border:0;background:transparent;color:var(--ink-2);text-align:left;border-radius:7px;padding:5px 10px;font-size:12.5px;line-height:1.4}
.side-subhead{display:block;padding:8px 10px 3px;color:var(--ink-3);font-size:11px;font-weight:650}.checklist label[hidden]{display:none}
.side-divider{height:1px;background:var(--line-2);margin:12px 6px}.sidebar-foot{border-top:1px solid var(--line-2);padding:11px 18px;display:flex;justify-content:space-between;color:var(--ink-3);font-size:11.5px}
.scrim{display:none}.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.top-inner{max-width:1000px;margin:auto;padding:11px 28px;min-height:50px;display:flex;align-items:center;gap:12px}.crumb{font-size:13.5px;color:var(--ink-3)}.crumb span{padding:0 7px;color:#cdd3db}.crumb b{color:var(--ink);font-weight:600}
.account-button{margin-left:auto;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-2);font-size:12.5px;font-weight:600;padding:6px 11px}.account-button:hover{color:var(--brand);border-color:var(--brand-line)}.menu-button{display:none;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-2)}
.grade-picker{margin-left:auto;display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--ink-2);font-size:12px}.grade-picker select{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:6px 27px 6px 9px;min-height:34px;font-size:12.5px;font-weight:600}.grade-picker select:hover{border-color:var(--brand-line)}.account-button{margin-left:0}
main{max-width:1000px;width:100%;margin:0 auto;padding:30px 28px 70px;flex:1}.site-footer{border-top:1px solid var(--line);padding:18px 28px;text-align:center;color:var(--ink-3);font-size:11.5px}.bottom{display:none}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#eef4ff 0%,#f7f9ff 55%,#fff 100%);border:1px solid var(--brand-line);border-radius:18px;padding:34px 34px 30px;margin-bottom:30px}
.hero::after{content:"∑";position:absolute;right:26px;bottom:-34px;font:150px Georgia,serif;line-height:1;color:#dfe9ff;pointer-events:none}.hero>*{position:relative;z-index:1}
.hero .eyebrow{display:inline-flex;background:var(--brand-soft);border:1px solid var(--brand-line);color:var(--brand);border-radius:100px;padding:3px 10px;font-size:11.5px;font-weight:650;letter-spacing:.08em}
.hero h1{font:700 clamp(25px,4vw,34px)/1.3 Georgia,"Songti SC","SimSun",serif;letter-spacing:-.01em;margin:12px 0}.hero h1 em{font-style:normal;color:var(--brand)}.hero p{color:var(--ink-2);font-size:14px;max-width:560px;margin:0}
.search{display:flex;max-width:600px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:4px;margin-top:22px;box-shadow:0 1px 2px rgba(16,24,40,.05)}.search:focus-within{border-color:var(--brand-2);box-shadow:0 0 0 3px rgba(59,130,246,.12)}.search input{flex:1;min-width:0;border:0;outline:0;padding:9px 12px;color:var(--ink);background:transparent}.search button,.primary{border:1px solid var(--brand);border-radius:8px;background:var(--brand);color:#fff;font-weight:650;padding:8px 18px}.search button:hover,.primary:hover{background:#1e40af}.quota-line{margin-top:12px;color:var(--ink-2);font-size:12px}
.find-box{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-bottom:20px}.find-heading{display:flex;align-items:baseline;gap:12px}.find-heading h1{font-size:20px;line-height:1.35;margin:0}.find-heading span{font-size:12px;color:var(--ink-3)}.find-box .search{max-width:none;margin-top:12px;box-shadow:none}.find-box .search input{padding:7px 10px}.find-box .search button{padding:7px 16px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:27px 2px 14px}.section-head h2{font-size:18px;margin:0}.section-head small{color:var(--ink-3);font-size:12px}
.filters{display:flex;gap:8px;flex-wrap:wrap}.filters select,.input,.textarea{border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 12px;color:var(--ink);min-height:42px}.filters select{max-width:100%;min-width:150px}.filters button,.secondary{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-2);padding:9px 14px;font-weight:600}.filters button:hover,.secondary:hover{color:var(--brand);border-color:var(--brand-line);background:var(--brand-soft)}
.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:17px}.card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px 20px 15px;box-shadow:0 1px 2px rgba(16,24,40,.05);cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:8px;min-height:160px;color:var(--ink);transition:.18s}.card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--brand),#6366f1);opacity:0}.card:hover{transform:translateY(-2px);border-color:var(--brand-line);box-shadow:var(--shadow)}.card:hover::before{opacity:1}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.pill{display:inline-flex;align-items:center;border-radius:6px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:650;padding:3px 8px}.card h3{font-size:16.5px;line-height:1.45;margin:0;font-weight:650}.muted{color:var(--ink-3);font-size:12px}.card-bottom{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line-2);padding-top:10px;margin-top:auto;color:var(--ink-3);font-size:11.5px}.card-bottom strong{color:var(--ink-2);font-weight:600}
.empty{border:1px dashed var(--line);background:#fff;border-radius:12px;padding:28px;text-align:center;color:var(--ink-2)}.pager{display:flex;justify-content:center;align-items:center;gap:14px;margin:25px 0}.pager button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 16px;color:var(--ink-2)}.pager button:disabled{opacity:.45;cursor:default}
.back{border:0;background:transparent;color:var(--brand);padding:2px 0 17px;font-weight:650}.detail,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.05)}.detail{padding:24px}.detail h1{font:700 clamp(24px,4vw,31px)/1.3 Georgia,"Songti SC","SimSun",serif;margin:11px 0}.detail-meta{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:18px}.detail-meta span{font-size:12px;color:var(--ink-2);background:var(--surface-2);padding:5px 8px;border-radius:6px}
.content-section{border-top:1px solid var(--line-2);padding-top:20px;margin-top:22px}.content-section h2{font-size:17px;margin:0 0 12px}.prose{font-size:16px;line-height:1.9;overflow-wrap:anywhere}.prose p{margin:0 0 12px}.prose img{max-width:100%;height:auto;border-radius:7px;background:#fafafa;cursor:zoom-in}.prose .katex-display{overflow-x:auto;overflow-y:hidden}.answer{background:var(--brand-soft);border-left:3px solid var(--brand);border-radius:8px;padding:18px}.lockbox{background:var(--brand-soft);border:1px solid var(--brand-line);border-radius:12px;padding:25px;text-align:center;margin-top:18px}.lockbox h2{margin:0 0 8px}.lockbox p{color:var(--ink-2);font-size:14px}.notice{background:var(--gold-soft);color:var(--gold);border-radius:9px;padding:12px 14px;font-size:13px}.qr{width:160px;max-width:100%;border:1px solid var(--line);padding:8px;border-radius:9px}.tags{display:flex;flex-wrap:wrap;gap:7px}.tag{font-size:12px;color:var(--brand);background:var(--brand-soft);padding:5px 9px;border-radius:7px}
.page-title{font:700 28px/1.3 Georgia,"Songti SC","SimSun",serif;margin:2px 0 6px}.page-desc{color:var(--ink-2);font-size:14px;margin:0 0 22px}.panel{padding:20px;margin:12px 0}.panel h2{font-size:17px;margin:0 0 13px}.stack{display:flex;flex-direction:column;gap:11px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:180px;font-size:13px;font-weight:600;color:var(--ink-2)}.field .input,.field .textarea{width:100%;font-weight:400}.textarea{min-height:100px;resize:vertical}.small{font-size:12px;color:var(--ink-3);line-height:1.55}
.account-list,.admin-list{display:flex;flex-direction:column;gap:9px}.list-item{border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff;display:flex;justify-content:space-between;gap:12px;align-items:center}.list-item b{font-size:13px}.list-item small{color:var(--ink-3)}.tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:4px}.tabs button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 15px;white-space:nowrap;color:var(--ink-2)}.tabs button.active{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-line)}.admin-list .input{min-width:0;flex:1}.checklist{display:grid;grid-template-columns:repeat(2,1fr);max-height:170px;overflow:auto;gap:7px;padding:10px;border:1px solid var(--line);border-radius:9px}.checklist label{font-size:12px;line-height:1.4}.upload-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.upload-grid label{border:1px dashed var(--brand-line);border-radius:9px;padding:12px;text-align:center;font-size:12px;color:var(--brand);cursor:pointer}.upload-grid input{width:100%;margin-top:8px;font-size:11px}.status{position:fixed;z-index:50;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:11px 16px;border-radius:9px;box-shadow:var(--shadow);max-width:90vw;font-size:13px}.status.error{background:#b42318}
.section-number{display:block;color:#5d78ae;font:700 10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em}.topic-section{margin:0 0 24px}.topic-heading{display:flex;align-items:baseline;gap:12px;margin:0 2px 10px}.topic-heading h2{margin:0;font-size:16px;line-height:1.4}.topic-rail{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 8px}.topic-tile{flex:0 0 132px;min-height:104px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;padding:11px 12px;border:1px solid #dce6fa;border-radius:12px;background:#f7faff;color:var(--ink);transition:transform .18s,border-color .18s,background .18s}.topic-tile:nth-child(3n+2){background:#f5f8fd}.topic-tile:nth-child(3n){background:#f8f9ff}.topic-tile:hover{transform:translateY(-2px);border-color:#8db1f6}.topic-tile.active{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.topic-icon{display:block;width:35px;height:35px;color:var(--brand)}.topic-icon svg{width:100%;height:100%}.topic-name{font-size:13px;font-weight:700;line-height:1.25}
.topic-tile:first-child{background:#2048b9;border-color:#2048b9;color:#fff}.topic-tile:first-child .topic-icon{color:#fff}.topic-tile:first-child:hover{background:#173b9c}.topic-tile:first-child.active{box-shadow:inset 0 0 0 2px #fff}
.browse-section{margin:2px 0 16px}.browse-toolbar{display:flex;justify-content:space-between;align-items:stretch;gap:14px;min-height:46px;margin-bottom:12px;border-bottom:1px solid #dbe3f0}.browse-tabs{display:flex;align-items:stretch;gap:22px}.browse-tabs button{position:relative;border:0;border-bottom:2px solid transparent;background:transparent;color:#7b879b;padding:0 2px 8px;font-size:13px;font-weight:650;white-space:nowrap}.browse-tabs button:hover{color:var(--brand)}.browse-tabs button.active{border-bottom-color:var(--brand);color:#173b9c}.browse-controls{display:flex;align-items:center;gap:14px;padding-bottom:8px}.browse-progress{display:flex;flex-direction:column;gap:4px;min-width:54px}.browse-count{display:flex;align-items:baseline;gap:4px;font:600 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#a4aec0}.browse-count-current{font-size:12px;color:#1e3f94}.browse-count-divider{color:#cad3e0}.browse-progress-track{position:relative;width:54px;height:2px;background:#dce5f2;overflow:hidden}.browse-progress-fill{position:absolute;inset:0 auto 0 0;width:8%;background:var(--brand);transition:width .18s ease}.browse-arrows{display:flex;align-items:center;box-shadow:0 2px 8px rgba(36,70,133,.09)}.browse-arrows button{display:grid;place-items:center;width:37px;height:34px;border:1px solid #d9e3f1;background:#fff;color:#2f528f;padding:0;transition:background .18s,color .18s,transform .18s}.browse-arrows button:first-child{border-radius:9px 0 0 9px;border-right:0}.browse-arrows button:last-child{border-radius:0 9px 9px 0;background:var(--brand);border-color:var(--brand);color:#fff}.browse-arrows button:hover:not(:disabled){background:#edf3ff}.browse-arrows button:last-child:hover:not(:disabled){background:#173da9}.browse-arrows button:disabled{color:#b7c3d4;background:#f5f7fb;cursor:default;box-shadow:none}.browse-arrows svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.browse-rail{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 1px 7px}.browse-rail::-webkit-scrollbar{display:none}.browse-card{flex:0 0 160px;scroll-snap-align:start;min-width:0;min-height:166px;padding:0 0 11px;overflow:hidden;text-align:left;border:1px solid #dbe4f4;border-radius:12px;background:#fff;color:var(--ink);display:flex;flex-direction:column;transition:transform .18s,border-color .18s,box-shadow .18s}.browse-card:hover{transform:translateY(-2px);border-color:#83a6ed}.browse-card.active{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.browse-art{display:grid;place-items:center;flex:0 0 100px;min-height:0;overflow:hidden;margin-bottom:9px;padding:9px 12px;background:#eaf1ff;color:#2350bf}.browse-art svg{display:block;width:100%;height:100%}.browse-art img{display:block;width:100%;height:100%;object-fit:contain}.browse-card:nth-child(4n+2) .browse-art{background:#eef3fa;color:#244a9a}.browse-card:nth-child(4n+3) .browse-art{background:#e9f4f8;color:#176a88}.browse-card:nth-child(4n) .browse-art{background:#f0effb;color:#4a4aa3}.browse-card:first-child:not(.problem-cover) .browse-art{background:#2048b9;color:#fff}.browse-label{display:block;padding:0 11px;font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.browse-card small{display:block;padding:2px 11px 0;color:var(--ink-3);font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.browse-empty{padding:14px 2px;margin:0;color:var(--ink-2);font-size:13px}.problem-cover .browse-art{background:#f7f9fd!important}.problem-cover .browse-art img{mix-blend-mode:multiply}.browse-results-note{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 2px 10px}.browse-results-note span{font-size:14px;font-weight:700}.browse-results-note small{font-size:11.5px;color:var(--ink-3)}.browse-results-note+.results{margin-top:0}
.section-head{margin-top:10px}.section-head h2{margin:2px 0 0}.card{min-height:156px;padding:16px 18px 14px;gap:7px;border-radius:12px}.card::before{inset:0 auto 0 0;width:3px;height:auto;background:var(--brand);opacity:1}.card-top{align-items:flex-start}.card-kicker{font-size:11px;color:#58729e;font-weight:700}.card-kicker span{padding:0 3px;color:#b2bfd4}.card-number{font:700 22px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#d7e2f6}.card h3{font-size:17px}.card-bottom{align-items:center}.card-bottom strong{color:var(--brand)}.difficulty{display:inline-flex;align-items:center;gap:7px}.difficulty-bars{display:inline-flex;gap:3px}.difficulty-bars i{display:block;width:8px;height:5px;border-radius:2px;background:#e4e9f2}.difficulty-bars i.filled{background:var(--brand-2)}
.question-card{min-height:218px;padding:15px 16px 13px;gap:10px}.question-card .card-top{min-width:0}.question-card .card-kicker{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.question-card .card-number{flex:none}.card-main{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:start;gap:13px;min-width:0}.card-main.no-figure{grid-template-columns:1fr}.card-figure{display:grid;place-items:center;width:116px;height:110px;overflow:hidden;border:1px solid #e6ecf6;border-radius:9px;background:#f8faff}.card-figure img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.card-body{min-width:0}.card-title{font-size:15.5px;font-weight:700;line-height:1.35}.card-tags{display:flex;flex-wrap:wrap;gap:4px;margin:7px 0}.card-tags span{display:inline-block;border-radius:4px;background:#edf3fe;color:#355b9e;padding:2px 5px;font-size:10.5px;line-height:1.4}.card-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:4.5em;color:#66758c;font-size:11.5px;line-height:1.5;overflow-wrap:anywhere}.card-preview p{display:inline;margin:0}.card-preview img.rfx{display:inline-block;width:auto;height:1.1em;max-width:none;vertical-align:-.18em;background:transparent}.card-preview img.rfig{display:none}.question-card .card-bottom{padding-top:9px}.question-card .card-bottom strong{margin-left:auto}.video-available{font-size:11px;font-weight:650;color:#355b9e}
.detail{position:relative;overflow:hidden}.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.detail-overline{font:700 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;color:var(--brand)}.detail-mark{font:50px/1 Georgia,serif;color:#e0eaff}.detail h1{position:relative;margin:4px 0 13px}.detail-meta span{background:var(--brand-soft);color:#4e6287}.content-heading{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}.content-heading h2{margin:0}.content-section{margin-top:20px;padding-top:18px}.prose{line-height:1.85}.answer{background:#f8faff;border-left:2px solid var(--brand);padding:16px}.tag{border:1px solid var(--brand-line);background:#fff}
.prose .katex{font-size:1em}.prose img.rfx{display:inline-block;width:auto;height:1.1em;max-width:none;vertical-align:-.18em;border-radius:0;background:transparent}.prose img.rfig{display:block;max-width:min(100%,280px);max-height:320px;width:auto;height:auto;object-fit:contain;margin:14px auto;border-radius:4px;background:transparent}.problem-figure{display:grid;place-items:center;max-width:100%;margin:14px auto 18px}.problem-figure img{display:block;width:auto;height:auto;max-width:min(100%,280px);max-height:320px;object-fit:contain;background:transparent}.editor-guide{margin:0;padding:10px 12px;border-radius:9px;background:#f4f7fd;color:#52627d;font-size:12px;line-height:1.6}.editor-guide code{font:12px ui-monospace,SFMono-Regular,Consolas,monospace;color:#2048b9}.rich-editor{min-height:170px;line-height:1.65;font-weight:400}
@media(max-width:1080px){.sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:0 0 40px rgba(16,24,40,.2)}.sidebar.open{transform:none}.scrim.open{display:block;position:fixed;inset:0;border:0;background:rgba(16,24,40,.38);z-index:25}.workspace{margin-left:0}.menu-button{display:grid;place-items:center}.top-inner,main{padding-left:18px;padding-right:18px}}
@media(max-width:650px){main{padding:16px 16px 56px}.top-inner{padding:8px 16px}.crumb,.grade-picker span{display:none}.grade-picker{margin-left:auto}.find-box{padding:14px;margin-bottom:14px}.find-heading h1{font-size:18px}.find-heading span{font-size:11px}.browse-section{margin-bottom:12px}.browse-card{flex-basis:148px;min-height:155px}.browse-art{flex-basis:91px}.browse-results-note{margin-top:0}.results{grid-template-columns:1fr;gap:11px}.card{min-height:136px;padding:15px 16px}.detail{padding:19px 17px}.detail-mark{font-size:42px}.content-heading{gap:9px}.filters select{flex:1;min-width:0}.filters button{flex:0 0 auto}.upload-grid,.checklist{grid-template-columns:1fr}.panel{padding:16px}.site-footer{padding:16px;font-size:10.5px}}
@media(max-width:650px){.question-card{min-height:195px;padding:14px 14px 12px}.card-main{grid-template-columns:96px minmax(0,1fr);gap:11px}.card-figure{width:96px;height:100px}.card-tags{margin:5px 0}.card-preview{-webkit-line-clamp:3;max-height:4.5em}}

/* The grade picker owns navigation; the sidebar reveals only the current grade. */
.side-grade-count{margin-left:auto;font-size:11px;font-weight:500;color:var(--ink-3)}
.side-empty{display:block;padding:8px 10px;color:var(--ink-3);font-size:12px}
.card-type{margin-top:2px;color:var(--ink-3);font-size:11px;line-height:1.35}
.question-card .card-preview{margin-top:6px;color:var(--ink-2)}
.auth-tabs{display:flex;gap:5px;width:fit-content;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff}
.auth-tabs button{border:0;border-radius:7px;background:transparent;color:var(--ink-2);padding:7px 17px;font-size:13px;font-weight:650}
.auth-tabs button.active{background:var(--brand);color:#fff}
@media(max-width:650px){
  main{padding-top:10px}
  .find-box{padding:10px 12px;margin-bottom:10px}
  .find-box .search{margin-top:7px}
  .find-box .search input{padding:5px 8px}
  .find-box .search button{padding:5px 13px}
  .browse-section{margin-bottom:7px}
  .browse-toolbar{min-height:37px;margin-bottom:7px}
  .browse-tabs button{padding-bottom:5px}
  .browse-controls{padding-bottom:5px}
  .browse-card{min-height:136px;flex-basis:142px;padding-bottom:8px}
  .browse-art{flex-basis:76px;margin-bottom:6px}
  .browse-rail{padding-bottom:4px}
  .browse-results-note{margin-bottom:7px}
  .question-card{min-height:177px}
}

/* Mobile editorial pass: make the active choice and the question itself unmistakable. */
.top-back,.top-brand,.top-detail-title{display:none}
.menu-button{width:44px;height:44px}
.account-button,.grade-picker select{min-height:44px}
.browse-tabs button{min-height:44px;padding:8px 2px}
.browse-arrows button{width:44px;height:44px}
.browse-controls{padding-bottom:0}
.browse-card:first-child:not(.problem-cover) .browse-art{background:#eaf1ff;color:#2350bf}
.browse-card.active{background:#2048b9;border-color:#2048b9;color:#fff;box-shadow:0 6px 16px -10px rgba(29,78,216,.8)}
.browse-card.active .browse-art,.browse-card.active:first-child:not(.problem-cover) .browse-art{background:#2048b9;color:#fff}
.browse-card.active small{color:#dce7ff}
.active-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 2px 12px}
.active-filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid var(--brand-line);border-radius:100px;background:var(--brand-soft);padding:5px 11px;color:#2048a7;font-size:12px;font-weight:650;max-width:100%}
.active-filters button span{font-size:17px;line-height:1;color:#425f9b}
.results-summary{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 8px;white-space:nowrap}
.results-summary button{border:0;background:transparent;padding:4px 0;color:var(--brand);font-size:12px;font-weight:650}
.home-results-note{flex-wrap:wrap;column-gap:12px;row-gap:4px}
.knowledge-theory-video{display:flex;align-items:center;gap:13px;min-height:68px;margin:16px 0 14px;padding:12px 16px;border:1px solid #d6e2f6;border-radius:15px;background:linear-gradient(105deg,#edf4ff,#fff 72%);color:#1d3764;text-decoration:none;box-shadow:0 5px 16px rgba(35,78,150,.06)}
.browse-exam-trigger{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink-2);font-size:12px;cursor:pointer}.browse-exam-trigger ion-icon:last-child{margin-left:4px}.browse-exam-trigger.is-active{border-color:var(--brand);color:var(--brand);font-weight:650}
.browse-bar.has-exam .browse-exam-trigger{grid-column:1/-1;justify-self:start;min-height:34px}
.knowledge-theory-play{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#2453c4;color:#fff}.knowledge-theory-play ion-icon{font-size:20px}.knowledge-theory-copy{display:grid;gap:2px;min-width:0}.knowledge-theory-copy small{color:#6982aa;font-size:11px}.knowledge-theory-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.knowledge-theory-action{display:flex;align-items:center;gap:3px;margin-left:auto;white-space:nowrap;color:#2453c4;font-size:12px;font-weight:700}
@media(max-width:650px){.knowledge-theory-video{margin:11px 0 12px;padding:10px 12px;min-height:60px}.knowledge-theory-action{font-size:11px}}
.home-results-heading{display:flex;align-items:baseline;gap:7px;min-width:0;white-space:nowrap}
.home-results-heading small{font-weight:500;font-variant-numeric:tabular-nums}
.home-results-note .results-summary{gap:6px 9px}
.results-progress{display:inline-flex;align-items:baseline;gap:4px;color:#7284a2;font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.results-progress::before{content:"";align-self:center;width:5px;height:5px;border-radius:50%;background:var(--brand)}
.results-progress strong{font-size:15px;font-weight:750;line-height:1;color:#2756bb}
.results-progress-mastered{padding-left:9px;border-left:1px solid #d9e2f0}
.results-progress-mastered::before{background:#dca83e}
.results-progress-mastered strong{color:#a77a21}
.home-results-note .results-progress{color:#7284a2;font-size:11px;font-weight:500;letter-spacing:0}
.results-summary .results-login{color:#637ea8;font-size:11px}
@media(max-width:650px){.browse-results-note{flex-wrap:wrap}.results-summary{margin-left:auto}.home-results-note .results-summary{flex-wrap:nowrap}.home-results-note .results-progress{font-size:11px}.home-results-note .results-progress strong{font-size:15px}}
.active-filters+.results{margin-top:0}
.question-card{gap:9px}
.question-card .card-main{grid-template-columns:minmax(0,1fr) 116px}
.question-card .card-main.no-figure{grid-template-columns:1fr}
.question-card .card-figure{position:relative;display:block}
.question-card .card-figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.question-card .card-tags{margin:0 0 8px}
.question-card .card-preview{margin:0;color:var(--ink);font-size:14px;line-height:1.65;font-weight:560;max-height:4.95em;-webkit-line-clamp:3}
.question-card .card-type{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-3);font-size:11px}
.question-card .card-bottom strong{flex:none}
.image-viewer{width:min(960px,calc(100vw - 24px));max-width:960px;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:14px;background:#fff;box-shadow:0 20px 70px rgba(0,0,0,.3)}
.image-viewer::backdrop{background:rgba(12,22,43,.86)}
.image-viewer-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--line);font-size:14px;font-weight:700}
.image-viewer-head button{min-width:44px;min-height:44px;border:0;background:transparent;color:var(--ink);font-size:14px}
.image-viewer-stage{max-height:calc(100dvh - 155px);overflow:auto;text-align:center;padding:14px}
.image-viewer-stage img{display:block;max-width:100%;height:auto;margin:auto}
.image-viewer>p{margin:0;padding:7px 15px 13px;text-align:center;color:var(--ink-2);font-size:12px}
@media(max-width:650px){
  .top-inner{gap:8px}
  .top-brand{display:flex;flex-direction:column;min-width:0;line-height:1.15}
  .top-brand b{font-size:14px;white-space:nowrap}
  .top-brand small{margin-top:2px;color:var(--ink-3);font-size:10px;letter-spacing:.12em}
  .top-detail .menu-button,.top-detail .top-brand,.top-detail .grade-picker,.top-detail .account-button{display:none}
  .top-detail .top-back{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;background:transparent;color:var(--brand);font-size:23px}
  .top-detail .top-detail-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700}
  .grade-picker select{max-width:102px;padding-left:7px;padding-right:24px;font-size:12px}
  .account-button{padding:5px 9px;font-size:12px}
  .find-heading h1{font-size:17px}
  .find-heading span{font-size:11px}
  .find-box .search input{min-height:38px}
  .find-box .search button{min-height:40px}
  .browse-toolbar{min-height:44px}
  .browse-card{min-height:146px}
  .browse-art{flex-basis:86px}
  .browse-card small{font-size:11px}
  .browse-results-note{margin-bottom:8px}
  .active-filters{margin-bottom:9px}
  .active-filters button{min-height:40px}
  .question-card{min-height:0;padding:15px 15px 12px}
  .question-card .card-main,.question-card .card-main.no-figure{display:flex;flex-direction:column;gap:10px}
  .question-card .card-body{width:100%}
  .question-card .card-preview{font-size:14px;line-height:1.65;max-height:6.6em;-webkit-line-clamp:4}
  .question-card .card-figure{width:100%;height:132px}
  .question-card .card-figure img{object-fit:contain}
  .question-card .card-bottom{padding-top:9px}
  main>.back{display:none}
  .detail-mark{font-size:30px}
  .detail h1{font-size:22px}
  .image-viewer{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
}
@media(max-width:360px){
  .top-inner{padding-left:10px;padding-right:10px;gap:5px}
  .top-brand b{font-size:12px}
  .grade-picker select{max-width:88px;font-size:11px}
  .account-button{padding-left:7px;padding-right:7px}
  .browse-controls{gap:7px}
  .browse-progress{min-width:40px}
  .browse-progress-track{width:40px}
  .browse-tabs{gap:12px}
}

/* Mobile web app: blue-and-white identity, clear search, readable questions. */
@media(max-width:650px){
  :root{--bg:#f5f7fb}
  body{background:var(--bg);line-height:1.6}
  .workspace{min-height:100dvh}
  .top{background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);box-shadow:none}
  .top-inner{min-height:60px;padding:7px 16px;gap:10px}
  .menu-button{flex:none;border:0;border-radius:12px;background:#eef4ff;color:var(--brand);font-size:18px}
  .top-brand{line-height:1.1}
  .top-brand b{font-size:15px;letter-spacing:.015em}
  .top-brand small{margin-top:4px;font-size:10px;letter-spacing:.12em}
  .grade-picker{min-width:0}
  .grade-picker select{max-width:108px;min-height:40px;border-color:#d9e5fa;border-radius:11px;background:#f5f8ff;color:#2247a0;font-size:12px}
  .top .account-button{display:none}
  .top-detail .top-back{border-radius:12px;background:#eef4ff;font-size:21px}
  .top-detail .top-detail-title{font-size:15px;line-height:1.35}
  main{padding:18px 16px calc(96px + env(safe-area-inset-bottom))}
  .site-footer{display:none}
  .bottom{position:fixed;z-index:24;display:flex;align-items:stretch;justify-content:space-around;inset:auto 0 0;min-height:64px;padding:5px 12px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #e5ebf4;background:rgba(255,255,255,.96);box-shadow:0 -7px 24px rgba(22,45,85,.045);backdrop-filter:blur(14px)}
  .bottom button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:64px;min-height:52px;border:0;background:transparent;color:#8090a7;font-size:11px;font-weight:650;line-height:1.25}
  .bottom svg{width:23px;height:23px}
  .bottom button.active{color:var(--brand)}
  .bottom button.active svg{stroke-width:2.15}
  .shell[data-view="detail"] .bottom{display:none}
  .shell[data-view="detail"] main{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  .find-box{padding:0;margin:0 0 17px;border:0;background:transparent}
  .find-heading{align-items:baseline;gap:8px;padding:0 1px}
  .find-heading h1{font-size:21px;font-weight:750;letter-spacing:-.02em}
  .find-heading span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  .find-box .search{height:52px;margin-top:10px;padding:4px;border-color:#dce4f0;border-radius:14px;box-shadow:0 2px 8px rgba(30,55,96,.045)}
  .find-box .search input{min-height:42px;padding:7px 11px;font-size:14px}
  .find-box .search button{min-height:42px;padding:6px 17px;border-radius:10px;font-size:13px}
  .browse-section{margin:0 0 16px}
  .browse-toolbar{min-height:45px;margin-bottom:10px;border-bottom:1px solid #e3eaf5}
  .browse-tabs{gap:21px}
  .browse-tabs button{font-size:13px}
  .browse-controls{gap:9px}
  .browse-progress{min-width:42px;justify-content:center}
  .browse-count{font-size:10px}
  .browse-progress-track{display:none}
  .browse-arrows{gap:6px;box-shadow:none}
  .browse-arrows button,.browse-arrows button:first-child,.browse-arrows button:last-child{width:44px;height:44px;border:1px solid #dce6f5;border-radius:50%;background:#fff;color:var(--brand)}
  .browse-arrows button:last-child{background:var(--brand);border-color:var(--brand);color:#fff}
  .browse-arrows button:disabled{background:#f5f7fb;color:#b1bfd4;border-color:#e8edf5}
  .browse-rail{gap:10px;margin-right:-16px;padding:1px 16px 8px 0;scroll-padding-left:0}
  .browse-card{flex-basis:148px;min-height:158px;border-color:#dfe7f3;border-radius:14px;box-shadow:0 1px 2px rgba(23,47,92,.035)}
  .browse-art{flex-basis:94px;margin-bottom:9px;padding:10px 13px;background:#eaf2ff;color:#204fb8}
  .browse-card:nth-child(4n+2) .browse-art{background:#edf4ff;color:#2455b7}
  .browse-card:nth-child(4n+3) .browse-art{background:#e8f4fb;color:#176a91}
  .browse-card:nth-child(4n) .browse-art{background:#f0f5fd;color:#375bac}
  .browse-card.active{background:#fff;border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
  .browse-card.active .browse-art,.browse-card.active:first-child:not(.problem-cover) .browse-art{background:#e7f0ff;color:#204fb8}
  .browse-card.active .browse-label{color:var(--brand)}
  .browse-card.active small{color:#5b7196}
  .browse-label{font-size:13px;padding:0 12px}
  .browse-card small{padding:3px 12px 0;font-size:10.5px}
  .browse-results-note{margin:0 1px 10px}
  .browse-results-note span{font-size:16px;letter-spacing:-.01em}
  .browse-results-note small{font-size:12px}
  .results{gap:12px}
  .question-card{padding:16px 16px 13px;gap:10px;border-color:#e1e8f2;border-radius:15px;box-shadow:0 2px 8px rgba(24,48,91,.045)}
  .question-card::before{width:2px;background:var(--brand)}
  .question-card .card-kicker{font-size:11px;color:#5e759b}
  .question-card .card-tags{gap:5px;margin-bottom:9px}
  .question-card .card-tags span{border-radius:5px;padding:3px 6px;background:#edf3fd;color:#486695}
  .question-card .card-preview{font-size:15px;line-height:1.68;font-weight:500;max-height:6.72em}
  .question-card .card-main{gap:12px}
  .question-card .card-figure{height:142px;border-radius:10px;background:#fbfcff}
  .question-card .card-bottom{gap:8px;padding-top:10px}
  .question-card .card-bottom strong{font-size:12px;white-space:nowrap}
  .question-card .card-type{font-size:11px}
  .pager{gap:10px}
  .pager button{min-height:44px}
  .detail{padding:19px 17px;border-color:#e1e8f2;border-radius:15px;box-shadow:0 2px 8px rgba(24,48,91,.045)}
  .detail-mark{font-size:29px}
  .detail h1,.page-title{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;letter-spacing:-.025em}
  .detail h1{font-size:21px;line-height:1.4}
  .detail-meta{gap:7px}
  .detail-meta span{padding:4px 8px}
  .content-section{margin-top:20px;padding-top:19px}
  .content-heading{align-items:center;justify-content:space-between}
  .content-heading h2{order:-1;font-size:16px}
  .section-number{font-size:10px}
  .prose{font-size:16px;line-height:1.9}
  .prose img.rfig{max-height:320px;object-fit:contain}
  .lockbox{padding:20px 17px;text-align:left}
  .lockbox h2{font-size:17px}
  .lockbox .primary{min-height:44px}
  .page-title{font-size:24px}
  .page-desc{margin-bottom:16px}
  .panel{border-color:#e1e8f2;border-radius:15px;box-shadow:0 2px 8px rgba(24,48,91,.04)}
  .admin-search{height:48px;margin-top:15px;border:1px solid var(--line);box-shadow:none}
  .admin-search input{min-width:0}
  .admin-search button{padding-left:13px;padding-right:13px}
  #problemForm{scroll-margin-top:76px}
  #problemForm .row{flex-direction:column;align-items:stretch}
  #problemForm .row .field{flex:none;width:100%}
  .field{min-width:0;width:100%}
  .input,.textarea,.filters select{font-size:16px}
  .list-item{flex-wrap:wrap;min-width:0}
  .admin-list .list-item>*{min-width:0}
  .admin-list .list-item>.input{flex-basis:100%}
  .upload-grid label{overflow-wrap:anywhere}
}
@media(max-width:360px){
  .top-inner{gap:7px}
  .top-brand b{font-size:13px}
  .grade-picker select{max-width:98px}
  .browse-tabs{gap:11px}
  .browse-controls{gap:6px}
  .browse-arrows{gap:4px}
  .browse-arrows button,.browse-arrows button:first-child,.browse-arrows button:last-child{width:40px;height:40px}
  .browse-card{flex-basis:138px}
}
@media(prefers-reduced-motion:reduce){
  .browse-rail{scroll-behavior:auto}
  .card,.browse-card,.browse-progress-fill,.browse-arrows button{transition:none}
}

/* Account entry: a compact, brand-led page for the invitation beta. */
.auth-page{width:100%;max-width:480px;margin:0 auto}
.auth-intro{position:relative;overflow:hidden;min-height:178px;padding:22px 23px;border:1px solid #d4e2fc;border-radius:20px;background:linear-gradient(122deg,#e8f1ff 0%,#f2f6ff 58%,#fcfdff 100%)}
.auth-intro-copy{position:relative;z-index:1}
.auth-eyebrow{display:inline-block;color:#315fb9;font-size:11px;font-weight:750;letter-spacing:.1em}
.auth-intro h1{margin:10px 0 8px;color:#172846;font-size:27px;font-weight:800;line-height:1.3;letter-spacing:-.035em}
.auth-intro h1 em{color:var(--brand);font-style:normal}
.auth-intro p{max-width:205px;margin:0;color:#637694;font-size:12.5px;line-height:1.5}
.auth-graphic{position:absolute;right:5px;bottom:0;width:146px;height:146px;color:#4a79dd;opacity:.72;transform:rotate(-8deg)}
.auth-content{margin-top:14px;padding:8px 21px 21px;border:1px solid #e1e8f2;border-radius:19px;background:#fff;box-shadow:0 4px 20px -14px rgba(20,55,112,.25)}
.auth-content .auth-tabs{display:flex;width:100%;gap:0;margin:0;padding:0;border:0;border-bottom:1px solid #e6edf7;border-radius:0;background:transparent}
.auth-content .auth-tabs button{position:relative;flex:1;min-height:49px;padding:10px 4px;border:0;border-radius:0;background:transparent;color:#8090a9;font-size:13.5px;font-weight:650}
.auth-content .auth-tabs button.active{background:transparent;color:var(--brand);font-weight:750}
.auth-content .auth-tabs button.active::after{content:"";position:absolute;right:26px;bottom:-1px;left:26px;height:3px;border-radius:3px 3px 0 0;background:var(--brand)}
.auth-form-head{margin:21px 0 19px}
.auth-form-head h2{margin:0 0 2px;color:#152641;font-size:21px;font-weight:780;letter-spacing:-.025em}
.auth-form-head p{margin:0;color:#8090a5;font-size:12.5px}
.auth-field{margin-bottom:14px}
.auth-field label{display:block;margin:0 0 7px;color:#324158;font-size:12.5px;font-weight:700}
.auth-field-note{display:block;margin-top:6px;color:#8391a7;font-size:11px;line-height:1.45}
.auth-field .input{display:block;width:100%;min-height:49px;padding:11px 13px;border:1px solid #dfe7f2;border-radius:11px;background:#fbfcff;color:#172846;font-size:16px;outline:0;transition:border-color .18s,box-shadow .18s}
.auth-field .input::placeholder{color:#9aa7b9}
.auth-field .input:focus{border-color:#5282ea;box-shadow:0 0 0 3px rgba(64,111,223,.12)}
.auth-password{position:relative}
.auth-password .input{padding-right:65px}
.auth-password button{position:absolute;top:4px;right:4px;bottom:4px;min-width:54px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#3a64b6;font-size:12px;font-weight:700}
.auth-password button:hover{background:#edf4ff}
.auth-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;margin-top:19px;padding:0 17px;border-radius:11px;font-size:14px;box-shadow:0 6px 14px -9px rgba(24,72,191,.75)}
.auth-submit span{font-size:20px;font-weight:400;line-height:1}
.auth-footnote{margin:14px 0 0;color:#8492a7;font-size:11.5px;text-align:center;line-height:1.5}
.auth-form-links{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;color:#8492a7;font-size:11.5px;line-height:1.5}.auth-form-links button,.auth-back{border:0;background:transparent;color:#2454bd;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}.auth-back{min-height:43px;padding:10px 2px}.auth-reset-success{margin:0 0 16px;padding:10px 12px;border:1px solid #cce8d7;border-radius:9px;background:#f0faf4;color:#276f48;font-size:12px;line-height:1.6}.auth-reset-success strong{overflow-wrap:anywhere}
.browse-summary{display:none}
.browse-section.is-schools .browse-toolbar{min-height:40px;margin-bottom:7px}
.browse-section.is-schools .browse-progress{display:none}
.browse-section.is-schools .browse-controls{padding-bottom:5px}
.browse-section.is-schools .browse-rail{gap:8px;padding-bottom:3px}
.browse-section.is-schools .browse-card{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;column-gap:9px;flex:0 0 166px;min-height:58px;height:58px;padding:7px 9px;border-color:#e1e8f2;border-radius:11px;box-shadow:none}
.browse-section.is-schools .browse-card .browse-art{grid-row:1/3;grid-column:1;width:38px;height:38px;min-height:0;min-width:0;flex:none;margin:0;padding:6px;border-radius:8px;background:#edf3fd;color:#315da8}
.browse-section.is-schools .browse-label{grid-row:1;grid-column:2;padding:0;font-size:12px;line-height:1.25}
.browse-section.is-schools .browse-card small{grid-row:2;grid-column:2;padding:2px 0 0;font-size:10px;line-height:1.2}
.browse-section.is-schools .browse-card.active{border-color:#7fa0e7;box-shadow:inset 0 0 0 1px #7fa0e7;background:#f8fbff}
.browse-section.is-schools .browse-card.active .browse-art{background:#e8f0ff;color:var(--brand)}
@media(max-width:650px){
  .shell[data-auth-guest] .bottom,.shell[data-auth-guest] .site-footer{display:none}
  .shell[data-auth-guest] main{padding:15px 16px calc(28px + env(safe-area-inset-bottom))}
  .top-auth .menu-button,.top-auth .top-brand,.top-auth .grade-picker,.top-auth .account-button{display:none}
  .top-auth .top-back{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:11px;background:#edf3ff;color:var(--brand);font-size:22px;line-height:1}
  .top-auth .top-detail-title{display:block;color:#1c2c49;font-size:15px;font-weight:750}
  .top-auth .top-inner{gap:12px}
  .browse-section{scroll-margin-top:72px;overflow-anchor:none}
  .browse-section.is-schools{margin-bottom:11px}
  .browse-section.is-schools .browse-arrows button{width:38px;height:38px}
  .browse-section.is-schools .browse-card{flex-basis:154px;min-height:58px}
  .browse-section.is-schools .browse-rail{padding-bottom:4px}
  .browse-open{max-height:280px;overflow:hidden;opacity:1;transition:max-height .2s ease,opacity .16s ease}
  .browse-section.is-collapsed .browse-open{max-height:0;opacity:0;pointer-events:none}
  .browse-section.is-collapsed .browse-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:9px 13px;border:1px solid #dce6f5;border-radius:12px;background:#fff;color:#304967;text-align:left;box-shadow:0 2px 8px rgba(24,48,91,.035)}
  .browse-summary-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .browse-summary-label strong{margin-left:5px;color:var(--brand);font-size:13px}
  .browse-summary-action{flex:none;color:var(--brand);font-size:12px;font-weight:700}
  .browse-summary-action span{display:inline-block;margin-left:2px;font-size:18px;line-height:.7;vertical-align:-1px}
  .shell[data-browse-collapsed="true"] .active-filters [data-remove-filter="category"],.shell[data-browse-collapsed="true"] .active-filters [data-remove-filter="school"],.shell[data-browse-collapsed="true"] .active-filters.is-category-only{display:none}
}
@media(max-width:360px){
  .auth-intro{min-height:168px;padding:20px 18px}
  .auth-intro h1{font-size:24px}
  .auth-intro p{max-width:180px;font-size:12px}
  .auth-graphic{right:-14px;width:132px;height:132px;opacity:.58}
  .auth-content{padding-right:17px;padding-left:17px}
}
@media(prefers-reduced-motion:reduce){.browse-open{transition:none}}

/* Shared mobile controls: Ionic interactions with the existing blue-white theme. */
:root{--ion-color-primary:#1d4ed8;--ion-color-primary-rgb:29,78,216;--ion-color-primary-contrast:#fff;--ion-color-primary-shade:#1944be;--ion-color-primary-tint:#3460dc;--ion-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
ion-icon{display:inline-block;width:1.15em;height:1.15em;flex:none;vertical-align:-.18em;pointer-events:none}
.menu-button ion-icon,.top-back ion-icon{width:20px;height:20px}
.grade-picker ion-select{display:block;min-width:100px;min-height:40px;padding:0 10px;border:1px solid #d9e5fa;border-radius:11px;background:#f5f8ff;color:#2247a0;font-size:12px;font-weight:700;--padding-start:0;--padding-end:0;--padding-top:9px;--padding-bottom:9px}
.grade-picker ion-select::part(icon){width:15px;height:15px;margin-left:9px;color:#315bbc;opacity:1}
.grade-picker ion-select:focus-visible{outline:3px solid #93b4fb;outline-offset:2px}
.browse-tabs,.auth-tabs,.tabs{--background:transparent;--indicator-color:var(--brand);--color:#7b879b;--color-checked:var(--brand);--color-hover:var(--brand);--ripple-color:#dbe8ff}
.browse-tabs{width:auto;min-width:0;flex:none;gap:4px}
.browse-tabs ion-segment-button{min-width:64px;min-height:44px;margin-right:5px;--padding-start:2px;--padding-end:2px;color:#7b879b;font-size:13px;font-weight:650}
.browse-tabs ion-segment-button.segment-button-checked{color:var(--brand)}
.auth-content .auth-tabs{width:100%;min-height:49px;border-bottom:1px solid #e6edf7}
.auth-tabs ion-segment-button{min-height:49px;color:#8090a9;font-size:13.5px;font-weight:650}
.auth-tabs ion-segment-button.segment-button-checked{color:var(--brand);font-weight:750}
.tabs{width:100%;border-bottom:1px solid var(--line)}
.tabs ion-segment-button{min-height:44px;color:var(--ink-2);font-size:13px;font-weight:650}
.browse-arrows ion-icon{width:18px;height:18px}
.browse-summary-action{display:inline-flex;align-items:center;gap:3px}
.browse-summary-action ion-icon{width:15px;height:15px}
.active-filters ion-icon{width:14px;height:14px}
.question-card .card-bottom ion-icon{width:15px;height:15px}
.back{display:inline-flex;align-items:center;gap:5px}
.back ion-icon{width:16px;height:16px}
.auth-password button{display:flex;align-items:center;justify-content:center;gap:3px}
.auth-password button ion-icon{width:16px;height:16px}
.auth-submit ion-icon{width:20px;height:20px}
.bottom ion-icon{width:23px;height:23px}
.image-viewer{--width:min(960px,calc(100vw - 24px));--height:auto;--max-height:calc(100dvh - 24px);--border-radius:14px;--box-shadow:0 20px 70px rgba(0,0,0,.3)}
.image-viewer::part(backdrop){background:rgba(12,22,43,.86)}
.image-viewer-content{background:#fff;overflow:hidden}
.image-viewer-content>p{margin:0;padding:7px 15px 13px;text-align:center;color:var(--ink-2);font-size:12px}
.image-viewer-head ion-icon{width:21px;height:21px}
.ui-toast{--border-radius:12px;--box-shadow:0 12px 28px rgba(16,24,40,.18)}
.ui-toast::part(message){font-size:13px;font-weight:650}
.field select.input{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23315bbc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:17px;background-position:right 11px center}
.import-rows{display:flex;flex-direction:column;gap:10px;max-height:65vh;overflow:auto;padding:2px}.import-row{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff}.import-row-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.import-row-head label{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.5}.import-row-head input{margin-top:3px}.import-row .small{margin:6px 0}.import-row details{font-size:12px}.import-row summary{cursor:pointer;color:var(--brand);font-weight:650}.import-warnings{margin:5px 0 8px;padding-left:18px;color:#9c6014;font-size:12px;line-height:1.5}.import-preview{max-height:310px;overflow:auto;margin-top:8px;padding:12px;border-radius:8px;background:var(--surface-2);font-size:13px;line-height:1.65}.import-preview p{margin:0 0 8px}.import-preview img.rfx{display:inline-block;max-height:1.7em;max-width:100%;vertical-align:middle}.import-preview img.rfig{display:block;max-width:100%;max-height:180px;width:auto;height:auto;margin:8px auto}.import-preview h4{margin:12px 0 7px;border-top:1px solid var(--line);padding-top:10px}
.import-summary-reopen{margin:0 0 16px}.import-summary-dialog{width:min(600px,calc(100vw - 24px));max-width:600px;max-height:min(760px,calc(100dvh - 24px));padding:0;border:1px solid #d7e1f2;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(18,37,78,.22)}.import-summary-dialog::backdrop{background:rgba(15,32,60,.55)}.import-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 12px;border-bottom:1px solid var(--line-2)}.import-summary-head small{display:block;color:var(--brand);font-size:10px;font-weight:800;letter-spacing:.12em}.import-summary-head h2{margin:3px 0 0;font-size:17px;line-height:1.4;overflow-wrap:anywhere}.import-summary-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink-2)}.import-summary-body{max-height:calc(min(760px,100dvh - 24px) - 146px);overflow:auto;padding:16px 22px}.import-summary-total{margin:0 0 8px;font-size:14px}.import-summary-total strong{font-size:23px;color:var(--brand)}.import-summary-note{margin:0 0 14px;color:var(--ink-2);font-size:11.5px;line-height:1.5}.import-summary-commit{margin:0 0 9px;color:#18543f;font-size:12px;font-weight:700}.import-summary-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.import-summary-table{width:100%;border-collapse:collapse;text-align:center;font-size:12px;white-space:nowrap}.import-summary-table th,.import-summary-table td{padding:8px 7px;border-bottom:1px solid var(--line-2)}.import-summary-table thead{background:#f2f6fd;color:var(--ink-2);font-size:11px}.import-summary-table tbody tr:last-child th,.import-summary-table tbody tr:last-child td{border-bottom:0}.import-summary-table tbody th{text-align:left;font-weight:650}.import-summary-table .has-missing{color:#936016;font-weight:750}.import-summary-table .has-unknown{color:#b42318;font-weight:750}.import-summary-issues{border-bottom:1px solid var(--line-2);padding:9px 1px;font-size:12px}.import-summary-issues summary{cursor:pointer;color:var(--brand);font-weight:700}.import-summary-issues ul{margin:8px 0 0;padding-left:19px;color:var(--ink-2);line-height:1.6}.import-summary-issues li+li{margin-top:4px}.import-summary-actions{display:flex;justify-content:flex-end;padding:12px 22px 18px;border-top:1px solid var(--line-2)}
@media(max-width:420px){.import-summary-head{padding:16px 15px 10px}.import-summary-body{padding:13px 15px}.import-summary-table{font-size:11px}.import-summary-table th,.import-summary-table td{padding:7px 4px}.import-summary-actions{padding:10px 15px 15px}}
@media(max-width:650px){.grade-picker ion-select{min-width:94px;max-width:108px}.image-viewer{--width:calc(100vw - 16px);--max-height:calc(100dvh - 16px)}}
@media(max-width:360px){.grade-picker ion-select{min-width:82px;max-width:92px;font-size:11px}}
@media(max-width:360px){.browse-arrows button,.browse-arrows button:first-child,.browse-arrows button:last-child{width:44px;height:44px}}

.category-dock{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;margin:0 0 18px;border-bottom:1px solid #e1e8f3}
.category-dock .browse-tabs{flex:0 1 auto;min-width:0;gap:2px;align-self:stretch}
.category-dock .browse-tabs ion-segment-button{min-height:48px;min-width:76px;margin-right:1px;font-size:13px}
.category-trigger{display:inline-flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;max-width:200px;min-height:38px;margin-bottom:5px;padding:0 10px;border:1px solid #dce6f6;border-radius:11px;background:#fff;color:#31558c;font-size:12px;font-weight:650;white-space:nowrap}
.category-trigger:hover,.category-trigger.has-selection{border-color:#bad0fb;background:#f6f9ff;color:var(--brand)}
.category-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.category-trigger ion-icon:first-child{width:16px;height:16px;color:#4974ca}
.category-trigger ion-icon:last-child{width:13px;height:13px;margin-left:2px;color:#8ba4ce}
.category-picker{width:min(560px,calc(100vw - 28px));max-height:min(680px,calc(100dvh - 40px));padding:0;border:1px solid #dce6f6;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(23,43,85,.22)}
.category-picker[open]{display:flex;flex-direction:column}
.category-picker::backdrop{background:rgba(18,32,58,.42);backdrop-filter:blur(2px)}
.category-picker-handle{display:none}
.category-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:22px 24px 14px}
.category-picker-head small{display:block;color:#7f91ad;font-size:11px;letter-spacing:.08em}
.category-picker-head h2{margin:2px 0 0;color:#17243c;font-size:21px;line-height:1.4}
.category-picker-close{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid #e0e8f4;border-radius:10px;background:#f7f9fd;color:#526988}
.category-picker-close ion-icon{width:20px;height:20px}
.category-picker-search{display:flex;align-items:center;gap:9px;flex:none;height:43px;margin:0 24px 14px;padding:0 12px;border:1px solid #dce5f2;border-radius:11px;background:#f8faff;color:#7691c4}
.category-picker-search:focus-within{border-color:#7da4f5;box-shadow:0 0 0 3px rgba(61,109,221,.12)}
.category-picker-search ion-icon{width:17px;height:17px}
.category-picker-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px}
.category-picker-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 24px;scrollbar-width:thin}
.category-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.category-picker-group{grid-column:1/-1;margin:12px 2px 2px;color:var(--muted,#8290a4);font-size:12px;font-weight:700;letter-spacing:.04em}
.category-option{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:9px 11px;border:1px solid #e0e8f4;border-radius:12px;background:#fff;color:#243550;text-align:left;transition:border-color .15s,background .15s}
.category-option:hover{border-color:#a9c3f9;background:#f8fbff}
.category-option.active{border-color:#7ea4f6;background:#f2f7ff;box-shadow:inset 0 0 0 1px #bdd2fb}
.category-option[hidden],.category-picker-empty[hidden]{display:none}
.category-option-all{grid-column:1/-1}
.category-grade-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 2px 1px;color:#314a6b;font-size:13px}
.category-grade-heading strong{font-weight:700}
.category-grade-heading span{color:#27784d;font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}
.category-grade-heading[hidden]{display:none}
.category-option-mark{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:9px;background:#eff4fd;color:#3765b8;font-family:Georgia,serif;font-size:22px;line-height:1}
.category-option-mark ion-icon{width:18px;height:18px}
.category-option.active .category-option-mark{background:#dceaff;color:#1d4ed8}
.category-option-copy{display:block;min-width:0;flex:1}
.category-option-copy strong,.category-option-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-option-copy strong{font-size:12.5px;line-height:1.35}
.category-option-copy small{margin-top:3px;color:#8090a7;font-size:10.5px;line-height:1.2}
.category-option-copy .category-option-count{display:inline-block;width:max-content;max-width:100%;margin-top:5px;padding:3px 7px;border:1px solid #d3eadd;border-radius:999px;background:#eaf8ef;color:#27784d;font-weight:650;font-variant-numeric:tabular-nums}
.category-option>ion-icon:last-child{width:17px;height:17px;color:var(--brand)}
.category-picker-empty{margin:15px 2px 3px;color:#8290a4;font-size:12px;text-align:center}
body:has(.category-picker[open]){overflow:hidden}
@media(max-width:650px){
  .category-dock{min-height:46px;margin-bottom:14px;gap:4px}
  .category-dock .browse-tabs ion-segment-button{min-width:64px;min-height:45px;font-size:12.5px}
  .category-trigger{max-width:150px;min-height:35px;margin-bottom:4px;padding:0 8px;font-size:11.5px}
  .category-picker{inset:auto 0 0;width:100%;max-width:none;max-height:min(74dvh,690px);margin:0;border:0;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .category-picker-handle{display:block;flex:none;width:36px;height:4px;margin:10px auto 0;border-radius:99px;background:#c8d5e9}
  .category-picker-head{padding:13px 17px 13px}
  .category-picker-head h2{font-size:19px}
  .category-picker-search{margin:0 17px 12px}
  .category-picker-scroll{padding:0 17px 18px}
  .category-picker-grid{gap:8px}
  .category-option{min-height:60px;padding:8px;gap:8px}
  .category-option-mark{width:32px;height:32px;font-size:20px}
  .category-option-copy strong{font-size:12px}
  .category-option-copy small{font-size:10px}
}
@media(max-width:360px){.category-dock .browse-tabs ion-segment-button{min-width:59px;font-size:12px}.category-trigger{max-width:132px}.category-option-mark{width:29px;height:29px}}
.top-inner>.account-button{margin-left:auto}
.category-dock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;min-height:54px;margin-bottom:15px;border-bottom:0}
.category-trigger{width:100%;max-width:none;min-height:54px;height:54px;margin:0;padding:7px 11px;gap:9px;border-radius:12px;text-align:left}
.category-trigger-copy{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;overflow:hidden}
.category-trigger-copy small,.category-trigger-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25}
.category-trigger-copy small{color:#7e8da6;font-size:10px;font-weight:600}
.category-trigger-copy strong{margin-top:3px;color:#263d66;font-size:12.5px;font-weight:700}
.category-trigger.has-selection .category-trigger-copy strong{color:var(--brand)}
.category-trigger>ion-icon:last-child{width:14px;height:14px;margin-left:auto}
@media(max-width:650px){
  .category-dock{min-height:48px;gap:6px;margin-bottom:13px}
  .category-trigger{min-height:48px;height:48px;padding:5px 8px;gap:4px}
  .category-trigger>ion-icon:first-child{display:none}
  .category-trigger-copy strong{font-size:12px}
  .category-trigger>ion-icon:last-child{width:12px;height:12px}
}
@media(max-width:360px){.category-dock{gap:5px}.category-trigger{padding:5px 6px}.category-trigger-copy strong{font-size:11.5px}}

/* The account avatar is the single entry point; the browse filters live in the page. */
.workspace{margin-left:0}
.top .top-brand{display:flex;flex-direction:row;align-items:center;gap:9px;min-width:0;line-height:1.15;color:var(--ink)}
.top-brand-logo{display:block;flex:none;width:38px;height:38px;object-fit:contain;border-radius:9px}
.top-brand-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.top .top-brand b{font-family:BrandSerif,'Songti SC','SimSun',serif;font-size:16px;font-weight:700;letter-spacing:.035em;white-space:nowrap}
.top .top-brand small{margin-top:3px;color:var(--ink-3);font-size:10.5px;font-weight:550;letter-spacing:.045em}
.top .top-back{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #dbe6f8;border-radius:12px;background:#eef4ff;color:var(--brand)}
.top-back ion-icon{width:20px;height:20px}
.top .top-detail-title{display:none}
.top.top-detail .top-brand,.top.top-auth .top-brand{display:none}
.top.top-detail .top-detail-title,.top.top-auth .top-detail-title{display:block}
.top .crumb{margin-left:auto}
.find-box .search{margin-top:0}
.account-admin-link{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;margin-bottom:16px;text-align:left;color:#2247a0;border-color:#cbdcfb;background:#f5f8ff}
.account-admin-link ion-icon{width:18px;height:18px}
.account-admin-link ion-icon:last-child{margin-left:auto;width:16px;height:16px}
@media(max-width:650px){
  main{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  .top-inner{gap:10px}
  .top .top-back{width:40px;height:40px}
  .top .crumb{display:none}
  .find-box .search{margin-top:0}
}

/* Personal learning actions and profile */
.detail-actions{display:flex;align-items:center;gap:6px;flex:none}
.detail-save{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:40px;padding:6px 9px;border:1px solid #dce6f5;border-radius:10px;background:#f8faff;color:#45618e;font-size:12px;font-weight:700;white-space:nowrap}
.detail-save.active{border-color:#abc6ff;background:#eaf2ff;color:var(--brand)}
.detail-save ion-icon{width:17px;height:17px}
@media(max-width:360px){.detail-heading{gap:5px}.detail-overline{font-size:10px;letter-spacing:0;white-space:nowrap}.detail-actions{gap:4px}.detail-save{gap:3px;padding:6px 7px;font-size:11px}.detail-save ion-icon{width:15px;height:15px}}
.profile-head{overflow:hidden;padding:25px;border:1px solid #c9dcff;border-radius:20px;background:radial-gradient(circle at 95% 0%,rgba(250,205,106,.27),transparent 35%),linear-gradient(135deg,#eaf2ff,#f9fbff 73%);box-shadow:0 8px 24px -20px #2757b9}
.profile-eyebrow{color:#5273af;font:700 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.16em}
.profile-head h1{margin:0 0 3px;font-size:26px;line-height:1.3;letter-spacing:-.03em}
.profile-head p{margin:0;color:#6e82a3;font-size:12px}
.profile-identity{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.profile-membership{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:7px 12px;border:1px solid var(--brand-line);border-radius:999px;background:var(--surface);color:var(--brand);font-size:12px;font-weight:700;text-align:left}
.profile-membership ion-icon{flex:none;width:15px;height:15px}
.profile-section{max-width:820px;margin-top:22px}
.profile-section h2{margin:0 0 12px;font-size:16px;line-height:1.4;color:var(--ink)}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.profile-stats button{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-height:80px;padding:12px 15px;border:1px solid #dbe6fb;border-radius:13px;background:rgba(255,255,255,.86);color:#203b70;text-align:left}
.profile-stats .profile-stat-top{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:32px;margin:0;color:inherit}
.profile-stat-top ion-icon{font-size:23px;color:#3468d9}
.profile-stats strong{font:750 25px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace}
.profile-stats button>span:last-child{margin-top:4px;color:#7184a1;font-size:11px;font-weight:700}
.profile-links{overflow:hidden;border:1px solid #e0e8f4;border-radius:16px;background:#fff}
.profile-links button{display:flex;align-items:center;gap:13px;width:100%;min-height:68px;padding:12px 16px;border:0;border-bottom:1px solid #edf1f7;background:transparent;color:#2a477d;text-align:left}
.profile-links button:last-child{border-bottom:0}
.profile-links button:hover{background:#f7faff}
.profile-links button>ion-icon:first-child{flex:none;width:21px;height:21px;color:#3160c4}
.profile-links button>ion-icon:last-child{flex:none;width:16px;height:16px;margin-left:auto;color:#9cabc1}
.profile-links button span{min-width:0;font-size:14px;font-weight:700;line-height:1.35}
.profile-links button small{display:block;margin-top:4px;color:#8391a7;font-size:10.5px;font-weight:500}
.profile-links.profile-paper-link{display:block}
.profile-paper-link button,.profile-paper-link button:nth-child(odd){border:0}
.my-list-head{margin-bottom:18px}
.my-list-head .page-desc{margin-bottom:0}
.my-browse-link{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin-top:15px}
.my-browse-link ion-icon{width:16px;height:16px}
.achievement-list{display:grid;gap:10px}
.achievement-card{display:flex;align-items:center;gap:13px;min-height:82px;padding:16px;border:1px solid #efdfb5;border-radius:14px;background:linear-gradient(115deg,#fffaf0,#fff);box-shadow:0 2px 8px rgba(92,70,29,.035)}
.achievement-card>ion-icon{flex:none;width:30px;height:30px;color:#bc861e}
.achievement-card strong,.achievement-card small{display:block}
.achievement-card strong{font-size:15px;color:#423516}
.achievement-card small{margin-top:5px;font-size:11px;color:#9b854f}
.achievement-empty{padding:34px 23px;border:1px dashed #cfdbef;border-radius:16px;background:#fff;text-align:center}
.achievement-empty>ion-icon{width:34px;height:34px;color:#d8a842}
.achievement-empty h2{margin:10px 0 5px;font-size:17px}
.achievement-empty p{margin:0 auto 17px;max-width:330px;font-size:12px;color:#77869e}
.settings-logout{width:100%;min-height:44px;margin-top:10px}
@media(max-width:650px){
  .profile-head{padding:22px 18px 18px}
}

/* A compact invitation at the top, with a scannable code and a full-resolution poster. */
.top-share{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:6px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#244d9d;font-size:12px;font-weight:700;line-height:1;box-shadow:none}
.top-share:hover{border-color:#9cb9ed;background:#f3f7ff}
.top-share ion-icon{width:17px;height:17px}
.share-dialog{width:min(420px,calc(100vw - 24px));max-width:420px;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;border:0;border-radius:23px;background:#f8faff;color:#17243f;box-shadow:0 24px 80px rgba(8,27,62,.3)}
.share-dialog::backdrop{background:rgba(12,25,49,.67);backdrop-filter:blur(3px)}
.share-sheet-head{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:70px;padding:15px 21px;overflow:hidden;background:#17243f;color:#fff;font-size:14px;font-weight:750;letter-spacing:.025em}
.share-sheet-head::after{content:"";position:absolute;right:59px;top:-60px;width:150px;height:150px;border:1px solid rgba(191,209,240,.2);border-radius:50%;pointer-events:none}
.share-sheet-head span{position:relative;z-index:1}
.share-sheet-head span::before{content:"";display:inline-block;width:7px;height:7px;margin-right:9px;border-radius:50%;background:#f4ad2d;vertical-align:2px}
.share-sheet-head button{position:relative;z-index:1;display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:11px;background:rgba(255,255,255,.08);color:#fff}
.share-sheet-head button ion-icon{width:21px;height:21px}
.share-sheet-body{padding:22px 23px 24px;text-align:center}
.share-brand{display:flex;align-items:center;justify-content:center;gap:10px;text-align:left}
.share-brand img{display:block;flex:none;border-radius:11px}
.share-brand strong,.share-brand small{display:block;line-height:1.3}
.share-brand strong{font-size:19px;letter-spacing:.015em}
.share-brand small{margin-top:3px;color:#7a8aa4;font-size:10px;font-weight:600}
.share-qr-frame{position:relative;display:grid;place-items:center;width:fit-content;margin:19px auto 11px;padding:13px;border:1px solid #dce6f6;border-radius:22px;background:#fff;box-shadow:0 12px 30px -21px rgba(24,57,114,.42)}
.share-qr-frame::after{content:"";position:absolute;inset:7px;border:1px solid #f1f5fc;border-radius:17px;pointer-events:none}
.share-qr-frame img{display:block;width:min(236px,calc(100vw - 106px));height:auto;aspect-ratio:1;image-rendering:pixelated}
.share-caption{margin:0;color:#1c3157;font-size:15px;font-weight:750}
.share-note{margin:3px 0 17px;color:#7b8aa0;font-size:11px}
.share-actions{display:grid;grid-template-columns:1.25fr 1fr;gap:8px}
.share-actions>*{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:45px;padding:8px 10px;border-radius:11px;font-size:12.5px;font-weight:750;line-height:1.2;white-space:nowrap}
.share-actions ion-icon{width:17px;height:17px}
.share-save{border:1px solid #214db2;background:#214db2;color:#fff;box-shadow:0 6px 14px -10px #214db2}
.share-save:hover{background:#173d96;color:#fff}
.share-copy{border:1px solid #cedcf4;background:#fff;color:#31599e}
.share-copy:hover{background:#f0f5ff}
.share-open-image{display:inline-block;margin-top:13px;color:#7185a5;font-size:10.5px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.top-share{margin-left:auto;min-width:68px;min-height:40px;padding:6px 10px}.share-sheet-body{padding:19px 18px 22px}.share-dialog{border-radius:20px}}

/* Keep primary destinations within thumb reach. */
.workspace main{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
.bottom{position:fixed;z-index:24;left:50%;right:auto;bottom:calc(14px + env(safe-area-inset-bottom));inset-block-start:auto;display:flex;align-items:center;gap:4px;width:min(306px,calc(100vw - 32px));min-height:60px;padding:5px;border:1px solid var(--line);border-radius:19px;background:rgba(255,255,255,.97);box-shadow:0 8px 24px rgba(24,48,91,.1);backdrop-filter:blur(16px);transform:translateX(-50%)}
.bottom button{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:0 12px;border:0;border-radius:14px;background:transparent;color:#73839c;font-size:13px;font-weight:700;line-height:1}
.bottom button.active{background:var(--brand-soft);color:var(--brand)}
.bottom button:hover:not(.active){background:#f4f7fd;color:#355b9e}
.bottom button ion-icon{width:19px;height:19px}
.nav-library-copy{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.nav-library-count{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;background:var(--brand-soft);color:#4264a2;font-size:10px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.shell[data-view="detail"] .bottom,.shell[data-auth-guest] .bottom{display:none}
@media(max-width:650px){
  .workspace main{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
  .bottom{left:0;right:0;bottom:0;width:100%;min-height:62px;gap:2px;padding:5px max(12px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right));border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;box-shadow:none;transform:none;backdrop-filter:none}
  .bottom button{min-height:50px;padding:0 6px;border-radius:11px;font-size:12px}
  .bottom button ion-icon{width:18px;height:18px}
  .shell[data-view="detail"] main,.shell[data-auth-guest] main{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  .bottom button{gap:4px;padding:0 3px;font-size:11px}
  .nav-library-copy{gap:3px}
  .nav-library-count{padding:2px 4px;font-size:9px}
}

/* Text-first question cards with a bounded preview of the first diagram. */
.results{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.compact-problem-card{min-width:0;min-height:165px;padding:13px;gap:0;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 8px rgba(24,48,91,.035)}
.compact-problem-card::before{display:none}
.compact-problem-card:hover{border-color:#a9c3f6}
.compact-card-headline{display:block;position:relative;min-width:0;width:100%}
.has-cover .compact-card-headline{min-height:82px;padding-right:116px}
.compact-card-cover{position:absolute;top:0;right:0;display:grid;place-items:center;width:104px;height:82px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}
.compact-card-cover img{display:block;width:100%;height:100%;object-fit:contain}
.compact-card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.compact-card-grade{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:5px;background:var(--brand-soft);color:#4868a6;padding:3px 6px;font-size:10px;font-weight:700;line-height:1.2}
.compact-card-title{display:block;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:15px;font-weight:700;line-height:1.35}
.compact-card-source{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-3);font-size:10.5px;line-height:1.4}
.compact-card-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:4.5em;max-height:4.5em;margin-top:10px;color:var(--ink-2);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.compact-card-video{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;width:max-content;max-width:100%;min-height:24px;margin-top:10px;padding:3px 8px 3px 6px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:linear-gradient(105deg,#1b4bd1 0%,#347cf0 58%,#55a6ed 100%);box-shadow:0 3px 9px rgba(33,91,209,.22);color:#fff;font-size:10px;font-weight:750;line-height:1;letter-spacing:.01em;white-space:nowrap}
.compact-card-video ion-icon{flex:none;width:14px;height:14px}
.compact-card-access{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;min-height:25px;margin-top:10px;padding:3px 8px;border:1px solid #d1ddef;border-radius:999px;background:#eff4fb;color:#405a7b;font-size:10.5px;font-weight:700;line-height:1;white-space:nowrap}
.compact-card-access ion-icon{width:13px;height:13px}
.compact-problem-card.detail-unavailable:hover{border-color:#cbd5e1}
.personal-card{display:flex;flex-direction:column;min-width:0}
.personal-card .compact-problem-card{width:100%;flex:1}
.personal-card-remove{display:inline-flex;align-items:center;justify-content:center;gap:5px;align-self:flex-end;min-height:34px;margin-top:4px;padding:5px 8px;border:0;border-radius:8px;background:transparent;color:#536b91;font-size:11px;font-weight:650}
.personal-card-remove:hover{background:#eaf1ff;color:var(--brand)}
.personal-card-remove:focus-visible{outline:3px solid #94b6ff;outline-offset:1px}
.personal-card-remove ion-icon{width:14px;height:14px}
@media(max-width:650px){
  .results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .compact-problem-card{min-height:160px;padding:11px 10px}
  .has-cover .compact-card-headline{min-height:58px;padding-right:66px}
  .compact-card-cover{width:58px;height:58px;border-radius:7px}
  .has-cover .compact-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}
  .compact-card-title{margin-top:8px;font-size:12.5px}
  .compact-card-preview{margin-top:6px;font-size:10.5px;line-height:1.45;-webkit-line-clamp:4;min-height:5.8em;max-height:5.8em}
  .compact-card-video{min-height:22px;margin-top:7px;padding:2px 7px 2px 5px;font-size:9px}
  .compact-card-video ion-icon{width:13px;height:13px}
  .compact-card-access{min-height:24px;margin-top:7px;padding:3px 7px;font-size:10px}
}

/* Let the question and its diagram occupy most of a phone's first screen. */
@media(max-width:650px){
  .shell[data-view="detail"] main{padding:10px 12px calc(24px + env(safe-area-inset-bottom))}
  .shell[data-view="detail"] .detail{padding:14px 14px 18px}
  .detail-heading{gap:8px}
  .detail-overline{font-size:10px;letter-spacing:.04em}
  .detail-save{min-height:34px;padding:5px 8px;font-size:11px}
  .detail-save ion-icon{width:15px;height:15px}
  .detail h1{margin:4px 0 8px;font-size:18px;line-height:1.3}
  .detail-meta{gap:5px;margin-bottom:0}
  .detail-meta span{padding:3px 6px;font-size:10.5px;line-height:1.35}
  .detail .content-section{margin-top:12px;padding-top:12px}
  .detail .content-heading{margin-bottom:8px}
  .detail .content-heading h2{font-size:14px}
  .detail .section-number{font-size:9px}
  .detail .prose{font-size:14.5px;line-height:1.65}
  .detail .prose p{margin-bottom:8px}
  .detail .prose img.rfig{margin:8px auto}
  .detail .problem-figure{margin:8px auto 12px}
}

/* A single compact search and classification row for the question bank. */
.browse-bar{display:grid;grid-template-columns:48px 88px minmax(0,1fr);align-items:stretch;gap:8px;margin:0 0 15px}
.browse-bar>button{min-width:0;min-height:50px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#31558c;box-shadow:none}
.browse-bar>button:focus-visible,.browse-picker-tabs button:focus-visible,.browse-search-form button:focus-visible{outline:3px solid #94b6ff;outline-offset:2px}
.browse-search-toggle{display:grid;place-items:center;padding:0}
.browse-search-toggle ion-icon{width:21px;height:21px;color:#2856bb}
.browse-search-toggle.has-query{border-color:var(--brand-line);background:var(--brand-soft)}
.browse-grade-trigger{display:flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;font-size:12px;font-weight:750;white-space:nowrap}
.browse-grade-trigger ion-icon{width:13px;height:13px;color:#6d8ac0}
.browse-category-trigger{display:flex;align-items:center;gap:6px;padding:5px 9px;text-align:left}
.browse-category-trigger>ion-icon:first-child{flex:none;width:16px;height:16px;color:#3971d9}
.browse-category-trigger>ion-icon:last-child{flex:none;width:13px;height:13px;margin-left:auto;color:#7793c3}
.browse-category-trigger span{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.browse-category-trigger small,.browse-category-trigger strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}
.browse-category-trigger small{color:#7e8da6;font-size:10px;font-weight:600}
.browse-category-trigger:not(.has-selection) small{color:#31558c;font-size:12px;font-weight:750;line-height:1.6}
.browse-category-trigger strong{margin-top:2px;color:#284778;font-size:12px;font-weight:750}
.browse-category-trigger.has-selection{border-color:var(--brand-line);background:#f8faff}
.browse-bar.is-searching{display:block}
.browse-search-form{display:flex;align-items:center;gap:6px;min-height:50px;padding:4px;border:1px solid #8eb1f5;border-radius:13px;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,.09)}
.browse-search-form input{flex:1;min-width:0;height:40px;padding:0 10px;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px}
.browse-search-form button{flex:none;min-height:40px;padding:0 13px;border:0;border-radius:9px;background:var(--brand);color:#fff;font-size:12px;font-weight:700}
.browse-search-form button[data-close-search]{display:grid;place-items:center;width:40px;padding:0;background:#f0f4fb;color:#5271a8}
.browse-search-form button ion-icon{width:18px;height:18px}
.browse-picker-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 24px 14px;padding:4px;border-radius:12px;background:#f0f4fb}
.browse-picker-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:0;border-radius:9px;background:transparent;color:#7183a1;font-size:13px;font-weight:750;white-space:nowrap}
.browse-picker-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 1px 5px rgba(30,58,115,.11)}
.browse-picker-count{flex:none;padding:3px 6px;border:1px solid #d3eadd;border-radius:999px;background:#eaf8ef;color:#27784d;font-size:10px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.category-picker-pane[hidden]{display:none}
@media(max-width:650px){
  .browse-bar{grid-template-columns:44px 75px minmax(0,1fr);gap:7px;margin-bottom:13px}
  .browse-bar>button{min-height:48px}
  .browse-picker-tabs{margin:0 17px 12px}
}
@media(max-width:360px){
  .browse-bar{grid-template-columns:42px 66px minmax(0,1fr);gap:5px}
  .browse-category-trigger{gap:4px;padding:5px 7px}
  .browse-category-trigger>ion-icon:first-child{display:none}
}

/* Shared maximum display size for question and answer diagrams; tap to zoom. */
.detail{--detail-figure-max-width:280px;--detail-figure-max-height:320px}
.detail .prose img[data-zoom]:not(.rfx):not(.qr),
.detail .problem-figure img{
  display:block;width:auto;height:auto;
  max-width:min(100%,var(--detail-figure-max-width));
  max-height:var(--detail-figure-max-height);
  object-fit:contain;margin-left:auto;margin-right:auto;
}
@media(max-width:650px){.detail{--detail-figure-max-width:250px;--detail-figure-max-height:260px}}
@media(max-width:430px){.detail{--detail-figure-max-width:240px;--detail-figure-max-height:250px}}
@media(max-width:410px){.detail{--detail-figure-max-width:225px;--detail-figure-max-height:235px}}
@media(max-width:375px){.detail{--detail-figure-max-width:210px;--detail-figure-max-height:220px}}
@media(max-width:340px){.detail{--detail-figure-max-width:190px;--detail-figure-max-height:205px}}

/* Desktop reading workspace. Keep the phone navigation and density below 900px. */
.desktop-nav-brand,.desktop-nav-caption,.desktop-nav-foot,.desktop-admin-nav,.desktop-page-intro,.detail-toc{display:none}
@media(min-width:651px) and (max-width:899px){
  .workspace main{padding:82px 24px 55px}
  .top-inner{min-height:62px;padding:10px 24px}
  .top .top-back{display:none}
  .top.top-auth .top-back{display:grid}
  .top.top-detail .top-brand{display:flex}
  .top.top-detail .top-detail-title,.top.top-auth .top-detail-title{display:none}
  .bottom{display:flex;align-items:center;justify-content:center;gap:8px;top:62px;bottom:auto;left:0;right:0;width:100%;min-height:54px;padding:5px 24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:rgba(255,255,255,.97);box-shadow:none;transform:none;backdrop-filter:blur(14px)}
  .top .crumb{display:none}
  .top .top-share{margin-left:auto}
  .shell[data-view="detail"] .bottom{display:flex}
  .shell[data-auth-guest] .bottom{display:none}
  .shell[data-auth-guest] .workspace main{padding-top:28px}
  .bottom button{flex:none;min-width:140px;min-height:42px;padding:0 17px}
  .results{gap:14px}
  .compact-problem-card{min-height:180px;padding:16px 18px}
  .compact-card-title{font-size:15px}
  .compact-card-preview{font-size:12px;line-height:1.6}
  .detail-layout{max-width:760px;margin:0 auto}
  .detail{padding:27px 30px}
  .detail .prose{font-size:16px;line-height:1.85}
  .profile-head,.profile-links,.profile-section,.achievement-list,.achievement-empty{max-width:760px}
  .admin-list .list-item{min-width:0}
  .admin-list .list-item>*{min-width:0}
}
@media(min-width:900px){
  html{scroll-behavior:smooth}
  .shell{--desktop-rail:222px;background:#f5f7fb}
  .workspace{margin-left:var(--desktop-rail);min-width:0}
  .bottom{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;top:0;bottom:0;left:0;right:auto;width:var(--desktop-rail);min-height:100vh;padding:0 12px 16px;border:0;border-right:1px solid var(--line);border-radius:0;background:#fff;box-shadow:none;transform:none;backdrop-filter:none}
  .shell[data-view="detail"] .bottom,.shell[data-auth-guest] .bottom{display:flex}
  .desktop-nav-brand{display:flex;align-items:center;gap:10px;min-height:91px;padding:16px 9px 18px;margin-bottom:17px;border-bottom:1px solid #edf1f6;color:#172847}
  .desktop-nav-brand img{flex:none;width:42px;height:42px;border-radius:11px}
  .desktop-nav-brand b,.desktop-nav-brand small{display:block;white-space:nowrap;line-height:1.3}
  .desktop-nav-brand b{font-family:BrandSerif,'Songti SC','SimSun',serif;font-size:17px;font-weight:700;letter-spacing:.035em}
  .desktop-nav-brand small{margin-top:3px;color:#8191a9;font-size:10.5px}
  .desktop-nav-caption{display:block;padding:0 12px 7px;color:#9aa8bc;font-size:10px;font-weight:750;letter-spacing:.16em}
  .bottom button,.bottom .desktop-admin-nav{display:flex;flex:none;justify-content:flex-start;gap:11px;min-height:45px;padding:0 13px;border-radius:10px;color:#667895;font-size:13.5px;font-weight:700}
  .bottom button ion-icon{width:19px;height:19px}
  .bottom button.active{background:var(--brand-soft);color:var(--brand)}
  .bottom .desktop-admin-nav{display:flex}
  .shell[data-view="admin"] .bottom [data-nav="account"]{background:transparent;color:#667895}
  .desktop-nav-foot{display:flex;flex-direction:column;gap:3px;margin-top:auto;padding:18px 10px 3px;border-top:1px solid #edf1f6;color:#6c7d96;font-size:11px;line-height:1.5}
  .desktop-nav-foot small{color:#a0aec1;font-size:10.5px}
  .top{position:sticky;background:rgba(255,255,255,.97);border-bottom-color:var(--line);box-shadow:none}
  .top-inner{max-width:1310px;min-height:63px;padding:11px 34px}
  .top .top-brand,.top .top-detail-title,.top .top-back,.top.top-detail .top-detail-title,.top.top-auth .top-detail-title{display:none}
  .top .crumb{margin-left:0;font-size:12px}
  .top .top-share{margin-left:auto;min-height:36px}
  .workspace main{max-width:1310px;padding:29px 34px 60px}
  .site-footer{padding:15px 34px;font-size:11px}
  .desktop-page-intro{display:block;margin:1px 0 27px}
  .desktop-page-intro>span{color:#4f70a9;font:700 10px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em}
  .desktop-page-intro h1{margin:7px 0 3px;color:#142b52;font-size:26px;line-height:1.35;letter-spacing:-.04em}
  .desktop-page-intro p{margin:0;color:#7d8da6;font-size:12.5px}
  .browse-bar{grid-template-columns:210px 112px minmax(230px,360px);justify-content:start;gap:10px;margin-bottom:24px}
  .browse-bar>button{min-height:47px;background:#fff}
  .browse-search-toggle{display:flex;align-items:center;justify-content:flex-start;gap:11px;padding:0 14px}
  .browse-search-toggle::after{content:"搜索题目、知识点";color:#8695ac;font-size:12px;font-weight:600}
  .browse-search-toggle.has-query::after{content:"修改搜索关键词";color:#315ba9}
  .browse-grade-trigger,.browse-category-trigger:not(.has-selection) small{font-size:13px}
  .browse-category-trigger{padding:6px 13px}
  .browse-results-note{margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #dfe7f2}
  .browse-results-note span{font-size:17px;color:#1e3356}
  .browse-results-note small{font-size:12px}
  .results{gap:15px}
  .compact-problem-card{min-height:195px;padding:18px 19px;border-radius:14px;box-shadow:0 2px 8px rgba(24,48,91,.035)}
  .compact-card-grade{font-size:11px;padding:4px 8px}
  .compact-card-title{margin-top:14px;font-size:16px}
  .compact-card-source{margin-top:6px;font-size:11.5px}
  .compact-card-preview{margin-top:13px;font-size:12.5px;line-height:1.65;-webkit-line-clamp:4;min-height:6.6em;max-height:6.6em}
  .pager{margin:30px 0 0}
  .detail-layout{max-width:1120px;margin:0 auto}
  .detail-primary{min-width:0;max-width:820px}
  .detail-primary .back{display:inline-flex;align-items:center;gap:7px;margin-bottom:7px;color:#4f6fa8;font-size:12px}
  .detail-primary .back ion-icon{width:16px;height:16px}
  .detail{padding:30px 36px 42px;border-color:#dfe7f1;border-radius:17px;box-shadow:0 8px 28px rgba(26,50,91,.045);--detail-figure-max-width:350px;--detail-figure-max-height:360px}
  .detail h1{margin:7px 0 14px;color:#172847;font:750 25px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;letter-spacing:-.025em}
  .detail-meta{margin-bottom:24px}
  .detail-meta span{font-size:11.5px}
  .detail .content-section{scroll-margin-top:89px;margin-top:27px;padding-top:24px}
  .detail .content-heading h2{font-size:17px}
  .detail .prose{font-size:16px;line-height:1.85}
  .detail .prose img.rfig{margin-top:18px;margin-bottom:18px}
  .detail .qr{max-width:168px}
  .profile-head,.profile-links,.profile-section,.my-list-head,.achievement-list,.achievement-empty,.shell[data-view="settings"] main>.panel,.settings-logout{max-width:820px}
  .profile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .profile-links button:nth-child(odd){border-right:1px solid #edf1f7}
  .profile-links button:nth-child(odd):last-child{border-right:0}
  .profile-links button{min-height:88px;padding:17px 20px}
  .auth-page{max-width:930px;margin:36px auto}
  .shell[data-view="admin"] main{max-width:1310px}
  .shell[data-view="admin"] .panel{min-width:0}
  .shell[data-view="admin"] .list-item{min-width:0}
  .shell[data-view="admin"] .list-item>*{min-width:0}
  .shell[data-view="admin"] .import-row-head{min-width:0}
  .shell[data-view="admin"] .import-row-head label{min-width:0;overflow-wrap:anywhere}
}
@media(min-width:1100px){
  .auth-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,1fr);align-items:stretch;gap:18px}
  .auth-intro{min-height:430px;padding:33px}
  .auth-intro h1{font-size:34px}
  .auth-intro p{max-width:280px;font-size:14px}
  .auth-graphic{right:12px;bottom:20px;width:220px;height:220px}
  .auth-content{margin-top:0;padding:12px 27px 25px}
}
@media(min-width:1260px){
  .results{grid-template-columns:repeat(3,minmax(0,1fr))}
  .detail-layout{display:grid;grid-template-columns:minmax(0,820px) 220px;align-items:start;gap:24px}
  .detail-toc{display:block;position:sticky;top:92px;margin-top:38px}
  .detail-toc-card{padding:20px;border:1px solid #e0e8f3;border-radius:15px;background:#fff;box-shadow:0 5px 20px rgba(26,50,91,.04)}
  .detail-toc-eyebrow{display:block;color:#7490bf;font:700 10px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em}
  .detail-toc-card>strong{display:block;margin:4px 0 13px;color:#1a3157;font-size:16px}
  .detail-toc-card button{display:flex;align-items:center;gap:11px;width:100%;min-height:41px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#4d6284;text-align:left;font-size:12px;font-weight:650}
  .detail-toc-card button:hover{background:#edf3ff;color:var(--brand)}
  .detail-toc-card button span{color:#8da4c9;font:700 10px ui-monospace,SFMono-Regular,Consolas,monospace}
  .detail-toc-card p{margin:14px 4px 0;padding-top:12px;border-top:1px solid #edf1f7;color:#95a2b5;font-size:10.5px;line-height:1.6}
}
@media(min-width:900px) and (max-width:1259px){
  .browse-bar{grid-template-columns:minmax(160px,1fr) 100px minmax(190px,1.5fr)}
  .results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-primary{margin:0 auto}
}

@media(min-width:651px) and (max-width:899px){
  .shell[data-view="home"] .workspace main,
  .shell[data-view="saved"] .workspace main,
  .shell[data-view="mastered"] .workspace main{padding-bottom:18px}
  .shell[data-view="home"] .pager,
  .shell[data-view="saved"] .pager,
  .shell[data-view="mastered"] .pager{margin-bottom:0}
}
@media(min-width:900px){
  .shell[data-view="home"] .workspace main,
  .shell[data-view="saved"] .workspace main,
  .shell[data-view="mastered"] .workspace main{padding-bottom:24px}
}

.detail .reveal-section{margin-top:18px;padding:0;border:1px solid #dce6f5;border-radius:12px;background:#fff;overflow:hidden;scroll-margin-top:89px}
.detail .reveal-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:11px 16px;border:0;background:#f8faff;color:#203653;text-align:left;cursor:pointer}
.detail .reveal-toggle:hover{background:#f1f5ff}
.detail .reveal-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.detail .reveal-toggle[aria-expanded="true"]{background:#f3f7ff}
.detail .reveal-toggle .section-number{flex:none;font-size:9px;color:#6984b6}
.detail .reveal-title{font-size:14px;font-weight:700;white-space:nowrap}
.detail .reveal-action{margin-left:auto;color:#5273ad;font-size:11px;white-space:nowrap}
.detail .reveal-toggle ion-icon{flex:none;width:16px;height:16px;color:#5273ad}
.detail .reveal-content[hidden]{display:none}
.detail .reveal-content{padding:16px;border-top:1px solid #e8eef8}
.detail .reveal-content .answer{margin:0}
.knowledge-list{display:grid;gap:10px}
.knowledge-item{padding:12px 14px;border:1px solid #e3ebf7;border-radius:9px;background:#fbfcff}
.knowledge-item strong{display:block;color:#244671;font-size:13px;line-height:1.5}
.knowledge-item p,.knowledge-empty{margin:5px 0 0;color:#667993;font-size:12px;line-height:1.65}
.knowledge-empty{margin:0}
.video-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:11px;background:#1d4ed8;color:#fff!important;font-size:14px;font-weight:700;text-decoration:none}.video-link:hover{background:#173fb1}.video-link ion-icon{font-size:19px}
.video-links{display:flex;flex-wrap:wrap;gap:9px}
.admin-problems{max-width:1160px;margin:16px auto 0}.admin-problems-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.admin-problems-head h2{margin:0;color:#172d50;font-size:20px}.admin-problems-head h2 small{color:#7990ad;font-size:12px;font-weight:650}.admin-problems-head p{margin:4px 0 0;color:#8292a8;font-size:12px}.admin-problems-head .primary{display:flex;align-items:center;gap:5px;flex:none;min-height:38px;padding:7px 13px}.admin-problems-head ion-icon{font-size:18px}.admin-browse-bar{max-width:720px;margin-bottom:10px}.admin-extra-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:17px}.admin-filter-select{display:flex;align-items:center;gap:5px;min-height:37px;padding:0 9px;border:1px solid #dce6f5;border-radius:9px;background:#fff;color:#6980a0;font-size:11px}.admin-filter-select select{max-width:150px;border:0;outline:0;background:transparent;color:#244876;font-size:12px;font-weight:700;appearance:none;cursor:pointer}.admin-filter-select ion-icon{width:13px;height:13px}.admin-clear-filters{border:0;background:transparent;color:#3564bd;font-size:12px;font-weight:700;cursor:pointer}.admin-problem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.admin-problem-grid>.empty{grid-column:1/-1}.admin-problem-card{display:flex;flex-direction:column;min-width:0;min-height:194px;padding:16px;border:1px solid #dae5f3;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(27,56,105,.045);text-align:left;cursor:pointer}.admin-problem-card:hover{border-color:#94b8f9;box-shadow:0 6px 18px rgba(27,73,159,.1)}.admin-problem-card:focus-visible{outline:3px solid #92b5fa;outline-offset:2px}.admin-problem-top,.admin-problem-main,.admin-problem-meta{display:flex;align-items:start;justify-content:space-between;gap:8px}.admin-problem-top{align-items:center;margin-bottom:10px}.admin-problem-status{padding:4px 7px;border-radius:6px;background:#eff4ff;color:#2c5bc2;font-size:10px;font-weight:700}.admin-problem-status.draft{background:#fff5e7;color:#a16a14}.admin-problem-status.archived{background:#f1f2f5;color:#6c7586}.admin-problem-main{min-height:37px}.admin-problem-main>span:first-child{min-width:0}.admin-problem-main strong{display:block;color:#1d2c44;font-size:14px;line-height:1.4}.admin-problem-main small{display:block;margin-top:4px;color:#8190a7;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-problem-cover{flex:none;display:grid;place-items:center;width:70px;height:60px;overflow:hidden;border:1px solid #e2e9f4;border-radius:9px;background:#fafcff}.admin-problem-cover img{max-width:100%;max-height:100%;object-fit:contain}.admin-problem-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:36px;margin:9px 0;color:#687a95;font-size:12px;line-height:1.55}.admin-problem-meta{justify-content:flex-start;align-items:center;flex-wrap:wrap;margin-top:auto;color:#53709b;font-size:10.5px;font-weight:700}.admin-problem-meta>span:first-child{padding:5px 7px;border-radius:6px;background:#eef3fb}.admin-problem-meta .compact-card-video{margin:0}
.admin-video-filter{display:inline-flex;align-items:center;gap:2px;min-height:37px;padding:3px;border:1px solid #dce6f5;border-radius:9px;background:#fff;white-space:nowrap}.admin-video-filter-label{display:inline-flex;align-items:center;gap:5px;padding:0 9px;color:#6980a0;font-size:11px;font-weight:650}.admin-video-filter-label ion-icon{font-size:15px}.admin-video-filter button{min-height:29px;padding:4px 9px;border:0;border-radius:6px;background:transparent;color:#667b99;font-size:11px;font-weight:650;cursor:pointer}.admin-video-filter button:hover{background:#f0f5ff;color:#244876}.admin-video-filter button.active{background:#eaf1ff;color:#2453bd;font-weight:750}.admin-video-filter button:focus-visible{outline:2px solid #2453bd;outline-offset:1px}
.problem-editor-dialog{width:min(920px,calc(100vw - 30px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #dce6f5;border-radius:19px;background:#fff;color:#1d2c44;box-shadow:0 25px 80px rgba(16,32,65,.27);overflow:hidden}.problem-editor-dialog::backdrop{background:rgba(16,32,65,.48);backdrop-filter:blur(2px)}.problem-editor-sheet{display:flex;flex-direction:column;gap:0;max-height:calc(100dvh - 32px)}.problem-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex:none;padding:18px 23px;border-bottom:1px solid #e6edf6}.problem-editor-head h2{margin:0;color:#19345d;font-size:21px}.problem-editor-head p{margin:3px 0 0;color:#8a9ab0;font-size:11px}.problem-editor-head button{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #dce6f5;border-radius:9px;background:#fff;color:#617897}.problem-editor-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:21px 23px 28px}.problem-editor-body .row{gap:12px}.problem-video-field{padding:13px;border:1px solid #d7e5ff;border-radius:11px;background:#f6f9ff;color:#2955a7}.problem-video-field ion-icon{vertical-align:middle;font-size:18px}.problem-video-field small{display:block;margin:5px 0 8px;color:#6b80a2}.problem-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:none;padding:12px 23px;border-top:1px solid #e6edf6;background:#fff}.problem-editor-actions button{min-height:38px;padding:8px 16px}
@media(max-width:650px){.admin-problems{margin-top:12px}.admin-problems-head h2{font-size:18px}.admin-problems-head p{display:none}.admin-problem-grid{grid-template-columns:1fr;gap:8px}.admin-problem-card{min-height:160px;padding:13px}.admin-problem-main strong{font-size:13px}.admin-problem-cover{width:66px;height:55px}.admin-problem-preview{font-size:12px}.admin-problem-meta{font-size:10px}.admin-problem-meta .compact-card-video{font-size:9px}.problem-editor-dialog{inset:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.problem-editor-sheet{height:100dvh;max-height:100dvh}.problem-editor-head{padding:14px 16px}.problem-editor-body{padding:15px 16px 26px}.problem-editor-body .row{flex-direction:column;align-items:stretch}.problem-editor-body .row .field{width:100%}.problem-editor-actions{padding:11px 16px calc(11px + env(safe-area-inset-bottom))}}
.paper-workspace{max-width:1120px;margin:auto}.paper-head h1{margin:0 0 6px;font-size:24px}.paper-head p{margin:0 0 18px;color:#6b7e9b;font-size:13px}.paper-search{max-width:620px;margin-bottom:22px}.paper-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.paper-layout h2{font-size:17px}.paper-layout h2 small{color:#7890ad;font-size:12px}.paper-candidates{display:grid;gap:9px}.paper-candidate,.paper-picked{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #dce6f5;border-radius:12px;background:#fff}.paper-candidate>div{min-width:0}.paper-candidate strong,.paper-picked span{font-size:14px;color:#1b3154}.paper-candidate small{display:block;margin-top:4px;color:#7487a4;font-size:11px}.paper-candidate p{margin:6px 0 0;color:#667991;font-size:12px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.paper-candidate button{flex:none}.paper-basket{position:sticky;top:76px;padding:16px;border:1px solid #dce6f5;border-radius:14px;background:#f9fbff}.paper-picked{padding:9px;margin-bottom:7px}.paper-picked span{flex:1;min-width:0}.paper-picked div{display:flex}.paper-picked button{border:0;background:transparent;color:#4568a7;font-size:18px;cursor:pointer}.paper-picked button:disabled{opacity:.3}.paper-basket .field{margin:15px 0}.paper-confirm{width:100%}.paper-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.paper-preview{max-width:800px;margin:auto;padding:38px 46px;background:white;border:1px solid #dce6f5;box-shadow:0 10px 30px #1b315410}.paper-preview>h1{text-align:center}.paper-preview>p{text-align:center;color:#6e8096}.paper-question{padding:20px 0;border-top:1px solid #e8eef8;break-inside:avoid}.paper-question h2{font-size:17px}.paper-question img{display:block;max-width:100%;max-height:360px;object-fit:contain}.paper-nav.active{color:var(--brand)}
@media(max-width:700px){.paper-layout{grid-template-columns:1fr}.paper-basket{position:static;order:-1}.paper-preview{padding:22px 17px}.paper-toolbar{position:sticky;top:53px;z-index:5;background:#f6f8fc;padding:8px 0}.bottom button{min-width:0}}
.paper-select-view{padding-bottom:60px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shell[data-view="admin"] .tabs{display:flex;justify-content:space-between;max-width:1160px;margin:0 auto;padding-bottom:0;overflow-x:visible}
.shell[data-view="admin"] .tabs::-webkit-scrollbar{display:none}
.shell[data-view="admin"] .tabs ion-segment-button{flex:1 1 0;min-width:0;white-space:nowrap;--padding-start:4px;--padding-end:4px}
@media(min-width:900px){.shell[data-view="admin"] .workspace main{padding-top:14px}}
@media(min-width:651px) and (max-width:899px){.shell[data-view="admin"] .workspace main{padding-top:62px}}
.admin-accounts{padding:20px}
.accounts-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.accounts-heading h2{margin:0 0 5px;font-size:18px}
.accounts-heading p{margin:0;color:#71819a;font-size:12px;line-height:1.5}
.accounts-heading .primary{flex:none}
.accounts-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 12px}
.accounts-search{display:flex;align-items:center;min-width:240px;max-width:390px;flex:1;border:1px solid #dce6f5;border-radius:10px;background:#fff;overflow:hidden}
.accounts-search input{min-width:0;flex:1;height:39px;padding:0 11px;border:0;outline:0;font-size:12px}
.accounts-search:focus-within{border-color:#83a8f7;box-shadow:0 0 0 3px #dfeaff}
.accounts-search button{align-self:stretch;padding:0 12px;border:0;background:#edf3ff;color:#2452b5;font-size:12px;font-weight:700}
.accounts-search button[data-account-reset]{background:#fff;color:#6c7e98}
.accounts-filters{display:flex;gap:5px;overflow-x:auto;max-width:100%;scrollbar-width:none}
.accounts-filters button{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:34px;padding:5px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#63758e;font-size:11.5px;font-weight:650;white-space:nowrap}
.accounts-filters button.active{border-color:#cfe0ff;background:#edf3ff;color:#1d4ed8}
.accounts-filters span{color:#8696ac;font-variant-numeric:tabular-nums}
.accounts-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #e0e8f3;border-radius:11px}
.accounts-table{width:100%;min-width:760px;border-collapse:collapse;text-align:left;font-size:12px}
.accounts-table th{padding:10px 12px;background:#f6f8fc;color:#6d7d95;font-size:11px;font-weight:700;white-space:nowrap}
.accounts-table td{padding:10px 12px;border-top:1px solid #e9eef5;color:#52647f;white-space:nowrap}
.accounts-table tbody tr:hover{background:#fafcff}
.accounts-table td strong{display:block;color:#263b5b;font-size:12px;font-weight:700}
.accounts-table td small{display:block;margin-top:3px;color:#8999ad;font-size:10px}
.account-state{display:inline-flex;padding:4px 7px;border-radius:6px;background:#f1f3f7;color:#67778e;font-size:11px;font-weight:700}
.account-state.registered{background:#eaf7ef;color:#28734a}
.account-state.unused{background:#edf3ff;color:#3562b3}
.account-state.revoked{background:#f3f4f7;color:#7c8797}
.account-action{min-height:30px;padding:4px 8px;border:1px solid #dbe5f4;border-radius:7px;background:#fff;color:#476594;font-size:11px;font-weight:650;white-space:nowrap}
.account-action:hover{border-color:#a9c3f6;background:#f2f6ff;color:#1d4ed8}
.account-desktop-actions .account-action+.account-action{margin-left:5px}
.account-mobile-details{display:none}
.password-reset-dialog{width:min(390px,calc(100vw - 28px));max-width:none;margin:auto;padding:0;border:1px solid #dce6f5;border-radius:18px;background:#fff;color:#17243f;box-shadow:0 22px 70px rgba(16,32,65,.25)}
.password-reset-dialog::backdrop{background:rgba(16,32,65,.45)}
.password-reset-sheet{padding:23px}
.password-reset-sheet h2{margin:0 0 10px;font-size:20px}
.password-reset-sheet p{margin:0;color:#5c6e89;font-size:13px;line-height:1.7}
.password-reset-result{margin-top:18px;padding:14px;border:1px solid #cfe0ff;border-radius:11px;background:#f5f8ff}
.password-reset-result label,.password-reset-result small{display:block;color:#5c7397;font-size:12px}
.password-reset-result code{display:block;margin:8px 0;color:#173d93;font-size:20px;font-weight:700;letter-spacing:.04em;overflow-wrap:anywhere;user-select:all}
.password-reset-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.password-reset-actions button{min-height:36px;padding:8px 13px}
.phone-whitelist-dialog{width:min(680px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #dce6f5;border-radius:18px;background:#fff;color:#17243f;box-shadow:0 22px 70px rgba(16,32,65,.25);overflow:auto}
.phone-whitelist-dialog::backdrop{background:rgba(16,32,65,.45)}
.phone-whitelist-sheet{padding:22px}
.phone-whitelist-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.phone-whitelist-head h2{margin:0 0 6px;font-size:20px}
.phone-whitelist-head p{margin:0 0 17px;color:#657894;font-size:12px;line-height:1.6}
.phone-whitelist-close{flex:none;width:32px;height:32px;border:1px solid #dce6f5;border-radius:9px;background:#fff;color:#526784;font-size:23px;line-height:1}
.phone-whitelist-sheet textarea{width:100%;min-height:140px;padding:12px;resize:vertical;font-family:inherit;font-size:13px;line-height:1.6}
.phone-whitelist-report{margin-top:16px;padding:15px;border:1px solid #dce6f5;border-radius:12px;background:#f8faff}
.phone-whitelist-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.phone-whitelist-counts div{padding:10px;border-radius:9px;background:#fff}
.phone-whitelist-counts strong,.phone-whitelist-counts span{display:block}
.phone-whitelist-counts strong{color:#1d4ed8;font-size:23px;line-height:1.2}
.phone-whitelist-counts span{margin-top:4px;color:#657894;font-size:11px}
.phone-whitelist-report p{margin:12px 0;color:#6b7f9b;font-size:12px}
.phone-whitelist-report details{padding:8px 0;border-top:1px solid #e1e9f4;font-size:12px}
.phone-whitelist-report summary{cursor:pointer;color:#385c97;font-weight:700}
.phone-whitelist-report details div{display:flex;flex-wrap:wrap;gap:5px;max-height:150px;overflow:auto;margin-top:8px}
.phone-whitelist-report details span{padding:4px 7px;border-radius:6px;background:#fff;color:#4c607d;font-variant-numeric:tabular-nums}
.phone-whitelist-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.phone-whitelist-actions button{min-height:38px;padding:8px 14px}
@media(max-width:650px){.phone-whitelist-sheet{padding:17px}.phone-whitelist-counts{grid-template-columns:repeat(2,1fr)}}
.account-action:focus-visible,.accounts-filters button:focus-visible{outline:3px solid #94b6ff;outline-offset:1px}
.accounts-empty{text-align:center;color:#8797ae!important;padding:30px 12px!important}
.accounts-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;color:#8090a7;font-size:11px}
.accounts-footer .pager{margin:0}
.observation-page{max-width:1100px;margin:16px auto 0}
.observation-loading{padding:24px 0;color:#72839b;font-size:13px}
.observation-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.observation-head h1{margin:4px 0;color:#162b50;font-size:28px;line-height:1.3}
.observation-head p{margin:0;color:#6a7b95;font-size:13px}
.observation-eyebrow{color:#3864ae;font-size:10px;font-weight:800;letter-spacing:.13em}
.observation-period{display:inline-flex;gap:3px;padding:4px;margin-bottom:15px;border:1px solid #dce6f5;border-radius:12px;background:#edf2fa}
.observation-period button{border:0;border-radius:9px;background:transparent;padding:7px 14px;color:#667c9e;font-size:12px;font-weight:700}
.observation-period button.active{background:#fff;color:#2051d2;box-shadow:0 2px 7px rgba(24,48,91,.09)}
.observation-user-period{display:inline-flex;gap:3px;padding:3px;margin:12px 0 10px;border:1px solid var(--line);border-radius:10px;background:var(--brand-soft)}
.observation-user-period button{border:0;border-radius:7px;background:transparent;padding:6px 14px;color:var(--ink-3);font-size:12px;font-weight:700;cursor:pointer}
.observation-user-period button.active{background:var(--surface);color:var(--brand);box-shadow:0 2px 7px rgba(24,48,91,.09)}
.observation-users-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;color:var(--ink-3);font-size:12px}
.observation-users-footer .pager{margin:0;gap:9px}
.observation-users-footer .pager button{padding:6px 12px;background:var(--surface);color:var(--ink-2)}
.observation-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:14px}
.observation-metric{display:flex;flex-direction:column;min-height:115px;padding:17px 19px;border:1px solid #dce6f5;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(24,48,91,.04)}
.observation-metric small{color:#647a9b;font-size:12px;font-weight:650}.observation-metric strong{margin:4px 0;color:#19375f;font-size:29px;line-height:1.2;font-variant-numeric:tabular-nums}.observation-metric span{color:#8b9bb3;font-size:11px}
.observation-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.observation-panel{margin:0;min-width:0}.observation-panel h2,.observation-users h2{margin:0 0 15px;font-size:17px}
.observation-chart{display:flex;align-items:end;gap:3px;height:156px;padding:8px 0;border-bottom:1px solid #dce6f5}.observation-bar{display:flex;align-items:end;flex:1;height:100%;min-width:2px}.observation-bar span{display:block;width:100%;min-height:3px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#4c87f6,#2252cb)}
.observation-chart-label{display:flex;justify-content:space-between;color:#8a9bb4;font-size:10px;margin-top:7px}.observation-rows>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #eef2f8;color:#627793;font-size:12px}.observation-rows>div:last-child{border-bottom:0}.observation-rows b{color:#20395d;font-variant-numeric:tabular-nums}
.observation-empty{display:grid;place-items:center;min-height:156px;border:1px dashed #dce6f5;border-radius:12px;color:#8a9bb4;font-size:12px}
.observation-intensity{margin:0 0 14px}.observation-intensity h2{margin:0 0 14px;font-size:17px}.observation-intensity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.observation-intensity-grid>div{display:flex;flex-direction:column;padding:13px;border:1px solid #e4ecf7;border-radius:11px;background:#f8faff}.observation-intensity-grid small{color:#7488a3;font-size:11px}.observation-intensity-grid strong{margin-top:4px;color:#224a8c;font-size:22px;line-height:1.25}.observation-intensity-grid span{color:#93a2b8;font-size:10px}.observation-intensity-distribution{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.observation-intensity-distribution span{padding:6px 9px;border-radius:999px;background:#eef4ff;color:#57719d;font-size:11px}.observation-intensity-distribution b{color:#234b90}
.observation-users{margin:0}.observation-users-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.observation-users-head small{color:#8a9bb4;font-size:11px}.observation-table-wrap{overflow-x:auto}.observation-users table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.observation-users th,.observation-users td{padding:10px 12px;border-bottom:1px solid #eaf0f8;font-size:12px}.observation-users th{color:#6e819d;font-weight:700}.observation-users td{color:#34506f}.observation-users td strong{color:#17365e}.observation-note{margin:13px 2px;color:#8495ac;font-size:11px}
.observation-users [hidden]{display:none}.observation-user-search{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:9px;padding:5px 9px;color:var(--ink-3);min-width:190px}.observation-user-search input{border:0;outline:0;background:transparent;color:var(--ink);min-width:0;width:100%;font-size:12px}.observation-access-button,.observation-access-title button,.observation-access-dates button{border:1px solid var(--brand-line);background:var(--brand-soft);color:var(--brand);border-radius:7px;padding:5px 9px;font-size:11px;font-weight:650}.observation-access-detail{border-top:1px solid var(--line);margin-top:17px;padding-top:17px}.observation-access-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.observation-access-title h3{margin:0;font-size:15px}.observation-access-detail p{font-size:12px;color:var(--ink-3);margin:5px 0 12px}.observation-access-detail h4{font-size:13px;margin:18px 0 4px}.observation-access-dates{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.observation-access-dates button.active{background:var(--brand);color:var(--surface)}
.security-users{margin-top:14px}.security-summary,.security-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.security-summary span{border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:var(--surface-2);color:var(--ink-2);font-size:12px}.security-summary b{font-size:16px;color:var(--ink);margin-left:4px}.security-filters button{border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-2);padding:6px 12px;font-size:12px;cursor:pointer}.security-filters button.active{border-color:var(--brand-line);background:var(--brand-soft);color:var(--brand);font-weight:700}.security-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;background:var(--surface-2);color:var(--ink-3)}.security-status.watch{background:var(--brand-soft);color:var(--brand)}.security-status.paused,.security-status.banned{background:#fff0ed;color:#aa3324}.security-status.banned{font-weight:800}.security-evidence-table td{vertical-align:top}.security-evidence-table tr.security-action-ban td,.security-evidence-table tr.security-action-pause td{background:color-mix(in srgb,#f5b0a7 12%,var(--surface))}.security-evidence-table small{color:var(--ink-3)}
.security-users{padding:20px 22px}.security-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.security-heading h2{margin:0 0 4px}.security-heading p{margin:0;color:var(--ink-3);font-size:12px}.security-heading .observation-user-search{flex:0 0 194px}.security-users .security-filters{gap:6px;margin:18px 0 12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.security-users .security-filters button{border-radius:8px;padding:7px 10px;display:inline-flex;align-items:center;gap:7px}.security-users .security-filters button span{font-variant-numeric:tabular-nums;color:var(--ink-3)}.security-users .security-filters button.active span{color:var(--brand)}.security-table-wrap{overflow-x:auto}.security-users .security-table{table-layout:fixed;width:100%;min-width:620px}.security-users .security-table th,.security-users .security-table td{white-space:normal;vertical-align:middle;padding:11px 10px;line-height:1.45}.security-users .security-table th:nth-child(1){width:22%}.security-users .security-table th:nth-child(2){width:18%}.security-users .security-table th:nth-child(3){width:25%}.security-users .security-table th:nth-child(4){width:22%}.security-users .security-table th:nth-child(5){width:13%}.security-users .security-table td strong{font-size:12px;color:var(--ink-2)}.security-users .security-table td small{display:block;margin-top:3px;color:var(--ink-3);font-size:11px}.security-identity{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.security-users .security-table td:first-child strong{color:var(--ink)}.security-users .security-table .security-empty-row td{padding:28px 12px}.security-empty{text-align:center;display:grid;gap:5px}.security-empty strong{font-size:14px;color:var(--ink-2)}.security-empty span{font-size:12px;color:var(--ink-3)}.security-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:var(--ink-3);font-size:12px}.security-footer .pager{margin:0}.security-footer .pager button{background:var(--surface);color:var(--ink-2)}.security-raw{margin:12px 0 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.security-raw>summary{cursor:pointer;padding:14px 18px;color:var(--ink-2);font-size:12px;font-weight:650}.security-raw[open]>summary{border-bottom:1px solid var(--line)}.security-raw>.panel{border:0;box-shadow:none;margin:0;padding:18px}.security-raw .observation-users-head{margin-bottom:10px}@media(max-width:760px){.security-users{padding:16px}.security-heading{display:block}.security-heading .observation-user-search{margin-top:12px;max-width:none}.security-table-wrap{overflow:visible}.security-users .security-table,.security-users .security-table tbody,.security-users .security-table tr,.security-users .security-table td{display:block;width:100%;min-width:0}.security-users .security-table thead{display:none}.security-users .security-table tr{border-bottom:1px solid var(--line);padding:10px 0}.security-users .security-table td{border:0;padding:5px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.security-users .security-table td:before{content:attr(data-label);color:var(--ink-3);font-size:11px;flex:0 0 86px}.security-users .security-table .security-empty-row td{display:block;padding:18px 0}.security-users .security-table .security-empty-row td:before{display:none}.security-footer{flex-wrap:wrap}}
@media(max-width:760px){.security-users .security-table td:first-child{display:block;padding-bottom:10px}.security-users .security-table td:first-child:before{display:none}.security-users .security-identity{justify-content:space-between}.security-users .security-table td:first-child small{margin-top:4px}}
.security-status.network{background:var(--surface-2);color:var(--ink-2)}
@media(max-width:650px){.shell[data-view="admin"] .workspace main{padding-top:10px}.shell[data-view="admin"] .tabs ion-segment-button{font-size:12px}.admin-accounts{padding:14px}.accounts-heading{align-items:flex-start;flex-wrap:wrap}.accounts-heading .primary{min-height:36px;padding:7px 10px;font-size:11px}.accounts-toolbar{margin-top:13px;gap:9px}.accounts-search{flex-basis:100%;max-width:none}.accounts-filters{width:100%}.accounts-footer .pager button{padding:6px 9px}.observation-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.observation-metric{min-height:105px;padding:13px}.observation-metric strong{font-size:24px}.observation-panels{grid-template-columns:1fr}.observation-intensity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.observation-users-head{display:block}.observation-users-head small{display:block;margin-bottom:10px}}
.paper-preview{font-family:"Songti SC","SimSun",serif;color:#1c222d}
.paper-preview>h1{margin:0 0 24px;font-family:"Microsoft YaHei",sans-serif;font-size:23px;font-weight:750;color:#192a46}
.paper-preview .paper-question{padding:6px 0 13px;border:0}
.paper-preview .paper-question .prose{font-size:15px;line-height:1.65}
.paper-preview .paper-question .prose p{margin:0 0 8px}
.paper-preview .paper-question-number{margin-right:4px;font-family:"Microsoft YaHei",sans-serif;font-size:14px}
.paper-preview .paper-question img{width:auto;max-width:100%;max-height:250px;margin:3px auto 10px;object-fit:contain}
.paper-preview .paper-question img.rfx{display:inline-block;width:auto;height:1em;max-width:none;max-height:1em;margin:0 2px;vertical-align:-.16em}
.paper-select-view .paper-head{margin-bottom:16px}
.paper-select-view .paper-head h1{font-size:22px;color:#19345d}
.paper-select-view .paper-head p{margin-bottom:0}
.paper-select-view .browse-bar{margin-bottom:14px}
.paper-results{margin-top:0}
.paper-card{cursor:default;padding-right:16px}
.paper-card:hover{transform:none}
.paper-card.is-selected{border-color:#8fb2f5;box-shadow:0 0 0 2px rgba(37,85,200,.09),0 4px 15px rgba(30,65,130,.07)}
.paper-card.has-cover .compact-card-headline{min-height:125px}
.paper-card .compact-card-cover{top:39px}
.paper-card .compact-card-top{padding-right:37px}
.paper-card-toggle{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1.5px solid #b9c9e2;border-radius:50%;background:#fff;color:#41659d;cursor:pointer;box-shadow:0 2px 7px rgba(24,48,91,.09)}
.paper-card-toggle ion-icon{width:19px;height:19px}
.paper-card-toggle.is-selected{border-color:#2051d2;background:#2051d2;color:#fff}
.paper-card-toggle:disabled{opacity:.36;cursor:not-allowed}
.paper-card-toggle:focus-visible,.paper-basket-fab:focus-visible{outline:3px solid #86abfa;outline-offset:3px}
.paper-basket-fab{position:fixed;z-index:26;left:16px;bottom:calc(83px + env(safe-area-inset-bottom));display:grid;place-items:center;width:56px;height:56px;padding:0;border:2px solid #fff;border-radius:50%;background:#2051d2;color:#fff;box-shadow:0 8px 24px rgba(26,67,161,.32);font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer}
.paper-basket-dialog{position:fixed;inset:auto 16px calc(150px + env(safe-area-inset-bottom)) 16px;width:min(420px,calc(100vw - 32px));max-width:none;max-height:min(70dvh,680px);margin:0;padding:0;border:1px solid #dce6f5;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(18,38,77,.22);overflow:hidden}
.paper-basket-dialog::backdrop{background:rgba(17,33,62,.34);backdrop-filter:blur(2px)}
.paper-basket-sheet{display:flex;flex-direction:column;max-height:inherit;padding:20px}
.paper-basket-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:14px}
.paper-basket-heading small{color:#5271a6;font-size:11px;font-weight:750}
.paper-basket-heading h2{margin:2px 0 0;color:#19345d;font-size:21px}
.paper-basket-heading button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:#f0f4fb;color:#506c9d;cursor:pointer}
.paper-picked-list{min-height:80px;overflow:auto;overscroll-behavior:contain}
.paper-picked{padding:10px 11px;margin-bottom:7px}
.paper-picked span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.paper-picked span small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;color:#8090a8;font-size:10px;font-weight:500}
.paper-picked button{min-width:32px;min-height:32px;border-radius:7px}
.paper-picked button:hover:not(:disabled){background:#edf3ff}
.paper-basket-empty{margin:14px 4px;color:#7688a3;font-size:13px;line-height:1.6}
.paper-basket-sheet .field{flex:none;margin:14px 0}
.paper-basket-sheet .paper-confirm{flex:none}
@media(max-width:650px){
  .paper-card.has-cover .compact-card-headline{min-height:101px}
  .paper-card .compact-card-cover{top:37px}
  .paper-card-toggle{top:9px;right:9px;width:30px;height:30px}
  .paper-basket-dialog{inset:auto 0 0 0;width:100%;max-height:78dvh;border-radius:23px 23px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
  .paper-basket-fab{left:16px;bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media(min-width:651px) and (max-width:899px){.paper-basket-fab{left:24px;bottom:24px}.paper-basket-dialog{left:24px;bottom:92px}}
@media(min-width:900px){.paper-basket-fab{left:calc(var(--desktop-rail) + 32px);bottom:24px}.paper-basket-dialog{left:calc(var(--desktop-rail) + 32px);bottom:92px}}
@media(max-width:650px){
  .detail .reveal-section{margin-top:12px}
  .detail .reveal-toggle{gap:8px;min-height:50px;padding:10px 11px}
  .detail .reveal-toggle .section-number{font-size:8px;letter-spacing:.07em}
  .detail .reveal-title{font-size:13px}
  .detail .reveal-action{font-size:10px}
  .detail .reveal-toggle ion-icon{width:15px;height:15px}
  .detail .reveal-content{padding:11px}
}

/* Word import workspace */
.import-page [hidden],.import-upload-dialog [hidden]{display:none!important}
.import-page{max-width:1120px;margin:18px auto 56px;color:#1d304f}
.import-list-head,.import-task-title,.import-task-head,.import-task-tools,.import-task-row-top,.import-task-row-actions,.import-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.import-list-head{margin-bottom:16px}
.import-list-head h1,.import-task-title h1{min-width:0;margin:0;color:#192f53;font-size:23px;line-height:1.35;overflow-wrap:anywhere}
.import-list-head .primary{display:flex;align-items:center;gap:5px;min-height:38px;padding:7px 13px;white-space:nowrap}
.import-job-list{overflow:hidden;border:1px solid #dce6f4;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(26,56,103,.04)}
.import-job-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,230px) auto 18px;align-items:center;gap:13px;width:100%;min-height:68px;padding:12px 16px;border:0;border-bottom:1px solid #ebeff6;background:#fff;text-align:left;color:#243a5a;cursor:pointer}
.import-job-item:last-child{border-bottom:0}.import-job-item:hover{background:#f6f9ff}.import-job-item:focus-visible{outline:2px solid #3c70de;outline-offset:-2px}
.import-job-file{display:flex;align-items:center;gap:11px;min-width:0}.import-job-file>ion-icon{flex:none;color:#2b59bd;font-size:21px}.import-job-file>span{min-width:0}.import-job-file strong,.import-job-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-job-file strong{font-size:13px}.import-job-file small{margin-top:4px;color:#8493a9;font-size:11px}
.import-job-summary{color:#6b7e9c;font-size:11px;line-height:1.45}.import-job-item>ion-icon{color:#8aa0bf;font-size:16px}
.import-job-next{display:block;margin-top:3px;color:#2453b6;font-size:11px;font-style:normal;font-weight:700}
.import-review-badge{width:max-content;margin:0 0 8px;padding:4px 7px;border-radius:6px;background:#e9f7ef;color:#287950;font-size:11px;font-weight:700}
.import-job-status,.import-row-state{display:inline-flex;align-items:center;justify-content:center;max-width:max-content;padding:5px 8px;border-radius:7px;background:#eef4ff;color:#2c59be;font-size:11px;font-weight:700;white-space:nowrap}
.import-job-status.committed,.import-row-state.ready{background:#e9f7ef;color:#287950}.import-job-status.failed,.import-row-state.blocked{background:#fff0ef;color:#b6463d}.import-job-status.parsing,.import-job-status.queued,.import-job-status.committing,.import-row-state.review{background:#fff5e9;color:#a76c1e}
.import-list-empty{padding:24px;color:#7889a1;font-size:13px;line-height:1.6}
.import-task-head{display:block;margin-bottom:17px}.import-back{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0;border:0;background:transparent;color:#4569a5;font-size:12px;font-weight:700;cursor:pointer}.import-back ion-icon{font-size:18px}.import-task-title{justify-content:flex-start;margin-top:4px}.import-task-title h1{font-size:21px}
.import-task-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.import-task-overview>div{display:flex;align-items:baseline;gap:9px;padding:15px 17px;border:1px solid #dfE7f4;border-radius:12px;background:#fff}.import-task-overview strong{color:#2453bd;font-size:25px;font-variant-numeric:tabular-nums}.import-task-overview span{color:#637997;font-size:12px}
.import-task-message{padding:18px 20px;margin:0 0 16px;border:1px solid #d7e5fa;border-radius:12px;background:#f3f8ff;color:#35609e;font-size:13px;line-height:1.6}.import-task-message p{margin:4px 0 12px}.import-task-message.error{border-color:#f3d5d1;background:#fff6f5;color:#9f3f38}.import-task-message.success{border-color:#d6ebdf;background:#f1fbf5;color:#216f46}
.import-task-tools{align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}.import-task-filters{display:flex;flex-wrap:wrap;gap:5px}.import-task-filters button{min-height:34px;padding:6px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#7184a2;font-size:12px;cursor:pointer}.import-task-filters button.active{border-color:#cadcfb;background:#eaf2ff;color:#2353ba;font-weight:700}.import-report-link{padding:7px 3px;border:0;background:transparent;color:#2c5dbc;font-size:12px;font-weight:700;cursor:pointer}
.import-task-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.import-task-row{display:flex;flex-direction:column;min-width:0;min-height:186px;padding:14px 15px;border:1px solid #dce5f3;border-radius:13px;background:#fff;box-shadow:0 2px 8px rgba(24,55,103,.035)}.import-task-row.review{border-color:#eed8b6}.import-task-row.blocked{background:#fdfdfe}.import-task-row h2{overflow:hidden;margin:9px 0 3px;color:#213657;font-size:14px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.import-row-number{color:#8291a9;font-size:11px}.import-task-row-source{overflow:hidden;margin:0;color:#7e8fa9;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.import-task-row-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:10px 0;color:#627695;font-size:12px;line-height:1.55}.import-row-warning{margin:0 0 8px;color:#a36b26;font-size:11px;line-height:1.4}.import-task-row-actions{margin-top:auto;padding-top:10px;border-top:1px solid #edf1f7}.import-task-row-actions>button{padding:5px 0;border:0;background:transparent;color:#2456bc;font-size:12px;font-weight:700;cursor:pointer}.import-task-row-actions>label{display:inline-flex;align-items:center;gap:5px;color:#426394;font-size:11px;cursor:pointer;white-space:nowrap}.import-task-row-actions input{width:15px;height:15px;margin:0;accent-color:#2453c4}.import-task-row-actions label:has(input:disabled){opacity:.5;cursor:not-allowed}
.import-selection-bar{position:sticky;z-index:12;bottom:14px;justify-content:flex-end;flex-wrap:wrap;padding:10px 12px;margin-top:18px;border:1px solid #c8d8f3;border-radius:13px;background:rgba(255,255,255,.97);box-shadow:0 10px 28px rgba(22,54,109,.15);backdrop-filter:blur(8px)}.import-selection-bar span{flex:1;color:#274f9b;font-size:12px;font-weight:750}.import-selection-bar button{min-height:36px;padding:7px 12px;font-size:12px}
.import-upload-dialog,.import-question-dialog,.import-confirm-dialog{width:min(560px,calc(100vw - 24px));max-width:none;max-height:min(88dvh,860px);margin:auto;padding:0;border:1px solid #d8e4f3;border-radius:18px;background:#fff;color:#233750;box-shadow:0 25px 75px rgba(15,35,77,.25);overflow:hidden}.import-question-dialog{width:min(760px,calc(100vw - 24px))}.import-upload-dialog::backdrop,.import-question-dialog::backdrop,.import-confirm-dialog::backdrop{background:rgba(16,32,62,.48);backdrop-filter:blur(2px)}
.import-upload-sheet{display:flex;flex-direction:column;max-height:inherit}.import-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #e8edf5}.import-dialog-head h2{margin:0;color:#1d3458;font-size:19px;line-height:1.35;overflow-wrap:anywhere}.import-dialog-head small{display:block;margin-bottom:5px;color:#4f73b6;font-size:11px}.import-dialog-head>button{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #dce6f5;border-radius:8px;background:#fff;color:#61799c;cursor:pointer}
.import-upload-body,.import-question-body,.import-confirm-body{min-height:0;overflow:auto;padding:18px 20px}.import-type-choice{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 16px;padding:0;border:0}.import-type-choice legend{grid-column:1/-1;width:100%;margin-bottom:9px;color:#425773;font-size:12px;font-weight:700}.import-type-choice label{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:12px;border:1px solid #dce5f3;border-radius:10px;cursor:pointer}.import-type-choice label:has(input:checked){border-color:#8eb1f4;background:#f1f6ff}.import-type-choice input{margin:2px 0 0;accent-color:#2453c4}.import-type-choice span{color:#2a405e;font-size:13px;font-weight:700}.import-type-choice small{display:block;margin-top:4px;color:#7a8ca7;font-size:10px;font-weight:450;line-height:1.4}.import-upload-body .field{display:flex;min-width:0;margin:0 0 15px;color:#415672;font-size:12px}.import-upload-body .input{min-height:42px;margin-top:5px;background:#fff}.import-file-field input{padding:8px;font-size:12px}.import-rules{color:#667b99;font-size:11px;line-height:1.6}.import-rules summary{width:max-content;color:#3363b5;font-weight:700;cursor:pointer}.import-rules p{margin:8px 0 0}.import-dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #e8edf5}.import-dialog-actions button{min-height:38px;padding:8px 13px;font-size:12px}
.import-question-body section+section{margin-top:16px}.import-question-body h3{margin:0 0 8px;color:#294569;font-size:13px}.import-question-body .import-preview{max-height:none;min-height:80px;margin:0;background:#f8faff}.import-question-meta{margin:16px 0 0;color:#8290a5;font-size:11px;overflow-wrap:anywhere}.import-question-warnings{padding:12px;margin-bottom:16px;border-radius:9px;background:#fff7ed;color:#965f1d;font-size:12px}.import-question-warnings ul{margin:7px 0 0;padding-left:18px}.import-confirm-body>p{margin:0 0 14px;font-size:14px}.import-confirm-body>p strong{color:#2453c4;font-size:23px}.import-confirm-counts{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:15px}.import-confirm-counts span{padding:8px 10px;border-radius:8px;background:#f1f5fc;color:#537199;font-size:12px}.import-confirm-counts b{color:#244f9f}.import-confirm-impact{padding:12px;border-radius:9px;background:#fff8ec;color:#805c29;font-size:11px;line-height:1.65}.import-review-check{display:flex;align-items:flex-start;gap:8px;margin-top:14px;color:#2b466b;font-size:12px;line-height:1.5}.import-review-check input{margin-top:2px;accent-color:#2453c4}
@media(max-width:650px){.import-page{margin:12px auto 110px}.import-list-head h1,.import-task-title h1{font-size:19px}.import-job-item{grid-template-columns:minmax(0,1fr) auto 16px;gap:8px;padding:12px}.import-job-summary{grid-column:1/-1;grid-row:2;padding-left:32px}.import-job-item>.import-job-status{grid-column:2;grid-row:1}.import-job-item>ion-icon:last-child{grid-column:3;grid-row:1}.import-task-overview{gap:6px}.import-task-overview>div{display:block;padding:10px}.import-task-overview strong{display:block;font-size:20px}.import-task-overview span{font-size:10px}.import-task-rows{grid-template-columns:1fr}.import-task-tools{align-items:flex-start}.import-task-filters{width:100%;overflow-x:auto;flex-wrap:nowrap}.import-task-filters button{flex:none}.import-selection-bar{bottom:calc(78px + env(safe-area-inset-bottom));gap:7px}.import-selection-bar span{flex-basis:100%}.import-selection-bar button{flex:1;white-space:nowrap}.import-upload-dialog,.import-question-dialog,.import-confirm-dialog{inset:auto 0 0 0;width:100%;max-height:88dvh;margin:0;border-radius:20px 20px 0 0;border-bottom:0}.import-type-choice{grid-template-columns:1fr 1fr}.import-type-choice label{padding:9px}.import-dialog-head,.import-upload-body,.import-question-body,.import-confirm-body,.import-dialog-actions{padding-left:16px;padding-right:16px}}

/* Category management */
.category-admin-page{max-width:1120px;margin:18px auto 70px;color:#213653}
.category-admin-head,.category-admin-toolbar,.category-admin-tools{display:flex;align-items:center;justify-content:space-between;gap:14px}
.category-admin-head{margin-bottom:18px;border-bottom:1px solid #dfe7f3}
.category-admin-head>.primary{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:8px 13px;margin-bottom:10px;white-space:nowrap;font-size:12px}
.category-admin-tabs,.category-grade-tabs,.category-status-tabs{display:flex;align-items:center;gap:5px}
.category-admin-tabs button{min-height:48px;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:#7789a3;font-size:13px;font-weight:700;cursor:pointer}
.category-admin-tabs button.active{border-bottom-color:#2453c4;color:#2453c4}
.category-admin-toolbar{flex-wrap:wrap;margin-bottom:14px}
.category-grade-tabs{gap:6px}.category-grade-tabs button{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #dce6f4;border-radius:9px;background:#fff;color:#627798;font-size:12px;font-weight:700;cursor:pointer}.category-grade-tabs button.active{border-color:#a9c4f8;background:#edf4ff;color:#2453b8}.category-grade-tabs span{font-size:10px;color:#8297b6}
.category-admin-tools{flex-wrap:wrap}.category-admin-search{display:flex;align-items:center;gap:7px;min-width:205px;height:37px;padding:0 10px;border:1px solid #dce6f4;border-radius:9px;background:#fff;color:#8192a9}.category-admin-search ion-icon{font-size:17px}.category-admin-search input{width:100%;border:0;outline:0;background:transparent;color:#233b61;font-size:12px}.category-admin-search:focus-within{border-color:#84aaf0;box-shadow:0 0 0 3px #e8f0ff}
.category-status-tabs{padding:3px;border:1px solid #e0e8f4;border-radius:9px;background:#f7f9fd}.category-status-tabs button{min-height:29px;padding:5px 10px;border:0;border-radius:6px;background:transparent;color:#7486a0;font-size:11px;cursor:pointer}.category-status-tabs button.active{background:#fff;color:#2453b8;font-weight:700;box-shadow:0 1px 4px #cdd9eb}
.category-admin-table-wrap{overflow:hidden;border:1px solid #dce6f4;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(27,57,100,.04)}.category-admin-table{width:100%;border-collapse:collapse;text-align:left}.category-admin-table th{padding:11px 16px;border-bottom:1px solid #e5ebf4;background:#f7f9fd;color:#71839d;font-size:11px;font-weight:700}.category-admin-table td{padding:12px 16px;border-bottom:1px solid #edf1f6;color:#465f82;font-size:12px}.category-admin-table tr:last-child td{border-bottom:0}.category-admin-table td strong{color:#263d60;font-size:13px;font-weight:700}.category-admin-table td small{display:block;margin-top:3px;color:#8a9ab0;font-size:10px}.category-admin-table th:last-child,.category-admin-table td:last-child{text-align:right}.category-admin-table .category-empty-row td{text-align:center;padding:32px;color:#8393aa}.category-status{display:inline-block;padding:4px 8px;border-radius:6px;background:#f1f3f7;color:#71829b;font-size:11px}.category-status.is-active{background:#eaf7ef;color:#26764d}.category-edit-button{padding:6px 11px;border:1px solid #cdddf6;border-radius:7px;background:#fff;color:#2a59b4;font-size:11px;font-weight:700;cursor:pointer}.category-edit-button:hover{background:#edf4ff}.category-admin-foot{margin:10px 2px 0;color:#8a9bb2;font-size:11px}
.category-video-status{color:#8795ab;font-size:11px}.category-video-status.has-video{color:#2453c4;font-weight:700}
@media(max-width:650px){.category-admin-table td:nth-child(3){grid-column:1;grid-row:3;text-align:left}.category-admin-table td:nth-child(4){grid-column:2;grid-row:1;text-align:right}.category-admin-table td:nth-child(5){grid-column:2;grid-row:2;text-align:right}}
.category-legacy{margin-top:28px;border-top:1px solid #e2e8f2;color:#7184a0}.category-legacy summary{width:max-content;padding:14px 2px;color:#7084a2;font-size:12px;font-weight:700;cursor:pointer}.category-legacy summary span{margin-left:5px;color:#97a6ba}.category-legacy p{margin:2px 0 12px;font-size:11px}.category-legacy>div{display:flex;flex-wrap:wrap;gap:7px}.category-legacy>div>span{padding:7px 9px;border:1px solid #e4eaf3;border-radius:7px;background:#fff;color:#506481;font-size:11px}.category-legacy small{margin-left:6px;color:#91a1b5}
.category-admin-dialog{width:min(480px,calc(100vw - 24px));max-width:none;max-height:86dvh;margin:auto;padding:0;border:1px solid #d8e4f3;border-radius:17px;background:#fff;box-shadow:0 24px 65px rgba(17,39,79,.25);overflow:hidden}.category-admin-dialog::backdrop{background:rgba(16,32,62,.48);backdrop-filter:blur(2px)}.category-admin-sheet{display:flex;flex-direction:column}.category-admin-body{display:grid;gap:16px;padding:20px}.category-admin-body .field{margin:0;color:#4b607c;font-size:12px}.category-admin-body .input{margin-top:7px}.category-admin-note{margin:-5px 0 0;color:#7d8ea6;font-size:11px;line-height:1.6}.category-active-option{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #e0e8f3;border-radius:9px;color:#294469;font-size:12px;font-weight:700}.category-active-option input{margin:2px 0 0;accent-color:#2453c4}.category-active-option small{display:block;margin-top:4px;color:#788ba5;font-size:10px;font-weight:450;line-height:1.5}
@media(max-width:650px){.category-admin-page{margin:12px auto 100px}.category-admin-head{align-items:flex-end;gap:5px}.category-admin-head>.primary{padding:7px 9px;font-size:11px}.category-admin-tabs button{padding:8px 10px;font-size:11px}.category-admin-toolbar,.category-admin-tools{align-items:stretch;width:100%}.category-admin-search{flex:1;min-width:0}.category-grade-tabs{width:100%}.category-grade-tabs button{flex:1;justify-content:center}.category-admin-tools{gap:9px}.category-status-tabs{flex:none}.category-status-tabs button{padding:5px 7px}.category-admin-table th{display:none}.category-admin-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px;padding:12px;border-bottom:1px solid #edf1f6}.category-admin-table tr:last-child{border-bottom:0}.category-admin-table td{padding:0;border:0}.category-admin-table td:nth-child(1){grid-column:1;grid-row:1}.category-admin-table td:nth-child(2){grid-column:1;grid-row:2;font-size:11px}.category-admin-table td:nth-child(2) small{display:inline;margin-left:5px}.category-admin-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right}.category-admin-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right}.category-admin-table .category-empty-row{display:block}.category-admin-table .category-empty-row td{display:block}.school-table tr{grid-template-columns:minmax(0,1fr) auto}.school-table td:nth-child(2){grid-column:2;grid-row:1}.category-admin-dialog{inset:auto 0 0 0;width:100%;max-height:88dvh;margin:0;border-radius:20px 20px 0 0;border-bottom:0}}

/* Admin problem editor: a compact sectioned workspace with full-width writing areas. */
.import-file-field input{color:#627695}
.import-file-field input::file-selector-button{margin-right:12px;padding:7px 12px;border:1px solid #cbdcf5;border-radius:7px;background:#f1f6ff;color:#2453b8;font:inherit;font-weight:700;cursor:pointer}
.import-file-field input:hover::file-selector-button{background:#e6f0ff}
.problem-editor-dialog [hidden]{display:none!important}
.problem-editor-dialog{width:min(960px,calc(100vw - 32px));border-radius:18px}
.problem-editor-sheet{height:min(860px,calc(100dvh - 32px))}
.problem-editor-head{padding:16px 24px 13px}
.problem-editor-head small{color:#2b59bd;font-size:10px;font-weight:750;letter-spacing:.06em}
.problem-editor-head h2{margin:3px 0 0;font-size:20px}
.problem-editor-head p{max-width:700px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.problem-editor-nav{display:flex;flex:none;gap:5px;padding:8px 20px;border-bottom:1px solid #e4eaf4;background:#f8faff;overflow-x:auto;scrollbar-width:none}
.problem-editor-nav::-webkit-scrollbar{display:none}
.problem-editor-nav button{flex:none;min-height:36px;padding:7px 13px;border:0;border-radius:9px;background:transparent;color:#647894;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
.problem-editor-nav button.active{background:#e7efff;color:#1e4bc1}
.problem-editor-nav button:focus-visible,.editor-rich-tabs button:focus-visible{outline:2px solid #3571ee;outline-offset:2px}
.problem-editor-body{padding:20px 24px 36px;scroll-behavior:smooth}
.problem-editor-section{scroll-margin-top:14px;padding:4px 0 26px}
.problem-editor-section+.problem-editor-section{padding-top:23px;border-top:1px solid #e8edf5}
.problem-editor-section-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}
.problem-editor-section-head>span{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:#eaf1ff;color:#2053c7;font-size:11px;font-weight:800}
.problem-editor-section-head h3{margin:0;color:#1d304f;font-size:16px;line-height:1.35}
.problem-editor-section-head p{margin:4px 0 0;color:#7d8ca4;font-size:11px;line-height:1.5}
.problem-editor-fields{display:grid;gap:12px}
.problem-editor-fields .row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0}
.problem-editor-fields .field,.editor-status-field{display:flex;flex-direction:column;gap:6px;margin:0;color:#334763;font-size:12px;font-weight:650}
.problem-editor-fields .field .input,.editor-status-field .input{width:100%;min-height:42px;background:#fff;font-size:13px;font-weight:450}
.problem-editor-fields .row .field{min-width:0;width:auto}
.problem-editor-fields .problem-title-field .input{font-weight:650}
.editor-field-hint{display:block;margin:-5px 0 2px;color:#8290a7;font-size:11px;line-height:1.5}
.editor-format-tip{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 12px;margin-bottom:14px;border-radius:10px;background:#f4f7fc;color:#677a99;font-size:11px;line-height:1.5}
.editor-format-tip code{font-size:11px;color:#2756ba}
.editor-rich-block{margin-bottom:16px}
.editor-rich-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.editor-rich-head label{color:#334763;font-size:12px;font-weight:700}
.editor-rich-tabs{display:flex;gap:2px;padding:2px;border:1px solid #e1e8f4;border-radius:8px;background:#f5f8fd}
.editor-rich-tabs button{min-width:44px;min-height:27px;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:#73849c;font-size:11px;cursor:pointer}
.editor-rich-tabs button.active{background:#fff;color:#2453c4;font-weight:700;box-shadow:0 1px 3px rgba(27,61,115,.1)}
.problem-editor-dialog .rich-editor{display:block;width:100%;min-height:210px;padding:13px 14px;resize:vertical;border-color:#dbe4f1;background:#fff;color:#20324d;font-size:14px;line-height:1.8}
.problem-editor-dialog .rich-editor:focus{border-color:#3b69d6;box-shadow:0 0 0 3px rgba(36,83,196,.1)}
.problem-editor-dialog .editor-rich-preview{min-height:210px;max-height:480px;overflow:auto;padding:15px;border:1px solid #dbe4f1;border-radius:10px;background:#fff;color:#20324d;font-size:14px;line-height:1.8;white-space:normal}
.editor-rich-preview img{display:block;max-width:100%;height:auto;max-height:300px;object-fit:contain;margin:12px auto}
.editor-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 13px}
.editor-upload-grid label{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px;border:1px dashed #a8bde5;border-radius:9px;background:#f8faff;color:#2855b8;font-size:12px;font-weight:650;cursor:pointer}
.editor-upload-grid input{display:none}
.editor-category-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:14px}
.editor-category-group{min-width:0;padding:15px;border:1px solid #e0e8f4;border-radius:12px;background:#fff}
.editor-category-group>strong,.editor-category-title strong{color:#253c5c;font-size:13px}
.editor-category-group>p,.editor-category-hint{margin:7px 0 12px;color:#8190a5;font-size:11px;line-height:1.55}
.editor-category-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.editor-category-title small{color:#4771bf;font-size:11px}
.editor-category-search{display:flex;align-items:center;gap:7px;height:36px;padding:0 10px;margin-bottom:10px;border:1px solid #dfe7f3;border-radius:8px;color:#7f92ad}
.editor-category-search ion-icon{font-size:16px}
.editor-category-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#273b57;font-size:12px}
.editor-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:208px;overflow:auto;padding:0;border:0;background:transparent}
.editor-category-list label{display:flex;align-items:center;gap:7px;min-height:34px;padding:7px 8px;border:1px solid #e6ecf5;border-radius:8px;background:#fafcff;color:#40546f;font-size:11px;cursor:pointer}
.editor-category-list label:has(input:checked){border-color:#a8c3fb;background:#edf4ff;color:#204ca8}
.editor-category-list input{accent-color:#2453c4}
.editor-category-group .input{width:100%;min-height:42px;margin-top:4px;background:#fff;font-size:12px}
.editor-school-toggle{display:flex;align-items:center;gap:10px;min-height:42px;color:#253c5c;cursor:pointer}
.editor-school-toggle input{width:17px;height:17px;margin:0;accent-color:#2453c4}
.editor-school-toggle span{display:flex;flex-direction:column;gap:3px}
.editor-school-toggle strong{font-size:13px}
.editor-school-toggle small{color:#8190a5;font-size:11px}
.editor-school-select{margin-top:14px;padding-top:13px;border-top:1px solid #e8edf5}
.editor-school-select label{color:#40546f;font-size:11px;font-weight:650}
.editor-archive-button{min-height:38px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:#b54c4c;font-size:12px;cursor:pointer}
.editor-archive-button:hover{background:#fff1f1}
.paper-select-view .paper-head h1{margin:0}
.my-list-head{margin-bottom:16px}
.my-list-head .page-title{margin:0}
#schoolForm h2{margin-bottom:0}
.editor-advanced{margin-top:13px;color:#4e6380;font-size:12px}
.editor-advanced summary{width:max-content;cursor:pointer;font-weight:650}
.editor-advanced .field{display:block;max-width:100%;margin-top:10px;font-size:11px}
.editor-advanced .input{display:block;width:100%;min-height:40px;margin-top:6px}
.problem-editor-dialog .problem-video-field{display:flex;flex-direction:column;gap:6px;margin:0 0 15px;padding:15px;border-color:#dce9ff;background:#f7faff;font-size:12px;font-weight:700}
.problem-editor-dialog .problem-video-field ion-icon{display:inline-block;color:#2453c4}
.problem-editor-dialog .problem-video-field .input{width:100%;min-height:42px;background:#fff;font-size:13px;font-weight:450}
.problem-editor-dialog .problem-video-field small{margin:0;color:#7186a7;font-size:11px;font-weight:450;line-height:1.5}
.editor-video-list{display:grid;gap:9px}.editor-video-row{display:flex;align-items:end;gap:8px}.editor-video-row .field{flex:1;min-width:0;margin:0;color:#334763;font-size:12px}.editor-video-row .field span{display:block;margin-bottom:5px}.editor-video-remove{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #dce6f5;border-radius:9px;background:#fff;color:#7890ab;cursor:pointer}.editor-video-remove:hover{border-color:#fac8c8;color:#bd4250}.editor-video-add{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;min-height:35px;padding:6px 11px;border:1px solid #c7d8f7;border-radius:9px;background:#fff;color:#2453c4;font-size:12px;font-weight:700;cursor:pointer}.editor-video-add[hidden]{display:none}.editor-video-add ion-icon{font-size:17px}
.editor-status-field{max-width:320px}
.editor-publish-note{max-width:670px;margin:11px 0 0;padding:10px 12px;border-radius:9px;background:#f2f6fd;color:#5b7091;font-size:11px;line-height:1.5}
.problem-editor-actions{padding:11px 24px}
.problem-editor-actions [data-editor-save-hint]{flex:1;min-width:0;color:#8190a5;font-size:11px;line-height:1.4}
@media(max-width:650px){
  .problem-editor-dialog{width:100%;border-radius:0}
  .problem-editor-sheet{height:100dvh}
  .problem-editor-head{padding:13px 16px 11px}
  .problem-editor-head h2{font-size:18px}
  .problem-editor-head p{max-width:260px}
  .problem-editor-nav{padding:7px 12px}
  .problem-editor-nav button{min-height:34px;padding:6px 10px;font-size:11px}
  .problem-editor-body{padding:16px 16px 24px}
  .problem-editor-section{padding-bottom:22px}
  .problem-editor-section+.problem-editor-section{padding-top:20px}
  .problem-editor-fields .row{grid-template-columns:1fr 1fr}
  .editor-format-tip{gap:3px 10px}
  .problem-editor-dialog .rich-editor,.problem-editor-dialog .editor-rich-preview{min-height:240px}
  .editor-category-layout{grid-template-columns:1fr}
  .editor-category-list{max-height:224px}
  .problem-editor-actions{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  .problem-editor-actions [data-editor-save-hint]{display:none}
  .problem-editor-actions button{min-height:38px;padding:7px 10px;font-size:12px;white-space:nowrap}
  .problem-editor-actions button.primary{flex:1}
}
@media(max-width:650px){
  .accounts-table-wrap{border:0;overflow:visible}
  .accounts-table{display:block;min-width:0}
  .accounts-table thead{display:none}
  .accounts-table tbody{display:grid;gap:9px}
  .accounts-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 10px;padding:13px;border:1px solid #dfe8f5;border-radius:12px;background:#fff}
  .accounts-table td{padding:0;border:0;white-space:normal}
  .accounts-table .account-code{grid-column:1;grid-row:1}
  .accounts-table .account-code strong{font-size:13px}
  .accounts-table .account-name{grid-column:1;grid-row:2;color:#70819a;font-size:11px}
  .accounts-table .account-name strong,.accounts-table .account-name small{display:inline;margin:0 6px 0 0;font-size:11px}
  .accounts-table .account-invite-state{grid-column:2;grid-row:1}
  .accounts-table .account-user-state,.accounts-table .account-date,.accounts-table .account-desktop-actions{display:none}
  .accounts-table .account-mobile-details{display:block;grid-column:1/-1;grid-row:3;padding-top:8px;border-top:1px solid #edf1f7}
  .account-mobile-details details>summary{list-style:none;color:#2453b6;font-size:12px;font-weight:700;cursor:pointer}
  .account-mobile-details details>summary::-webkit-details-marker{display:none}
  .account-mobile-details details>summary::after{content:'⌄';float:right;font-size:15px;line-height:1}
  .account-mobile-details details[open]>summary::after{transform:rotate(180deg)}
  .account-mobile-details details>div{display:grid;gap:7px;padding-top:10px;color:#667993;font-size:11px}
  .account-mobile-actions{display:flex;flex-wrap:wrap;gap:7px;padding-top:4px}
  .account-mobile-actions .account-action{min-height:34px;padding:7px 10px}
  .accounts-table .accounts-empty-row{display:block}
}
/* Payment preview: keep the existing blue and white visual language. */
.payment-page-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.payment-page-head h1{margin:0}.payment-page-head>span{letter-spacing:0;background:var(--brand-soft);border-radius:20px;padding:5px 10px;white-space:nowrap}
.payment-page,.admin-payment-page{max-width:960px;margin:0 auto;padding:12px 0 48px}.payment-page-head{padding:15px 3px 18px}.payment-page-head>span{font-size:11px;letter-spacing:.14em;color:var(--brand);font-weight:700}.payment-page-head h1{margin:7px 0;font-size:27px}.payment-page-head p{margin:0;color:var(--ink-2);font-size:13px;line-height:1.6}.payment-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.payment-product{display:flex;flex-direction:column;gap:12px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 10px rgba(25,55,110,.05)}.payment-product-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.payment-product-top>span{font-size:11px;color:var(--brand);background:var(--brand-soft);border-radius:5px;padding:4px 8px}.payment-product-top strong{color:var(--brand);font-size:27px}.payment-product-top small{font-size:11px;color:var(--ink-3);font-weight:400}.payment-product h2{margin:0;font-size:18px}.payment-product p{margin:0;color:var(--ink-2);font-size:13px;line-height:1.55}.payment-pickers{display:flex;gap:8px}.payment-pickers select,.payment-admin-product input:not([type=checkbox]){min-width:0;width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.payment-pickers select:first-child{width:95px;flex:none}.payment-quote-button{margin-top:auto}.payment-quote{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}.payment-quote h2{width:100%;margin:0}.payment-quote p{margin:0}.payment-quote strong{font-size:24px;color:var(--brand)}.payment-quote small{color:var(--ink-3)}.payment-unavailable{width:100%;padding:10px 12px;background:var(--brand-soft);border-radius:9px;color:var(--brand);font-size:13px}.payment-history{margin-top:25px;color:var(--ink-2);font-size:13px}.payment-history h2{font-size:16px;color:var(--ink)}.payment-admin-head{display:flex;justify-content:space-between;align-items:center}.payment-admin-head h2{font-size:19px}.payment-admin-head span{font-size:12px;color:var(--ink-3)}.payment-admin-product{display:grid;gap:12px;margin:0}.payment-admin-product h3{margin:0;font-size:17px}.payment-admin-product label{display:grid;gap:5px;color:var(--ink-2);font-size:12px}.payment-admin-product .payment-active{display:flex;align-items:center}.payment-admin-product button{justify-self:start}@media(max-width:650px){.payment-products{grid-template-columns:1fr}.payment-product{padding:18px}.payment-page-head h1{font-size:23px}}
.payment-page-head h1{margin:0}.payment-page-head>span{letter-spacing:0;background:var(--brand-soft);border-radius:20px;padding:5px 10px;white-space:nowrap}
.payment-history{margin-top:22px;text-align:right;color:var(--ink-2);font-size:13px}
.payment-history summary{display:inline-block;cursor:pointer;color:var(--ink-3);font-size:12px;text-decoration:underline;text-underline-offset:3px;list-style:none}
.payment-history summary::-webkit-details-marker{display:none}
.payment-history summary:hover,.payment-history summary:focus-visible{color:var(--brand)}
.payment-history-content{margin-top:12px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;text-align:left}
.payment-history-content p{margin:6px 0;line-height:1.6}
.profile-exports{margin-top:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff)}
.profile-exports summary{padding:15px 17px;color:var(--ink);font-size:14px;font-weight:700;cursor:pointer}
.profile-exports summary span{margin-left:5px;color:var(--ink-3);font-size:12px}
.profile-export-list{max-height:260px;overflow:auto;padding:0 17px 10px}
.profile-export-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line);color:var(--ink-2);font-size:13px}
.profile-export-list span{min-width:0;overflow-wrap:anywhere}
.profile-export-list small{display:block;margin-top:3px;color:var(--ink-3)}
.profile-export-list a{flex:none;color:var(--brand);font-weight:700}
.referral-panel{display:grid;gap:14px;margin-top:18px;padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,var(--surface) 60%,var(--brand-soft))}.referral-panel h2{margin:0 0 7px;font-size:18px;color:var(--ink)}.referral-panel p{margin:0;color:var(--ink-2);font-size:13px;line-height:1.7}.referral-code{display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px}.referral-code span{color:var(--ink-2);font-size:12px}.referral-code strong{font-size:21px;letter-spacing:.09em;color:var(--brand);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.referral-code button{padding:8px 13px}.referral-panel .referral-progress{font-size:13px}.referral-progress b{color:var(--brand)}.referral-panel small{color:var(--ink-3);line-height:1.6}
.top-theme{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:6px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--brand);font-size:12px;font-weight:700;white-space:nowrap}.top-theme:hover{border-color:var(--brand-line);background:var(--brand-soft)}.top-theme ion-icon{width:17px;height:17px}.theme-settings{max-width:820px}.theme-settings h2{margin:0 0 14px}.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-option{display:flex;align-items:center;gap:13px;min-width:0;padding:12px;text-align:left;border:2px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font-weight:700}.theme-option.active{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}.theme-option>span:last-child{display:grid;gap:1px}.theme-option small{color:var(--ink-3);font-size:11px;font-weight:500}.theme-swatch{display:block;flex:none;width:62px;height:42px;border-radius:8px;border:1px solid rgba(120,130,150,.3);box-shadow:inset 0 0 0 6px var(--theme-swatch-bg)}.theme-option-blue .theme-swatch{--theme-swatch-bg:#f5f7fb;background:linear-gradient(90deg,#1d4ed8 0 24%,#fff 24% 100%)}.theme-option-gold .theme-swatch{--theme-swatch-bg:#050505;background:linear-gradient(90deg,#d8b45f 0 24%,#101010 24% 100%)}
@media(max-width:650px){.top-theme{min-width:40px;min-height:40px;padding:6px}.top-theme span{display:none}.theme-options{gap:8px}.theme-option{gap:8px;padding:9px}.theme-swatch{width:46px;height:36px}}

/* Long import previews scroll between a fixed heading and confirmation action. */
.import-question-dialog[open]{display:flex;flex-direction:column;height:min(88dvh,860px)}
.import-question-dialog .import-dialog-head,.import-question-dialog .import-dialog-actions{flex:none}
.import-question-dialog .import-question-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.import-review-instruction{margin:0 0 14px;padding:10px 12px;border:1px solid #e9d3ae;border-radius:9px;background:#fff9ef;color:#765225;font-size:12px;line-height:1.6}
.import-task-row-actions .import-review-open{padding:6px 9px;border:1px solid #e6cda8;border-radius:7px;background:#fff8ec;color:#8a5b20;font-size:11px;white-space:nowrap}

/* School and exam are equal-level filters on one compact row. */
.browse-bar.has-exam:not(.is-searching){grid-template-columns:210px 112px minmax(170px,220px) minmax(150px,185px)}
.browse-bar.has-exam .browse-exam-trigger{grid-column:auto;justify-self:stretch;min-width:0;min-height:47px;padding:5px 10px;white-space:nowrap}
.browse-exam-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browse-exam-trigger>ion-icon{flex:none}
.browse-exam-trigger>ion-icon:last-child{margin-left:auto}
.browse-exam-compact{display:none}
@media(max-width:899px){
  .browse-bar.has-exam:not(.is-searching){grid-template-columns:48px 88px minmax(0,1fr) 154px}
}
@media(max-width:650px){
  .browse-bar.has-exam:not(.is-searching){grid-template-columns:44px 70px minmax(0,1fr) 116px;gap:6px}
  .browse-bar.has-exam .browse-exam-trigger{min-height:48px;padding:5px 8px;font-size:11px}
  .browse-bar.has-exam .browse-category-trigger>ion-icon:first-child{display:none}
  .browse-exam-full{display:none}
  .browse-exam-compact{display:block}
}
@media(max-width:360px){
  .browse-bar.has-exam:not(.is-searching){grid-template-columns:40px 62px minmax(0,1fr) 90px;gap:5px}
  .browse-bar.has-exam .browse-exam-trigger{gap:3px;padding:4px 6px}
  .browse-bar.has-exam .browse-exam-trigger>ion-icon:first-child{display:none}
}

/* One shared menu for every native select; the select remains the form value source. */
.pretty-select-shell{display:block;position:relative;flex:1;min-width:0;width:100%}
.pretty-select-native{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important}
.pretty-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:12px;font-weight:600;text-align:left;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.pretty-select-trigger:hover{border-color:var(--brand-line)}
.pretty-select-trigger:focus-visible,.pretty-select-trigger[aria-expanded="true"]{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(36,83,196,.12)}
.pretty-select-trigger:disabled{opacity:.55;cursor:not-allowed}
.pretty-select-trigger.is-placeholder{color:var(--ink-3)}
.pretty-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pretty-select-trigger ion-icon{flex:none;width:15px;height:15px;color:var(--brand);transition:transform .16s}
.pretty-select-trigger[aria-expanded="true"] ion-icon{transform:rotate(180deg)}
.pretty-select-menu{position:fixed;z-index:10000;box-sizing:border-box;margin:0;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 40px rgba(22,45,85,.18);overflow-y:auto;overscroll-behavior:contain}
.pretty-select-menu-fallback{display:block}
.pretty-select-option{display:flex;align-items:center;width:100%;min-height:38px;padding:8px 11px;border:0;border-radius:9px;background:transparent;color:var(--ink);font-size:12px;line-height:1.4;text-align:left;cursor:pointer}
.pretty-select-option:hover,.pretty-select-option:focus-visible{outline:none;background:var(--brand-soft)}
.pretty-select-option[aria-selected="true"]{background:var(--brand-soft);color:var(--brand);font-weight:700}
.pretty-select-option[aria-selected="true"]::after{content:'✓';margin-left:auto;padding-left:10px}
.pretty-select-option:disabled{opacity:.45;cursor:not-allowed}
.admin-filter-select .pretty-select-shell{width:auto;flex:none}
.admin-filter-select .pretty-select-trigger{min-height:31px;padding:3px 2px;border:0;background:transparent;color:inherit;font-size:12px;font-weight:700;box-shadow:none}
.admin-filter-select .pretty-select-trigger ion-icon{width:13px;height:13px}
.admin-filter-select:has(.pretty-select-trigger)>ion-icon{display:none}
.payment-pickers .pretty-select-shell:first-child{flex:none;width:95px}
.import-upload-body .pretty-select-shell{margin-top:5px}
.editor-school-select .pretty-select-shell{margin-top:4px}

/* Membership cards: show the full price and its daily equivalent together. */
.payment-product{position:relative;gap:0;overflow:hidden;padding:22px 23px 20px;background:linear-gradient(155deg,#fff 56%,#f6f9ff);border-color:#d6e2f3;box-shadow:0 8px 24px rgba(30,64,125,.055)}
.payment-product::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#4b70d4}
.payment-product-weekly::before{background:#bd8a3b}
.payment-product-top{align-items:center}
.payment-product-top>span:first-child{padding:5px 9px;border-radius:6px;font-weight:700;letter-spacing:.06em}
.payment-product-duration{color:var(--ink-3);font-size:11px}
.payment-product-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-height:112px;margin-top:25px}
.payment-product-name{min-width:0}
.payment-product-main h2{font-size:20px;letter-spacing:.02em}
.payment-product-main p{margin-top:6px;font-size:12px;color:var(--ink-3)}
.payment-product-price{flex:none;text-align:right}
.payment-product-price-line{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}
.payment-product-price strong{display:block;color:var(--brand);font-size:35px;line-height:1;font-weight:750;letter-spacing:-.055em}
.payment-product-price del{color:var(--ink-3);font-size:13px;line-height:1}
.payment-product-discount{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border-radius:6px;background:var(--brand);color:#fff;font-size:12px;font-weight:750;white-space:nowrap}
.payment-product-price small{display:block;margin-top:8px;color:var(--ink-2);font-size:12px;white-space:nowrap}
.payment-product-price .payment-product-daily{display:inline-block;margin-top:9px;padding:5px 9px;border-radius:7px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:650}
.payment-product-mobile-discount,.payment-common-benefit,.payment-mobile-paper-benefit{display:none}
.payment-product-daily b{font-size:15px}
.payment-products{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.payment-product-main{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:18px;min-height:148px}
.payment-product-price{width:100%;text-align:left}
.payment-product-price-line{justify-content:flex-start}
.payment-product-year_membership::before{background:#9966be}
@media(max-width:650px){.payment-products{grid-template-columns:1fr}.payment-product-main{min-height:0}}
.payment-quote-dialog{width:min(440px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:0;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(18,41,83,.25);overflow:auto}
.payment-quote-dialog::backdrop{background:rgba(18,32,60,.52);backdrop-filter:blur(3px)}
.payment-quote-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:20px 22px 16px;border-bottom:1px solid var(--line)}
.payment-quote-head small{color:var(--brand);font-size:11px;font-weight:700}
.payment-quote-head h2{margin:5px 0 0;font-size:21px}
.payment-quote-head button{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink-2);cursor:pointer}
.payment-quote-body{padding:20px 22px 22px}
.payment-quote-price{display:flex;align-items:baseline;gap:11px}
.payment-quote-price strong{color:var(--brand);font-size:32px;line-height:1}
.payment-quote-price span{color:var(--ink-3);font-size:12px}
.payment-quote-discount{margin:8px 0 0;color:var(--brand);font-size:12px;font-weight:700}
.payment-quote-benefits{display:grid;gap:7px;margin:20px 0;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.payment-quote-benefits p{margin:0;color:var(--ink-2);font-size:13px}
.payment-quote-body .payment-unavailable{margin:0;line-height:1.5}
.payment-current{display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:9px 16px;border:1px solid var(--brand-line);border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:13px;line-height:1.4;white-space:nowrap}
.payment-current span{font-weight:750}
.payment-current b{padding-left:10px;border-left:1px solid var(--brand-line);font-weight:750}
.payment-pending-list{display:grid;gap:8px;margin:0 3px 16px;padding:13px 16px;border:1px solid var(--brand-line);border-radius:13px;background:var(--brand-soft);color:var(--ink)}
.payment-pending-list h2{margin:0 0 2px;font-size:13px}
.payment-pending-list p{display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px 10px;margin:0;font-size:12px;line-height:1.5}
.payment-pending-list span{color:var(--ink-2)}
.payment-quote-window{margin:15px 0 0;padding:11px 13px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700;line-height:1.5}
.payment-quote-window small{display:block;margin-top:3px;color:var(--ink-2);font-size:11px;font-weight:400}
@media(max-width:650px){.payment-page-head{align-items:flex-start;flex-direction:column}.payment-current{font-size:11px}}
.payment-product-benefits{display:grid;gap:8px;margin:19px 0 16px;padding:14px 0 0;border-top:1px solid var(--line)}
.payment-product-benefits span{display:flex;align-items:center;gap:7px;color:var(--ink-2);font-size:12px;line-height:1.4}
.payment-product-benefits ion-icon{flex:none;width:15px;height:15px;color:var(--brand)}
.payment-product-offer{margin:0 0 13px!important;color:var(--brand)!important;font-size:12px!important;font-weight:650}
.payment-product .payment-quote-button{width:100%;margin-top:auto}
@media(max-width:650px){.payment-product{padding:19px}.payment-product-main{min-height:0;margin-top:20px}.payment-product-price strong{font-size:32px}}
@media(max-width:650px){
  .payment-page{padding-top:0}
  .payment-page-head{gap:6px;padding:13px 2px 12px}
  .payment-page-head h1{font-size:23px}
  .payment-current{padding:6px 11px;font-size:10.5px}
  .payment-common-benefit{display:block;margin:0 0 11px;padding:10px 12px;border:1px solid var(--brand-line);border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:11.5px;line-height:1.5}
  .payment-products{gap:10px}
  .payment-product{gap:0;padding:12px 15px 11px;border-radius:14px}
  .payment-product-top>span:first-child{padding:4px 7px;font-size:10.5px}
  .payment-product-duration{font-size:10.5px}
  .payment-product-duration::after{content:' ›';font-size:16px;line-height:0}
  .payment-product-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:0;margin-top:9px}
  .payment-product-main h2{font-size:18px}
  .payment-product-main p{display:none}
  .payment-product-mobile-discount{display:inline-block;margin-top:6px;padding:4px 7px;border-radius:6px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:750;white-space:nowrap}
  .payment-product-price{width:auto;min-width:0;text-align:right}
  .payment-product-price-line{justify-content:flex-end;gap:4px}
  .payment-product-price-line .payment-product-discount{display:none}
  .payment-product-price strong{font-size:28px}
  .payment-product-price del{font-size:11px}
  .payment-product-price .payment-product-daily{margin-top:6px;padding:4px 7px;font-size:11px}
  .payment-product-daily b{font-size:12px}
  .payment-product-benefits{gap:0;margin:9px 0 0;padding:8px 0 0}
  .payment-product-benefits .payment-shared-benefit{display:none}
  .payment-product-benefits .payment-desktop-paper-benefit{display:flex}
  .payment-product-benefits .payment-mobile-paper-benefit{display:flex}
  .payment-product-benefits span{font-size:11.5px}
  .payment-product .payment-quote-button{position:absolute;inset:0;width:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
  .payment-product:focus-within{outline:2px solid var(--brand);outline-offset:2px}
  .payment-product:has(.payment-quote-button:disabled){opacity:.6}
}
@media(max-width:380px){.payment-product{padding-right:13px;padding-left:13px}.payment-product-main{gap:5px}.payment-product-main h2{font-size:16px}.payment-product-price strong{font-size:25px}.payment-product-price-line{gap:3px}}
.payment-preview-order{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0;padding:13px 16px;border:1px solid var(--brand-line);border-radius:12px;background:var(--brand-soft);color:var(--ink-2);font-size:12px}
.payment-preview-order strong{color:var(--ink);font-size:13px}.payment-preview-order span{flex:1 1 240px;overflow-wrap:anywhere}.payment-preview-order button{flex:none}.payment-preview-button{width:100%;margin:0 0 12px}
.payment-order-search form{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.payment-order-search form .input{flex:1 1 220px}.payment-order-search select{min-height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink)}.payment-order-results{max-height:390px;overflow:auto}.payment-order-results p{padding:9px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.payment-order-results small{display:block;color:var(--ink-3)}

.observation-help{margin:10px 0 12px;color:var(--ink-3);font-size:12px}.observation-help summary{cursor:pointer;display:inline-block;color:var(--brand);font-weight:650}.observation-help summary:hover{text-decoration:underline}.observation-help p{margin:8px 0 0;line-height:1.7;white-space:normal}.observation-help b{color:var(--ink-2)}

.observation-sort{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;padding:0;font:inherit;font-weight:inherit;white-space:nowrap}.observation-sort span{font-size:12px;opacity:.55}.observation-sort:hover,.observation-sort.active{color:var(--brand)}.observation-sort.active span{opacity:1}.observation-sort:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:2px}

.cap-challenge-dialog{width:min(390px,calc(100vw - 32px));max-width:none;margin:auto;padding:0;border:1px solid var(--brand-line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 24px 70px rgba(0,0,0,.28)}
.cap-challenge-dialog::backdrop{background:rgba(8,17,34,.55);backdrop-filter:blur(3px)}
.cap-challenge-card{padding:22px 24px 20px}.cap-challenge-head{display:flex;align-items:center;justify-content:space-between}.cap-challenge-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:20px}.cap-challenge-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink-3);font-size:20px;cursor:pointer}.cap-challenge-close:hover{background:var(--brand-soft);color:var(--ink)}
.cap-challenge-card h2{margin:17px 0 7px;font-size:19px;line-height:1.35}.cap-challenge-card p{margin:0;color:var(--ink-2);font-size:12px;line-height:1.6}.cap-challenge-widget{display:flex;justify-content:center;margin:21px 0 4px;min-height:61px}.cap-challenge-widget cap-widget{max-width:100%;--cap-background:var(--surface);--cap-border-color:var(--line);--cap-border-radius:10px;--cap-widget-width:286px;--cap-color:var(--ink);--cap-checkbox-background:var(--brand-soft);--cap-checkbox-border:1px solid var(--brand-line);--cap-spinner-color:var(--brand)}.cap-challenge-card .cap-challenge-feedback{min-height:18px;text-align:center;color:var(--brand);font-size:11px}
@media(max-width:420px){.cap-challenge-card{padding:19px 18px 17px}.cap-challenge-card h2{font-size:18px}}
.cap-observation{margin-top:16px}.cap-observation-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cap-observation-heading h2{margin:0 0 5px}.cap-observation-heading p,.cap-observation-note{margin:0;color:var(--ink-3);font-size:12px;line-height:1.6}.cap-observation-heading button,.cap-observation td button{border:1px solid var(--brand-line);border-radius:8px;background:var(--brand-soft);color:var(--brand);padding:6px 10px;font-size:12px;cursor:pointer}.cap-observation-metrics{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.cap-observation-metrics span{padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--ink-2);font-size:12px}.cap-observation-metrics b{color:var(--ink);font-size:15px}.cap-observation-note{margin:9px 0 13px}.cap-observation td small{display:block;color:var(--ink-3);font-size:11px}.cap-observation table{min-width:760px}
.cap-observation .cap-review-actions{white-space:nowrap}.cap-review-actions button+button{margin-left:5px}

/* Mobile security triage: one account or verification event per card. */
.security-filter-menu{display:contents}.security-filter-menu>summary{display:none}.security-filter-menu:not([open]) .security-filters{display:flex}.cap-observation-more:not([open]) .cap-observation-metrics{display:flex}.security-mobile-list,.cap-mobile-list,.cap-observation-mobile-summary,.cap-observation-more>summary{display:none}
@media(max-width:760px){
  .security-filter-menu{display:block;margin:16px 0 12px}.security-filter-menu>summary{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink-2);font-size:12px;cursor:pointer;list-style:none}.security-filter-menu>summary::-webkit-details-marker{display:none}.security-filter-menu>summary strong{color:var(--brand);font-size:13px}.security-users .security-filters{margin:8px 0 0;padding:8px 0;flex-wrap:wrap;border:0}.security-filter-menu:not([open]) .security-filters{display:none}
  .security-mobile-list,.cap-mobile-list{display:grid;gap:10px}.security-users .security-table-wrap,.cap-observation>.observation-table-wrap{display:none}.security-mobile-card,.cap-mobile-card{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.security-mobile-top,.cap-mobile-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.security-mobile-name,.cap-mobile-top strong{font-size:14px;color:var(--ink);overflow-wrap:anywhere}.security-mobile-top small,.cap-mobile-top small{display:block;margin-top:4px;font-size:11px;color:var(--ink-3)}.security-test-label{display:inline-block;margin-left:6px;color:var(--ink-3);font-size:10px;font-weight:500}.security-mobile-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.security-mobile-numbers>div{padding:10px 12px;border-radius:9px;background:var(--surface-2)}.security-mobile-numbers span,.cap-mobile-reading span{display:block;color:var(--ink-3);font-size:11px}.security-mobile-numbers strong{display:block;margin-top:4px;font-size:22px;font-variant-numeric:tabular-nums;color:var(--ink)}.security-mobile-numbers strong small{font-size:11px;margin-left:3px;font-weight:400}.security-mobile-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:11px;color:var(--ink-3);font-size:11px}.security-mobile-foot button{flex:none}
  .cap-observation-mobile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.cap-observation-mobile-summary>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.cap-observation-mobile-summary span{display:block;color:var(--ink-3);font-size:11px}.cap-observation-mobile-summary strong{display:block;margin-top:4px;color:var(--ink);font-size:22px;font-variant-numeric:tabular-nums}.cap-observation-mobile-summary .needs-review strong{color:var(--brand)}.cap-observation-more{margin:0 0 14px}.cap-observation-more>summary{display:block;color:var(--brand);font-size:12px;cursor:pointer}.cap-observation-more:not([open]) .cap-observation-metrics{display:none}.cap-observation-metrics{margin:10px 0 0}.cap-observation-note{margin:12px 0 16px}
  .cap-mobile-top{padding-bottom:12px;border-bottom:1px solid var(--line)}.cap-mobile-status{white-space:nowrap;color:var(--brand);font-size:11px}.cap-mobile-reading{display:grid;grid-template-columns:110px 1fr;gap:8px;align-items:baseline;margin-top:12px}.cap-mobile-reading strong{font-size:13px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}.cap-mobile-reading em{font-style:normal;color:var(--ink-3)}.cap-mobile-error{margin-top:10px;color:var(--ink-3);font-size:11px}.cap-mobile-review{display:grid;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:11px;color:var(--ink-3)}.cap-mobile-review .cap-review-actions{display:flex;gap:8px}.cap-mobile-review .cap-review-actions button{flex:1;min-height:36px}.cap-review-actions button+button{margin-left:0}
}

/* Desktop security review: readable event cards and explicit scope. */
@media(min-width:761px){
  .security-heading p,.cap-observation-heading p{max-width:620px;line-height:1.5;font-size:13px;color:var(--ink-2)}
  .cap-observation-mobile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 12px}
  .cap-observation-mobile-summary>div{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
  .cap-observation-mobile-summary span{display:block;font-size:12px;color:var(--ink-3)}
  .cap-observation-mobile-summary strong{display:block;margin-top:4px;font-size:24px;font-variant-numeric:tabular-nums;color:var(--ink)}
  .cap-observation-mobile-summary .needs-review strong{color:var(--brand)}
  .cap-observation-more{display:block}.cap-observation-more>summary{display:list-item;color:var(--brand);font-size:12px;cursor:pointer;list-style:disclosure-closed inside}
  .cap-observation-more:not([open]) .cap-observation-metrics{display:none}.cap-observation-more[open] .cap-observation-metrics{display:flex}
  .cap-observation>.observation-table-wrap{display:none}
  .cap-mobile-list{display:grid;gap:12px;margin-top:16px}
  .cap-mobile-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  .cap-mobile-top{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
  .cap-mobile-top strong{font-size:14px;color:var(--ink);overflow-wrap:anywhere}.cap-mobile-top small{display:block;margin-top:4px;color:var(--ink-3);font-size:11px}
  .security-test-label{display:inline-block;margin-left:8px;color:var(--ink-3);font-size:11px;font-weight:400}.cap-mobile-status{font-size:12px;color:var(--brand);white-space:nowrap}
  .cap-mobile-reading{display:grid;gap:6px;padding:14px 0 0}.cap-mobile-reading span{color:var(--ink-3);font-size:11px}.cap-mobile-reading strong{color:var(--ink);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.cap-mobile-reading em{font-style:normal;color:var(--ink-3)}
  .cap-mobile-error{grid-column:1/-1;color:var(--ink-3);font-size:11px;margin:10px 0 0}
  .cap-mobile-review{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);color:var(--ink-3);font-size:12px}
  .cap-mobile-review .cap-review-actions{display:flex;gap:8px}.cap-mobile-review .cap-review-actions button{min-width:94px}.cap-mobile-review .cap-review-actions button+button{margin-left:0}
}
.site-icp{display:block;margin-top:6px}.site-icp a{color:inherit;text-decoration:none}.site-icp a:hover{text-decoration:underline}
@media(max-width:650px){.shell .site-footer,.shell[data-auth-guest] .site-footer{display:block;padding:14px 16px calc(82px + env(safe-area-inset-bottom));font-size:10px}.shell[data-auth-guest] .site-footer{padding-bottom:calc(18px + env(safe-area-inset-bottom))}}

/* Let the desktop account overview use the same content width as the knowledge tree entry. */
@media(min-width:900px){
  .shell[data-view="account"] .profile-head,
  .shell[data-view="account"] .profile-links,
  .shell[data-view="account"] .profile-section{max-width:none}
  .shell[data-view="account"] .profile-head:has(.profile-stats){position:relative;min-height:230px;padding:38px 42px}
  .shell[data-view="account"] .profile-head .profile-stats{position:absolute;top:50%;right:42px;transform:translateY(-50%);width:min(42%,460px);max-width:none;margin:0}
}
@media(min-width:900px) and (max-width:1100px){
  .shell[data-view="account"] .profile-head:has(.profile-stats){min-height:0;padding:30px}
  .shell[data-view="account"] .profile-head .profile-stats{position:static;transform:none;width:100%;margin-top:24px}
}
