/* teacher.css */
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 system-ui,'Noto Sans CJK KR',sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}body>header{background:#fff;display:flex;align-items:center;gap:36px;padding:20px 5%;border-bottom:1px solid var(--line)}body>header nav{display:flex;gap:24px;flex:1}body>header form{margin:0}body>header nav [aria-current]{color:var(--green);border-bottom:2px solid var(--green)}.brand{font-size:24px;font-weight:850;letter-spacing:-1px}.brand small{display:block;font-size:11px;font-weight:500;letter-spacing:1px}main{max-width:1320px;padding:38px 32px 60px;margin:auto;min-height:80vh}h1{font-size:32px;letter-spacing:-1.4px;line-height:1.3;margin:6px 0 12px}h2{font-size:20px;line-height:1.4;margin:6px 0 16px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--green);margin-bottom:12px}.muted,.source{color:var(--muted)}.source{font-size:12px;overflow-wrap:anywhere}.panel,.question-card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:16px}.library-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;margin-top:28px}.library-grid aside{align-self:start;position:sticky;top:16px}.filters,.settings{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.query{flex:1;min-width:180px}label{display:block;font-size:13px;font-weight:650}input:not([type=checkbox]):not([type=hidden]),select{display:block;width:100%;border:1px solid #cbd6cc;border-radius:7px;padding:10px 12px;font:inherit;background:white;color:var(--ink);margin:6px 0 10px}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;vertical-align:middle;margin-right:8px}button,.button{display:inline-block;background:white;border:1px solid #bfcfc3;border-radius:7px;padding:9px 15px;font:600 13px/1.5 inherit;color:var(--ink);cursor:pointer;white-space:nowrap}.primary{background:var(--green);color:white;border-color:var(--green)}.quiet{border-color:transparent;background:transparent;color:var(--green)}.filters button{margin-bottom:10px}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-line p{margin:8px 0}.inline{display:inline-block}.badge{background:#e8f1e7;border-radius:20px;padding:4px 9px;font-size:11px;white-space:nowrap}/* preview-render:start */.question-text{white-space:pre-wrap;line-height:1.9;color:#26382f;overflow-wrap:anywhere}/* preview-render:end */.metrics{display:flex;gap:36px}.metrics strong{font-size:32px}.metrics small{display:block;font-size:12px;color:var(--muted);font-weight:500}.selection ol{padding-left:20px;color:var(--muted);font-size:13px;max-height:300px;overflow:auto}.selection li{margin:8px 0}.selection .button{width:100%;text-align:center}hr{border:0;border-top:1px solid var(--line);margin:22px 0}.notice{background:#fff5dd;border-left:3px solid #b27a22;padding:16px;border-radius:6px;color:#73501a}/* preview-render:start */.preview{border-top:1px dashed var(--line);margin-top:14px;padding-top:16px;overflow:auto}.preview img{max-width:100%;height:auto}.preview table{border-collapse:collapse}.preview td,.preview th{border:1px solid #aaa;padding:6px}.preview math{font-size:1.12em}/* preview-render:end */.pagination{display:flex;justify-content:center;gap:28px;padding:18px}.empty{padding:45px;text-align:center;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-top:24px}.cards .panel{margin:0}.editor-item .points{width:100px}.editor-item .settings{align-items:center}.export-bar{position:sticky;bottom:12px;box-shadow:0 4px 25px #18372e16;display:flex;justify-content:space-between;align-items:center;gap:20px}.export-bar p{margin:6px 0;font-size:12px}.export-bar label{margin-left:14px}.downloads,.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.downloads{margin:26px 0}.login{max-width:480px;margin:45px auto;padding:42px}.login h1{font-size:34px}.login form{margin-top:30px}.login button{width:100%;margin-top:12px}body>footer{text-align:center;font-size:11px;color:var(--muted);padding:22px}progress{width:100%;accent-color:var(--green)}:focus-visible{outline:3px solid #8cbda1;outline-offset:3px}@media(max-width:850px){body>header{flex-wrap:wrap;gap:16px;padding:16px}body>header nav{order:3;flex-basis:100%}main{padding:28px 16px}.library-grid{grid-template-columns:1fr}.library-grid aside{position:static}.section-line{flex-wrap:wrap}.export-bar{position:static;flex-wrap:wrap}h1{font-size:27px}.filters label{flex:1}.login{padding:26px}}

button,.button{font-family:inherit;font-size:13px;font-weight:600;line-height:1.5}/* preview-render:start */.preview .equation{vertical-align:middle}/* preview-render:end */.filters label{max-width:100%}/* preview-render:start */.question-text{white-space:normal}/* preview-render:end */

/* Question bank: keep the question and current selection visible together. */
.upload-dropzone{border:2px dashed #a7c3ae;background:#f5f9f4;border-radius:12px;padding:26px;text-align:center}.upload-dropzone.dragover{background:#e4f1e5;border-color:var(--green)}.upload-dropzone input{max-width:460px;margin:12px auto!important}.intake-workspace h3{font-size:15px}.common-fields label{min-width:140px;flex:1}.common-fields .inline{min-width:230px;align-self:center}.common-more{margin-top:12px}.common-more summary,.file-metadata summary{cursor:pointer;color:var(--green);font-size:13px}.common-more .settings{padding-top:10px}.upload-file-list{display:grid;gap:14px;margin-top:20px}.upload-file{border:1px solid var(--line);border-radius:10px;padding:18px;background:#fafcf8}.upload-file>.section-line strong{overflow-wrap:anywhere;min-width:0}.upload-file .settings{margin-top:12px}.upload-file .settings label{min-width:130px;flex:1}.upload-file .settings .inline{align-self:center}.upload-file [role=status]{font-size:13px;margin:12px 0}.upload-file [data-row-error]{display:block;overflow-wrap:anywhere;font-size:11px}.upload-file progress{height:8px}.upload-file .actions button,.upload-file .actions a{font-size:12px}.upload-submit{margin-top:18px}.upload-submit output{font-size:13px}.material-card h2{font-size:17px;overflow-wrap:anywhere;margin-top:12px}[hidden]{display:none!important}.intake-counts{display:flex;gap:26px;padding:12px 0}.intake-counts strong{font-size:28px;display:block}.intake-counts span{font-size:12px;color:var(--muted)}.status-detail{margin-top:18px}.status-detail summary{cursor:pointer;font-size:13px;color:var(--muted)}
.answer-preview,.source-preview{font-size:13px;margin-top:12px}.answer-preview summary,.source-preview summary{cursor:pointer;color:var(--green)}.answer-preview[open]{background:#f6f8f3;border-radius:8px;padding:12px}.source-preview .source{font-size:11px}
.library-heading{margin-bottom:24px}.library-heading h1{font-size:27px}.library-heading p{margin:4px 0}.bank-layout{display:grid;grid-template-columns:205px minmax(0,1fr) 260px;gap:20px;align-items:start}.bank-filters,.bank-basket{position:sticky;top:18px}.bank-filters>summary{font-weight:700;margin-bottom:10px;cursor:pointer}.bank-filters .panel{padding:18px}.bank-filters label{margin-bottom:10px}.wide{width:100%}.bank-results{min-width:0}.bank-question{padding:22px;margin-bottom:18px}.bank-question.is-selected{border-color:#4e8a65;box-shadow:inset 3px 0 #4e8a65}.bank-question .section-line label{font-size:12px}.bank-question .question-body{line-height:1.9;overflow-wrap:anywhere}.bank-question .preview{border:0;margin-top:8px;padding-top:0}.bank-question .preview img{max-width:100%;height:auto}.question-body .source{font-size:11px}.question-actions{border-top:1px solid var(--line);padding-top:12px}.question-actions form{margin:0}.card-notice:empty{display:none}.filter-chips{display:flex;gap:6px;flex-wrap:wrap}.filter-chip{font-size:12px;border:1px solid #cbdacd;border-radius:20px;background:#eef4ee;padding:5px 10px}.filter-chip span{margin-left:6px}.result-heading{margin:8px 0 12px}.bank-basket h2{font-size:17px;margin:0 0 10px}.bank-basket>.section-line .quiet{font-size:12px}.bank-basket .selection{padding:18px}.bank-basket .selection h2{font-size:15px;overflow-wrap:anywhere;margin-bottom:14px}.bank-basket .metrics{gap:30px}.bank-basket .metrics strong{font-size:27px}.bank-basket .selection ol{padding-left:20px;max-height:42vh}.bank-basket .selection li{padding:6px 0;border-bottom:1px solid #eff2ed}.bank-basket .selection li button{padding:0 5px;float:right;font-size:18px}.basket-empty{padding:22px 18px}.basket-empty strong{font-size:15px}.basket-switch{font-size:12px;padding:4px 6px}.basket-switch summary{cursor:pointer}.basket-switch form{padding-top:10px}.match-reasons{display:flex;gap:5px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.match-reasons span{background:#f3f5ef;padding:2px 6px;border-radius:4px}button:disabled{opacity:.65;cursor:wait}.question-body table{max-width:100%}.question-body .preview{overflow-x:auto}body>header{padding-top:14px;padding-bottom:14px}main:has(#library){max-width:1500px;padding-top:26px}
@media(max-width:1100px){.bank-layout{grid-template-columns:180px minmax(0,1fr) 220px;gap:14px}.bank-question{padding:16px}.bank-basket .selection{padding:14px}}
@media(max-width:1000px){.bank-layout{grid-template-columns:minmax(0,1fr) 240px}.bank-filters{grid-column:1/-1;position:static}.bank-filters .panel{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.bank-filters label{flex:1;min-width:130px;margin:0}.bank-filters button{width:auto;margin-bottom:10px}.bank-basket{top:12px}}
@media(max-width:700px){.bank-layout{display:flex;flex-direction:column}.bank-filters,.bank-results,.bank-basket{width:100%;position:static}.bank-basket{order:1}.bank-results{order:2}.bank-filters{order:0}.bank-basket .selection ol{max-height:130px}.bank-basket .metrics{display:inline-flex}.bank-basket .selection .button{margin-top:10px}.library-heading{gap:10px}.library-heading h1{font-size:24px}.basket-empty p{margin:6px 0}.bank-question .section-line{align-items:flex-start}.question-actions{align-items:center!important}}

.navigation-tree a,.navigation-sources a{display:block;padding:8px 0;text-decoration:none;overflow-wrap:anywhere}.navigation-tree a{padding-left:calc(var(--unit-depth)*12px)}.navigation-tree span,.navigation-sources span{color:var(--muted);font-size:.8rem}.navigation-sources,.navigation-tree{margin-top:16px}.bank-filters .settings{grid-template-columns:1fr 1fr}
.basket-content>summary{display:none}.bank-filters details{flex-basis:100%}@media(max-width:700px){.basket-content>summary{display:list-item;cursor:pointer;background:white;border:1px solid var(--line);padding:12px;border-radius:8px;margin-bottom:12px}}

/* Shared spacing and state primitives used by the editing surfaces. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--radius-control:7px;--radius-panel:12px}
.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);padding:var(--space-3);background:#fff;border:1px solid var(--line);border-radius:var(--radius-control);margin-bottom:var(--space-4)}.editor-toolbar label{font-size:12px}.editor-toolbar input[type=number]{width:110px}.editor-toolbar input,.editor-toolbar select{margin:2px 0!important;padding:6px 8px!important}.editor-toolbar span{font-size:12px;color:var(--muted)}.editor-item{scroll-margin-top:16px}.editor-item [data-editor-preview]{font-size:17px;line-height:1.85;min-height:75px}.editor-item.has-original-preview>.question-text{display:none}.editor-list-view .editor-item [data-editor-preview]:not([data-preview-expanded="true"]){display:none}.editor-list-view .editor-item>.question-text{display:block!important}.editor-list-view .editor-item{padding:14px}.editor-item .preview{margin-top:10px}.editor-sidebar .metrics small{display:block}.editor-sidebar ol a{display:block;padding:4px 0}.editor-sidebar [data-editor-output-summary]{line-height:1.75}.export-bar [data-save-status]{font-weight:650;font-size:13px}.export-bar:has([data-output-link]){flex-wrap:wrap}button:disabled{cursor:not-allowed}.saved-searches summary{font-size:13px;cursor:pointer;padding:10px 0}.saved-searches li{font-size:12px;margin:10px 0}.saved-searches input{font-size:12px!important}.saved-searches form{margin:6px 0}.saved-searches button{padding:5px 8px;font-size:11px}.saved-searches .saved-actions{display:flex;gap:6px}/* preview-render:start */.preview img{display:block;max-width:100%;height:auto}.preview math{max-width:100%}/* preview-render:end */
@media(max-width:700px){button,.button{min-height:40px}.editor-toolbar{gap:8px}.editor-toolbar label{flex:1}.editor-item [data-editor-preview]{font-size:16px}.editor-sidebar{order:-1}.editor-sidebar ol{max-height:150px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.metadata-help{font-size:12px;color:var(--muted);margin:10px 0 0}.metadata-summary{font-size:12px;color:var(--green);margin:12px 0 2px}.file-metadata .settings{align-items:end}.file-metadata small.metadata-origin{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:-6px;margin-bottom:5px}.file-metadata label{min-width:150px}.file-metadata select,.file-metadata input{margin-bottom:2px}.upload-file .file-metadata[open]{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}.upload-file .file-metadata summary{padding:3px 0}.worksheet-steps{display:flex;gap:8px;align-items:center;margin:0 0 22px;padding:0;list-style:none}.worksheet-steps a,.worksheet-steps span{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:13px}.worksheet-steps .active{border-color:var(--green);color:var(--green);font-weight:750;background:#f0f7f0}.worksheet-steps .step-number{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#edf1ed;font-size:11px;color:var(--ink)}.worksheet-steps .active .step-number{background:var(--green);color:#fff}.worksheet-steps .arrow{border:0;padding:0;color:var(--muted)}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.editor-sidebar{position:sticky;top:16px}.editor-sidebar .panel{padding:18px}.editor-sidebar ol{max-height:55vh;overflow:auto;padding-left:24px}.editor-sidebar li{padding:6px 0;border-bottom:1px solid #eff2ed;font-size:12px}.editor-sidebar .button{width:100%;text-align:center;margin-top:8px}.layout-presets{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.layout-presets label{min-width:210px}.layout-presets select{margin-bottom:0}.selected-count{font-size:12px;color:var(--muted)}.selection-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}@media(max-width:850px){.editor-layout{display:flex;flex-direction:column}.editor-sidebar{position:static;width:100%}.editor-sidebar ol{max-height:220px}.worksheet-steps{overflow:auto;white-space:nowrap}.worksheet-steps .arrow{display:none}}
/* DB body reflows as text; equation vectors scale with card/dialog typography. */
/* preview-render:start */.preview-part-error{display:inline-block;padding:.4em .6em;margin:.2em;background:#fff3dc;color:#754b13;border:1px solid #d5b57a;border-radius:4px;font-size:.85em;white-space:normal}
.db-equation-run{display:inline-block;max-width:100%;overflow-x:auto;overflow-y:hidden;vertical-align:middle;padding:2px 0}.db-paragraph{margin:.35em 0;line-height:1.9}.preview [data-preview-part]{min-width:0}
.preview img.equation,.book-question .preview img.equation,[data-book-modal-body] img.equation{display:inline-block;vertical-align:middle;max-width:100%;height:auto!important;flex-shrink:0}
.db-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:.75em 1em;margin:1.5em 0 .75em;align-items:start}.db-choices.is-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.db-choice{display:flex;align-items:baseline;gap:.3em;min-width:0}.db-choice>div{min-width:0;overflow-x:auto}.db-choice>span{flex-shrink:0}
.db-choice .db-source-tab{display:none}.db-choice>div>.db-paragraph{margin:0}.db-choice>div{overflow-wrap:anywhere}/* preview-render:end */
/* Original-question correction: keep projected text and equations editable at full width. */
#question-editor .question-edit-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
#question-editor .question-edit-grid>.panel,#question-editor .question-block{min-width:0}
#question-editor .question-block{padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px}
#question-editor .question-block label{margin:8px 0}
#question-editor textarea{display:block;width:100%;min-height:3.25rem;resize:vertical;border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin:6px 0 10px;background:#fff;color:var(--ink);font-family:inherit;font-size:14px;font-weight:400;line-height:1.6}
#question-editor textarea[data-editor-kind=equation]{font-family:Consolas,monospace}
#question-editor .question-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:400 13px/1.8 system-ui,sans-serif}
#question-editor [data-question-status]{display:block;margin-top:12px;font-size:13px}
#question-editor .settings{margin:16px 0}
@media(max-width:850px){#question-editor .question-edit-grid{grid-template-columns:minmax(0,1fr)}}

/* Align SVG mathematics to the text baseline, including fractions and scripts. */
/* preview-render:start */.db-equation-run[data-equation-layout="baseline-v1"]{padding:0;line-height:0;vertical-align:calc(-1 * var(--equation-depth));color:inherit}
.db-equation-run[data-math-followed-by="hangul"]{margin-inline-end:.18em}
.preview .db-equation-run[data-equation-layout="baseline-v1"]>img.equation{display:block;vertical-align:baseline}
.db-source-tab{display:inline-block;width:1.1em;height:0}

/* Source crops retain their bytes and aspect ratio, fitting the text reading width. */
.preview>img:not(.equation),.preview>[data-preview-part=body]>img:not(.equation){width:100%;max-width:440px;height:auto;max-height:none}
.mf-editor .mf-question-sheet .preview>img:not(.equation){width:100%;max-height:none}/* preview-render:end */
.reader-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}/* preview-render:start */.reader-sheet .preview>img:not(.equation),.reader-sheet [data-preview-part=body]>img:not(.equation){width:100%;max-height:none}

.selection-reference .reference-db-question .question-body>img:not(.equation),.reader-sheet>img:not(.equation){width:100%;max-width:440px;max-height:none;height:auto}

/* A source page crop needs a reading width, not the PDF figure's 205px limit. */
.preview [data-preview-part=body]>img.db-source-region{width:100%;max-width:620px;height:auto;max-height:none}
[data-book-modal-body] .preview [data-preview-part=body]>img.db-source-region{width:620px;max-width:100%;height:auto}/* preview-render:end */

/* Reading rhythm for database text, choices and immutable source figures. */
.selection-reference .reference-db-question .question-body{font-size:16px;line-height:1.8}
/* preview-render:start */.preview .db-paragraph{margin:.55em 0;line-height:1.8}
.preview .db-choices.is-compact{grid-template-columns:repeat(auto-fit,minmax(min(100%,7em),1fr));gap:.65em 1em;margin:1em 0}
.preview .db-choice{align-items:baseline;column-gap:.45em}
.preview img:not(.equation),.question-body img:not(.equation){height:auto;object-fit:contain;margin:.8em 0;max-width:100%}
.preview [data-preview-part=solution]{margin-top:1em}/* preview-render:end */
.selection-reference [data-card-answer-body]{font-size:16px;line-height:1.8}

/* Source-reviewed graph options preserve the printed 2+2+1 arrangement. */
/* preview-render:start */.db-choices.db-source-choice-grid,.db-choices.db-source-choice-grid.is-compact,.preview .db-choices.db-source-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.db-choices.db-source-choice-grid .db-choice{min-width:0;align-items:flex-start}
.db-choices.db-source-choice-grid .db-choice>div{min-width:0;max-width:100%;white-space:normal}
.db-choices.db-source-choice-grid img{max-width:100%;height:auto;object-fit:contain}/* preview-render:end */

/* Keep the existing responsive search layout inside the disabled loading group. */
#library-search{display:block}.bank-filters [data-search-catalog-fields]{border:0;padding:0;margin:0;min-width:0;width:100%}
@media(max-width:1000px){.bank-filters [data-search-catalog-fields]{display:flex;gap:10px;align-items:end;flex-wrap:wrap}}
/* Search conditions still loading (also the one automatic retry): a small turning mark beside the status line. */
[data-search-catalog-status][aria-busy="true"]::before{content:"";display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-1px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.6}
@keyframes search-catalog-busy{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:no-preference){[data-search-catalog-status][aria-busy="true"]::before{animation:search-catalog-busy .9s linear infinite}}

/* mathflat.css */
/* Shared application palette. Worksheet-specific layouts retain their own geometry. */
/* Colours, fonts and control sizes come from tokens.css (the only :root palette). */
body{color:var(--ink);background:var(--paper);font-size:13px;line-height:1.6;letter-spacing:-.2px}
body>header{min-height:64px;padding:10px 32px;gap:36px;border-color:var(--line)}
body>header .brand{font-size:22px;color:#273944;letter-spacing:-.8px}
body>header .brand small{font-size:10px;letter-spacing:0;color:#929ba1}
body>header nav{align-self:stretch;align-items:stretch;gap:28px}
body>header nav a{display:flex;align-items:center;border-bottom:2px solid transparent;font-size:13px;padding:7px 0;color:#707d86}
body>header nav a[aria-current]{color:var(--green);border-bottom-color:var(--green);font-weight:700}
body>header form{display:flex;align-items:center;gap:8px;font-size:11px}
body>main{max-width:1500px;padding:26px 30px 50px}
h1,.library-heading h1{font-size:23px;letter-spacing:-.7px;font-weight:700}
h2{font-size:17px;font-weight:700}
.eyebrow{font-size:10px;letter-spacing:.8px;margin-bottom:8px}
.panel,.question-card{border-color:var(--line);border-radius:8px;box-shadow:none;padding:20px}
input:not([type=checkbox]):not([type=hidden]),select{border-color:var(--line);border-radius:var(--r-btn);padding:0 12px;font-size:14px}
button,.button{border-color:#d7dde1;border-radius:5px;color:#596a75;font-weight:500;padding:8px 14px}
.primary{background:var(--green);border-color:var(--green);color:#fff}
.quiet{background:transparent;border-color:transparent;color:#71818c}
button:hover:not(:disabled),.button:hover{filter:brightness(.97);text-decoration:none}
:focus-visible{outline:3px solid var(--primary-line);outline-offset:3px}
.badge{background:#edf5f8;color:#597684;border-radius:4px}
.question-text{color:#35434d}
.filter-chip{border-color:#cde6ef;background:var(--primary-bg);border-radius:5px;color:#387e98}
.bank-question.is-selected{border-color:var(--primary-line-strong);box-shadow:inset 3px 0 var(--primary)}
.match-reasons span{background:#f2f4f6}
.bank-basket .selection li,.editor-sidebar li{border-color:#edf0f2}
.upload-dropzone{border:1px dashed #a8c7d5;background:#f8fcfe;border-radius:8px}
.upload-dropzone.dragover{background:var(--primary-bg);border-color:var(--green)}
.upload-file{background:#fcfdfe;border-color:var(--line);border-radius:6px}
.answer-preview[open]{background:#f5f8fa;border-radius:5px}
.worksheet-steps .active{background:var(--primary-bg);border-color:var(--primary-line)}
.worksheet-steps .step-number{background:#eef2f5;padding:0;border:0}
.export-bar{box-shadow:0 4px 20px #253b4b0d}
.login{padding:36px}.login h1{font-size:27px}
body>footer{color:#9aa2a8;font-size:10px}
@media(max-width:850px){body>header{padding:12px 16px;gap:16px}body>header nav{gap:22px}body>main{padding:22px 16px 40px}}
@media(max-width:500px){body>header form{margin-left:auto}body>header form>.muted{display:none}}

.mf-candidate-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; overflow:auto; }
.mf-candidate-comparison>section { min-width:0; padding:8px; border:1px solid #dce1e8; }
.mf-candidate-comparison img { max-width:100%; height:auto; }
@media(max-width:600px) { .mf-candidate-comparison { grid-template-columns:1fr; } }

