:root{--green:#244635;--green2:#365943;--purple:#786b96;--bg:#f5f6f2;--line:#e1e5dd;--text:#24382e;--muted:#738078}*{box-sizing:border-box}body{margin:0;font:14px/1.5 'Segoe UI',Arial,sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:9px 15px;background:white;color:var(--text);font-weight:600}button:hover{border-color:#879b8c;background:#f0f4ef}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#345c44}.purple{background:var(--purple);color:white}.quiet{background:transparent;border:0;color:var(--muted);padding:6px 9px}.danger{color:#9a3838}input,select,textarea{border:1px solid #ced6cc;border-radius:7px;padding:9px 11px;background:white;min-width:0;color:var(--text)}input[type=checkbox]{width:18px;height:18px}label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px;font-weight:600}label input,label select,label textarea{color:var(--text);font-size:14px;font-weight:400}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:var(--green);color:#edf3e9;position:fixed;top:0;bottom:0;width:232px;padding:28px 18px;display:flex;flex-direction:column;gap:26px}.brand{display:flex;align-items:center;gap:12px;padding:0 8px}.brand img{width:44px;height:44px;object-fit:contain}.brand strong{display:block;font-size:20px;letter-spacing:-.5px}.brand small{font-size:10px;letter-spacing:1.8px;color:#bdccbc}.nav-label{font-size:10px;letter-spacing:1.5px;color:#9fb69f;padding:0 12px;margin:12px 0}.nav{display:grid;gap:5px}.nav button{background:none;color:#d9e5d6;border:0;display:flex;align-items:center;text-align:left;gap:12px;font-weight:400;padding:11px 14px}.nav button span:first-child{width:19px;font-size:17px}.nav button.active{background:#ffffff17;color:white;box-shadow:inset 3px 0 #c7b9df;font-weight:600}.nav button:hover{background:#ffffff0c}.sidebar-foot{margin-top:auto;font-size:11px;color:#aec1ac;padding:12px}.sidebar-foot b{color:white;display:block;margin-bottom:3px}.main{grid-column:2;min-width:0}.topbar{height:86px;background:#ffffffc9;border-bottom:1px solid var(--line);padding:18px 34px;display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar select{background:#f3f5ef;font-weight:600;min-width:205px}.topbar small{color:var(--muted)}.user{display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;border-radius:50%;background:#e8e2f0;display:grid;place-items:center;color:#695884;font-weight:700}.content{max-width:1500px;padding:30px 34px 50px;margin:auto}.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--purple);font-weight:700}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}h1{font-size:29px;font-weight:600;letter-spacing:-.9px;margin:5px 0}h2{font-size:18px;letter-spacing:-.3px;margin:0 0 7px}h3{font-size:15px;margin:0 0 4px}p{margin:5px 0 12px}.muted{color:var(--muted)}.small{font-size:12px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.card{background:white;border:1px solid var(--line);border-radius:13px;padding:22px;box-shadow:0 2px 7px #293b2803}.hero{background:linear-gradient(120deg,#e9eee3,#eeebf3);border:0;padding:30px;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.hero h2{font-size:26px;margin:7px 0}.hero p{max-width:570px;color:#617063}.hero .seal{width:95px;opacity:.75}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat .value{font-size:30px;font-weight:600;letter-spacing:-1px;margin:8px 0 0}.stat .label{color:var(--muted);font-size:12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.stagecard{display:flex;align-items:flex-start;gap:15px}.step{background:#eef1e9;border-radius:11px;width:39px;height:39px;display:grid;place-items:center;font-weight:600;color:#627757;flex-shrink:0}.stagecard .body{flex:1}.pill{display:inline-block;border-radius:20px;padding:3px 9px;font-size:10px;font-weight:700;letter-spacing:.3px;background:#eef1eb;color:#72806f}.pill.confirmed{color:#336d43;background:#e1f1e5}.pill.draft{color:#79638b;background:#eee8f5}.pill.stale{color:#966735;background:#faf0da}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 18px}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 20px}.tabs button{padding:6px 11px;font-size:12px}.tabs button.selected{background:#e8e2ef;border-color:#b8a8cd;color:#5b4a72}.tablewrap{overflow:auto;max-height:68vh}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#7d887c;font-size:10px;letter-spacing:.8px;text-transform:uppercase;background:#f6f8f3;padding:12px 13px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}td{padding:11px 13px;border-bottom:1px solid #eff1eb;font-size:12px}tr:last-child td{border-bottom:0}tr.weekend td{background:#f4f0f8}td.name{font-weight:600;color:#253f2d}td select{max-width:180px;padding:5px 7px;font-size:12px}td .leave{font-size:11px;white-space:normal;min-width:130px;max-width:200px}td .flag{color:#b07a34}.empty{text-align:center;padding:52px 20px;color:var(--muted)}.empty .symbol{font-size:35px;color:#b8c3b4;display:block;margin-bottom:10px}.notice{padding:13px 17px;background:#f4f0e6;border:1px solid #eadfca;border-radius:9px;font-size:12px;color:#826b43;margin:0 0 18px}.notice.success{background:#edf5e9;border-color:#d4e5cc;color:#56794a}.notice.error{background:#fbefec;border-color:#efcec6;color:#9d5144}.notice ul{padding-left:18px;margin:7px 0}.footnote{font-size:11px;color:#8b9487;margin:18px 0}.counts{margin-top:22px}.counts .card{padding:0}.counts h2{margin-bottom:12px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.full{grid-column:1/-1}dialog{border:1px solid var(--line);border-radius:16px;max-width:780px;width:90vw;padding:28px;max-height:90vh;overflow:auto;color:var(--text)}dialog::backdrop{background:#152d2355;backdrop-filter:blur(2px)}dialog .pagehead{margin-bottom:18px}dialog h2{font-size:21px}.presets{display:flex;flex-wrap:wrap;gap:6px}.presets button{font-size:12px;padding:7px 9px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:var(--green);display:flex;flex-direction:column;justify-content:center;padding:12%;color:white}.login-art img{width:110px;opacity:.85;margin-bottom:30px}.login-art h1{font-size:43px;line-height:1.2;max-width:420px}.login-art p{color:#b9c9b4;margin-top:15px;font-size:16px}.login-form{display:flex;flex-direction:column;justify-content:center;width:340px;max-width:85%;margin:auto}.login-form form{display:grid;gap:20px}.login-form h2{font-size:27px}.login-form .primary{padding:13px}#toast{position:fixed;bottom:24px;right:25px;z-index:20;background:var(--green);color:white;border-radius:10px;padding:13px 20px;box-shadow:0 5px 30px #0003;max-width:520px}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #ccd6c8;border-top-color:#45683e;border-radius:50%;animation:spin .8s linear infinite;margin-right:8px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}.busy{position:fixed;right:28px;top:95px;z-index:12;background:white;border:1px solid var(--line);padding:13px 18px;border-radius:10px;box-shadow:0 5px 20px #0001}.split{display:grid;grid-template-columns:2fr 1fr;gap:20px}.details summary{cursor:pointer;font-size:12px;font-weight:600;margin-bottom:8px}.week-title{color:var(--purple);margin:23px 0 10px}.row-end{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.sourcehead{padding:16px 20px;border-bottom:1px solid var(--line)}.no-pad{padding:0}.droparea{border:2px dashed #cbd5c4;border-radius:10px;padding:25px;text-align:center;background:#f7f9f4}a{color:#596f4c}.iconbox{height:24px;width:24px;display:inline-grid;place-items:center}.badge-count{background:#fff2;font-size:10px;margin-left:auto;padding:2px 6px;border-radius:5px}@media(max-width:1050px){.sidebar{width:190px}.shell{grid-template-columns:190px 1fr}.content{padding:24px 20px}.topbar{padding:18px 20px}.stats{grid-template-columns:repeat(2,1fr)}.pagehead{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;width:100%;padding:12px;gap:8px}.brand{justify-content:center}.sidebar nav{display:flex;overflow:auto}.nav{display:flex;gap:4px}.nav-label,.sidebar-foot{display:none}.nav button{white-space:nowrap;padding:9px}.main{display:block}.topbar{height:auto;flex-wrap:wrap}.content{padding:20px 12px}.hero{padding:20px}.hero .seal{display:none}.formgrid,.split{grid-template-columns:1fr}.login{grid-template-columns:1fr}.login-art{display:none}.login-form{min-height:100vh}.toolbar{align-items:flex-start;flex-direction:column}h1{font-size:25px}th,td{padding:10px 8px}.stats{gap:9px}.stat{padding:15px}.actions button{padding:8px 10px}.card{padding:16px}.no-pad{padding:0}}

.ctu-board{margin-bottom:22px}.ctu-board table{table-layout:fixed;min-width:1050px;white-space:normal}.ctu-board td{vertical-align:top}.ctu-board th:first-child{width:130px}.ctu-board input,.ctu-board select{width:100%;max-width:none;font-size:12px;padding:7px}.resident-chip{display:flex;align-items:center;justify-content:space-between;gap:5px;background:#eef3e9;border-radius:7px;padding:7px;margin-bottom:7px}.resident-chip small{display:block;color:#74816c;font-size:10px}.resident-chip button{padding:2px 6px;border:0;background:transparent}.ctu-board td small{display:block}

.bundle-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;margin-bottom:20px;background:#e6e1ef;border-radius:12px;color:#493f60;font-size:12px}.schedule-matrix table{min-width:1100px;table-layout:fixed}.schedule-matrix th,.schedule-matrix td{padding:7px 5px;text-align:center;border:1px solid #d5dfd8;vertical-align:middle}.schedule-matrix thead th{background:#1f3d2b;color:white;position:sticky;top:0}.schedule-matrix tbody th{background:#e4ede6;position:sticky;left:0;z-index:1}.seat-input{width:100%;min-width:85px;padding:8px 4px!important;font-size:12px!important;text-align:center;background:transparent!important}.pin-note{display:block;font-size:9px;color:#786b96}.night-cell{background:#e6e1ef}.tinted-cell{background:#f1edf6}.opd-matrix table{width:100%;table-layout:fixed}.opd-matrix th:first-child{width:16%}.opd-matrix td{vertical-align:top}.clinic-seat{padding:8px 4px;border-bottom:1px solid #dce3df}.clinic-seat strong{display:block;font-size:12px;color:#315841}.release-cell{text-align:center;padding:35px;color:#786b96;font-weight:bold}@media(max-width:800px){.bundle-bar{flex-wrap:wrap}.schedule-matrix .tablewrap{max-height:75vh}}

.source-grid-wrap{overflow:auto;max-height:78vh}.source-grid-wrap table{border-collapse:collapse;table-layout:fixed}.source-grid-wrap td{padding:1px 2px;border:1px solid #a9b8ae;vertical-align:middle;line-height:1.12}.source-grid-wrap .seat-input{min-width:0;border:0;border-radius:0;font:inherit!important;color:inherit;padding:0!important;height:auto}.source-grid-wrap .pin-note:empty{display:none}.float-cell{border:0;background:transparent;color:inherit;font:inherit;padding:0;width:100%;cursor:pointer}.float-cell:hover,.source-grid-wrap input:focus{outline:2px solid #8572ae}.resident-highlight{background:#e9dff9!important;outline:2px solid #786b96}.opd-matrix strong{font-weight:600}.opd-matrix .seat-input{text-align:center}#opd-workload table{font-size:12px}#opd-workload td{white-space:normal;min-width:70px}

.weekend-source{overflow:auto}.weekend-source table{min-width:1100px;table-layout:fixed}.weekend-source th{background:#33604A;color:white;border:1px solid #cad2c8}.weekend-source thead tr:first-child th{background:#1F3D2B;height:45px}.weekend-source td{border:1px solid #cad2c8;background:#FAFAF6;height:60px}.weekend-source tr:nth-child(even) td{background:#F1F5F0}.weekend-source select{width:100%;border:0;background:transparent;padding:3px;font-size:12px}.opd-matrix table{font-family:Arial,sans-serif;border-collapse:collapse;min-width:750px;table-layout:fixed}.opd-matrix thead th,.opd-matrix tbody th{background:#b7b7b7;color:#111;border:1px solid #333}.opd-matrix th:first-child{width:16%}.opd-matrix td{background:white;border:1px solid #333;vertical-align:top;text-align:left}.opd-matrix .clinic-seat{display:flex;align-items:center;gap:5px;border:0;padding:3px 0}.opd-matrix .clinic-seat strong{font-size:12px;font-weight:400;flex:1}.opd-matrix .seat-input{font-size:12px;font-weight:bold;text-decoration:underline;border:0;background:transparent;max-width:130px;text-align:left;padding:0}.ctu-board th{background:#d6e4d2;color:#111;font-family:'Times New Roman',serif}.ctu-board tbody th{background:#91839d}.ctu-board td{background:#d6e4d2;border:1px solid #777}.ctu-board input,.ctu-board select{background:transparent;border:0;padding:4px;font-family:'Times New Roman',serif;border-radius:0}
.float-source{min-width:1050px;table-layout:fixed}.float-source th{background:#1F3D2B;color:white}.float-source th:nth-child(2){width:50px}.float-source td{height:44px;border:1px solid #e0e4de}.float-source select{border:0;background:transparent;width:100%;padding:3px;font-size:12px}.float-contacts{margin:8px 0 30px;background:#fcfcfa}.float-contacts h3{background:#6F6690;color:white;text-align:center;margin:0;padding:5px}.float-contacts table{font-size:12px}.float-contacts th{background:#1F3D2B;color:white}.grid-view-tools{margin:8px 0}.source-grid-wrap{max-height:unset}.source-grid-wrap td{overflow:hidden}
.opd-source-title{background:#999;color:#111;text-align:center;font:bold 13px/1.5 Arial;padding:13px;min-width:750px;border:1px solid #333}.clinic-group{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:4px 0}.clinic-group>strong{font:12px Arial;flex:1;min-width:110px}.clinic-group .clinic-seat{display:inline-flex;padding:0}.clinic-group .clinic-seat input{max-width:100px}
.picker-list{display:grid;gap:5px;max-height:48vh;overflow:auto;margin:12px 0}.picker-choice{text-align:left}.picker-choice small{display:block;font-weight:400;color:#65756b}.picker-choice[hidden]{display:none}.clear-seat{padding:0 3px;border:0;background:transparent;color:#6c6868;font-size:13px;vertical-align:middle}.source-grid-wrap .seat-input{width:calc(100% - 15px);cursor:pointer}.name-highlight{outline:2px solid #8e70b0!important;outline-offset:-2px;background:#e8dff3!important}.control-row{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap}.control-row select{max-width:300px}.control-row input[type=number]{width:80px}.control-row textarea{width:100%}.directory-group th{background:#6f6690!important;color:white}.extra-note{background:#f0edf5;text-align:left!important}.editable-float{cursor:pointer}.editable-float:hover{outline:2px solid #8e70b0}.ctu-board [data-consultation-staff]{width:100%;min-width:95px}
.import-new{background:#e1f1e6!important}.import-changed{background:#fff1c5!important}.import-missing{background:#ffe3e3!important}#intake-review input:not([type=checkbox]){min-width:115px}#refresh-linked{margin-left:12px}

/* Schedule workspaces and immutable block archive */
.schedule-tools{padding:16px;margin:16px 0}.schedule-tabbar{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px}.schedule-tabbar button{white-space:nowrap;border-radius:10px 10px 3px 3px}.schedule-tabbar .selected{background:#1f3d2b;color:white}.schedule-tools .toolbar{flex-wrap:wrap;gap:12px}.archive-grid td{border:1px solid #ccd5ce;white-space:pre-wrap;text-align:center;min-width:72px;font-size:12px;padding:7px}.archive-grid{min-width:100%;table-layout:auto}.candidate-ok{border-left:4px solid #4f8664}.candidate-conflict{border-left:4px solid #b58535}.candidate-details{white-space:normal;font-size:11px;max-width:600px}.schedule-tools button:disabled{opacity:.4}.preflight-item{display:block;width:100%;text-align:left;margin:5px 0}.lock-note{background:#e6e1ef;color:#4b4364;padding:3px 7px;border-radius:5px}
/* Shared team tools: quiet read-only cells, explicit tab close and live feedback. */
.schedule-tab-pair{display:inline-flex;align-items:stretch;gap:0;margin:2px}.schedule-tab-pair button:first-child{border-radius:8px 0 0 8px}.schedule-tab-pair .tab-close{border-radius:0 8px 8px 0;padding:6px 10px;color:#735353;border-left:0}.team-live{color:#315f4b;font-size:12px;padding:8px 12px;background:#edf5ef;border-radius:8px}.remote-cell-update{box-shadow:inset 0 0 0 2px #91b7a0;transition:box-shadow .3s}#source-grid td[data-grid-readonly="1"]{white-space:pre-line}#team-documents td{vertical-align:top}#team-documents a{display:inline-block;margin:4px}#team-documents button{margin:4px}
/* Each ER evening resident is a distinct visible row, even in the compact grid. */
#source-grid .duty-seat{display:block;white-space:normal;min-height:26px;padding:3px 0;border-bottom:1px solid #bbc7bc}
#source-grid .duty-seat:last-child{border-bottom:0}
#source-grid .duty-seat>small{display:block;font:9px Arial;color:#526455}
#source-grid .duty-seat input{display:inline-block;min-height:20px}
#source-grid td:has(.duty-seat){overflow:visible;white-space:normal}
#source-grid .pin-note{white-space:normal}
.preparation{margin:12px 0}.preparation summary{cursor:pointer;font-weight:600}
#operation-error{position:relative;z-index:2}#block-requests{margin:20px 0}
.float-edit-label{display:block;font:9px Arial;color:#516857;margin-top:3px}.float-cell{min-height:32px;white-space:normal}.float-cell:focus-visible{outline:2px solid #8572ae}.source-grid-wrap td:has(.float-cell){cursor:pointer}

/* Multi-date requests: one visible block, no repeated date dialog. */
.request-calendar{padding:14px;border:1px solid #ccdcd6;border-radius:12px;margin:12px 0}
.request-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center;margin:12px 0}
.request-days button{padding:9px 3px}.request-days small{display:block;font-size:10px}
.request-days button.selected{background:#1d493b;color:white;border-color:#1d493b}
#account-list .actions{min-width:250px}#account-list .pill.ok{background:#e0f0e6;color:#17432c}
#end-rota-tools{border-top:1px solid #d8e2dd;padding-top:12px;margin-top:12px}
:root{--workspace-surface:#f5f7f5}
.sidebar{overflow-y:auto;gap:18px;padding-top:22px;padding-bottom:18px}
.sidebar nav .nav-label{margin-top:12px;font-size:10px;letter-spacing:.12em}
.sidebar .nav button{padding-top:8px;padding-bottom:8px}
.sidebar-foot{margin-top:auto;flex-shrink:0}
.workflow-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(110deg,#edf5ef,#fff)}
.workflow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:20px}
.distribution-settings{padding:12px 18px;margin-bottom:16px;background:#f5f8f5}
.distribution-settings summary{cursor:pointer;font-weight:600}
.distribution-settings .toolbar{margin-top:16px}
.annual-matrix{max-height:68vh;border:1px solid #d9e2dc;border-radius:10px}
.annual-matrix table{min-width:1950px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.annual-matrix thead th{position:sticky;top:0;z-index:3;background:#214b3a;color:white}
.annual-matrix tr>th:first-child{position:sticky;left:0;width:220px;min-width:220px;max-width:220px;background:#edf3ef;z-index:2;color:#19392c;white-space:normal;overflow-wrap:anywhere;text-transform:none;letter-spacing:normal;font-size:12px}
.annual-matrix thead th:first-child{z-index:4;background:#214b3a;color:white}
.annual-matrix th small{display:block;font-weight:400;font-size:10px;white-space:nowrap;line-height:1.6}
.annual-matrix td{padding:4px!important;vertical-align:top;border-right:1px solid #e2e8e3}
.rota-cell{width:100%;min-height:70px;text-align:left;border:0;border-radius:7px;background:#fff;padding:10px;color:#19392c;white-space:normal}
.rota-cell:hover,.rota-cell:focus{background:#e5eee8;outline:2px solid #739c83;outline-offset:-2px}
.rota-cell>span{display:inline-block;font-size:10px;margin:3px;background:#ecedef;padding:2px 4px;border-radius:4px}
.rota-cell.eid-coverage{background:#fff4c7}
.rota-absence{display:block;margin-top:5px;color:#63462d;font-size:10px;background:#fff2e6;padding:3px}
.rota-leave-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 36px;gap:8px;margin-bottom:8px}
.rota-totals{margin-top:18px}
.rota-totals summary{cursor:pointer;font-weight:600}
.import-difference td{background:#fff9e5}
#annual-preview{max-height:65vh;overflow:auto;margin-top:16px}
.resident-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
#resident-month-dialog{max-width:1100px}
.resident-day{padding:7px;border:1px solid #dce4dd;border-radius:6px;font-size:11px;overflow-wrap:anywhere;min-height:90px}
.resident-day b,.resident-day small,.resident-day span{display:block}
.resident-day small{font-size:10px;color:#68776c;margin-top:4px}
.day-task{background:#edf3ee;padding:4px;margin-top:4px;border-radius:4px}
.day-absent{background:#fff3df}.day-conflict{outline:2px solid #b84936}
.day-leave{color:#895a17;margin-top:4px}
@media(max-width:700px){.workflow-hero{display:block}.rota-leave-row{grid-template-columns:1fr 1fr}.annual-matrix{max-height:60vh}}

#ctu-import-preview .import-conflict td{background:#fff2d8} #ctu-import-options label{display:flex;align-items:center;gap:.6rem} #ctu-import-options input{width:auto}

/* Registry and annual planning: readable rows without changing schedule templates. */
.operations-page table{font-size:13px}.operations-page small{display:block;font-size:12px;line-height:1.6;color:var(--muted,#65746b)}.operations-page td{vertical-align:top;padding:14px}.operations-page .tablewrap{max-height:none}.operations-page h2{margin-top:0}

#intern-verdict-label[hidden]{display:none}#dialog:has(#intern-activity) small{display:block;font-size:12px;line-height:1.6}#dialog:has(#intern-activity) table{font-size:13px}

.compare-before{background:#fff0eb!important}.compare-after{background:#e9f5ee!important}#archive-comparison details{margin:16px 0}#archive-comparison td{white-space:pre-wrap}#year-planning .annual-matrix{max-height:65vh}
.focused-tools{justify-content:flex-start!important;gap:10px;align-items:flex-start!important;flex-wrap:wrap}.tool-group{border:1px solid #d8e1da;border-radius:8px;background:#fff;max-width:100%}.tool-group summary{cursor:pointer;padding:10px 14px;font-size:13px;list-style-position:inside}.tool-group[open]{background:#f5f8f4}.tool-group-body{padding:8px 12px 12px;max-width:520px;flex-wrap:wrap}.tool-group-body select{max-width:100%}.tool-group summary:focus-visible{outline:2px solid #426653;outline-offset:3px}.focused-tools>.actions{margin:0}dialog:has(#closeout-preview-body){width:min(1250px,96vw);max-width:96vw}#closeout-preview-body td{white-space:normal}#closeout-preview-body details{margin:12px 0}

.ctu-source-image{position:relative;max-width:1100px;margin:auto}.ctu-source-image img{width:100%;display:block}.ctu-source-image #ctu-source-box{position:absolute;background:#ffd54f55;border:3px solid #b65b00;pointer-events:none}.ctu-source-image #ctu-source-box[hidden]{display:none}
dialog:has(#closeout-totals){width:min(1250px,96vw);max-width:96vw}#closeout-preview-body .tablewrap,#closeout-totals .tablewrap{max-height:52vh;overflow:auto}#closeout-preview-body th,#closeout-totals th{position:sticky;top:0;background:#f5f8f4;z-index:1}#closeout-preview-body td,#closeout-totals td{padding:10px 12px}

dialog:has(#ctu-source){width:min(1400px,96vw);max-width:96vw}#ctu-import-options label{flex-direction:row;align-items:center;margin:8px 0;gap:10px}#ctu-import-preview td:first-child{white-space:normal;min-width:170px}#ctu-import-preview td small{display:block}#year-matrix th small{color:#d8e6df;display:block;letter-spacing:0}#year-matrix td small{display:block;white-space:normal;overflow-wrap:anywhere}

dialog:has(#smart-review){width:min(1320px,96vw);max-width:96vw}#smart-review{min-width:0}.smart-review-intro{display:flex;justify-content:space-between;align-items:start;gap:24px}.smart-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.smart-stat{display:flex;flex-direction:column;align-items:start;text-align:left;padding:18px}.smart-stat strong{font-size:28px}.smart-stat.conflict{border-left:4px solid #a54d43}.smart-stat.coverage{border-left:4px solid #9a7941}.smart-stat.source{border-left:4px solid #79698d}.smart-stat.preference{border-left:4px solid #54755e}.smart-filters{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.smart-filters label{flex:1;min-width:180px}.smart-cell-label{flex:3!important}.smart-group{background:#fafbf8;border:1px solid #dce3d8;border-radius:10px;padding:14px 18px;margin:10px 0}.smart-group summary{cursor:pointer}.smart-guidance{white-space:normal;max-width:1000px;margin-top:12px}.smart-finding{border-top:1px solid #e3e7df;padding:10px 0}.smart-finding p{white-space:normal;overflow-wrap:anywhere}.smart-finding small{display:block;color:#7a622d}.smart-proposal{margin:16px 0}.smart-proposal details{margin:12px 0}.smart-proposal td{white-space:normal;min-width:100px}#smart-timeline td{white-space:normal}#smart-body{min-height:170px}.smart-tabs{margin-bottom:10px}@media(max-width:700px){.smart-summary{grid-template-columns:1fr 1fr}.smart-review-intro{display:block}}
/* Maintenance preserves unsaved DOM edits behind a separate access screen. */
.maintenance-screen{position:fixed;inset:0;z-index:10000;background:#f5f7f6;display:grid;place-items:center;padding:24px;overflow:auto}
.maintenance-screen>.card{max-width:620px}
.maintenance-banner{margin:12px 20px;border:1px solid #aa7800;background:#fff5d6;color:#493800}
#maintenance-settings{margin-top:20px}

/* Clear labels remain visible beside icons; compact navigation on small screens. */
.busy{max-width:min(460px,calc(100vw - 24px))}.busy-elapsed{display:block;max-width:380px;margin-top:5px;color:var(--muted);line-height:1.5}.busy-elapsed:empty{display:none}
.round-cell-members{padding-top:7px;border-top:1px solid var(--line);margin-top:7px;white-space:normal}.round-cell-members>div{font-weight:600;margin-bottom:5px}.round-cell-members button{min-height:36px}
.nav-icon{display:block;width:21px;height:21px;flex-shrink:0}
.workspace-menu{display:none}.overview-tools{margin:0 0 20px}.overview-tools>.actions{padding:10px 14px;flex-wrap:wrap}
.pagehead .actions{flex-wrap:wrap}.pagehead .actions>*{min-height:42px}
button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #7270b0;outline-offset:3px}
@media(max-width:700px){
 .sidebar{padding:10px 14px;gap:8px}.sidebar .brand{justify-content:flex-start;padding:0;margin:0;gap:10px}
 .sidebar .brand img{width:30px;height:34px;object-fit:contain}.sidebar .brand strong{font-size:15px}.sidebar .brand small{display:none}
 .workspace-menu{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;background:#ffffff12;color:white;border:1px solid #ffffff35;padding:9px 12px}
 .workspace-menu svg{width:20px;height:20px}.menu-current{margin-left:auto;font-size:12px;opacity:.85}
 .sidebar nav{display:none;overflow:visible}.sidebar.menu-open nav{display:block;max-height:65vh;overflow-y:auto;padding-bottom:6px}
 .sidebar.menu-open .nav{display:grid;grid-template-columns:1fr 1fr;gap:5px}
 .sidebar.menu-open .nav button{white-space:normal;min-height:46px;text-align:left;align-items:center}
 .sidebar.menu-open .nav-label{display:block;margin:14px 0 7px}.sidebar-foot{display:none}
 .topbar{gap:8px;padding:10px 14px}.topbar>.actions{width:100%;justify-content:space-between}.topbar>.user{width:100%;gap:8px}
 .topbar .avatar{width:28px;height:28px;font-size:12px}.topbar .user>div{display:flex;gap:8px;align-items:center}.topbar #logout{margin-left:auto;padding:5px 8px;font-size:12px}
 .maintenance-banner{margin:8px 12px;padding:9px 12px;font-size:12px;line-height:1.5}
 .content{padding-top:16px}.pagehead{gap:12px;margin-bottom:16px}.pagehead h1{margin-top:5px;margin-bottom:8px}
 .pagehead>.actions{display:flex;flex-direction:row;gap:8px;width:100%}.pagehead>.actions>*{flex:1 1 140px;min-height:44px;margin:0}
 .workflow-hero{padding:16px;margin-bottom:14px}.workflow-hero h2{font-size:20px;margin:7px 0}.workflow-hero .primary{width:100%;min-height:44px;margin-top:6px}
 .stagecard{padding:14px;gap:10px}.stagecard h3{font-size:15px}.stagecard p{margin:5px 0}.stagecard>button{min-height:44px}
 .bundle-bar{margin-top:18px}.overview-tools>.actions{display:grid;grid-template-columns:1fr}.overview-tools button{min-height:44px}
 .focused-tools{flex-direction:row!important}.focused-tools>.actions{display:flex;flex-wrap:wrap;gap:6px}.focused-tools>.actions button{min-height:44px}
}
