:root { --navigation-back: #15803d; }
/* A navigation token only: material, assessment and status colours remain independent. */
.navigation-back, #workflowView [data-workflow-back], #workflowView [data-workflow-hub], .sm-back, .back-link { min-width:44px; min-height:44px; }
.navigation-back svg, #workflowView [data-workflow-back] svg, #workflowView [data-workflow-hub] svg, .sm-back svg, .back-link svg { color:var(--navigation-back); }
#workflowView .wf-plane-back, #operationsView .wf-plane-back { color:var(--navigation-back); }
.navigation-back:focus-visible, #operationsView :is(a,button):focus-visible { outline:3px solid #0284c7; outline-offset:3px; }
#operationsView { min-width:0; color:#1c1e40; }
#operationsView[hidden], #operationsView [hidden] { display:none; }
#factoryView[data-mode="courses"] #factoryMessage[data-kind="availability"] { display:none; }
.op-heading { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:8px 0; }
.op-heading > a { margin-left:auto; font-size:.85rem; }
.op-crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; font-size:.9rem; }
.op-crumbs a { overflow-wrap:anywhere; display:inline-flex; align-items:center; }
.op-heading .navigation-back { width:44px; padding:10px; flex:none; }
.op-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.op-toolbar h2 { font-size:1rem; margin:0; }
.op-toolbar > div { display:flex; gap:4px; }
#operationsView button, #operationsView a { min-height:44px; }
.op-toolbar button { min-width:44px; }
.op-toolbar [aria-pressed="true"] { background:#e2e8f0; color:#1c1e40; }
.op-spatial { position:relative; width:100%; height:clamp(420px,64vh,800px); overflow:hidden; }
.op-spatial canvas { display:block; width:100%; height:100%; }
#operationsView .wf-plane-back { position:absolute; z-index:1; transform:translate(-50%,-50%); width:44px; height:44px; min-width:44px; padding:8px; border:2px solid #1c1e40; border-radius:8px; background:#f8fafc; touch-action:none; user-select:none; }
#operationsView .wf-plane-back:focus-visible { outline:3px solid #0284c7; outline-offset:3px; }
.op-nodes { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:12px; margin:12px 0; }
.op-nodes > div { min-width:0; }
.op-nodes > div > a { display:flex; gap:5px; align-items:center; justify-content:center; font-size:.8rem; }
.op-node { width:100%; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; background:#f8fafc; color:#1c1e40; border:1px solid #cbd5e1; padding:12px; }
.op-node small { display:block; width:100%; font-size:.75rem; }
.op-node svg { width:28px; height:28px; }
.op-provenance { color:#626779; font-size:.8rem; overflow-wrap:anywhere; }
[data-exam-corrections] { min-width:0; flex-shrink:0; padding:4px 0; overflow-wrap:anywhere; }
[data-exam-corrections] a { display:flex; align-items:center; width:fit-content; max-width:100%; padding:8px 0; }
[data-exam-corrections] .op-correction-primary { font-weight:600; }
[data-exam-corrections] summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:.85rem; }
[data-exam-corrections] details a, [data-exam-corrections] p { font-size:.85rem; }
#operationsView [data-exam-corrections] summary:focus-visible { outline:3px solid #0284c7; outline-offset:3px; }
#operationsView[data-detail="true"] { position:fixed; inset:0; z-index:80; background:#fff; display:flex; flex-direction:column; padding:12px 24px; }
#operationsView[data-detail="true"][hidden] { display:none; }
.op-detail { flex:1; overflow:auto; min-height:0; padding:12px 4px 32px; }
.op-detail h2 { margin:0 0 20px; font-size:1.4rem; }
.op-artifacts { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr)); max-width:100%; gap:12px; }
.op-tile { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; min-height:130px; max-width:220px; padding:16px; border:1px solid #cbd5e1; border-radius:8px; color:#1c1e40; background:#f8fafc; text-decoration:none; overflow-wrap:anywhere; }
.op-tile > svg { width:48px; height:48px; }
.op-unavailable { color:#626779; }
.op-audiences { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 20px; padding:4px; border:1px solid #cbd5e1; border-radius:10px; width:fit-content; }
.op-audiences button { display:inline-flex; align-items:center; justify-content:center; gap:8px; color:#1c1e40; background:#fff; border:2px solid transparent; padding:8px 12px; }
.op-audiences svg { width:24px; height:24px; }
.op-audiences [data-op-audience="learner"][aria-pressed="true"] { background:#eaf3f8; border-color:#1c1e40; }
.op-audiences [data-op-audience="teacher"][aria-pressed="true"] { background:#f1edf8; border-color:#1c1e40; }
.op-audiences [aria-pressed="true"] { font-weight:700; }
.op-material { min-width:0; max-width:320px; }
.op-material .op-tile { width:100%; max-width:none; }
.op-material .op-unavailable { min-height:88px; gap:6px; opacity:1; }
.op-material .op-unavailable > svg { width:28px; height:28px; }
.op-topic-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.op-topic-heading h2 { margin:0; }
.op-topic-heading button { display:grid; place-items:center; min-width:44px; padding:8px; background:transparent; color:#1c1e40; }
.op-topic-heading small { flex-basis:100%; color:#626779; }
.op-learning-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:6px; }
.op-learning-actions > :is(a,button) { display:flex; align-items:center; justify-content:center; gap:5px; min-width:0; min-height:44px; padding:6px; font-size:.78rem; text-decoration:none; white-space:nowrap; }
.op-learning-actions > :is(a,button) svg { width:17px; height:17px; flex:none; }
.op-learning-actions > small { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-width:0; color:#626779; font-size:.72rem; }
.op-learning-actions time { font:inherit; }
.op-learning-actions .op-live-state { display:inline-flex; align-items:center; }
.op-learning-actions .op-live-state::before { content:""; width:7px; height:7px; margin-right:4px; border-radius:50%; background:#64748b; }
.op-learning-actions .op-live-state[data-state="released"]::before { background:#15803d; }
.op-learning-actions .op-live-state[data-state="conditional"]::before,
.op-learning-actions .op-live-state[data-state="needs-moodle"]::before { background:#a16207; }
.op-learning-actions .op-live-state[data-state="hidden"]::before { background:#b91c1c; }
.op-learning-actions .op-settings { display:grid; place-items:center; width:28px; min-width:28px; min-height:28px; margin-left:auto; color:#1c1e40; }
.op-learning-actions .op-settings svg { width:17px; height:17px; }
.op-rubric { display:block; margin:8px 0; font-size:.8rem; color:#1c1e40; background:transparent; }
.op-rubric-open { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; max-width:100%; padding:6px; white-space:nowrap; word-break:normal; overflow-wrap:normal; }
.op-rubric-open svg { width:18px; height:18px; flex:none; }
.op-artifact-frame { width:100%; height:72vh; min-height:420px; border:0; }
.op-learner-exams { margin:20px 0; padding:0 0 16px; border-bottom:1px solid #cbd5e1; }
.op-exam-list { display:grid; gap:8px; }
.op-exam-open { display:flex; align-items:center; gap:12px; min-height:64px; width:100%; padding:12px; text-align:left; background:#f1f7f4; color:#143c2c; border:1px solid #96bbaa; border-radius:6px; }
.op-exam-open span { flex:1; min-width:0; }
.op-exam-open strong,.op-exam-open small { display:block; overflow-wrap:anywhere; }
.op-exam-open small { margin-top:4px; font-weight:400; }
@media (max-width:480px) { .op-audiences { width:100%; } .op-audiences button { flex:1; flex-wrap:wrap; padding:6px; } .op-material { max-width:none; } }
.op-learners { list-style:none; padding:0; }
.op-learners button { display:flex; width:100%; flex-wrap:wrap; gap:16px; align-items:center; background:#f8fafc; color:#1c1e40; text-align:left; padding:20px; border-bottom:1px solid #cbd5e1; font-weight:400; }
.op-learners .op-learner-status, .op-task-count { font-size:.85rem; font-weight:400; color:#626779; }
.op-learners button span:last-child { margin-left:auto; }
#operationsView .op-learners > li { border:1px solid #cbd5e1; border-radius:8px; margin-bottom:10px; overflow:hidden; }
#operationsView .op-learners button { padding:10px 12px; gap:8px; border:0; }
#operationsView .op-learners strong, #operationsView .op-detail h2 { min-width:0; overflow-wrap:anywhere; }
#operationsView .op-upload-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; border:1px solid #cbd5e1; border-radius:6px; }
#operationsView .op-upload-scroll:focus-visible { outline:3px solid #0284c7; outline-offset:2px; }
#operationsView .op-upload-matrix { width:100%; border-collapse:separate; border-spacing:0; font-size:.85rem; }
#operationsView .op-upload-matrix :is(th,td) { padding:8px 12px; border-bottom:1px solid #e2e8f0; text-align:center; }
#operationsView .op-upload-matrix thead th { background:#f1f5f9; white-space:nowrap; }
#operationsView .op-upload-matrix th:first-child { position:sticky; left:0; z-index:1; text-align:left; background:#f8fafc; min-width:140px; width:220px; max-width:220px; overflow-wrap:anywhere; }
#operationsView .op-upload-matrix th small { display:block; font-weight:400; }
#operationsView .op-upload-matrix tbody tr:hover :is(th,td) { background:#f1f5f9; }
#operationsView .op-portfolio-command { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; background:transparent; color:#1c1e40; }
#operationsView .op-upload-mark { display:inline-flex; color:#626779; }
#operationsView .op-upload-yes { color:#15803d; }
#operationsView .op-upload-yes svg { stroke-width:3.5; }
#operationsView .op-upload-draft { color:#a16207; }
#operationsView .op-upload-missing { color:#b91c1c; }
#operationsView :is(.op-upload-mark,.op-upload-legend) svg { width:18px; height:18px; flex:none; }
#operationsView .op-upload-legend { display:flex; flex-wrap:wrap; gap:8px 16px; font-size:.85rem; color:#626779; }
#operationsView .op-upload-legend span { display:inline-flex; align-items:center; gap:5px; }
#operationsView .op-upload-detail { max-width:100%; margin-bottom:20px; }
#operationsView .op-upload-detail table { width:100%; border-collapse:collapse; table-layout:fixed; }
#operationsView .op-upload-detail :is(th,td) { text-align:left; padding:8px; border-bottom:1px solid #e2e8f0; overflow-wrap:anywhere; }
#operationsView .op-upload-detail :is(th,td):last-child { width:64px; text-align:center; }
#operationsView .op-upload-detail a { display:flex; align-items:center; gap:4px; font-weight:400; color:inherit; }
@media (max-width:680px) {
  #operationsView .op-upload-matrix th:first-child { min-width:108px; width:108px; max-width:108px; }
  #operationsView .op-upload-matrix :is(th,td) { padding:6px 8px; }
}
.op-portfolio-topic { border-top:1px solid #cbd5e1; padding:16px 0; }
.op-preview { display:block; width:100%; height:auto; max-width:1100px; margin:0 auto; }
.op-pages nav { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:12px; }
@media (max-width:680px) { #operationsView[data-detail="true"] { padding:8px 12px; } .op-heading { gap:6px; } .op-spatial { height:64vh; min-height:420px; } .op-nodes { gap:8px; } }
@media (prefers-reduced-motion:reduce) { #operationsView *, #operationsView *::before, #operationsView *::after { scroll-behavior:auto; transition:none; animation:none; } }
.op-pdf-opening { margin-bottom:20px; }
.op-pdf-open { display:inline-flex; align-items:center; gap:12px; padding:16px 24px; font-size:1.05rem; }
.op-pdf-open svg { width:32px; height:32px; }
#operationsView[data-pdf="true"] .op-detail { display:flex; padding:0; overflow:hidden; }
.op-pdf-viewer { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; }
.op-pdf-viewer nav { display:flex; align-items:center; gap:8px; justify-content:space-between; }
.op-pdf-viewer nav a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; }
.op-pdf-viewer iframe { flex:1; width:100%; min-height:200px; border:1px solid #cbd5e1; background:#f1f5f9; }
.op-pdf-fallback { margin:4px 0; font-size:.85rem; }
.op-pdf-fallback a { display:inline-flex; align-items:center; }
.op-exam-pages { flex:1; min-height:0; overflow:auto; background:#e6e8eb; padding:12px; }
.op-exam-pages figure { margin:0 auto 18px; max-width:1000px; }
.op-exam-pages img { display:block; width:100%; height:auto; background:white; }
.op-exam-pages figcaption { color:#435054; text-align:center; padding:8px; font-size:.85rem; }
.op-document-viewer { width:min(1180px,100%); margin:0 auto; }
.op-document-topbar { position:sticky; top:0; z-index:4; min-height:48px; display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:2px 8px; background:#fff; border-bottom:1px solid #d9dde5; }
.op-document-topbar a { display:grid; place-items:center; width:44px; height:44px; color:#1c1e40; }
.op-document-pages { display:grid; gap:24px; padding:18px clamp(4px,2vw,20px) 40px; background:#e8e9ed; }
.op-document-sheet { width:100%; max-width:1080px; margin:0 auto; }
.op-document-page { position:relative; width:100%; overflow:hidden; background:#fff; box-shadow:0 2px 12px #1c1e4028; line-height:0; }
.an-marking .op-document-page { touch-action:none; }
.op-document-page img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:fill; user-select:none; }
.op-document-sheet figcaption { margin-top:5px; color:#5f6272; text-align:right; font:11px/1.2 system-ui,sans-serif; }
.op-document-marks { position:absolute; inset:0; pointer-events:none; }
.op-document-selection { position:absolute; border:2px solid #74367c; background:#74367c1f; pointer-events:none; }
.op-document-loading { min-height:55vh; display:grid; place-items:center; }
@media(max-width:600px) { .op-document-pages { gap:12px; padding:8px 0 24px; } .op-document-page { box-shadow:none; } .op-document-sheet figcaption { padding-right:8px; } }
@media (max-width:680px) { .op-pdf-open { width:100%; justify-content:center; padding:12px; } #operationsView[data-pdf="true"] .op-crumbs { display:none; } .op-pdf-viewer nav { font-size:.8rem; } }
/* Korrekturmodus: Prüfungen (Familien) und Klassenübersicht je Klasse und Fach. */
[data-exam-corrections] .op-correction-families { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
[data-exam-corrections] .op-correction-families li { margin:0; }
[data-exam-corrections] .op-correction-families details { margin:0 0 4px 12px; }
/* One version link per line; the id-prefixed selector outranks «#factoryView a { display:inline-flex }». */
[data-exam-corrections] .op-correction-families details a, #factoryView [data-exam-corrections] .op-correction-families details a { display:block; width:fit-content; padding:6px 0; }
.op-correction-overview { margin-top:10px; }
/* Detail routes render inside a fixed flex frame: the nav must never push the detail content out of reach. */
#operationsView[data-detail="true"] [data-exam-corrections] { max-height:40vh; overflow:auto; flex-shrink:1; }
.op-overview-table tr[hidden] { display:none; }
.op-overview-summary { margin:4px 0 6px; font-size:.85rem; color:#4b5563; overflow-wrap:anywhere; }
.op-overview-filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.op-overview-filters button { min-height:36px; padding:6px 10px; border:1px solid #cbd5e1; border-radius:999px; background:#fff; color:#143c2c; font:inherit; font-size:.85rem; cursor:pointer; }
.op-overview-filters button[aria-pressed="true"] { background:#143c2c; color:#fff; border-color:#143c2c; }
.op-overview-filters button:focus-visible { outline:3px solid #0284c7; outline-offset:2px; }
.op-overview-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.op-overview-table th, .op-overview-table td { text-align:left; vertical-align:top; padding:8px 10px; border-top:1px solid #e5e7eb; }
.op-overview-table thead th { font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color:#4b5563; border-top:0; }
.op-overview-table tbody th { font-weight:600; }
.op-overview-name { display:block; }
.op-overview-grades { display:block; margin-top:2px; font-size:.8rem; font-weight:500; color:#4b5563; }
/* Whose points the grade rests on: green = all by hand, grey = KI share (the «*» carries the same distinction in text). */
.op-overview-grades .op-grade-own { color:#236844; }
.op-overview-grades .op-grade-mixed, .op-overview-grades .op-grade-ki { color:#6b7280; }
.op-overview-grades .op-grade-open, .op-overview-grades .op-grade-none { color:#4b5563; }
.op-overview-legend { margin:6px 0 0; font-size:.78rem; color:#4b5563; }
.op-overview-table a { display:inline-block; min-height:32px; padding:4px 0; }
.op-overview-table td[data-state="completed"] { color:#236844; }
.op-overview-table td[data-state="scored"], .op-overview-table td[data-state="partial"] { color:#6b4e00; }
.op-overview-table td[data-state="scan"], .op-overview-table td[data-state="present"] { color:#143c2c; }
.op-overview-table td[data-state="none"] { color:#8a1c1c; }
@media (max-width: 640px) {
  .op-overview-table thead { display:none; }
  .op-overview-table, .op-overview-table tbody, .op-overview-table tr, .op-overview-table th, .op-overview-table td { display:block; }
  .op-overview-table tr { border-top:2px solid #cbd5e1; padding:6px 0; }
  .op-overview-table th, .op-overview-table td { border-top:0; padding:4px 0; }
  .op-overview-table td::before { content:attr(data-label) ": "; font-size:.78rem; color:#4b5563; }
}

/* Shared exam/upload signets: glyph, shape and word carry the state. */
.op-signet-target{display:inline-flex!important;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:44px;min-height:44px;padding:4px!important;text-decoration:none;color:inherit;font-size:12px;line-height:1.3;vertical-align:middle}.op-signet{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:2px solid currentColor;border-radius:50%;color:#6b7a86;flex:none}.op-signet svg{width:17px;height:17px}.op-signet-completed{background:#1e7f4f;border-color:#1e7f4f;color:white}.op-signet-scored{color:#b86e00;background:linear-gradient(90deg,#f5dcab 50%,transparent 50%)}.op-signet-scan,.op-signet-submitted{color:#0a6fa8;border-radius:4px}.op-signet-none,.op-signet-missing{color:#8a98a3;border:0}.op-signet-unknown{border-style:dashed}.op-signet-draft,.op-signet-missing-lnw{color:#a34d36;border-radius:4px}.op-signet-word{display:none;max-width:110px}.op-show-signet-text .op-signet-word,.op-signet-target:focus-visible .op-signet-word,.op-signet-legend .op-signet-word{display:block}.op-signet-target:focus-visible{outline:3px solid #0284c7;outline-offset:2px}.op-signet-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:12px 0}.op-signet-legend .op-signet-target{flex-direction:row;gap:6px}.op-signet-legend button{margin-left:auto}.op-last-opened>th{box-shadow:inset 3px 0 #0a6fa8}.op-upload-matrix th[tabindex]:focus{outline:3px solid #0284c7;outline-offset:-3px}.op-upload-scroll{max-width:100%;overflow:auto}#operationsView .op-upload-matrix tbody td{padding:3px;min-width:48px}#operationsView .op-upload-matrix thead tr:first-child th:not(:first-child){position:static}#operationsView .op-upload-matrix thead tr:nth-child(2) th{position:static;min-width:60px;width:60px;max-width:90px;white-space:normal;font-size:12px}#operationsView .op-upload-matrix tbody th{min-width:120px;width:160px;max-width:180px}#operationsView .op-upload-matrix tbody th small{font-size:11px}@media(max-width:600px){#operationsView .op-upload-matrix thead tr:first-child>th:first-child,#operationsView .op-upload-matrix tbody th{min-width:108px;width:108px;max-width:108px;font-size:13px}#operationsView .op-upload-matrix thead tr:nth-child(2) th{min-width:64px;width:64px;max-width:64px;padding:4px}.op-signet-legend{gap:6px 12px}}

#operationsView .op-upload-matrix thead tr:nth-child(2) th{padding:4px;overflow-wrap:normal}#operationsView .op-upload-matrix thead small{font-size:10px;line-height:1.35}

.op-signet-optional-none{color:#8a98a3;border:0}.op-signet-sitting,.op-signet-grade{font-size:11px;line-height:1.2;font-weight:400}.op-signet-sitting{display:flex;align-items:center;gap:2px;white-space:nowrap}.op-signet-sitting svg{width:12px;height:12px}.op-grade-best{font-weight:700!important}.op-upload-matrix th small{display:block;overflow-wrap:anywhere}.op-upload-matrix td:last-child a{display:inline-flex;align-items:center;gap:3px}.op-upload-matrix td:last-child svg{width:18px;height:18px}@media(max-width:600px){.op-upload-matrix .op-portfolio-label{display:none}}

#operationsView .op-upload-matrix td:last-child{white-space:nowrap}#operationsView .op-upload-matrix td:last-child>a+a,#operationsView .op-upload-matrix td:last-child>a+button{margin-left:6px}

#operationsView .op-exam-note { display:flex; justify-content:center; flex-direction:column; align-items:center; position:relative; }
#operationsView .op-exam-note[hidden], #operationsView .op-exam-note-neutral > .op-signet-target { display:none!important; }
#operationsView .op-exam-note-neutral button { color:#6b7a86; }
#operationsView .op-exam-note button, #operationsView .op-exam-note-editor :is(button,select) { min-width:40px; min-height:40px; }
#operationsView .op-exam-note button { border:1px solid transparent; background:transparent; color:#334155; padding:0; }
#operationsView .op-exam-note button[aria-describedby] { border-color:#94a3b8; }
#operationsView .op-exam-note button:focus-visible { outline:2px solid #0369a1; outline-offset:2px; }
#operationsView .op-exam-note-tip:not([hidden]) { position:absolute; clip-path:inset(50%); pointer-events:none; }
#operationsView .op-exam-note:is(:hover,:focus-within) .op-exam-note-tip:not([hidden]) { clip-path:none; top:100%; z-index:2; padding:6px; background:#fff; color:#0f172a; border:1px solid #94a3b8; border-radius:4px; }
#operationsView :is(.op-exam-note-tip,.op-exam-note-editor) { width:min(15rem,60vw); text-align:left; overflow-wrap:anywhere; }
#operationsView .op-exam-note-tip, #operationsView .op-exam-note-editor p { white-space:pre-wrap; }
#operationsView .op-exam-note-editor { display:grid; gap:6px; padding:8px; margin:4px auto; border:1px solid #94a3b8; border-radius:6px; }
#operationsView .op-exam-note-editor :is(select,textarea) { display:block; width:100%; min-width:0; }
