/* Scheduling calendar and compact store setup; independent of public website styles. */
.period-controls{display:flex;align-items:center;gap:10px;min-width:0}.period-mode-select{width:auto;min-width:96px;max-width:145px;min-height:44px;padding:8px 28px 8px 12px;font-size:14px;background-color:var(--appearance-surface,#fff);flex:none}.period-selector{min-width:235px}.period-selector .week-menu{min-width:155px}.period-date-menu{position:absolute;right:0;top:calc(100% + 8px);padding:14px;background:var(--appearance-surface,white);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #20372f20;z-index:4;min-width:230px;font-size:13px}.period-date-menu input{width:100%;font-size:16px}.period-caption{font-size:13px;color:var(--muted)}
.period-calendar{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--appearance-surface,#fff)}.calendar-weekdays,.calendar-dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{background:var(--appearance-soft,#edf2eb);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);text-align:center;padding:10px 0}.calendar-day{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:left;gap:3px;padding:8px;min-height:118px;min-width:0;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--appearance-surface,#fff);font-size:12px}.calendar-day:nth-child(7n){border-right:0}.calendar-day:hover{background:var(--appearance-soft,#f0f5ee)}.calendar-day.calendar-outside,.roster-view-day.roster-view-outside{background:var(--appearance-canvas,#f4f6f1)}.calendar-outside .calendar-number,.roster-view-outside header h2{color:var(--muted)}.calendar-date{font-weight:650;font-size:13px;display:flex;align-items:center;justify-content:space-between}.calendar-count{color:var(--muted);font-size:11px}.calendar-status{font-size:10px;margin-top:auto;color:var(--appearance-muted,#728278)}.calendar-warning{font-style:normal;background:var(--appearance-warning-surface,#fff0cc);color:var(--appearance-warning-text,#8c5b20);width:16px;height:16px;text-align:center;border-radius:50%}.holiday-label{display:block;color:var(--appearance-warning-text,#886125);font-size:10px;line-height:1.4;overflow-wrap:anywhere}.calendar-day.has-holiday{background:var(--appearance-warning-surface,#fffdf5)}
.profile-location-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-location-fields .full-width{grid-column:1/-1}.profile-location-fields>[hidden]{display:none}.profile-location-fields input,.profile-location-fields select{width:100%;min-width:0}.calendar-sources{font-size:12px;color:var(--muted)}.calendar-sources summary{cursor:pointer;padding:8px 0}.calendar-sources p{margin:8px 0}.onboarding.panel{max-width:620px;margin:24px auto;padding:24px}.onboarding .form{gap:12px;margin:16px 0 0}.onboarding h1{margin:0 0 12px;font-size:24px}.onboarding label{gap:5px;font-size:14px}.onboarding input,.onboarding select{min-height:42px;padding:8px 10px}.onboarding .form>button{min-height:44px}
@media(max-width:1000px){.period-controls{gap:8px}.calendar-day{padding:7px;min-height:118px}}
@media(max-width:700px){.period-controls{width:100%;justify-content:space-between;gap:8px}.period-mode-select{min-width:80px;max-width:120px;padding-left:10px;font-size:13px}.period-selector{min-width:0;flex:1}.period-selector .week-menu{min-width:0;flex:1}.period-selector .week-menu>summary{padding-inline:7px;font-size:12px;gap:4px}.period-selector .week-arrow{width:30px;padding:5px}.calendar-day{min-height:84px;padding:6px 4px;gap:3px}.calendar-date{font-size:11px}.calendar-count{font-size:10px}.holiday-label{font-size:9px}.calendar-weekdays{font-size:10px}.onboarding.panel{margin:16px;padding:18px}.onboarding h1{font-size:22px}.profile-location-fields{gap:10px}.period-dialog-range{font-size:13px}.period-caption{font-size:12px}}
@media print{.period-controls,.schedule-info,.period-date-menu{display:none!important}.period-calendar{overflow:visible;border:0}.calendar-day{display:flex!important;break-inside:avoid;min-height:100px}.calendar-status{display:none}.holiday-label{color:var(--appearance-text,#222)}}

/* Daily employee editor: one date navigator, one add action, no global undo. */
dialog.day-dialog{max-width:720px;max-height:calc(100dvh - 32px);padding:0 20px 16px}
.day-dialog .dialoghead{gap:12px;flex-wrap:wrap;padding:16px 0 12px}
.day-date-nav{display:flex;align-items:center;gap:8px;min-width:0}
.day-date-nav h2{font-size:19px;margin:0;white-space:nowrap;outline:none}
.day-date-nav button{padding:6px;min-width:40px;min-height:40px;font-size:24px}
.day-date-nav button:disabled{cursor:default}
.day-dialog-toolbar{gap:12px;margin:0 0 12px}
.day-dialog-toolbar .primary{padding:10px 16px}
.day-empty{margin:0;padding:32px 12px;text-align:center;color:var(--muted);background:var(--appearance-canvas,#f7f9f6);border:1px dashed var(--line);border-radius:12px;font-size:14px}
.day-save-hint{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.5}
.day-dialog [data-error]:empty{display:none}
@media(max-width:480px){dialog.day-dialog{padding:0 12px 12px}.day-dialog .dialoghead{gap:6px}.day-date-nav{gap:2px}.day-date-nav h2{font-size:17px}.day-date-nav button{min-width:34px}.day-save-hint{margin-top:12px}}

/* Account identity: personal name and access title stay distinct. */
.settings-account button.setting-identity{width:100%;text-align:start;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer;min-height:64px}
.settings-account button.setting-identity:hover{background:var(--appearance-canvas,#f4f7f2)}
.settings-account button.setting-identity:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.account-name-line{display:flex;align-items:center;flex:1;flex-wrap:wrap;gap:6px 10px;min-width:0}
.account-name-line strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.account-name-line .account-role{display:inline-block;margin:0;padding:3px 8px;border-radius:6px;background:var(--appearance-soft,#edf3ec);color:var(--appearance-accent,var(--green));font-size:11px;line-height:1.4;white-space:nowrap}
.setting-identity>svg{width:16px;height:16px;flex:none;color:var(--muted,var(--appearance-muted,#65766e))}

/* Phone workspace density: retain touch-sized controls and fixed navigation. */
@media(max-width:760px){
 .app-workspace{padding-inline:12px;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
 .app-workspace .workspace-heading{padding:12px 0;gap:8px}
 .app-workspace .workspace-heading h1{font-size:21px;margin:0}
 .app-workspace .page-title{min-height:26px}
 .app-workspace .workspace-actions{gap:8px}
 .app-workspace .page-actions button{min-height:44px;padding:8px 12px}
 .app-workspace .schedule-info{margin:0 0 8px;gap:6px}
 .app-workspace .schedule-info>.period-caption{flex:1;min-width:0;font-size:11px}
 .app-workspace .schedule-tools{gap:4px}
 .app-workspace .schedule-tools>button,.app-workspace .schedule-menu>summary{min-height:44px}
 .app-workspace .settings-layout{gap:14px}
 .app-workspace .settings-group h2{font-size:12px;margin:0 0 6px}
 .app-workspace .setting-row{min-height:44px;padding:8px 12px;gap:10px}
 .app-workspace .setting-language{min-height:44px;padding:0 12px}
 .app-workspace .setting-language select{min-height:44px;padding-block:6px}
 .settings-account button.setting-identity{min-height:52px;padding:8px 12px}
 .app-workspace .app-settings-footer{margin-top:14px;padding:12px 0;gap:6px}
 .app-workspace .team-toolbar{padding:8px;margin-bottom:8px;gap:6px}
 .app-workspace .team-toolbar :is(input,select,button){min-height:44px}
 .app-workspace .availability-toolbar{margin-bottom:8px;gap:8px}
 .app-workspace .availability-toolbar p{margin:0;font-size:12px;line-height:1.4}
 .app-workspace .availability-toolbar select{min-height:44px}
 .app-workspace .weekly-table :is(th,td){padding:5px 4px}
 .app-workspace .weekly-table .availability-cell{height:44px;min-height:44px}
 .app-workspace .weekly-actions{flex-direction:row;flex-wrap:nowrap;gap:4px}
 .app-workspace .weekly-actions button{min-height:44px;padding:6px;white-space:nowrap}
 .app-workspace .availability-grid{max-height:calc(100dvh - 330px);min-height:150px}
 .app-workspace .messages-layout{height:calc(100dvh - 200px);min-height:250px;margin-bottom:0}
 .app-workspace .message-contact{min-height:52px;padding:8px 6px}
 body:has(.app-workspace) dialog:not(.public-dialog){max-height:calc(100dvh - 20px);padding:12px;width:calc(100% - 20px)}
 body:has(.app-workspace) dialog:not(.public-dialog) .dialoghead{margin-bottom:10px;gap:8px}
 body:has(.app-workspace) dialog:not(.public-dialog) .dialoghead h2{font-size:18px;line-height:1.3}
 body:has(.app-workspace) dialog:not(.public-dialog) .form{gap:10px;margin:0}
 body:has(.app-workspace) dialog:not(.public-dialog) label{gap:4px;font-size:13px}
 body:has(.app-workspace) dialog:not(.public-dialog) :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){font-size:16px;min-height:44px;padding:8px}
 body:has(.app-workspace) dialog:not(.public-dialog) .formfooter{position:sticky;bottom:-12px;background:var(--appearance-surface,#fff);z-index:2;padding:10px 0 0;margin:0;gap:6px}
 body:has(.app-workspace) dialog:not(.public-dialog) .formfooter button{min-height:44px;padding:8px 12px}
 body:has(.app-workspace) dialog:not(.public-dialog) [data-error]:empty{display:none}
 .employee-dialog .employee-layout{gap:12px}
 .employee-dialog .employee-details{gap:10px}
 .employee-dialog .employee-times{padding-top:10px}
 .employee-dialog .employee-times h3{margin-bottom:8px;font-size:15px}
 .employee-dialog .availrow{min-height:44px;gap:5px}
 .employee-dialog .availability-help{font-size:11px;line-height:1.4;margin-bottom:6px}
 .employee-dialog .availability-actions{margin-bottom:6px}
 .employee-dialog .availability-actions button{min-height:44px;padding:6px 12px}
 .employee-dialog .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
@media(max-width:760px){
 .app-workspace:has(>.availability-grid),.app-workspace:has(>.messages-layout){height:calc(100dvh - 60px);display:flex;flex-direction:column}
 .app-workspace:has(>.availability-grid)>:not(.availability-grid),.app-workspace:has(>.messages-layout)>:not(.messages-layout){flex-shrink:0}
 .app-workspace>.availability-grid{flex:1;min-height:120px;max-height:none}
 .app-workspace>.messages-layout{flex:1;min-height:220px;max-height:none;height:auto}
 .employee-dialog .group-choices label.check{white-space:nowrap;min-width:max-content;gap:7px}
 .employee-dialog .group-choices input[type=checkbox]{flex:none}
}
.mobile-week-days{display:none}
@media(max-width:760px){
 .app-workspace:not([data-page="notifications"],[data-page="messages"]) .workspace-heading:not(:has(.week-selector)):not(:has(.period-controls)){align-items:center;flex-wrap:nowrap}
 .app-workspace:not([data-page="notifications"],[data-page="messages"]) .workspace-heading:not(:has(.week-selector)):not(:has(.period-controls)) .workspace-actions{width:auto;margin-left:auto}
 .app-workspace .roster-workspace>.staff-sidebar{display:none}
 .app-workspace .mobile-week-days{display:grid;grid-template-columns:repeat(7,minmax(40px,1fr));gap:4px;overflow-x:auto;padding-bottom:8px}
 .mobile-week-days button{min-height:52px;min-width:40px;display:flex;flex-direction:column;gap:2px;padding:6px 3px;font-size:12px;line-height:1.25}
 .mobile-week-days button small{font-size:11px}
 .mobile-week-days button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}
 .mobile-week-days button[aria-pressed=true] small{color:inherit}
 .app-workspace .roster-workspace .day:not(.selected-day){display:none}
}
.mobile-menu-undo{display:none}
@media(max-width:760px){
 body:has(.app-workspace) #toast{left:12px;right:12px;transform:none;max-width:none;width:auto;bottom:calc(80px + env(safe-area-inset-bottom));font-size:13px;line-height:1.5;gap:8px}
 body:has(.app-workspace) #toast button{margin-left:auto;flex:none;min-height:44px}
 .app-workspace .schedule-tools>button[data-act=undo]{display:none}
 .app-workspace .mobile-menu-undo{display:block}
 .mobile-menu-undo button{width:100%}
 .period-focus{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px;font-size:12px}
 .period-focus button{min-height:44px;padding:6px 10px;font-size:12px}
 .period-focus small{font-size:11px}
}
@media(max-width:760px){.app-workspace .schedule-tools{width:auto}}
@media(max-width:760px){
 .app-workspace .employee-availability{margin:0;padding:12px;gap:8px}
 .employee-availability>.row.between{align-items:center;gap:4px}
 .employee-availability>.row.between h2{font-size:16px;margin:0}
 .employee-availability>.row.between>.muted{font-size:11px}
 .employee-availability>p{font-size:12px;line-height:1.4;margin:0}
 .employee-availability .availability-help{font-size:11px;line-height:1.4;margin:0}
 .employee-availability .availability-actions{margin:0}
 .employee-availability .availability-actions button{min-height:44px}
 .employee-availability .availability{gap:2px}
 .employee-availability .availrow:not(.availability-head){min-height:44px}
 .employee-availability .availrow select{font-size:16px;min-height:44px;padding:8px 6px}
 .employee-availability .availability-head{min-height:20px}
 .employee-availability .recurring-choice{min-height:36px;margin:0;font-size:13px}
 .employee-availability>[data-error]:empty{display:none}
 .employee-availability>button[type=submit]{min-height:44px;position:sticky;bottom:calc(80px + env(safe-area-inset-bottom));z-index:2}
}

/* Copy destinations stay visible; native checkboxes support touch and keyboard. */
.copy-dates{border:0;padding:0;margin:0;min-width:0}
.copy-dates legend{font-weight:600;margin-bottom:8px}
.copy-date-actions{display:flex;gap:8px;margin-bottom:10px}
.copy-date-actions button{min-height:44px;padding:6px 12px}
.copy-date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.copy-date-grid label{position:relative;display:flex;align-items:center;min-height:58px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.copy-date-grid label:has(input:checked){background:var(--appearance-soft,#edf4ef);border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.copy-date-grid input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.copy-date-grid label:has(input:disabled){border-style:dashed;cursor:default;color:var(--muted)}
.copy-date-grid span{min-width:0;line-height:1.3}
.copy-date-grid small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.copy-date-grid label:focus-within{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:760px){.copy-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Staff tray sits above the full-width week; only its list scrolls. */
.app-workspace .roster-workspace{grid-template-columns:minmax(0,1fr);gap:12px}
.app-workspace .staff-sidebar{position:static;top:auto;padding:10px 12px;border-radius:12px}
.staff-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.staff-toolbar .sidebar-heading{display:flex;align-items:center;gap:6px;flex:none}
.staff-toolbar .sidebar-heading h3{font-size:14px;margin:0}
.staff-count{font-size:11px;line-height:1.4;color:var(--appearance-accent,var(--green));background:var(--appearance-soft,#edf3ec);padding:2px 6px;border-radius:5px}
.staff-toolbar input[type=search],.staff-toolbar select,.staff-toolbar .roster-toggle{height:40px;min-height:40px;font-size:13px;padding:8px 10px}
.staff-toolbar select{max-width:210px}
.staff-toolbar .roster-toggle{border:0;background:transparent;color:var(--muted);padding-inline:6px;white-space:nowrap;margin-left:auto;align-self:center}
.staff-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.staff-filters>label{flex:0 1 180px;min-width:140px;margin:0}
.staff-filters>label:first-child{flex-basis:300px}
.staff-filters :is(input,select){width:100%;min-height:40px;font-size:13px;padding:8px 10px}
.staff-sidebar .sidebar-tip{margin:10px 0 8px;font-size:12px;line-height:1.4}
.staff-sidebar .roster-list{min-height:0;max-height:min(184px,32vh);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-inline-end:4px;scrollbar-gutter:stable}
.roster-list>.empty,.range-assignment-list>.empty{margin:0;padding:12px}
.staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,128px),1fr));gap:5px}
.staff-group+.staff-group{margin-block-start:4px}
.staff-group>summary{cursor:pointer;min-height:36px;padding:7px 3px;overflow-wrap:anywhere;font-weight:600}
.staff-group[open]>.staff-grid{margin-block-end:6px}
.staff-sidebar .roster-person{min-height:44px;padding:4px 8px;border:1px solid var(--appearance-line,#e3e9e1);background:var(--appearance-soft,#f9fbf8);overflow:hidden;align-items:center;text-align:start}
.staff-sidebar .roster-person:not(:disabled):hover{border-color:var(--appearance-line,#9db9a7);background:var(--appearance-soft,#edf5ee)}
.staff-sidebar .roster-person strong{font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.staff-sidebar .roster-person small{font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.staff-sidebar .roster-person>.roster-person-details{min-width:0;flex:1;color:inherit;font-size:inherit}
.roster-reason[data-roster-status="assigned"]{color:var(--appearance-accent,var(--green))}
.roster-reason[data-roster-status="overlap"]{color:var(--appearance-danger-text,#a13b30)}
.staff-sidebar #roster-content[hidden]{display:none}
.app-workspace .roster-workspace .days{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}
@media(min-width:761px) and (max-width:1100px){.staff-toolbar{gap:12px}.staff-toolbar select{max-width:180px}.staff-filters>label{flex:1 1 160px}.staff-filters>label:first-child{flex:2 1 240px}}
@media(max-width:760px){.app-workspace .roster-workspace .days{grid-template-columns:minmax(0,1fr);min-width:0}}
@media print{.app-workspace .staff-sidebar{display:none!important}}

.staff-sidebar .roster-list:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:8px}

/* Keep the three everyday scheduling actions in reach on phones. */
@media(max-width:760px){
 .schedule-workspace .page-actions{width:100%;gap:6px;justify-content:flex-start}
 .schedule-workspace .page-actions button{max-width:100%;padding-inline:10px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 .schedule-workspace .period-selector{flex:1 1 165px}
}

/* Keep dense rosters readable and form feedback clear of fixed actions. */
.team-scroll-hint{display:none}
.availability-grid:focus-visible{outline:2px solid var(--green);outline-offset:3px}
#dialog{scroll-padding-block:80px 100px}
#dialog [data-error]:not(:empty){scroll-margin-block:80px 100px}
#dialog [data-error]:focus{outline:none}
.schedule-shift strong,.slot-label strong{font-size:12px}
.schedule-shift small,.slot-label small{font-size:11px}
.schedule-shift .shift-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.shift-menu>summary{min-height:36px;min-width:28px;display:flex;align-items:center;justify-content:center}
@media(max-width:760px){
 .team-scroll-hint{display:block;font-size:11px;line-height:1.4;margin:0 0 6px}
 .availability-grid{scroll-padding-left:136px}
 .shift-menu>summary{min-width:44px;min-height:44px}
 body:has(.app-workspace) #dialog .dialoghead{position:sticky;top:-12px;z-index:4;background:var(--appearance-surface,#fff);padding-block:10px;border-bottom:1px solid var(--line)}
 body:has(.app-workspace) #dialog .formfooter{border-top:1px solid var(--line);padding-top:10px}
}

@media(max-width:760px){.app-header .app-navigation:has([data-arg="team"]){grid-template-columns:repeat(3,minmax(0,1fr))}.period-controls{flex-wrap:nowrap}.period-selector .week-menu>summary .app-icon:first-child{display:none}.period-selector .week-menu>summary{white-space:normal;line-height:1.3}}

/* App chrome follows the available window, including unequal safe-area edges. */
body:has(.app-workspace){padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)}
body:has(.app-workspace) dialog{width:calc(100% - max(12px,env(safe-area-inset-left,0px)) - max(12px,env(safe-area-inset-right,0px)));max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)) - max(12px,env(safe-area-inset-bottom,0px)));overscroll-behavior:contain}
@media(max-width:760px){
 .app-header .app-navigation{padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
 .app-workspace:has(>.availability-grid),.app-workspace:has(>.messages-layout){height:calc(100dvh - 60px - env(safe-area-inset-top,0px))}
 .app-workspace .messages-layout{min-height:160px}
}
@media(hover:none) and (pointer:coarse){body:has(.app-workspace) :is(input,select,textarea){font-size:max(16px,1em)}}

/* Empty screens with an action use one consistent vertical stack. */
.panel.empty:has(>button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.panel.empty:has(>button)>p{margin:0;line-height:1.6}

/* Optional employee department and job title: compact on every screen. */
.employee-work-fields{margin-top:12px}
.employee-work-fields label{min-width:0}
.employee-work-hint{display:block;line-height:1.45;margin:6px 0 12px}
.employee-work-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--muted)}
.employee-work-filter{min-width:0;max-width:200px}
.employee-work-filter select{width:100%;text-overflow:ellipsis}
.team-toolbar>.row{flex-wrap:wrap;min-width:0}
.team-status{display:flex;gap:6px;flex:none}
.team-toolbar select{min-width:0;max-width:100%;min-height:44px;text-overflow:ellipsis}
.team-toolbar label{display:block;position:relative}
@media(max-width:640px){
 .team-toolbar>.row{width:100%;gap:6px}
 .team-toolbar .team-status{flex-basis:100%}
 .team-toolbar .employee-work-filter{flex:1 1 120px;max-width:none}
 .staff-toolbar>label.employee-work-filter{flex:1 1 120px;min-width:0;max-width:none}
 .employee-work-label{font-size:12px;line-height:1.35}
}

.staff-picker-filters{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.staff-picker-filters>label{flex:1 1 120px;max-width:none}

/* Personal scheduling uses the same management identity. */
.my-staff-identity{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.employee-info>.tag{align-self:flex-start;width:fit-content;font-size:.75rem}

/* Shift settings separate the empty state, optional groups and save actions. */
body:has(.app-workspace) dialog.settings-dialog{width:min(860px,calc(100vw - 32px));max-width:860px}
body:has(.app-workspace) dialog.settings-dialog:has(.staffing-empty){max-width:720px}
.settings-dialog .staffing-empty{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:14px;padding:22px;border:1px dashed var(--line);border-radius:12px;background:var(--appearance-canvas,#f5f6f2)}
.settings-dialog .staffing-empty>.app-icon{width:28px;height:28px;color:var(--green)}
.settings-dialog .staffing-empty>p{font-size:14px;line-height:1.6;margin:0}
.settings-dialog .staffing-empty>button{grid-column:2;justify-self:start;min-height:44px}
.settings-dialog .staffing-add{margin:0}
.settings-dialog .role-editor{display:block;border-top:1px solid var(--line);padding-top:4px}
.settings-dialog .role-editor>summary{font-size:13px;min-height:44px;padding:12px 0;color:inherit}
.settings-dialog .role-editor>p{margin:0 0 8px}
.settings-dialog .role-fields{align-items:start;padding:0 0 8px}
.settings-dialog .role-fields>[data-role-id]{flex:1 1 210px;flex-wrap:nowrap}
.settings-dialog .role-fields input{flex:1;min-width:0;width:100%}
.settings-dialog .role-fields button{white-space:nowrap}
.settings-dialog .staffing-footer{display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:center;gap:12px;margin:0}
.settings-dialog .staffing-actions{display:flex;gap:8px;align-items:stretch;justify-content:flex-end}
.settings-dialog .staffing-actions button{white-space:normal;line-height:1.4;min-height:44px}
@media(max-width:700px){
 body:has(.app-workspace) dialog.settings-dialog{width:calc(100vw - 20px)}
 .settings-dialog .staffing-empty{padding:16px;gap:10px 12px}
 .settings-dialog .staffing-empty>p{font-size:13px}
 .settings-dialog .staffing-footer{grid-template-columns:minmax(0,1fr);gap:8px}
 .settings-dialog .staffing-actions{width:100%;flex-wrap:wrap;gap:6px}
 .settings-dialog .staffing-actions button{min-width:44px;flex:0 0 auto;width:max-content;max-width:100%;padding-inline:8px;overflow-wrap:break-word}
 .settings-dialog .role-fields{display:flex;flex-direction:column;align-items:stretch}
 .settings-dialog .role-fields>[data-role-id]{flex:auto}
 .settings-dialog .role-fields>[data-act=role-add]{align-self:flex-start}
}

/* Keep day contents at the top; generic .day button spacing belongs to other views. */
.roster-workspace .day button{margin-top:0}
.roster-workspace .day .shift-slot{min-height:0}
.roster-workspace .day .shift-slot>.schedule-shift:first-child{margin-top:0}
.roster-workspace .day .schedule-shift>button[data-act=shift]{padding:4px 5px;min-height:36px}
.roster-workspace .day .schedule-shift strong{font-size:13px}
.schedule-shift>button[data-act=shift]{overflow:hidden}
.schedule-shift>button[data-act=shift] strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.roster-workspace .day .schedule-shift>button.shift-row-remove,.day-shifts .shift-row button.shift-row-remove{
 flex:0 0 44px;display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:0;
 background:transparent;color:var(--appearance-danger-text,#a13b30);font-size:22px;font-weight:600;line-height:1;cursor:pointer
}
.shift-row-remove:hover>span,.shift-row-remove:focus-visible>span{outline:1px solid currentColor;border-radius:50%}
.shift-row-remove>span{display:grid;place-items:center;width:22px;height:22px}
.roster-workspace .schedule-shift:has(>.shift-menu){
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start
}
.roster-workspace .schedule-shift>button[data-act=shift]{grid-area:1/1}
.roster-workspace .schedule-shift>.shift-row-remove{grid-area:1/2}
.roster-workspace .schedule-shift>.shift-menu{grid-area:1/3}
.roster-workspace .schedule-shift>.shift-request-badge{grid-column:1/-1}
.roster-workspace .day .schedule-shift>.shift-row-remove,
.roster-workspace .schedule-shift>.shift-menu>summary{width:26px;min-width:26px;min-height:36px;padding:0}
.roster-workspace .schedule-shift>.shift-menu>div{top:36px}
@media (max-width:760px), (pointer:coarse){
 .roster-workspace .day .schedule-shift>button[data-act=shift]{min-height:44px}
 .roster-workspace .day .schedule-shift>.shift-row-remove,
 .roster-workspace .schedule-shift>.shift-menu>summary{width:44px;min-width:44px;min-height:44px}
 .roster-workspace .schedule-shift>.shift-menu>div{top:44px}
}
@media (pointer:coarse) and (min-width:761px){
 .app-workspace .roster-workspace .days:has(.shift-row-remove){min-width:1020px}
}
@media (max-width:560px){.roster-workspace .slot-shifts:has(.shift-menu){grid-template-columns:minmax(0,1fr)}}
.schedule-shift[draggable="true"]>button[data-act="shift"]{cursor:grab}
.schedule-shift[draggable="true"]>button[data-act="shift"]:active{cursor:grabbing}
.schedule-shift.drop-before::before,.schedule-shift.drop-after::before{
 content:"";position:absolute;inset-inline:4px;height:3px;border-radius:3px;
 background:var(--appearance-accent,#0d6e50);pointer-events:none;
}
.schedule-shift.drop-before::before{top:-5px}
.schedule-shift.drop-after::before{bottom:-5px}
@media print{.roster-workspace .schedule-shift>button.shift-row-remove,.day-shifts .shift-row button.shift-row-remove{display:none!important}}
.roster-workspace .day .add-people{min-height:36px;margin-top:6px}
.roster-workspace .day .day-custom{display:flex;flex-wrap:wrap;gap:2px 4px;margin-top:auto}
.roster-workspace .day-custom>button{flex:1 1 auto;width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px){
 .app-workspace .roster-workspace .days{align-items:start}
 .app-workspace .roster-workspace .day{display:flex;flex-direction:column;gap:0;padding:0;min-height:182px}
 .app-workspace .roster-workspace .day>.day-select{flex:none}
 .app-workspace .roster-workspace .day>.shift-slot{flex:none;margin:4px;padding:4px}
}
@media print{.app-workspace .roster-workspace .day{min-height:0}}

/* Reading view: dates lead compact cards; names, times and notes stay together. */
.app-workspace[data-page="roster"]{max-width:1280px}
.app-workspace[data-page="roster"] .workspace-heading{min-height:84px;padding:18px 0}
.app-workspace[data-page="roster"]>.subscription-notice{margin:0 0 12px;padding:8px 12px;border-radius:10px;flex-direction:row;align-items:center;flex-wrap:wrap}
.app-workspace[data-page="roster"]>.subscription-notice p{flex:1 1 180px;font-size:12px;line-height:1.5}
.app-workspace[data-page="roster"]>.subscription-notice button{padding:8px 10px;min-height:40px;font-size:12px}
.roster-overview{border:1px solid var(--line);border-radius:14px;background:var(--appearance-surface,#fff);padding:16px;margin-bottom:16px}
.roster-overview-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.roster-view-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;font-size:14px;font-variant-numeric:tabular-nums}
.roster-view-metrics>span:first-child{font-weight:650}
.roster-view-metrics>span+span{color:var(--muted);font-size:12px}
.roster-view-metrics strong{color:var(--appearance-text,#20372f);font-size:16px;font-weight:650;margin-right:4px}
.roster-self-actions{display:flex;flex-wrap:wrap;gap:8px}
.roster-self-actions button{min-height:40px;padding:8px 12px;font-size:12px}
.roster-quick-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.roster-quick-actions button{display:inline-flex;align-items:center;justify-content:center;gap:.3em;flex:none;width:max-content;min-width:44px;min-height:44px;max-width:100%;padding:6px 9px;font-size:.8125rem;white-space:normal;overflow-wrap:anywhere}
.roster-quick-actions button>span[aria-hidden="true"]{flex:none;font-size:.85em;line-height:1;pointer-events:none}
.roster-view-status{display:flex;align-items:baseline;gap:8px 10px;flex-wrap:wrap;font-size:12px;line-height:1.5}
.roster-view-status p{margin:0;color:var(--muted);flex:1 1 220px}
.roster-hours-note{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0}
.roster-view-toolbar{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.roster-view-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.roster-view-filters label{flex:0 1 180px;min-width:0;margin:0}
.roster-view-filters .roster-search{flex:1 1 240px;max-width:360px}
.roster-view-filters input,.roster-view-filters select{width:100%;min-width:0;min-height:44px;font-size:13px}
.roster-view-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));align-items:start;gap:14px;min-width:0}
.roster-view-day{background:var(--appearance-surface,#fff);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0}
.roster-view-day>header{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:13px 16px;background:var(--appearance-soft,#edf3ec);border-bottom:1px solid var(--line)}
.roster-view-day h2{display:flex;align-items:baseline;gap:10px;font-size:14px;margin:0}
.roster-view-day time{font-size:18px;font-weight:650;font-variant-numeric:tabular-nums}
.roster-view-day header>small{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.roster-view-day header>.holiday-label{flex-basis:100%;font-size:11px}
.roster-view-day ul{list-style:none;padding:0;margin:0}
.roster-view-day li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 12px;padding:6px 12px}
.roster-view-day li+li{border-top:1px solid var(--line)}
.roster-view-person{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.roster-view-person strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.roster-view-person small{font-size:11px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.roster-view-time{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;font-size:14px;line-height:1.5;font-weight:550;font-variant-numeric:tabular-nums}
.roster-view-time small{font-size:11px;font-weight:400;color:var(--muted);text-align:end}
.roster-view-day li>.shift-note{grid-column:1/-1;justify-self:start;margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.roster-view-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:180px;margin:0;padding:32px 20px}
.roster-view-empty p{margin:0;line-height:1.6;max-width:48em}
.roster-day-empty{margin:0;padding:14px 16px;color:var(--muted);font-size:12px;line-height:1.5}
/* All planning periods keep weekday columns aligned on wide screens. */
@media screen and (min-width:720px){
 .roster-view-list.roster-view-week{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
 .roster-view-week[data-first-column="2"]>.roster-view-day:first-child{grid-column-start:2}
 .roster-view-week[data-first-column="3"]>.roster-view-day:first-child{grid-column-start:3}
 .roster-view-week[data-first-column="4"]>.roster-view-day:first-child{grid-column-start:4}
 .roster-view-week[data-first-column="5"]>.roster-view-day:first-child{grid-column-start:5}
 .roster-view-week[data-first-column="6"]>.roster-view-day:first-child{grid-column-start:6}
 .roster-view-week[data-first-column="7"]>.roster-view-day:first-child{grid-column-start:7}
 .roster-view-week .roster-view-day>header{padding:10px;gap:6px;align-content:start;min-height:60px}
 .roster-view-week .roster-view-day h2{flex-wrap:wrap;gap:4px 6px;font-size:12px}
 .roster-view-week .roster-view-day time{font-size:15px}
 .roster-view-week .roster-view-day header>small{font-size:11px}
 .app-workspace .roster-view-week .roster-view-day li{grid-template-columns:minmax(0,1fr);gap:4px;padding:6px 8px}
 .roster-view-week .roster-view-person strong{font-size:14px;display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .roster-view-week .roster-view-time{align-items:flex-start;font-size:13px;overflow-wrap:anywhere}
 .roster-view-week .roster-view-time small{text-align:start}
 .roster-view-week .roster-day-empty{padding:12px 10px}
}
@media(max-width:760px){
 .app-workspace[data-page="roster"] .workspace-heading{flex-wrap:wrap;align-items:center;gap:10px;min-height:0;padding:12px 0}
 .app-workspace[data-page="roster"] .workspace-actions{display:contents}
 .app-workspace[data-page="roster"] .page-actions{order:1;margin-inline-start:auto}
 .app-workspace[data-page="roster"] .period-controls{order:2;flex:1 1 100%;width:100%}
 .roster-overview{padding:12px;margin-bottom:12px}
 .roster-overview-top{gap:10px;margin-bottom:10px}
 .roster-view-metrics{gap:6px 12px}
 .roster-self-actions{width:100%}.roster-self-actions button{flex:1;min-height:44px}
 .roster-view-filters label{flex:1 1 130px;max-width:none}
 .roster-view-filters .roster-search{flex:1 1 150px;max-width:none}
 .roster-view-list{gap:12px}
 .roster-view-day>header{padding:11px 12px}
 .roster-view-day time{font-size:17px}.roster-view-time{max-width:180px;font-size:13px}
 .roster-view-empty{min-height:160px;padding:26px 16px}
}
@media print{
 .roster-overview{padding:0;border:0}.roster-self-actions,.roster-view-toolbar{display:none}
 .roster-view-list{display:block}.roster-view-day{margin-bottom:12px;break-inside:auto}
 .roster-view-day li{break-inside:avoid}.roster-view-day>header{break-after:avoid}
}

/* Compact editor: keep controls together and bring the week above the fold. */
.app-workspace[data-page="schedule"] .workspace-heading{min-height:76px;padding:14px 0;gap:12px}
.app-workspace[data-page="schedule"]>.subscription-notice-compact{margin:0 0 6px;padding:2px 10px;gap:8px;min-height:44px;border-radius:10px;flex-direction:row;align-items:center;flex-wrap:wrap}
.subscription-notice-compact p{flex:1 1 180px;font-size:12px;line-height:1.5}
.subscription-notice-compact button{min-height:40px;border:0;padding:6px 8px;font-size:12px}
.app-workspace[data-page="schedule"]>.schedule-info{margin:0 0 8px;gap:6px 16px;min-height:44px}
.schedule-status{flex:1 1 300px;gap:6px 10px}
.schedule-status-note{font-size:11px;color:var(--muted);line-height:1.5}
.app-workspace[data-page="schedule"] .roster-workspace{gap:10px}
.app-workspace[data-page="schedule"] .staff-sidebar{padding:10px 12px}
.staff-toolbar{gap:8px 12px}
.staff-toolbar .staff-filters{flex:1 1 280px;gap:8px;margin:0;flex-wrap:nowrap}
.staff-toolbar .staff-filters>label{flex:1 1 140px;min-width:0;max-width:180px}
.staff-toolbar .staff-filters>label:first-child{flex:2 1 180px;max-width:280px}
.weekly-staff .staff-filters{flex-wrap:wrap}
.staff-toolbar .staff-filters[hidden]{display:none}
.staff-toolbar .roster-toggle{margin-left:auto;min-height:44px}
.staff-sidebar .roster-list{margin-top:6px}
.staff-sidebar .sidebar-tip{margin:6px 0 0;font-size:11px;line-height:1.4}
@media(min-width:761px) and (max-width:1100px){
 .staff-toolbar .staff-filters{order:2;flex-basis:100%}
 .weekly-staff .staff-filters{order:0;flex-basis:280px}
 .staff-toolbar .staff-filters>label:first-child{max-width:360px}
}
@media(max-width:760px){
 .app-workspace[data-page="schedule"] .workspace-heading{min-height:0;padding:10px 0;gap:8px}
 .app-workspace[data-page="schedule"]>.subscription-notice-compact{gap:4px 8px}
 .subscription-notice-compact p{flex-basis:160px;font-size:11px}
 .subscription-notice-compact button{min-height:44px;font-size:11px;padding-inline:4px}
 .schedule-status{flex-basis:140px}
 .schedule-status-note{flex-basis:100%;font-size:11px}
}
@media print{
 .app-workspace[data-page="schedule"]>.schedule-info:has(.schedule-status-note){display:block!important;min-height:0}
 .app-workspace[data-page="schedule"]>.schedule-info>:not(.schedule-status),.schedule-status>:not(.schedule-status-note){display:none!important}
 .schedule-status-note{display:block;font-size:10pt}
}

/* Workspace density: shared spacing, readable controls and reachable actions. */
@media screen{
 .app-workspace{--workspace-gap:12px;--workspace-control:44px}
 .app-workspace:not([data-page="schedule"]) .workspace-heading{min-height:76px;padding:14px 0;gap:12px}
 .app-workspace .workspace-actions:empty{display:none}
 .app-workspace .page-actions>button{min-height:var(--workspace-control)}
 .app-workspace[data-page]>.subscription-notice-compact{margin:0 0 8px;padding:2px 10px;gap:4px 8px;min-height:44px;border-radius:10px;flex-direction:row;align-items:center;flex-wrap:wrap}
 .app-workspace[data-page]>.subscription-notice-compact p{flex:1 1 180px;font-size:12px;line-height:1.5}
 .app-workspace[data-page]>.subscription-notice-compact button{min-height:40px;padding:6px 8px;border:0;font-size:12px}
 .app-workspace :is(.week-arrow,.week-menu>summary,.week-current){min-height:40px}
 .app-workspace .roster-overview{padding:12px;margin-bottom:12px}
 .app-workspace .roster-overview-top{margin-bottom:8px;gap:8px}
 .app-workspace .roster-view-toolbar{margin-top:8px;padding-top:8px}
 .app-workspace .roster-view-list{gap:12px}
 .app-workspace .roster-view-day>header{padding:10px 12px}
 .app-workspace .roster-view-empty{min-height:140px;padding:24px 16px;gap:12px}
 .app-workspace .team-toolbar{gap:8px;padding:8px 10px;margin-bottom:6px}
 .team-toolbar .team-filter-options{gap:8px;min-width:0}
 .team-toolbar .team-status{display:flex;gap:6px;flex-wrap:wrap}
 .app-workspace .team-toolbar :is(button,input,select){min-height:44px;font-size:13px}
 .team-toolbar .team-search{flex:1 1 180px;min-width:0;max-width:280px;margin-left:auto}
 .team-toolbar .team-search input{width:100%}
 .team-toolbar .team-scope{flex:0 1 180px;min-width:0}
 .team-toolbar .team-scope select{width:100%}
 .app-workspace .availability-toolbar{margin:0 0 8px;min-height:24px}
 .app-workspace .availability-toolbar p{margin:0;font-size:12px;line-height:1.5;max-width:none}
 .app-workspace .settings-layout{gap:16px;max-width:1080px}
 .app-workspace .settings-group h2{margin-bottom:6px}
 .app-workspace .setting-row{min-height:48px;padding:8px 12px;gap:10px}
 .app-workspace .setting-identity{min-height:56px;padding:8px 12px}
 .app-workspace .setting-language{display:grid;gap:2px;min-height:48px;padding:2px 12px}
 .app-workspace .setting-language>small{font-size:11px;line-height:1.4;margin:-2px 0 6px;overflow-wrap:anywhere}
 .app-workspace .setting-language select{min-height:44px;padding-block:6px}
 .app-workspace .app-settings-footer{margin-top:16px;padding:12px 0}
 .app-workspace .center-tabs{margin-bottom:12px;padding:4px;gap:4px;border-radius:12px}
 .app-workspace .pending-requests{padding:12px;margin-bottom:12px;border-radius:12px}
 .pending-heading,.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
 .app-workspace .pending-heading h2,.app-workspace .notification-heading h2{margin:0;font-size:17px;line-height:1.4}
 .app-workspace :is(.pending-heading,.notification-heading)>button{min-height:44px;padding:8px 10px;font-size:12px}
 .app-workspace .pending-requests>p{margin:4px 0 8px;font-size:12px;line-height:1.5}
 .app-workspace .pending-requests .list>p{margin:0;padding:8px 0;font-size:13px}
 .app-workspace :is(.pending-requests,.notification-page,.request-history) .list{gap:8px}
 .app-workspace :is(.pending-requests,.notification-page,.request-history) .list-item{padding:10px 12px}
 .app-workspace .notification-page{max-width:none}
 .app-workspace .notification-heading{margin:0 0 8px}
 .app-workspace .notification-page .empty{padding:24px 12px;margin:0}
 .app-workspace .request-history> .row{margin-bottom:10px;gap:8px}
 .app-workspace .request-history h2{font-size:17px;margin:0}
 .app-workspace .request-history .row button,.app-workspace .list-item button{min-height:44px}
 .app-workspace[data-page="messages"]{height:calc(100dvh - 68px - env(safe-area-inset-top,0px));display:flex;flex-direction:column;min-height:0;padding-bottom:16px}
 .app-workspace[data-page="messages"]>:not(#center-messages){flex-shrink:0}
 .app-workspace[data-page="messages"]>#center-messages{flex:1;min-height:240px;display:flex;flex-direction:column}
 .app-workspace #center-messages>.messages-layout{flex:1;min-height:0;max-height:none;height:auto;margin:0}
 .app-workspace .message-sidebar{padding:10px 12px}
 .app-workspace .message-self button{min-height:44px;padding:6px 8px}
 .app-workspace .message-directory-help{margin:4px 0 8px;font-size:11px;line-height:1.5}
 .app-workspace .message-sidebar input{margin-bottom:8px;min-height:44px}
 .app-workspace .message-contact{min-height:52px;padding:7px 8px}
 .app-workspace .message-heading{padding:8px 12px;min-height:56px}
 .app-workspace .message-heading button{min-height:44px}
 .app-workspace .message-list{padding:12px;gap:10px}
 .app-workspace .message-composer{padding:10px 12px;gap:6px 8px}
 .app-workspace .message-composer>button{min-height:44px}
 .app-workspace .message-placeholder{padding:24px 16px}
 .app-workspace .message-placeholder h2{font-size:18px;margin:0 0 8px}
 .app-workspace .message-placeholder p{font-size:13px;margin:0;line-height:1.6}
 .app-workspace .employee-availability{padding:16px;margin-top:0;gap:12px}
 .app-workspace .employee-availability>p{margin:0;font-size:12px;line-height:1.5}
 .app-workspace .employee-availability :is(select,button){min-height:44px}
 .app-workspace .own-shifts{gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
 .app-workspace .own-shifts>.panel{padding:14px;margin-bottom:0;min-width:0}
 .app-workspace .own-shifts h3{margin:0;font-size:15px}
 .app-workspace .own-shifts .shift-time{font-size:22px;margin:10px 0}
 .app-workspace .own-shifts button{min-height:44px}
 .app-workspace .my-week-summary{margin-bottom:12px}
 body:has(.app-workspace) #dialog{--dialog-inset:18px;padding:var(--dialog-inset);max-height:calc(100dvh - 32px)}
 body:has(.app-workspace) #dialog .dialoghead{position:sticky;top:calc(-1 * var(--dialog-inset));z-index:4;background:var(--dialog-surface);padding:10px 0;margin-bottom:10px;border-bottom:1px solid var(--dialog-divider)}
 body:has(.app-workspace) #dialog .dialoghead h2{font-size:19px;line-height:1.35;overflow-wrap:anywhere}
 body:has(.app-workspace) #dialog .dialoghead>button{min-height:44px;flex-shrink:0;padding:8px 12px}
 body:has(.app-workspace) #dialog .form{gap:12px;margin:0}
 body:has(.app-workspace) #dialog label{font-size:13px;gap:5px;min-width:0}
 body:has(.app-workspace) #dialog :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){min-height:44px;max-width:100%;padding:8px 10px}
 body:has(.app-workspace) #dialog .formfooter{position:sticky;bottom:calc(-1 * var(--dialog-inset));z-index:3;background:var(--dialog-surface);border-top:1px solid var(--dialog-divider);gap:8px;padding:10px 0 0;margin:8px 0 0;flex-wrap:wrap;justify-content:flex-end}
 body:has(.app-workspace) #dialog .formfooter :is(button,a){min-height:44px;padding:8px 12px}
 body:has(.app-workspace) #dialog [data-error]:empty{display:none}
 body:has(.app-workspace) #dialog .employee-layout{gap:18px}
 body:has(.app-workspace) #dialog .employee-details{gap:10px}
 body:has(.app-workspace) #dialog .employee-details .grid2{gap:10px}
 body:has(.app-workspace) #dialog .employee-times{padding-left:18px}
 body:has(.app-workspace) #dialog .availability-actions button{min-height:44px}
}
@media screen and (min-width:761px){
 .app-workspace .message-sidebar #message-picker{display:none}
 .app-workspace .employee-availability .availrow{min-height:44px}
}
@media screen and (max-width:760px){
 .app-workspace:not([data-page="schedule"]) .workspace-heading{min-height:0;padding:10px 0;gap:8px}
 .app-workspace .page-title{flex-wrap:wrap;gap:4px 8px}
 .app-workspace[data-page]>.subscription-notice-compact p{flex-basis:150px;font-size:11px}
 .app-workspace[data-page]>.subscription-notice-compact button{min-height:44px;font-size:11px}
 .app-workspace :is(.week-arrow,.week-menu>summary,.week-current){min-height:44px}
 .app-workspace .team-toolbar{gap:6px;padding:8px}
 .team-toolbar .team-filter-options{flex:1 1 100%;gap:6px}
 .team-toolbar .team-filter-options>label{flex:1 1 120px;min-width:0}
 .team-toolbar .team-filter-options select{width:100%;min-width:0;max-width:100%}
 .app-workspace .team-toolbar .team-search{width:auto;flex:1 1 130px;max-width:none;margin:0}
 .app-workspace .team-toolbar .team-scope{width:auto;flex:1 1 110px;max-width:160px}
 .app-workspace .availability-toolbar{min-height:0;margin-bottom:6px}
 .app-workspace .settings-layout{gap:12px}
 .app-workspace .pending-requests{padding:10px}
 .app-workspace .center-tabs{display:flex;flex-wrap:wrap;width:100%;margin-bottom:10px}
 .app-workspace .center-tabs button{flex:1 1 auto;max-width:100%;padding:8px;font-size:13px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 .app-workspace[data-page="messages"]{height:calc(100dvh - 60px - env(safe-area-inset-top,0px));padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 .app-workspace[data-page="messages"]>#center-messages{min-height:220px}
 .app-workspace .message-sidebar{padding:10px}
 .app-workspace .message-sidebar select{width:100%;min-height:44px;font-size:16px}
 .app-workspace .message-composer textarea{font-size:16px;resize:none}
 .app-workspace .employee-availability{padding:12px;gap:8px}
 .app-workspace .employee-availability .availrow{min-height:44px}
 body:has(.app-workspace) #dialog{--dialog-inset:12px;width:calc(100% - 20px);max-height:calc(100dvh - 20px)}
 body:has(.app-workspace) #dialog :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 body:has(.app-workspace) #dialog .dialoghead h2{font-size:18px}
 body:has(.app-workspace) #dialog .employee-times{padding-left:0}
 body:has(.app-workspace) #dialog .formfooter :is(button,a){font-size:13px;padding:8px 10px}
}

@media screen and (min-width:761px){.app-workspace[data-page="more"]{max-width:1280px}.app-workspace .manager-settings{grid-template-rows:min-content 1fr}}

@media screen{.app-workspace .weekly-table .availability-cell{min-height:44px;height:44px}}
@media screen and (max-width:760px){.app-workspace .team-toolbar :is(input,select){font-size:16px}}

@media screen{body:has(.app-workspace) #dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0}body:has(.app-workspace) #dialog select{width:100%}}

@media print{.app-workspace>.subscription-notice{display:none!important}}

/* One roster destination: reading stays compact, editing reveals its tools. */
.app-workspace .roster-overview-top{gap:10px;align-items:center;flex-wrap:wrap}
.app-workspace .roster-self-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.app-workspace .roster-self-actions button{min-height:44px}
.app-workspace .roster-view-day li:has(.roster-shift-action){padding:0}
.app-workspace .roster-shift-action{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:3px;width:100%;min-width:0;min-height:44px;text-align:start;padding:6px 10px;border:0;border-radius:0;background:transparent;color:inherit;white-space:normal}
.app-workspace .roster-shift-action:hover{background:var(--appearance-soft,#edf4ef)}
.app-workspace .roster-shift-action:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.app-workspace .roster-shift-action .roster-view-time{align-items:flex-start;text-align:start}
.app-workspace[data-page="schedule"] .workspace-actions .page-actions{flex-wrap:wrap;gap:6px}
@media(max-width:700px){
 .app-workspace .workspace-heading{align-items:flex-start}
 .app-workspace .workspace-actions,.app-workspace .page-actions{max-width:100%}
 .app-workspace .roster-self-actions{width:100%}
 .app-workspace .roster-self-actions button{flex:1 1 auto}
 .app-workspace .roster-self-actions .schedule-menu{margin-inline-start:auto}
 .app-workspace .roster-shift-action{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:6px 12px;gap:4px 12px}
}
@media print{.roster-self-actions,.roster-quick-actions,.roster-view-toolbar{display:none!important}.roster-shift-action{padding:6px!important}}

.roster-view-day li:has(> .roster-shift-action){display:block}

/* Name-only rows need less space. Touch layouts retain the normal button height. */
.app-workspace .roster-view-day li:has(> .roster-view-person:only-child > strong:only-child){padding-block:3px}
@media screen and (hover:hover) and (pointer:fine){
 .app-workspace .roster-shift-action:has(> .roster-view-person:only-child > strong:only-child){min-height:29px;padding-block:3px}
}
@media(any-pointer:coarse){
 .app-workspace .roster-shift-action:has(> .roster-view-person:only-child > strong:only-child){min-height:44px}
}

/* Quiet option rows: the row is the target, never a small button inside a card. */
/* Date, status and time controls share the editor's width, not the viewport. */
.availability{container:availability-editor / inline-size;min-width:0}
.availability>.availrow,.employee-times .availability>.availrow{grid-template-columns:minmax(128px,1.15fr) repeat(2,minmax(64px,1fr));gap:10px;min-width:0;padding:6px 0}
.availability>.availrow>label{min-width:0;white-space:normal;line-height:1.4}
.availability>.availrow>.availability-day{display:flex;align-items:center;gap:8px;min-height:44px}
.availability-day>span{min-width:0;overflow-wrap:anywhere}
.availability-day time{white-space:nowrap}
.availability>.availrow>.availability-time{display:grid;gap:4px;align-content:start;min-height:0}
.availability-time>span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.availability .time-select{width:100%;min-width:0;min-height:44px}
.availability>.is-unavailable>.availability-time{display:none}
.availability .unavailable-status{grid-column:2/-1;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
@container availability-editor (max-width:390px){
 .availability>.availrow,.employee-times .availability>.availrow{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:8px 0;border-bottom:1px solid var(--line)}
 .availability>.availrow:last-child{border-bottom:0}
 .availability>.availrow>.availability-day{grid-column:1/-1}
 .availability>.availrow>.availability-time{grid-row:2}
 .availability>.is-unavailable>.availability-day{grid-column:1}
 .availability .unavailable-status{grid-column:2;grid-row:1;text-align:right}
}
.app-workspace .settings-organized{display:block;columns:2;column-gap:24px;max-width:none}
.settings-organized .settings-group{break-inside:avoid;margin:0 0 20px}
.app-workspace[data-page="more"] .app-settings-footer{max-width:none}
.settings-organized .settings-group h2{margin:0 0 9px;padding-left:4px;font-size:13px;font-weight:500;letter-spacing:0;color:var(--appearance-muted,var(--muted))}
.settings-organized .settings-list{border:1px solid color-mix(in srgb,var(--appearance-text,#20372f) 9%,transparent);border-radius:16px;box-shadow:none}
.app-workspace :is(.setting-row,.setting-identity){appearance:none;width:100%;display:flex;align-items:center;justify-content:flex-start;gap:14px;min-height:60px;padding:14px 18px;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--appearance-text,#20372f);text-align:left;text-decoration:none;line-height:1.4;cursor:pointer}
.app-workspace :is(.setting-row,.setting-identity):hover{background:color-mix(in srgb,var(--appearance-text,#20372f) 4%,var(--appearance-surface,#fff))}
.app-workspace :is(.setting-row,.setting-identity):active{background:color-mix(in srgb,var(--appearance-text,#20372f) 8%,var(--appearance-surface,#fff))}
.app-workspace :is(.setting-row,.setting-identity):focus-visible{outline:3px solid var(--appearance-accent,var(--green));outline-offset:-3px}
.app-workspace .settings-organized .settings-list>:not(:last-child){border-bottom:1px solid color-mix(in srgb,var(--appearance-text,#20372f) 8%,transparent)}
.app-workspace .setting-summary{display:flex;align-items:baseline;flex:1;flex-wrap:wrap;gap:4px 10px;min-width:0}
.app-workspace .setting-label{flex:1 1 auto;font-size:15px;font-weight:500;white-space:normal}
.app-workspace .setting-row>.app-icon:first-child,.setting-language>.app-icon{flex:none;width:22px;height:22px;color:var(--appearance-muted,#6c8275)}
.app-workspace .setting-row>.app-icon:last-child:not(:first-child){flex:none;width:13px;height:13px;opacity:.65}
.app-workspace .setting-summary .setting-value{max-width:100%;text-align:start;font-size:13px;font-weight:400;color:var(--appearance-muted,var(--muted));white-space:normal;overflow-wrap:anywhere}
.app-workspace .setting-row.setting-danger{color:var(--appearance-danger-text,#a13b30)}
.app-workspace .setting-row.setting-danger>.app-icon{color:inherit}
.settings-organized .setting-identity{min-height:84px}
.settings-organized .account-avatar{width:40px;height:40px;background:color-mix(in srgb,var(--appearance-text,#20372f) 6%,var(--appearance-surface,#fff));color:var(--appearance-text,#20372f);font-size:16px;font-weight:500}
.settings-organized .account-name-line{display:flex;align-items:flex-start;flex-direction:column;gap:5px}
.settings-organized .account-name-line strong{font-size:17px;font-weight:600}
.settings-organized .account-name-line small{font-size:12px;line-height:1.4}
.settings-organized .setting-language{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-height:60px;padding:12px 18px}
.settings-organized .setting-language .site-language{flex:1;min-width:0;width:auto;gap:12px}
.settings-organized .setting-language .site-language>span{font-size:15px;font-weight:500}
.settings-organized .setting-language .site-language select{font-size:14px;min-height:44px;max-width:55%;padding-left:4px;color:var(--appearance-text,#20372f)}
.settings-organized .setting-language>small{flex-basis:100%;margin-left:36px;font-size:12px;line-height:1.5}
.app-workspace .settings-signout .setting-row{border:1px solid color-mix(in srgb,var(--appearance-text,#20372f) 9%,transparent);border-radius:16px;background:var(--appearance-surface,#fff)}

@media(max-width:760px){.app-workspace .settings-organized{columns:1}.settings-organized .settings-group{margin-bottom:18px}.app-workspace :is(.setting-row,.setting-identity){min-height:56px;padding:12px 16px}.settings-organized .setting-language{padding:10px 16px}.settings-organized .setting-identity{min-height:80px}}

/* Shared app visual system. Screen-only so exports retain their print styles.
   Neutral surfaces carry information; green marks selection and interaction. */
@media screen {
 :root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;
  --appearance-text:#1b1b1b;--appearance-muted:#62645f;
  --appearance-canvas:#f7f7f5;--appearance-surface:#fff;--appearance-soft:#efefec;
  --appearance-line:#ddddda;--appearance-accent:#07574a;--appearance-brand:#07574a;
  --app-action:#1b1b1b;--app-on-action:#fff;--green:#07574a;
  --dialog-surface:#fff;--dialog-chrome:#f7f7f5;--dialog-edge:#868983;
  --dialog-divider:#c7c8c4;--dialog-backdrop:#0008;
 }
 :root[data-theme=dark] {
  --appearance-text:#f5f5f5;--appearance-muted:#b5b5b5;
  --appearance-canvas:#000;--appearance-surface:#181818;--appearance-soft:#262626;
  --appearance-line:#3b3b3b;--appearance-accent:#81d4bf;--appearance-brand:#81d4bf;
  --app-action:#f1f1ef;--app-on-action:#171717;--green:#81d4bf;
  --dialog-surface:#1d1d1d;--dialog-chrome:#262626;--dialog-edge:#828280;
  --dialog-divider:#5e5e5c;--dialog-backdrop:#000a;
 }
 body {color:var(--appearance-text);background:var(--appearance-canvas)}
 button,.button {border-radius:16px;font-weight:600;transition:background-color .12s,color .12s;box-shadow:none}
 button:active:not(:disabled),.button:active {filter:brightness(.9)}
 button.primary,a.primary,.primary:hover {background:var(--app-action);border-color:var(--app-action);color:var(--app-on-action)}
 :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {border-radius:12px;border-color:var(--appearance-line);background-color:var(--appearance-surface);color:var(--appearance-text)}
 :is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--appearance-accent);outline-offset:3px}
 .app-workspace :is(.panel,.settings-list,.roster-view-day,.day,.employee-pool,.team-toolbar,.message-layout,.employee-availability),.login.panel {border-radius:20px;border-color:var(--appearance-line);background-color:var(--appearance-surface);box-shadow:none}
 .app-workspace :is(.roster-view-day,.day) {overflow:hidden}
 .app-workspace :is(.roster-view-day header,.day>header) {background:var(--appearance-soft)}
 .app-workspace .workspace-heading h1 {font-weight:700;letter-spacing:-.5px}
 .app-workspace .settings-group h2 {font-weight:600;color:var(--appearance-muted)}
 .app-workspace .settings-signout .setting-row {border-radius:20px;border-color:var(--appearance-line)}
 .app-workspace .account-role {border-radius:999px;background:var(--appearance-soft);color:var(--appearance-muted)}
 .settings-organized .account-name-line strong {font-size:20px;letter-spacing:-.3px}
 .settings-organized .account-avatar {background:var(--appearance-soft)}
 .app-header {background:var(--appearance-canvas);border-color:var(--appearance-line)}
 .app-header .app-navigation {align-items:center;gap:4px}
 .app-navigation .app-nav-item {border-radius:999px;min-height:44px;color:var(--appearance-muted);background:transparent}
 .app-navigation .app-nav-item.active {color:var(--appearance-accent);background:var(--appearance-soft)}
 .app-nav-item.active:after {display:none}
 .app-header .notification-button {width:44px;height:44px;align-self:center;border:1px solid var(--appearance-line);border-radius:50%;background:var(--appearance-soft);color:var(--appearance-text)}
 .notification-count {background:#07574a;color:#fff}
 .week-selector {border:0;background:transparent;gap:4px;padding:0}
 .week-selector .week-arrow {width:44px;min-width:44px;min-height:44px;border-radius:50%;background:var(--appearance-soft);color:var(--appearance-text)}
 .week-selector :is(.week-current,.week-menu>summary) {border:1px solid var(--appearance-line);border-radius:16px;background:var(--appearance-surface)}
 .center-tabs {padding:4px;border-radius:18px;background:var(--appearance-soft)}
 .center-tabs button {border:0;background:transparent;color:var(--appearance-muted)}
 .app-workspace .center-tabs button.primary,.login .center-tabs button.primary {background:var(--appearance-surface);color:var(--appearance-text)}
 dialog {border-radius:24px;border:1px solid var(--dialog-edge);background:var(--dialog-surface);color:var(--appearance-text);box-shadow:0 24px 64px #0004}
 dialog::backdrop {background:var(--dialog-backdrop);backdrop-filter:none}
 dialog:is(#dialog,#discard,.feedback-dialog,.support-dialog,.trial-dialog) {border-color:var(--dialog-edge)}
 dialog:is(#discard,.feedback-dialog,.support-dialog) {background:var(--dialog-surface)}
 dialog:not(.lk-chat-panel) :is(input:not([type=hidden],[type=checkbox],[type=radio]),select,textarea) {
  border-color:var(--dialog-edge);background-color:var(--appearance-canvas)
 }
 dialog input::placeholder,dialog textarea::placeholder {color:var(--appearance-muted);opacity:1}
 dialog :is(button,a.button):not(.primary,.danger,.dialog-close,.quiet) {border-color:var(--dialog-edge)}
 dialog .dialoghead h2 {font-weight:700;letter-spacing:-.35px}
 body:has(.app-workspace) #dialog .dialoghead>.dialog-close,
 dialog .dialoghead>.dialog-close {
  display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;border:1px solid var(--dialog-edge);border-radius:50%;background:var(--dialog-chrome);color:var(--appearance-text);
  font-size:23px;font-weight:500;line-height:1
 }
 dialog :is(.formfooter,.dialog-actions) {background:var(--dialog-surface);border-color:var(--dialog-divider)}
 .feedback-dialog:not(.notification-settings) {
  --feedback-inset:clamp(14px,4vw,24px);
  padding:var(--feedback-inset);
  scroll-padding-block:80px 76px;
 }
 .feedback-dialog:not(.notification-settings) .dialoghead {
  position:sticky;top:calc(-1 * var(--feedback-inset));z-index:2;
  padding-block:6px 10px;background:var(--dialog-surface);border-bottom:1px solid var(--dialog-divider)
 }
 .feedback-dialog:not(.notification-settings) .dialog-actions {
  position:sticky;bottom:calc(-1 * var(--feedback-inset));z-index:1;
  justify-content:flex-end;padding-block:10px 2px;border-top:1px solid var(--dialog-divider)
 }
 body:has(.app-workspace) #dialog .group-choices input[type=checkbox] {width:22px;min-width:22px;flex:none}
 body:has(.app-workspace) #dialog .group-choices label.check {flex:0 1 auto;max-width:100%;min-width:0}
 .message-bubble {border:1px solid var(--appearance-line);border-radius:20px;background:var(--appearance-surface);color:var(--appearance-text);padding:12px 16px}
 .message-bubble.outgoing {background:var(--appearance-soft)}
 .message-bubble small {color:var(--appearance-muted);font-size:11px}
 .message-heading,.message-composer {background:var(--appearance-surface)}
 .message-composer textarea {border-radius:16px;background:var(--appearance-canvas)}
 .message-contact {border-radius:16px}
 .message-contact.active {background:var(--appearance-soft)}
 .login {border:1px solid var(--appearance-line);border-radius:24px;background:var(--appearance-surface)}
 .login :is(input,select) {background:var(--appearance-canvas)}
}
@media screen and (prefers-contrast:more) {
 :root {--dialog-edge:#555851;--dialog-divider:#737670}
 :root[data-theme=dark] {--dialog-edge:#acacaa;--dialog-divider:#929290}
}
@media screen and (max-width:760px) {
 .app-header .app-navigation {border-color:var(--appearance-line);background:var(--appearance-canvas);padding:5px 8px}
 .app-navigation .app-nav-item {border-radius:18px;min-height:52px}
 .app-workspace .message-composer {padding:10px}
}
@media (prefers-reduced-motion:reduce) {button,.button {transition:none}}

/* Working notifications use the same compact form on phones and desktop. */
.notification-settings fieldset{border:0;border-bottom:1px solid var(--line,#555);padding:12px 0;margin:0 0 12px;min-width:0}
.notification-settings legend{font-weight:650;padding:0;font-size:1rem}
.notification-settings .feedback-toggle{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0}
.notification-settings .feedback-toggle input{flex:0 0 auto;width:22px;height:22px}
.notification-settings .feedback-toggle span{min-width:0;overflow-wrap:anywhere}
.notification-settings .notification-product{min-height:44px;margin-bottom:12px}
.notification-settings .dialog-actions{display:flex;justify-content:flex-end;gap:10px}
.notification-settings .dialog-actions>button{flex:0 0 auto}
.notification-settings .dialog-close{width:44px;min-width:44px;height:44px;padding:0;font-size:26px}

.notification-settings{overflow:hidden;max-height:calc(100dvh - 20px)}
.notification-settings form{display:flex;flex-direction:column;gap:0;margin:0;max-height:calc(100dvh - 84px);min-height:0}
.notification-settings .dialoghead{position:static;flex:0 0 auto}
.notification-settings .notification-content{overflow:auto;min-height:0;overscroll-behavior:contain}
.notification-settings [role=status]{flex:0 0 auto;margin:8px 0;overflow-wrap:anywhere}
.notification-settings [role=status]:empty{display:none}
.notification-settings .dialog-actions{position:static;flex:0 0 auto;margin:0;padding:12px 0 0}

@media(min-width:760px){
 .notification-settings{width:min(860px,calc(100vw - 32px))}
 .notification-settings .notification-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}
 .notification-settings .notification-content>p,.notification-settings .notification-content>label,.notification-settings .notification-device,.notification-settings .notification-product{grid-column:1/-1}
 .notification-settings .notification-content>fieldset{align-self:start}
}

/* Use the same readable select surface in WebKit and Chromium. Native
   macOS select chrome can otherwise draw as a tiny control inside a tall row. */
.app-workspace select:not([multiple]),dialog select:not([multiple]){appearance:none;-webkit-appearance:none;min-height:44px;padding-inline-end:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23858b87' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px 14px}

/* Date actions retain the seven-column layout and a readable touch target. */
.staffing-date{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:44px;max-width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:start;font:inherit;box-shadow:none}
.staffing-date span,.staffing-date time{white-space:nowrap}
#staffing-form .workflow-content{display:grid;gap:14px;min-width:0}
#staffing-form label,#staffing-form select,#staffing-form input{min-width:0;max-width:100%}
#staffing-form .formfooter{justify-content:flex-end}
.staffing-draft-status{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--appearance-border);overflow-wrap:anywhere}
.staffing-draft-status small{color:var(--appearance-muted);text-align:end}
.staffing-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}
#staffing-form .staffing-choice{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
#staffing-form .staffing-choice:has(input:checked){background:color-mix(in srgb,var(--green) 12%,transparent);border-color:var(--green)}
#staffing-form .staffing-choice input{width:22px;height:22px;margin:0}
#staffing-form .staffing-choice span{overflow-wrap:anywhere}
#staffing-form .workflow-content{gap:12px;align-content:start}
#staffing-form .workflow-content>p{margin-bottom:0}
#staffing-form .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

.roster-workspace .day .schedule-shift-readonly{padding:5px 8px;min-width:0}
.schedule-shift-readonly>small{display:block}

#staffing-form .draft-day [hidden]{display:none}
#staffing-form .draft-day-summary .row{gap:6px 12px;justify-content:space-between}
.draft-day-summary p{margin:4px 0 0}
#staffing-form [data-draft-search]{margin-bottom:8px}
@media(min-width:620px) and (max-height:500px){
 #staffing-form [data-draft-tools]{flex-wrap:nowrap}
 #staffing-form [data-draft-tools] button{min-width:0;padding:6px 10px;white-space:normal;line-height:1.2}
}
.draft-day h3{margin:14px 0 6px}
.draft-day-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(5rem,auto);align-items:center;gap:4px 12px;min-height:50px;border-bottom:1px solid var(--line);padding:4px 0}
.draft-day .draft-day-person{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;min-height:44px;cursor:pointer}
.draft-day-person input{width:22px;height:22px;flex:none;margin:0}
.draft-day-person small{display:block}
.draft-day-person small:empty{display:none}
.draft-day-row select{min-width:0;width:100%}
.draft-day-error{grid-column:1/-1;color:var(--danger);padding-left:32px}
.draft-day-batch{border:1px solid var(--line);padding:10px;border-radius:12px}
.draft-day-batch p{margin:0 0 8px}
.draft-day-batch label{margin-bottom:8px}
@media(max-width:480px), (max-height:680px){
 .draft-day-batch [data-draft-batch-instruction]{display:none}
}
.draft-day details{margin-top:14px}

/* Week navigation for the employee directory and personal availability. */
.app-workspace .standalone-week{width:min(100%,286px);min-width:0;padding:0;gap:0;border:1px solid var(--line);border-radius:14px;background:var(--appearance-surface,#fff)}
.app-workspace .standalone-week .week-arrow{width:44px;min-width:44px;min-height:44px;border-radius:10px;background:transparent}
.app-workspace .standalone-week .week-arrow:hover:not(:disabled){background:var(--appearance-soft,#edf3ec)}
.standalone-week .week-menu,.standalone-week .week-current{flex:1;min-width:0}
.app-workspace .standalone-week :is(.week-menu>summary,.week-current){min-width:0;min-height:44px;padding:4px 6px;gap:6px;border:0;border-inline:1px solid var(--line);border-radius:0;font-size:.875rem;white-space:normal;text-align:center}
.standalone-week-dates{line-height:1.25}
.standalone-week-dates time{white-space:nowrap}
.app-workspace .standalone-week.spans-years{width:min(100%,328px)}
.standalone-week.spans-years :is(.week-menu>summary,.week-current)>.app-icon{display:none}

/* Start a new line between controls when their labels need more room. */
.app-workspace.schedule-workspace .workspace-heading,
.app-workspace:is([data-page="notifications"],[data-page="messages"]) .workspace-heading{flex-wrap:wrap}
.app-workspace:is(.schedule-workspace,[data-page="notifications"],[data-page="messages"]) .page-title{flex:0 0 auto;max-width:100%}
.app-workspace .page-actions>button,.app-workspace .availability-actions>button,
body:has(.app-workspace) #dialog .availability-actions>button{flex:none;width:max-content;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.period-selector .period-range{min-width:0;text-align:center}
.period-range time{white-space:nowrap}
.app-workspace .availability-actions,body:has(.app-workspace) #dialog .availability-actions{flex-wrap:wrap}
@media(max-width:760px){
 .app-workspace .period-controls{flex-wrap:wrap}
 .app-header .app-navigation:has([data-arg="availability"]){grid-template-columns:repeat(3,minmax(0,auto))}
 .app-workspace .period-mode-select{max-width:100%}
 .app-workspace .period-selector{flex:1 1 max-content;min-width:0;max-width:100%}
 .period-selector:not(.spans-years) .period-range:has(time){display:inline-flex;align-items:baseline;gap:.2em;white-space:nowrap;min-width:max-content}
 .app-workspace .period-selector .week-menu{flex:1;min-width:0}
 .app-workspace .period-selector .week-menu>summary{min-width:0}
 .period-selector .week-caret{display:none}
 .app-workspace .period-selector .week-arrow{min-width:44px}
 .app-workspace:is([data-page="notifications"],[data-page="messages"]) .workspace-heading .workspace-actions{width:auto;margin-left:0}
 .app-workspace:is([data-page="notifications"],[data-page="messages"]) .workspace-heading .page-actions{justify-content:flex-start;margin-left:0}
 .app-workspace[data-page="notifications"] .center-chat-action{display:none}
}

@media(max-width:380px){
 .app-workspace .settings-organized .setting-row{padding-inline:12px;gap:8px}
}

/* Use the same palette in the weekly board and date picker. The labels stay
   visible and carry the information independently of the color. */
:root {
 --shift-blue:#164f95;--shift-teal:#006353;--shift-violet:#653995;
 --shift-ochre:#784600;--shift-pink:#8c2b5c;--shift-slate:#3d5261;
}
:root[data-theme=dark] {
 --shift-blue:#a5c7ff;--shift-teal:#8de0cb;--shift-violet:#d3b8ff;
 --shift-ochre:#ffd28f;--shift-pink:#ffb5d7;--shift-slate:#bcd2e1;
}
.shift-tone {--shift-color:var(--shift-blue);color:var(--shift-color)}
.shift-tone[data-shift-tone="1"] {--shift-color:var(--shift-teal)}
.shift-tone[data-shift-tone="2"] {--shift-color:var(--shift-violet)}
.shift-tone[data-shift-tone="3"] {--shift-color:var(--shift-ochre)}
.shift-tone[data-shift-tone="4"] {--shift-color:var(--shift-pink)}
.shift-tone[data-shift-tone="5"] {--shift-color:var(--shift-slate)}
.app-workspace .shift-slot .slot-heading {border-inline-start:3px solid var(--shift-color);padding-inline-start:8px}
.app-workspace .shift-slot .slot-heading button {color:var(--shift-color);font-size:1.0625rem;font-weight:700}
.app-workspace .day h3,.app-workspace .employee-name {font-size:1.0625rem}
.app-workspace .staff-sidebar .roster-person strong,.app-workspace .schedule-shift strong,
.app-workspace .list-item>strong,.app-workspace .setting-identity strong {font-size:1rem}
.app-workspace .staff-sidebar .roster-person small {font-size:.875rem}
.app-workspace .calendar-day .calendar-number {font-size:1.125rem;font-weight:700;font-variant-numeric:tabular-nums}
.app-workspace .calendar-day .calendar-count,.app-workspace .calendar-names {font-size:.875rem}
.app-workspace .calendar-day .calendar-status {font-size:.75rem}
.calendar-day {container-type:inline-size;cursor:pointer;min-height:96px;padding:10px;gap:6px}
.calendar-heading,.weekly-day-heading {display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.calendar-heading {position:relative;min-height:30px;padding-block-end:5px;border-block-end:1px solid var(--line)}
.calendar-day-label {display:inline-flex;align-items:center;gap:2px}
.calendar-day .calendar-date,.calendar-day button.calendar-count {
 min-height:28px;padding:0;border:0;border-radius:3px;background:none;line-height:1.25;text-align:start
}
.calendar-day .calendar-date {color:inherit}
.calendar-day button.calendar-count {color:var(--muted)}
.calendar-day button.calendar-count:hover {text-decoration:underline}
.calendar-count-short {display:none}
.calendar-count-short>[aria-hidden=true] {display:inline-flex;align-items:center;gap:2px}
.calendar-count-short svg {width:12px;height:12px}
.app-workspace .calendar-heading>.calendar-add {margin-inline-start:auto;min-width:24px;color:var(--green);font-size:1rem;font-weight:700;text-align:center}
.calendar-day .calendar-names {
 display:grid;grid-template-columns:minmax(0,1fr);gap:3px;list-style:none;margin:0;padding:0
}
.calendar-person {
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:6px;
 position:relative;min-height:28px;padding:2px 2px 2px 7px;border-radius:6px;line-height:1.35
}
.calendar-person:nth-child(odd) {background:color-mix(in srgb,var(--appearance-text) 5%,transparent)}
.calendar-person-details {display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;min-width:0}
.calendar-person-name {overflow-wrap:anywhere;font-weight:550}
.calendar-person-time {color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.calendar-person button.calendar-person-name {
 display:block;min-width:0;min-height:28px;padding:0;border:0;border-radius:4px;background:none;color:inherit;
 text-align:start;font:inherit;font-weight:550;white-space:normal
}
.calendar-person button.calendar-person-name:is(:hover,:focus-visible) {text-decoration:underline}
.calendar-person:is(.drop-before,.drop-after)::after {
 content:"";position:absolute;inset-inline:4px;height:2px;border-radius:2px;background:var(--green);pointer-events:none
}
.calendar-person.drop-before::after {top:-2px}
.calendar-person.drop-after::after {bottom:-2px}
.calendar-person[draggable] {padding-inline-start:18px}
.calendar-order-handle {
 position:absolute;inset-block:0;inset-inline-start:0;width:18px;display:grid;place-items:center;
 touch-action:none;user-select:none;cursor:grab
}
.calendar-order-handle::before {
 content:"";width:6px;height:10px;
 background:radial-gradient(circle,currentColor 1px,transparent 1.2px) 0 0/3px 3px;color:var(--muted);pointer-events:none
}
.calendar-person .shift-row-remove {
 display:grid;place-items:center;width:28px;min-height:28px;
 padding:0;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:1rem;line-height:1
}
.calendar-person .shift-row-remove:is(:hover,:focus-visible) {
 background:var(--appearance-danger-surface);color:var(--appearance-danger-text,#a13b30)
}
.calendar-day .calendar-status {padding-block-start:6px}
@media screen {
 .period-calendar {overflow-x:auto;overscroll-behavior-inline:contain;background:var(--appearance-canvas)}
 .calendar-weekdays,.calendar-dates {min-inline-size:73.5rem;column-gap:6px;padding-inline:6px}
 .calendar-dates {row-gap:8px;padding-block:8px}
 .calendar-dates .calendar-day {border:1px solid var(--line);border-radius:8px}
}
@media (pointer:coarse) {
 .calendar-person {column-gap:4px}
 .calendar-person :is(.shift-row-remove,button.calendar-person-name),.calendar-day .calendar-date,.calendar-day button.calendar-count {min-height:44px}
 .calendar-person[draggable] {padding-inline-start:26px}
 .calendar-order-handle {width:26px}
 .calendar-person .shift-row-remove {min-width:44px}
 .app-workspace .calendar-heading>.calendar-add {min-width:36px}
}
@media screen and (pointer:coarse) and (max-width:700px) {
 .period-calendar-editing :is(.calendar-weekdays,.calendar-dates) {min-inline-size:84rem}
}
.app-workspace .roster-workspace .day,.roster-view-day {container-type:inline-size}
.app-workspace .day-select .weekly-day-heading {width:100%;flex-wrap:wrap}
.app-workspace .weekly-day-heading .calendar-count {margin-inline-start:auto}
.app-workspace .roster-view-week .roster-view-day>header {min-height:0;padding:8px}
.pending-roster-drop {margin:4px 0;font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.period-calendar .drag-over {background:var(--appearance-soft);outline:2px solid var(--green);outline-offset:-3px}
.staff-sidebar.range-staff {display:block;margin-bottom:12px}
.range-staff .staff-toolbar {padding-bottom:4px}
.range-staff .roster-person {display:flex;justify-content:flex-start}
.range-staff .roster-person strong {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.range-staff .roster-person[aria-pressed=true] {box-shadow:inset 0 0 0 2px var(--green)}
.range-assignment-list {margin-block:8px;gap:6px}
.range-assignment-list button {width:100%;min-height:44px;text-align:start;font-size:1rem}
.range-assignment-list [hidden] {display:none}
.range-assignment-list [data-act=period-person] {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}
.range-assignment-list [data-act=period-person].range-person-blocked small {color:var(--muted)}
.range-assignment-list [data-act=period-person] small {font-size:.8125rem}
.range-employee-tools {display:flex;align-items:end;flex-wrap:wrap;gap:8px}
.range-employee-tools label:first-child {flex:1 1 160px}
.range-employee-tools select,.range-employee-tools input {min-height:44px}
.range-assignment-list .staff-grid {display:grid;grid-template-columns:1fr}
.draft-day .staff-grid {display:block}
.range-assignment-list {max-height:min(48vh,450px);overflow:auto;overscroll-behavior:contain}
.range-shift-choice :is(button,.range-slot-blocked) {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.range-slot-blocked {min-height:44px;padding:6px 10px;color:var(--appearance-muted,var(--muted));background:var(--appearance-soft);border-radius:8px}
.range-shift-choice small {display:block;margin:3px 8px;color:var(--appearance-muted,var(--muted))}
.range-assignment-person {margin:0 0 8px;font-weight:650}
.range-assignment-help {margin:0 0 10px}
@container (max-width:186px) {
 .calendar-heading {gap:5px}
 .calendar-heading .calendar-count-text {display:none}
 .calendar-heading .calendar-count-short {display:inline-flex}
}
@container (max-width:132px) {
 .calendar-count .calendar-count-text {display:none}
 .calendar-count .calendar-count-short {display:inline-flex}
 @media (min-width:761px) and (pointer:fine) {
  .roster-workspace .day .schedule-shift>button[data-act=shift]{padding-inline:3px}
  .roster-workspace .day .schedule-shift>.shift-row-remove,
  .roster-workspace .schedule-shift>.shift-menu>summary{width:24px;min-width:24px}
 }
}
@media screen and (max-width:760px) {
 .staff-sidebar.range-staff {display:none}
}
@media print {
 .staff-sidebar.range-staff,.calendar-add,.calendar-order-handle,.calendar-person .shift-row-remove {display:none!important}
 .calendar-person[draggable] {padding-inline-start:7px}
 .shift-tone {color:inherit}
}

.range-staff-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.range-staff-actions .sidebar-tip{margin-block:6px}
@media screen and (max-width:760px) {
 .staff-sidebar.range-staff[data-batch-enabled]{display:block}
 .staff-sidebar .staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-sidebar .staff-toolbar :is(input,select),.staff-group>summary{min-height:44px}
 .range-staff[data-batch-enabled] .roster-list{max-height:124px}
 .range-staff-actions #roster-batch-open{min-height:44px}
}
#roster-batch-open[hidden],.batch-time[hidden]{display:none}
.batch-dates{min-inline-size:0;margin:0}
.batch-presets{gap:6px}
.batch-presets select{width:auto;max-width:100%}
.batch-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(6px,1vw,10px);text-align:center;margin-top:12px}
.batch-date-grid>strong{font-size:.75rem;overflow-wrap:anywhere;color:var(--muted);align-self:center}
#dialog .batch-date{position:relative;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;min-height:44px;margin:0;cursor:pointer}
.batch-date input{position:absolute;inset:0;min-height:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.batch-date span{width:100%;min-height:44px;display:grid;place-items:center;border:2px solid var(--line);border-radius:8px;font-size:.875rem;font-variant-numeric:tabular-nums}
.batch-date-outside span{color:var(--muted);border-style:dashed;overflow-wrap:anywhere}
.batch-date input:disabled+span{opacity:.45}
.batch-date[data-assigned]:not([data-assigned=""]) span,.batch-date-legend span{border-color:var(--appearance-accent)}
.batch-date[data-assigned="same"] input+span{opacity:1}
.batch-date input:checked:not(:disabled)+span{outline:2px solid currentColor;outline-offset:1px;font-weight:700}
.batch-date input:focus-visible+span{box-shadow:inset 0 0 0 2px currentColor}
.batch-date-legend:not([hidden]){display:flex;align-items:center;gap:8px;margin-top:10px}
.batch-date-legend span{inline-size:.9rem;block-size:.9rem;border-width:2px;border-style:solid;border-radius:3px}
@media(max-width:400px){
 .batch-dates{padding-inline:6px}
 .batch-date-outside span{font-size:.75rem}
}
.batch-review ul{list-style:none;padding:0;margin:6px 0;max-height:15rem;overflow:auto}
.batch-review li{display:flex;gap:8px;padding:5px 0;border-bottom:1px solid var(--line)}
.batch-review time{min-width:3.5em}
.batch-summary{font-weight:700}


.team-views{gap:6px;margin:12px 0 10px}
.app-workspace .team-views button{min-height:44px;padding:8px 14px;font-weight:650}
.team-views button[aria-pressed=true],.team-status button[aria-pressed=true]{border-color:var(--appearance-accent);color:var(--appearance-accent);background:var(--appearance-soft)}
.team-directory-toolbar{align-items:center;gap:8px;flex-wrap:wrap}
.app-workspace .team-directory-toolbar .team-search{flex:1 1 185px;width:auto;max-width:320px;margin:0}
.team-directory-toolbar .staff-group-control{flex:0 1 156px;min-width:100px}
.team-directory-toolbar .staff-group-control select{width:100%}
.team-list-filters>summary,.team-more>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;cursor:pointer;color:var(--appearance-text);border:1px solid var(--appearance-line);border-radius:12px;list-style:none}
.team-list-filters>summary::-webkit-details-marker,.team-more>summary::-webkit-details-marker{display:none}
.team-list-filters,.team-more{position:relative}
.team-list-filters[open]>div,.team-more[open]>div{position:absolute;z-index:5;top:calc(100% + 4px);right:0;display:grid;gap:6px;padding:8px;min-width:145px;max-width:min(280px,82vw);background:var(--appearance-surface);border:1px solid var(--appearance-line);border-radius:12px;box-shadow:0 5px 16px #0002}
.team-list-filters select{width:100%}
.team-more>div button{white-space:normal;min-height:44px}
.team-directory .staff-grid{display:block;margin:0;padding:0;border:1px solid var(--appearance-line);border-radius:14px;background:var(--appearance-surface)}
.team-directory .staff-group{margin:0 0 10px}
.team-directory .staff-group>summary{display:flex;min-height:44px;align-items:center;gap:8px;cursor:pointer;padding:6px 12px}
.team-person{display:flex;gap:8px;align-items:center;padding:0 10px 0 0}
.team-person+.team-person{border-top:1px solid var(--appearance-line)}
.app-workspace .team-person-profile{min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 16px;align-items:center;gap:8px 18px;min-height:46px;width:100%;padding:8px 12px;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--appearance-text)}
.team-person-profile:enabled:hover{background:var(--appearance-soft)}
.team-person-profile:disabled{opacity:1}
.team-person-profile:disabled>svg{visibility:hidden}
.team-person-profile>strong,.team-person-work,.team-person-state{min-width:0;overflow-wrap:anywhere}
.team-person-profile>strong{font-size:1rem;line-height:1.32;font-weight:650}
.team-person-work,.team-person-state{font-size:.875rem;color:var(--appearance-muted)}
.team-person-state{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px}
.team-person-state .tag{font-size:.76rem;padding:2px 6px;line-height:1.35;white-space:normal}
.team-person-profile>svg{width:16px;height:16px;color:var(--appearance-muted)}
.team-week-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.team-week-toolbar .team-scope{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.team-week-toolbar .team-scope select{min-height:44px}
.team-week-hint{font-size:.875rem;margin:4px 0 10px}
.team-week .availability-grid{min-height:0;max-height:clamp(220px,58dvh,720px);overflow:auto}
.team-week .team-week-table .availability-cell{width:100%;max-width:92px;min-height:44px}
.team-week .team-week-table .availability-cell span{font-size:.76rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.team-week .team-week-table .employee-name{min-height:44px;line-height:1.32;overflow-wrap:anywhere}
.team-leave{color:var(--appearance-warning-text);font-size:.8rem}
.team-week-summary,.team-week-table [data-availability-status],.team-week-table [data-availability-conflict]{overflow-wrap:anywhere}
.team-week-table [data-availability-status]:empty{display:none}
.team-week-read{display:grid;gap:4px;padding:0;margin:0;list-style:none}
.team-week-read li{display:flex;justify-content:space-between;gap:8px;padding:8px;border-bottom:1px solid var(--appearance-line)}
@media (min-width:901px){
 .team-week .team-week-table{display:table;min-width:870px}
 .team-week .team-week-table thead{display:table-header-group;position:static}
 .team-week .team-week-table tbody{display:table-row-group}
 .team-week .team-week-table tr{display:table-row}
 .team-week .team-week-table :is(th,td){display:table-cell;padding:4px 6px}
 .team-week .team-week-table thead th{position:sticky;top:0;z-index:2;background:var(--appearance-canvas)}
 .team-week .team-week-table th:first-child{position:sticky;left:0;min-width:155px;z-index:1;background:var(--appearance-surface);text-align:left}
 .team-week .team-week-table thead th:first-child{z-index:3;background:var(--appearance-canvas)}
 .team-week .team-week-table .availability-cell{max-width:92px;height:44px}
 .team-week .weekly-actions{display:flex;flex-flow:row wrap;min-width:122px}
 .team-week .weekly-actions button{min-height:44px;font-size:.79rem}
}
@media (max-width:900px){
 .team-week .availability-grid{max-height:none;overflow:visible;outline-offset:2px}
 .team-week .team-week-table,.team-week .team-week-table tbody,.team-week .team-week-table tr,.team-week .team-week-table tbody th{display:block;min-width:0;width:100%}
 .team-week .team-week-table thead,.team-week .team-week-table td{display:none}
 .team-week .team-week-table td.empty{display:block;padding:12px}
 .team-week .team-week-table tbody th{position:static;padding:3px 8px 8px;border-bottom:1px solid var(--appearance-line)}
 .team-week .team-week-table .employee-name{width:100%;padding:6px 2px;text-align:left}
 .team-week .team-week-table small{font-size:.86rem;line-height:1.4}
 .team-week .team-week-table :is(.team-week-summary,[data-availability-status],[data-availability-conflict]){margin-left:2px}
}
@media (max-width:620px){
 .team-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-workspace .team-views button{padding-inline:5px;white-space:normal}
 .team-directory-toolbar .staff-group-control{flex:1 1 106px}
 .app-workspace .team-person-profile{grid-template-columns:minmax(0,1fr) auto 14px;gap:2px 8px;min-height:52px}
 .team-person-profile>strong{grid-column:1;grid-row:1}
 .team-person-work{grid-column:1;grid-row:2}
 .team-person-work:empty{display:none}
 .team-person-state{grid-column:2;grid-row:1 / span 2;max-width:110px;justify-content:flex-end;text-align:right}
 .team-person-profile>svg{grid-column:3;grid-row:1 / span 2}
 .team-more>summary{padding-inline:8px}
 .team-week-toolbar .team-scope{flex:1 1 220px}
 .team-week-toolbar .team-scope select{flex:1;min-width:0;max-width:100%;font-size:16px}
}

.subscription-notice.subscription-expired{border-inline-start:4px solid #b77716}
.subscription-expired strong{display:block;font-size:1rem;margin-block-end:.25rem}
.expiry-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.6rem;margin-block-start:1rem}

.owner-billing-form{display:grid;gap:.9rem;margin-top:1rem}
.owner-billing-form>label{display:grid;gap:.35rem}
.owner-billing-form h3,.owner-billing-form p,.owner-plan-picker{margin:0}
.owner-billing-form [hidden]{display:none}
.owner-plan-picker{min-width:0;padding:0;border:0}
.owner-plan-picker legend{margin-bottom:.4rem}
.owner-plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.owner-plan-options .owner-plan{position:relative;display:grid;align-content:start;gap:.4rem;padding:.8rem;border:2px solid var(--appearance-line,#777);border-radius:.75rem;cursor:pointer}
.owner-plan input{position:absolute;width:1px;height:1px;opacity:0}
.owner-plan:has(input:checked){border-color:var(--green,currentColor);background:var(--appearance-panel-alt,transparent)}
.owner-plan:focus-within{outline:2px solid currentColor;outline-offset:2px}
.owner-plan:has(input:disabled){cursor:default}
.owner-plan-title{font-weight:700}
.owner-plan .trial-price{margin:0;overflow-wrap:anywhere}
.owner-plan .trial-price small{display:block}
.owner-plan-picker+p{margin-top:.5rem}
.owner-billing-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
@media (max-width:480px){.owner-plan-options{grid-template-columns:1fr}}
