:root{font-family:Poppins,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#14251c;background:#fff;color-scheme:light;font-synthesis:none;--green:#245943;--muted:#61716a;--line:#dce4dc;--cream:#faf7eb;--amber:#835715;--red:#a33732}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a9bc59;outline-offset:3px}button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px 16px;color:var(--green);font-weight:650;min-height:44px}button:hover:not(:disabled){background:#eff4ed;border-color:#8faa98}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover:not(:disabled){background:#183f31}button.small{padding:7px 10px;font-size:12px;min-height:36px}button.quiet{background:transparent;border-color:transparent}button.danger{color:var(--red)}button.active{background:#e6eee4;border-color:#95b098;color:#244e39}a{color:var(--green)}.local-bar{background:#e5edda;display:flex;justify-content:center;gap:10px;align-items:center;padding:8px 16px;font-size:11px;letter-spacing:1px;font-weight:750;min-height:35px}.local-bar span:last-child{font-weight:450;letter-spacing:0}.local-dot{height:7px;width:7px;border-radius:50%;background:#5a743d}header{border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:20px 4%;gap:24px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#183b2a}.brand strong{font-size:22px;letter-spacing:-1px}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:3px}.nav{display:flex;gap:6px;flex-wrap:wrap}.nav button{font-size:13px;border-color:transparent}.context{padding:14px 4%;background:#fff;display:flex;gap:20px;align-items:center;justify-content:space-between}.context label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}select,input{background:#fff;border:1px solid #cbd6cc;border-radius:8px;padding:10px 12px;color:#233b32;min-height:43px;max-width:100%}select{cursor:pointer}.context select{font-size:12px;min-height:37px;padding:7px 10px}.context .hint{font-size:11px;color:var(--muted)}main{max-width:1440px;margin:0 auto;padding:32px 4% 80px}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:800;color:#69805b;text-transform:uppercase;margin:0 0 12px}h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:44px;line-height:1.08;letter-spacing:-1.7px;margin:0 0 12px}h2{font-size:20px;letter-spacing:-.4px;margin:0 0 8px}h3{font-size:15px;margin:0 0 8px}p{line-height:1.5;margin:0 0 12px}.muted{color:var(--muted);font-size:13px}.heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:25px}.date-control{display:flex;gap:8px;align-items:center}.date-control select{font-weight:650;min-width:190px}.status-pill,.pill{display:inline-flex;gap:5px;align-items:center;border-radius:20px;padding:5px 9px;font-size:10px;line-height:1.3;font-weight:700;white-space:nowrap;background:#edf1e9;color:#456047}.pill.amber{background:#fcf0d9;color:#80561b}.pill.red{background:#fae7e3;color:#97382e}.pill.green{background:#e7f1e4;color:#306038}.pill.blue{background:#eaf0f6;color:#416181}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;background:white;margin-bottom:22px;overflow:hidden}.stat{padding:20px 23px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat strong{display:block;font-size:29px;letter-spacing:-1px;font-weight:600}.stat span{font-size:12px;color:var(--muted)}.stat small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}.panel{border:1px solid var(--line);border-radius:14px;background:white;overflow:hidden}.panel-head{padding:21px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:17px;margin:0}.panel-body{padding:20px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:17px 21px;border-bottom:1px solid var(--line)}.segmented{display:flex;gap:5px}.segmented button{padding:6px 11px;font-size:12px;min-height:35px}.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.time-label{background:#f5f7f3;color:#65755f;font-size:10px;font-weight:800;letter-spacing:1.5px;padding:11px 22px;border-bottom:1px solid var(--line)}.slot{padding:17px 21px;display:grid;grid-template-columns:minmax(0,1fr) 200px 34px;gap:12px;align-items:center;border-bottom:1px solid #ebeee8;border-left:3px solid transparent}.slot:last-child{border-bottom:0}.slot.gap{border-left-color:#c99440;background:#fffdf6}.slot strong{font-size:13px;display:block;margin-bottom:5px}.slot .time{font-size:11px;color:var(--muted);display:block;margin-top:5px}.slot .why{font-size:10px;color:var(--muted);margin-top:6px;max-width:380px}.assign-btn{text-align:left;font-weight:600;font-size:12px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;background:#f9fbf7}.assign-btn.empty{border-style:dashed;color:#877345;background:#fffdf8}.lock{padding:4px;min-height:34px;font-size:16px;border:none;background:transparent}.lock.locked{background:#e7efdf}.side{display:grid;gap:16px}.side .panel-body{padding:18px}.side h3{font-size:14px}.note{border-radius:9px;background:#f6f7f2;border:1px solid #e9ece0;padding:12px;font-size:12px;line-height:1.5;color:#576550}.note.amber{background:#fffaef;border-color:#e8d9b8;color:#785a28}.issue{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.45}.issue:last-child{border:0}.issue button{margin-top:7px}.empty-state{text-align:center;padding:36px 24px}.empty-state .symbol{font-size:34px;color:#7c966f;margin-bottom:12px}.empty-state p{color:var(--muted);font-size:13px}.wide{width:100%;margin-top:12px}.off-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.person-chip{padding:8px 11px;background:#f7f0e6;border-radius:9px;font-size:12px;color:#755837}.footer-panel{margin-top:22px}.count-line{display:flex;justify-content:space-between;font-size:12px;gap:10px;padding:8px 0}.count-line strong{font-weight:650}.step{display:flex;gap:11px;font-size:12px;line-height:1.5;margin-bottom:14px}.step b{width:23px;height:23px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#edf1e4;color:#557248}.step small{display:block;color:var(--muted)}.search-info{font-size:10px;color:var(--muted);padding:12px 20px;background:#fafbf8}.receipt{padding:15px 20px;background:#eaf1e4;border-bottom:1px solid #d4e0cf;font-size:12px}.receipt strong{display:block;margin-bottom:4px}.member-layout{display:grid;grid-template-columns:minmax(0,650px) minmax(230px,1fr);gap:24px}.duty{padding:24px;border-bottom:1px solid var(--line)}.duty h2{font-size:22px;margin:9px 0}.duty .duty-time{font-size:16px;color:#3f664d;margin:10px 0 18px}.member-hero{background:#eff3e7;padding:25px;border-bottom:1px solid #dde5d2}.member-hero h2{font-family:Georgia,serif;font-size:30px;font-weight:500}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:7px;font-size:12px;font-weight:600}.field input,.field select{width:100%}.field.full{grid-column:1/-1}.section-gap{margin-top:22px}.off-row{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.off-row strong{display:block;font-size:13px}.off-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.offer{padding:22px}.offer h2{font-size:19px;margin:14px 0 6px}.offer p{font-size:13px}.offer .request{padding:13px;margin-top:12px;border-radius:9px;background:#f4f6ee}.roster-table{width:100%;border-collapse:collapse}.roster-table th{text-align:left;color:var(--muted);font-size:11px;padding:15px;background:#f6f8f2}.roster-table td{padding:15px;border-top:1px solid var(--line);font-size:12px}.roster-table td small{display:block;color:var(--muted);margin-top:4px}.inbox-note{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.inbox-note small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.audit{font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.audit small{display:block;color:var(--muted);margin-bottom:4px}dialog{border:1px solid var(--line);border-radius:16px;padding:25px;max-width:530px;width:calc(100% - 30px);max-height:85vh;color:#1c322c;box-shadow:0 25px 100px #102a2533}dialog::backdrop{background:#102a2555;backdrop-filter:blur(3px)}dialog h2{margin:7px 0 12px}.dialog-top{display:flex;justify-content:space-between;align-items:center}.candidate{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.candidate small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.candidate button{font-size:12px}.candidate.unavailable{opacity:.65}.dialog-search{width:100%;margin:12px 0}.loading{padding:50px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#193d30;color:white;padding:14px 22px;border-radius:12px;max-width:calc(100% - 30px);box-shadow:0 8px 24px #193d3026;font-size:13px;z-index:20;display:none}#toast.show{display:block}details{font-size:12px}summary{cursor:pointer;color:var(--muted);line-height:1.5}.subtle-link{font-size:12px;text-decoration:underline;border:0;background:none;padding:0;min-height:30px}.all-clear{padding:14px 0;font-size:13px;color:#436f3a}.busy{pointer-events:none;opacity:.65}.view-label{display:flex;align-items:center;gap:9px}.view-label .pill{font-size:9px}.metric-explanation{font-size:11px;color:var(--muted);padding:15px 20px;border-top:1px solid var(--line)}
@media(min-width:1500px){main{padding-left:20px;padding-right:20px}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 250px}.slot{grid-template-columns:minmax(0,1fr) 170px 28px;gap:8px;padding:16px 15px}.nav button{font-size:12px;padding:9px}.context .hint{display:none}h1{font-size:38px}.member-layout{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:800px){header{flex-wrap:wrap;padding:16px 5%;gap:15px}.nav{width:100%;justify-content:space-between}.nav button{flex:1;padding:9px 5px}.context{flex-wrap:wrap;padding:12px 5%;gap:9px}.context label{flex:1;min-width:200px}.context select{flex:1;min-width:0}.workspace,.member-layout{grid-template-columns:1fr}.side{grid-template-columns:1fr 1fr}.heading{align-items:start;flex-direction:column;gap:12px}.stats{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.market-grid{grid-template-columns:1fr}main{padding:26px 5% 70px}.roster-table th:nth-child(4),.roster-table td:nth-child(4){display:none}.local-bar span:last-child{display:none}}
@media(max-width:470px){h1{font-size:34px}.slot{grid-template-columns:minmax(0,1fr) 28px;gap:8px}.slot>div{grid-column:1/-1}.slot .assign-btn{grid-column:1}.slot .lock{grid-column:2}.side{grid-template-columns:1fr}.stat{padding:17px}.panel-head,.toolbar{padding:15px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.date-control{width:100%}.date-control select{flex:1;min-width:0}.roster-table th,.roster-table td{padding:11px 8px}.roster-table th:nth-child(3),.roster-table td:nth-child(3){display:none}.button-row button{font-size:12px}.nav button{font-size:11px}.brand strong{font-size:21px}}
.fairness-intro{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:22px}.balance-number{font-size:19px;letter-spacing:-.5px;font-weight:700;color:#526f45}.balance-number.debt{color:#86602b}.weight-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.weight-row input{width:85px}.ledger-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.ledger-row small{display:block;color:var(--muted);margin-top:5px}.fairness-banner{background:linear-gradient(115deg,#eef2e4,#f9f5e7);border:1px solid #dce2cd;padding:23px;border-radius:14px}.fairness-banner h2{font-family:Georgia,serif;font-size:26px;font-weight:500}.logic-chip{display:inline-block;padding:6px 9px;margin:4px 3px 0 0;border-radius:6px;background:#ffffffa6;font-size:11px;color:#576944}[hidden]{display:none!important}@media(max-width:800px){.fairness-intro{grid-template-columns:1fr}}
@media(max-width:470px){.roster-table th:nth-child(3),.roster-table td:nth-child(3){display:table-cell}.roster-table th:nth-child(2),.roster-table td:nth-child(2){display:none}}
textarea{font:inherit;width:100%;min-height:95px;padding:12px;border:1px solid var(--line);border-radius:10px;resize:vertical}#override-form input[type=checkbox]{width:auto;min-height:0;margin-right:8px}#override-form .field span{line-height:1.6}.note.amber{color:#65450f;background:#fff6df;border:1px solid #dcb45b}
.person-check{display:block;padding:7px;font-size:13px}.person-check input,form .field input[type=checkbox]{width:auto;min-height:0;margin-right:7px}fieldset{border:1px solid var(--line);border-radius:10px;max-height:220px;overflow:auto}form .note p{font-size:12px}.note li{margin-bottom:8px}
.macro-workspace{grid-template-columns:minmax(0,1fr)}.macro-workspace>.side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.timeline-scroll{overflow:auto;max-height:65vh;border-top:1px solid var(--line)}.timeline{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1100px;font-size:12px}.timeline caption{text-align:left;padding:10px 18px;color:var(--muted)}.timeline .person-column{width:190px}.timeline th{background:#f0f4ee;text-align:left;padding:10px;border-bottom:1px solid var(--line)}.timeline thead th{position:sticky;top:0;z-index:2;font-size:11px;color:#52654f}.timeline tr>th:first-child{position:sticky;left:0;z-index:1;width:190px}.timeline thead tr>th:first-child{z-index:3}.timeline th small{display:block;color:var(--muted);font-weight:400;font-size:10px;margin-top:3px}.timeline td{border-bottom:1px solid var(--line);height:48px;background:#fff}.timeline-duty{width:100%;height:100%;min-height:44px;border-radius:5px;text-align:left;background:#e9f1e5;border-color:#c8dbc0;padding:6px;overflow:hidden;display:block;color:#224732}.timeline-duty strong,.timeline-duty small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.timeline-duty small{font-size:10px;font-weight:400}.timeline-duty.exception{background:#fff1cc;border-color:#d6ae48;color:#664814}.timeline-status{font-size:11px;color:var(--muted);padding:12px;display:block}.overview-note{padding:14px 20px;color:var(--muted);font-size:12px}.overlap-note{font-size:11px;color:#866022}.macro-workspace .toolbar{position:sticky;top:0;background:#fff;z-index:4}.macro-workspace .panel-head{flex-wrap:wrap;gap:12px}@media(min-width:1200px){main{max-width:1900px;padding-left:3%;padding-right:3%}}@media(max-width:800px){.macro-workspace>.side{grid-template-columns:1fr}.timeline-scroll{max-height:70vh}.timeline .person-column,.timeline tr>th:first-child{width:155px}.candidate .button-row{flex-wrap:wrap}}
.timeline-duty[draggable=true]{cursor:grab}.timeline-duty.drag-source{opacity:.45;cursor:grabbing}.timeline tr.drop-ready>td,.timeline tr.drop-ready>th{background:#e4f2df;box-shadow:inset 0 2px #57924d,inset 0 -2px #57924d}.timeline tr.drop-warning>td,.timeline tr.drop-warning>th{background:#fff3d7;box-shadow:inset 0 2px #b88a30,inset 0 -2px #b88a30}.drag-status{padding:10px 20px;background:#fff7e5;color:#624c25;font-size:12px;border-top:1px solid #e3d4af}.dragging-post .timeline-duty{cursor:grabbing}
.timeline-add{display:block;width:100%;height:100%;min-height:46px;padding:0;border:0;border-radius:0;text-align:left;background:transparent;font-weight:400;cursor:crosshair}.timeline-add:hover:not(:disabled),.timeline-add:focus-visible{background:#f0f6ea;box-shadow:inset 0 0 0 1px #a3bc99}.timeline-add .empty-plus{opacity:0;display:block;text-align:center;color:var(--green);font-size:18px}.timeline-add:hover .empty-plus,.timeline-add:focus-visible .empty-plus{opacity:1}.timeline-add span{pointer-events:none}.quick-warning{color:#835715!important}
.drag-status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:80vw;z-index:30;border:1px solid #e3d4af;border-radius:10px;box-shadow:0 5px 20px #16332922;pointer-events:none}.dragging-post{user-select:none;-webkit-user-select:none}
/* Working-board hierarchy: schedule first, setup and explanation on demand. */
header{padding-top:12px;padding-bottom:12px;gap:16px}.context{padding-top:6px;padding-bottom:6px;min-height:40px}.context-current{font-size:12px;color:var(--muted)}.context details{position:relative;z-index:10}.context summary{padding:5px;min-height:28px}.preview-controls{position:absolute;right:0;top:100%;width:330px;max-width:calc(100vw - 40px);padding:18px;display:grid;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #193d3020}.context .preview-controls label{display:grid;min-width:0}.context .preview-controls select{width:100%;min-width:0}main{padding-top:18px}.schedule-heading,.schedule-title{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.schedule-heading{justify-content:space-between;margin-bottom:12px}.schedule-title h1{font-family:inherit;font-size:20px;font-weight:750;letter-spacing:-.5px;margin:0}.schedule-title .date-control select{font-size:15px}.schedule-counts{display:flex;gap:12px 28px;flex-wrap:wrap;align-items:center;margin-bottom:18px;font-size:12px;color:var(--muted)}.schedule-counts strong{font-size:16px;color:#244d3b;margin-right:3px}.schedule-alert{padding:10px 14px;background:#fff6df;border:1px solid #dcb45b;border-radius:9px;margin-bottom:12px;font-size:12px;color:#65450f}.schedule-workspace>.panel{overflow:visible}.board-controls{padding:10px 14px;border-radius:14px 14px 0 0}.schedule-tools{position:relative}.schedule-tools>summary{padding:8px 12px;border:1px solid var(--line);border-radius:9px;color:var(--green);font-weight:650;min-height:36px}.tools-content{position:absolute;right:0;top:calc(100% + 6px);width:270px;max-width:calc(100vw - 50px);display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 32px #193d3020;z-index:8}.tools-content button{text-align:left}.tools-content p{font-size:11px;margin:4px 0 0}.overview-note{padding:8px 14px;font-size:11px}.board-save-note{padding:10px 14px;font-size:11px;color:var(--muted)}.schedule-workspace>.side{grid-template-columns:2fr 1fr 1fr;gap:12px}.schedule-workspace>.side>.panel:first-child{grid-row:span 2}.schedule-workspace .receipt{padding:8px 14px;border-radius:14px 14px 0 0}.schedule-workspace .receipt strong{display:inline}.timeline caption.sr-only{padding:0}.schedule-tools summary:focus-visible,.context summary:focus-visible{outline:3px solid #a9bc59;outline-offset:3px}
@media(max-width:800px){header{gap:10px}.context{flex-wrap:nowrap;gap:8px}.context-current{font-size:11px}.schedule-heading{gap:10px}.schedule-title{gap:10px}.schedule-title h1{width:100%;font-size:18px}.schedule-workspace>.side{grid-template-columns:1fr}.schedule-workspace>.side>.panel:first-child{grid-row:auto}.schedule-counts{gap:8px 18px;margin-bottom:12px}.board-controls{gap:8px}.board-controls>.button-row{flex:1;justify-content:space-between}.schedule-heading>.primary{min-height:38px;padding:8px 12px;font-size:12px}main{padding-top:14px}.preview-controls{width:300px}}
@media(max-width:470px){.schedule-title{width:100%}.schedule-title .date-control{width:auto;flex:1}.schedule-title .date-control select{font-size:13px;width:165px}.schedule-title .date-control button{padding:8px 10px}.schedule-counts{display:grid;grid-template-columns:1fr 1fr;font-size:11px}.schedule-counts strong{font-size:14px}.board-controls .segmented button{padding:6px 9px;font-size:11px}.schedule-tools>summary{font-size:11px;padding:8px}.schedule-heading{margin-bottom:10px}.context summary{font-size:11px;white-space:nowrap}.schedule-workspace .receipt{font-size:11px}}
.rules-filter{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;margin:20px 0}.rules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.rule-person{border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;background:#fafcf8}.rule-person[hidden]{display:none}.rule-person h3{font-size:18px;margin-top:12px}.rule-person p{font-size:13px}.rules-section{max-height:none;overflow:visible;padding:20px;margin:18px 0}.rules-section legend{font-size:15px;font-weight:750;color:var(--green);padding:0 8px}.rules-section strong{font-size:13px}.rules-section .muted{margin-top:10px}.rules-checks{margin-top:16px}.rules-post{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.rules-post small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.rules-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 0 0;position:sticky;bottom:-25px;background:#fff;border-top:1px solid var(--line)}dialog:has(#member-rules-form),dialog:has(#save-member-rules){max-width:800px}.rule-diff>div{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.rule-diff p{font-size:13px;margin:5px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:1000px){.rules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.rules-grid,.rules-filter,.rules-post{grid-template-columns:1fr}.rules-section{padding:14px}.rules-form-actions{flex-wrap:wrap}.rules-form-actions button{flex:1}.rules-post select{width:100%}}
.team-sort-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.team-sort-controls>label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px;color:var(--green)}.team-sort-controls select{font-size:13px;min-height:44px}
.schedule-counts .unassigned-count{border:0;background:transparent;padding:0;min-height:44px;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}
:root .quick-out{display:grid;grid-template-columns:minmax(150px,1fr) 160px auto auto;gap:8px;align-items:end;margin-bottom:16px}
.quick-out label{display:flex;flex-direction:column;gap:4px;font-size:12px;min-width:0}
.quick-out input{width:100%;min-width:0;min-height:44px;font-size:16px;padding:8px}
.quick-out button{min-height:44px;white-space:nowrap}
.quick-out .quick-range{border:0;background:transparent;color:var(--green);padding:8px}
.quick-out .quick-end{grid-column:2;grid-row:2}
.quick-out [hidden],.quick-out-result[hidden]{display:none!important}
.quick-out-result{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px;margin-bottom:12px;color:var(--green)}
@media(max-width:600px){:root .quick-out{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.quick-out .quick-person{grid-column:1/-1}.quick-out .quick-end{grid-column:1;grid-row:3}.quick-out button{padding:6px;font-size:14px}.quick-out input[type=date]{padding:6px 2px}}
@media(max-width:360px){:root .quick-out{grid-template-columns:minmax(0,1fr) auto}.quick-out .quick-person{grid-column:1/-1}.quick-out .primary{grid-column:2;grid-row:3}.quick-out .quick-end{grid-row:3}}
.group-plan-people{max-height:28vh;overflow:auto;margin:12px 0}.group-plan-people input{width:20px;height:20px;flex:0 0 auto;accent-color:#205b46}.group-plan-people .candidate{justify-content:flex-start;gap:12px}.group-plan-people .candidate:has(input:disabled){opacity:.55}
/* Compact assignment tools, scoped to the new editor. */
#assignment-tools-form .section-gap{margin-top:12px}
#assignment-tools-form .repeat-days{border:0;padding:0;display:flex;gap:7px;flex-wrap:wrap}
#assignment-tools-form .repeat-days[hidden]{display:none}
#assignment-tools-form .repeat-days legend{font-size:13px;margin-bottom:6px}
#assignment-tools-form .repeat-days label{display:flex;align-items:center;gap:5px;padding:8px;border:1px solid #c8d8c8;border-radius:8px;cursor:pointer}
#assignment-tools-form .repeat-days label:has(input:checked){background:#e8f0e4;border-color:#245943}
#assignment-tools-form input[type=checkbox]{accent-color:#245943}
#assignment-tools-form textarea{font:inherit;color:inherit;padding:12px;border:1px solid #c8d8c8;border-radius:10px;resize:vertical;width:100%;box-sizing:border-box}
.smart-suggestions > summary {cursor:pointer;color:var(--green,#245b45);font-weight:700;}
.smart-suggestions .panel-body {max-height:480px;overflow:auto;}
.smart-item {padding:16px 0;border-bottom:1px solid #dce5dd;overflow-wrap:anywhere;}
.smart-item p {margin:6px 0;}
.smart-item details {font-size:.9rem;color:#526459;}

/* Leader-only post colors stay attached to the post when it moves. */
.post-color-pastor{--post-tint:#e4f2e8;--post-edge:#37814b}
.post-color-students{--post-tint:#e4effc;--post-edge:#3575b9}
.post-color-command{--post-tint:#eee3da;--post-edge:#896044}
.post-color-kids{--post-tint:#fff4bf;--post-edge:#a98508}
.post-color-flc{--post-tint:#ffe5cc;--post-edge:#be651e}
.post-color-other{--post-tint:#f0f2f1;--post-edge:#7b8580}
.slot.post-color,.timeline-duty.post-color,.overview-note button.post-color{background:var(--post-tint);border-left:5px solid var(--post-edge);color:#20352c}
.timeline-duty.post-color small,.slot.post-color .time,.slot.post-color .why{color:#40534a}
.slot.post-color .assign-btn{background:#ffffffb3;color:#20352c}
.post-color.post-needs-coverage{outline:2px solid #b33132;outline-offset:-2px}
.timeline-duty.post-color.exception{border-top:2px solid #936619}
.timeline-duty.post-color:hover,.overview-note button.post-color:hover{filter:brightness(.97)}
.timeline-duty.post-color:focus-visible,.overview-note button.post-color:focus-visible{outline:3px solid #193d30;outline-offset:2px}
.post-color-legend{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:12px;color:#30463b}
.post-color-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.post-color-legend i{display:inline-block;width:15px;height:15px;border-radius:3px;background:var(--post-tint);border-left:4px solid var(--post-edge)}
.post-color-legend .open-key{border:2px solid #b33132;background:#fff}
/* Open jobs stay visible above the roster without consuming the whole board. */
.assignment-rails{padding:10px 14px;border-bottom:1px solid var(--line);min-width:0}
.assignment-rail{display:flex;align-items:center;gap:12px;min-width:0}
.assignment-rail+.assignment-rail{margin-top:8px}
.assignment-rail h3{flex:0 0 112px;margin:0;font-size:13px}
.rail-items{display:flex;gap:8px;overflow-x:auto;min-width:0;flex:1;padding:2px 0 5px}
.rail-card{flex:0 0 auto;max-width:260px;text-align:left;padding:8px 11px;min-height:48px;background:#f3f7f0}
.rail-card strong,.rail-card small{display:block}
.rail-card strong{font-size:13px;line-height:1.25}
.rail-card small{font-size:11px;color:var(--muted);font-weight:400;margin-top:3px}
@media(max-width:600px){.assignment-rail{display:block}.assignment-rail h3{margin-bottom:4px}.rail-card{max-width:230px}.assignment-rails{padding:8px 10px}}
.candidate:has(input[name="open-members"]){display:grid;grid-template-columns:20px minmax(0,1fr);justify-content:start;align-items:center;gap:10px;padding:8px 0;text-align:left}
.candidate input[name="open-members"]{width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--green)}
.candidate:has(input[name="open-members"])>span{min-width:0;width:100%;text-align:left;overflow-wrap:anywhere}
.candidate:has(input[name="open-members"]) small{margin-top:2px;line-height:1.3}

.month-out-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px}.month-out-day{min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px}.month-out-day .off-list{flex-direction:column;align-items:flex-start}.month-out-day h3 button{font-size:15px;font-weight:700}

.post-color-chapel{--post-tint:#eee7f8;--post-edge:#8261a8}
.post-color-baptisms{--post-tint:#dff3f8;--post-edge:#247c91}
.post-color-service{--post-tint:#e8edf6;--post-edge:#687b9b}
.post-color-roaming{--post-tint:#def1ed;--post-edge:#347d70}

/* One shared toolbar treatment for English and Spanish. */
.board-controls{align-items:center;gap:12px;padding:12px 14px}
.board-controls>.segmented,.board-controls>.button-row,.board-controls>.button-row>.segmented{display:flex;align-items:center;gap:6px}
.board-controls>.button-row{justify-content:flex-end;flex-wrap:wrap}
@media(max-width:600px){.board-controls>.button-row>button[data-action="serving-note-open"]{white-space:normal;min-width:0;height:auto;min-height:44px;padding:6px 8px;overflow-wrap:anywhere}}
.board-controls>.segmented>button,.board-controls>.button-row>button,.board-controls>.button-row>.segmented>button,.board-controls .schedule-tools>summary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;height:44px;padding:0 14px;border:1px solid #cbd6cc;border-radius:10px;background:#fff;color:#294a3b;font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap;margin:0}
.board-controls .segmented>button[aria-pressed=true]{background:#e6eee4;border-color:#95b098;color:#244e39}
.board-controls .schedule-tools>summary{cursor:pointer;list-style:none;gap:8px}
.board-controls .schedule-tools>summary::-webkit-details-marker{display:none}
.board-controls .schedule-tools>summary::after{content:'⌄';font-size:16px}
.board-controls .schedule-tools[open]>summary{background:#e6eee4;border-color:#95b098}
.board-controls .schedule-tools>summary:focus-visible{outline:3px solid #294a3b;outline-offset:2px}
@media(max-width:720px){
 .board-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px}
 .board-controls>.segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 .board-controls>.button-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}
 .board-controls>.button-row>.segmented{display:contents}
 .board-controls>.button-row>button,.board-controls>.segmented>button,.board-controls>.button-row>.segmented>button,.board-controls .schedule-tools>summary{width:100%;padding:0 8px;font-size:13px}
 .board-controls .schedule-tools{min-width:0;width:100%}
}

/* September 9 compact canon: secondary Studio views share the team shell.
   The leader workspace stays light; the existing Sunday board remains intact. */
.brand{flex-shrink:0;gap:10px;min-height:44px}
.brand img{display:block;width:168px;height:44px;object-fit:contain}
.brand small{font-family:inherit;font-size:11px;line-height:1.3;letter-spacing:0;margin:0;color:var(--muted);white-space:nowrap}
.context{flex-wrap:wrap;gap:8px 20px}
.context-info{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.studio-status{font-size:11px;color:var(--muted)}
.context-links{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
.context-links a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;font-size:13px;text-underline-offset:3px}
.nav button{min-height:44px;font-size:13px}
main.studio-secondary{max-width:1200px;padding:18px 24px 48px}
.studio-secondary .heading{align-items:center;gap:12px;margin-bottom:14px}
.studio-secondary h1{font-family:inherit;font-size:22px;font-weight:750;line-height:1.2;letter-spacing:-.4px;margin:0}
.studio-secondary h2{font-size:16px;line-height:1.3;margin:0 0 8px}
.studio-secondary h3{font-size:14px;line-height:1.35}
.studio-secondary .heading p{margin:4px 0 0}
.studio-secondary .panel{border-radius:10px}
.studio-secondary .panel-head{padding:12px 16px;align-items:center;flex-wrap:wrap}
.studio-secondary .panel-head h2{margin:0}
.studio-secondary .panel-body{padding:12px 16px}
.studio-secondary .panel-body>p:last-child{margin-bottom:0}
.studio-secondary .footer-panel{margin-top:0}
.studio-secondary .section-gap{margin-top:14px}
.studio-secondary :is(button,select,input:not([type=checkbox]):not([type=radio]),summary),dialog :is(button,select,input:not([type=checkbox]):not([type=radio])){min-height:44px}
.studio-secondary button,dialog button{min-width:44px}
.studio-secondary summary{padding:11px 12px;color:var(--green);font-size:13px;font-weight:650}
.studio-secondary summary:focus-visible,dialog summary:focus-visible{outline:3px solid #294a3b;outline-offset:2px}
.studio-secondary .date-control select{font-size:14px}
.team-views{margin:0 0 12px;gap:6px}
.team-views button{font-size:13px}
.rules-note{border-bottom:1px solid var(--line)}
.rules-note summary{padding-left:0}
.rules-note p{margin:0 0 12px}
.studio-secondary .rules-filter{grid-template-columns:180px minmax(0,1fr);gap:12px;margin:12px 0}
.studio-secondary .rules-grid{display:block}
.studio-secondary .rule-person{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0;background:#fff}
.studio-secondary .rule-person[hidden]{display:none}
.rule-person-name{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:4px}
.studio-secondary .rule-person h3{font-size:15px;margin:0}
.studio-secondary .rule-person p{font-size:13px;line-height:1.4;margin:2px 0 0}
.studio-secondary .rule-person button{font-size:13px;padding:8px 12px}
.workload-tools{display:flex;align-items:start;gap:10px;margin-bottom:12px}
.workload-guide{flex:1;min-width:0}
.workload-tools>button{font-size:13px;white-space:nowrap}
.logic-chips{display:flex;flex-wrap:wrap;gap:6px}
.workload-guide .logic-chip{margin:0;background:#f2f6f2}
.studio-secondary .roster-table th,.studio-secondary .roster-table td{padding:10px 12px;font-size:13px;vertical-align:top}
.studio-secondary .roster-table th{background:#f2f6f2}
.studio-secondary .roster-table td small{font-size:12px}
.studio-secondary .balance-number{font-size:17px}
.studio-secondary .metric-explanation{padding:12px 16px;font-size:12px}
.studio-secondary .subtle-link{font-size:13px;text-underline-offset:3px}
.availability-action{border-bottom:1px solid var(--line);margin:0 0 12px}
.availability-action summary{padding-left:0}
.availability-action .quick-out{margin-top:8px}
.studio-secondary .off-list{gap:6px;margin-top:6px}
.studio-secondary .person-chip{padding:5px 8px;border-radius:5px;font-size:13px}
.studio-secondary .off-row{padding:10px 0;gap:12px}
.studio-secondary .off-row>span{min-width:0;overflow-wrap:anywhere;font-size:13px}
.studio-secondary .off-row small{font-size:12px;margin-top:3px}
.studio-secondary .off-row button{font-size:13px}
.monthly-time-off .field{display:flex;align-items:center;gap:8px;font-weight:500}
.studio-secondary .month-out-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.studio-secondary .month-out-day{padding:0;border:0;border-radius:0}
.month-out-day h3{border-bottom:1px solid var(--line);margin-bottom:6px}
.month-out-day .person-chip{background:#fff;padding:4px 0;color:#5d6b63;overflow-wrap:anywhere}
.activity-log{margin-top:12px}
.studio-secondary .audit{font-size:13px;padding:10px 0}
.studio-secondary .audit small{font-size:12px}
.delivery-summary p{font-size:13px;margin-bottom:6px}
.dialog-top .eyebrow{margin:0;letter-spacing:1px}
.dialog-top button{font-size:22px;padding:6px;min-width:44px;min-height:44px}
dialog .person-check,dialog label:has(>input[type=checkbox]),dialog .candidate:has(input[type=checkbox]){min-height:44px}
dialog textarea{font:inherit;color:inherit}
@media(max-width:800px){
 .context{flex-wrap:wrap}
 .context-current{font-size:12px}
 .context-links{gap:4px 14px}
 main.studio-secondary{padding:14px 20px 40px}
 .studio-secondary .heading{flex-direction:row;flex-wrap:wrap}
}
@media(max-width:600px){
 .studio-secondary .heading{align-items:stretch;flex-direction:column}
 .studio-secondary .date-control{width:100%}
 .studio-secondary .date-control select{min-width:0;flex:1}
 .studio-secondary .rules-filter{grid-template-columns:minmax(0,1fr)}
 .studio-secondary .rule-person{gap:10px}
 .workload-tools{flex-wrap:wrap}
 .workload-guide{flex-basis:100%}
 .studio-secondary .month-out-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .studio-secondary .month-out-day .off-list{margin:0}
 .studio-secondary .off-row{align-items:start;flex-wrap:wrap}
}
@media(max-width:470px){
 .brand{gap:8px}
 .brand img{width:158px}
 .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .nav button{font-size:13px}
 main.studio-secondary{padding:12px 16px 32px}
 .studio-secondary .panel-body,.studio-secondary .panel-head{padding:10px 12px}
 .studio-secondary .roster-table th,.studio-secondary .roster-table td{padding:10px 7px;font-size:12px}
 .studio-secondary .roster-table td small{font-size:11px}
 .rule-person-name{display:block}
 .rule-person-name .muted{font-size:12px}
}

/* A visible exit for installed phone apps without browser controls. */
.studio-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 8px; color: inherit; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 720px) { header .studio-back { width: 100%; justify-content: flex-start; } }

/* Select people once, then add the whole group to one destination. */
.bulk-assign{position:sticky;top:0;z-index:4;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}
.bulk-assign-top,.bulk-assign-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bulk-assign-top{margin-bottom:10px}.bulk-assign-top [data-bulk-count]{color:var(--muted);margin-right:auto}
.bulk-assign-controls>label{display:flex;align-items:center;gap:10px;flex:1;min-width:180px}
.bulk-assign-controls select{width:100%;min-width:0;min-height:44px;font:inherit}.bulk-assign-controls>button{min-height:44px}
.bulk-assign p{font-size:12px;margin:8px 0 0}.bulk-assign [data-bulk-error]{font-size:13px}
.bulk-person-label{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;cursor:pointer}
.bulk-person-label input{width:18px;height:18px;margin:2px 0;accent-color:var(--green)}
.bulk-person-label input:disabled{cursor:not-allowed}.bulk-person-label [data-bulk-reason]:empty{display:none}
.bulk-people-list{max-height:48vh;overflow:auto}.bulk-people-list .candidate[hidden]{display:none}.bulk-people-list .bulk-person-label{width:100%;min-height:44px;align-items:center}
#dialog .bulk-assign{position:static;border:1px solid var(--line);border-radius:10px;margin:12px 0}
@media(max-width:600px){.bulk-assign{padding:10px}.bulk-assign-top{gap:6px}.bulk-assign-controls>label{flex-basis:100%}.bulk-assign-controls>button{width:100%}.bulk-assign-top button{min-height:44px}.bulk-person-label{gap:6px}}

#dialog .bulk-assign-top>strong{display:none}

/* Recorded absence is distinct from an available empty time slot. */
.timeline tr>td.time-off,.timeline tr.time-off-row>td{background:#dfe3e1;box-shadow:none;cursor:not-allowed}
.timeline tr>td.time-off{padding:0;border-bottom-color:#bdc6c0;overflow:hidden}
.timeline-off-label{display:flex;align-items:center;min-height:48px;padding:10px 14px;overflow:hidden;color:#35423b}
.timeline-off-label strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4;font-weight:700}
.timeline tr.time-off-row .timeline-duty{filter:grayscale(1)}

/* Keep post approvals and their effective restrictions in the same review. */
.rules-restrictions{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.restriction-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;margin:8px 0 16px}.restriction-checks[hidden]{display:none}.restriction-checks .person-check{margin:0;overflow-wrap:anywhere}.restriction-checks input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:18px}.rules-post .rules-post-conflict{color:#80561b;font-weight:600}.rules-post .rules-post-conflict[hidden]{display:none}.exception-edit-actions{margin-top:12px}#rules-approvals:focus{outline:2px solid #8faa98;outline-offset:2px}@media(max-width:600px){.restriction-checks{grid-template-columns:1fr}#rules-approvals{scroll-margin-top:8px}}

.publish-review-summary{display:flex;flex-wrap:wrap;gap:8px 16px;margin:14px 0;padding:12px 0;border-block:1px solid var(--line,#cbd5cf)}
.publish-review-summary a{color:inherit;font-weight:700;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}

/* A compact dated event callout; no change to the established board geometry. */
.special-sunday-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px;padding:10px 12px;border:1px solid var(--line,#d9dfe5);border-radius:8px;background:var(--panel,#fff)}
.special-sunday-bar>div{flex:1;min-width:180px}.special-sunday-bar small{display:block;margin-top:3px}
.special-participants{display:grid;gap:12px;margin-top:12px}.special-participants fieldset{min-width:0;padding:12px;border:1px solid var(--line,#d9dfe5);border-radius:8px}.special-participants legend{font-weight:700}.special-participants .field{margin-bottom:8px}.special-participants textarea{width:100%;box-sizing:border-box;resize:vertical}.special-held-jobs{overflow-wrap:anywhere}
.deacon-checklist{display:grid;gap:3px;margin-top:12px}.deacon-checklist label,.special-enabled{display:flex;align-items:center;gap:10px;min-height:44px}.deacon-checklist input,.special-enabled input{width:20px;height:20px;flex:0 0 auto}
@media(max-width:600px){.special-sunday-bar>div{flex-basis:100%}.special-participants select{max-width:100%;font-size:16px}.special-participants textarea{font-size:16px}}

[data-drag-post]{cursor:grab}[data-drag-post].drag-source{opacity:.45;cursor:grabbing}.rail-card.drop-ready{outline:3px solid #31824a;background:#e2f1e6}.rail-card.drop-warning{outline:3px solid #b97b18;background:#fff3d4}

/* Planning board follows the paper layout: people above, open spots beside time. */
.planning-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:start;min-width:0}
.planning-grid>.open-jobs{display:block;border-left:1px solid var(--line);padding:10px;max-height:65vh;overflow:auto;margin:0}
.planning-grid>.open-jobs h3{position:sticky;top:-10px;background:#fff;padding:8px 0;z-index:1;margin:0}
.planning-grid>.open-jobs .rail-items{display:flex;flex-direction:column;overflow:visible}
.planning-grid>.open-jobs .rail-card{flex:none;max-width:none;width:100%;white-space:normal}
.planning-grid .timeline{min-width:720px}.planning-grid .person-column{width:155px}.planning-grid .timeline tr>th:first-child{width:155px}
.board-view-controls{display:flex;gap:6px;margin-left:auto}.overview-note:has(.board-view-controls){display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.board-view-controls [aria-pressed=true]{background:#e2f1e6;border-color:#31824a}.board-bulk>summary{padding:8px 14px;cursor:pointer;color:var(--green);font-weight:650}
[data-drag-member]{cursor:grab}[data-drag-member].drag-source{opacity:.45}.board-compact .timeline td{height:30px}.board-compact .timeline th{padding:4px 7px}.board-compact .timeline-duty{min-height:29px;padding:2px 5px}.board-compact .timeline-status{padding:4px 8px}.board-compact .timeline-add{min-height:29px;padding:0}.board-compact .timeline th small{display:inline;margin-left:5px;font-size:9px}.board-compact .bulk-person-label{align-items:center}.board-compact .timeline th input{width:15px;height:15px;min-height:0}.board-compact .timeline th .bulk-person-label>span{font-size:11px}.board-compact .rail-card{padding:7px 9px}.board-compact .unassigned-people .rail-card small:last-child{display:none}
.board-expanded{position:fixed!important;inset:8px;z-index:30;background:#fff;overflow:auto!important;box-shadow:0 0 0 12px #edf2ec}
.board-expanded .timeline-scroll,.board-expanded .planning-grid>.open-jobs{max-height:calc(100dvh - 235px)}
.board-expanded .board-controls{position:sticky;top:0;z-index:5}.board-expanded .board-save-note{display:none}
@media(max-width:850px){.planning-grid{grid-template-columns:minmax(0,1fr) 185px}.planning-grid .timeline{min-width:650px}.board-expanded{inset:0}.board-view-controls{margin-left:0}}
@media(max-width:600px){.planning-grid{display:flex;flex-direction:column}.planning-grid>.open-jobs{order:-1;width:100%;max-height:150px;box-sizing:border-box}.planning-grid>.open-jobs .rail-items{flex-direction:row;overflow:auto}.planning-grid>.open-jobs .rail-card{width:200px}.planning-grid>.timeline-scroll{width:100%}}
/* Keep names and clocks legible; compact mode removes padding, not type size. */
.planning-grid .person-column,.planning-grid .timeline tr>th:first-child{width:195px}
.planning-grid .timeline th .bulk-person-label>span{font-size:15px;line-height:1.2}
.planning-grid .timeline thead th{font-size:15px;font-weight:750}
.planning-grid .timeline-duty strong{font-size:13px}.planning-grid .timeline-duty small{font-size:12px}
.board-compact .timeline td{height:37px}.board-compact .timeline-duty{min-height:36px}
.board-compact .timeline th small{font-size:10px}.board-compact .timeline th .bulk-person-label>span{font-size:15px}
.board-expanded .planning-grid .timeline thead th{font-size:17px}
.board-expanded .planning-grid .timeline th .bulk-person-label>span{font-size:16px}

.planning-grid .person-column,.planning-grid .timeline tr>th:first-child{width:215px}.timeline-name{display:block;white-space:nowrap;font-size:inherit}.board-compact .timeline th small{margin-left:0;margin-right:5px}.planning-grid .timeline th [data-drag-member],.planning-grid .bulk-person-label{cursor:grab}

.board-expanded .planning-grid .person-column,.board-expanded .planning-grid .timeline tr>th:first-child{width:235px}.board-expanded .planning-grid .timeline th .bulk-person-label>span,.board-expanded .planning-grid .timeline thead th{font-size:18px}.board-view-controls>strong{align-self:center;font-size:14px}
.board-compact .timeline th .bulk-person-label>span{line-height:12px}.board-compact .timeline-name{line-height:21px}.board-compact .timeline th{padding-top:2px;padding-bottom:2px}

/* Keep the board surface for people, clocks and jobs; secondary actions live in tools. */
.planning-board .board-controls{padding:5px 8px;gap:8px;flex-wrap:wrap}
.planning-board .board-controls>.button-row{gap:6px;flex:1;justify-content:flex-end}
.planning-board .board-view-controls{margin-left:0;gap:5px}
.planning-board .board-controls button,.planning-board .board-controls select,.planning-board .schedule-tools>summary{padding:6px 9px;min-height:36px}
.planning-board .post-color-legend{padding:5px 8px;gap:10px}
.planning-board .assignment-rails{padding:4px 8px}
.planning-board .unassigned-people .rail-card{padding:6px 9px;min-height:36px}
.planning-board .unassigned-people .rail-card small{display:none}
.planning-board .unassigned-people h3{margin:0}
.planning-board .planning-grid>.open-jobs{padding:4px 7px}
.planning-board .planning-grid>.open-jobs h3{top:-4px;padding:5px 0}
.planning-board .planning-grid>.open-jobs .rail-items{gap:5px}
.planning-board .planning-grid>.open-jobs .rail-card{padding:6px 8px}
.planning-board .board-view-controls>strong{white-space:nowrap}
.planning-board .schedule-tools .board-bulk{max-width:100%}
.board-expanded{inset:0;border-radius:0}
@media(min-width:1050px){.planning-board .team-sort-controls{gap:8px}.planning-board .team-sort-controls>label{font-size:0}.planning-board .team-sort-controls>label select{font-size:12px}}
