/* Shared school workflow: local review only until approved. Uses the school theme. */
.school-workflow { --wf-teal:#174e43; --wf-soft:#f0f6f3; margin:0 0 30px; color:var(--ink,#183b34); }
.school-workflow *, .wf-dialog * {box-sizing:border-box;}
.wf-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px;padding:24px 0;border-bottom:1px solid var(--line,#d7dfdb);}
.wf-eyebrow {font-size:11px!important;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--wf-teal)!important;margin:0 0 10px!important;}
.wf-heading h2 {font:400 clamp(25px,3vw,38px)/1.12 Georgia,serif;letter-spacing:-.025em;margin:0 0 10px;}
.wf-heading p {font-size:14px;line-height:1.65;color:var(--muted,#52675d);max-width:62ch;margin:0;}
.wf-links {display:flex;gap:9px;align-items:center;flex-wrap:wrap;}
.wf-heading>.wf-links {justify-content:flex-end;max-width:430px;padding-top:14px;}
.wf-overview-links {display:flex;gap:12px;flex-wrap:wrap;}
.wf-desk {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px;}
.wf-desk>button {display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;padding:24px;border:1px solid var(--line,#d7dfdb);border-radius:10px;background:var(--paper,#fff);color:inherit;}
.wf-desk span {font-size:13px;font-weight:600;}
.wf-desk strong {font:400 36px/1.2 Georgia,serif;}
.wf-desk small {font-size:12px;line-height:1.6;color:var(--muted,#52675d);}
.wf-queues {display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 22px;padding-bottom:14px;border-bottom:1px solid var(--line,#d7dfdb);}
.wf-queues button {padding:10px 14px;min-height:44px;border:1px solid transparent;background:transparent;border-radius:6px;color:var(--muted,#52675d);font-family:inherit;font-weight:600;font-size:13px;line-height:1.4;}
.wf-queues [aria-pressed=true] {color:var(--wf-teal);background:var(--wf-soft);border-color:var(--line,#d7dfdb);}
.wf-result-tools,.wf-resource-top {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:14px 0;}
.wf-result-tools>.wf-count {margin:0;}
.wf-resource-top {margin:0;}
.wf-resource-top>small {font-size:11px;letter-spacing:.07em;}
.wf-resource-top .button {font-size:11px;padding:8px 12px;}
.wf-card-tools {flex-basis:100%;font-size:12px;text-align:right;}
.wf-card-tools>summary {cursor:pointer;padding:12px 2px;min-height:44px;color:var(--muted,#52675d);}
.wf-card-tools>.wf-links {justify-content:flex-end;padding:8px 0;}
.wf-progress-card {margin:16px 0;border:1px solid var(--line,#d7dfdb);border-radius:10px;}
.wf-progress-card>summary {padding:20px;cursor:pointer;list-style:none;}
.wf-progress-card>summary::-webkit-details-marker {display:none;}
.wf-progress-card>summary h3 {display:block;margin:10px 0;font:400 23px/1.3 Georgia,serif;}
.wf-progress-card>summary>span:last-child {display:block;font-size:12px;line-height:1.6;color:var(--muted,#52675d);}
.wf-progress-content {padding:0 20px 6px;}
.wf-dialog .wf-meta {font-size:11px;line-height:1.6;}
.wf-progress-section {padding:14px 0;border-top:1px solid var(--line,#d7dfdb);}
.wf-progress-section h4 {font-size:14px;margin:0 0 12px;}
.wf-progress-counts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 22px;}
.wf-progress-counts dt {font-size:11px;line-height:1.5;color:var(--muted,#52675d);}
.wf-progress-counts dd {font:400 27px/1.3 Georgia,serif;margin:5px 0 0;}
.wf-dialog .wf-preset {padding:14px 16px;border:1px solid var(--line,#d7dfdb);border-radius:6px;}
@media(max-width:850px){.wf-card-tools{text-align:left}.wf-card-tools>.wf-links{justify-content:flex-start}}
@media(max-width:560px){.wf-desk{grid-template-columns:1fr}.wf-desk>button{padding:18px;gap:8px}.wf-desk strong{font-size:30px}.wf-progress-card>summary{padding:16px}.wf-progress-content{padding:0 16px 4px}.wf-progress-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.wf-filters {display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin:20px 0 10px;}
.wf-filters label,.wf-dialog label {display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;line-height:1.5;min-width:0;}
.wf-filters label {flex:1 1 140px;}
.wf-filters .wf-search {flex:2 1 230px;}
.wf-filters :is(select,input),.wf-dialog :is(select,input[type=number]) {width:100%;padding:11px 12px;min-height:44px;background:var(--paper,#fff);color:var(--ink,#183b34);border:1px solid var(--line,#d7dfdb);border-radius:6px;font:inherit;font-size:14px;}
.wf-count {font-size:12px;color:var(--muted,#52675d);margin:16px 0 12px;}
.wf-envelope {margin:12px 0;border:1px solid var(--line,#d7dfdb);border-radius:12px;background:var(--paper,#fff);overflow:hidden;}
.wf-envelope>summary {list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;}
.wf-envelope>summary::-webkit-details-marker {display:none;}
.wf-envelope>summary strong {display:block;font:400 24px/1.2 Georgia,serif;margin-top:5px;}
.wf-envelope>summary small {font-size:11px;color:var(--muted,#52675d);}
.wf-envelope>summary>span:last-child {font-size:12px;flex-shrink:0;}
.wf-envelope[open]>summary {background:var(--wf-soft);border-bottom:1px solid var(--line,#d7dfdb);}
.wf-activities {padding:0 22px;}
.wf-activity {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--line,#d7dfdb);}
.wf-activity:last-child {border:0;}
.wf-activity-copy {flex:1 1 220px;min-width:0;}
.wf-activity>.wf-links {flex:1 1 360px;justify-content:flex-end;}
.wf-meta {display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted,#52675d);}
.wf-status {display:inline-block;border:1px solid var(--line,#c4d4cd);padding:4px 8px;border-radius:5px;font-weight:700;}
.wf-status.is-released {color:#174e43;background:#eef6f1;border-color:#bcd6c8;}
.wf-activity h4 {font-size:16px;line-height:1.45;margin:10px 0 5px;}
.wf-activity p {font-size:12px;line-height:1.6;color:var(--muted,#52675d);margin:0;}
.wf-courses {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.wf-course {display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;min-height:110px;padding:22px;background:var(--paper,#fff);border:1px solid var(--line,#d7dfdb);border-radius:10px;color:var(--ink,#183b34);}
.wf-course strong {font:400 30px/1 Georgia,serif;}
.wf-course span {font-size:12px;color:var(--muted,#52675d);}
.wf-course.is-selected {background:#eaf4ee;border-color:#174e43;box-shadow:inset 0 0 0 1px #174e43;}
.wf-resources {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.wf-resource {display:flex;flex-direction:column;padding:22px;border:1px solid var(--line,#d7dfdb);background:var(--paper,#fff);border-radius:10px;min-width:0;}
.wf-resource>small {font-size:10px;letter-spacing:.08em;font-weight:700;color:var(--muted,#52675d);}
.wf-resource h3 {font:400 24px/1.2 Georgia,serif;margin:12px 0 8px;overflow-wrap:anywhere;}
.wf-resource p {font-size:12px;color:var(--muted,#52675d);line-height:1.6;margin:0 0 22px;}
.wf-resource .wf-links {margin-top:auto;}
.wf-pager {display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:18px;font-size:12px;}
.wf-empty {padding:28px;border:1px dashed var(--line,#d7dfdb);border-radius:8px;font-size:14px;line-height:1.6;}
.wf-existing {margin:26px 0;padding:0;border:1px solid var(--line,#d7dfdb);border-radius:10px;background:var(--paper,#fff);}
.wf-existing>summary {cursor:pointer;padding:18px 22px;font-size:13px;font-weight:600;}
.wf-existing>:not(summary) {margin:0!important;padding:22px!important;border:0!important;}
.wf-dialog {width:min(740px,94vw);max-height:90dvh;padding:0;border:1px solid var(--line,#d7dfdb);border-radius:16px;background:var(--paper,#fff);color:var(--ink,#183b34);box-shadow:0 24px 90px #092b3430;}
.wf-dialog::backdrop {background:#092b345c;}
.wf-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;border-bottom:1px solid var(--line,#d7dfdb);}
.wf-dialog-head h2 {font:400 26px/1.2 Georgia,serif;margin:0;}
.wf-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:22px 28px 0;margin:0;list-style:none;}
.wf-steps li {display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted,#52675d);}
.wf-steps li>span {display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--line,#d7dfdb);border-radius:50%;flex:0 0 23px;}
.wf-steps [aria-current] {font-weight:700;color:#174e43;}
.wf-steps [aria-current]>span {background:#174e43;color:white;border-color:#174e43;}
.wf-dialog-body {padding:26px 28px;}
.wf-dialog-body h3 {font:400 25px/1.2 Georgia,serif;margin:0 0 14px;}
.wf-dialog-body p {font-size:14px;line-height:1.7;color:var(--muted,#52675d);margin:12px 0 20px;}
.wf-dialog-body fieldset {padding:18px;margin:22px 0;border:1px solid var(--line,#d7dfdb);border-radius:8px;}
.wf-dialog-body legend {font-size:12px;font-weight:700;padding:0 6px;}
.wf-checks {display:flex;flex-wrap:wrap;gap:16px 24px;}
.wf-checks label {display:flex;flex-direction:row;align-items:center;gap:9px;font-size:14px;}
.wf-dialog input:is([type=checkbox],[type=radio]) {appearance:auto;width:18px;height:18px;flex:0 0 18px;accent-color:#174e43;padding:0;margin:0;}
.wf-form-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px;}
.wf-mode-options {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.wf-dialog .wf-mode {flex-direction:row;align-items:flex-start;gap:10px;padding:16px;border:1px solid var(--line,#d7dfdb);border-radius:8px;}
.wf-mode.is-selected {background:#eef6f1;border-color:#174e43;}
.wf-mode strong,.wf-mode small {display:block;}
.wf-mode small {font-size:12px;font-weight:400;color:var(--muted,#52675d);line-height:1.65;margin-top:5px;}
.wf-dialog .wf-hint {font-size:12px;}
.wf-dialog-actions {display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line,#d7dfdb);padding-top:22px;margin-top:24px;}
.wf-dialog-actions>span {font-size:11px;color:var(--muted,#52675d);margin-inline-end:auto;}
.wf-summary {display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;font-size:13px;line-height:1.6;margin:20px 0;}
.wf-summary dt {color:var(--muted,#52675d);}
.wf-summary dd {margin:0;overflow-wrap:anywhere;}
.wf-access {padding:18px;background:#f0f6f3;border:1px solid #cfdfd6;border-radius:8px;}
.wf-access h4 {font-size:14px;margin:0 0 8px;}
.wf-access p {font-size:13px;margin:6px 0!important;}
.wf-access small {font-size:11px;line-height:1.6;display:block;margin-top:10px;}
.wf-dialog .wf-error {color:#972f25;font-size:13px;padding:12px;border:1px solid #d7a9a1;border-radius:6px;}
.wf-dialog .wf-success {font-weight:700;color:#174e43;}
.school-workflow :is(button,a,input,select,summary):focus-visible,.wf-dialog :is(button,a,input,select,summary):focus-visible,.wf-existing>summary:focus-visible {outline:2px solid #174e43;outline-offset:3px;}
.school-workflow button:disabled,.wf-dialog :disabled {opacity:.55;cursor:not-allowed;}
.school-workflow .button,.wf-dialog .button {min-height:44px;line-height:1.4;}
@media(max-width:850px){.wf-heading{flex-direction:column;gap:10px}.wf-heading>.wf-links{justify-content:flex-start;max-width:none}.wf-activity{flex-wrap:wrap}.wf-activity>.wf-links{justify-content:flex-start}.wf-resources{grid-template-columns:1fr}.wf-filters label{flex-basis:calc(50% - 14px)}}
@media(max-width:560px){.wf-courses{grid-template-columns:1fr;gap:8px}.wf-course{flex-direction:row;align-items:center;justify-content:space-between;min-height:76px;padding:18px}.wf-course strong{font-size:26px}.wf-envelope>summary{padding:16px;gap:12px}.wf-envelope>summary strong{font-size:22px}.wf-activities{padding:0 16px}.wf-dialog-head,.wf-dialog-body{padding:20px}.wf-steps{padding:18px 20px 0;gap:8px}.wf-steps li{flex-direction:column;align-items:flex-start;font-size:10px}.wf-mode-options,.wf-form-grid{grid-template-columns:1fr}.wf-summary{grid-template-columns:90px minmax(0,1fr)}.wf-dialog-actions{gap:8px}.wf-resource{padding:18px}.wf-dialog-head h2{font-size:23px}}

/* Keep selected states and diagnostic panels readable in the school night theme. */
:root[data-theme="dark"] .school-workflow {--wf-teal:#a8dcca;--wf-soft:#1d302b;}
:root[data-theme="dark"] :is(.wf-course.is-selected,.wf-mode.is-selected,.wf-access,.wf-status.is-released) {background:#1d302b;border-color:#679a87;color:#ddf3e9;}
:root[data-theme="dark"] .wf-course.is-selected {box-shadow:inset 0 0 0 1px #679a87;}
:root[data-theme="dark"] .wf-steps [aria-current],:root[data-theme="dark"] .wf-dialog .wf-success {color:#a8dcca;}
:root[data-theme="dark"] .wf-steps [aria-current]>span {background:#a8dcca;border-color:#a8dcca;color:#14372c;}
:root[data-theme="dark"] .wf-dialog .wf-error {color:#ffb6ab;border-color:#8c5148;}
:root[data-theme="dark"] .school-workflow :is(button,a,input,select,summary):focus-visible,:root[data-theme="dark"] .wf-dialog :is(button,a,input,select,summary):focus-visible,:root[data-theme="dark"] .wf-existing>summary:focus-visible {outline-color:#a8dcca;}

.wf-sr-only {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;}
.wf-heading-compact {align-items:center;padding:14px 0 20px;margin:0 0 18px;}
.wf-heading-compact>.wf-links {padding-top:0;}
@media(max-width:850px){.wf-heading-compact{align-items:flex-start}}
