.settings-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.settings-group h2{font-size:16px;margin:0 0 12px;color:#223d37}.settings-group .settings-list{margin:0;border:1px solid #d8e4df;border-radius:18px;overflow:hidden;background:#fff}.settings-group .settings-row{padding:18px;min-height:70px}.settings-group .settings-row:hover{background:#edf7f3}.settings-group .settings-row:active{background:#d9eee7}.settings-group .settings-row:focus-visible{outline:3px solid #00a58d;outline-offset:-4px}.planning-options{border:1px solid #d8e4df;border-radius:14px;margin:16px 0;background:#f8fbf9}.planning-options>summary{padding:16px;cursor:pointer;font-weight:650;color:#176b5c;min-height:48px}.planning-options[open]{padding:0 16px 16px}.planning-options[open]>summary{margin:0 -16px}.planning-options:has(:invalid){border-color:#b6752e}.job-context-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.unified-job-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.unified-job-heading h2{font-size:25px;line-height:1.2;margin:6px 0}.unified-job-meta{color:#526d65;font-size:14px}.unified-job-services{background:#eef8f4;padding:18px;border-radius:16px;margin:18px 0}.unified-job-services h3{margin:0 0 8px}.unified-job-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.unified-job-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.unified-job-photos figure{margin:0}.unified-job-photos figcaption{font-size:12px;color:#526d65}.unified-job-note{padding:12px 0;border-bottom:1px solid #e0e8e3}.unified-job-note small{display:block;color:#526d65}.equipment-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.equipment-state{font-size:12px;font-weight:650;border-radius:20px;padding:5px 10px;background:#e9f4ef;color:#23634e}.equipment-state.is-held{background:#fff0db;color:#8a530d}.equipment-booking{padding:12px;border-radius:10px;background:#f3f7f5;margin:8px 0}.equipment-actions{display:flex;flex-wrap:wrap;gap:8px}.workspace-empty{padding:24px;text-align:center;color:#526d65;border:1px dashed #c8dcd3;border-radius:14px}body[data-workspace-role="Employee"] #desktop-nav [data-live-page="properties"],body[data-workspace-role="Employee"] #desktop-nav [data-live-page="team"],body[data-workspace-role="Employee"] #mobile-nav [data-live-page="properties"],body[data-workspace-role="Employee"] #mobile-nav [data-live-page="team"],body[data-workspace-role="Employee"] .dispatch-launcher,body[data-workspace-role="Employee"] .work-tools-launcher{display:none!important}body[data-workspace-role="Employee"] #mobile-nav{grid-template-columns:repeat(3,1fr)}@media(max-width:720px){.settings-groups{grid-template-columns:1fr;gap:22px}.settings-group .settings-row{padding:16px}.planning-options input,.planning-options select,.planning-options textarea{font-size:16px}.unified-job-heading h2{font-size:22px}.job-context-actions>.secondary{flex:1;min-width:120px}#job-details-dialog{padding:20px;width:calc(100% - 20px);max-height:calc(100dvh - 20px)}}@media(prefers-reduced-motion:reduce){.settings-row,.planning-options{transition:none!important}}
.unified-job-photos button{padding:0;border:0;background:transparent;border-radius:10px;cursor:pointer;width:100%}.unified-job-photos button:focus-visible{outline:3px solid #00a58d;outline-offset:3px}#job-photo-viewer{width:min(900px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:22px}#job-photo-viewer>img{display:block;width:100%;max-height:75dvh;object-fit:contain}#job-photo-viewer>.icon-button{display:block;margin-left:auto}
.job-context-actions>.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 14px;border:1px solid #d6e3dd;border-radius:12px;color:#176b5c;background:#f8fbf9;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;text-align:center}.job-context-actions>.secondary:hover{background:#e8f4ee}.job-context-actions>.secondary:active{background:#d6eae0}.job-context-actions>.secondary:focus-visible{outline:3px solid #00a58d;outline-offset:2px}#job-details-dialog .icon-button{width:44px;min-width:44px;height:44px;font-size:25px;border-radius:50%;background:#f0f6f3;color:#355b50}#job-details-dialog .icon-button:active{background:#d7eae1}
#work-tools-dialog [hidden]{display:none!important}

/* A consistent, touch-friendly finish for the workday screens. */
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) :is(.primary,.secondary){min-height:46px;padding:12px 16px;border-radius:12px;font-size:14px;font-weight:650;line-height:1.35;white-space:normal;text-align:center;text-decoration:none;gap:8px;transition:background-color .14s,border-color .14s,box-shadow .14s,transform .1s}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) .primary{background:#007e70;border-color:#007e70;color:#fff;box-shadow:0 2px 4px #003b3312}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) .secondary:not(.danger){background:#fff;border-color:#cadbd5;color:#176355;box-shadow:none}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) :is(.primary,.secondary):focus-visible{outline:3px solid #008e7e;outline-offset:3px}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) .primary:active:not(:disabled){background:#005c52;border-color:#005c52;transform:translateY(1px)}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) .secondary:active:not(:disabled){background:#dcefe8;border-color:#97bdb0;transform:translateY(1px)}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) :is(.primary,.secondary):disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) [aria-busy="true"]{cursor:progress}
.stop-list{gap:16px}.stop-card{border:1px solid #d6e2dc;border-radius:18px;box-shadow:0 3px 14px #163b2e05}.stop-main{padding:20px;gap:14px}.stop-title-row{gap:8px;flex-wrap:wrap}.stop-title{font-weight:700;line-height:1.35}.stop-address{line-height:1.6;margin-top:3px}.stop-meta{line-height:1.6;gap:8px;flex-wrap:wrap}.stop-detail{padding:20px;background:#f8fbfa}.stop-detail .detail-actions{gap:10px}.stop-card>.job-checklist{margin:0 18px 18px;padding:14px 16px;border-color:#dce9e2;background:#f7faf8;border-radius:13px}.stop-card>.job-checklist label+label{border-top:1px solid #e5eee8}.stop-card[data-next-stop="true"]{border-color:#79c7b8;border-inline-start:4px solid #008a77;box-shadow:0 4px 18px #007e700a}.next-stop-tag{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border-radius:6px;background:#ddf4ec;color:#086354;font-size:10px;font-weight:750;letter-spacing:.7px;text-transform:uppercase;margin-bottom:4px}.status-select{border:1px solid #cbdcd4;border-radius:11px;background-color:#f8fbfa;font-weight:600;min-height:46px}.is-complete{border-color:#d5e6dd}.is-complete .stop-title{color:#48675b}
.crew-focus{position:relative;background:linear-gradient(115deg,#ecf9f3,#fff);border:1px solid #b4dacd;border-inline-start:4px solid #008a77;border-radius:20px;padding:24px;margin-bottom:22px;box-shadow:0 5px 24px #163b2e06}.crew-focus .eyebrow{color:#486d5f;font-size:11px;font-weight:650;letter-spacing:.4px}.crew-focus h2{font-size:12px;line-height:1.5;letter-spacing:1px;text-transform:uppercase;color:#007464;margin:18px 0 5px}.crew-focus h3{font-size:26px;line-height:1.2;letter-spacing:-.6px;color:#192e27;margin:5px 0 12px}.crew-focus p{color:#49665a;font-size:14px;margin:8px 0 14px}.crew-focus .primary,.crew-focus .secondary{margin:8px 8px 8px 0;min-height:48px}.crew-focus .focus-progress{border-top:1px solid #cfe4d9;padding-top:14px;margin:16px 0 0;font-size:12px;color:#49665a}.daily-crew-today{border-radius:14px;padding:15px 18px;margin-bottom:14px}
@media(hover:hover){:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) .primary:hover:not(:disabled){background:#00685d;border-color:#00685d}:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) .secondary:hover:not(:disabled){background:#edf7f2;border-color:#9cc6b8}.stop-card:hover{border-color:#a8cbbd}}
@media(max-width:720px){.stop-list{gap:14px}.stop-main{display:grid;grid-template-columns:minmax(0,1fr) 108px;padding:17px 15px;gap:12px}.stop-main>.stop-index{display:none}.stop-body{grid-column:1;min-width:0}.stop-main>.status-select{grid-column:2;width:108px;align-self:center;margin:0;font-size:12px}.stop-title{font-size:17px;padding:0;min-height:32px}.stop-address{font-size:12px}.stop-meta{font-size:12px}.stop-detail{padding:17px 15px}.stop-card>.job-checklist{margin:0 14px 14px;padding:12px}.stop-card>.job-checklist label{padding:10px 0;min-height:48px}.crew-focus{padding:20px 18px}.crew-focus h3{font-size:24px}.crew-focus .primary,.crew-focus .secondary{display:flex;width:100%;margin:9px 0;justify-content:center}.detail-actions>.primary,.detail-actions>.secondary{flex:1 1 140px}}
@media(max-width:360px){.stop-main{grid-template-columns:minmax(0,1fr)}.stop-main>.status-select{grid-column:1;width:100%}.crew-focus h3{font-size:22px}}
@media(prefers-reduced-motion:reduce){:where(.workspace-shell,#editor,#job-details-dialog,#work-tools-dialog,#dispatch-dialog) :is(.primary,.secondary){transition:none;transform:none!important}}
/* A restrained separator keeps the sticky banner distinct while content scrolls. */
header.topbar{border-bottom:2px solid #b5c9c1;box-shadow:0 3px 8px #163b2e0a}
/* Schedule-only cleanup: keep core actions prominent and advanced planning
   behind one accessible disclosure. No global header/card/theme changes. */
.schedule-workspace .schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;position:relative;isolation:isolate;z-index:3}
.schedule-workspace .schedule-mode{flex:0 1 auto;display:flex;gap:4px;min-width:0;margin:0}
.schedule-workspace .schedule-mode button{min-height:44px;padding:10px 18px;flex:none}
.schedule-workspace .schedule-planning-menu{position:relative;flex:0 0 auto}
.schedule-workspace .schedule-planning-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:44px;margin:0;font-size:13px;white-space:nowrap}
.schedule-workspace .schedule-planning-menu>summary::-webkit-details-marker{display:none}
.schedule-workspace .schedule-planning-menu>summary:focus-visible{outline:3px solid var(--ap-focus,#007e70);outline-offset:3px}
.schedule-workspace .schedule-planning-menu>summary:active{background:var(--ap-soft,#e8f7f2)}
.schedule-workspace .schedule-planning-menu[open]>summary{border-color:var(--ap-accent,#007e70)}
.schedule-workspace .schedule-planning-menu .planning-actions{position:absolute;right:0;top:calc(100% + 8px);width:min(280px,calc(100vw - 36px));padding:10px;display:grid;grid-template-columns:1fr;gap:6px;background:var(--ap-surface,#fafffc);border:1px solid var(--ap-line,#c9ded5);border-radius:16px;box-shadow:0 12px 32px #173c3624}
.schedule-workspace .schedule-planning-menu:not([open]) .planning-actions{display:none}
.schedule-workspace .schedule-planning-menu .planning-actions button{width:100%;justify-content:flex-start;white-space:normal;min-height:46px;text-align:left;padding:11px 13px;flex:none}
.schedule-workspace .schedule-period{display:grid;grid-template-columns:46px minmax(140px,220px) 46px;gap:8px;align-items:center;margin:0 0 16px}
.schedule-workspace .schedule-period input{max-width:none;width:100%;min-width:0;min-height:46px;text-align:center;box-sizing:border-box;margin:0}
.schedule-workspace .schedule-period button{width:46px;min-height:46px;padding:0;font-size:24px;line-height:1;margin:0}
.schedule-workspace .period-heading{margin:12px 0 16px}
@media(max-width:720px){
 .schedule-workspace .page-heading{margin-bottom:20px}
 .schedule-workspace .page-heading .heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;justify-content:stretch;width:100%;margin-top:8px}
 .schedule-workspace .page-heading .heading-actions>button{width:100%;min-width:0;min-height:46px;white-space:normal;padding:12px 10px;margin:0;font-size:14px}
 .schedule-workspace .page-heading .heading-actions>button:only-child{grid-column:1/-1}
 .schedule-workspace .schedule-toolbar{width:100%;gap:8px;flex-wrap:nowrap}
 .schedule-workspace .schedule-mode button{padding:9px 14px;font-size:13px;min-width:0}
 .schedule-workspace .schedule-planning-menu>summary{padding:10px 12px;font-size:13px}
 .schedule-workspace .schedule-period{grid-template-columns:46px minmax(0,1fr) 46px;width:100%;gap:8px;margin-bottom:14px}
 .schedule-workspace .schedule-period input{font-size:16px;padding:9px 8px}
 .schedule-workspace .filters{margin-bottom:10px}
 .schedule-workspace .period-heading{font-size:16px;margin:10px 0 14px}
}

/* Mobile Today: one balanced, full-width date navigation row in both modes. */
@media(max-width:720px){
 .workspace-shell main>.day-controls{display:grid;grid-template-columns:46px minmax(0,1fr) 46px minmax(68px,.42fr);align-items:stretch;width:100%;gap:8px}
 .workspace-shell main>.day-controls>button,.workspace-shell main>.day-controls>input{width:100%;min-width:0;max-width:none;min-height:48px;margin:0;box-sizing:border-box}
 .workspace-shell main>.day-controls>input{padding:10px 6px;text-align:center;font-size:16px}
 .workspace-shell main>.day-controls>button:first-child,.workspace-shell main>.day-controls>button:nth-child(3){width:100%;padding:0;font-size:24px}
 .workspace-shell main>.day-controls>button:last-child{padding:10px 8px;white-space:nowrap}
}
@media(max-width:350px){
 .workspace-shell main>.day-controls{grid-template-columns:44px minmax(0,1fr) 44px 64px;gap:6px}
 .workspace-shell main>.day-controls>input{padding:10px 2px;font-size:15px}
}

/* Native disclosure keeps urgent work visible without consuming the workday. */
.workspace-shell .attention-panel.attention-disclosure{padding:0;overflow:hidden}
.attention-disclosure>summary{display:flex;align-items:center;gap:10px;min-height:50px;padding:10px 14px;cursor:pointer;list-style:none;user-select:none}
.attention-disclosure>summary::-webkit-details-marker{display:none}
.attention-disclosure>summary::marker{content:''}
.attention-disclosure>summary strong{font-size:15px;line-height:1.35;margin:0}
.attention-alert-icon{width:22px;height:22px;flex:0 0 22px;border:2px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:14px;line-height:1;font-weight:800}
.attention-chevron{width:20px;height:20px;margin-left:auto;flex:0 0 20px}
.attention-disclosure[open]>summary .attention-chevron{transform:rotate(180deg)}
.attention-content{padding:0 14px 14px;border-top:1px solid #ffb3c255}
.attention-content p{margin:10px 0;font-size:13px;line-height:1.5}
.attention-content button{min-height:44px}
html[data-appearance] .workspace-shell .attention-disclosure>summary:focus-visible{outline:3px solid #ffe4ea;outline-offset:-5px;border-radius:10px}
html[data-appearance] .workspace-shell .attention-disclosure>summary:active{background:#ffffff20}
