/* Responsive workspace components. */
:root{color-scheme:dark;--workspace-width:1320px;--safe-top:env(safe-area-inset-top,0px)}
html{scrollbar-gutter:stable;scrollbar-color:#496b5f #071f18}
body{overflow-x:clip}body.modal-open{overflow:hidden}
*{scrollbar-width:thin;scrollbar-color:#496b5f transparent}
:where(input,select,textarea){font-size:16px;min-height:46px}
:where(button,a,input,select,textarea){touch-action:manipulation}
label{font-size:13px;line-height:1.5;letter-spacing:0}p{line-height:1.6}
.field-help,.section-intro,.schedule-help{font-size:12px;line-height:1.6}
.section-intro{margin:0 0 22px;color:var(--muted)}.form-message:empty{display:none}
.app-title .eyebrow:empty{display:none}.app-header{margin-bottom:24px}.app-title h1{font-size:32px}.app-title .app-header-mark{display:none}
.section-heading h2{font-size:21px}.two-column,.profile-support-grid{gap:24px}.section-card{padding:24px;margin-bottom:24px}
.form-grid,.preferences-grid{gap:22px}.form-grid .button{justify-self:start;width:auto;min-width:160px}
.history-filters .small-select{max-width:200px}.small-select{min-height:44px;font-size:13px}
.shift-history-card>.section-heading h2{font-size:18px;color:var(--muted)}
.home-dashboard{max-width:var(--workspace-width);margin-inline:auto}.home-stat-grid{gap:20px}
.home-shift-row p,.home-shift-row h3{line-height:1.6}.home-shift-row>span:nth-child(2){min-width:0}
.home-recent .section-heading{margin-bottom:10px}.home-recent .home-shift-list{max-height:none;overflow:visible}.payday-countdown::before{content:none}
.shift-entry-card{max-width:100%;margin:0}.shift-entry-topbar{grid-template-columns:44px 1fr;text-align:left;margin-bottom:24px}
.shift-entry-topbar>img{display:none}.shift-entry-topbar h2{font-size:32px;text-align:left}
.shift-form-section{min-width:0;padding:24px;margin:0 0 20px}.shift-form-section>.eyebrow{display:block;margin-bottom:18px}.shift-date-field{margin-bottom:18px}
.shift-type-picker{display:flex;align-items:flex-end;gap:12px;margin:18px 0}.shift-type-picker>label{flex:1;min-width:0}.shift-type-picker>.text-button{min-height:46px;flex-shrink:0}
.inline-type-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:16px;margin-bottom:20px;background:#061a14;border:1px solid var(--line);border-radius:14px}.inline-type-form>label{flex:1;min-width:160px}.inline-type-form>.form-message{flex-basis:100%}
.time-grid{gap:18px}.time-value{display:flex;gap:8px}.time-value>input{flex:1;min-width:0}.time-value>select{flex:0 0 76px;width:76px}
.break-control{margin:22px 0}.break-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(72px,1.3fr);gap:6px;margin-top:10px}
.break-options button{min-height:44px;padding:8px 4px;border:1px solid #426558;border-radius:10px;background:#061a14;color:var(--text);font-size:14px}.break-options button[aria-pressed=true]{background:#214d3c;border-color:var(--gold);color:var(--gold-light)}.break-options input{margin:0;padding:8px;text-align:center}
.hours-adjustment{border-top:1px solid var(--line);padding-top:14px}.hours-adjustment summary{cursor:pointer;color:var(--gold-light);font-size:13px;min-height:44px;padding:12px 0}.hours-adjustment label{max-width:220px}.hours-adjustment .text-button{margin-top:12px;min-height:44px}
.duration-pill{display:block;margin-top:18px;padding:14px;border-radius:12px;font-size:14px;line-height:1.6;text-align:left}
.you-keep-card{min-width:0;display:flex;justify-content:space-between;gap:20px;margin-bottom:20px;padding:24px}.you-keep-card>div{min-width:0}.you-keep-card>div+div{border:0;text-align:right}.shift-notes{padding:18px 24px;margin-bottom:20px}.shift-notes summary{min-height:32px}.save-shift-button{max-width:100%;margin:0}
.profile-hero{padding:26px;gap:20px;margin-bottom:24px}.profile-hero .profile-avatar{width:72px;height:72px;flex:0 0 72px}.profile-identity{min-width:0}.profile-identity h2{font-size:28px}.profile-identity p{overflow-wrap:anywhere}.profile-stats{gap:24px}
.profile-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:stretch;margin-bottom:24px}.profile-layout>.section-card{height:100%;margin:0}
.avatar-upload-row{display:flex;align-items:center;gap:20px}.avatar-upload-row>div:last-child{min-width:0}.avatar-upload-row p{font-size:13px;margin:0 0 14px}.avatar-preview{width:80px;height:80px;flex:0 0 80px}
.profile-support-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);align-items:start}.account-actions{display:block}.account-actions>.section-heading{margin:0 0 20px}
.device-sessions{display:grid;gap:12px}.device-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#061a14}.device-row>div{min-width:0}.device-row strong{display:block;font-size:14px;overflow-wrap:anywhere}.device-row small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}.device-row button{flex:0 0 auto;min-height:44px}.current-device{display:inline-block!important;margin:7px 0 0!important;padding:3px 8px;border-radius:7px;background:#214d3c;color:#b6ebcb!important}
.session-actions{display:flex!important;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);gap:16px}.session-actions .text-button{min-height:44px;width:auto}
.support-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:start}.request-list{display:grid;gap:14px}.request-card{padding:16px;border:1px solid var(--line);border-radius:12px}.request-card h3{font-size:15px;margin:0 0 7px;overflow-wrap:anywhere}.request-card p{font-size:12px;color:var(--muted);margin:0}.request-card details{font-size:13px;margin-top:10px;overflow-wrap:anywhere;white-space:pre-wrap}.request-card summary{cursor:pointer;color:var(--gold-light);min-height:32px}
.modal-backdrop,.more-menu-backdrop{height:100dvh;overflow:hidden;padding:24px;overscroll-behavior:none}.modal-backdrop>.surface{max-height:calc(100dvh - 48px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable}.more-drawer{background:#0b2820;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:24px}.more-drawer-header{position:sticky;top:-24px;z-index:2;padding-block:18px;margin-top:-18px;background:#0b2820}.more-drawer-header .eyebrow{display:none}.more-menu-item small{font-size:12px;line-height:1.5}.more-menu-item strong{font-size:15px}.more-menu-item{min-width:0}.row-overflow button{top:auto;bottom:42px}
.split-intro{padding:24px;text-align:left;margin-bottom:24px}.split-intro h2{font-size:24px;margin:0 0 12px}.split-intro p{max-width:640px;font-size:14px;margin:0}#page-split .split-intro h2{display:none}#page-split .split-intro{box-shadow:none;border:0;background:none;padding:0}.pool-calculator{max-width:100%;margin:0}.guest-shell{max-width:1180px}
@media(min-width:1024px){
 .app-frame{grid-template-columns:230px minmax(0,1fr);max-width:none}.sidebar{width:230px;padding:32px 20px;position:sticky;top:0;height:100dvh}.app-main{max-width:calc(var(--workspace-width) + 96px);width:100%;padding:calc(38px + var(--safe-top)) 48px 70px;margin-inline:auto;min-width:0}
 .home-dashboard.active{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px}.home-dashboard>header,.home-dashboard>.home-insight,.home-dashboard>.first-use-card,.home-dashboard>.period-empty-card{grid-column:1/-1}.home-dashboard>section,.home-dashboard>div{margin:0}#homePayPeriodCard{grid-column:1;grid-row:span 2;display:flex;flex-direction:column;justify-content:center}#homeStatGrid{grid-column:2;grid-template-columns:1fr 1fr}#homeShiftSnapshot{grid-column:2}.home-recent,#homeGoal:not([hidden]){grid-column:1/-1}.home-welcome{padding:0}.home-welcome h1{font-size:40px}
 .shift-entry-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 24px;align-items:start}.shift-entry-topbar,.workplace-shift-card{grid-column:1/-1}.shift-entry-card>*{margin:0}.shift-entry-card>.shift-form-section:nth-of-type(2){grid-column:1;grid-row:span 2}.shift-entry-card>.shift-form-section:nth-of-type(3),.shift-entry-card>.shift-form-section:nth-of-type(4){grid-column:2}.shift-entry-card>.you-keep-card,.shift-entry-card>.shift-notes,.shift-entry-card>.save-shift-button,#shiftMessage{grid-column:1/-1}
 #calculator{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}#calculator>.section-card{margin:0}.split-results{margin-top:24px}.profile-preferences .preferences-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:821px) and (max-width:1023px){.app-main{padding-top:calc(27px + var(--safe-top))}}
@media(min-width:821px) and (max-width:1100px){.profile-layout,.profile-support-grid,.support-layout,.two-column:not(.profile-layout){grid-template-columns:1fr}.profile-hero{flex-wrap:wrap}.sticky-form{position:static}.settings-fields-password{grid-template-columns:1fr}}
@media(max-width:820px){
 .app-main{padding:calc(24px + var(--safe-top)) 18px calc(110px + env(safe-area-inset-bottom))}.profile-layout,.profile-support-grid,.support-layout{grid-template-columns:1fr}.profile-layout{gap:20px}.profile-hero{display:flex;flex-wrap:wrap;gap:16px;padding:22px}.profile-identity{flex:1;min-width:160px}.profile-stats{flex:1 0 100%;justify-content:space-between;padding-top:20px;margin-top:4px;border-top:1px solid var(--line)}.profile-identity h2{font-size:25px}.device-row{padding:12px;gap:10px}.device-row small{font-size:11px}.session-actions{flex-direction:row}
 .more-drawer{padding:22px 18px calc(22px + env(safe-area-inset-bottom));max-height:min(88dvh,calc(100dvh - var(--safe-top) - 12px));height:auto;border-radius:24px 24px 0 0}.more-menu-backdrop{padding:0;align-items:flex-end}.more-drawer-header{top:-22px}.modal-backdrop{padding:12px;align-items:center}.modal-backdrop>.surface{max-height:calc(100dvh - 24px);border-radius:20px;padding:22px}.settings-fields-email,.settings-fields-password{grid-template-columns:1fr}.section-card,.shift-form-section{padding:20px}.home-dashboard>section,.home-dashboard>div,.home-stat-grid{margin-bottom:18px}
}
@media(max-width:560px){.app-main{padding-inline:14px}.form-grid{gap:20px}.profile-form-grid{grid-template-columns:1fr}.form-grid .button{width:100%}.profile-hero .profile-avatar{width:58px;height:58px;flex-basis:58px}.avatar-upload-row{align-items:flex-start;gap:16px}.avatar-preview{width:60px;height:60px;flex-basis:60px}.avatar-upload-row .button{font-size:12px;padding:12px}.shift-entry-topbar h2{font-size:28px}.history-filters{width:100%;justify-content:start}.history-filters .small-select{flex:1;min-width:0;max-width:none}.you-keep-card{padding:20px}.you-keep-card>div:first-child strong{font-size:34px}.you-keep-card>div:last-child{flex:1}.device-row{flex-wrap:wrap}.device-row>div{flex:1;min-width:160px}.profile-data-card .data-actions,.danger-zone{align-items:start;flex-direction:column}.support-layout{gap:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.support-layout,.device-sessions,.sidebar{display:none!important}}

.profile-layout>section:first-child{order:initial}.person-row label{min-width:0}.person-row label:last-child{white-space:nowrap}
/* Keep focus and native form scrolling clear of the persistent navigation. */
html{scroll-behavior:auto;scroll-padding-top:calc(24px + var(--safe-top));scroll-padding-bottom:140px}
input,select,textarea,button,summary{scroll-margin-top:calc(24px + var(--safe-top));scroll-margin-bottom:140px}
.shift-entry-card,.shift-entry-card>*,.shift-entry-card label,.time-grid>*{min-width:0}
.shift-entry-card{width:100%}.shift-entry-card input,.shift-entry-card select,.shift-entry-card textarea{max-width:100%}
@media(max-width:820px){.time-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.time-value{flex-wrap:wrap}.time-value>input{flex-basis:65px}.time-value>select{flex-basis:65px;width:65px}.shift-entry-topbar .icon-button{width:44px;height:44px}}
/* Bound the visually hidden switch to its label instead of the page. */
.toggle-row{position:relative}.toggle-row>input{left:12px;top:50%;width:46px;height:26px;min-height:0;margin:0;padding:0;transform:translateY(-50%)}
.toggle-row>input:focus-visible+.toggle-track{outline:3px solid var(--gold-light);outline-offset:3px}

.pay-period-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.pay-period-heading label{display:grid;gap:6px;min-width:0;font-size:12px;text-align:left}.pay-period-heading select{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:14px}.pay-period-card .pay-period-dates{font-size:14px;color:var(--gold-light);margin:16px 0}.pay-period-card #homePayrollHelp{font-size:13px;line-height:1.6;margin:0 0 18px}.pay-period-heading>label{flex:0 1 260px}

.row-action-menu{position:absolute;z-index:10;right:0;bottom:48px;display:grid;min-width:160px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#0b2820;box-shadow:var(--shadow)}.row-overflow .row-action-menu button{position:static;display:flex;align-items:center;gap:8px;min-height:44px;width:100%;border:0;box-shadow:none;background:transparent;color:var(--text);text-align:left}.row-overflow .row-action-menu button:hover{background:#184335}.row-overflow .row-action-menu [data-delete-shift]{color:#ffd0c8}.tip-in-dialog{width:min(100%,480px)}.tip-in-dialog h2{margin-top:0}.tip-in-dialog>p{font-size:14px;line-height:1.6}.pay-breakdown:has(#payPeriodTipInRow:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pay-breakdown #payPeriodTipIn{color:#42c989}.shift-entry-card>#shiftExistingTipIn{grid-column:1/-1}
