.week-picker label{margin:0;display:block}
.week-picker input{display:block;line-height:1.4}
.location-plans{display:grid;gap:26px}
.location-plan>.card-title{gap:16px;align-items:center}
.location-plan .card-title .eyebrow{display:block;margin-bottom:9px;font-size:9px}
.location-plan .card-title h2{margin-bottom:7px}
.location-plan-table{table-layout:fixed;min-width:820px;width:100%}
.location-plan-table thead th:first-child,.location-plan-table tbody th{width:170px;min-width:170px;white-space:normal;overflow-wrap:anywhere}
.location-plan-table tbody th{vertical-align:top;padding-top:22px}
.location-plan-table tbody th>small{display:block;font-weight:400;font-size:10px;color:var(--muted);margin-top:8px}
.area-column-title{display:flex!important;align-items:center;justify-content:center;gap:8px;line-height:1.5;font-size:12px!important;font-weight:600;margin:0!important;color:var(--navy)}
.area-column-title .legend-dot{flex-shrink:0}
.location-plan-table td{vertical-align:top;padding:12px 8px}
.location-plan-table .shift{width:100%;min-height:83px;text-align:left;margin:0 0 8px;padding:11px 10px;white-space:normal;overflow-wrap:anywhere}
.location-plan-table .shift:last-child{margin-bottom:0}
.location-plan-table .shift strong{font-size:11px;line-height:1.5}
.location-plan-table .shift span{font-size:12px;font-weight:600;line-height:1.5}
.location-plan-table .shift small{font-size:9px;line-height:1.5;opacity:.85}
.location-plan-table .shift.unfilled{background:#fff5e5;border:1px dashed #b78438;color:#81591e}
.location-plan-table button.shift:hover{outline:2px solid var(--teal);outline-offset:1px}
.location-plan-table button.shift:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.plan-version{font-size:12px;color:var(--muted);margin:0 0 18px}
.week-totals{margin-top:24px}
.week-totals summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--navy)}
.week-totals[open] summary{margin-bottom:16px}
.week-totals .data-table td:last-child{text-align:left}
@media(max-width:760px){.location-plan>.card-title{align-items:flex-start}.location-plan .card-title h2{font-size:21px}.location-plan-table thead th:first-child,.location-plan-table tbody th{width:155px;min-width:155px}.location-plan-table{min-width:820px}.location-plan-table td{min-width:130px}.location-plans{gap:20px}}
.area-plan-table{table-layout:auto;min-width:550px}
.area-plan-table thead th:first-child,.area-plan-table tbody th{width:135px;min-width:135px}
.area-plan-table thead th:not(:first-child),.area-plan-table td{min-width:210px}
.area-plan-table .day-row-title{font-size:12px;font-weight:600}
.day-slots{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;justify-content:center}
.area-plan-table .day-slots>.shift-item{flex:1 1 155px;min-width:min(155px,100%)}
.area-plan-table .subarea-head th{padding:10px 12px;font-size:11px;color:var(--navy);background:var(--tint)}
/* Fit a location week with readable text; scroll only for many columns. */
.schedule-content{padding-top:22px}
.schedule-content .page-heading{margin-bottom:14px;align-items:center}
.schedule-content .page-heading .eyebrow{display:none}
.schedule-content .page-heading h1{font-size:30px;margin:0 0 5px}
.schedule-content .page-heading p{font-size:12px;margin:0}
.schedule-content .schedule-toolbar{margin-bottom:12px;gap:12px}
.schedule-content .draft-banner{margin-bottom:10px;padding:10px 16px;gap:12px}
.schedule-content .draft-banner small{font-size:11px}
.schedule-content .plan-version{font-size:11px;margin-bottom:10px}
.location-tabs{display:flex;align-items:center;gap:4px;background:white;padding:4px;border:1px solid var(--border);border-radius:999px}
.location-tabs .button{font-size:13px;min-height:34px;padding:6px 17px;background:transparent}
.location-tabs .selected{background:var(--navy);color:white}
.schedule-content .location-plan>.card-title{padding:12px 18px}
.schedule-content .location-plan .card-title .eyebrow{display:none}
.schedule-content .location-plan .card-title h2{font-size:21px;margin:0 0 4px}
.schedule-content .location-plan .card-title p{font-size:12px;margin:0}
.schedule-content .area-plan-table{min-width:420px}
.schedule-content .area-plan-table thead th:first-child,.schedule-content .area-plan-table tbody th{width:108px;min-width:108px;padding-left:14px}
.schedule-content .area-plan-table thead th{padding-block:9px}
.schedule-content .area-plan-table thead th:not(:first-child),.schedule-content .area-plan-table td{min-width:130px}
.schedule-content .area-plan-table td{padding:5px}
.schedule-content .area-plan-table tbody th{padding-top:12px}
.schedule-content .area-plan-table .day-row-title{font-size:14px}
.schedule-content .area-plan-table tbody th>small{font-size:12px;margin-top:3px}
.schedule-content .area-plan-table .area-column-title{font-size:14px!important}
.schedule-content .area-plan-table .subarea-head th{font-size:13px}
.schedule-content .day-slots{gap:5px}
.schedule-content .area-plan-table .day-slots .shift{min-height:60px;padding:8px 10px;flex:none;max-width:none;margin:0}
.schedule-content .area-plan-table .shift strong{font-size:12px;line-height:1.4}
.schedule-content .area-plan-table .shift span{font-size:14px;line-height:1.45}
.schedule-content .area-plan-table .shift small{font-size:11px;line-height:1.3}
.schedule-content .plan-legend{padding:9px 18px;gap:14px;font-size:11px}
.schedule-content .week-totals{margin-top:14px;padding:16px 18px}
.schedule-content .planning-note{padding:12px 2px}
@media(max-width:760px){.schedule-content .toolbar-right{flex-wrap:wrap}.schedule-content .page-heading h1{font-size:28px}.schedule-content .draft-banner{padding:12px}.location-tabs .button{padding-inline:15px}.schedule-content .area-plan-table .day-row-title{font-size:13px}}
.schedule-shell .topbar{height:52px;min-height:52px}
.schedule-content{padding-top:14px}
.schedule-content .page-heading{margin-bottom:10px}
.schedule-content .page-heading p{display:none}
.schedule-content .schedule-toolbar{margin-bottom:8px}
.schedule-content .draft-banner{padding:8px 14px;margin-bottom:10px}
.schedule-content .location-plan>.card-title{padding:10px 16px}
.schedule-content .area-plan-table thead th{padding-block:6px}
.schedule-content .shift-pause{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.schedule-content .plan-information{font-size:11px;color:var(--muted);margin-top:12px}
.schedule-content .plan-information summary{cursor:pointer}
.schedule-content .plan-information .plan-version{margin-top:8px}
.schedule-content .area-plan-table tbody th{padding-top:7px;padding-bottom:7px}
.schedule-content .plan-legend{padding-block:6px}
.personal-day{padding:20px 24px;margin-bottom:20px;border:1px solid #bddcde;background:linear-gradient(120deg,#edf8f7,#fff)}
.personal-day-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.personal-day-heading .eyebrow{display:block!important;font-size:10px;margin-bottom:6px}.personal-day-heading h2{font-size:22px;margin:0;color:var(--navy)}.personal-date{font-size:14px;color:var(--muted)}
.personal-periods{display:flex;flex-wrap:wrap;gap:12px}.personal-period{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 18px;flex:1 1 280px;padding:14px 16px;background:#fff;border:1px solid var(--border);border-radius:12px}.personal-time{display:flex;align-items:center;gap:8px;color:var(--teal-dark);font-size:18px}.personal-time .icon{width:19px;height:19px}.personal-place{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.personal-place strong{font-size:18px;color:var(--navy)}.personal-place span{font-size:14px;color:var(--muted)}.personal-period>small{grid-column:1/-1;font-size:12px;color:var(--muted)}
.personal-day-status{font-size:14px;color:var(--muted);margin:0 0 12px}.personal-day-conflict{font-size:14px;color:#795214;background:#fff4df;padding:12px;border-radius:8px}.personal-next-heading{display:flex;gap:8px 18px;flex-wrap:wrap;align-items:baseline;margin:10px 0}.personal-next-heading strong{font-size:15px;color:var(--navy)}.personal-next-heading span{font-size:14px;color:var(--muted)}.personal-day-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:10px}.personal-day-footer>span{font-size:11px;color:var(--muted)}.personal-day-footer .button{font-size:13px;padding:5px 0;min-height:30px}
@media(max-width:760px){.personal-day{padding:18px}.personal-day-heading{align-items:flex-start;flex-direction:column;gap:6px}.personal-day-heading h2{font-size:21px}.personal-period{grid-template-columns:1fr;gap:10px}.personal-period>small{grid-column:1}.personal-time{font-size:19px}.personal-place strong{font-size:17px}.personal-day-footer{gap:8px}}

.shift.own-shift{outline:2px solid #103b50;outline-offset:-2px}.shift .own-shift-name{font-weight:800}

/* Compact service cards; separate sibling actions avoid nested buttons. */
.shift-item{position:relative;display:block;min-width:0}
.shift-item>.shift{width:100%;box-sizing:border-box;margin:0}
.schedule-content .area-plan-table .shift-item.has-lock-control>.shift{padding-right:42px}
.shift-lock-control{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#496573;cursor:pointer}
.shift-lock-control svg{width:16px;height:16px;flex:none}
.shift-lock-control.is-held{background:#0d6971;border-color:#0d6971;color:white}
.shift-lock-control:hover{background:#d5e8eb;color:#103b50;border-color:#8cb8bf}
.shift-lock-control.is-held:hover{background:#07545c;color:white}
.shift-lock-control:focus-visible{outline:3px solid #177d84;outline-offset:2px}
.planning-explanation>summary{font-weight:600;padding-block:8px;min-height:32px}
.schedule-content .planning-explanation .planning-note{padding:8px 0 12px}
.schedule-content .planning-explanation .planning-note p{font-size:12px;line-height:1.7}
@media(max-width:760px){
 .mobile-location-days .shift-item.has-lock-control>.shift{padding-right:54px}
 .shift-lock-control{width:44px;height:44px;min-height:44px;top:3px;right:3px}
 .shift-lock-control svg{width:18px;height:18px}
 .planning-explanation>summary{min-height:44px;display:list-item;padding-block:12px}
}

.schedule-view-switch{display:inline-flex;margin:0 0 22px}.schedule-view-switch .button{min-width:75px}.schedule-day-link{border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;padding:4px;min-height:44px}.schedule-day-link:hover{color:var(--teal)}.schedule-day-link:focus-visible{outline:2px solid var(--teal);outline-offset:3px}.schedule-day-link small{display:block}
