:root{--paper:#f1f0eb;--panel:#fafaf7;--ink:#202322;--muted:#525d55;--line:#cbd0c9;--dark:#181d1b;--accent:#e47a39;--accent-dark:#913b17;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;font:14px/1.55 Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.65;cursor:default}a{color:var(--accent-dark)}button,input,select,textarea{border:1px solid #a6afa5;border-radius:4px;padding:10px 13px;background:var(--panel);color:var(--ink)}button{min-height:42px;font-weight:600}button.primary{background:var(--accent);border-color:var(--accent);color:var(--dark)}button.danger{color:#983522}input,select,textarea{width:100%;background:white;min-height:43px}textarea{min-height:100px;resize:vertical}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--accent-dark)}label{display:grid;gap:6px;font-size:12px;font-weight:600}h1,h2,h3{line-height:1.2}h1{font-size:32px;margin:0}h2{font-size:22px}p{margin-top:0}small,.muted{color:var(--muted)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}
.login{max-width:450px;margin:8vh auto;padding:30px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.logo{display:block;background:var(--dark);isolation:isolate;line-height:0}.logo img{display:block;width:100%;height:auto;aspect-ratio:5;object-fit:cover;object-position:center 48%;filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}.login .logo{margin:-30px -30px 28px;padding:17px 20px}.login form{display:grid;gap:18px;margin-top:24px}.login .links{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.login .links button{border:0;background:none;padding:0;color:var(--accent-dark);text-decoration:underline}.status{padding:12px;border-left:3px solid var(--accent-dark);background:#f5e5d4;color:#573a22;margin-top:15px}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100dvh;background:var(--dark);padding:24px 16px;color:#f9faf5;overflow:auto}.sidebar nav{display:grid;gap:5px;margin:25px 0}.sidebar nav button{background:none;border:0;color:#e3e8df;text-align:left}.sidebar nav button[aria-current=page]{background:var(--accent);color:var(--dark)}.sidebar p{font-size:12px;color:#bbc5bc}.main{min-width:0}.topbar{position:sticky;top:0;z-index:3;background:var(--panel);border-bottom:1px solid var(--line);padding:12px 25px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.topbar .identity{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:12px}.content{padding:30px;max-width:1600px}.pagehead{display:flex;align-items:start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.pagehead p{margin:8px 0 0;color:var(--muted)}.tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:18px}.tools input,.tools select{width:auto;max-width:100%}.stats,.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:15px;margin-bottom:24px}.stat,.panel,.card{background:var(--panel);border:1px solid var(--line);padding:20px;border-radius:5px;min-width:0}.stat strong{display:block;font-size:27px;margin-top:5px}.card h3{margin-top:0}.card p{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.card .tools{margin:15px 0 0}.pill{display:inline-block;padding:4px 9px;font-size:11px;border-radius:20px;background:#e3e8df;color:#394c38}.pill.warn{background:#f6dfc3;color:#6b451e}.pill.good{background:#deecd8;color:#2a5228}.empty{background:var(--panel);border:1px dashed #a9b2a6;padding:35px;text-align:center;color:var(--muted)}.tablewrap{max-width:100%;overflow:auto;border:1px solid var(--line);background:var(--panel)}table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#e5e8e1;color:#3d4a3d;font-size:12px}td{font-size:13px}td .tools{margin:0}.shift{border-left:3px solid var(--accent);background:var(--panel);padding:15px;margin-bottom:10px}.shift p{margin:5px 0}.weekgrid{display:grid;grid-template-columns:repeat(7,minmax(175px,1fr));min-width:1225px}.weekgrid>section{padding:12px;border-right:1px solid var(--line)}.weekgrid h3{font-size:13px}.day{margin-bottom:24px}.day>h2{font-size:19px;border-bottom:1px solid var(--line);padding-bottom:12px}.mobile-nav{display:none}.notice{padding:15px 20px;background:#e7ebe3;border-left:3px solid #61765c;margin-bottom:20px;color:#3f503b}.toast{position:fixed;bottom:25px;right:20px;z-index:20;max-width:min(450px,90vw);padding:15px 20px;background:var(--dark);color:white;border-radius:5px}.error{color:#913c2c}dialog{width:min(650px,95vw);max-height:90dvh;border:1px solid var(--line);border-radius:6px;padding:0;color:var(--ink);background:var(--panel)}dialog::backdrop{background:#17201488}.dialog-head{position:sticky;top:0;background:#e5e8e1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;z-index:2}.dialog-head h2{margin:0}.dialog-body{padding:24px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:10px}.form-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.dialog-body dl{display:grid;grid-template-columns:100px 1fr;gap:12px}.dialog-body dt{color:var(--muted)}.dialog-body dd{margin:0;overflow-wrap:anywhere}.offline{background:#fff0d9;padding:12px;text-align:center;color:#6b471d}.draft-warning{font-size:12px;color:#6b451e}h1:focus{outline:none}
@media(max-width:750px){.shell{display:block}.sidebar{display:none}.content{padding:22px 15px 110px}.topbar{padding:12px 15px;gap:9px}.topbar strong{font-size:13px}.topbar .identity span{display:none}.topbar .identity{gap:5px}.topbar button{padding:7px;font-size:11px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;overflow-x:auto;background:var(--panel);border-top:1px solid var(--line);padding:8px 5px calc(8px + env(safe-area-inset-bottom));gap:3px}.mobile-nav button{border:0;background:none;flex:1;font-size:11px;padding:8px 9px;white-space:nowrap}.mobile-nav button[aria-current=page]{color:var(--accent-dark);background:#f6e4d7}h1{font-size:27px}.formgrid{grid-template-columns:1fr}.full{grid-column:auto}.login{margin:20px 14px;padding:24px}.login .logo{margin:-24px -24px 25px}.stats{grid-template-columns:1fr 1fr}.stat{padding:15px}.stat strong{font-size:22px}.tools{gap:7px}.tools button{font-size:12px}.tools select{max-width:100%;width:100%}}
@media print{.sidebar,.topbar,.mobile-nav,.tools,.pagehead button{display:none!important}.shell{display:block}.content{padding:0}.panel,.card,.shift{break-inside:avoid}body{background:#fff;color:#000}}
.sheet-filters{display:flex;align-items:end;gap:15px;flex-wrap:wrap;margin-bottom:20px}.sheet-filters>label{flex:1 1 150px}.sheet-filters>label:first-child{flex-basis:230px}.sheet-filters .check{flex:0 1 auto;min-height:43px}.sheet-result-count{font-size:12px}.sheet-grid{border-radius:5px}.sheet-grid table{min-width:850px}.sheet-task-name{min-width:180px;max-width:340px;font-weight:600;overflow-wrap:anywhere}.sheet-grid td{overflow-wrap:anywhere}.sheet-grid td .tools{min-width:145px}.sheet-grid caption{text-align:left;padding:12px;color:var(--muted);font-size:12px}.sheet-grid th{position:sticky;top:0;z-index:1}.sheet-overdue{color:#94351f;font-weight:600}.sheet-board{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:15px;overflow-x:auto;padding-bottom:15px}.sheet-column{background:#e7e9e3;padding:15px;border-radius:5px;border:1px solid var(--line);min-width:0}.sheet-column>h2{display:flex;align-items:center;justify-content:space-between;font-size:16px;margin:0 0 17px}.sheet-column>h2 span{background:var(--panel);padding:4px 9px;border-radius:20px;font-size:12px}.sheet-card{margin-bottom:12px}.sheet-card h3{font-size:17px;overflow-wrap:anywhere}.sheet-card>small{display:block;margin-top:6px}.sheet-card .tools button{font-size:12px}.sheet-filters input,.sheet-filters select{max-width:100%}
@media(max-width:750px){.sheet-filters{padding:15px;gap:12px}.sheet-filters>label:first-child{flex-basis:100%}.sheet-board{grid-template-columns:repeat(4,260px)}.sheet-grid{max-height:65dvh}.sheet-card h3{font-size:18px}}
@media print{.sheet-filters{display:none!important}.sheet-board{display:block;overflow:visible}.sheet-column{margin-bottom:20px}.sheet-grid{overflow:visible;max-height:none}.sheet-grid table{min-width:0;font-size:10px}.sheet-grid td:last-child,.sheet-grid th:last-child{display:none}.sheet-grid th{position:static}}
.dependency-picker{border:1px solid var(--line);border-radius:5px;padding:16px;min-width:0}.dependency-picker legend{font-weight:700;font-size:13px}.dependency-picker .check{padding:8px 0;font-weight:400;overflow-wrap:anywhere}.dependency-picker input{flex:0 0 18px}.dependency-picker p{margin:12px 0 0;font-size:12px}#taskPredecessors{max-height:220px;overflow:auto}.sheet-dependencies{max-width:320px;font-size:12px;overflow-wrap:anywhere}.gantt-controls{align-items:end}.gantt-controls label{min-width:150px}.gantt-scroll{max-width:100%;max-height:70dvh;overflow:auto;border:1px solid var(--line);border-radius:5px;background:var(--panel);margin-bottom:15px}.gantt-canvas{position:relative;min-height:118px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--gantt-day) - 1px),#dce0d8 calc(var(--gantt-day) - 1px),#dce0d8 var(--gantt-day));background-position-x:250px}.gantt-dates{position:sticky;top:0;height:48px;background:#e5e8e1;z-index:5;border-bottom:1px solid var(--line)}.gantt-dates>strong{display:flex;align-items:center;position:sticky;left:0;width:250px;height:48px;padding:12px;background:#e5e8e1;z-index:2}.gantt-dates>span{position:absolute;top:0;height:48px;display:flex;align-items:center;padding-left:5px;font-size:11px;border-left:1px solid var(--line)}.gantt-row{position:absolute;left:0;right:0;border-bottom:1px solid var(--line);display:flex;align-items:center}.gantt-label{position:sticky;left:0;z-index:4;background:var(--panel);width:250px;height:100%;padding:10px 12px;flex:0 0 250px;border-right:1px solid var(--line)}.gantt-label strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.gantt-label small{font-size:10px;display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gantt-bar{position:absolute;top:19px;min-height:30px;height:30px;background:#ad4a1d;border:1px solid #823716;border-radius:4px;color:#fff;padding:3px 8px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:2;text-align:left}.gantt-bar.done{background:#416443;border-color:#2c4a2e}.gantt-bar.review{background:#78601d;border-color:#5d4911}.gantt-bar:focus-visible{z-index:6}.gantt-links{position:absolute;inset:0;pointer-events:none;z-index:3}.gantt-links>path{stroke:#354a3e;stroke-width:1.5;fill:none}.gantt-links marker path{fill:#354a3e}.gantt-today{position:absolute;top:48px;bottom:0;border-left:2px dashed #9c3322;z-index:1;pointer-events:none}.gantt-outside{position:absolute;font-size:11px;color:var(--muted)}
@media(max-width:750px){.gantt-controls{gap:8px}.gantt-controls label{flex:1 1 130px}.gantt-scroll{max-height:65dvh}}
@media print{.gantt-controls{display:none!important}.gantt-scroll{max-height:none;overflow:auto}.gantt-bar{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.gantt-task-open{display:block;max-width:100%;border:0;background:none;padding:0;min-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:12px;color:var(--ink)}
.gantt-canvas{background-position-x:var(--gantt-label)}.gantt-label,.gantt-dates>strong{width:var(--gantt-label);flex-basis:var(--gantt-label)}.gantt-dates>span{white-space:nowrap;font-size:10px;padding-left:2px}
/* Shared signed-in header follows the public site's charcoal/copper branding. */
.topbar{background:var(--dark);color:#f7f5ee;border-bottom:1px solid #454b44;box-shadow:0 3px 12px #00000015}.topbar a{color:#edb084}.topbar .identity{color:#e0e5dc}.topbar button{background:#242b26;border-color:#687268;color:#f7f5ee}.topbar button:hover{background:#354035;border-color:var(--accent)}.topbar .portal-header-brand{width:210px;padding:0;flex:0 0 auto}.topbar .portal-header-brand img{aspect-ratio:5}.topbar .portal-title{font-size:12px;color:#d1d8cd;font-weight:500}.topbar #logoutButton{border-color:#bc764c;color:#ffc7a1}.topbar .portal-home-link{font-size:12px;white-space:nowrap}
@media(max-width:750px){.topbar .portal-header-brand{width:175px}.topbar .portal-title{margin-left:auto;font-size:12px}.topbar .portal-home-link{display:none}.topbar .identity{width:100%;justify-content:flex-end;margin-left:0}.topbar button{min-height:40px;padding:8px 12px}.topbar{gap:8px;padding-top:10px;padding-bottom:10px}}
.calendar-connect-panel{margin-top:22px;max-width:850px}.calendar-connect-panel h2{margin-top:15px}.calendar-connect-panel .notice{overflow-wrap:anywhere}.calendar-connect-panel .tools{margin-top:20px}
.calendar-preview-results{margin-top:20px;display:grid;gap:12px}.calendar-preview-results .card h3{font-size:18px;overflow-wrap:anywhere}

.calendar-sync-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.calendar-sync-record{border-top:1px solid var(--line);padding:16px 0;overflow-wrap:anywhere}.calendar-sync-record p{margin:8px 0}.calendar-sync-record .tools{margin-top:10px}.calendar-sync-grid article{min-width:0}@media(max-width:650px){.calendar-sync-grid{grid-template-columns:1fr}.calendar-connect-panel .tools>button{flex:1 1 145px}}

/* Review-first document capture */
.scan-file{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.scan-file span{overflow-wrap:anywhere;min-width:0}#jobDocumentScanner progress{display:block;width:100%;height:14px;margin:16px 0}#jobDocumentScanner progress[hidden]{display:none}.scan-review-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.scan-review-field{min-width:0}.scan-review-field:last-child{grid-column:1/-1}.scan-review-field small{display:block;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin-top:8px}.scan-review-field>.check{margin-bottom:7px}#jobDocumentScanner details{margin:20px 0}#jobDocumentScanner details summary{cursor:pointer;font-weight:600}#jobDocumentScanner details textarea{margin:12px 0}#jobDocumentScanner [hidden]{display:none!important}@media(max-width:600px){.scan-review-fields{grid-template-columns:1fr}.scan-file{align-items:flex-start}.scan-file button{flex-shrink:0}}

/* Schedule follows the public site's charcoal, copper, cream and Arial design tokens. */
.schedule-page .pagehead{margin-bottom:20px}.schedule-toolbar{padding:20px;margin-bottom:20px}.schedule-navigation .tools{margin:0;gap:8px}.schedule-navigation strong{font-size:16px;margin:0 5px}.schedule-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(145px,1fr) minmax(130px,1fr);gap:15px;margin-top:18px}.schedule-filters input,.schedule-filters select{width:100%;min-width:0}.schedule-publish{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.schedule-publish>label{min-width:155px}.schedule-publish p{flex-basis:100%;font-size:12px;margin:0}.schedule-more{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.schedule-more summary{cursor:pointer;font-weight:600;color:var(--accent-dark);min-height:30px}.schedule-more .tools{margin:12px 0 0}.schedule-stats .stat{border-top:3px solid var(--accent)}.schedule-hours-note{padding:13px 16px;border-left:3px solid var(--accent);background:#f7e9dd;color:#603d25;font-size:13px;margin-bottom:22px}.schedule-day{background:var(--panel);border:1px solid var(--line);border-radius:5px;overflow:hidden;min-width:0;margin:0}.schedule-day-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;background:var(--dark);color:#f7f5ee}.schedule-day-head>div:last-child{display:flex;align-items:center;gap:8px}.schedule-day-head small{color:#ccd3cc;font-size:11px;text-transform:uppercase;letter-spacing:.09em}.schedule-day-head h2{font-size:20px;margin:4px 0 0;color:inherit}.schedule-day-head button{min-height:36px;padding:7px 10px;color:#f7f5ee;background:#2a322d;border-color:#667267}.schedule-day-head button:hover{border-color:var(--accent);color:#ffc8a1}.schedule-today{background:var(--accent);color:var(--dark)}.schedule-day.is-today{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.schedule-day.is-publish-date .schedule-day-head{box-shadow:inset 4px 0 var(--accent)}.schedule-list{display:grid;gap:14px}.schedule-empty{padding:12px 16px;margin:0;color:var(--muted);font-size:13px}.schedule-page .shift{margin:13px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:4px;padding:16px;background:#fff}.schedule-page .shift-time{font-size:19px;letter-spacing:-.02em}.schedule-page .shift>p:first-of-type{font-size:15px;font-weight:600;margin-top:8px}.schedule-page .shift-location{color:var(--accent-dark);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.schedule-page .shift-meta{color:var(--muted);font-size:12px}.schedule-page .shift-instructions{white-space:pre-wrap;overflow-wrap:anywhere}.schedule-page .shift .tools{margin:14px 0 0;gap:7px}.schedule-page .shift .pill:not(.good){background:#f7e9dd;color:#734419}.schedule-page .shift .draft-warning{background:#fbf1e6;padding:9px 11px;margin:10px 0;color:#70471f;font-size:12px}.schedule-scroll-hint{font-size:12px;margin-bottom:8px}.schedule-grid-wrap{border-radius:5px;max-height:75dvh}.schedule-grid-wrap .weekgrid{grid-template-columns:repeat(7,minmax(180px,1fr));min-width:1260px;gap:10px;padding:10px;background:var(--paper)}.schedule-grid-wrap .schedule-day{padding:0;border:1px solid var(--line)}.schedule-grid-wrap .schedule-day-head{padding:12px;min-height:100px;align-items:flex-start;flex-wrap:wrap}.schedule-grid-wrap .shift{margin:10px;padding:12px}.schedule-grid-wrap .shift-time{font-size:16px}.schedule-grid-wrap .shift>p:first-of-type{font-size:13px}.schedule-grid-wrap .shift .tools button{font-size:11px;padding:7px 9px;min-height:34px}.schedule-grid-wrap .schedule-empty{padding:12px;font-size:12px}
@media(max-width:750px){.schedule-toolbar{padding:15px}.schedule-filters{grid-template-columns:1fr 1fr;gap:12px}.schedule-filters>label:first-child{grid-column:1/-1}.schedule-navigation strong{font-size:14px;flex:1 1 140px;text-align:center;order:-1;width:100%;flex-basis:100%;margin:0 0 4px}.schedule-navigation .tools>button{flex:1}.schedule-publish>label{flex:1 1 145px}.schedule-publish>button{flex:1 1 125px}.schedule-stats{grid-template-columns:1fr 1fr;gap:10px}.schedule-day-head{padding:12px}.schedule-page .shift{margin:10px;padding:14px}.schedule-page .shift .tools>button{flex:1 1 115px}.schedule-day-head h2{font-size:19px}.schedule-hours-note{font-size:12px}.schedule-more .tools>button{flex:1 1 130px}}
@media print{.schedule-toolbar,.schedule-hours-note,.schedule-scroll-hint,.schedule-day-head button{display:none!important}.schedule-grid-wrap{max-height:none;overflow:visible;border:0}.schedule-grid-wrap .weekgrid{display:block;min-width:0;padding:0}.schedule-day{margin-bottom:16px;break-inside:avoid}.schedule-day-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}.schedule-page .shift .tools{display:none!important}}

/* Keep portal controls usable across narrow phones, tablets and short landscape windows. */
.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid>*{min-width:0}input,select,textarea{min-width:0;max-width:100%}.pagehead>div{min-width:0}.content h1,.content h2,.content h3,.shift p{overflow-wrap:anywhere}.dialog-head h2{min-width:0;overflow-wrap:anywhere}.dialog-head>button{flex-shrink:0}.topbar .identity{flex-wrap:wrap}.dialog-body details{min-width:0}
@media(max-width:1100px){.schedule-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.schedule-filters>label:first-child{grid-column:1/-1}}
@media(max-width:750px){input,select,textarea{font-size:16px}.formgrid{grid-template-columns:minmax(0,1fr)}button{min-height:44px}.topbar button{min-height:44px}.schedule-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.schedule-filters input,.schedule-filters select{min-width:0;width:100%}.sheet-filters>label{min-width:0}.tools>input,.tools>select{max-width:100%;min-width:0}}
@media(max-width:380px){.schedule-filters{grid-template-columns:minmax(0,1fr)}.schedule-filters>label:first-child{grid-column:auto}.topbar .portal-header-brand{width:155px}.schedule-navigation .tools>button{padding-left:8px;padding-right:8px}.schedule-page .shift .tools>button{flex-basis:100%}}
@media(max-height:500px){.topbar{position:relative}dialog{max-height:94dvh}.dialog-head{padding:12px 18px}.dialog-body{padding:18px}}

.ack-switch{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);min-height:52px}.ack-switch input{width:24px;height:24px;min-height:24px;accent-color:#b95724;flex:none}

/* Portal finishing layer follows the public homepage's restrained typography. */
.content{padding:34px;max-width:1560px}.pagehead{margin-bottom:28px}.pagehead h1{font-size:34px;letter-spacing:-.035em;line-height:1.12}.pagehead p{line-height:1.7;max-width:700px}.panel,.card,.stat,.tablewrap{border-radius:3px;box-shadow:none}.panel,.card{padding:22px}.card h2,.panel h2{font-size:22px;letter-spacing:-.025em;line-height:1.2}.card h3{font-size:18px;line-height:1.25;letter-spacing:-.015em}.stat{padding:20px 22px}.stat small{font-size:11px;text-transform:uppercase;letter-spacing:.06em}.stat strong{font-size:28px;line-height:1.2;margin-top:8px}button{border-radius:3px}.sidebar nav button{min-height:44px}.dialog-head h2{font-size:23px;letter-spacing:-.025em}.tablewrap th{font-size:11px;letter-spacing:.04em}.login{border-radius:3px;box-shadow:none}.schedule-toolbar{padding:22px}.schedule-page .shift{box-shadow:none}@media(max-width:750px){.content{padding:22px 16px}.pagehead h1{font-size:29px}.pagehead{gap:16px;margin-bottom:22px}.panel,.card{padding:18px}.stat{padding:16px}.stat strong{font-size:25px}.schedule-toolbar{padding:15px}.dialog-head h2{font-size:21px}}@media(max-width:380px){.content{padding:20px 12px}.pagehead h1{font-size:27px}}

.employee-email-panel{max-width:820px;padding:32px}.employee-email-mark{color:var(--accent-dark);margin-bottom:24px}.employee-email-kicker{display:block;color:var(--accent-dark);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px}.employee-email-panel h2{font-size:30px;margin:0 0 18px}.employee-email-panel>p{max-width:600px;font-size:15px;line-height:1.8}.employee-email-open{display:inline-flex;align-items:center;gap:30px;padding:13px 22px;min-height:48px;background:var(--accent);color:var(--dark);font-weight:700;text-decoration:none;margin:8px 0 22px;border:1px solid var(--accent)}.employee-email-open:hover{background:#f7985f}.employee-email-panel .employee-email-help{font-size:12px;line-height:1.8;border-top:1px solid var(--line);padding-top:20px;margin:0}.employee-email-open .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:750px){.employee-email-panel{padding:24px}.employee-email-panel h2{font-size:26px}.employee-email-open{width:100%;justify-content:space-between}}

.employee-email-copy{margin:12px 0 0 12px}.employee-email-chrome{margin-top:28px;padding-top:20px;border-top:1px solid var(--line,#52605a);max-width:680px}.employee-email-chrome h3{margin:0 0 12px}.employee-email-chrome ol{padding-left:22px;line-height:1.7}.employee-email-chrome input{display:block;width:100%;margin-top:8px;min-width:0}.employee-email-chrome label{display:block;margin-top:18px}@media(max-width:480px){.employee-email-copy{display:block;margin:12px 0 0;width:100%}}

/* Phone-friendly weekly controls and timesheet entry cards. */
@media(max-width:600px){
 .week-tools>strong,.schedule-navigation .week-tools>strong{order:-1;flex:0 0 100%;text-align:center;margin:0 0 6px}
 .week-tools>button{flex:1 1 auto}
 .week-tools>[data-action="time-pdf"]{flex-basis:100%}
 .timesheet-table{display:block;min-width:0;width:100%}
 .timesheet-table caption{display:block;padding:12px;text-align:left}
 .timesheet-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .timesheet-table tbody,.timesheet-table tr{display:block}
 .timesheet-table tr{padding:12px;border-bottom:2px solid var(--line)}
 .timesheet-table td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:10px 0;min-width:0;overflow-wrap:anywhere}
 .timesheet-table td::before{content:attr(data-label);font-weight:700;color:var(--muted);font-size:12px}
 .timesheet-table td>div{min-width:0}.timesheet-table td:last-child{border-bottom:0}
 .timesheet-table .tools{margin:0;gap:7px}.timesheet-table .tools button{flex:1 1 auto}
 .schedule-more summary{min-height:44px;display:flex;align-items:center}
}
@media(max-width:360px){.topbar .identity{gap:4px;justify-content:space-between}.topbar .identity button{padding:8px;font-size:11px}.schedule-filters{grid-template-columns:minmax(0,1fr)}.schedule-publish>label{min-width:0;width:100%}.schedule-publish>button{flex:1 1 auto}}

@media(max-width:600px){.timesheet-table td[data-label="Actions"]:has(.tools:empty){display:none}}

/* Subtle acknowledgment status and phone-friendly crew selection. */
.pill.ack-complete{border:1px solid #56816a;background:transparent;color:#bdd7c7}.pill.ack-pending{border:1px solid #a65c58;background:transparent;color:#e4b9b5}.shift-crew-list{border:1px solid #46514a;border-radius:8px;padding:12px;max-height:240px;overflow:auto}.shift-crew-list .check{display:flex;gap:10px;align-items:center;min-height:44px;margin:0}.shift-crew-list input{flex:0 0 auto}
/* Job details and private job libraries: spacious phone controls. */
@media(max-width:750px){
 .archive-week-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .archive-week-tools>strong{grid-column:1/-1;grid-row:1;text-align:center;line-height:1.5;padding:8px 0}
 .archive-week-tools>button{width:100%;min-height:48px}
 .archive-week-tools>#archiveToday{grid-column:1/-1}
 .main[data-portal-page="sheets"] .pagehead>.tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;margin:0}
 .main[data-portal-page="sheets"] .pagehead>.tools>button{min-height:48px;width:100%;padding:13px 16px;font-size:14px}
 .sheet-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:18px;margin:24px 0}
 .sheet-filters>label{display:grid;gap:8px;min-width:0;line-height:1.6}
 .sheet-filters>label.check{display:flex;min-height:48px;gap:12px;font-size:14px}
 .sheet-filters input:not([type=checkbox]),.sheet-filters select{width:100%;min-height:48px;font-size:16px}
 .sheet-filters>button{min-height:48px;width:100%;font-size:14px;padding:13px 16px}
 .main[data-portal-page="sheets"] .stats{gap:14px;margin-bottom:24px}
 .sheet-card{padding:18px;margin-bottom:18px}
 .sheet-card h3{font-size:18px;line-height:1.45;margin-bottom:14px;overflow-wrap:anywhere}
 .sheet-card p{font-size:14px;line-height:1.7;margin-bottom:14px}
 .sheet-card>small{line-height:1.6;margin-top:10px}
 .sheet-card>button,.sheet-card .tools button,.sheet-grid td button{width:100%;min-height:48px;padding:13px 16px;font-size:14px;white-space:normal}
 .sheet-card>button{margin-top:18px}
 .sheet-card .tools,.sheet-grid td .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}
 .sheet-grid td:last-child>button{display:block;margin-bottom:12px}
 .sheet-board{max-width:100%;gap:18px;padding-bottom:18px;overscroll-behavior-x:contain}
 .sheet-column{padding:16px}.sheet-column>h2{line-height:1.5;gap:12px}
 .sheet-dependencies{max-width:100%;line-height:1.7}
 .gantt-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}
 .gantt-controls>button{min-height:48px;padding:12px 8px;font-size:14px}
 .gantt-controls>label{grid-column:1/-1;display:grid;gap:8px;min-width:0}
 .gantt-controls input,.gantt-controls select{width:100%;min-height:48px;font-size:16px}
 .gantt-label{padding:10px}
 .gantt-task-open{min-height:48px;font-size:13px;line-height:1.5;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .gantt-label small{font-size:11px;line-height:1.6;margin-top:8px}
 .gantt-bar{top:32px;height:48px;min-height:48px;font-size:12px}
 .sheet-task-form .formgrid{gap:20px}
 .sheet-task-form label{gap:8px;line-height:1.5}
 .sheet-task-form input:not([type=checkbox]),.sheet-task-form select{min-height:48px;font-size:16px}
 .sheet-task-form .form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:24px}
 .sheet-task-form .form-actions>button{min-height:48px;padding:13px 16px;font-size:14px}
 .sheet-task-form .dependency-picker .check{min-height:48px;line-height:1.6;padding:10px 0}
 .dialog-body .sheet-task-detail dl{grid-template-columns:minmax(0,1fr);gap:6px}
 .sheet-task-detail dd{margin-bottom:14px;line-height:1.65}
 .sheet-task-detail>.tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:24px 0}
 .sheet-task-detail>.tools button{min-height:48px;padding:13px 16px;font-size:14px}
}
@media(max-width:750px){
 .job-section-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:0 0 20px;margin-bottom:26px}
 .job-section-tabs>button{width:100%;min-height:48px;padding:13px 16px;font-size:14px}
 .job-detail-view{line-height:1.65}
 .dialog-body .job-detail-view dl{grid-template-columns:minmax(0,1fr);gap:6px}
 .job-detail-view dt{font-size:12px;font-weight:700}
 .job-detail-view dd{margin:0 0 14px}
 .job-detail-view>.tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:24px 0}
 .job-detail-view>.tools>button{min-height:48px;width:100%;padding:13px 16px;font-size:14px}
 #jobWorkspaceContent .panel{margin-bottom:24px}
 #jobWorkspaceContent .tools{gap:12px}
 #jobWorkspaceContent .tools>button,#jobWorkspaceContent [data-bp-remove],#jobPhotoUpload,#bpSave{min-height:48px;padding:13px 16px;font-size:14px;white-space:normal}
 #jobWorkspaceContent .panel>.tools,#jobWorkspaceContent .bp-library-tabs,#bpLibrary .card>.tools,.job-photos .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:20px}
 #jobWorkspaceContent .tools>label{min-width:0;display:grid;gap:8px}
 #jobWorkspaceContent .tools>label select{width:100%;min-height:48px}
 #jobWorkspaceContent [data-bp-remove]{width:100%;margin-top:8px}
 #jobWorkspaceContent .bp-panel #bpEditor>.tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #bpEditor #bpDownload,#bpEditor #bpDownloadAll,#bpEditor #bpCancelBatch{grid-column:1/-1}
 .job-photos form{gap:20px;margin-bottom:28px}
 .job-photos .bp-upload{width:100%;min-width:0;padding:14px}
 .job-photos .bp-upload input{width:100%;min-width:0}
 .job-photos input[type=file]::file-selector-button{min-height:44px;padding:10px;margin-right:8px}
 .job-photo-viewer .tools,.job-photo-confirm .tools,.bp-remove-dialog .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .job-photo-viewer .tools button,.job-photo-viewer .tools a,.job-photo-confirm button,.bp-remove-dialog button{min-height:48px;padding:12px 16px}
}
@media(max-width:600px){
 .job-hours-table{display:block;min-width:0;width:100%}
 .job-hours-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .job-hours-table tbody,.job-hours-table tr{display:block}
 .job-hours-table tr{padding:12px;border-bottom:2px solid var(--line)}
 .job-hours-table td{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;padding:10px 0;overflow-wrap:anywhere}
 .job-hours-table td::before{content:attr(data-label);font-weight:700;color:var(--muted)}
}
/* Give crew scheduling and its admin controls room to breathe on phones. */
.shift-coworkers{margin:18px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.shift-coworkers h3{font-size:14px;margin:0 0 10px}.shift-coworkers ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.shift-coworkers li{line-height:1.5}.shift-coworkers p{font-size:13px;line-height:1.6}
.job-list-card{padding:0;overflow:hidden;background:var(--panel);border:1px solid var(--line)}
.job-entry{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:22px;width:100%;text-align:left;min-height:160px;padding:24px!important;border:0;white-space:normal;background:var(--panel);color:var(--ink)}
.job-entry .job-entry-name{font-size:21px;font-weight:700;line-height:1.4;color:inherit;overflow-wrap:anywhere;text-shadow:none}
.job-entry:hover{background:var(--panel);outline:1px solid var(--accent);outline-offset:-1px}
.job-entry:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
@media(max-width:750px){.job-entry{min-height:145px;padding:20px!important}.job-entry .job-entry-name{font-size:19px}}
@media(max-width:750px){
 .main[data-portal-page="timesheets"] .pagehead .tools{width:100%;margin:0}
 .main[data-portal-page="timesheets"] .pagehead .tools>button{width:100%;min-height:48px;font-size:14px;padding:13px 16px}
 .main[data-portal-page="timesheets"] .week-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px}
 .main[data-portal-page="timesheets"] .week-tools>strong{grid-column:1/-1;grid-row:1;text-align:center;line-height:1.5;padding:8px 0;margin:0}
 .main[data-portal-page="timesheets"] .week-tools>button{width:100%;min-height:48px;padding:13px 10px;font-size:14px;white-space:normal}
 .main[data-portal-page="timesheets"] .week-tools>[data-action="today"],.main[data-portal-page="timesheets"] .week-tools>[data-action="time-pdf"],.main[data-portal-page="timesheets"] .week-tools>[data-action="time-submit-week"]{grid-column:1/-1}
 .main[data-portal-page="timesheets"] .content>.tools{margin-bottom:24px}
 .main[data-portal-page="timesheets"] .tools>label{display:grid;gap:8px;width:100%}
 .main[data-portal-page="timesheets"] .tools select{width:100%;min-height:48px}
 .main[data-portal-page="timesheets"] .stats{gap:14px;margin-bottom:24px}
 #recordDialog:has(#chooseNoWork) .form-actions,#recordDialog:has([name=date]):not(:has([name=break_minutes])) .form-actions{gap:12px}
 #recordDialog:has(#chooseNoWork) .form-actions>button,#recordDialog:has([name=date]):not(:has([name=break_minutes])) .form-actions>button{min-height:48px;padding:12px 16px;flex:1}
 #chooseNoWork{min-height:48px;padding:12px 16px;width:100%;margin-bottom:8px}
}
@media(max-width:600px){
 .timesheet-table tr{padding:16px;margin:0 0 16px;border-bottom:1px solid var(--line)}
 .timesheet-table td{padding:13px 0;line-height:1.6}
 .timesheet-table td[data-label="Actions"]{display:block;padding-top:16px}
 .timesheet-table td[data-label="Actions"]::before{display:block;margin-bottom:12px}
 .timesheet-table .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .timesheet-table .tools button{width:100%;min-height:48px;font-size:14px;padding:13px 16px}
}
@media(max-width:750px){
 .schedule-page>.schedule-navigation{margin:0 0 20px}
 .schedule-navigation .week-tools{gap:10px}
 .schedule-navigation .week-tools>button{min-height:48px;padding:12px 8px}
 .schedule-page .pagehead .tools{margin-bottom:0}
 .schedule-list{gap:18px;margin-bottom:26px}
 .schedule-toolbar{padding:18px;margin-bottom:24px}
 .schedule-filters{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:0}
 .schedule-filters>label:first-child{grid-column:auto}
 .schedule-filters label,.schedule-publish>label{display:grid;gap:8px;min-width:0}
 .schedule-filters input,.schedule-filters select{min-height:48px}
 .schedule-publish{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:24px;padding-top:24px}
 .schedule-publish>label{width:100%;min-width:0}
 .schedule-publish>button{width:100%;min-height:48px;padding:13px 16px;font-size:14px}
 .schedule-publish p{line-height:1.65;margin-top:3px}
 .schedule-more{margin-top:24px;padding-top:18px}
 .schedule-more summary{min-height:48px;padding:4px 0}
 .schedule-more .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:16px}
 .schedule-more .tools>button{width:100%;min-height:48px;padding:13px 16px;font-size:14px;white-space:normal}
 .schedule-page .shift .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:18px}
 .schedule-page .shift .tools>button{width:100%;min-height:48px;padding:12px 16px;font-size:14px}
 .schedule-page .shift .tools>small{line-height:1.6}
 .schedule-day-head{gap:16px;padding:16px}
 .schedule-day-head button{min-height:44px;min-width:64px}
 .schedule-stats{gap:14px;margin-bottom:24px}
 #dialogBody:has(#ackDay)>.tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}
 #dialogBody:has(#ackDay)>.tools>label{grid-column:1/-1;display:grid;gap:8px;width:100%}
 #dialogBody:has(#ackDay)>.tools>label:first-of-type{grid-row:1}
 #dialogBody:has(#ackDay)>.tools>label:last-child{grid-row:3}
 #dialogBody:has(#ackDay)>.tools>button{grid-row:2}
 #dialogBody:has(#ackDay)>.tools>label input{width:100%;min-width:0;min-height:48px}
 #dialogBody:has(#ackDay)>.tools>button{min-height:48px;padding:12px 8px}
 #recordDialog:has([name=break_minutes]) .form-actions{gap:12px}
 #recordDialog:has([name=break_minutes]) .form-actions>button{min-height:48px;flex:1;padding:12px 16px}
}

@media(max-width:750px){.job-team-choice{min-height:48px;gap:12px;padding:12px 0;line-height:1.6}.job-team-choice input{flex:0 0 18px}}

.schedule-page>.schedule-navigation{margin-bottom:20px}
@media(max-width:750px){
 .main[data-portal-page="team"] .pagehead>.tools{width:100%;margin:0}
 .main[data-portal-page="team"] .pagehead button{width:100%;min-height:48px;padding:13px 16px;font-size:14px}
 .main[data-portal-page="team"] .cards{grid-template-columns:minmax(0,1fr);gap:18px}
 .main[data-portal-page="team"] .card{padding:20px}
 .main[data-portal-page="team"] .card h2{font-size:22px;line-height:1.4;overflow-wrap:anywhere;margin-bottom:12px}
 .main[data-portal-page="team"] .card p{font-size:14px;line-height:1.7}
 .main[data-portal-page="team"] .card>.pill{font-size:13px;line-height:1.5;padding:6px 10px;margin:4px 8px 8px 0}
 .main[data-portal-page="team"] .card>button{width:100%;min-height:48px;padding:13px 16px;font-size:14px;margin-top:12px}
 .team-account-form .formgrid,.team-invite-form .formgrid{gap:20px}
 .team-account-form label,.team-invite-form label{gap:8px;line-height:1.6}
 .team-account-form input:not([type=checkbox]),.team-account-form select,.team-invite-form input,.team-invite-form select{font-size:16px;min-height:48px}
 .team-account-form .check{min-height:48px;gap:12px;font-size:14px}
 .team-account-form .form-actions,.team-invite-form .form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:24px}
 .team-account-form .form-actions>button,.team-invite-form .form-actions>button{min-height:48px;padding:13px 16px;font-size:14px}
}
.month-navigation{gap:12px;align-items:end}.month-navigation>strong{align-self:center;font-size:20px}.month-navigation>label{display:grid;gap:8px;min-width:150px}
.schedule-month{margin-bottom:26px}.schedule-month>p{line-height:1.6}
.schedule-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.schedule-month-weekday{text-align:center;color:var(--muted);font-size:12px;font-weight:700;padding:10px 0}
.schedule-month-day{min-width:0;min-height:130px;padding:12px;text-align:left;display:flex;flex-direction:column;align-items:start;gap:7px;background:var(--panel);color:var(--ink);border:1px solid var(--line)}
.schedule-month-day>strong{font-size:18px}.schedule-month-count{font-size:12px;color:var(--accent-dark);font-weight:700}.schedule-month-names{font-size:12px;line-height:1.6;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.schedule-month-empty{font-size:12px;color:var(--muted)}
.schedule-month-day.has-drafts{border-top:3px solid var(--accent)}.schedule-month-day.is-today{box-shadow:inset 0 0 0 1px var(--accent)}.schedule-month-day.is-selected{border-color:var(--accent)}
@media(max-width:750px){.month-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.month-navigation>strong{grid-column:1/-1;grid-row:1;text-align:center;margin:0;padding:8px}.month-navigation>button{min-height:48px;padding:12px 8px;width:100%}.month-navigation>label{grid-column:1/-1;min-width:0}.month-navigation input{width:100%;min-height:48px;font-size:16px}.schedule-month-grid{gap:4px}.schedule-month-day{padding:7px 3px;min-height:76px;gap:8px;align-items:center;text-align:center}.schedule-month-day>strong{font-size:15px}.schedule-month-names,.schedule-month-shift-label{display:none}.schedule-month-weekday{font-size:10px;padding:6px 0}.schedule-month-count{font-size:12px;line-height:1.5}.schedule-month>p{font-size:12px}}
@media print{.schedule-month-day{min-height:95px;break-inside:avoid}.month-navigation>button,.month-navigation>label{display:none}}
.portal-nav-heading{margin:18px 12px 6px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}@media(max-width:750px){.mobile-nav .portal-nav-heading{display:none}.mobile-nav .portal-admin-start{margin-left:12px;border-left:1px solid var(--line);border-radius:0}}
/* Keep the final controls above the fixed phone menu, including Home Screen apps. */
@media(max-width:750px){.main .content{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.topbar button,.mobile-nav button{min-height:44px}input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px}dialog{width:calc(100% - 24px);max-width:650px;max-height:calc(100dvh - 24px)}.dialog-head button{min-width:44px;min-height:44px}.toast{bottom:calc(95px + env(safe-area-inset-bottom))}}
@media(min-width:751px) and (max-width:1024px){.schedule-day-head button{min-height:44px;padding:10px 12px}}
.sheet-job-context{margin-bottom:22px}.sheet-job-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap}.sheet-job-heading h2{margin:8px 0 18px;overflow-wrap:anywhere}.sheet-job-context dl{display:grid;grid-template-columns:125px minmax(0,1fr);gap:10px 16px;line-height:1.7}.sheet-job-context dt{color:var(--muted)}.sheet-job-context dd{margin:0;overflow-wrap:anywhere}.sheet-job-context .tools{margin-top:20px;gap:12px}.sheet-job-context>.muted,.sheet-job-help{font-size:13px;line-height:1.8}.job-task-summary{font-size:13px;line-height:1.8;margin:14px 0}.job-task-panel{padding:20px 0;margin:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.job-task-panel .tools{gap:12px}.job-linked-task{padding:16px;margin-top:14px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.job-linked-task strong{display:block;font-size:15px;line-height:1.6;overflow-wrap:anywhere;margin-bottom:10px}.job-linked-task p{line-height:1.7}.job-linked-task button{margin-top:8px;min-height:44px}@media(max-width:750px){.sheet-job-context dl{grid-template-columns:minmax(0,1fr);gap:6px}.sheet-job-context dd{margin-bottom:12px}.sheet-job-context .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.sheet-job-context button,.job-task-panel button{min-height:48px;width:100%;font-size:14px;padding:12px 16px}.job-task-panel .tools{display:grid;grid-template-columns:minmax(0,1fr)}}

@media(max-width:700px){.week-tools [data-action='time-pdf'],.week-tools [data-action='time-pdf-letter']{grid-column:1 / -1;width:100%;min-height:48px;}}

@media(max-width:700px){.week-tools [data-action='time-pdf-view']{grid-column:1 / -1;width:100%;min-height:48px;}}

.pdf-download-menu{position:relative;display:inline-block;min-width:160px}.pdf-download-menu>summary{list-style:none;cursor:pointer;padding:14px 18px;border:1px solid var(--border,#59665d);border-radius:4px;font-weight:700;min-height:48px;box-sizing:border-box;background:#29382f;color:#fff}.pdf-download-menu>summary::-webkit-details-marker{display:none}.pdf-download-menu>div{position:absolute;top:100%;right:0;z-index:30;display:grid;gap:10px;min-width:220px;padding:12px;background:#181d1b;border:1px solid #59665d;border-radius:6px;box-shadow:0 10px 28px #0008}.pdf-download-menu>div button{width:100%;min-height:48px;white-space:normal}.pdf-download-menu>summary:focus-visible{outline:2px solid #df8b49;outline-offset:3px}
@media(max-width:700px){.week-tools>.pdf-download-menu{grid-column:1 / -1;width:100%}.pdf-download-menu>div{position:static;min-width:0;margin-top:8px}.week-tools>[data-action='today'],.week-tools>[data-action='time-pdf-view']{grid-column:auto;width:100%}}


@media(max-width:700px){.main[data-portal-page='timesheets'] .week-tools>[data-action='today'],.main[data-portal-page='timesheets'] .week-tools>[data-action='time-pdf-view']{grid-column:auto;width:100%;min-height:48px;}}

#archiveResults .card>[data-pdf-layout='view']{vertical-align:top;margin:0 8px 12px 0;min-height:48px}#archiveResults .pdf-download-menu{vertical-align:top;margin-bottom:12px}#archiveResults .card>details:not(.pdf-download-menu){clear:both;margin-top:12px}@media(max-width:700px){#archiveResults .card>[data-pdf-layout='view']{display:block;width:100%;margin:0 0 12px}#archiveResults .pdf-download-menu{display:block;width:100%;min-width:0}#archiveResults .pdf-download-menu>div{position:static;min-width:0;width:100%;box-sizing:border-box}}

.ack-summary details{margin-top:14px;font-size:14px}.ack-summary summary{cursor:pointer;padding:12px;border:1px solid var(--line);border-radius:8px;min-height:44px;line-height:1.4}.ack-summary ul{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}.ack-summary li{overflow-wrap:anywhere;line-height:1.5}.ack-summary p{font-size:14px}.ack-summary{min-width:0}

/* Keep acknowledgment list controls clear of headings, totals and names. */
#ackDailyResults>.stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));align-items:start;gap:16px}
.ack-summary{display:flex;flex-direction:column;gap:12px;padding:18px;min-width:0}
.ack-summary>small{display:block;line-height:1.5;overflow-wrap:anywhere}
.ack-summary>strong{margin:0;line-height:1.2}
.ack-summary details{margin:0;min-width:0}
.ack-summary summary{box-sizing:border-box;width:100%;min-height:44px;padding:11px 14px;line-height:1.5;font-size:14px;white-space:normal;letter-spacing:normal;text-transform:none}
.ack-summary details[open] summary{margin-bottom:14px}
.ack-summary ul{margin:0;padding:0;gap:12px}
.ack-summary li{font-size:14px;line-height:1.6}

.ack-report-tools{display:grid;grid-template-columns:auto minmax(140px,1fr) auto;gap:14px;align-items:end}.ack-report-tools label{min-width:0;display:grid;gap:7px}.ack-report-tools label:last-child{grid-column:1/-1}.ack-report-tools select,.ack-report-tools input{width:100%;max-width:100%;box-sizing:border-box;min-height:44px}.ack-report-tools button{min-height:44px;margin:0}@media(max-width:480px){.ack-report-tools{grid-template-columns:1fr 1fr;gap:12px}.ack-report-tools label:first-of-type{grid-column:1/-1;grid-row:1}.ack-report-tools label:last-child{grid-row:3}}

/* Long team names and project details must wrap within the job page. */
.job-detail-view{min-width:0;overflow-wrap:anywhere}.job-detail-view :is(p,dd,dt,h3){min-width:0;overflow-wrap:anywhere;word-break:normal}

.job-list-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px) minmax(150px,200px);gap:18px;align-items:end}.job-list-filters>label{min-width:0}.job-list-filters input,.job-list-filters select{width:100%;min-height:46px}@media(max-width:750px){.job-list-filters{grid-template-columns:minmax(0,1fr);gap:16px}.job-list-filters input,.job-list-filters select{font-size:16px;min-height:48px}}

.asi-time-field{border:0;padding:0;margin:0;min-width:0}.asi-time-field legend{font-size:12px;font-weight:600;margin-bottom:6px}.asi-time-parts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:8px}.asi-time-parts select{min-width:0;width:100%;padding:10px 8px}@media(max-width:750px){.asi-time-parts select{font-size:16px;min-height:48px}}

.portal-tutorial-footer{margin-top:28px;padding-top:18px;border-top:1px solid var(--asi-border,#68756b)}.portal-tutorial-footer button{min-height:44px;padding:9px 16px}.portal-quick-guide{line-height:1.65;overflow-wrap:anywhere}.portal-quick-guide ol{padding-left:24px}.portal-quick-guide li{margin:0 0 16px}.portal-quick-guide p{margin:0 0 16px}

.closeout-guidance{display:block;margin-top:8px;font-size:13px;line-height:1.6;font-weight:400;color:#56645a}.job-closeout-item{align-items:flex-start!important}
.job-closeout-item .closeout-guidance{color:inherit;opacity:.88}

.job-address-link{display:inline-flex;flex-direction:column;gap:.35rem;max-width:100%;min-height:44px;justify-content:center;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}.job-address-link small{font-size:.8rem;text-decoration:none;opacity:.85}

.address-review{border:1px solid var(--line,#68726b);border-radius:12px;padding:1rem;overflow-wrap:anywhere}.address-review .check{display:flex;gap:.6rem;align-items:flex-start;padding:.6rem 0;min-height:44px}.address-review input{width:auto;flex:0 0 auto}.address-review a{display:inline-block;min-height:44px;padding:.5rem 0}.address-confirmed{display:block;font-size:.8rem;margin-top:.35rem;color:inherit;opacity:.8}

/* Clearer portal identity and a larger, swipeable phone/tablet tab bar. */
.topbar{background:linear-gradient(120deg,#111914,#25312a);padding:18px 26px;gap:14px 22px}
.topbar .portal-header-brand{width:clamp(270px,30vw,370px);max-width:100%;padding:0}
.topbar .portal-header-brand img{aspect-ratio:5;min-height:54px}
.topbar .portal-title{font-size:14px;letter-spacing:.04em;color:#f1ede4}
#portalShell .topbar .identity{gap:10px;flex-wrap:wrap}
.mobile-nav-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#e4a370 #2a332d;-webkit-overflow-scrolling:touch;padding:0 2px 8px;scroll-padding-inline:12px}
.mobile-nav-tabs::-webkit-scrollbar{height:6px}.mobile-nav-tabs::-webkit-scrollbar-thumb{background:#dba174;border-radius:8px}.mobile-nav-tabs::-webkit-scrollbar-track{background:#354039}
.mobile-nav-hint{font-size:11px;letter-spacing:.04em;color:#ead1b8;text-align:center;margin:0 0 8px;font-weight:600}
@media(max-width:750px),(min-width:751px) and (max-width:1024px) and (orientation:portrait){
 :root{--portal-bottom-nav:calc(112px + env(safe-area-inset-bottom,0px))}
 .shell{display:block}.sidebar{display:none}.main{padding-bottom:calc(var(--portal-bottom-nav) + 24px)}
 .mobile-nav{display:block;z-index:50;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:2px solid #bd875d;overflow:hidden;background:#17231c;box-shadow:0 -8px 28px #0008}
 .mobile-nav .mobile-nav-tabs button{flex:0 0 auto;min-height:52px;min-width:106px;padding:12px 18px;font-size:14px;font-weight:650;border:1px solid #57675b;border-radius:10px;background:#26372c;color:#f6f1e8;white-space:nowrap}
 .mobile-nav .mobile-nav-tabs button[aria-current=page]{background:#e49a60;color:#171c18;border:2px solid #ffe0b5;box-shadow:0 0 0 2px #e49a6030}
 .mobile-nav .portal-admin-start{margin-left:10px;border-left:1px solid #bd875d}
 .cl-banner{bottom:calc(var(--portal-bottom-nav) + 12px);right:12px;max-width:calc(100vw - 24px)}
 .topbar .portal-header-brand{width:min(330px,100%);margin:0 auto;flex-basis:100%}
 .topbar .portal-title{width:100%;text-align:center;margin:0;font-size:13px}
 .topbar .portal-home-link{display:none}#portalShell .topbar .identity{width:100%;margin:0;justify-content:center;gap:8px}
 #portalShell .topbar .identity button{font-size:12px;min-height:44px;padding:10px 13px}
 .topbar{position:relative;padding:16px;gap:12px}
}
.adv-portal-light .mobile-nav-hint{color:#67422a}
.adv-portal-light .mobile-nav .mobile-nav-tabs button{background:#f1f2e8;color:#1b2920;border-color:#8a988b}
.adv-portal-light .mobile-nav .mobile-nav-tabs button[aria-current=page]{background:#e49a60;border-color:#8e4b22}
.adv-portal-light .topbar{background:linear-gradient(120deg,#f1f2e9,#fff)}.adv-portal-light .topbar .portal-title{color:#25392b}
@media print{.mobile-nav{display:none!important}.main{padding-bottom:0}}
@media(max-width:480px){#portalShell .topbar .identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#portalShell .topbar .identity button{width:100%;min-height:46px;padding:10px;font-size:12px;line-height:1.25}#portalShell .topbar .identity span{grid-column:1/-1}}
@media(min-width:481px) and (max-width:1024px) and (orientation:portrait){#portalShell .topbar .identity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#portalShell .topbar .identity span{grid-column:1/-1;text-align:center}#portalShell .topbar .identity button{width:100%;min-height:46px}}
@media(max-width:750px),(min-width:751px) and (max-width:1024px) and (orientation:portrait){.mobile-nav{position:fixed;bottom:0;left:0;right:0}.topbar .portal-header-brand{flex:0 1 330px;margin-left:auto;margin-right:auto}#portalShell .topbar .identity{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#portalShell .topbar .identity span{grid-column:1/-1;text-align:center}}
@media(max-width:480px){#portalShell .topbar .identity{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.next-shift-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,220px);gap:24px;padding:24px}.next-shift-card>*{min-width:0}.next-shift-card h2{font-size:24px;margin:10px 0;overflow-wrap:anywhere}.next-shift-card p{margin:8px 0;overflow-wrap:anywhere}.next-shift-card .next-shift-time{font-size:17px;font-weight:650}.next-shift-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch;justify-content:center}.next-shift-actions .pill{text-align:center;white-space:normal}.next-shift-instructions{white-space:pre-wrap;line-height:1.6}@media(max-width:600px){.next-shift-card{grid-template-columns:1fr;padding:20px;gap:16px}.next-shift-card h2{font-size:22px}.next-shift-card .next-shift-time{font-size:16px}.next-shift-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.next-shift-actions .pill{grid-column:1/-1}.next-shift-actions button{min-height:46px}}
.next-shift-actions button{min-height:46px}

/* Native Home refresh remains usable without a page click handler. */
#portalShell .topbar .identity .portal-home-refresh{display:contents}
