/* Unified work surfaces. All selectors preserve the existing form and permission contracts. */
:root{--surface:#fff;--canvas:#f4f6f8;--edge:#e0e5eb;--text:#233340;--quiet:#667684;--accent:#17655e}
body{background:var(--canvas);color:var(--text)}
[hidden]{display:none!important}
.product-navigation{position:fixed;inset-block:0;inset-inline-start:0;width:228px;background:#fff;border-inline-end:1px solid var(--edge);padding:24px 16px;z-index:35;overflow:auto}
.product-navigation>summary{display:none}.product-brand{display:block;padding:0 20px 20px;border-bottom:1px solid var(--edge)}.product-brand img{display:block;width:138px;height:70px;object-fit:contain;margin:auto}.product-role{display:block;font-size:.78rem;color:var(--quiet);padding:22px 14px 10px}.product-navigation nav{display:grid;gap:6px}.product-navigation nav a{display:block;padding:12px 14px;border-radius:10px;text-decoration:none;color:#52616e;font-size:.9rem}.product-navigation nav a:hover{background:#f2f5f6}.product-navigation nav a[aria-current=page]{background:#eaf3f0;color:#14594e;font-weight:600;box-shadow:inset -3px 0 #17655e}
.product-page{padding-inline-start:228px}.product-page :is(.ops-shell,.employee-shell,.team-shell){width:100%;max-width:1400px;margin:auto;padding:26px clamp(18px,3vw,44px) 100px;min-width:0}
.product-page :is(.ops-header,.employee-head,.team-header){display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:0 0 22px;margin:0 0 26px;border-bottom:1px solid var(--edge);min-height:76px}.product-page :is(.ops-header,.team-header)>a{display:none}.product-page :is(.ops-header,.team-header)>h1{flex:1;margin:0;font-size:1.55rem}.product-page #identity{color:#52616e;font-size:.88rem}.product-page .employee-head img{width:84px}
.product-page :is(#tabs,#client-tabs){display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:6px;margin:0 0 24px;background:#e9edf0;border:1px solid #e1e6e9;border-radius:13px;scrollbar-width:thin}.product-page :is(#tabs,#client-tabs)>button{flex:none;white-space:nowrap;margin:0;padding:11px 17px;background:transparent;border:0;border-radius:9px;color:#596875;min-height:44px}.product-page :is(#tabs,#client-tabs)>button[aria-current=page]{background:white;box-shadow:0 2px 5px #20334012;color:#14594e;font-weight:600}
.product-page .panel{background:white;border:1px solid var(--edge);box-shadow:0 3px 12px #20334004;border-radius:16px;padding:24px;margin-bottom:22px}.product-page .panel h2{font-size:1.08rem;padding-bottom:16px;margin:0 0 20px;border-bottom:1px solid #edf0f2}.product-page :is(.ops-grid,.team-policy-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px}.product-page label{font-size:.88rem;color:#465865}.product-page label:not(.check,.check-row){display:flex;flex-direction:column;gap:8px}.product-page :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea){width:100%;max-width:100%;min-height:46px;padding:11px 13px;font:inherit;border:1px solid #cdd6df;border-radius:9px;background:#fcfdfe;color:#233340}.product-page textarea{min-height:108px;resize:vertical}.product-page input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.product-page form>button[type=submit]{margin-top:20px;background:var(--accent);color:white;border-color:var(--accent)}.product-page button{min-height:44px;border-radius:9px;font:inherit}.product-page :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #b89549;outline-offset:3px}.product-page .table-scroll{border:1px solid var(--edge);border-radius:12px;background:white;margin:18px 0;overflow:auto}.product-page table{margin:0;width:100%;border-collapse:collapse;font-size:.88rem}.product-page th{background:#f6f8fa;color:#52616e;font-weight:500;white-space:nowrap}.product-page :is(td,th){padding:14px 16px;border-bottom:1px solid #e9edf0;text-align:start}.product-page tbody tr:last-child td{border-bottom:0}.product-page tbody tr:hover{background:#f8fafb}.product-page #feedback:empty{display:none}.product-page #feedback:not(:empty){background:#fff5dc;border:1px solid #efdfb2;padding:14px 18px;border-radius:11px}.product-page .team-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}.product-page .employee-card{background:white;border:1px solid var(--edge);padding:22px;border-radius:14px;text-decoration:none;color:inherit}.product-page a.employee-card:hover{border-color:#81a89f;background:#f7fbf9}.product-page .employee-card h2{border:0;margin:0;padding:0;font-size:1.05rem}.product-page .employee-card p{font-size:.86rem;color:#667684}.product-page .client-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:white;border:1px solid var(--edge);border-radius:12px;padding:16px 20px;margin-bottom:22px}.product-page .client-filter label{max-width:280px;flex:1}.product-page .client-filter button{margin:0}.product-page #client-complaint{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.product-page #client-complaint label:has(textarea),.product-page #client-complaint button{grid-column:1/-1}.product-page #client-view article+article{border-top:1px solid var(--edge);padding-top:18px;margin-top:18px}.skip-content{position:fixed;top:-100px;inset-inline-start:20px;z-index:100;background:white;padding:12px}.skip-content:focus{top:12px}
/* The commercial and subscription manager already has a permission-filtered sidebar. */
.layout .main{background:var(--canvas)}.layout .panel{border:1px solid var(--edge);box-shadow:0 3px 12px #20334004;border-radius:16px}.layout .sidebar{border-inline-end:1px solid var(--edge)}.layout .nav-group{margin-top:16px}.layout .nav-item{border-radius:10px}.layout .heading{margin-bottom:26px}.layout .topbar{border-bottom:1px solid var(--edge)}
@media(min-width:1001px){.product-page .employee-shell #employee-nav{left:0;right:228px}.product-page .employee-shell{max-width:1100px}}
@media(max-width:1000px){.product-page{padding-inline-start:0;padding-top:66px}.product-navigation{inset-block-start:0;inset-block-end:auto;width:100%;height:58px;padding:0 18px;border-inline:0;border-bottom:1px solid var(--edge);overflow:visible;background:#fff}.product-navigation>summary{display:flex;height:58px;align-items:center;gap:12px;cursor:pointer;font-weight:500;list-style:none}.product-navigation>summary::before{content:'☰';font-size:21px;color:var(--accent)}.product-navigation:not([open])>:not(summary){display:none}.product-navigation[open]{height:auto;max-height:85dvh;overflow:auto;box-shadow:0 15px 40px #23334022;padding-bottom:18px}.product-navigation[open] .product-brand{display:none}.product-navigation nav{grid-template-columns:repeat(2,minmax(0,1fr))}.product-role{padding-top:10px}.product-page :is(.ops-shell,.employee-shell,.team-shell){padding:18px 16px 110px}.product-page :is(.ops-header,.employee-head,.team-header){gap:12px;margin-bottom:20px}.product-page .panel{padding:20px 16px}.product-page #identity{flex-basis:100%;font-size:.8rem}.product-page :is(.ops-header,.team-header)>h1{font-size:1.35rem}.product-page :is(#tabs,#client-tabs){margin-bottom:18px;position:relative}.product-page :is(#tabs,#client-tabs)>button{padding:10px 14px}.product-page #client-complaint{grid-template-columns:1fr}.product-page .employee-shell #employee-nav{overflow-x:auto;justify-content:space-evenly;gap:2px}.product-page .employee-shell #employee-nav button{min-width:65px;font-size:.82rem;padding:10px}.product-page :is(input,select,textarea){font-size:16px!important}.product-page .table-scroll{max-width:100%}}
@media print{.product-navigation,.skip-content,#client-tabs{display:none!important}.product-page{padding:0}.product-page .panel{box-shadow:none;break-inside:avoid}.product-page .table-scroll{overflow:visible}}
.subscriber-search{display:flex;flex-direction:column;gap:8px;max-width:440px;margin:0 0 24px;color:#52616e;font-size:.88rem}.subscriber-search input{font:inherit;min-height:46px;background:white;border:1px solid var(--edge);border-radius:10px;padding:10px 14px}.layout .subscriber-card{padding:0;overflow:hidden}.subscriber-card>summary{display:flex;align-items:center;gap:16px;padding:22px 24px;cursor:pointer;list-style:none}.subscriber-card>summary h2{flex:1;margin:0}.subscriber-card>summary::after{content:'+';font-size:24px;color:var(--quiet)}.subscriber-card[open]>summary::after{content:'−'}.subscriber-card[open]>summary{background:#fafcfc;border-bottom:1px solid var(--edge)}.subscriber-content{padding:24px}.subscriber-content .actions{margin-top:20px}.subscriber-card>summary:focus-visible{outline:3px solid #b89549;outline-offset:-3px}

/* Site-first client overview and compact field actions. */
.portal-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 24px}.portal-summary>div{background:#fff;border:1px solid var(--edge);border-radius:16px;padding:20px}.portal-summary strong{display:block;font-size:1.9rem;color:#17483f;font-variant-numeric:tabular-nums}.portal-summary span{display:block;color:var(--quiet);margin-top:4px;font-size:.9rem}.client-filter{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.client-filter>label{flex:1;min-width:180px}.client-filter #period-filter{display:flex;gap:12px;flex:2}.client-filter #period-filter label{flex:1}.client-filter #daily-filter{flex:1}.report-card{padding:18px 0;border-bottom:1px solid var(--edge)}.report-card h3{margin:0 0 8px;font-size:1rem}.report-card summary{cursor:pointer;color:var(--accent);padding:12px 0;font-weight:600}.product-page .employee-card{background:#fff;overflow-wrap:anywhere}.product-page .employee-grid{gap:14px}.product-page .employee-link{min-height:76px;line-height:1.7;font-weight:500}.product-page .duty-card{background:linear-gradient(120deg,#143c38,#23695d);border:0;box-shadow:0 8px 24px #153e3814}.product-page .duty-card select{color:#233340;background:#fff}.product-page .duty-card .primary{background:#f4e7bf;color:#173e38}.product-page #employee-nav button{font-size:.9rem}.product-page .ops-header h1,.product-page .employee-head strong{letter-spacing:0;line-height:1.6}
@media(max-width:650px){.portal-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portal-summary>div{padding:14px}.portal-summary strong{font-size:1.55rem}.client-filter{gap:12px}.client-filter #period-filter{flex-basis:100%}.client-filter #daily-filter{flex-basis:100%}.client-filter>button{width:100%}.product-page .employee-link{min-height:70px}.product-page .ops-header h1{font-size:1.35rem}.product-page .panel{padding:18px}}

#schedule-steps{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0 24px}#schedule-employees{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.schedule-person{border:1px solid var(--edge);border-radius:12px;padding:14px;background:#f8faf9}.schedule-person .check{display:flex;flex-direction:row;align-items:center;gap:8px;margin-bottom:12px}.schedule-person input[type=checkbox]{flex:none}fieldset{border:1px solid var(--edge);border-radius:12px;padding:18px;grid-column:1/-1}legend{padding:0 8px;font-weight:600}

.month-calendar{grid-column:1/-1}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-grid>span,.calendar-grid>strong{padding:10px 4px;text-align:center;border:1px solid var(--edge);border-radius:8px;background:#fff}.calendar-grid small{display:block;font-size:.7rem;color:var(--quiet)}.schedule-month{margin:16px 0}.schedule-month summary{cursor:pointer;padding:12px;font-weight:600}.schedule-month td{min-width:115px;vertical-align:top}.schedule-month td:first-child{position:sticky;right:0;background:white;z-index:1;min-width:165px}.day-state{display:inline-block;padding:4px 10px;border-radius:8px}.day-work{background:#e3f2eb;color:#15533b}.day-off{background:#eef0f3;color:#647080}@media(max-width:600px){.calendar-grid small{display:none}.calendar-grid>strong{font-size:.65rem;padding:8px 0}}

/* Searchable forms and compact, consistent controls for every authorized workspace. */
.product-section-search{display:block;width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--edge);border-radius:9px;font:inherit;font-size:.85rem;margin:14px 0}
.section-shortcuts{display:flex;gap:8px;overflow-x:auto;padding:0 0 16px;margin-bottom:10px;scrollbar-width:thin}.section-shortcuts button{flex:none;border:1px solid var(--edge);border-radius:20px;background:#fff;color:var(--accent);padding:8px 14px;font:inherit;font-size:.85rem;white-space:nowrap;cursor:pointer}.panel{scroll-margin-top:84px}.smart-select{position:relative;display:flex;min-width:0;gap:0}.smart-select>input{padding-inline-end:42px!important;margin:0!important}.smart-select>button{position:absolute;inset-inline-end:0;top:0;bottom:0;width:40px;border:0;background:transparent;color:var(--accent);font-size:22px!important;cursor:pointer}.smart-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;clip-path:inset(50%);overflow:hidden;pointer-events:none}.smart-select-options{position:absolute;top:calc(100% + 4px);inset-inline:0;z-index:60;max-height:280px;overflow:auto;border:1px solid #bccbc6;background:white;border-radius:10px;box-shadow:0 10px 25px #23334022;padding:5px}.smart-select-options>button{display:block;width:100%;border:0;text-align:start;background:white;padding:10px;color:var(--text);font:inherit;cursor:pointer;white-space:normal}.smart-select-options>button:is(:hover,.is-current,[aria-selected=true]){background:#eaf3f0;color:#14594e}.smart-select-options>p{padding:10px;margin:0;color:var(--quiet)}
.product-page .table-scroll thead th{position:sticky;top:0;z-index:2}.product-page .table-scroll tbody tr:nth-child(even){background:#fafcfc}.product-page :is(td,th){padding:12px 14px}.product-page .panel>.ops-grid{gap:16px}.product-page label.check{flex-direction:row;align-items:center;gap:10px}.product-page button:disabled{opacity:.5;cursor:not-allowed}.product-page .ops-grid>fieldset{margin:0;min-width:0}.product-page .ops-header h1{font-size:1.45rem}.product-page .panel h2{line-height:1.8}
.schedule-grid-slot{grid-column:1/-1}.schedule-editor{min-width:0;margin:20px 0;padding:20px;border:1px solid var(--edge);border-radius:14px;background:#fbfcfd}.schedule-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.schedule-editor-head h3{margin:0;font-size:1rem}.schedule-grid-count{font-size:.82rem;color:var(--quiet)}.schedule-palette{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.schedule-palette button{border:1px solid #c7d4ce;background:#fff;color:#3b524c;padding:8px 16px}.schedule-palette button[aria-pressed=true]{background:#1a5e52;color:white;border-color:#1a5e52;box-shadow:0 0 0 2px #c8e1d8}.schedule-range{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.schedule-range label{flex:1;min-width:150px;margin:0}.schedule-range button{border:1px solid #c7d4ce;background:#fff;color:#17483f;padding:10px 14px}.schedule-gesture{font-size:.85rem;color:var(--quiet);margin:14px 0}.schedule-grid-scroll{max-height:65vh;overflow:auto;border:1px solid #d4ded9;border-radius:12px;overscroll-behavior:contain}.schedule-editor table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:.82rem}.schedule-editor th,.schedule-editor td{padding:3px!important;border-bottom:1px solid #dfe7e3;border-inline-end:1px solid #e6ece8;min-width:82px;text-align:center!important}.schedule-editor thead th{position:sticky;top:0;background:#eaf0ed!important;z-index:3}.schedule-editor tr>:first-child{position:sticky;inset-inline-start:0;min-width:145px;max-width:180px;background:#f1f5f3;z-index:2;text-align:start!important;padding:10px!important}.schedule-editor thead tr>:first-child{z-index:4}.schedule-editor th small,.schedule-day small{display:block;font-size:.68rem;white-space:normal;font-weight:400}.schedule-day{width:100%;min-height:62px!important;border:1px solid transparent;border-radius:7px!important;padding:8px 4px!important;touch-action:none;user-select:none;color:#40534e;background:#eef1f3;cursor:crosshair}.schedule-day.day-work{background:#e2f1e8;color:#17553c}.schedule-day.day-rest{background:#eef0f3;color:#576578}.schedule-day.day-paidLeave{background:#e9e8fb;color:#4c4481}.schedule-day.day-unpaid{background:#fff0dc;color:#845513}.schedule-day.is-changed{border-color:#9d7a23}.schedule-day.is-selecting{outline:3px solid #327cbd!important;outline-offset:-3px}.schedule-editor-actions{display:flex;align-items:center;gap:12px;margin-top:16px}.schedule-people-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.schedule-people-tools input{flex:1;min-width:180px}.schedule-people-tools button{padding:10px 12px;border:1px solid var(--edge);background:#fff;color:var(--accent)}#schedule-employees{max-height:370px;overflow:auto;padding:4px}.schedule-person:has([name=employeeIds]:checked){border-color:#3d8472;background:#f0f8f4}.schedule-person .check{font-weight:600}.schedule-person label:not(.check){font-size:.8rem}.schedule-person input[type=date],.schedule-person select{min-height:40px!important;padding:8px!important}.month-calendar:has(+.schedule-editor){display:none}.schedule-month{margin:14px 0}
@media(max-width:700px){.schedule-editor{padding:12px;margin:16px -4px}.schedule-range label{min-width:calc(50% - 10px)}.schedule-range button{flex:1;min-width:45%}.schedule-editor tr>:first-child{min-width:110px;max-width:130px}.schedule-editor th,.schedule-editor td{min-width:74px}.schedule-palette button{flex:1;padding:8px}.schedule-editor-actions{flex-wrap:wrap}.schedule-editor-actions button{width:100%}.section-shortcuts{margin:0 0 8px}.product-page :is(#tabs,#client-tabs){scroll-snap-type:x proximity}.product-page :is(#tabs,#client-tabs)>button{scroll-snap-align:start}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{.section-shortcuts,.schedule-palette,.schedule-range,.schedule-editor-actions,.schedule-gesture,.schedule-people-tools,.product-section-search{display:none!important}.schedule-editor{padding:0;border:0}.schedule-grid-scroll{max-height:none;overflow:visible}.schedule-editor table{width:100%;font-size:8px}.schedule-editor th,.schedule-editor td,.schedule-editor tr>:first-child{position:static;min-width:0;padding:2px!important}.schedule-day{min-height:20px!important;font-size:8px}.schedule-day small{font-size:6px}}
.work-overview{display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:24px}.work-overview h2{margin:0;font-size:1.45rem}.work-overview p{color:var(--quiet);margin:5px 0}.work-overview button{background:var(--accent);color:#fff;padding:12px 20px;border:0}.card-open{display:block;margin-top:12px;color:var(--accent);font-size:.85rem}.schedule-entry{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.schedule-entry h2{flex-basis:100%;margin:0}.primary-link{display:inline-block;padding:12px 18px;background:var(--accent);color:#fff!important;border-radius:10px;text-decoration:none}.setup-disclosure{border:1px solid var(--edge);border-radius:12px;background:white;margin:14px 0}.setup-disclosure>summary{padding:18px;cursor:pointer;font-weight:600}.setup-disclosure>.panel{border:0;border-top:1px solid var(--edge);border-radius:0;margin:0}.schedule-entry+a{color:var(--accent)}
.staffing-tabs{display:flex;overflow:auto;gap:8px;margin:16px 0;padding:4px}.staffing-tabs button{white-space:nowrap;flex:none;min-height:44px;padding:10px 15px;border:1px solid var(--edge);background:#fff;color:var(--accent);border-radius:10px;font:inherit}.staffing-tabs button[aria-current=page]{background:var(--accent);color:#fff}.staffing-condition{grid-column:1/-1;padding:12px 16px;background:#f1f6f4;border:1px solid #dae6e0;border-radius:9px;line-height:1.9}.ops-grid>[data-leave-relation]{display:contents}[data-staff-feedback]:not(:empty){padding:14px;background:#fff3cf;border-radius:10px}[data-staff-content] .table-scroll button{white-space:nowrap;margin:3px}

.field-error{display:block;color:#b42332;font-size:.9em;margin-block:6px}input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border:2px solid #b42332!important}

.handover-camera-dialog{max-width:650px;width:calc(100% - 24px);max-height:92dvh;border:1px solid #c9d9d5;border-radius:18px;padding:20px;overflow:auto}.handover-camera-dialog::backdrop{background:#132d36aa}.handover-camera-dialog video,.handover-camera-dialog img{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:12px;background:#142c34}.handover-camera-dialog label{display:block;margin-block:12px}.handover-camera-dialog select,.handover-camera-dialog textarea{width:100%}.handover-observation{padding:12px;border-inline-start:4px solid #b77915;background:#fff7e7;color:#342b1b;margin-block:10px}.handover-observation p{color:inherit}

.product-logout{background:#b42332;color:white;border:0;border-radius:10px;padding:10px 16px;white-space:nowrap}.room-card p{white-space:pre-wrap}

/* Contain native iOS date controls within the form, including flex labels. */
.product-page :is(form,label,.ops-grid,.request-form-slot,.smart-select){min-inline-size:0;max-inline-size:100%}
.product-page :is(input,select,textarea){box-sizing:border-box;min-inline-size:0;max-inline-size:100%}
.product-page input:is([type=date],[type=time],[type=datetime-local],[type=month]){display:block;inline-size:100%;min-inline-size:0;max-inline-size:100%;text-align:start;min-height:48px}
.product-page input::-webkit-date-and-time-value{min-width:0;text-align:start}
.product-page input::-webkit-datetime-edit{min-width:0;padding:0}
.employee-shell .request-picker h1{font-size:1.4rem;margin-bottom:18px}
.employee-shell .request-picker .request-form-slot{border-top:1px solid var(--edge);margin-top:20px;padding-top:4px}
.employee-shell .request-form-slot>.panel{border:0;box-shadow:none;padding:0;margin:0}
.employee-shell .request-form-slot h2{font-size:1.05rem}
.employee-shell :is(input,textarea,select){margin-inline:0}
.employee-shell input:is([type=checkbox],[type=radio]){width:auto;inline-size:auto}
.product-page #tabs{flex-wrap:wrap;overflow:visible}
@media(max-width:600px){.employee-shell .request-picker{padding:18px 16px}.employee-shell .request-picker label{margin-block:14px}.employee-shell .request-picker .primary{width:100%;min-height:48px}.product-page #tabs>button{flex:1 1 130px;white-space:normal}.employee-shell #employee-nav button{min-width:0;flex:1;font-size:.78rem;padding:10px 5px}}

/* Focused work surfaces — shared across account roles. */
.product-navigation nav>details{border-bottom:1px solid var(--edge);padding:8px 0}.product-navigation nav>details>summary{cursor:pointer;padding:12px;font-weight:600;color:#364254}.product-navigation nav>details>a{margin-inline-start:10px}.surface-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:18px 0}.surface-choices button{background:#fff;text-align:start;border:1px solid #dbe2ea;border-radius:14px;padding:22px;min-height:84px;font-size:1rem;box-shadow:0 3px 12px #26374b05}.surface-choices button:hover{border-color:#697d99;background:#f7f9fc}.surface-launch{min-height:48px;background:#eef2f7;color:#283b55;border-color:#dce4ee}.surface-return{display:inline-flex;align-items:center;gap:8px;background:#edf1f7;color:#34445c;border:1px solid #d8e0ec;margin-bottom:16px;min-height:44px}.surface-return:before{content:'↩';font-size:1.2em}.surface-launch[hidden],.surface-return[hidden],.surface-choices[hidden]{display:none!important}.focused-surfaces .section-shortcuts{display:none!important}.product-logout,.topbar-logout,button[data-action=logout],button[data-act=logout]{background:#b52b39!important;border-color:#b52b39!important;color:white!important;white-space:nowrap}.ops-header>.product-logout{margin-inline-start:auto}.product-page .ops-header>h1{flex:1;min-width:140px}.self-profile{margin-bottom:24px}.identity-card{position:relative;display:flex;align-items:center;gap:22px;min-height:210px;padding:26px;background:linear-gradient(125deg,#263347,#142133);color:white;border-radius:20px;overflow:hidden}.identity-card h2{color:white;margin:5px 0;font-size:1.4rem;line-height:1.5}.identity-card p{margin:4px 0;color:#d4deeb}.identity-company{font-size:.8rem;color:#c3cfde}.identity-card-content{min-width:0;display:grid;gap:4px}.identity-card-content :is(a,span){overflow-wrap:anywhere}.identity-card-content a{color:white}.identity-portrait{align-self:stretch;object-fit:cover;object-position:top;width:150px;border:0!important;border-radius:0!important;box-shadow:none!important;margin:-26px -26px -26px 0;min-height:210px}.identity-monogram{font-size:2.3rem;color:#b7c9df;min-width:90px;text-align:center}.identity-number{font-variant-numeric:tabular-nums;font-weight:600;color:#e6c38d}.identity-open{margin-inline-start:auto;align-self:center;background:#ffffff16;color:#fff;border-color:#ffffff40}.identity-card.is-compact{min-height:112px;padding:18px 24px;gap:18px}.is-compact .identity-portrait{width:104px;min-height:112px;max-height:150px;margin:-18px -24px -18px 0}.is-compact h2{font-size:1.05rem}.is-compact p{font-size:.85rem}.identity-dialog{max-width:650px}.security-portrait{border:0!important;border-radius:0!important;background:transparent!important;width:100%!important;height:190px!important;margin:0!important;display:block!important}.security-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.security-portrait span{display:grid;place-items:center;height:100%;background:#ffffff08}.security-card{border-radius:16px!important;box-shadow:0 5px 20px #16243a12!important}.security-card-top{border:0!important;padding:12px 16px!important}.security-card .security-portrait+h3{margin-top:18px}.employee-photo,.profile-photo{border:0!important;box-shadow:none!important;border-radius:0!important;object-position:top}.email-preferences{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#fff;border:1px solid var(--edge);border-radius:14px;margin:18px 0}.email-preferences>div{display:grid;gap:4px;min-width:0}.email-preferences span{overflow-wrap:anywhere;font-size:.9rem}.email-preferences button{white-space:nowrap}.duty-field-actions{flex-wrap:wrap}.duty-field-actions>a{flex:1}.chat-dock{position:fixed;inset-inline-end:22px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:70}.chat-bubble{position:relative;width:58px;height:58px;border-radius:50%;border:0;background:#263b60;color:#fff;box-shadow:0 8px 26px #15254235;display:grid;place-items:center}.chat-bubble svg{width:28px;height:28px}.chat-count{position:absolute;top:-5px;inset-inline-end:-5px;border:2px solid #fff;background:#c12a43;color:#fff;font-size:12px;border-radius:20px;min-width:23px;padding:2px 5px}.chat-dock-window{width:410px;height:min(650px,83dvh);background:white;border:1px solid var(--edge);border-radius:18px;overflow:hidden;box-shadow:0 14px 60px #14243f40;display:flex;flex-direction:column}.chat-dock-window>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#263b60;color:white}.chat-dock-window>header button{background:#ffffff15;color:#fff;border-color:#ffffff30;min-width:42px}.chat-dock-window iframe{border:0;display:block;width:100%;flex:1;min-height:0}.chat-dock [hidden]{display:none!important}
@media(max-width:700px){.surface-choices{grid-template-columns:1fr 1fr;gap:10px}.surface-choices button{padding:16px 12px;font-size:.9rem;min-height:76px}.identity-card.is-compact{padding:14px 18px;gap:14px}.is-compact .identity-portrait{margin:-14px -18px -14px 0;width:86px;min-height:112px}.identity-card h2{font-size:1.12rem}.identity-card .identity-open{padding:8px 12px}.identity-card:not(.is-compact){padding:20px;gap:16px}.identity-portrait{width:115px;margin:-20px -20px -20px 0}.security-portrait{height:155px!important}.chat-dock{inset-inline-end:14px;bottom:calc(92px + env(safe-area-inset-bottom))}.chat-dock-window{width:min(410px,calc(100vw - 20px));height:min(650px,calc(100dvh - 145px))}.email-preferences{flex-wrap:wrap}.self-profile{margin-bottom:18px}}

.surface-tabs-managed{display:none!important}.surface-section-select{display:flex!important;align-items:center;gap:14px;max-width:520px;margin:0 0 22px!important;color:#63738a;font-size:.85rem}.surface-section-select select{flex:1;min-width:0;background:#fff;border:1px solid #d5deea;border-radius:12px;min-height:48px;padding:10px 14px;color:#26384f}.chat-embedded .surface-section-select{display:none!important}

.schedule-review-dialog{width:min(1100px,94vw);max-height:90dvh;border:0;border-radius:18px;padding:24px;color:var(--ink,#20232b)}.schedule-review-dialog::backdrop{background:#11182799}.schedule-review-dialog form{max-width:660px;display:grid;gap:14px;margin:auto}.schedule-review-dialog label{display:grid;gap:6px}.schedule-review-dialog [data-feedback]:not(:empty){padding:12px;color:#a32127;background:#fff0f0}.schedule-review-dialog table{font-size:.9rem}.schedule-review-dialog [hidden]{display:none!important}

/* Phone navigation follows a single section at a time. */
@media(max-width:1000px){
 .product-navigation[open]{inset:0;width:100%;height:100dvh;max-height:100dvh;padding:16px 20px 32px;overflow-y:auto;background:#fff}
 .product-navigation[open]>summary{position:sticky;top:-16px;background:#fff;z-index:1;padding:16px 0;border-bottom:1px solid var(--edge)}
 .product-navigation nav{display:block;grid-template-columns:none}
 .product-navigation nav>details{padding:2px 0}
 .product-navigation nav>details>summary{padding:16px 6px}
 .product-navigation nav>details>a{padding:13px 16px;margin:2px 0}
 .product-navigation .product-role{padding:12px 6px}
 .product-page :is(.ops-shell,.team-shell){padding-inline:16px}
 .product-page .ops-header{gap:10px;min-height:60px;margin-bottom:18px;padding-bottom:14px}
 .product-page .ops-header>h1{font-size:1.2rem}
}
.quick-actions>a.quick-operation{display:flex;align-items:center;gap:14px;padding:20px;background:#f8faf9;border:1px solid var(--edge);border-radius:14px;color:var(--text);text-decoration:none;min-width:0}
.quick-operation svg{width:24px;height:24px;color:var(--accent);flex:none}
.table-tools{align-items:center;gap:8px;flex-wrap:wrap}.table-tools input{flex:1 1 160px}.table-tools select{width:auto!important}.table-tools>span{white-space:nowrap;font-size:.8rem;color:var(--quiet)}

@media(max-width:1000px){body:has(.product-navigation[open]){overflow:hidden}body:has(.product-navigation[open]) .chat-dock{display:none}.product-page .product-navigation[open]{max-height:100dvh}}
.management-policies{display:grid;gap:16px}.management-policies .check{display:flex;flex-direction:row;align-items:center;gap:12px;padding:12px;border:1px solid var(--edge);border-radius:10px}.management-policies input[type=checkbox]{width:20px;height:20px;flex:none}.sales-recipient{padding:14px;background:#f4f7f6;border-radius:10px}.sales-recipient strong{display:block;margin-top:6px}

#workspace-domains{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px;border-bottom:1px solid var(--edge);padding-bottom:12px}#workspace-domains button{padding:10px 14px;background:transparent;border:0;color:var(--quiet)}#workspace-domains button[aria-current=page]{background:#eaf3f0;color:var(--accent);font-weight:600}.ops-shell:has(> .self-profile) .ops-header #identity{display:none}

.monitor-error-reference{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:#fff2f2;color:#8f2335;border:1px solid #efcbd1;border-radius:12px;font-size:.8rem;overflow-wrap:anywhere}.monitor-error-reference button{margin-inline-start:auto;min-height:36px;padding:6px 12px}

/* Restrained glass controls with consistent hierarchy; no stacked button edges. */
.product-page :is(.ops-shell,.employee-shell,.team-shell) a[href]:not(.security-card a,.identity-card a,.product-brand,.skip-content),.layout #view a[href],.product-page :is(.surface-choices button,.surface-launch){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;margin:0;border:1px solid #476a92;border-radius:16px;background:linear-gradient(150deg,#294b75,#163455);color:#f4f8ff;text-decoration:none;box-shadow:inset 0 1px 0 #ffffff35,0 5px 14px #132f4b1c;line-height:1.45;text-align:center;font:inherit}
.product-page :is(.ops-shell,.employee-shell,.team-shell) button:not(:where(.chat-bubble,.product-logout,.employee-logout,[data-act=logout],.identity-open,.smart-select button,#employee-nav button,[role=tab])),#settings-sections button{min-height:44px;padding:10px 16px;border:1px solid #476a92;border-radius:16px;background:linear-gradient(150deg,#294b75,#163455);color:#f4f8ff;box-shadow:inset 0 1px 0 #ffffff35,0 5px 14px #132f4b1c;line-height:1.45;font:inherit;cursor:pointer;margin:0}
.product-page :is(.ops-shell,.employee-shell,.team-shell) button.primary,.product-page :is(.ops-shell,.employee-shell,.team-shell) button[type=submit],.product-page .attendance-step button[data-act=arrival-choose]{background:#17655e!important;color:#fff!important;border-color:#17655e!important;box-shadow:inset 0 1px 0 #ffffff20,0 2px 5px #174a4214!important}
.product-page button:disabled{opacity:.45;box-shadow:none!important;cursor:default}.product-page :is(button,a[href]):focus-visible{outline:3px solid #73a89f;outline-offset:3px}
/* Preserve the established green attendance card and its layout. */
.product-page .duty-card{background:linear-gradient(120deg,#143c38,#23695d);color:#fff;border:0;border-radius:22px;padding:24px;box-shadow:0 8px 24px #153e3814}.product-page .duty-card :is(h1,h2){color:#fff}.product-page .duty-card>h1{font-size:30px;margin:10px 0}.product-page .duty-card>p{color:#e1efeb}.product-page .duty-status{background:#ffffff22;color:#fff;border-radius:999px;padding:8px 14px;display:inline-block}.product-page .duty-records{margin-top:20px}.product-page .duty-records h2{font-size:21px}.product-page :is(.actions,.employee-account-actions),#settings-sections{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.product-page .employee-grid{gap:12px;margin-top:18px}.employee-account-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px!important;margin:18px 0 24px}
.product-page .receipt-warning{color:#b32d36!important;background:#fff7f7;border-inline-start:3px solid #b32d36;border-radius:6px;padding:12px 14px;font-size:.92rem;line-height:1.8}.attendance-step form{display:grid;gap:16px}.attendance-step .check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;line-height:1.7}.attendance-step .check input{flex:none;width:20px;height:20px;margin-top:4px}.attendance-step>button{margin-block-start:16px!important}.action-result:empty{display:none!important}.action-result{padding:10px 12px;border-radius:8px;line-height:1.6}.action-result.success{background:#edf7f1;color:#205a3b!important}.action-result.error{background:#fff2f2;color:#a52b35!important}
.product-logout,.employee-logout,.topbar-logout{position:fixed!important;top:72px;inset-inline-end:16px;z-index:46;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;background:#a6313c!important;border:1px solid #982b35!important;color:#fff!important;font-size:25px!important;line-height:1!important;box-shadow:0 2px 7px #70232c18!important}.product-page :is(.ops-header,.employee-head,.team-header){padding-inline-end:60px}.product-page .identity-card.is-compact{min-height:92px;padding:14px 18px}.product-page .identity-card.is-compact .identity-monogram{font-size:1.5rem;min-width:46px}.product-page .chat-bubble{border-radius:50%!important;width:48px;height:48px;min-height:48px}.product-page .employee-shell #employee-nav button{box-shadow:none!important;background:transparent;border:0;border-radius:8px}.product-page .employee-shell #employee-nav button[aria-current=page]{background:#e6f0ed;color:#205b50}
@media(min-width:1001px){.product-logout,.employee-logout,.topbar-logout{top:20px}}
@media(max-width:700px){.product-page .duty-card{padding:18px 16px}.product-page .panel{padding:18px 14px}.surface-choices{gap:12px}.surface-choices button{margin:0!important}.product-page .employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-page .identity-card.is-compact{gap:12px}.product-page .identity-card.is-compact h2{font-size:1rem}.product-page .identity-card.is-compact p{font-size:.75rem}.product-page .ops-shell>a{display:inline-flex;margin-block:6px 12px}.product-page .attendance-step .primary{width:100%}.product-page .duty-records .actions>a{flex-basis:100%}.product-page .employee-shell #employee-nav{gap:4px;padding:8px}}

/* Action groups stay aligned and never touch adjacent controls. */
.product-page :is(.surface-choices,#settings-sections,.section-shortcuts,.actions){gap:12px}
.product-page .surface-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:stretch}
.product-page .surface-choices button{width:100%;margin:0;min-height:54px}
.product-page .duty-card .duty-records .actions{display:flex;gap:12px;flex-wrap:wrap}.product-page .duty-card .actions>*{margin:0}
.product-page .smart-select>button{background:transparent;border:0;box-shadow:none;padding:0;min-height:0}
/* Login content follows its own height rather than stretching to the viewport. */
.auth-screen>.auth-page{flex:0 0 auto;min-height:0}.auth-screen .auth-form{flex:none;align-items:flex-start;padding:28px 24px}.auth-screen .auth-form>div{width:100%}.auth-screen .auth-form form{display:grid;gap:16px}.auth-screen .auth-form .field{margin:0}.auth-screen .auth-brand{min-height:0}.auth-screen .auth-footer{margin-top:16px}
@media(max-width:700px){.product-page .duty-card{padding:20px}.auth-screen>.auth-page{margin-top:14px}.auth-screen .auth-form{padding:24px 20px}.auth-screen .auth-form h2{margin-bottom:20px}}

.product-page .employee-shell .sos{background:linear-gradient(155deg,#bd4652,#9f2937)!important;color:#fff!important;border-color:#982b35!important;box-shadow:inset 0 1px 0 #ffffff44,0 2px 0 #7f2330,0 4px 8px #701f2812!important}
.product-page .duty-card .action-result:empty{display:none}.product-page .employee-shell .employee-grid>a{box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #c4d5de,0 2px 0 #c2d2db,0 4px 8px #183c5010}

.product-page .attendance-step>button{margin-inline-end:10px!important;margin-block-start:16px!important}

/* Action colors follow the portal's navy identity; depth uses light, not stacked edges. */
.product-page .employee-shell .employee-grid>a{background:linear-gradient(150deg,#294b75,#163455);color:#f4f8ff;border-color:#476a92;box-shadow:inset 0 1px 0 #ffffff35,0 5px 14px #132f4b1c}
.product-page .employee-shell .secondary,.product-page .duty-records a{background:linear-gradient(150deg,#294b75,#163455);color:#fff;border-color:#476a92;box-shadow:inset 0 1px 0 #ffffff35,0 5px 14px #132f4b1c}
.product-page .employee-shell .duty-card button[data-act=departure]{background:linear-gradient(150deg,#e9cd91,#c9a55d);color:#25354a;border-color:#e4c98c;box-shadow:inset 0 1px 0 #fff7dc,0 4px 12px #102e3020}
.product-page .employee-shell .duty-status{font-size:.82rem;letter-spacing:0}.product-page .employee-shell .duty-records .actions>*{min-height:48px;border-radius:14px}
.product-page .employee-shell #refresh{background:transparent;color:#284966;border-color:#cbd7e0;box-shadow:none;min-height:38px;padding:6px 12px}
/* Guard controls and green action palette. */
.product-page :is(.ops-shell,.employee-shell,.team-shell) button:not(:where(.chat-bubble,.product-logout,.employee-logout,.product-refresh,.product-back,.return-arrow,[data-act=logout],.identity-open,.smart-select button,#employee-nav button,.conversation button)),.product-page .employee-shell .secondary,.product-page .employee-shell .employee-grid>a,.product-page .surface-choices button{background:linear-gradient(150deg,#29786a,#165447);color:#fff;border-color:#428b7d;box-shadow:inset 0 1px 0 #ffffff35,0 4px 12px #183d3220;border-radius:14px}
:is(.product-page,.layout) .product-refresh,.product-page .employee-shell #refresh{position:fixed!important;top:124px;inset-inline-end:16px;z-index:46;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;display:grid;place-items:center;border-radius:50%!important;background:linear-gradient(145deg,#269879,#11664f)!important;border:1px solid #248264!important;color:white!important;box-shadow:inset 0 1px 0 #ffffff40,0 3px 8px #12553e22!important;font-size:26px}.product-refresh svg{width:25px;height:25px}
:is(.product-page,.layout) :is(.product-back,.return-arrow){position:fixed;top:176px;inset-inline-end:16px;z-index:46;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0!important;margin:0!important;border-radius:50%;background:#fff!important;border:1px solid #cedbd6!important;color:#17634f!important;font-size:26px!important;box-shadow:0 3px 8px #173f3214}
body:has(.return-arrow) .product-back{display:none}.surface-return{font-size:0!important}.surface-return:before{font-size:25px!important}
.product-page .employee-head{min-height:125px}.product-page .employee-shell #employee-nav{background:linear-gradient(125deg,#263347,#142133);border-color:#26374a}.product-page .employee-shell #employee-nav button{color:#d4deeb;background:transparent!important;border:0;border-radius:12px}.product-page .employee-shell #employee-nav button[aria-current=page]{background:#ffffff20!important;color:white;box-shadow:inset 0 1px 0 #ffffff20!important}
#field-network-status{display:flex;align-items:center;gap:8px;font-size:.85rem;color:#426252;margin:12px 0}#field-network-status:before{content:'';width:8px;height:8px;border-radius:50%;background:#24c477;box-shadow:0 0 8px #24c47790;flex:none}#field-network-status[data-online=false]{color:#ac3540}#field-network-status[data-online=false]:before{background:#e24e5a;box-shadow:0 0 8px #e24e5a70}
.duty-times{display:grid;gap:6px;margin:16px 0}.duty-times p{display:flex;justify-content:space-between;gap:12px;margin:0;color:#e1efeb;font-size:.86rem}.duty-times span{color:#b9d6ce}.duty-times time{font-variant-numeric:tabular-nums}.product-page .duty-records{margin-top:20px}.product-page .duty-records .actions{display:grid!important;grid-template-columns:1fr 1fr}.product-page .duty-records .actions>*{width:100%;margin:0}
.chat-window-controls{display:flex;gap:6px}.chat-dock-window>header{background:#145b4e}.chat-window-controls button{width:36px;min-height:36px;padding:0;border:0;background:#ffffff18;color:#fff;border-radius:50%;font-size:22px;display:grid;place-items:center}.chat-dock-window.is-fullscreen{position:fixed;inset:12px;width:auto;height:auto;max-width:none;border-radius:18px;z-index:100}.chat-dock-window.is-fullscreen iframe{min-height:0}.chat-dock:has(.is-fullscreen){z-index:100}.chat-bubble{background:linear-gradient(145deg,#257d69,#135446)}
@media(min-width:1001px){:is(.product-page,.layout) .product-refresh,.product-page .employee-shell #refresh{top:72px}:is(.product-page,.layout) :is(.product-back,.return-arrow){top:124px}}
@media(max-width:700px){.chat-dock-window.is-fullscreen{inset:0;border-radius:0}.chat-dock-window.is-fullscreen>header{padding-top:max(12px,env(safe-area-inset-top))}.duty-times p{flex-direction:column;gap:2px}.duty-times{grid-template-columns:1fr 1fr;gap:12px}}

body.product-page .employee-shell .employee-grid>a{background:linear-gradient(150deg,#29786a,#165447)!important;color:white!important;border-color:#428b7d!important;box-shadow:inset 0 1px 0 #ffffff35,0 4px 12px #183d3220!important}
.product-page .attendance-step>.return-arrow{margin:0!important}

/* Two equal action columns. An odd last action occupies the centered half-width slot. */
html body .action-matrix.action-matrix.action-matrix{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:12px!important;align-items:stretch;justify-items:stretch}html body .action-matrix>.action-matrix-item{grid-column:span 2!important;width:100%!important;min-width:0;max-width:none;min-height:52px;margin:0!important;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}html body .action-matrix>.action-matrix-singleton{grid-column:2 / span 2!important}html body .action-matrix[hidden],html body .action-matrix-item[hidden]{display:none!important}

.product-page button.field-sync-details{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:2px 0!important;min-height:30px!important;border-radius:0!important;font:inherit!important;text-decoration:underline;text-underline-offset:4px}.sync-details-dialog{width:min(560px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #dce5df;border-radius:18px;padding:20px}.sync-details-dialog::backdrop{background:#14213380}.sync-details-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.sync-details-dialog article{padding-block:14px;border-bottom:1px solid #e0e5eb}.sync-details-dialog time{display:block;font-size:.85em;margin-block:6px}

html body button.tracking-signal{display:block;width:100%;height:10px;min-height:10px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden;position:fixed;top:0;left:0;right:0;z-index:60;cursor:pointer;box-shadow:none!important}html body button.tracking-signal[data-state=active]{background:#17865b!important}html body button.tracking-signal[data-state=initializing],html body button.tracking-signal[data-state=idle],html body button.tracking-signal[data-state=interrupted]{background:#d3a02e!important}html body button.tracking-signal[data-state=stopped]{background:#b52d3c!important}html body button.tracking-signal[hidden]{display:none!important}.tracking-signal-sweep{position:absolute;inset:0;background:linear-gradient(90deg,transparent 20%,#ffffff18 35%,#ffffff70 44%,#fffffff5 50%,#ffffff70 56%,#ffffff18 65%,transparent 80%);transform:translateX(-110%);pointer-events:none;filter:blur(.4px);animation:tracking-sweep 2.8s ease-in-out infinite}.tracking-details-dialog{width:min(520px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #dce5df;border-radius:18px;padding:20px}.tracking-details-dialog::backdrop{background:#14213380}.tracking-details-dialog button{margin:8px;min-height:44px}@keyframes tracking-sweep{0%{transform:translateX(-110%);opacity:.3}50%{transform:translateX(0);opacity:1}100%{transform:translateX(110%);opacity:.3}}@media(prefers-reduced-motion:reduce){.tracking-signal-sweep{animation:none!important}}

/* Shared search and paging layout across all account surfaces; no palette changes. */
html body .shared-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}html body .shared-filter-grid label{margin:0;min-width:0}html body .shared-filter-grid :is(input,select){width:100%;min-width:0;box-sizing:border-box}html body .shared-filter-grid .filter-actions{grid-column:1 / -1}html body #date-form.shared-filter-grid>div:not([hidden]){display:contents}html body .table-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}html body .table-tools>input,html body .table-tools>select{width:100%!important;min-width:0}html body .table-tools>.table-paging-actions,html body .table-tools>span{grid-column:1 / -1}html body .shared-filter-grid[hidden]{display:none!important}

body:has(>button.tracking-signal:not([hidden]))>.product-navigation{top:10px}
@media(max-width:1000px){body.product-page:has(>button.tracking-signal:not([hidden])){padding-top:76px}}

.tracking-security-alert{position:fixed;z-index:80;top:max(88px,18dvh);inset-inline:16px;width:min(460px,calc(100vw - 32px));margin-inline:auto;box-sizing:border-box;padding:24px;background:#fff;border:1px solid #d5dfdc;border-radius:20px;box-shadow:0 18px 60px #142b3545;text-align:center;max-height:75dvh;overflow:auto}.tracking-security-alert h2{font-size:1.35rem;margin:12px 0 20px}.tracking-security-alert>p{margin:12px 0}.security-beacon{color:#bd293d;width:70px;height:70px;margin:auto;filter:drop-shadow(0 0 8px #bd293d77);animation:security-beacon-pulse 1.6s ease-in-out infinite}.security-beacon svg{width:100%;height:100%}.tracking-security-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tracking-security-actions button{min-height:56px;padding:12px;border-radius:14px;color:white;border:1px solid #428b7d;font:inherit;cursor:pointer;white-space:normal}.tracking-security-actions .tracking-security-good{background:linear-gradient(150deg,#29786a,#165447)!important}.tracking-security-actions .tracking-security-sos{background:linear-gradient(150deg,#be3c4d,#9d2437)!important;border-color:#b8515d!important}.tracking-security-actions button:disabled{opacity:.65;cursor:wait}.tracking-security-feedback{font-size:.9rem;color:#4c5d59;line-height:1.6}.tracking-security-feedback:empty{display:none}.tracking-security-recovered{border-color:#428b7d;color:#165447;top:100px;line-height:1.8}@keyframes security-beacon-pulse{0%,100%{opacity:.55;filter:drop-shadow(0 0 3px #bd293d55)}50%{opacity:1;filter:drop-shadow(0 0 14px #bd293daa)}}@media(prefers-reduced-motion:reduce){.security-beacon{animation:none}}

.notification-panel-scrim{position:fixed;inset:10px 0 0;background:#142b3559;z-index:50;overscroll-behavior:contain}.notification-panel{position:fixed;inset:76px 16px 16px;max-width:920px;margin-inline:auto;background:#f4f7fa;border:1px solid #dce5df;border-radius:18px;padding:20px;z-index:55;overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 60px #142b3545}.notification-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #dce5df;margin-bottom:16px}.notification-panel h2{margin-block:8px 16px}.notification-panel button,.notification-panel a.secondary{min-height:44px}.notification-panel .panel{margin-block:16px}.notification-panel [data-notification-feedback]{line-height:1.8}.notification-panel [data-notification-feedback]:empty{display:none}@media(max-width:600px){.notification-panel{inset:66px 8px 8px;padding:14px}.notification-panel>header h2{font-size:1.1rem}.notification-panel>header button{max-width:140px}}
/* Operational instructions: one acknowledgement, independent reminders. */
.instruction-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #d4e1df;border-radius:22px;color:#173d39;background:white;text-align:right;box-shadow:0 20px 70px #102e3540}.instruction-dialog[open]{display:flex;flex-direction:column;gap:14px}.instruction-dialog::backdrop{background:#102e357a;backdrop-filter:blur(3px)}.instruction-dialog h2{margin:8px 0;font-size:24px}.instruction-dialog p{margin:0;line-height:1.9}.instruction-badge{display:inline-block;background:#fff1d2;color:#805719;border-radius:20px;padding:6px 12px;font-size:13px}.instruction-content{overflow:auto;min-height:0}.instruction-detail{white-space:pre-wrap}.instruction-content img{max-width:100%;height:auto;border:1px solid #dce5e3;border-radius:10px;margin-top:14px}.instruction-pdf{display:block;padding:12px;margin:12px 0;border:1px solid #c5d9d3;border-radius:12px}.instruction-pledge{display:flex;align-items:flex-start;gap:10px;margin-top:22px;padding:14px;background:#eff7f3;border-radius:12px;font-weight:600;line-height:1.8}.instruction-pledge input{min-width:20px;width:20px;height:20px;flex-shrink:0}.instruction-dialog footer{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}.instruction-dialog footer button{flex:1;min-width:130px;min-height:48px;padding:11px;border-radius:12px;font:inherit}.instruction-dialog button:disabled{opacity:.45}.instruction-feedback{position:fixed;bottom:90px;left:14px;right:14px;z-index:75;padding:14px;border-radius:12px;background:#173d39;color:white;max-width:600px;margin:auto;box-shadow:0 8px 30px #0003}.instruction-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.instruction-choices{display:flex;flex-wrap:wrap;gap:10px}.instruction-choice{display:flex!important;align-items:center;gap:8px;padding:10px 12px;background:#f3f7f6;border:1px solid #d7e4df;border-radius:12px}.instruction-choice input{width:18px!important;min-height:18px!important;margin:0}.instruction-management form{display:grid;gap:18px}.instruction-management fieldset{border:1px solid #d8e4e0;border-radius:14px;padding:16px}.instruction-management legend{font-weight:600}.instruction-management textarea{min-height:140px}.instruction-management input,.instruction-management select,.instruction-management textarea{box-sizing:border-box;width:100%;min-height:44px}.instruction-list-item{margin:18px 0}.instruction-ack{padding:12px;background:#eef8f1;border-radius:12px;color:#176442}@media(max-width:560px){.instruction-form-grid{grid-template-columns:1fr}.instruction-dialog{padding:20px}.instruction-dialog h2{font-size:21px}}

.tenant-brand-image{object-fit:contain!important;max-width:180px;max-height:68px;width:auto;height:auto}.tenant-brand-fallback{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;font-weight:700;line-height:1.5;color:inherit}.employee-head .tenant-brand-image{max-width:110px;max-height:58px}.sidebar-head .tenant-brand-image{max-width:155px;max-height:68px}.instruction-company-brand{display:flex;justify-content:center;align-items:center;margin-bottom:12px}.instruction-company-logo{max-width:180px;max-height:85px;object-fit:contain}.instruction-issuer{font-weight:700;color:#17655e;margin-bottom:12px!important;}

/* One employee identity: rating in the name/photo card, details expand in place. */
.self-profile .identity-card.is-compact{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;overflow:hidden}
.self-profile .identity-rating{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;line-height:1.6}
.self-profile .identity-rating small{flex-basis:100%;font-size:.72rem;color:#d4deeb}
.self-profile .identity-rating-empty{font-size:.75rem}
.identity-details{grid-column:1/-1;display:grid;gap:8px;border-top:1px solid #ffffff30;padding-top:14px;min-width:0}
.identity-details h3{font-size:1rem;margin:0;color:#fff}.identity-details a{justify-self:start}.identity-details span{overflow-wrap:anywhere}
@media(max-width:480px){.self-profile .identity-card.is-compact{grid-template-columns:auto minmax(0,1fr)}.self-profile .identity-open{grid-column:2;justify-self:start;margin:0;min-height:40px}.self-profile .identity-portrait{grid-row:1/3;height:100%;max-height:190px}.self-profile .identity-rating span{white-space:nowrap}}
.self-profile .identity-card .identity-open{background:#34485e!important;color:#fff!important;border:1px solid #8fa5bd!important;box-shadow:none!important}

.self-profile .identity-card.is-compact{display:block;padding:0!important}
.self-profile .identity-card .identity-profile-toggle{display:flex!important;align-items:center;gap:18px;width:100%;margin:0!important;padding:14px 18px!important;background:transparent!important;border:0!important;border-radius:0!important;text-align:start;box-shadow:none!important;color:#fff!important;font:inherit}
.self-profile .identity-profile-toggle:focus-visible{outline:3px solid #e6c38d;outline-offset:-4px}
.self-profile .identity-profile-toggle .identity-card-content{flex:1}
.self-profile .identity-profile-toggle .identity-portrait{align-self:stretch;margin:-14px -18px -14px 0;width:86px;min-height:112px;max-height:150px}
.self-profile .identity-details{margin:0 18px 18px;padding-top:14px}

/* Field portal: company header, always-open identity, compact operational controls. */
.field-layout .product-navigation>summary{display:flex!important;align-items:center;gap:12px;background:#fff;min-height:64px;padding:10px 18px}
.field-company-heading{display:flex;flex:1;align-items:center;justify-content:space-between;gap:14px;min-width:0;color:#263347}
.field-company-heading strong{font-weight:700;font-size:1.08rem;line-height:1.5}.field-company-heading img{width:58px;height:44px;object-fit:contain}
.field-layout .employee-head{min-height:0!important;height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:visible}
.field-layout .employee-head>[hidden]{display:none!important}.field-layout .self-profile{margin-top:8px;margin-bottom:14px}
.field-layout .identity-card.field-identity{background:var(--profile-background,#353b40);border-top:5px solid var(--profile-accent,#d0a047);border-bottom:3px solid var(--profile-accent,#d0a047);border-radius:16px;min-height:156px;padding:16px;gap:16px}
.field-layout .field-identity h2,.field-layout .field-identity .identity-number{color:var(--profile-accent,#d0a047)}
.field-layout .field-identity .identity-portrait{width:98px;min-height:150px;max-height:190px;margin:-16px -16px -16px 0}
.field-layout .field-identity .identity-rating{font-size:.84rem}.field-layout .field-identity .identity-rating small{color:#e4e8ed}
.field-layout .field-identity .identity-card-content>a,.field-layout .field-identity .identity-card-content>span[dir]{font-size:.75rem}
.field-layout #personal-action-summary{display:none!important}
.field-duty-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.field-duty-heading h1{flex:1;margin:0!important;font-size:1.3rem!important}
.field-layout .field-duty-heading .sos{display:flex;align-items:center;gap:5px;background:#a6313c!important;color:#fff;border:1px solid #d9757e;border-radius:12px;min-height:42px;padding:7px 10px;white-space:nowrap;font-size:.8rem}
.field-duty-heading .sos svg{width:25px;height:25px}.field-duty-heading .sos:disabled{opacity:.5}
.field-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.field-layout .field-shortcuts>a{display:flex;justify-content:center;align-items:center;min-height:52px;border-radius:14px;background:#205f56!important;color:#fff!important;border:1px solid #377e72}
.field-layout .has-pending{background:#a6313c!important;color:#fff!important;border-color:#a6313c!important}
.field-layout .field-chat-dock .chat-bubble{width:126px!important;height:46px!important;border-radius:14px!important;display:flex!important;gap:8px;justify-content:center;background:#205f56!important;color:#fff!important}
.field-chat-dock .chat-bubble svg{background:#fff;color:#205f56;border-radius:6px;width:27px;height:27px;padding:3px}.field-chat-label{font-size:.95rem}
.field-schedule-document{width:min(980px,96vw);max-height:90dvh;overflow:auto;border:0;border-radius:18px;padding:20px}.field-schedule-document::backdrop{background:#10282799}
.field-layout #employee-nav button{font-size:.8rem;white-space:normal;line-height:1.4}
@media(max-width:700px){.field-layout .product-navigation{background:#fff}.field-layout .product-navigation>summary{padding-inline-end:16px}.field-layout .employee-shell{padding-top:76px}.field-layout .identity-card.field-identity h2{font-size:1rem}.field-layout .self-profile{margin-top:0}.field-layout .field-identity .identity-card-content{gap:2px}}

.field-bottom-nav{position:fixed;bottom:0;inset-inline:0;display:flex;justify-content:space-around;gap:4px;padding:10px 8px calc(10px + env(safe-area-inset-bottom));background:#1c2a3c;z-index:50}.field-bottom-nav a{font-size:.8rem;color:#fff;text-decoration:none;padding:8px}.field-layout:has(.field-bottom-nav){padding-bottom:90px}.tracking-enable-sound{display:block;margin:12px auto 0;min-height:44px}.field-layout .product-navigation>.product-brand,.field-layout .product-navigation>.product-role{display:none}

.field-layout .field-identity h2{color:#fff!important}.field-layout .field-identity .identity-number{color:#efd08d!important}
.field-layout .employee-head{margin-bottom:0!important}.field-layout #feedback:empty{display:none}.field-layout .employee-shell{padding-top:96px!important}
@media(min-width:1001px){.field-layout .employee-shell{padding-top:20px!important}}

/* Edge geometry follows the work-card artwork: angled gold top, dark right edge,
   lower left L and paired right diamonds. The middle stays clear for identity. */
.field-layout .identity-card.field-identity{isolation:isolate;background:#fff!important;border:0!important;color:#263347;border-radius:12px;padding:26px 28px!important;min-height:220px}
.profile-card-frame{position:absolute;inset:0;pointer-events:none;z-index:-1}.profile-card-frame svg{width:100%;height:100%;display:block}
.field-layout .field-identity h2{color:#202c37!important}.field-layout .field-identity p,.field-layout .field-identity .identity-rating small{color:#425366!important}.field-layout .field-identity .identity-number{color:#7f5c1b!important}
.field-layout .field-identity .identity-card-content>a,.field-layout .field-identity .identity-card-content>span[dir]{color:#243c53!important}
.field-layout .field-identity .identity-portrait{width:90px;min-height:140px;height:145px;max-height:160px;margin:0;align-self:flex-start;border-radius:8px!important}
.profile-custom-frame{width:100%;height:100%;object-fit:fill;clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,7% 7%,7% 97%,93% 97%,93% 7%,7% 7%)}

.field-layout .employee-head{display:none!important}.field-layout .employee-shell{padding-top:14px!important}
.field-utility-actions{display:flex;gap:12px;padding:14px 0}
.field-layout .field-utility-actions :is(.product-refresh,.product-logout,.product-back){position:static!important;inset:auto!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-height:44px!important;border-radius:12px!important;margin:0!important}
.field-layout .field-utility-actions svg{width:24px;height:24px}

/* Revised proportions: visible tracking strip, portrait status and centered duty heading. */
.field-layout .employee-shell{padding-top:32px!important}
.field-layout .self-profile{margin-bottom:24px!important}
.field-layout .field-identity{padding-inline-end:62px!important;gap:12px!important}
.field-photo-column{display:flex;flex-direction:column;align-items:center;align-self:flex-start;gap:10px;flex:0 0 90px}
.field-layout .field-photo-column #field-network-status{margin:0!important;padding:0!important;font-size:.72rem;line-height:1.6;text-align:center;max-width:100%;overflow-wrap:anywhere}
.field-layout .field-photo-column .field-sync-details{font-size:.7rem!important;padding:5px!important;min-height:34px!important}
.field-profile-controls{position:absolute;inset-inline-end:15px;top:30px;display:flex;flex-direction:column;gap:12px;z-index:1}
.field-layout .field-profile-controls :is(.product-refresh,.product-logout){position:static!important;inset:auto!important;display:grid!important;place-items:center;width:34px!important;height:34px!important;min-height:34px!important;padding:5px!important;border-radius:9px!important;margin:0!important;font-size:22px!important}
.field-layout .field-profile-controls .product-refresh svg{width:23px;height:23px}
.field-layout .field-duty-heading{display:grid!important;grid-template-columns:minmax(70px,.8fr) minmax(0,2fr) minmax(72px,.8fr);align-items:center;gap:10px;margin:0 0 20px}
.field-layout .field-duty-heading .duty-status{position:static!important;display:inline-flex;justify-content:center;align-items:center;justify-self:start;max-width:100%;font-size:.7rem;line-height:1.5;padding:8px 9px;border-radius:20px}
.field-layout .field-duty-heading h1{text-align:center;font-size:1.1rem!important;line-height:1.7!important}
.field-layout .field-duty-heading .sos{justify-self:end;font-size:.73rem;padding:7px!important;gap:3px;min-height:42px!important}
.field-layout .field-duty-heading .sos svg{width:22px;height:22px}
.field-layout .duty-times{display:flex!important;flex-direction:column;align-items:center;gap:14px;margin:8px 0 20px;text-align:center}
.field-layout .duty-times p{display:flex;flex-direction:column;gap:6px;margin:0;text-align:center;align-items:center}
.field-layout .duty-times time{display:block;font-size:1rem;line-height:1.8;direction:rtl}
.field-layout #employee-nav [data-id=supervisor],.field-layout .field-bottom-nav a[data-field-supervisor]{background:#efd08d!important;color:#203d38!important;border:2px solid #fff!important;box-shadow:0 0 0 2px #d0a04744!important;border-radius:12px!important;font-weight:700!important}
@media(max-width:380px){.field-layout .field-duty-heading{gap:6px;grid-template-columns:64px minmax(0,1fr) 68px}.field-layout .field-duty-heading h1{font-size:.96rem!important}.field-layout .field-identity{padding-inline:18px 52px!important}.field-photo-column{flex-basis:78px}.field-layout .field-photo-column .identity-portrait{width:78px;height:130px}}

.field-layout .field-photo-column .profile-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:90px;min-height:140px;border:2px dashed #a9b8c3;border-radius:8px;background:#f4f7f9;color:#294b60;text-decoration:none;text-align:center;padding:8px;font-size:.75rem;line-height:1.5}
.profile-photo-empty svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2}.profile-photo-empty small{font-size:.64rem}.profile-photo-empty:focus-visible{outline:3px solid #d0a047;outline-offset:3px}

.field-layout .duty-times{align-items:flex-start!important;width:fit-content;max-width:100%;margin-inline-start:0!important;margin-inline-end:auto!important;min-width:120px}
.field-layout .duty-times p{width:100%;text-align:center}
.field-notification-dock{position:fixed;inset-inline-start:14px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:70}
.field-notification-button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:126px;height:46px;min-height:46px;border-radius:14px;border:0;background:#205f56;color:#fff;font:inherit;box-shadow:0 8px 26px #15254235}
.field-notification-button svg{width:27px;height:27px;padding:3px;border-radius:6px;background:#fff;color:#205f56}.field-notification-button .chat-count{background:#c12a43;color:#fff}
.notification-select{display:flex;align-items:center;gap:8px;font-size:.85rem;margin-bottom:8px}.notification-select input,.inbox-notification-list input[type=checkbox]{width:20px;height:20px}

body.field-layout .field-profile-controls #refresh{position:static!important;inset:auto!important;width:34px!important;height:34px!important;min-height:34px!important;padding:5px!important;border-radius:9px!important}
.product-page.field-layout .employee-shell #employee-nav button[data-id=supervisor]{background:#efd08d!important;color:#203d38!important;border:2px solid #fff!important;font-weight:700!important;border-radius:12px!important;box-shadow:0 0 0 2px #d0a04744!important}

.field-profile-controls .product-logout svg{width:22px;height:22px}

html:has(body.field-layout){
  --field-dock-bottom:calc(78px + env(safe-area-inset-bottom));
  --field-dock-height:46px;
  scroll-padding-block-end:calc(var(--field-dock-bottom) + var(--field-dock-height) + 8px);
}
.field-layout .field-notification-dock,.field-layout .field-chat-dock{bottom:var(--field-dock-bottom)!important}
.field-layout .field-chat-dock:has(.chat-dock-window:not([hidden])){z-index:71}
.field-layout .field-chat-dock .chat-dock-window:not(.is-fullscreen){
  max-height:calc(100dvh - var(--field-dock-bottom) - max(8px,env(safe-area-inset-top)));
}
/* Keep the duty badge on one line and leave space for the centered site name. */
.field-layout .field-duty-heading{grid-template-columns:max-content minmax(0,1fr) max-content;gap:8px}
.field-layout .field-duty-heading .duty-status{white-space:nowrap;font-size:.66rem;padding:8px 9px;max-width:none}
.field-layout .field-duty-heading h1{font-size:.92rem!important;line-height:1.55!important;overflow-wrap:anywhere}
@media(max-width:380px){.field-layout .field-duty-heading{grid-template-columns:max-content minmax(0,1fr) max-content;gap:5px}.field-layout .field-duty-heading h1{font-size:.82rem!important}.field-layout .field-duty-heading .duty-status{font-size:.61rem;padding:7px}}
/* The notification dialog owns focus and controls while open. */
body:has([data-notification-panel]) > .chat-dock,
body:has([data-notification-panel]) > .field-notification-dock{visibility:hidden}

/* In-page back actions stay with their content, clear of the floating docks. */
.field-layout #view .return-arrow{position:static!important;inset:auto!important;display:inline-grid;place-items:center;margin:0 0 14px!important;z-index:auto;vertical-align:middle}
.field-layout #view .return-arrow[hidden]{display:none!important}

.tracking-security-actions button:not(.tracking-security-good):not(.tracking-security-sos){color:#165447;background:#f4faf7;grid-column:1/-1}

.tracking-security-alert[data-inline-duty],.tracking-security-alert[data-inline-inbox]{position:static;inset:auto;width:100%;max-width:none;margin:12px 0;padding:12px;box-shadow:none}.tracking-security-alert[data-inline-duty] .security-beacon{display:none}

/* Field forms must remain tappable when scrolling back to their first control. */

@media(max-width:1000px){
  html:has(body.field-layout .product-navigation){scroll-padding-block-start:calc(96px + env(safe-area-inset-top))}
}

.manager-dashboard #personal-action-summary{margin-block:18px;max-inline-size:100%;box-sizing:border-box}.manager-action-summary summary{cursor:pointer;font-weight:600;padding:12px;font-size:1rem}.manager-action-summary .portal-item{margin-block:12px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.manager-action-summary .portal-item>div{min-inline-size:0;flex:1 1 200px}.manager-action-summary .action-context{font-size:.85rem;color:#52646b;overflow-wrap:anywhere}.manager-dashboard :is(.product-logout,.product-refresh,.product-back){position:static!important;inset:auto!important;flex:none;width:40px!important;height:40px!important;min-height:40px!important;margin:4px!important}.manager-dashboard .topbar{flex-wrap:wrap}.manager-dashboard{padding-block-end:80px}.manager-dashboard .self-profile{margin-block:12px}
