:root{--navy:#082844;--navy2:#123f64;--ink:#0b1933;--muted:#667085;--line:#e5ecf3;--green:#0b7d5d;--blue:#2f7cc0;--gold:#d6a34d;--purple:#7c63c9;--red:#b43d4d;--bg:#f5f9fc;--radius:24px;--shadow:0 18px 48px rgba(10,36,62,.12)}*{box-sizing:border-box}body{margin:0;font-family:Heebo,Assistant,'Segoe UI',Arial,sans-serif;background:linear-gradient(180deg,#fafdff,#eef6fa);color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#e5f4ee,transparent 28%),radial-gradient(circle at 80% 0,#e5f0ff,transparent 30%),linear-gradient(180deg,#fff,#eff7fb)}.login-card{position:relative;width:min(520px,100%);background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:32px;padding:34px 34px 48px;box-shadow:var(--shadow);text-align:center}.app-version{position:absolute;right:22px;bottom:14px;color:#98a6b5;font-size:12px;font-weight:700;line-height:1;letter-spacing:.03em;direction:ltr}.login-logo-wrap{width:128px;height:128px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce7f0;box-shadow:0 12px 32px rgba(8,40,68,.12);padding:14px;overflow:visible}.login-logo{width:100%;height:100%;object-fit:contain;object-position:center center;display:block;transform:translateY(-1px)}h1{font-size:34px;margin:18px 0 8px}.login-card p{color:var(--muted);line-height:1.65}.login-tabs,.semester-tabs{display:flex;gap:14px;justify-content:center;margin:22px 0}.tab,.sem{border:1px solid #d7e4ef;border-radius:24px;background:#fff;padding:13px 28px;font-weight:900;min-width:150px;color:#10233c}.tab.active,.sem.active{border-color:#a8d6c5;background:#edf9f3;color:#08704f;box-shadow:0 10px 28px rgba(8,112,79,.10)}label{display:block;text-align:right;margin:12px 0;color:#334155;font-weight:800}input,textarea,select{width:100%;border:1px solid #d9e3ee;background:#fff;border-radius:14px;padding:12px 14px;margin-top:7px;outline:none}textarea{min-height:90px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:#5a9ccf;box-shadow:0 0 0 4px rgba(47,124,192,.14)}.checkline{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.55;color:#5c6677}.checkline input{width:auto;margin-top:3px}.primary,.secondary,.ghost,.danger{border:0;border-radius:14px;padding:11px 16px;font-weight:900}.primary{background:linear-gradient(135deg,var(--navy),#1c4d78);color:#fff;box-shadow:0 12px 26px rgba(8,40,68,.2)}.secondary{background:#eaf5ef;color:#08694d}.ghost{background:#fff;border:1px solid #dce7f0;color:var(--ink)}.ghost.light{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#fff}.danger{background:#fff0f2;color:var(--red);border:1px solid #f1cbd1}.big{width:100%;font-size:18px}.hint{font-size:13px}.otp-wrap{background:#f8fbfd;border:1px dashed #cbd8e5;border-radius:18px;padding:12px}.topbar{position:sticky;top:0;z-index:8;display:flex;justify-content:space-between;align-items:center;padding:22px 34px;background:linear-gradient(135deg,#092945,#123f64 55%,#0e5a64);box-shadow:0 12px 34px rgba(8,40,68,.18);color:#fff}.brand{display:flex;gap:16px;align-items:center}.logo-ring{width:126px;height:126px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;border:4px solid rgba(255,255,255,.95);box-shadow:0 14px 36px rgba(0,0,0,.20);padding:16px;flex:0 0 auto;overflow:visible}.logo-ring img{width:100%;height:100%;object-fit:contain;object-position:center center;display:block;transform:translateY(-1px)}.brand strong{display:block;font-size:22px;color:#fff}.brand span:not(.logo-ring){display:block;color:#d6e8f2;font-size:13px;margin-top:4px}.top-actions{display:flex;gap:10px}.view{width:min(1220px,calc(100% - 34px));margin:28px auto 70px}.welcome,.course-hero{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center;background:linear-gradient(135deg,#fff,#f4fbff);border:1px solid #dce7f0;border-radius:32px;padding:28px;box-shadow:var(--shadow);margin-bottom:24px}.welcome{grid-template-columns:1fr}.welcome h2,.course-hero h2{font-size:32px;margin:0}.welcome p,.course-hero p{color:var(--muted);font-size:18px;margin:8px 0 0}.dept-logo-box{background:linear-gradient(135deg,#092945,#0e5a64);border-radius:18px;padding:12px;border:1px solid rgba(255,255,255,.24);box-shadow:0 12px 28px rgba(8,40,68,.18);width:220px}.dept-logo-box.large{width:250px}.dept-logo-box img{display:block;width:100%;height:auto;object-fit:contain}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 12px 34px rgba(8,40,68,.08)}.course-card{display:flex;flex-direction:column;gap:10px}.course-card .dept-logo-box{width:170px}.course-card h3{font-size:23px;margin:8px 0 0}.course-card button{margin-top:auto}.pill{display:inline-flex;width:max-content;border-radius:999px;background:#eef3f8;color:#475569;padding:7px 12px;font-size:12px;font-weight:900}.pill.green{background:#eaf8f0;color:#08704f}.pill.red{background:#fff0f2;color:#b43d4d}.pill.blue{background:#ecf5ff;color:#23649c}.section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 12px}.section-title h3{margin:0;font-size:23px}.messages p{margin:8px 0}.metric{min-height:128px}.metric small{color:var(--muted);font-weight:900}.metric b{display:block;font-size:34px;margin-top:14px}.metric.blue{border-top:5px solid var(--blue)}.metric.green{border-top:5px solid var(--green)}.metric.gold{border-top:5px solid var(--gold)}.metric.purple{border-top:5px solid var(--purple)}.metric.red{border-top:5px solid var(--red)}.table{width:100%;border-collapse:separate;border-spacing:0 10px}.table th{text-align:right;color:var(--muted);font-size:13px}.table td{background:#fff;border-top:1px solid #edf2f6;border-bottom:1px solid #edf2f6;padding:13px}.table td:first-child{border-radius:0 14px 14px 0;border-right:1px solid #edf2f6}.table td:last-child{border-radius:14px 0 0 14px;border-left:1px solid #edf2f6}.homeworks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hw-card{border-top:4px solid var(--green)}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.timer{color:var(--green);font-weight:900}.submission-head{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}.warning{background:#fff4f5;border:1px solid #f0c6cc;color:#a02f42;border-radius:18px;padding:13px 16px;font-weight:900}.warning.small{font-size:14px}.progress-wrap{background:#fff;border:1px solid #dce7f0;border-radius:18px;padding:14px;margin:18px 0}.progress{height:12px;background:#edf2f7;border-radius:999px;overflow:hidden;margin-top:10px}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--blue));width:0}.question{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;margin:16px 0}.question h3{margin:0 0 14px;border-bottom:1px solid #edf2f6;padding-bottom:10px}.question.bonus{border-top:5px solid var(--gold);background:#fffdf8}.question.upload-only{border-top:5px solid var(--purple)}.bonus-label,.upload-label{display:inline-flex;border-radius:999px;font-size:13px;padding:5px 10px;margin-inline-start:8px}.bonus-label{background:#fff3da;color:#9a660c}.upload-label{background:#f0edff;color:#4f3fb1}.subq{display:grid;grid-template-columns:140px 1fr;gap:14px;align-items:start;padding:13px 0;border-bottom:1px dashed #e2e8f0}.subq:last-child{border-bottom:0}.subq-title{font-weight:900;padding-top:15px;color:#243653}.filebox,.manual-after-wrong{margin-top:8px;border:1px dashed #cbd8e5;border-radius:14px;padding:10px;background:#f8fbfd}.pending-key{background:#fff8e8;border:1px solid #edd6a8;color:#8a5b08;border-radius:14px;padding:10px;margin-top:8px;font-weight:800}.mc-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mc-option{border:1px solid var(--line);border-radius:14px;padding:10px;background:#fff;display:flex;gap:8px;align-items:center}.final-box{background:#fff;border:1px solid #dce7f0;border-radius:24px;padding:20px;margin-top:18px}.footer-red{background:#fff1f3;border:1px solid #efc4ca;color:var(--red);border-radius:18px;padding:14px;font-weight:900}.submit-row{margin-top:14px}.modal-backdrop{position:fixed;inset:0;background:rgba(8,40,68,.50);display:grid;place-items:center;z-index:30;padding:20px}.modal{background:#fff;border-radius:28px;padding:28px;width:min(600px,100%);box-shadow:var(--shadow);border:1px solid #dce7f0}.modal h2{margin-top:0}.loader{height:14px;background:#edf2f7;border-radius:999px;overflow:hidden;margin:18px 0}.loader span{display:block;height:100%;width:30%;background:linear-gradient(90deg,var(--navy),var(--green));animation:load 1.2s infinite}@keyframes load{0%{transform:translateX(110%)}100%{transform:translateX(-330%)}}.report{max-height:260px;overflow:auto;background:#f8fbfd;border-radius:14px;padding:12px;margin:12px 0}.toast{position:fixed;bottom:22px;left:22px;background:#082844;color:#fff;padding:14px 18px;border-radius:16px;box-shadow:var(--shadow);z-index:40}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pdf-manager{background:#f8fbfd;border:1px dashed #cbd8e5;border-radius:20px;padding:16px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.manage-row{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid #edf2f6;padding:12px 0}.personal-stat{display:flex;justify-content:space-between}.course-grid{margin-top:18px}
.python-window{margin-top:10px;border:1px solid #1f2937;border-radius:18px;overflow:hidden;background:#0b1020;box-shadow:0 10px 26px rgba(8,40,68,.14)}
.python-title{direction:ltr;display:flex;justify-content:space-between;align-items:center;padding:9px 13px;background:#111827;color:#e5e7eb;font-size:13px;font-family:Consolas,'Courier New',monospace}.python-title span{color:#fca5a5;letter-spacing:4px}.python-editor{direction:ltr;text-align:left;min-height:170px;border:0;border-radius:0;margin:0;background:#0b1020;color:#e5e7eb;font-family:Consolas,'Courier New',monospace;font-size:14px;line-height:1.55;resize:vertical}.python-editor:focus{border:0;box-shadow:inset 0 0 0 2px rgba(214,163,77,.42)}
.question-source{margin:0 0 12px;border:1px dashed #d7e4ef;background:#f8fbfd;border-radius:14px;padding:10px}.question-source summary{font-weight:900;cursor:pointer}.question-source p{white-space:pre-wrap;max-height:180px;overflow:auto;color:#42526b}.card table{width:100%;border-collapse:collapse}.card table th,.card table td{border-bottom:1px solid #edf2f6;padding:9px;text-align:right;vertical-align:top}.card table th{color:var(--muted);font-size:13px}.quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.logo-ring{width:96px;height:96px;padding:3px}.logo-ring img{width:auto;height:86px}.grid,.grid3,.homeworks,.admin-panel{grid-template-columns:1fr}.welcome,.course-hero,.submission-head{grid-template-columns:1fr}.dept-logo-box,.dept-logo-box.large{width:200px}.subq{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start}.top-actions{width:100%;justify-content:space-between}.view{width:min(100% - 20px,1220px)}.quick-actions{grid-template-columns:1fr}.mc-options{grid-template-columns:1fr}}

.otp-status{background:#eef8f3;border:1px solid #cce8da;color:#08704f;border-radius:14px;padding:10px 12px;font-weight:900;text-align:center;margin-bottom:10px}.login-row{justify-content:center;margin:8px 0}.otp-login-form .primary.big{margin-top:8px}.otp-login-form input[readonly]{background:#f7fafc;color:#64748b}


/* v34: הדגשת מועד ההגשה והזמן שנותר בלבד */
.deadline-box{background:#f8fbfd;border:1px solid #d7e4ef;border-radius:18px;padding:12px 14px;margin:12px 0 16px;box-shadow:0 8px 20px rgba(8,40,68,.06)}
.deadline-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:6px 0;color:#334155;font-weight:900}
.deadline-row span{color:var(--muted);font-size:13px}
.deadline-row b{font-size:16px;color:var(--ink)}
.deadline-row.time-left{border-top:1px dashed #d7e4ef;color:var(--green)}
.deadline-row.time-left b{color:var(--green);font-size:18px}
.submission-deadline{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.submission-deadline span{display:inline-flex;align-items:center;gap:6px;background:#f8fbfd;border:1px solid #d7e4ef;border-radius:999px;padding:9px 14px;font-weight:900;color:#334155}
.submission-deadline span:last-child{background:#edf9f3;border-color:#bde3d4;color:var(--green)}

/* v36 additions: table answers + review modal (append-only, לא נוגע בעיצוב הקיים) */
.answer-table{border-collapse:collapse;width:100%;margin:6px 0}
.answer-table th,.answer-table td{border:1px solid var(--border,#d7dbe4);padding:4px 6px;text-align:center}
.answer-table td.row-label{background:var(--bg-soft,#f5f7fb);font-weight:600}
.answer-table input{width:90px;max-width:100%;border:none;outline:none;text-align:center;background:transparent}
.answer-table input:focus{background:#eef4ff}
.review-modal{max-width:760px}
.report.scroll{max-height:320px;overflow:auto}
.row.wrap{flex-wrap:wrap;gap:6px}
.file-link{text-decoration:none}
.mono{direction:ltr;font-family:monospace;font-size:12px}

/* v37 additions: lecturer content editor (append-only, שומר על העיצוב הקיים) */
.editor-card{border:1px solid #dce7f0;border-radius:18px;background:#fbfdff;margin:12px 0;padding:12px}
.editor-card summary{cursor:pointer;font-weight:900;padding:6px 2px}
.settings-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.settings-grid .wide{grid-column:1/-1}
.editor-check{display:flex;gap:8px;align-items:center;border:1px dashed #d7e4ef;background:#fff;border-radius:14px;padding:10px;margin-top:19px}
.editor-check input{width:auto;margin:0}
.sub-editor-list{display:grid;gap:12px;margin-top:14px}
.sub-editor{border:1px solid #edf2f6;border-radius:18px;padding:14px;background:#fff}
.sub-editor h4{margin:0 0 10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sub-editor textarea{min-height:72px}
@media(max-width:900px){.settings-grid.compact{grid-template-columns:1fr}}

/* v44: independent manual attachments and wider table-entry area */
.subq{grid-template-columns:minmax(120px,170px) minmax(0,1fr)}
.subq-body{min-width:0}
.manual-support,.optional-manual{margin-top:10px;border:1px dashed #cbd8e5;border-radius:16px;padding:12px;background:#f8fbfd}
.manual-support p,.optional-manual p{margin:6px 0 8px;color:var(--muted);font-weight:600;line-height:1.5}
.optional-manual summary{cursor:pointer;font-weight:900;color:#243653}
.manual-note{margin-top:6px;white-space:normal;color:#42526b;font-family:inherit}
.answer-table-wrap{overflow-x:auto;max-width:100%;padding:10px;border:1px solid #edf2f6;border-radius:16px;background:#fbfdff}
.answer-table{min-width:max-content;width:auto}
.answer-table th,.answer-table td{padding:7px 10px;white-space:nowrap}
.answer-table input{width:clamp(88px, calc((100vw - 360px) / max(var(--table-input-cols), 1)), 160px);min-width:88px;background:#fff;border:1px solid #d9e3ee;border-radius:10px;padding:8px 10px;text-align:center}
.answer-table td.row-label{min-width:110px;position:sticky;right:0;z-index:1;background:#f5f7fb}
.review-modal{width:min(1100px,96vw)}
.review-modal .report{max-height:60vh}
.review-modal .table td{vertical-align:top}
@media(max-width:900px){.subq{grid-template-columns:1fr}.answer-table input{width:110px}}

/* v45: per-subquestion Python code + limited run output */
.optional-code{margin-top:10px;border:1px dashed #cbd8e5;border-radius:16px;padding:12px;background:#fbfdff}
.optional-code summary{cursor:pointer;font-weight:900;color:#243653}
.python-code-box{margin-top:10px}
.python-actions{margin-top:8px}
.python-actions small{color:var(--muted);font-weight:700;line-height:1.45}
.python-output{direction:ltr;text-align:left;white-space:pre-wrap;background:#07111f;color:#e5e7eb;border-radius:14px;padding:12px;max-height:260px;overflow:auto;font-family:Consolas,'Courier New',monospace;font-size:13px;line-height:1.55;margin-top:8px}
.python-output.error{background:#2a0f17;color:#ffd9df}
.formula-editor{border:1px solid #d7e4ef;border-radius:18px;padding:12px;background:#f8fbfd;margin-top:8px}.formula-toolbar{display:flex;gap:6px;flex-wrap:wrap;direction:rtl}.formula-toolbar button{padding:7px 10px;border-radius:10px}.formula-input{direction:ltr;text-align:left;font-family:'Cambria Math','Times New Roman',serif;font-size:18px;min-height:90px}.formula-preview{direction:ltr;text-align:center;background:#fff;border:1px dashed #b8c9d8;border-radius:12px;padding:12px;margin:8px 0;font-family:'Cambria Math','Times New Roman',serif;font-size:20px;overflow-wrap:anywhere}
.submitted-code{margin-top:8px;direction:rtl;font-family:inherit;background:#f8fbfd;border:1px dashed #cbd8e5;border-radius:12px;padding:8px}
.submitted-code summary{cursor:pointer;font-weight:900;color:#243653}
.submitted-code pre{direction:ltr;text-align:left;white-space:pre-wrap;background:#0b1020;color:#e5e7eb;border-radius:10px;padding:10px;max-height:240px;overflow:auto;font-family:Consolas,'Courier New',monospace;font-size:12px;line-height:1.45}

/* v46: lecturer roster management per course */
.student-roster-card .hint{line-height:1.55}
.roster-import{min-height:120px;direction:rtl}
.roster-table-wrap{overflow:auto;max-height:460px;border:1px solid #edf2f6;border-radius:18px;background:#fbfdff;padding:8px}
.roster-table .mono{direction:ltr;text-align:left;font-size:12px}
.roster-table td,.roster-table th{white-space:nowrap}
@media(max-width:900px){.roster-table td,.roster-table th{white-space:normal}.roster-table-wrap{max-height:none}}

/* v62: clearer prompts and inline lecturer preview of submitted scans */
.submitted-file{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;align-items:flex-start}
.submission-image{display:block;width:min(420px,100%);max-height:360px;object-fit:contain;background:#f7fafc;border:1px solid #dbe5ee;border-radius:12px;margin-top:8px}
.subq-prompt{font-size:1rem;line-height:1.65;margin:.35rem 0 .65rem;white-space:pre-wrap}
.answer-hint{background:#f4f8fc;border-right:3px solid #174b70;padding:.6rem .8rem;border-radius:8px;margin-bottom:.7rem}
.graph-builder{border:1px solid #dbe5ee;border-radius:14px;padding:14px;background:#fbfdff}
.graph-data{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:12px 0}
.graph-data label{display:flex;flex-direction:column;gap:4px;text-align:center}
.graph-builder canvas{display:block;width:100%;height:auto;background:white;border:1px solid #e3eaf0;border-radius:10px}

.text-style-toolbar{display:flex;flex-wrap:wrap;gap:12px;padding:12px;background:#f3f6fa;border-radius:10px;margin:10px 0}.text-style-toolbar label{display:flex;gap:6px;align-items:center}.text-style-toolbar select{width:auto;min-width:100px}

.question-image{display:block;max-width:100%;height:auto;margin:12px auto;border:1px solid #d5dce5;border-radius:8px}.question-image-preview{padding:8px;border:1px dashed #b5c5db;margin:12px 0}

.points-badge{display:inline-block;padding:5px 10px;border-radius:8px;background:#e8f1fc;color:#193b65;font-size:.9rem;font-weight:700;white-space:normal}.subq-title .points-badge{margin-inline-start:10px}.grading-review{width:min(1150px,96vw)!important;max-height:94vh;overflow:auto}.grading-section{border:1px solid #cdd9e7;border-radius:14px;margin:18px 0;padding:20px;background:white;min-width:0}.grading-section h3{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.grading-section pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.7}.grading-evidence{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.75fr);gap:20px;margin:15px 0}.grading-evidence .submitted-file{display:block;max-width:100%;margin-bottom:12px}.grading-section .question-context{background:#f3f6fa;padding:12px;border-radius:8px}.lecturer-correction{background:#f4f8fd;border-radius:10px;padding:15px}.lecturer-correction label{display:block;margin:10px 0}.lecturer-correction .checkline{display:flex;align-items:center;gap:8px}.lecturer-correction textarea{width:100%;min-height:110px;box-sizing:border-box;font-family:inherit;line-height:1.6}.lecturer-correction input[type=number]{width:150px}.final-grading-box{padding:16px;border:1px solid #bfcee0;border-radius:10px;display:flex;gap:12px;flex-wrap:wrap;align-items:end}.section-save-status{color:#155b3c;font-weight:600}.original-ai-review{border:1px solid #bfd2e6;border-radius:10px;padding:14px;margin:16px 0;background:#f8fbff}.original-ai-review>h3{margin-top:0}.scan-review-item+ .scan-review-item{border-top:1px solid #d7e2ed;margin-top:16px;padding-top:16px}.scan-review-item h4{margin:12px 0 6px}.scan-review-item pre{background:white;border:1px solid #d9e3ed;border-radius:8px;padding:10px}.section-current-score{font-size:1.05rem}@media(max-width:700px){.grading-evidence{grid-template-columns:minmax(0,1fr)}.grading-section{padding:12px}.grading-review{width:96vw!important}.grading-section h3{font-size:1.1rem}}

.feedback-report-frame{display:block;width:100%;height:65vh;border:1px solid #cdd9e7;background:white;border-radius:10px;margin:12px 0}

/* PDF import review: instructor sources remain beside the editable draft. */
.pdf-import-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(420px,1.15fr);gap:20px;align-items:start;margin:20px 0}
.pdf-source-panel{position:sticky;top:15px;border:1px solid #dbe4ef;border-radius:14px;background:#fff;padding:16px}
.pdf-source-panel iframe{display:block;width:100%;height:72vh;border:1px solid #dbe4ef;margin-top:12px;border-radius:8px;background:#f1f5f9}
.pdf-draft-panel{min-width:0}.pdf-draft-panel textarea{width:100%;min-height:110px;white-space:pre-wrap;unicode-bidi:plaintext}
.pdf-question{margin:0 0 18px}.pdf-import-section{margin:18px 0;padding:16px;border:1px solid #dbe4ef;background:#f8fafc;border-radius:10px}
.import-warnings{background:#fff7df;border-right:4px solid #dca33a;padding:12px 32px 12px 16px;border-radius:8px;overflow-wrap:anywhere}
.import-reviewed{padding:12px;background:#e8f5ee;border-radius:8px;margin-top:12px}.import-confirm{margin-top:24px}
#pdfConfirmStatus,#newCourseError{color:#a12a26;white-space:pre-wrap}#pdfDraftSaveStatus{font-size:.9rem;color:#475569}
@media(max-width:1000px){.pdf-import-layout{grid-template-columns:minmax(0,1fr)}.pdf-source-panel{position:static}.pdf-source-panel iframe{height:50vh}.pdf-draft-panel{width:100%}}

.pdf-match-question{border:1px solid #dbe4ef;padding:18px;border-radius:12px;margin:20px 0;background:#fbfcfe}
.pdf-match-section{border-right:3px solid #9ab4d2;padding:12px;margin:14px 0;background:#fff}
.import-diff-wrap{overflow-x:auto}.import-diff{table-layout:fixed;width:100%;margin:12px 0}.import-diff th:first-child{width:18%}.import-diff td{white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top;unicode-bidi:plaintext}
.pdf-unmatched{background:#fff8e8;border:1px solid #ecd39b;border-radius:10px;padding:16px;margin:20px 0}
#pdfUpdateStatus{color:#a12a26;white-space:pre-wrap}
@media(max-width:600px){.pdf-match-question{padding:10px}.import-diff{font-size:.85rem}.import-diff td,.import-diff th{padding:6px}}
.pill.gold{background:#fff7df;color:#8a5b08}
.smart-points-box{background:#f4f8fd;border:1px solid #cbd9e8;border-radius:14px;padding:14px;margin:14px 0}
.smart-points-box .settings-grid{align-items:end}
.difficulty-note{background:#f8fbfd;border-right:3px solid #7d9fbe;padding:9px 12px;border-radius:8px;color:#526477}
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-scroll>.table{min-width:720px}
@media(max-width:600px){.table-scroll>.table{font-size:.88rem}.table-scroll>.table td,.table-scroll>.table th{white-space:nowrap;padding:8px}}

/* v63.10 — calmer staff dashboard, step-by-step form, accessibility */
.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}
.attention{border-top:5px solid var(--gold);margin-bottom:18px}.attention.calm{border-top-color:var(--green)}.attention h3{margin:0 0 10px}
.attention-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:10px}.attention-list li{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#f8fbfd;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.link-button{background:none;border:0;padding:0;color:#1d5f96;font-weight:900;text-decoration:underline;cursor:pointer}
.filters{margin-bottom:6px}.filters label{margin:0}
.more-actions{display:inline-block}.more-actions summary{cursor:pointer;list-style:none;border:1px solid #dce7f0;border-radius:14px;padding:10px 14px;font-weight:900;background:#fff}.more-actions[open] summary{margin-bottom:8px}.more-actions summary::-webkit-details-marker{display:none}
.pending-note{background:#fff7df;border:1px solid #edd6a8;color:#7a4f06;border-radius:14px;padding:10px 12px;font-weight:800}
.q-steps{position:sticky;top:8px;z-index:5;display:flex;flex-wrap:wrap;gap:8px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:18px;padding:10px;margin:12px 0;box-shadow:0 8px 22px rgba(8,40,68,.08)}
.q-step{border:1px solid #d7e4ef;background:#fff;border-radius:12px;padding:8px 12px;font-weight:900;display:flex;gap:6px;align-items:center}.q-step small{color:var(--muted);font-weight:800}.q-step.complete small{color:var(--green)}.q-step.active{background:#082844;color:#fff;border-color:#082844}.q-step.active small{color:#cfe3f1}.q-all{margin-inline-start:auto}
.stepper section.question{display:none}.stepper section.question.active{display:block}
.step-actions{justify-content:space-between;margin-top:16px;border-top:1px solid #edf2f6;padding-top:14px}
.question-code{margin-top:12px}
.missing-context{background:#fff7df;border:1px solid #edd6a8;border-radius:16px;padding:12px 14px;margin:10px 0}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2f7cc0;outline-offset:2px}
@media(max-width:700px){.q-steps{top:0;border-radius:0 0 14px 14px}.q-all{margin-inline-start:0}.attention-list li{display:block}}
.table-scroll{position:relative}
