@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');
:root{--bg:#f7f7fc;--surface:#fff;--ink:#1d2037;--muted:#606580;--faint:#777b96;--rule:#e8e8f2;--accent:#5844bd;--accent-dark:#413097;--sidebar:#17192e;--sidebar-mid:#22243e;--round:16px;--sidebar-w:230px;font:15px/1.55 'DM Sans','Microsoft YaHei','PingFang SC',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #7357e3;outline-offset:3px}
input,select,textarea{border:1px solid #dcdcec;border-radius:9px;padding:9px 11px;background:#fff;color:var(--ink);max-width:100%}
input[type=checkbox]{accent-color:var(--accent)}
textarea{resize:vertical}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.35}
h1{font-size:34px;letter-spacing:-.035em}
h2{font-size:18px;font-weight:700;letter-spacing:-.02em}
h3{font-size:16px}
p{color:var(--muted)}
.icon{width:19px;height:19px;flex:0 0 auto;vertical-align:middle;opacity:.81}
.boot{display:grid;place-items:center;min-height:100vh;color:var(--muted)}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);background:var(--sidebar);color:#b5b8d2;z-index:4;display:flex;flex-direction:column;padding:26px 17px 16px;overflow:auto}
.brand{display:flex;align-items:center;gap:11px;margin:0 4px 32px}
.brand>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#7965ef;box-shadow:0 5px 15px #0a091e70;flex:none}
.brand>span .icon{filter:invert(1);opacity:1;width:22px;height:22px}
.brand strong{font-size:19px;letter-spacing:.045em;display:block;line-height:1.3;color:#fff}
.brand small,.side-footer small{font-size:11px;display:block;color:#a7abc5;margin-top:3px}
.nav-caption{margin:0 12px 8px;color:#a3a7c1;font-size:11px;letter-spacing:.13em}
.nav-caption.second{margin-top:22px}
.nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;margin:2px 0;border-radius:10px;min-height:42px;font-size:14px;white-space:nowrap}
.nav-item .icon,.side-exam .icon,.profile .icon{filter:invert(1);opacity:.66}
.nav-item:hover,.profile:hover{background:#2a2c48;color:#fff}
.nav-item.active{background:#373362;color:#eee9ff;font-weight:700;position:relative}
.nav-item.active::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:4px;background:#a996ff}
.nav-item.active .icon{opacity:1}
.nav-item b{margin-left:auto;font-size:11px;background:#56458a;color:#fff;border-radius:10px;padding:0 6px}
.side-footer{margin-top:auto;padding-top:20px}
.side-exam{display:flex;gap:9px;align-items:center;border:1px solid #3b3d5a;border-radius:11px;padding:10px;margin:0 0 14px}
.side-exam b{color:#ebebf8;font-size:12px}
.side-exam small{font-size:10px}
.profile{display:flex;align-items:center;gap:9px;width:100%;border:0;border-top:1px solid #343651;color:#dcdff2;background:transparent;padding:13px 7px 2px;text-align:left;font-size:13px}
.workspace{margin-left:var(--sidebar-w);min-height:100vh}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:70px;padding:0 clamp(21px,3.5vw,48px);background:#fff;border-bottom:1px solid var(--rule)}
.crumb,.top-actions{display:flex;align-items:center;gap:11px;white-space:nowrap}
.crumb span{font-size:13px;color:var(--muted)}
.crumb .icon{width:14px;height:14px;opacity:.55}
.crumb strong{font-size:13px}
.search-shortcut,.top-ai,.avatar,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--rule);border-radius:9px;background:#f9f9fd;color:var(--muted);padding:7px 11px;font-size:13px;white-space:nowrap}
.search-shortcut::after{content:"Ctrl K";color:#686982;font-size:10px;margin-left:18px;border:1px solid #dedeee;border-radius:4px;padding:0 4px}
.top-ai{color:var(--accent-dark);background:#f1edff;border-color:#ece5ff;font-weight:700}
.top-ai .icon,.button.primary .icon,.hero-alt .icon{width:16px;height:16px}
.avatar{border:0;border-radius:50%;width:34px;height:34px;background:#eae4ff;color:#4c37a8;font-weight:700;padding:0}
.mobile-menu,.scrim{display:none}
.main{max-width:1390px;margin:0 auto;padding:30px clamp(21px,3.5vw,48px) 60px}
.intro,.page-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:21px}
.intro h1{font-size:38px;margin:3px 0 5px}
.intro h1 em{color:#6854d6;font-style:normal}
.intro .date{display:flex;align-items:center;gap:6px;font-size:13px}
.date .icon{width:15px;height:15px;opacity:.58}
.exam{background:#efebff;color:#4b3996;border:1px solid #e7dfff;display:flex;gap:7px;align-items:center;white-space:nowrap;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700;align-self:end;margin-bottom:4px}
.exam i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7a61db}
.hero{min-height:263px;background:radial-gradient(ellipse at 82% 57%,#493882 0%,transparent 61%),linear-gradient(115deg,#262047,#302456 56%,#3d316b);position:relative;overflow:hidden;border:1px solid #3e316a;border-radius:19px;color:white;isolation:isolate}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(#b9a9ff45 1px,transparent 1px);background-size:20px 20px;mask-image:linear-gradient(90deg,transparent 22%,black 100%)}
.hero-copy{padding:29px 35px 32px;position:relative;z-index:2;width:max-content;max-width:100%}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:#e3d7ff;font-size:12px;font-weight:700;background:#ffffff12;border:1px solid #ffffff29;border-radius:20px;padding:5px 10px}
.eyebrow .icon{width:15px;height:15px;filter:invert(1)}
.hero h2{font-size:clamp(30px,3.8vw,46px);letter-spacing:-.045em;margin:9px 0 7px;font-weight:750}
.hero h2+p{color:#e0d8f3;font-size:14px;line-height:1.65;margin-bottom:18px}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.button,.text-link,.tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;border:1px solid #deddf0;background:white;color:var(--ink);font-weight:700;font-size:13px;line-height:1.35;min-height:36px;padding:8px 12px;white-space:nowrap}
.button:hover{border-color:#bcb0ec;background:#f8f5ff}
.button:disabled{opacity:.56}
.button .icon,.text-link .icon{width:16px;height:16px}
.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.button.primary:hover{background:var(--accent-dark)}
.button.primary img,.hero-alt img{filter:invert(1)}
.hero-main{background:#faf7ff;color:#362669;border-color:#faf7ff}
.hero-alt{background:#ffffff10;border-color:#ffffff45;color:white}
.hero-alt:hover{background:#ffffff22;border-color:#ffffff77}
.art{position:absolute;top:50%;right:4%;width:44%;height:270px;transform:translateY(-50%);pointer-events:none}
.element,.trace,.atom-note,.particle{position:absolute;left:50%;top:50%}
.trace{width:87%;height:39%;border:1px solid #c8b7ff68;border-radius:50%;transform:translate(-50%,-50%) rotate(-15deg);box-shadow:0 0 10px #b497ff17}
.trace.t2{transform:translate(-50%,-50%) rotate(-51deg);width:78%}
.trace.t3{transform:translate(-50%,-50%) rotate(36deg);width:79%;height:42%}
.trace.t4{transform:translate(-50%,-50%) rotate(4deg);width:96%;height:63%;border-style:dashed;border-color:#c6b9ff3a}
.element{width:108px;height:118px;border-radius:19px;border:1px solid #e4d7ff8c;background:linear-gradient(148deg,#8d70e3,#5940a5 65%,#6e50c3);box-shadow:0 14px 32px #1e164c9c,inset 0 0 22px #baa5ff40;transform:translate(-50%,-50%) rotate(-10deg);display:flex;align-items:center;justify-content:center;flex-direction:column;font-family:'Instrument Sans','DM Sans','Microsoft YaHei',sans-serif;color:#fff}
.element small{align-self:start;margin-left:12px;margin-top:3px;color:#f2eaff;font-size:12px}
.element strong{font-size:57px;line-height:1;font-weight:600}
.element span{color:#f0e8ff;font-size:10px;margin-top:6px}
.atom-note{background:#6b5baf57;color:#e7dfff;border:1px solid #c6b2f35e;padding:4px 10px;border-radius:7px;font-size:12px;font-weight:700}
.atom-note.n1{left:14%;top:23%;transform:rotate(-10deg)}
.atom-note.n2{left:80%;top:70%;transform:rotate(9deg)}
.particle{width:6px;height:6px;border-radius:50%;background:#e4d5ff;box-shadow:0 0 11px 3px #ddc3ff63}
.particle.p1{left:72%;top:22%}.particle.p2{left:27%;top:76%}.particle.p3{left:89%;top:42%;width:5px;height:5px}
.card{background:var(--surface);border:1px solid var(--rule);border-radius:var(--round);padding:19px;margin-bottom:16px;min-width:0;box-shadow:0 3px 10px #24234e05}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:15px 0 0}
.metric{display:flex;align-items:center;gap:11px;padding:14px;margin-bottom:15px}
.badge{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;flex:none;background:#f1edff}
.badge .icon{width:18px;height:18px}
.c0{background:#f0ebff}.c0 .icon{filter:invert(27%) sepia(85%) saturate(1228%) hue-rotate(234deg)}
.c1{background:#e9f8f2}.c1 .icon{filter:invert(25%) sepia(52%) saturate(1159%) hue-rotate(122deg)}
.c2{background:#ecf3ff}.c2 .icon{filter:invert(34%) sepia(81%) saturate(1170%) hue-rotate(193deg)}
.c3{background:#fff4e5}.c3 .icon{filter:invert(36%) sepia(66%) saturate(1161%) hue-rotate(8deg)}
.metric small,.task small,.module small,.question-row small,.model-row small,td small{display:block;color:var(--muted);font-size:12px}
.metric small{white-space:nowrap}
.metric b{font-size:24px;line-height:1.2;letter-spacing:-.04em}
.metric sub{font-size:11px;vertical-align:baseline;color:var(--muted)}
.home-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:15px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 13px}
.section-title p{font-size:13px;margin-top:3px}
.pill{display:inline-flex;align-items:center;vertical-align:middle;background:#f1edfb;color:#55448b;border-radius:20px;padding:4px 8px;font-size:11px;line-height:1.4;white-space:nowrap}
a.pill:hover{background:#e6ddfc}
.task,.question-row,.model-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--rule);min-width:0}
.task:last-child,.question-row:last-child,.model-row:last-child{border-bottom:0;padding-bottom:2px}
.task:first-of-type,.question-row:first-of-type,.model-row:first-of-type{padding-top:2px}
.task a,.question-row>span:nth-child(2),.model-row>div{flex:1;min-width:0}
.task b,.question-row b,.model-row b,.module b{font-size:14px}
.task small,.question-row small,.module small{margin-top:2px}
.task a:hover,.question-row:hover,.module:hover{color:var(--accent)}
.check{background:#fff;border:1px solid #d9d9eb;border-radius:6px;width:22px;height:22px;padding:0;color:#fff;flex:none}
.check:hover{border-color:var(--accent)}
.check.checked{background:var(--accent);border-color:var(--accent)}
.ai-card{background:radial-gradient(ellipse at right top,#e9e2ff,transparent 69%),#fcfbff;border-color:#e9e1fc;min-height:215px}
.ai-card .badge{margin-bottom:9px;background:#e8ddff}
.ai-card h2{margin-bottom:7px}
.ai-card p{font-size:13px;margin:0 0 13px;max-width:34ch}
.text-link{border:0;background:none;padding:0;color:var(--accent-dark);min-height:0}
.text-link:hover{text-decoration:underline}
.modules-title{margin-top:11px}
.modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.module{display:flex;align-items:center;gap:10px;margin-bottom:0;padding:13px;text-align:left}
.module>span:nth-child(2){flex:1}
.module>.icon:last-child,.question-row>.icon:last-child{width:15px;height:15px;opacity:.45}
.page-head p{margin-top:5px}
.toolbar,.question-meta,.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.toolbar input{width:min(100%,350px)}
.points,.paper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 15px}
.points a{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--rule);border-radius:9px}
.points a:hover{background:#f8f5ff}
.points a>span{margin-left:auto}
.points a>.icon{width:16px;height:16px}
.detail{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
.detail .card .button{margin-top:12px}
article h3{margin:18px 0 4px}
article p,.card>p{margin:0 0 10px}
.back{margin:0 0 10px}
.paper-question{padding:13px 0;border-bottom:1px solid var(--rule)}
.paper-question:last-child{border-bottom:0}
.paper-question p{margin:3px 0 7px}
.paper-question .pill{margin-bottom:4px}
.empty{padding:23px 12px;text-align:center;border:1px dashed #e3e0f2;border-radius:12px;margin:6px 0;color:var(--muted)}
.empty>.icon{opacity:.47;margin-bottom:6px}
.question-stem{margin-bottom:15px;font-size:20px}
.options{display:grid;gap:9px;margin-bottom:15px}
.option{display:flex;align-items:center;gap:12px;border:1px solid var(--rule);border-radius:10px;background:#fff;color:var(--ink);padding:10px;text-align:left}
.option span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#f0eff8;color:#48445f;font-weight:700;flex:none}
.option.selected{background:#f4efff;border-color:#ad99ee}
.option.right{background:#eefaf4;border-color:#93cfab}
.option.incorrect{background:#fff3f3;border-color:#efb6b6}
.result{margin-bottom:14px;border:1px solid #a8dbc0;background:#f1fbf5;border-radius:10px;padding:13px}
.result.incorrect{background:#fff5f0;border-color:#efc7bb}
.result p{margin-top:4px}
.tab{border-color:transparent;background:#efedf8}
.tab.active{background:#e7ddfc;color:var(--accent-dark);border-color:#e0d3fb}
table{border-collapse:collapse;width:100%;text-align:left}
td,th{padding:10px 8px;border-bottom:1px solid var(--rule);vertical-align:top}
td:not(:first-child),th{white-space:nowrap}
.table-wrap{overflow:auto}
.field{display:grid;gap:5px;margin-bottom:10px;color:var(--ink);font-size:13px;font-weight:700}
.inline,.inline-form{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.inline-form .field,.inline-form input{margin:0}
.inline-form input[type=number]{width:68px}
.inline-form{margin-bottom:13px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;align-items:start}
.form-grid fieldset{grid-column:1/-1;margin-bottom:10px}
fieldset{border:1px solid var(--rule);border-radius:9px}
fieldset label{display:inline-flex;align-items:center;gap:4px;padding-right:10px}
dialog{border:1px solid #e2dcfa;border-radius:17px;padding:20px;width:min(520px,calc(100% - 24px));max-height:90vh;box-shadow:0 18px 74px #1f154f4d;color:var(--ink)}
dialog::backdrop{background:#17192e78}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
dialog p{margin-bottom:12px}
.ai-response{margin-top:12px;border-radius:10px;background:#f5f0ff;padding:13px;white-space:pre-wrap}
#ai-result{margin-top:10px}
#toast{position:fixed;bottom:22px;right:22px;z-index:20;background:#2a254e;color:#fff;padding:9px 14px;border-radius:10px;opacity:0;pointer-events:none;max-width:83vw}
#toast.show{opacity:1}
@media(max-width:1160px){:root{--sidebar-w:203px}.main,.topbar{padding-left:24px;padding-right:24px}.metric{padding:12px;gap:8px}}
@media(max-width:880px){:root{--sidebar-w:175px}.main,.topbar{padding-left:18px;padding-right:18px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:15px;gap:8px}.metric{margin-bottom:0}.modules{grid-template-columns:repeat(2,minmax(0,1fr))}.detail{grid-template-columns:1fr}.art{right:2%;width:43%}.home-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
 .sidebar{transform:translateX(-100%);width:224px;transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.workspace{margin:0}.scrim{display:block;z-index:3;position:fixed;inset:0;background:#20183f77;border:0;width:100%}.mobile-menu{display:inline-flex;padding:5px}.topbar{height:55px;padding:0 12px}.crumb{gap:7px}.crumb .mobile-menu .icon{width:18px;height:18px;opacity:1}.crumb>span,.crumb>.icon{display:none}.top-actions{gap:5px}.search-shortcut,.top-ai{font-size:12px;padding:6px 7px;gap:4px}.search-shortcut::after{display:none}.search-shortcut .icon{width:14px;height:14px}.avatar{width:29px;height:29px}.main{padding:17px 12px 35px}.intro h1{font-size:29px}.intro>div>p:last-child{font-size:12px}.exam{font-size:10px;padding:4px 7px}.hero{min-height:226px}.hero h2{font-size:30px}.hero-copy{padding:22px 15px}.hero h2+p{font-size:12px}.art{width:43%;right:1%;transform:translateY(-58%) scale(.81);opacity:.55}.element{transform:translate(-50%,-50%) rotate(-10deg) scale(.8)}.hero-main,.hero-alt{min-height:34px;padding:7px 8px}.home-grid{grid-template-columns:1fr;gap:0}.ai-card{min-height:0}.modules,.points,.paper-grid{grid-template-columns:1fr}.card{padding:13px}.metric{padding:9px}.badge{width:34px;height:34px}.page-head h1{font-size:27px}.page-head p{font-size:13px}.table-wrap{max-width:100%}.question-row>.pill{display:none}.question-stem{font-size:18px}.section-title{flex-wrap:wrap}
}

.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}
.login-art{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 65% 65%,#493580,#262046 62%,#1a1834);color:#fff;padding:clamp(25px,5vw,80px);display:flex;flex-direction:column;justify-content:space-between;min-height:560px}
.login-art::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(#b9a9ff45 1px,transparent 1px);background-size:23px 23px;mask-image:linear-gradient(135deg,transparent 10%,black)}
.login-art h1{font-size:clamp(36px,6vw,84px);margin-top:12px;line-height:1.15}
.login-art p{color:#ddd2f8}
.login-brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700}
.login-brand .icon{filter:invert(1);width:26px;height:26px}
.login-art .art{right:9%;width:73%;top:48%}
.login-panel{display:grid;align-items:center;padding:clamp(22px,6vw,105px)}
.login-panel>div{width:min(100%,385px);margin:auto}
.login-panel h2{font-size:34px;margin-bottom:7px}
.login-panel>div>p{margin-bottom:25px}
.login-panel input{min-height:46px}
.login-panel .field{margin-bottom:15px}
.login-panel form>.button{width:100%;padding:12px;font-size:15px}
.auth-links{justify-content:space-between;margin-top:19px}
.auth-error{color:#9d2736;margin-bottom:7px}
.auth-error:empty{display:none}
.verification-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-bottom:12px}
.login-panel .verification-row .field{margin:0}
.verification-row .button{min-height:46px;white-space:nowrap}
.verification-status{margin:0 0 12px;font-size:13px}
.verification-status:empty{display:none}
.rubric{margin:0 0 12px;padding:10px}
.rubric label{display:flex;padding:4px 0}
#score,.score-label{margin-bottom:14px}
.mistake{border-bottom:1px solid var(--rule);padding:6px 0 12px}
.mistake:last-child{border-bottom:0}
.mistake .actions{padding:5px 0 0 49px}
.mistake small{overflow-wrap:anywhere;color:var(--muted)}
.report-line{display:grid;grid-template-columns:48px 1fr 81px;align-items:center;gap:8px;padding:6px 0}
.report-line progress{width:100%;accent-color:var(--accent)}
.report-line span{font-size:12px;text-align:right}
#import details{margin:8px 0 12px}
#import pre{overflow:auto}
@media(max-width:640px){.login-layout{grid-template-columns:1fr;min-height:100svh;align-content:start}
.login-art{min-height:235px;padding:22px}.login-art h1{font-size:35px}.login-art .art{opacity:.68;width:49%;right:1%}
.login-panel{padding:24px 20px 40px}.login-panel h2{font-size:29px}}

.exam-facts{font-weight:700;font-size:13px;margin:10px 0}
.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(215px,275px);gap:16px;align-items:start}
.exam-layout>section:last-child{position:sticky;top:16px}
.exam-status,.exam-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;margin-bottom:16px;border:1px solid #e5dcfa;border-radius:14px;background:#f1ecff;color:#422784}
.exam-status strong,.exam-summary strong{font-variant-numeric:tabular-nums;font-size:22px}
.exam-status strong.expiring{color:#a32a38}
#exam-save-status{font-size:12px;line-height:1.3;text-align:right}
.exam-summary{justify-content:flex-start;gap:clamp(16px,4vw,48px)}
.exam-summary div{display:grid;gap:3px}
.exam-summary small{font-weight:700;color:var(--muted)}
.exam-summary strong span{font-size:13px;color:var(--muted)}
.answer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.answer-number{border:1px solid var(--rule);border-radius:8px;aspect-ratio:1;max-height:42px;background:#fff;color:var(--ink);font-weight:700}
.answer-number.done{background:#e9f8ef;border-color:#bee4cb;color:#1e653a}
.answer-number.lost{background:#fff2f2;border-color:#edc0c4;color:#8d3341}
.answer-number.pending{background:#fff3e2;border-color:#efd3a9;color:#835515}
.answer-number.current{outline:2px solid var(--accent);outline-offset:-2px}
.exam-written{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border-radius:10px;padding:12px;margin-bottom:12px}
.exam-figure{margin:0 0 15px;border:1px solid var(--rule);padding:10px 12px;border-radius:10px}
.exam-figure figcaption{font-size:13px;font-weight:700;margin-bottom:6px}
.exam-figure td{white-space:normal}
.figure-flow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0;margin:0;list-style:none}
.figure-flow li{display:flex;align-items:center;gap:8px;border-radius:7px;background:#f2edff;padding:5px 9px;color:#443783;font-size:13px}
.figure-flow li:not(:first-child)::before{content:"→";font-weight:700}
.exam-controls{justify-content:space-between;margin-top:14px}
.exam-q-number{color:var(--accent)}
.exam-picker{flex:1;min-width:0;margin-bottom:0}
.exam-picker select{width:100%;text-overflow:ellipsis}
.exam-editor-list{padding-left:24px;max-height:40vh;overflow:auto}
.exam-editor-list li{padding:5px 0;border-bottom:1px solid var(--rule)}
.exam-editor-list li>span{overflow-wrap:anywhere}
.exam-editor-list li>div{display:flex;gap:10px}
.exam-editor-list button:disabled{opacity:.5}
.exam-missed .model-row{flex-wrap:wrap}
.exam-missed .model-row>div{flex-basis:180px}
.source-strip{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:12px 14px;border:1px solid #e5dcfa;border-radius:12px;background:#f7f4ff;color:#4a3f83;font-size:13px}
.source-strip .icon{flex:0 0 auto}
.source-strip span{flex:1}
.book-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.book-toolbar form{display:flex;align-items:end;gap:10px;margin:0}
.book-toolbar .field{margin:0;min-width:150px}
.book-count{font-size:13px;color:var(--muted);padding-bottom:11px;white-space:nowrap}
.book-viewer{padding:0;overflow:hidden;background:#2a2940;min-height:72vh}
.book-viewer iframe{display:block;width:100%;height:78vh;min-height:620px;border:0;background:#fff}
.book-note p{margin:0;color:var(--muted);line-height:1.75}
@media(max-width:780px){.exam-layout{grid-template-columns:minmax(0,1fr)}.exam-layout>section:last-child{position:static;grid-row:1}.answer-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.answer-number{font-size:12px;min-height:27px}.exam-layout>.card{margin-bottom:0}}
@media(max-width:640px){.source-strip{align-items:flex-start;flex-wrap:wrap}.source-strip span{flex-basis:calc(100% - 34px)}.source-strip .button{margin-left:34px}.book-toolbar{align-items:stretch;flex-direction:column}.book-toolbar form{width:100%}.book-toolbar .field{flex:1}.book-toolbar .button{min-height:44px}.book-viewer{margin-left:-1px;margin-right:-1px}.book-viewer iframe{height:70vh;min-height:520px}}

