:root{--green:#163d32;--lime:#d9ecaa;--bg:#f4f5f0;--ink:#202f2a;--muted:#737d76;--line:#dfe4dc}*{box-sizing:border-box}body{margin:0;font:15px system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:inherit;border-radius:9px;padding:12px 17px;min-height:44px}button:hover{border-color:#70917b}button.primary{background:var(--green);color:white;border-color:var(--green)}button.soft{background:var(--lime);border:0}aside{width:238px;position:fixed;inset:0 auto 0 0;background:var(--green);color:#fff;padding:34px 22px;display:flex;flex-direction:column}.brand{font-weight:850;font-size:21px;letter-spacing:.6px}.brand small{display:block;font-size:10px;letter-spacing:3px;margin:8px 0 48px 23px;color:#b6cabe}nav{display:grid;gap:9px}nav button{text-align:left;background:none;color:#c8d6ce;border:0}nav button.active{background:#315448;color:white}.aside-bottom{margin-top:auto;font-size:10px;letter-spacing:1px;line-height:2}.aside-bottom small{letter-spacing:0;color:#adbbb1}.workspace{margin-left:238px}header{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.desktop{color:var(--muted);font-size:13px}.profile{font-size:12px;border:0;background:#eff3e9}main{max-width:1280px;margin:auto;padding:36px 42px 80px}h1{font-size:32px;letter-spacing:-1px;margin:9px 0 10px}h2{font-size:20px;margin:0}h3{font-size:16px}p{color:var(--muted);line-height:1.6}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:#71816d}.topline,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.actions{display:flex;gap:10px;flex-wrap:wrap}.property-select{padding:11px;border:1px solid var(--line);border-radius:8px;background:white;max-width:100%}.hero{background:var(--green);color:white;border-radius:16px;padding:30px;display:flex;justify-content:space-between;align-items:center;margin:24px 0}.hero p{color:#c6d5c9;margin-bottom:0}.hero .eyebrow{color:var(--lime)}.hero h2{font-size:26px;margin-top:10px}.pill{font-size:11px;border-radius:20px;padding:6px 10px;background:#edf1e7;color:#526849;white-space:nowrap}.pill.inspected{background:#e0efdf;color:#34623a}.pill.inaccessible{background:#fff0d5;color:#976117}.pill.missed{background:#f7e4df;color:#9c4e3c}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0 28px}.stat,.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.stat b{display:block;font-size:32px;font-weight:600;margin:10px 0}.stat span{font-size:12px;color:var(--muted)}.grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.card-title{margin-bottom:20px}.station{display:flex;align-items:center;gap:14px;padding:16px 0;border-top:1px solid #edf0e9}.station .icon{width:43px;height:43px;border-radius:10px;background:#f0f3e9;display:grid;place-items:center;font-size:22px}.station .detail{flex:1}.station b{font-size:14px}.station small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.station button{font-size:12px;padding:8px 12px}.progress{height:7px;background:#e8ede3;border-radius:6px;margin:18px 0;overflow:hidden}.progress div{height:100%;background:#87aa67}.muted{color:var(--muted);font-size:12px}.list-tools{display:flex;gap:10px;margin:25px 0 15px;flex-wrap:wrap}input,select,textarea{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}input,textarea{width:100%}textarea{min-height:90px}label{display:block;font-size:12px;font-weight:650;margin:18px 0 8px}dialog{border:0;border-radius:17px;width:min(580px,94vw);padding:28px;max-height:90dvh;color:var(--ink)}dialog::backdrop{background:#102c246b;backdrop-filter:blur(3px)}dialog h2{padding-right:30px}.close{position:absolute;top:16px;right:16px;float:none;border:0;padding:0;min-height:44px;width:44px;z-index:10}.choices{display:flex;gap:8px;flex-wrap:wrap}.choices button.selected{background:var(--green);color:#fff}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}video{width:100%;border-radius:12px;background:#172d25;max-height:280px}.notice{padding:13px 16px;background:#edf2e3;border-radius:8px;font-size:12px;line-height:1.6;margin:18px 0}.history-entry{border-top:1px solid var(--line);padding:18px 0}.empty{text-align:center;padding:35px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#163d32;color:white;border-radius:8px;padding:14px 22px;display:none;z-index:5}.type-row{padding:16px 0;border-top:1px solid var(--line)}.report-table{width:100%;border-collapse:collapse}.report-table td,.report-table th{text-align:left;padding:9px;border-bottom:1px solid var(--line);font-size:11px}.report-head{border-bottom:4px solid var(--green);padding-bottom:20px}.report section{break-inside:avoid;margin:20px 0}@media(max-width:900px){aside{width:190px;padding:25px 15px}.workspace{margin-left:190px}main{padding:25px}.grid{grid-template-columns:1fr}header{padding:0 25px}.brand{font-size:17px}.desktop{display:none}}@media(max-width:650px){aside{inset:auto 0 0;width:100%;height:70px;padding:7px 6px;z-index:3;border-top:1px solid #456353}aside .brand,.aside-bottom{display:none}nav{display:flex;justify-content:space-around;gap:0}nav button{font-size:11px;padding:9px 7px;min-height:52px;text-align:center}.workspace{margin-left:0}header{height:64px;padding:0 19px}.profile span{display:none}main{padding:24px 18px 100px}h1{font-size:28px}.topline{align-items:flex-start;flex-wrap:wrap}.hero{padding:23px;gap:15px;align-items:flex-start;flex-direction:column}.stats{gap:8px}.stat{padding:14px 10px}.stat b{font-size:27px}.stat span{font-size:10px}.card{padding:19px}.station{gap:9px}.station .icon{width:34px}.station .pill{display:none}.station button{padding:8px}.actions button{font-size:13px}.property-select{width:100%}#toast{width:90%;text-align:center;bottom:82px}.report-table td{font-size:9px}}@media print{body{background:#fff}aside,header,#app,body>dialog{display:none!important}body>.print-report{display:block!important;color:#000;padding:20px}.report-table tr{break-inside:avoid}@page{size:letter;margin:12mm}}

.qr-error{background:#fff0ec;color:#8b3024;border:1px solid #e0b3a9;font-weight:650}

.tech-login{display:flex;align-items:center;gap:8px}.tech-login select{max-width:190px;font-size:13px}.pin-error{color:#9c3529;font-size:13px}@media(max-width:650px){.tech-login{gap:5px}.tech-login select{max-width:145px;font-size:12px;padding:10px 6px}.tech-login button{font-size:12px;padding:10px 8px}header{padding:0 12px}header b{font-size:12px}}
/* Explicit contrast for controls on the dark property card. */
.hero .actions button{color:var(--green);background:#fff;border-color:#fff;font-weight:700}
.hero .actions button.soft{color:var(--green);background:var(--lime);border-color:var(--lime)}
@media(max-width:650px){.hero .actions{width:100%}.hero .actions button{white-space:normal;text-align:center;min-width:130px}}

#google-address-lookup{margin-top:8px}#google-address-lookup gmp-place-autocomplete{display:block;width:100%;min-height:48px}

.address-suggestion{display:block;width:100%;text-align:left;margin-top:5px;color:var(--ink);background:white}.address-suggestion:focus-visible{outline:3px solid #87aa67}.maps-attribution{display:block;margin-top:10px;font-family:Arial,sans-serif;font-size:13px;color:#333}#address-search-status{margin-top:8px}

.maps-attribution{font-family:Roboto,Arial,sans-serif;font-weight:400;font-style:normal;letter-spacing:normal;white-space:nowrap;color:#5e5e5e}
/* Reports stay readable inside the app, including iPhone browsers. */
dialog.report-modal{width:min(1000px,96vw);padding:24px}.report-toolbar{border-bottom:1px solid var(--line);padding-bottom:18px}.report-toolbar p{font-size:13px}.report-preview{padding-top:24px}.report-preview h1{font-size:24px}.report-preview .report{overflow-wrap:anywhere}.retry-report{margin-top:12px}.history-filter{display:flex;align-items:center;gap:8px;font-size:14px}.history-filter input{width:20px;height:20px}.report-preview .report-table th{font-size:12px}.report-preview .report-table td{font-size:12px;vertical-align:top}.report-preview .report-head{padding-bottom:12px}.report-preview .report-table{table-layout:fixed}.report-preview .report-table td:empty:after{content:'—'}
@media(max-width:650px){dialog.report-modal{padding:18px;max-height:94dvh}.history-heading{align-items:flex-start;flex-wrap:wrap}.history-heading button{width:100%}.report-toolbar .actions button{flex:1 1 42%;padding:12px 8px}.report-preview h1{font-size:20px;letter-spacing:0}.report-preview .report-table,.report-preview .report-table tbody,.report-preview .report-table tr,.report-preview .report-table td{display:block;width:100%}.report-preview .report-table thead{display:none}.report-preview .report-table tr{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:14px}.report-preview .report-table td{border:0;padding:7px 4px;font-size:13px}.report-preview .report-table td:before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:4px}}
/* Technician starts with today's work, a scanner and search—not a property list. */
.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 16px}.home-shortcuts button{text-align:left;padding:22px;border-radius:15px;display:grid;gap:8px;min-height:140px}.home-shortcuts button span{font-size:26px}.home-shortcuts button b{font-size:20px}.home-shortcuts small{font-size:13px;color:var(--muted);font-weight:400}.home-shortcuts .primary small{color:#d3dfd7}.field-status{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#526849;font-size:12px;line-height:1.6;margin:12px 0 20px}.field-warning{padding:12px 16px;border-radius:10px;background:#fff0d5;color:#79551d}.field-status button{padding:7px 12px;font-size:12px;white-space:nowrap}.route-stop{display:flex;gap:18px;padding:24px 0;border-top:1px solid var(--line);margin-top:16px}.stop-number{width:38px;height:38px;flex-shrink:0;border-radius:50%;background:var(--green);color:white;display:grid;place-items:center;font-weight:700}.stop-details{flex:1}.stop-details h3{font-size:21px;margin:12px 0 4px}.stop-details p{margin:6px 0 14px}.dispatch-note{background:#f2f5eb;border-radius:8px;padding:10px;font-size:13px}.button-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;padding:12px 17px;min-height:44px;color:var(--green);text-decoration:none;background:white}.property-result{width:100%;display:grid;gap:6px;text-align:left;margin-top:10px;padding:16px}.property-result b{font-size:16px}.property-result span{color:var(--muted);font-size:13px}.property-result small{color:#526849;font-size:11px}.property-context-actions{display:flex;gap:8px;flex-wrap:wrap}.property-context-actions button{font-size:13px}.planner-modal{width:min(1000px,96vw)}.planner-controls{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.planner-controls>div{flex:1}.planner-controls select,.planner-controls input{width:100%}.planner-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.plan-candidate{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:12px;border-radius:8px;font-weight:400;margin:10px 0}.plan-candidate input{width:21px;height:21px;flex-shrink:0}.plan-candidate small{display:block;color:var(--muted);margin-top:6px}.plan-stop{border:1px solid var(--line);padding:13px;border-radius:10px;margin-bottom:12px}.plan-stop .actions{gap:4px}.plan-stop button{min-width:40px;padding:7px}.plan-stop label{margin-top:12px}.plan-stop .row{align-items:flex-start}.plan-stop .row b{padding-top:9px}button:disabled{cursor:default;opacity:.5}
@media(max-width:650px){.home-shortcuts{gap:10px}.home-shortcuts button{padding:16px;min-height:155px}.home-shortcuts button b{font-size:17px}.home-shortcuts small{font-size:12px;line-height:1.5}.route-stop{gap:12px}.stop-number{width:30px;height:30px}.stop-details h3{font-size:19px}.stop-details .actions button,.stop-details .actions a{flex:1;padding:12px 9px}.field-status{align-items:flex-start;flex-wrap:wrap}.property-context-actions{width:100%}.property-context-actions button{flex:1}.planner-grid{grid-template-columns:1fr}.planner-controls{display:grid;grid-template-columns:1fr}.planner-controls label{margin-top:10px}.plan-stop .row{flex-wrap:wrap}.planner-modal{padding:20px}}
.history-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.history-controls>div{min-width:0}.history-controls select,.history-controls input{box-sizing:border-box;width:100%;max-width:100%;min-width:0}.history-controls input[type="date"]{appearance:none;-webkit-appearance:none;display:block}.history-month{border-bottom:1px solid var(--line,#dce3dc);padding-bottom:10px;margin-top:28px}.history-entry .history-heading p{margin:8px 0;line-height:1.6}@media(max-width:700px){.history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
.office-tools{display:grid;gap:12px}.office-tools button,.office-tools a{text-align:left}#workspace-access select{margin-bottom:12px}@media(max-width:650px){nav button{font-size:10px;padding:8px 4px}.history-entry .row{flex-wrap:wrap}}
dialog.directory-modal{width:min(760px,94vw)}.directory-picker{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;margin:18px 0}.directory-picker select{width:100%;min-width:0}.directory-summary{border:1px solid var(--line);border-radius:12px;padding:20px;margin-top:18px}.directory-summary h3{margin:8px 0}.directory-results{display:grid;gap:8px;max-height:270px;overflow:auto}.directory-technical{margin-top:20px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;overflow-wrap:anywhere}.directory-technical summary{cursor:pointer;color:var(--muted)}.directory-footer{margin-top:20px}@media(max-width:650px){.directory-picker{grid-template-columns:minmax(0,1fr)}.directory-summary{padding:16px}.directory-results{max-height:220px}}
dialog.service-plans-modal{width:min(1000px,94vw)}.coverage-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:22px}.coverage-stats div{background:#edf2e3;border-radius:10px;padding:14px}.coverage-stats b,.coverage-stats small{display:block}.coverage-stats b{font-size:26px}.coverage-stats small{font-size:12px;margin-top:6px}@media(max-width:650px){.coverage-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}

.template-question{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--line,#dce2d8);border-radius:12px}.template-question legend{padding:0 6px;font-weight:700}.template-choice{display:flex;gap:8px;align-items:center;margin-bottom:8px}.template-choice input{flex:1;min-width:0;margin:0}.template-question-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.template-question button:disabled{opacity:.45;cursor:default}

.office-tools a.button-link{justify-content:flex-start;text-align:left}

/* Consistent navigation icons, with four primary destinations on phones. */
nav button{display:flex;align-items:center;gap:12px}nav button svg{flex-shrink:0}.mobile-nav-more,.nav-label-short{display:none}.mobile-more-menu{display:grid;gap:12px;margin-top:22px}.mobile-more-menu button{text-align:left;min-height:52px}
@media(max-width:800px){
 :root{--mobile-nav-safe-bottom:max(24px, env(safe-area-inset-bottom, 0px));--mobile-nav-height:calc(80px + var(--mobile-nav-safe-bottom))}html,body{max-width:100%;overflow-x:clip}.workspace,main,.grid>*{min-width:0}.workspace{margin-left:0}aside .brand,aside .aside-bottom{display:none}
 /* Keep root scrolling and iOS rubber-banding away from the navigation. */
 html:has(body>aside){height:100%;overflow:hidden}
 body:has(>aside){height:100dvh;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) var(--mobile-nav-height)}
 body> .workspace{grid-row:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
 body> .workspace>header{flex-shrink:0;flex-wrap:wrap}
 body> .workspace>main{flex:1;min-height:0;width:100%;margin:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere}
 body>aside{grid-row:2}
 aside{position:relative;inset:auto;width:100%;height:var(--mobile-nav-height);min-height:var(--mobile-nav-height);padding:8px max(8px, env(safe-area-inset-right, 0px)) var(--mobile-nav-safe-bottom) max(8px, env(safe-area-inset-left, 0px));z-index:10;border:0;box-shadow:0 -1px 0 #426156;overflow:visible}
 aside nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;height:72px;min-height:72px;flex:0 0 72px;align-items:stretch;gap:4px}
 nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;height:72px;min-height:72px;padding:8px 3px;font-size:12px;line-height:1.2;white-space:nowrap;text-align:center;border-radius:10px;color:#d5e1d9}
 nav button svg{width:23px;height:23px}nav [data-nav="office"],nav [data-nav="settings"],nav [data-nav="tracking"],nav .nav-label-full{display:none}
 nav .nav-label-short{display:block}nav [data-nav="overview"]{order:1}nav [data-nav="stations"]{order:2}nav [data-nav="history"]{order:3}nav #nav-more{display:flex;order:4}
 nav:has([data-nav="office"].active) #nav-more,nav:has([data-nav="settings"].active) #nav-more,nav:has([data-nav="tracking"].active) #nav-more{background:#315448;color:white}
 header{position:sticky;top:0;z-index:3;height:auto;min-height:64px;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px}header .desktop{display:none}header b{font-size:12px}.tech-login{min-width:0}.tech-login select{min-width:0;max-width:145px}
 main{padding-bottom:24px}.topline>div,.home-shortcuts>*{min-width:0}.card>.row{flex-wrap:wrap}.card>.row>button{max-width:100%}
 #toast{bottom:calc(var(--mobile-nav-height) + 12px)}
}

.inline-check{display:flex;align-items:center;gap:10px}.inline-check input{width:20px;height:20px;flex:0 0 20px}.day-route-map{display:block;width:100%;height:auto;border-radius:12px;margin:16px 0}.service-plans-modal details{margin:18px 0}.service-plans-modal summary{cursor:pointer;font-weight:650}

/* Summary values share a bottom baseline, even when labels wrap. */
.stats{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.stat{display:flex;flex-direction:column;min-width:0;min-height:124px;gap:12px}
.stat>span{display:block;width:100%;text-align:center;overflow-wrap:normal;word-break:normal;hyphens:none;line-height:1.45}
.stat>b{margin:auto 0 0;width:100%;text-align:center;line-height:1.1;font-variant-numeric:tabular-nums}
@media(max-width:650px){
 .stat{padding:16px 8px;min-height:120px}
 .stat>span{font-size:clamp(9px,2.4vw,12px)}
 .stat>b{font-size:clamp(26px,7vw,32px)}
}
@media(max-width:360px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat>span{font-size:12px}}

.new-customer-button{display:block;width:100%;margin:10px 0 16px;background:#eff3e9;border-color:#c9d9bd;font-weight:650;text-align:center}
.new-customer-button[aria-pressed="true"]{border-color:#70917b;background:#e3efd9}

.draft-sync-status{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;background:#e5efdf;color:#24502e;font-size:13px;overflow-wrap:anywhere}.draft-sync-status[hidden]{display:none}.draft-sync-warning{background:#fff0d5;color:#79551d}.draft-sync-status button{font-size:12px;padding:6px 10px;min-height:32px}.draft-sync-status span{min-width:0}@media(max-width:800px){.draft-sync-status{padding:8px 14px;font-size:12px}}
/* Office technician identity, maps and service metrics. */
.tech-avatar{position:relative;display:inline-flex;width:64px;height:64px;align-items:center;justify-content:center;flex:0 0 64px;border-radius:50%;background:#d9ecaa;color:#163d32;font-size:20px;font-weight:750;overflow:hidden}.tech-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;visibility:hidden}.tech-avatar img.loaded{visibility:visible}.tech-avatar.small{width:36px;height:36px;flex-basis:36px;font-size:12px;border:2px solid white}.tech-avatar.large{width:88px;height:88px;flex-basis:88px;font-size:26px}.tech-photo-preview{width:110px;height:110px;object-fit:cover;border-radius:50%;margin:8px 0}.tech-identity{display:flex;align-items:center;gap:18px}.technician-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:20px}.technician-card{display:flex;align-items:center;gap:18px;padding:22px;text-align:left;border-radius:12px}.technician-card b{font-size:18px}.technician-card small{display:block;color:var(--muted);margin-top:8px;line-height:1.5}.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.metrics-grid .stat{min-height:160px;padding:20px}.metrics-grid .stat>span{font-size:12px}.metrics-grid .stat>b{font-size:29px;margin:auto 0 0}.metrics-grid small{display:block;min-height:2.8em;font-size:11px;line-height:1.4;color:var(--muted)}.metric-date{align-items:center;margin-top:12px}.metric-date label{margin:0}.metric-date input{width:auto;max-width:100%}.metrics-trend{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:14px;margin:30px 0 12px}.trend-day{text-align:center;display:grid;gap:8px}.trend-track{display:flex;align-items:flex-end;background:#eff3e9;height:150px;border-radius:8px;overflow:hidden}.trend-track>span{display:block;width:100%;background:#49705a;border-radius:8px 8px 0 0}.trend-day small{font-size:11px;color:var(--muted)}.fleet-map{position:relative;width:100%;max-width:1100px;margin:16px auto;border-radius:12px;background:#edf1e7}.fleet-map-base{display:block;width:100%;height:auto;aspect-ratio:640/420;border-radius:12px}.fleet-pin{position:absolute;transform:translate(-50%,-100%);display:grid;justify-items:center;gap:3px;padding:4px 6px;border-radius:8px;border:1px solid #163d32;background:#fff;color:#163d32;box-shadow:0 2px 7px #163d3233;min-height:0;max-width:170px;font-size:11px;line-height:1.3}.fleet-pin:after{content:'';position:absolute;top:100%;left:calc(50% - 5px);border:5px solid transparent;border-top-color:#163d32}.fleet-pin:hover,.fleet-pin:focus{z-index:2;outline:3px solid #a8c976}.fleet-pin-faces{display:flex}.fleet-pin-faces .tech-avatar+.tech-avatar{margin-left:-8px}.location-stale{color:#8b5918!important}.fleet-pin.location-stale{border-color:#8b5918;background:#fff0d5}.fleet-pin.location-stale:after{border-top-color:#8b5918}
@media(max-width:800px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metrics-grid .stat{padding:16px;min-height:150px}.metrics-grid .stat>span{font-size:11px}.metrics-grid .stat>b{font-size:25px}.fleet-pin{font-size:9px;max-width:110px;padding:3px}.fleet-pin .tech-avatar.small{width:26px;height:26px;flex-basis:26px;font-size:9px}.metrics-trend{gap:8px}.tech-identity{gap:12px}.tech-avatar.large{width:70px;height:70px;flex-basis:70px}}

.technician-location-status{margin-top:16px;padding:16px;border-radius:10px;border:1px solid #c7d7c3;background:#f0f5e9;line-height:1.5}.technician-location-status p{margin:8px 0}.technician-location-status ol{padding-left:22px;margin:12px 0}.technician-location-status li+li{margin-top:6px}.technician-location-status.location-unavailable{background:#fff5ed;border-color:#e1bba3;color:#743e23}

.photo-drop-zone{border:2px dashed #96ad9c;border-radius:12px;padding:20px;text-align:center;background:#f7faf4;transition:background .15s,border-color .15s}.photo-drop-zone.drag-over{background:#e3eedb;border-color:#163d32}.photo-drop-zone input[type=file]{max-width:100%;background:white}.photo-drop-zone p{margin:12px 0}.photo-drop-zone .tech-avatar{margin:auto}

.technician-save-feedback{padding:14px 16px;border:1px solid #98b29b;border-radius:10px;font-weight:600;background:#edf5e7;color:#163d32}.technician-save-feedback.warning{background:#fff2e8;border-color:#d5a17d;color:#743e23}.technician-save-feedback.pending{background:#f1f4f0;border-color:#bbc7b8;color:#34463b}

.action-feedback{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 18px;border:1px solid #a7bca1;border-radius:10px;background:#edf5e7;color:#163d32;box-shadow:0 4px 16px #0002;font-weight:600;z-index:1000;overflow-wrap:anywhere}.action-feedback.in-dialog{position:sticky;top:0;margin:0 0 16px;z-index:5}.action-feedback.on-page{position:fixed;top:76px;left:50%;transform:translateX(-50%);width:min(620px,calc(100vw - 32px));box-sizing:border-box}.action-feedback.warning{background:#fff2e8;color:#743e23;border-color:#d5a17d}.action-feedback.pending,.action-feedback.info{background:#f1f4f0;color:#34463b;border-color:#bbc7b8}.action-feedback .feedback-dismiss{border:0;background:transparent;color:inherit;padding:4px 8px;min-width:32px;font-size:24px;flex-shrink:0}.inline-action-feedback:not(:empty){padding:12px 14px;border:1px solid #a7bca1;border-radius:8px;background:#f1f5ed;font-weight:600;overflow-wrap:anywhere}

.inline-action-feedback.feedback-warning{background:#fff2e8;border-color:#d5a17d;color:#743e23}

.tech-photo-crop{display:block;width:min(100%,300px);height:auto;margin:0 auto;border:2px solid #163d32;border-radius:12px;cursor:grab;touch-action:none}.tech-photo-crop.dragging{cursor:grabbing}.tech-photo-crop:focus{outline:3px solid #829b52;outline-offset:3px}#tech-photo-preview label{display:block;text-align:left}#tech-photo-preview input[type=range]{width:100%}

.licence-camera-frame{position:relative;background:#17231e;border-radius:12px;overflow:hidden;margin-top:16px}.licence-camera-frame video{display:block;width:100%;max-height:420px;object-fit:contain}.licence-camera-guide{position:absolute;left:8%;right:8%;top:50%;transform:translateY(-50%);aspect-ratio:1.6;border:3px dashed #fff;border-radius:12px;pointer-events:none;box-shadow:0 0 0 999px #0003}

#modal .office-review-summary{margin:20px 0;padding:18px;border:2px solid #b57335;border-radius:10px;background:#fff4df;color:#583a1b}#modal .office-review-summary li{margin:12px 0}#modal .office-exception-row>td{background:#fff4df!important;border-top:2px solid #cda16c}#modal .office-exception-label{display:block;color:#873b13;font-size:12px;margin-bottom:6px}#modal .office-urgent-recommendation{padding:16px;border:2px solid #b57335;background:#fff4df}

.service-plans-modal .history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.service-plans-modal .history-controls{grid-template-columns:minmax(0,1fr)}}

/* Preserve the supplied company artwork and its proportions in the sidebar. */
aside .brand{margin-bottom:26px}aside .sidebar-logo{display:block;width:100%;height:auto;max-height:200px;object-fit:contain;background:#fff;border-radius:10px;padding:8px}

#modal .menu-back{display:block;margin:0 44px 18px 0;min-height:44px;padding:8px 14px;font-weight:600}

/* Keep protected workspace content hidden from the first paint until PIN validation. */
#workspace-lock-screen{display:none;margin:40px auto;max-width:620px;padding:32px}
.workspace-locked #workspace-lock-screen{display:block}
.workspace-locked #app,.workspace-locked #draft-sync-status{display:none!important}
.workspace-locked aside nav,.workspace-locked .aside-bottom{visibility:hidden;pointer-events:none}

.ghl-service-fields{width:100%;border-collapse:collapse;margin:12px 0}.ghl-service-fields th,.ghl-service-fields td{padding:9px;border:1px solid #dce4db;text-align:left;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}.ghl-field-review{background:#fff4dc}.ghl-service-fields small{color:#73511d}

.sticker-code-input{display:flex;align-items:center;border:1px solid var(--border,#d9e1d8);border-radius:8px;overflow:hidden}.sticker-code-input span{padding-left:14px;font-weight:700}.sticker-code-input input{border:0;margin:0;min-width:0;flex:1}.sticker-code-input:focus-within{outline:2px solid #163d32}.report-qr-method{white-space:nowrap;font-size:.85em}

.station{display:grid;grid-template-columns:43px minmax(0,1fr) 128px;align-items:start}.station .icon{grid-column:1;grid-row:1;flex-shrink:0}.station>.pill{grid-column:2;grid-row:2;justify-self:start;align-self:start}.station .detail{min-width:0;overflow-wrap:break-word}.station-actions{grid-column:3;grid-row:1 / span 2;display:flex;flex-direction:column;gap:8px}.station .station-actions button{width:100%;white-space:normal;margin:0}@media(max-width:700px){.station{grid-template-columns:34px minmax(0,1fr) 112px}}

/* Branded portal entry and portal-specific navigation. Authentication remains PIN-gated. */
body.workspace-locked{display:block!important;height:auto!important;min-height:100dvh;overflow:auto!important;background:radial-gradient(ellipse at 50% 0%,#28664b 0%,#163d32 65%,#0d2d24 100%)}.workspace-locked>aside,.workspace-locked .workspace>header{display:none!important}.workspace-locked .workspace{margin-left:0;display:block!important;overflow:visible!important}.workspace-locked #workspace-lock-screen{display:block;width:min(560px,calc(100% - 32px));max-width:560px;margin:32px auto;padding:30px 36px 34px;text-align:center;border:1px solid #d4e1d2;border-radius:24px;box-shadow:0 20px 60px #06251c55;background:#fff}.welcome-logo{display:block;width:128px;height:128px;object-fit:contain;margin:0 auto 16px}.portal-welcome h1{font-size:28px;line-height:1.2;padding:0;margin:0;color:var(--green);font-weight:750;letter-spacing:-.5px}.portal-welcome>p{margin:14px 0 22px;color:#61746a;line-height:1.5}.portal-options{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:22px}.portal-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;padding:14px 20px;min-height:78px;border:1px solid var(--green);border-radius:12px;background:var(--green);color:white;box-shadow:0 3px 8px #163d3212;transition:background .15s,border-color .15s,transform .15s}.portal-choice strong{font-size:20px;line-height:1.3;font-weight:650}.portal-choice:hover{background:#235b44;border-color:#235b44;transform:translateY(-1px)}.portal-choice:focus-visible{outline:3px solid #8bbb64;outline-offset:3px}.portal-choice-placeholder{background:#f0f5ed;color:var(--green);border-color:#d0dfcb}.portal-choice-placeholder:hover{background:#e4eddf;border-color:#8ca584}.portal-coming-soon{font-size:10px;line-height:1.3;font-weight:650;letter-spacing:.5px;text-transform:uppercase;color:#526b51}.portal-placeholder{padding:20px;background:#f0f5ed;border-radius:12px;margin-top:24px}.portal-placeholder h2{padding:0;color:var(--green)}.portal-placeholder p{margin:12px 0 20px}#welcome-load-error:empty{display:none}#welcome-load-error{color:#9c342c}nav [hidden],#portal-options[hidden],#portal-placeholder[hidden],#tech-profile[hidden],#portal-user-name[hidden]{display:none!important}#portal-user-name{font-size:14px;font-weight:600}header #portal-title{font-size:18px}
@media(max-width:800px){body[data-portal="office"] nav [data-nav="office"],body[data-portal="office"] nav [data-nav="settings"]{display:flex}body[data-portal="office"] aside nav{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-portal="office"] aside nav button{white-space:normal}body[data-portal="office"] aside nav [data-nav="user-portal"]{order:3}body[data-portal="office"] nav [data-nav="office"]{order:1}body[data-portal="office"] nav [data-nav="history"]{order:2}body[data-portal="office"] nav [data-nav="settings"]{order:4}}
@media(max-width:500px){.workspace-locked #workspace-lock-screen{margin:16px auto;padding:24px 22px 26px;border-radius:20px}.welcome-logo{width:104px;height:104px;margin-bottom:14px}.portal-welcome h1{font-size:25px}.portal-welcome>p{font-size:14px;margin:12px 0 18px}.portal-options{gap:10px;margin-top:18px}.portal-choice{min-height:74px;padding:12px 16px}.portal-choice strong{font-size:18px}header #portal-title{font-size:16px}}

.office-report-notes{border:1px solid #bdcdb7;border-left:5px solid #163d32;background:#f4f7ef;border-radius:10px;padding:20px;margin:20px 0}.office-note{padding:14px 0;border-bottom:1px solid #dce4d6}.office-note-text{white-space:pre-wrap;overflow-wrap:anywhere}.office-note small{color:#586b5c;overflow-wrap:anywhere}.office-notes-history{max-height:440px;overflow:auto;margin-bottom:20px}.inspection-review-summary{margin:12px 0 0!important}.office-report-notes form{margin-top:20px}.office-report-notes [role="status"]{font-weight:600}
body[data-portal="office"] #history-search .history-controls{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1100px){body[data-portal="office"] #history-search .history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){body[data-portal="office"] #history-search .history-controls{grid-template-columns:minmax(0,1fr)}}

.employee-selector-row{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch;margin:8px 0 20px}.employee-selector-row select{flex:1 1 170px;min-width:0;margin:0}.employee-selector-row button{margin:0;white-space:normal}.employee-selector-row button:last-child{flex:1 1 250px}@media(max-width:500px){.employee-selector-row select{flex-basis:100%}.employee-selector-row button:last-child{flex-basis:200px}}

/* Keep the Today scan card centered when it is the only shortcut. */
.home-shortcuts:has(>button:only-child){grid-template-columns:minmax(0,590px);justify-content:center}

.office-attention{margin:20px 0;border:2px solid;padding:24px}.office-attention.attention-required{background:#fff1f2;border-color:#b42332;color:#701a26}.office-attention.attention-clear{background:#eaf7ef;border-color:#237a42;color:#14532d}.office-attention h2,.office-attention p,.office-attention small{color:inherit}.office-attention .row{gap:12px;flex-wrap:wrap}.attention-items{max-height:430px;overflow-y:auto;margin:16px 0}.attention-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #b4233233}.attention-item p{margin:6px 0;overflow-wrap:anywhere}.attention-item button{flex-shrink:0}@media(max-width:600px){.office-attention{padding:18px}.attention-item{align-items:flex-start;flex-direction:column}}

/* Service-plan field-by-field review */
.plan-review-guide{position:sticky;top:0;z-index:5;background:#eef5ed;border:2px solid #173f34;border-radius:12px;padding:14px;margin:0 0 20px;box-shadow:0 3px 8px #0001}
.plan-review-guide p{margin:0 0 10px}.plan-review-guide .muted{font-size:.85rem;margin:10px 0 0}.plan-review-guide button{min-height:44px}
#service-plan-form .plan-needs-review{border:2px solid #ad4d00;background:#fff9e9;scroll-margin:160px}
#service-plan-form .plan-current-review{outline:3px solid #173f34;outline-offset:3px}
.plan-review-hint{color:#8b3b00;font-size:.9rem;margin:6px 0 18px}.plan-review-hint[hidden]{display:none}
@media(max-width:600px){.plan-review-guide{padding:10px}.plan-review-guide .muted{display:none}}

.scheduling-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px;padding-bottom:16px;border-bottom:1px solid #d9dfd7}.scheduling-tabs button{flex:1;min-width:135px}.scheduling-tabs button[aria-current="page"]{box-shadow:inset 0 -4px 0 #76b596}.service-plan-directory .row{align-items:center}.service-plan-directory .row>div{flex:1;min-width:200px}.service-plan-directory button{min-width:120px}
/* Scheduling tabs sit on a light dialog, separate from the dark sidebar navigation. */
body .scheduling-tabs{display:flex;align-items:stretch;gap:12px}
body .scheduling-tabs button{display:flex;align-items:center;justify-content:center;flex:1;min-width:135px;height:auto;min-height:60px;padding:15px 18px;border:2px solid #789582;border-radius:10px;background:#eaf1e8;color:#163d32;font-size:18px;font-weight:750;line-height:1.25;text-align:center;white-space:normal;opacity:1}
body .scheduling-tabs button:hover{background:#dce9d8;color:#12382b;border-color:#315e46}
body .scheduling-tabs button[aria-current="page"]{background:#163d32;color:#fff;border-color:#163d32;box-shadow:none}
body .scheduling-tabs button:focus-visible{outline:3px solid #315e46;outline-offset:3px}
@media(max-width:650px){body .scheduling-tabs button{font-size:16px;min-height:56px;padding:13px 12px}}

.technician-photo-map{margin-top:18px;max-width:760px;overflow:visible}.technician-photo-map .fleet-pin{transform:translate(-50%,calc(-100% - 10px));padding:6px 10px;max-width:200px;font-size:15px;background:#fff;color:#163d32;box-shadow:0 2px 8px #0003;pointer-events:none}.technician-photo-map .fleet-pin b{text-align:center;overflow-wrap:anywhere}.technician-photo-map .tech-avatar.large{width:72px;height:72px;flex-basis:72px}
@media(max-width:600px){.technician-photo-map .tech-avatar.large{width:48px;height:48px;flex-basis:48px}.technician-photo-map .fleet-pin{font-size:13px;padding:4px 6px;max-width:150px}}

@media(max-width:360px){body[data-portal="office"] aside nav button{font-size:10px;padding-inline:2px}}

#modal .estimate-office-tabs{gap:12px;margin-top:16px;margin-bottom:0}#modal .estimate-office-tabs button{margin:0;max-width:100%;white-space:normal}@media(max-width:600px){#modal .estimate-office-tabs{display:grid;grid-template-columns:minmax(0,1fr)}#modal .estimate-office-tabs button{width:100%}}

.technician-summary-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.35fr);gap:24px;align-items:start}.technician-summary-profile{min-width:0}.technician-summary-layout #technician-location-status{min-width:0}.technician-summary-layout .technician-location-status{margin-top:0}.technician-map-zoom{margin-top:16px}.technician-map-zoom button{min-width:110px}.technician-summary-layout .technician-photo-map{width:100%;margin-top:12px}@media(max-width:900px){.technician-summary-layout{grid-template-columns:minmax(0,1fr);gap:20px}}

/* Persistent section menus share the Scheduling & Routes selected state. */
body .estimate-office-tabs,body .estimate-history-tabs{display:flex;gap:12px;flex-wrap:wrap}
body .estimate-office-tabs button,body .estimate-history-tabs button{flex:1;min-width:135px;min-height:56px;padding:15px 18px;border:2px solid #789582;border-radius:10px;background:#eaf1e8;color:#163d32;font-weight:750;white-space:normal}
body .estimate-office-tabs button:hover,body .estimate-history-tabs button:hover{background:#dce9d8;color:#12382b}
body .estimate-office-tabs button[aria-current="page"],body .estimate-history-tabs button[aria-current="page"]{background:#163d32;color:#fff;border-color:#163d32}
body .estimate-office-tabs button:focus-visible,body .estimate-history-tabs button:focus-visible{outline:3px solid #315e46;outline-offset:3px}

body .section-tabs{display:flex;gap:12px;flex-wrap:wrap}body .section-tabs button{background:#eaf1e8;color:#163d32;border:2px solid #789582;min-height:56px;font-weight:750}body .section-tabs button[aria-current="page"]{background:#163d32;color:white;border-color:#163d32}

body .scheduling-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}body .scheduling-tabs button{min-width:0;font-size:16px}@media(max-width:750px){body .scheduling-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

.coverage-choice{display:block;padding:16px;margin:12px 0;border:1px solid #cbd7cb;border-radius:10px;font-size:15px}.coverage-choice input[type="checkbox"]{display:inline-block;width:20px;height:20px;margin:0 10px 0 0;vertical-align:middle}#absence-tech{width:100%;margin-bottom:12px}#coverage-proposal{margin-top:22px}

body .client-management-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Keep the four Office totals together at every viewport width. */
.stats.office-dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1.2vw,16px)}
.office-dashboard-stats .stat{min-width:0;padding-inline:clamp(4px,1vw,16px)}
.office-dashboard-stats .stat>span{font-size:clamp(9px,1.1vw,12px);overflow-wrap:normal}
/* The technician property directory is a full page, including on mobile. */
.property-finder-page{margin-top:20px}.property-finder-page select,.property-finder-page input{max-width:100%}.property-finder-page #all-properties-search{margin-top:24px;border-top:1px solid var(--line);padding-top:8px}.property-finder-page #property-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.property-finder-page .property-result{margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.property-finder-page #property-search-results{grid-template-columns:1fr}}
.property-finder-page #property-search-results>p{grid-column:1/-1;margin:10px 0 0}.property-finder-page #property-search-results>.property-result{height:100%;align-content:start}

/* Keep all four Office destinations inside the fixed iPhone navigation row. */
@media(max-width:800px){body[data-portal="office"] aside nav{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:72px;overflow:hidden}body[data-portal="office"] nav [data-nav="settings"]{order:3}body[data-portal="office"] nav [data-nav="user-portal"]{order:4}body[data-portal="office"] aside nav button{font-size:clamp(9px,2.5vw,12px);padding-inline:2px;white-space:normal}}
body .client-portal-tabs{margin:18px 0 18px}
@media(max-width:600px){body .client-portal-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .client-portal-tabs button{min-width:0;padding:10px 6px}}
#employee-record-form .licence-delete-button{margin:18px 0 4px;background:#a33429;color:white;border-color:#a33429}#employee-record-form .licence-delete-button[hidden]{display:none}

.office-attention.attention-pending{border:1px solid #9aaeb3;background:#f2f6f7;color:#263f46}.attention-pending-checks{margin:16px 0;padding:14px;border:1px solid #c4d0d4;border-radius:8px;background:#f2f6f7;color:#263f46}
.next-visit-card{background:#fff;color:#163d32;padding:18px;border:1px solid #b9cbbc;border-radius:12px;margin:14px 0}.next-visit-label{display:inline-block;padding:6px 10px;background:#163d32;color:#fff;border-radius:6px;font-weight:700}.next-visit-estimated .next-visit-label{background:#eaf1e8;color:#163d32;border:1px solid #789582}.next-visit-date{font-size:1.15rem;font-weight:700}.next-visit-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.next-visit-controls>div{flex:1;min-width:min(240px,100%)}.next-visit-controls select{width:100%}#portal-next-visit{padding:0;border:1px solid #b9cbbc;border-radius:16px;background:#fff;color:#163d32;width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 24px 80px #102c2640}#next-visit-result{overflow-wrap:anywhere}.next-visit-card h3{margin:14px 0 8px}@media(max-width:560px){.next-visit-controls{display:block}.next-visit-controls button{margin-top:10px;width:100%}.portal-next-visit-toolbar{justify-content:flex-end}.next-visit-card,.next-visit-dialog-body{padding:14px}}

/* Customer schedule dialog and recognizable Office tool icons. */
.portal-next-visit-toolbar{display:flex;justify-content:flex-end;margin:0 0 20px}.portal-next-visit-toolbar .next-visit-launch{display:flex;gap:12px;align-items:center;text-align:left;background:#eef3e8;color:#163d32;border:2px solid #163d32;border-radius:12px;padding:12px 18px;box-shadow:0 3px 0 #163d3218}.next-visit-launch:hover{background:#e1ebdb}.next-visit-launch strong{display:block;font-size:1rem}.next-visit-launch small{display:block;margin-top:4px;font-size:.78rem;font-weight:400}.next-visit-calendar{display:grid;place-items:center;background:#163d32;color:white;border-radius:9px;width:38px;height:38px;flex-shrink:0}.next-visit-calendar svg{width:25px;height:25px}.next-visit-dialog-body{padding:24px}.next-visit-dialog-heading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.next-visit-dialog-heading h2{margin:8px 0 20px}.next-visit-close{width:44px;min-width:44px;height:44px;font-size:26px;line-height:1;padding:0;display:grid;place-items:center}#portal-next-visit::backdrop{background:#0d2821a8;backdrop-filter:blur(3px)}.office-tool-icon{display:inline-flex;width:22px;height:22px;flex:0 0 22px;align-items:center;justify-content:center}.office-tool-icon svg{width:22px;height:22px}.office-tools button{display:flex;align-items:center;gap:12px}.office-tool-label{flex:1}.office-tool-arrow{margin-left:auto;opacity:.8}@media(max-width:560px){.next-visit-dialog-body{padding:16px}.next-visit-launch{max-width:100%}#portal-next-visit{max-height:calc(100dvh - 24px)}}
#portal-next-visit-button small{color:#466353}#portal-next-visit-button:hover{color:#163d32;background:#e1ebdb}

.staff-login-actions{display:grid;gap:12px;margin-top:18px}.staff-login-actions button{width:100%;min-height:46px}

.staff-identity-entry{display:grid;gap:12px;padding:18px 0}.staff-identity-email{display:block;min-width:0;overflow-wrap:anywhere}.staff-identity-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.staff-identity-actions button{width:100%;min-height:46px;margin:0}@media(max-width:480px){.staff-identity-actions{grid-template-columns:minmax(0,1fr)}}

/* Staff sign-in uses scoped control spacing, including native-size checkboxes. */
#pin-login.staff-login-form{display:grid;gap:18px;margin-top:20px}
#pin-login .staff-login-field{display:grid;gap:8px}
#pin-login .staff-login-field label,#pin-login .staff-login-field input{margin:0}
#pin-login .staff-login-field input{width:100%;min-height:46px}
#pin-login .staff-login-remember{display:flex;align-items:flex-start;gap:10px;margin:0;line-height:1.5;cursor:pointer}
#pin-login .staff-login-remember input{appearance:auto;width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:1px 0 0;padding:0;accent-color:#163d32}
#pin-login .staff-login-buttons{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#pin-login .staff-login-buttons button.forget-staff-identifier{justify-self:start;width:auto;min-height:32px;padding:4px 0;background:none;color:inherit;border:none;text-decoration:underline;font-size:.875rem}
#pin-login .staff-login-buttons button{display:block;width:100%;min-height:46px;margin:0;white-space:normal}
#pin-login #staff-different{background:#fff;color:#163d32;border:1px solid #94ad9f}
#pin-login #staff-different:hover{background:#edf3e9}
#pin-login #staff-login-error{margin:0}
#pin-login #staff-login-error:empty,#pin-login [hidden]{display:none!important}

.staff-account-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:18px}.staff-account-actions button{width:100%;min-height:46px;margin:0}.staff-account-actions [hidden]{display:none!important}.tech-login{flex-wrap:wrap;justify-content:flex-end;gap:10px}#staff-switch-portal[hidden]{display:none!important}@media(max-width:650px){header .tech-login{margin-left:auto;max-width:100%}#portal-user-name{flex-basis:100%;text-align:right}}

label[for="edit-office-staff"],label[for="edit-admin"]{font-size:18px;line-height:1.4;margin-block:24px 12px}

.tech-login :is(#staff-switch-portal,#profile),header .actions :is(#customer-switch-portal,#customer-signout,#hosted-customer-signout){display:inline-flex;align-items:center;justify-content:center;width:124px;min-width:124px;height:46px;min-height:46px;padding:10px 12px;font:600 14px/1.3 system-ui,-apple-system,sans-serif;border-radius:9px;text-decoration:none;white-space:normal;text-align:center}.owner-profile-form{display:grid;gap:16px;margin-top:20px}.owner-profile-form label,.owner-profile-form p{margin:0}.owner-profile-form input{width:100%;margin:8px 0 0}.owner-profile-form>button{width:100%;min-height:46px}#owner-profile-status:empty{display:none}

.client-portal-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,180px));gap:12px}.client-portal-tabs button{width:100%;min-height:46px}.customer-management-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.customer-management-actions button{width:100%;min-height:46px;white-space:normal}@media(max-width:900px){.customer-management-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.customer-management-actions{grid-template-columns:minmax(0,1fr)}}

#modal .staff-portal-options{gap:12px;margin-top:20px}#modal .staff-portal-options>button{width:100%;min-height:46px;margin:0}#modal .staff-portal-options>[hidden]{display:none!important}

/* PIN invitation action has a separate compact row below the login instructions. */
#employee-email-hint{display:block;margin-top:6px;line-height:1.5}
#employee-invite-pin{display:block;width:fit-content;max-width:100%;min-height:38px!important;padding:8px 12px!important;margin:14px 0 12px!important;font-size:14px!important;line-height:1.35!important}
#employee-invite-pin[hidden],#employee-set-pin[hidden]{display:none}
#employee-invite-hint{margin:8px 0 16px;line-height:1.5}

#modal .employee-profile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
#modal .employee-profile-actions>button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%!important;min-width:0;height:60px!important;min-height:60px!important;margin:0!important;padding:10px 12px!important;font-size:14px!important;line-height:1.3!important;white-space:normal;text-align:center}
#modal .employee-profile-actions>button[hidden]{display:none}
@media(max-width:540px){#modal .employee-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:340px){#modal .employee-profile-actions{grid-template-columns:minmax(0,1fr)}}
#modal:has(#estimate-office-frame){min-width:0;max-width:96vw;overflow-x:hidden;overscroll-behavior-x:none;box-sizing:border-box}
#modal #estimate-office-frame{display:block;min-width:0;max-width:100%;box-sizing:border-box}
/* Selected-property actions: equal mobile targets instead of content-sized wrapping. */
@media(max-width:650px){
 #modal .directory-summary .directory-property-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:12px;align-items:stretch;width:100%;min-width:0;margin-top:20px}
 #modal .directory-summary .directory-property-actions>button{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;min-height:56px;height:100%;margin:0;padding:12px 10px;box-sizing:border-box;font-size:14px;line-height:1.3;text-align:center;white-space:normal;word-break:normal;overflow-wrap:normal}
 #modal .directory-summary .directory-property-actions>#directory-delete-property{grid-column:1/-1}
}
@media(max-width:360px){#modal .directory-summary .directory-property-actions{grid-template-columns:minmax(0,1fr)}}

.office-tool-row{position:relative;display:grid;min-width:0;transition:transform .12s ease}
.office-tool-row,.office-tool-row *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.office-tool-row > button:not(.office-tool-handle){width:100%;padding-inline-end:80px}
.office-tool-row .office-tool-arrow{display:none}
.office-tools .office-tool-row > .office-tool-handle{position:absolute;z-index:1;inset-inline-end:0;top:0;bottom:0;transform:none;width:68px;height:100%;min-height:52px;background:transparent;border:0;box-shadow:none;color:white;justify-content:center;padding:0;touch-action:none;user-select:none;-webkit-touch-callout:none;cursor:grab;font-size:1.8rem}
.office-tool-row.reordering .office-tool-handle{cursor:grabbing}
.office-tool-row.reordering{outline:3px solid #83ad97;outline-offset:3px;border-radius:8px;transform:scale(1.08);z-index:2;box-shadow:0 10px 24px #163d3266}
@media(prefers-reduced-motion:reduce){.office-tool-row{transition:none}}
.office-order-status:not(:empty){display:block;margin-top:.5rem}

.workspace-configuration .configuration-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:10px;margin-bottom:16px}
.workspace-configuration .configuration-sections button,.workspace-configuration .station-type-options button{background:#edf2e7;color:var(--green);border:2px solid #759480;overflow-wrap:anywhere}
.workspace-configuration .configuration-sections button{min-height:56px;font-weight:750}
.workspace-configuration button[aria-pressed="true"]{background:var(--green);color:white;border-color:var(--green);font-weight:700}
.workspace-configuration button:focus-visible,.workspace-configuration select:focus-visible{outline:3px solid #83ad97;outline-offset:2px}
.configuration-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:clamp(14px,2vw,26px)}
.configuration-panel>h2{margin-bottom:14px}
.configuration-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.workspace-configuration label{display:block;margin:12px 0 5px;font-weight:650}
.workspace-configuration select,.workspace-configuration input:not([type="checkbox"]){width:100%;min-width:0;border:2px solid #789281;border-radius:8px;padding:9px 12px;min-height:44px}
.station-template-layout{display:grid;grid-template-columns:minmax(155px,1fr) minmax(0,2fr);gap:16px;align-items:start;margin-top:14px}
.station-type-options{display:grid;gap:6px}
.workspace-configuration .station-type-options button{text-align:left}
.station-template-editor{min-width:0;border:3px solid var(--green);border-radius:10px;padding:clamp(12px,2vw,22px);overflow-wrap:anywhere}
.station-template-editor .modal-actions{flex-wrap:wrap;gap:10px}
.station-template-editor .station-template-delete{background:#a7352b;color:white}
@media(max-width:700px){.station-template-layout{grid-template-columns:minmax(0,1fr)}.workspace-configuration .configuration-sections{grid-template-columns:1fr}.workspace-configuration .template-question-actions{flex-wrap:wrap}.workspace-configuration .template-choice input{width:0}}

#one-time-pilot label:not([hidden]){display:grid;gap:.45rem;margin:.85rem 0}
#one-time-pilot select{width:100%;box-sizing:border-box;min-height:42px}
#one-time-pilot fieldset{min-width:0;margin:1rem 0;padding:.8rem}
#one-time-pilot label.pilot-choice{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:46px;border:1px solid #a7b8af;border-radius:8px;padding:.5rem .8rem;margin:.45rem 0;cursor:pointer;box-sizing:border-box}
#one-time-pilot .pilot-choice input[type=checkbox]{position:static;width:24px;height:24px;min-width:24px;margin:0;accent-color:#143d32}
#one-time-pilot .pilot-choice:has(input:checked){background:#e5f1eb;border-color:#24604e}
#one-time-pilot .pilot-choice:focus-within{outline:2px solid #24604e;outline-offset:2px}

.workspace-configuration label.equipment-checkbox:not([hidden]),
#modal label.equipment-checkbox:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}
label.equipment-checkbox input[type="checkbox"] {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  accent-color: #1764ce;
}

/* Back stays in the header; portal, property and employee labels share one line below. */
header:has(#workspace-back-row:not([hidden])) {
  height: auto;
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 8px 18px;
  padding-block: 10px;
}
#workspace-back-row { grid-column: 1; grid-row: 1; min-width: 0; }
#workspace-back-row[hidden] { display: none; }
#workspace-back-row button { padding: 7px 12px; min-height: 36px; }
header:has(#workspace-back-row:not([hidden])) .portal-heading {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
}
.portal-heading #portal-title,
.portal-heading #technician-site-name,
.portal-heading .staff-account { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
header:has(#workspace-back-row:not([hidden])) .tech-login { grid-column: 2; grid-row: 1; }
.setup-mode-notice {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin:18px 0; padding:14px 18px; border:1px solid #a8c3ad;
  border-radius:10px; background:#eaf2e4; color:#163d32;
}
.setup-mode-notice strong { font-size:16px; }
.setup-mode-notice span { color:#526849; }
@media(max-width:650px) {
  header:has(#workspace-back-row:not([hidden])) { min-height:0; padding:8px 12px; gap:6px 10px; }
  header:has(#workspace-back-row:not([hidden])) .tech-login { gap:6px; }
  header:has(#workspace-back-row:not([hidden])) .tech-login button { min-height:36px; padding:6px 9px; font-size:12px; }
  header:has(#workspace-back-row:not([hidden])) .portal-heading { grid-column:1/-1; font-size:12px; gap:7px; }
}

/* Center station headings above a photo and its aligned action column. */
.station{grid-template-columns:minmax(0,1fr) 128px;row-gap:14px}
.station>.detail{grid-column:1 / -1;grid-row:1;text-align:center}
.station>.detail>b{display:block;font-size:clamp(20px,1.8vw,26px);line-height:1.25}
.station>.detail>small{font-size:clamp(15px,1.3vw,18px);line-height:1.45;margin-top:8px}
.station>station-reference{grid-column:1;grid-row:2;display:block;width:100%;min-width:0}
.station>station-reference[hidden]{display:none}
.station>station-reference img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:10px;background:#f0f3e9}
.station>.station-actions{grid-column:2;grid-row:2;align-self:start}
.station>.pill{grid-column:1;grid-row:3}
@media(max-width:700px){.station{grid-template-columns:minmax(0,1fr) 112px}}
.station-next-actions{display:grid;gap:12px;margin-top:24px}


/* Clear, camera-first control for technician project and station photos. */
.project-photo-capture{position:relative;width:min(100%,220px);margin:12px 0 20px}
.take-photo-button{width:100%;aspect-ratio:1;display:grid;place-content:center;justify-items:center;gap:12px;background:var(--green);border:2px solid var(--green);border-radius:16px;color:#fff;font-weight:750;font-size:18px}
.take-photo-button:hover{border-color:#70917b;background:#1d4a3c}
.take-photo-button:focus-visible{outline:3px solid #87aa67;outline-offset:3px}
.project-photo-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}

/* Technician property overview: square primary actions and a compact 2×2 status grid. */
.technician-property-intro{display:none!important}
.technician-property-home{display:flex;flex-direction:column;align-items:stretch;gap:22px}
.technician-property-home>.actions.technician-property-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:480px}
.hero .actions.technician-property-actions .tech-home-action{display:grid;place-content:center;justify-items:center;gap:10px;aspect-ratio:1;min-width:0;min-height:0;padding:10px 6px;border-radius:14px;white-space:normal;text-align:center;background:#fff;color:var(--green);border:2px solid rgba(255,255,255,.75)}
.technician-property-actions .tech-home-action span{font-size:clamp(22px,5vw,32px);line-height:1}
.technician-property-actions .tech-home-action b{font-size:clamp(12px,3.2vw,16px);line-height:1.25}
.technician-property-actions .tech-home-action:disabled{opacity:.6;cursor:not-allowed}
.technician-property-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.technician-station-round{margin-bottom:24px}
body[data-portal="technician"] #technician-site-name{display:none!important}
@media(max-width:650px){
 .technician-property-home{padding:20px;gap:18px}
 .technician-property-home h2{font-size:24px}
 .technician-property-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .technician-property-stats .stat{min-width:0;padding:14px 10px}
 .technician-property-stats .stat span{font-size:11px;line-height:1.35}
}



.project-photo-capture{margin-inline:auto}
.station-location-edit{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:2px 6px;margin-left:4px;vertical-align:middle;color:var(--green)}
.project-photo-status{margin:12px 0;font-weight:600;overflow-wrap:anywhere}

.station .detail{position:relative}
.station .station-location-line:has(.station-location-edit){display:block;padding-inline:24px}
.station .detail button.station-location-edit{position:static;background:transparent;border:0;box-shadow:none;color:#65756b;font-size:14px;width:32px;height:32px;min-height:32px;padding:0;margin:0}

.station-location-line > span { display:inline-block; max-width:100%; overflow-wrap:anywhere }

.station .station-location-line:has(.station-location-edit){padding-inline:0;white-space:normal}
.station-location-line > span{white-space:normal;max-width:100%}
.technician-property-stats .station-status-link{background:white;color:inherit;font:inherit;width:100%;text-align:center}


.station-name>span{position:relative}
.station .station-name button.station-location-edit{position:absolute;right:100%;top:50%;transform:translateY(-50%)}
@media(min-width:801px){
 .hero.technician-property-home{align-items:center;text-align:center}
 .technician-property-home .actions{justify-content:center}
}


@media screen and (max-width:800px){
 body.workspace-locked{height:100dvh;overflow:hidden}
 body.workspace-locked>.workspace{height:100%;overflow-y:auto!important;overscroll-behavior-y:contain}
}

#trash-search{display:grid;gap:10px}#trash-results .history-entry{display:block;border:1px solid var(--line);border-radius:12px;padding:16px;margin-block:16px}#trash-results .history-entry>button,#trash-restore{width:100%}#trash-confirm{width:28px;height:28px;vertical-align:middle;margin-inline-end:10px}

.record-deletion h2{margin-bottom:20px}
.record-deletion>label{font-size:14px}
.record-deletion>select,.record-deletion>input{width:100%;min-width:0;min-height:48px}
.cleanup-catalog-list{display:grid;gap:10px;margin-top:16px}
.cleanup-record-open{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;padding:16px}
.cleanup-record-open>span:first-child{min-width:0;overflow-wrap:anywhere}
.cleanup-record-open small{display:block;margin-top:5px;font-weight:400}
.cleanup-record-open>span:last-child{flex-shrink:0;font-size:12px}
.record-deletion details{margin-block:14px;border:1px solid var(--line);border-radius:10px;padding:14px}
.record-deletion summary{cursor:pointer;font-weight:700;min-height:36px}
.record-deletion .office-cleanup-choice{display:flex;align-items:center;gap:12px;min-height:52px;padding-block:10px;margin:0;font-size:15px}
.record-deletion input[type="checkbox"]{width:28px;min-width:28px;height:28px;margin:0;accent-color:var(--green)}
.record-deletion .linked-record-table input[type="checkbox"]{display:inline-block}
.record-deletion .linked-record-table td{padding-block:14px}
#cleanup-confirmation:empty{display:none}
#cleanup-confirmation{margin-top:20px;border:2px solid #a3322a;border-radius:12px;padding:18px}
#cleanup-confirmation ul{max-height:240px;overflow-y:auto;padding-inline-start:22px}
.record-deletion .linked-record-footer{position:sticky;bottom:0;background:white;padding-block:14px}
@media(max-width:500px){.cleanup-record-open{align-items:flex-start;flex-direction:column;gap:8px}.record-deletion .linked-record-table{width:100%;table-layout:fixed}.record-deletion .linked-record-table th:last-child,.record-deletion .linked-record-table td:last-child{width:76px}.record-deletion .linked-record-table td{overflow-wrap:anywhere}}

/* Keep service-history date bounds together at every viewport width. */
#history-search .history-date-range{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}#history-search .history-date-range>div{min-width:0}#history-search .history-date-range input{width:100%;min-width:0;max-width:100%}



/* Keep iOS date controls inside their cards and separated cleanup actions tappable. */
#office-date.office-service-date{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:auto;appearance:none;-webkit-appearance:none;text-align:center;min-height:48px}
#office-date::-webkit-date-and-time-value{min-height:1.5em;text-align:center}
.cleanup-user-actions{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.native-pull-refresh-ready [data-office-home-refresh]{display:none}
#pull-refresh-status{position:fixed;left:50%;transform:translateX(-50%);z-index:2147483647;padding:10px 18px;border-radius:20px;background:#163d32;color:white;box-shadow:0 3px 14px #0003;font-size:14px;pointer-events:none;max-width:90vw;text-align:center}
#pull-refresh-status[hidden]{display:none}


.office-review-queue{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.office-review-queue>p{font-size:13px;margin:10px 0}.office-review-list{max-height:24rem;overflow:auto}.office-review-list .history-entry{padding-block:12px 0}.office-review-list .history-entry>p{font-size:13px;margin:8px 0}.office-review-list .history-entry:first-child{border-top:0}


@media screen and (min-width:801px){
  .home-shortcuts:has(>button:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
}

.station:has(>station-reference:not([hidden])) > .detail { grid-column: 1; }
.station .detail:has(.station-location-edit) { padding-inline: 36px; box-sizing: border-box; }
.station .station-location-line > span { position: relative; }
.station .station-location-line button.station-location-edit { position:absolute; right:100%; top:50%; transform:translateY(-50%); }

