.assistant-tool-card.paper-review{--tool-accent:#596fa0;--tool-soft:#edf2fb}
#examReviewPanel{--panel:var(--surface,#fff)}
.exam-review-studio{max-width:1180px;margin:0 auto;padding:clamp(12px,2vw,24px);display:grid;gap:16px}
.exam-review-hero{min-height:178px;display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:28px;overflow:hidden;position:relative}
.exam-review-hero-copy small{display:block;color:var(--primary);font-size:12px;font-weight:900;letter-spacing:.14em;margin-bottom:10px}
.exam-review-hero-copy h2{margin:0 0 9px;font-size:clamp(24px,3vw,38px);letter-spacing:-.04em;color:var(--text)}
.exam-review-hero-copy p{margin:0;color:var(--muted);line-height:1.75;max-width:680px}
.exam-review-hero-note{border:1px solid var(--border);background:color-mix(in srgb,var(--surface) 84%,var(--primary) 16%);border-radius:18px;padding:18px;display:grid;gap:11px}
.exam-review-hero-note span{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px}
.exam-review-hero-note b{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--panel);color:var(--primary);font-size:12px}
.exam-review-card{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:clamp(18px,2.4vw,28px);box-shadow:0 16px 42px color-mix(in srgb,var(--text) 7%,transparent)}
.exam-review-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.exam-review-card-head h3{margin:0 0 5px;color:var(--text);font-size:21px}.exam-review-card-head p{margin:0;color:var(--muted);line-height:1.65}
.exam-review-expiry{flex:none;border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:7px 11px;color:var(--muted);font-size:12px}
.exam-review-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.exam-review-file{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:112px;border:1.5px dashed var(--border);background:var(--surface);border-radius:17px;padding:16px;cursor:pointer;transition:.18s ease}
.exam-review-file:hover,.exam-review-file.is-dragging{border-color:var(--primary);background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%);transform:translateY(-1px)}
.exam-review-file.is-ready{border-style:solid;border-color:color-mix(in srgb,var(--primary) 55%,var(--border))}
.exam-review-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.exam-review-file-icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--border);color:var(--primary)}
.exam-review-file-icon svg{width:24px;height:24px}.exam-review-file-copy{min-width:0}.exam-review-file-copy strong{display:block;color:var(--text);font-size:16px;margin-bottom:6px}.exam-review-file-copy span{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exam-review-file-tag{color:var(--primary);font-size:12px;font-weight:800;background:var(--panel);border-radius:999px;padding:6px 9px}
.exam-review-actionbar{margin-top:17px;display:flex;align-items:center;gap:14px}.exam-review-generate{min-height:48px;border:0;border-radius:13px;background:var(--primary);color:#fff;font-weight:800;padding:0 24px;cursor:pointer;box-shadow:0 9px 20px color-mix(in srgb,var(--primary) 24%,transparent)}.exam-review-generate:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.exam-review-status{flex:1;min-width:0;color:var(--muted);font-size:13px;line-height:1.55}.exam-review-status b{display:block;color:var(--text);font-size:14px}.exam-review-progress{height:7px;background:var(--surface);border-radius:999px;overflow:hidden;margin-top:8px}.exam-review-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--primary),color-mix(in srgb,var(--primary) 60%,#fff));border-radius:inherit;transition:width .35s ease}.exam-review-status.error b{color:#b64f52}
.exam-review-result{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;background:color-mix(in srgb,var(--surface) 86%,var(--primary) 14%);border:1px solid color-mix(in srgb,var(--border) 70%,var(--primary) 30%);border-radius:17px;padding:17px 18px}.exam-review-result strong{display:block;font-size:17px;color:var(--text);margin-bottom:5px}.exam-review-result p{margin:0;color:var(--muted);font-size:13px}.exam-review-result-actions{display:flex;gap:9px}.exam-review-result-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--border);border-radius:11px;background:var(--panel);color:var(--text);font-weight:700;padding:0 15px;text-decoration:none}.exam-review-result-actions a.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
@media(max-width:820px){.exam-review-hero{grid-template-columns:1fr;min-height:0}.exam-review-hero-note{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px}.exam-review-hero-note span{display:grid;text-align:center}.exam-review-files{grid-template-columns:1fr}.exam-review-actionbar{align-items:stretch;flex-direction:column}.exam-review-generate{width:100%}.exam-review-result{grid-template-columns:1fr}.exam-review-result-actions{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:520px){.exam-review-studio{padding:10px}.exam-review-card{padding:15px;border-radius:16px}.exam-review-hero-note{grid-template-columns:1fr}.exam-review-hero-note span{display:flex;text-align:left}.exam-review-file{grid-template-columns:44px minmax(0,1fr);min-height:100px;padding:13px}.exam-review-file-icon{width:44px;height:44px}.exam-review-file-tag{grid-column:2;justify-self:start}.exam-review-result-actions{grid-template-columns:1fr}.exam-review-expiry{display:none}}

/* Exam review studio: focused material preparation, stable task feedback. */
#examReviewPanel .exam-review-studio{max-width:1120px;padding:30px 24px 40px;gap:24px}
#examReviewPanel .exam-review-hero{min-height:0;padding:10px 0 4px;grid-template-columns:minmax(0,1fr);gap:22px;background:none;border:0;box-shadow:none}
#examReviewPanel .exam-review-hero-copy small{font-size:11px;letter-spacing:.18em;margin-bottom:12px}
#examReviewPanel .exam-review-hero-copy h2{font-size:clamp(26px,2.5vw,34px);line-height:1.35;font-weight:800;letter-spacing:-.035em;margin-bottom:10px}
#examReviewPanel .exam-review-hero-copy p{font-size:14px;max-width:none;line-height:1.8}
#examReviewPanel .exam-review-hero-note{display:flex;align-items:center;padding:0;border:0;background:none;gap:0;border-radius:0}
#examReviewPanel .exam-review-hero-note span{flex:none;font-size:12px;font-weight:600;color:var(--muted);gap:9px}
#examReviewPanel .exam-review-hero-note span+span:before{content:'';width:48px;height:1px;background:var(--border);margin:0 18px}
#examReviewPanel .exam-review-hero-note b{width:25px;height:25px;background:color-mix(in srgb,var(--primary) 10%,var(--panel));border-radius:50%;font-size:10px}
#examReviewPanel .exam-review-card{background:var(--panel);padding:28px;border-radius:22px;box-shadow:0 10px 36px color-mix(in srgb,var(--primary) 7%,transparent)}
#examReviewPanel .exam-review-card-head{margin-bottom:24px;align-items:center}
#examReviewPanel .exam-review-card-head h3{font-size:20px;margin-bottom:6px}
#examReviewPanel .exam-review-card-head p{font-size:13px}
#examReviewPanel .exam-review-expiry{font-size:11px;background:var(--surface);border:0;padding:8px 12px}
#examReviewPanel .exam-review-files{gap:18px}
#examReviewPanel .exam-review-file{min-height:156px;padding:22px;grid-template-columns:48px minmax(0,1fr);gap:16px;border:1px dashed color-mix(in srgb,var(--primary) 35%,var(--border));border-radius:16px;background:var(--surface);transition:background .18s,border-color .18s,box-shadow .18s;transform:none}
#examReviewPanel .exam-review-file:hover{transform:none;border-color:var(--primary);box-shadow:0 4px 16px color-mix(in srgb,var(--primary) 9%,transparent)}
#examReviewPanel .exam-review-file:focus-within{outline:3px solid color-mix(in srgb,var(--primary) 25%,transparent);outline-offset:3px}
#examReviewPanel .exam-review-file-icon{width:48px;height:54px;border-radius:12px;background:var(--panel);box-shadow:0 4px 10px color-mix(in srgb,var(--primary) 6%,transparent)}
#examReviewPanel .exam-review-file-copy strong{font-size:16px;margin-bottom:8px}
#examReviewPanel .exam-review-file-copy span{font-size:12px;line-height:1.65}
#examReviewPanel .exam-review-file-tag{grid-column:2;justify-self:start;background:none;padding:0;color:var(--muted);font-size:11px;font-weight:500}
#examReviewPanel .exam-review-file.is-ready{border-style:solid;border-color:color-mix(in srgb,var(--primary) 40%,var(--border));background:color-mix(in srgb,var(--primary) 4%,var(--panel))}
#examReviewPanel .exam-review-file.is-ready .exam-review-file-tag{font-size:0;color:var(--primary)}
#examReviewPanel .exam-review-file.is-ready .exam-review-file-tag:after{content:'✓ 已就绪 · 点击更换';font-size:11px;font-weight:600}
#examReviewPanel .exam-review-card>details{padding:14px 0;margin:6px 0 0!important;font-size:12px!important}
#examReviewPanel .exam-review-card>details summary{min-height:30px;align-content:center}
#examReviewPanel .exam-review-actionbar{margin-top:8px;padding-top:22px;border-top:1px solid var(--border);gap:24px;align-items:center}
#examReviewPanel .exam-review-generate{min-height:50px;padding:0 24px;font-size:14px;border-radius:12px;flex:none}
#examReviewPanel .exam-review-status{font-size:12px;line-height:1.7}
#examReviewPanel .exam-review-status b{font-size:13px;margin-bottom:2px}
#examReviewPanel .exam-review-progress{height:5px;margin-top:10px;background:color-mix(in srgb,var(--primary) 8%,var(--surface))}
#examReviewPanel .exam-review-result{padding:22px;border-radius:18px}
@media(min-width:1000px) and (min-height:800px){#examReviewPanel .exam-review-studio{padding-top:44px}}
@media(max-width:700px){
#examReviewPanel .exam-review-studio{padding:20px 14px 28px;gap:20px}
#examReviewPanel .exam-review-card{padding:20px;border-radius:18px}
#examReviewPanel .exam-review-hero-note span{font-size:11px;gap:6px}
#examReviewPanel .exam-review-hero-note span+span:before{width:16px;margin:0 8px}
#examReviewPanel .exam-review-card-head{align-items:flex-start;gap:12px}
#examReviewPanel .exam-review-files{grid-template-columns:1fr;gap:12px}
#examReviewPanel .exam-review-file{min-height:124px;padding:18px;gap:10px 14px}
#examReviewPanel .exam-review-actionbar{flex-direction:column-reverse;align-items:stretch;gap:18px}
#examReviewPanel .exam-review-generate{width:100%;min-height:50px}
#examReviewPanel .exam-review-expiry{display:none}
#examReviewPanel .exam-review-hero-note{display:flex}
#examReviewPanel .exam-review-hero-note span{display:flex;text-align:left}
#examReviewPanel .exam-review-result-actions{display:flex;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){#examReviewPanel *{transition:none!important}}

/* Finished courseware has its own library; generation status stays in place. */
#examReviewPanel .exam-review-hero-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
#examReviewPanel .exam-review-hero-heading small{margin-bottom:0}
.exam-history-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid var(--border);border-radius:11px;background:var(--panel);color:var(--primary);font-family:inherit;font-weight:600;font-size:13px;line-height:1.3;cursor:pointer;white-space:nowrap}
.exam-history-button .ui-icon{width:18px;height:18px}
#examReviewHistoryDialog{width:min(720px,calc(100vw - 32px));max-height:82dvh;padding:0;border:1px solid var(--border);border-radius:22px;background:var(--surface,#fff);color:var(--text);box-shadow:0 24px 90px #17243930;overflow:hidden}
#examReviewHistoryDialog[open]{display:flex;flex-direction:column}
#examReviewHistoryDialog::backdrop{background:#17243966;backdrop-filter:blur(4px)}
.exam-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 26px 20px;border-bottom:1px solid var(--border)}
.exam-history-head small{font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--muted)}
.exam-history-head h2{margin:6px 0 7px;font-size:24px;letter-spacing:-.02em}
.exam-history-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.exam-history-close{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;padding:0;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--muted);cursor:pointer}
.exam-history-close svg{display:block;width:18px;height:18px}
.exam-history-tools{display:flex;align-items:center;gap:10px;padding:17px 24px 12px}
.exam-history-tools .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}
.exam-history-tools label{flex:1;min-width:0}.exam-history-tools input{box-sizing:border-box;width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:14px}
.exam-history-tools button,.exam-history-empty button{min-height:42px;padding:8px 14px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--primary);font:inherit;font-size:13px;cursor:pointer}
.exam-history-list{min-height:160px;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 12px;display:grid;gap:10px}
.exam-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2,var(--surface))}
.exam-history-row h3{margin:0 0 7px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.exam-history-meta{margin:0;color:var(--muted);font-size:11px;line-height:1.8}
.exam-history-actions{display:flex;gap:7px}.exam-history-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--primary);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.exam-history-actions a:last-child{background:var(--primary);color:white;border-color:var(--primary)}
.exam-history-empty{display:grid;place-items:center;align-content:center;gap:8px;text-align:center;min-height:190px;padding:20px;color:var(--muted);font-size:13px;line-height:1.8}
.exam-history-empty strong{color:var(--text);font-size:16px}.exam-history-empty p{margin:0;max-width:320px}
.exam-history-foot{padding:14px 24px;border-top:1px solid var(--border);color:var(--muted);font-size:11px;background:var(--surface)}
.exam-review-stop{flex:none;min-height:44px;padding:9px 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.exam-review-stop:disabled{cursor:wait;opacity:.65}
@media(max-width:520px){
 #examReviewHistoryDialog{width:calc(100vw - 20px);max-height:86dvh;border-radius:18px}
 .exam-history-head{padding:20px 18px 17px}.exam-history-head h2{font-size:21px}.exam-history-close{width:44px;height:44px;flex-basis:44px}
 .exam-history-tools{padding:14px 16px 10px}.exam-history-tools input{font-size:16px}.exam-history-list{padding:0 16px 12px}
 .exam-history-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}.exam-history-actions a{flex:1;min-height:44px}
 .exam-history-foot{padding:13px 16px}.exam-history-button{min-height:44px;font-size:12px;padding:8px 11px}
}
