/* Daily work first; advanced tools stay available through explicit disclosure. */
:root{--paper:#fafbf9;--radius:12px;--line:#e5e9e5}
.sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line);padding-top:28px}
.brand{color:var(--ink);font-size:21px;letter-spacing:0;gap:10px}.brand-icon{width:38px;height:38px}
.sidebar nav{margin-top:32px}.sidebar nav a{color:#526057;font-weight:500;padding:12px;margin:3px 0}
.sidebar nav a.active,.sidebar nav a:hover{background:#edf5eb;color:#245e2d}.sidebar nav a span{font-size:17px}
.sidebar-bottom{color:var(--muted);font-size:12px;border-color:var(--line)}
.nav-more{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.nav-more>summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:14px;color:var(--ink);font-size:17px;font-weight:650;line-height:1.3;cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:12px;background:#f4f7f2}
.nav-more a{font-size:16px!important;line-height:1.4;min-height:48px}.topbar{height:64px;background:#fff}.breadcrumb{font-size:13px}
.page-head{margin-bottom:24px}.page-head h1{font-size:28px;letter-spacing:-.6px;margin:0 0 8px}.page-head p{max-width:620px;font-size:14px}
.card,.workshop-card{box-shadow:none;border-radius:12px}.eyebrow{letter-spacing:.08em}
.simple-welcome{margin-bottom:28px}.simple-welcome h1{margin:0 0 8px;font-size:30px}.simple-welcome p{color:var(--muted);margin:0}
.start-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.start-action{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:24px;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;min-height:128px;cursor:pointer}
.start-action strong{font-size:19px;font-weight:650}.start-action small{font-size:13px;color:var(--muted)}
.start-action.is-primary{background:var(--green);border-color:var(--green);color:#fff}.start-action.is-primary small{color:#d0ded3}
.start-action:hover{border-color:#7caa7e}.today-card{max-width:850px}.today-card h2{font-size:20px;margin:4px 0 12px}
.today-towns{font-size:17px;line-height:1.7}.quiet-summary{display:flex;gap:22px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin:24px 0}.quiet-summary a{color:inherit}
.simple-details{border-top:1px solid var(--line);padding-top:14px}.simple-details>summary{font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;list-style-position:inside}
.simple-details[open]>summary{margin-bottom:16px}.simple-day{display:flex;flex-direction:column;gap:14px;padding:20px!important}.simple-day h3{font-size:18px;margin:0}
.simple-day ol{padding-left:18px;margin:0}.simple-day li{padding:3px 0;font-size:14px}.simple-day .day-footer{margin-top:auto;display:flex;gap:8px;flex-wrap:nowrap;align-items:center}
.simple-day .day-footer>a{margin-left:auto}.simple-day .badge{font-size:11px}.simple-day .simple-details p{font-size:13px;line-height:1.7}
.week-controls{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.week-controls select{min-width:200px;max-width:460px}.week-controls .simple-details{border:0;padding:0}
.week-controls .simple-details[open]{width:100%;border-top:1px solid var(--line);padding-top:14px}
.workshop-card .workshop-logo{width:52px;height:52px;border-radius:10px}.workshop-card h3{font-size:18px}.workshop-card p{font-size:13px;margin-bottom:10px}.workshop-card .workshop-identity{margin:8px 0 14px}
.workshop-card .nav-icons img{width:28px;height:28px}.workshop-card .simple-details{margin:12px 0}.notice{font-size:13px}
.simple-login{max-width:390px;margin:8vh auto;padding:32px 24px}.simple-login h1{font-size:25px;margin:18px 0 8px}.simple-login>p{color:var(--muted);font-size:14px;margin-bottom:28px}
footer{font-size:11px;color:var(--muted)}
@media(max-width:767px){.start-actions{grid-template-columns:1fr;gap:10px;margin-bottom:24px}.start-action{padding:18px 20px;min-height:86px;gap:4px}.start-action strong{font-size:18px}.simple-welcome h1{font-size:26px}.simple-day{padding:18px!important}.page-head h1{font-size:25px}.week-controls select{width:100%;max-width:none}.quiet-summary{gap:10px 18px}.sidebar{padding-top:24px}.simple-login{margin-top:4vh}.breadcrumb>span:first-child{display:none}}

.brand-symbol{display:inline-flex;align-self:flex-start;line-height:1}.brand-symbol .brand-icon{width:44px;height:44px}
.nav-icons a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}
.nav-icons img{object-fit:contain;aspect-ratio:1;flex-shrink:0}.logo-placeholder{background:#f5f7f5}
.logo-placeholder>img{object-fit:contain;display:block;max-width:70%;max-height:70%}
.last-contact{margin-top:20px;padding:14px;background:#f5f8f3;border-radius:10px}
.day-today{border-color:#88ad80}.day-today h3{color:var(--green)}
.mobile-nav{display:none}
:focus-visible{outline:3px solid #7fac75;outline-offset:3px}
@media(max-width:767px){
 .mobile-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:45;background:#fff;border-top:1px solid var(--line);padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .mobile-nav a,.mobile-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;min-width:44px;margin:0;padding:5px 2px;color:#647067;text-decoration:none;font-size:11px;font-weight:500;border-radius:8px}
 .mobile-nav a.active,.mobile-nav button.active{background:#edf5eb;color:#245e2d}.mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .workspace{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.topbar{padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top))}.sidebar{padding-top:calc(24px + env(safe-area-inset-top))}
 input:not([type=checkbox]):not([type=hidden]),select,textarea{font-size:16px!important;min-height:44px;max-width:100%;min-width:0;width:100%}
 .button,button.primary,.icon-button,.nav-icons a{min-height:44px;min-width:44px}.form-grid{grid-template-columns:minmax(0,1fr)}
 dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:auto}
 dialog .form-actions,dialog form>button.primary:last-child{position:sticky;bottom:0;z-index:2;margin-bottom:0;padding-top:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom));background:#fff}
 dialog form>button.primary:last-child{background:var(--green);padding:13px 18px;min-height:48px}#network:not(.is-offline){display:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Bootstrap controls and navigation: avoid inherited sidebar span widths. */
body{font-family:var(--bs-font-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif);-webkit-text-size-adjust:100%;text-size-adjust:100%}
.sidebar-close,.menu-backdrop{display:none}.nav-svg{display:block;flex:0 0 auto;object-fit:contain}.sidebar nav .nav-svg{width:22px;height:22px}
.btn{--bs-btn-font-size:1rem;--bs-btn-padding-y:.7rem;--bs-btn-padding-x:1rem;--bs-btn-border-radius:.65rem}.btn-primary{--bs-btn-bg:var(--green);--bs-btn-border-color:var(--green);--bs-btn-hover-bg:var(--green2);--bs-btn-hover-border-color:var(--green2)}
@media(max-width:767px){
 .sidebar{width:min(320px,calc(100vw - 48px));transform:translateX(-100%);transition:transform .2s;z-index:1050;padding-bottom:calc(20px + env(safe-area-inset-bottom));overflow-y:auto;height:100dvh}.sidebar.open{transform:translateX(0)}
 .sidebar-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:absolute;right:14px;top:calc(18px + env(safe-area-inset-top));min-height:48px;min-width:92px}
 .menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#10261b66;z-index:1040}.menu-is-open{overflow:hidden}
 .workspace{margin-left:0}.topbar #menu{display:inline-flex;align-items:center;justify-content:center}.sidebar nav{margin-top:24px}
 .mobile-nav{gap:4px;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 .mobile-nav a,.mobile-nav button{min-width:0;min-height:58px;padding:7px 2px;font-size:12px;line-height:1.2;letter-spacing:normal;font-weight:600}
 .mobile-nav a span,.mobile-nav button span{width:auto!important;max-width:100%;font-size:13px!important;line-height:1.2!important;white-space:nowrap;letter-spacing:normal;text-align:center}
 .mobile-nav .nav-svg{width:23px;height:23px}.sidebar nav a{min-height:48px;font-size:16px}
 .button,button.primary,button.secondary,.actions .button,.page-head .button,.btn{min-height:48px;font-size:16px;padding:12px 16px}.button.text{min-height:48px;padding:12px 8px}
 .page-head .button{flex-shrink:0;white-space:nowrap}.page-head{flex-wrap:wrap}.avatar{width:44px;height:44px;font-size:16px}
 .form-grid label,.form-stack label{font-size:15px;line-height:1.45}.form-control,.form-select{min-height:48px;padding:12px;font-size:16px}.checkbox-label{min-height:48px}.form-check-input{width:22px!important;height:22px;min-height:22px;flex-shrink:0}
 .toolbar .form-select{min-width:140px}.toolbar .checkbox-label{flex:1 0 100%}.toolbar{align-items:stretch}.workshop-card p,.page-head p{font-size:15px;line-height:1.5}
 .workshop-card .card-bottom{flex-wrap:wrap}#toast{bottom:calc(88px + env(safe-area-inset-bottom))}
}

.workshop-filters{flex:1 0 100%;padding:12px 0}.workshop-filters>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:15px}.workshop-filters>summary::before{content:'+';font-size:20px}.workshop-filters[open]>summary::before{content:'−'}.workshop-filters select{width:100%;max-width:none}.workshop-filters .form-grid>a{justify-self:start}
.modal-head{position:sticky;top:0;z-index:4;background:#fff;padding:10px 0 12px;border-bottom:1px solid var(--line)}.modal-head>div{min-width:0}.modal-head h2{overflow-wrap:anywhere}.modal-head [data-action="close"]{flex-shrink:0;min-width:48px;min-height:48px;font-size:26px}.meal-option{padding:14px;border:1px solid var(--line);border-radius:10px}.meal-option input[type=checkbox]{margin-top:0}
@media(max-width:767px){.toolbar .workshop-filters input[type=checkbox]{width:22px}.nav-icons a{min-width:48px;min-height:48px}.workshop-card .card-bottom{gap:8px}.workshop-card .card-bottom .button{margin-left:auto}.workshop-filters .form-grid{grid-template-columns:1fr}.mobile-nav{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.modal-head h2{font-size:21px}.workshop-card .workshop-identity{margin-bottom:8px}.workshop-card{gap:6px}}

.home-province-progress{max-width:850px}.home-province-progress .province-row{grid-template-columns:85px minmax(0,1fr) 85px;gap:14px}.home-province-progress .progress{height:8px}.home-province-progress .progress-bar{background:#628c65}.home-province-progress .province-count b{font-size:15px;color:var(--ink);white-space:nowrap}.home-province-progress .card-head .button{flex-shrink:0}@media(max-width:767px){.home-province-progress .province-row{grid-template-columns:76px minmax(0,1fr) 78px;gap:10px}.home-province-progress .card-head{flex-wrap:wrap}.home-province-progress .province-row small{font-size:12px}.home-province-progress .province-count b{font-size:15px}}

.home-province-progress .province-percent{white-space:nowrap;text-align:right;font-size:.875rem;font-weight:600;font-variant-numeric:tabular-nums}.home-province-progress .province-link{grid-template-columns:minmax(5.25rem,max-content) minmax(0,1fr) 3rem 1rem;gap:.5rem;color:var(--ink);text-decoration:none;min-height:64px;border-radius:0;padding:16px 4px}.home-province-progress .province-link:hover,.home-province-progress .province-link:focus-visible{background:#f0f5ed}.province-open{font-size:26px;line-height:1;text-align:right;color:var(--green)}.province-detail-summary{max-width:850px}.province-detail-summary>.button{margin-bottom:12px}.province-detail-count{font-size:16px;margin-top:12px}.province-detail-count strong{font-size:26px;color:var(--green)}.province-detail-summary .progress{height:8px}.province-detail-summary .progress-bar{background:#628c65}

.territory-mobile{display:none}.reminder-row,.daily-stop{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:14px 0}.reminder-row>div,.daily-stop>div{min-width:0}.daily-stops .card{max-width:850px}.workday-overview,.next-visit,.reminder-summary{max-width:850px}.next-visit{border-color:#aac6a0}.next-visit h2{font-size:23px}.province-detail-summary{margin-bottom:20px}.locality-card h2{font-size:20px}.workday-overview .today-towns{overflow-wrap:anywhere}.province-link strong{font-size:16px}
@media(max-width:767px){.territory-desktop{display:none}.territory-mobile{display:grid;gap:12px}.locality-card{margin-bottom:0}.locality-card .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.locality-card .button{padding:12px 8px;font-size:15px}.daily-stop{align-items:flex-start;flex-direction:column;gap:10px}.daily-stop .actions{width:100%}.reminder-row{align-items:flex-start}.reminder-row .button{flex-shrink:0}.workday-overview .actions,.next-visit .actions{gap:10px}.daily-stops h2{font-size:20px}}

/* Resolution-independent UI; high-density raster sources stay at CSS display size. */
.nav-svg,.brand-icon,.button-svg{object-fit:contain;flex-shrink:0}.workshop-logo{aspect-ratio:1;image-rendering:auto}.button-svg{display:block}.province-detail-count,.province-count,.pagination{font-variant-numeric:tabular-nums}.daily-stop b,.locality-card h2,.reminder-row b{overflow-wrap:anywhere}
@media(max-width:767px){body{font-size:16px}.small{font-size:14px;line-height:1.5}.mobile-nav a,.mobile-nav button{min-height:60px}.mobile-nav .nav-svg{width:24px;height:24px}.workshop-card .nav-icons img{width:28px;height:28px}.workshop-card .card-bottom .button{white-space:nowrap}.form-grid input[type=time],.form-stack input[type=datetime-local]{min-width:0;max-width:100%}}

/* Keep the optional GPS control usable without squeezing the mobile header. */
.topbar .breadcrumb{min-width:0;flex:1}.topbar .breadcrumb b{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions,.topbar #menu{flex-shrink:0}#tracking-status{min-width:44px;white-space:nowrap}

#login:not([hidden]){
 display:flow-root;
 min-height:100vh;
 min-height:100dvh;
 background:#fff;
}
.simple-login h1{margin-top:0}
.login-lockup{
 display:flex;
 flex-direction:row;
 align-items:center;
 justify-content:center;
 gap:.75rem;
 max-width:100%;
 margin-bottom:1.75rem;
}
.login-lockup-symbol{display:block;width:38px;height:auto;flex:none}
.login-lockup-name{display:block;width:139px;height:auto;max-width:calc(100% - 50px);min-width:0}
.simple-login .form-label,.simple-login form > p{margin-bottom:0}
.simple-login #login-captcha:empty,.simple-login [role="alert"]:empty,.simple-login [role="status"]:empty{display:none}
.simple-login .login-help{justify-self:start;padding-inline:0}

.locality-picker.row{margin-left:0;margin-right:0}.locality-picker .form-select{min-width:0;max-width:100%}.locality-picker .form-label{width:100%}

.team-thread{max-height:50dvh;min-height:10rem;overflow:auto;overscroll-behavior:contain}
.text-prewrap{white-space:pre-wrap}
.workshop-title{font:inherit;font-weight:inherit;line-height:inherit;color:inherit;background:transparent;border:0;padding:.25rem 0;min-height:44px;text-align:left;width:100%;border-radius:.25rem}
.workshop-title:hover{text-decoration:underline;text-underline-offset:.2em}
.workshop-title:focus-visible{outline:3px solid #528b70;outline-offset:4px}

.team-spaces .nav-link{flex:1 1 0;min-width:0;min-height:48px;padding:.625rem .5rem;display:flex;align-items:center;justify-content:center;font-size:1rem;line-height:1.25;white-space:normal}

.person-photo{width:var(--person-size,72px);height:var(--person-size,72px);border-radius:50%;object-fit:cover;flex-shrink:0;background:#eef3e7}
.person-photo-placeholder{display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem;color:#12392f}
.profile-button-photo{width:36px;height:36px;border-radius:50%;object-fit:cover}
.vehicle-photo{display:block;width:100%;max-width:288px;height:180px;object-fit:contain;border-radius:.75rem;background:#f4f6f4}
.vehicle-photo-placeholder{display:flex;align-items:center;justify-content:center;color:#68766b}

/* Keep the page label centered without Bootstrap breadcrumb margins. */
.topbar .page-location{min-width:0;flex:1;align-self:center;font-size:13px;line-height:1.25}
.topbar .page-location b{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar #menu img{display:block}

.account-settings{max-width:860px;margin-inline:auto;display:grid;gap:20px}
.account-settings #personal-profile-slot{display:grid;gap:20px;min-width:0}
.account-settings>.card,.account-identity{margin-bottom:0}
.account-identity{padding:28px 20px!important}
.account-identity h2{font-size:24px;line-height:1.25;overflow-wrap:anywhere}
.account-identity .person-photo{border:4px solid #fff;box-shadow:0 0 0 1px var(--line)}
.account-section{padding:22px!important;min-width:0;display:flex;flex-direction:column}
.account-section h2{font-size:18px;margin-bottom:12px}
.account-phone{font-size:18px;line-height:1.4;overflow-wrap:anywhere;margin-bottom:20px}
.account-vehicle+.account-vehicle{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
.account-session-actions{gap:8px}
.account-session-actions .button{flex:0 1 auto;white-space:normal}

.brand-symbol{gap:10px;max-width:100%}.brand-symbol .brand-icon{width:40px;height:50px}.brand-text{width:140px;height:auto;max-width:calc(100% - 50px)}
.person-photo-open{border:0;padding:0;background:none;border-radius:50%;display:inline-flex;flex-shrink:0}
.profile-edit-icon,.notification-action{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.profile-photo-large{display:block;width:100%;max-width:512px;height:auto;object-fit:contain;margin-inline:auto;border-radius:12px}
.notification-bell{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.notification-count{position:absolute;top:0;right:0;background:#12392f;color:#fff;border:2px solid #fff;border-radius:999px;font-size:10px;font-weight:700;line-height:18px;min-width:22px;padding-inline:3px}
.notification-item{min-height:64px;white-space:normal;padding:16px!important}.notification-unseen{border-left:4px solid #438b5d!important;background:#f2f7ef}
@media(max-width:767px){.sidebar .brand-symbol{margin-top:58px}.top-actions{gap:8px!important}}

.staff-name{padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;overflow-wrap:anywhere}
.staff-name:hover{text-decoration-color:currentColor}.staff-person{padding:20px!important;display:flex;flex-direction:column}.min-width-0{min-width:0}
.staff-vehicle-photo{width:144px;height:96px;object-fit:contain;border-radius:8px;background:#f4f6f4}
.team-spaces{flex-wrap:wrap}.team-spaces .nav-link{flex:1 1 40%}
@media(min-width:768px){.team-spaces .nav-link{flex:1 1 0}}

.sidebar{overflow-y:auto}.sidebar>.brand,.sidebar>nav,.sidebar>.sidebar-bottom{flex-shrink:0}
.nav-more>summary::-webkit-details-marker{display:none}
.nav-more>summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;flex-shrink:0}
.nav-more[open]>summary::after{transform:rotate(225deg)}
.nav-more>summary:hover,.nav-more[open]>summary{background:#edf5eb;color:#245e2d}
.nav-more>summary:focus-visible{outline:3px solid #528b70;outline-offset:3px}
.nav-more-group{display:grid;gap:2px;padding-top:18px}.nav-more-group+.nav-more-group{border-top:1px solid var(--line);margin-top:12px}
.nav-more-heading{font-size:12px;font-weight:650;letter-spacing:.02em;color:var(--muted);margin:0 12px 4px;line-height:1.4}
.sidebar .nav-more-group a{margin:0;padding:12px 14px;overflow-wrap:anywhere}

.labor-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.labor-day{display:flex;align-items:center;justify-content:center;min-height:36px;font-size:14px;border:0;border-radius:6px;background:transparent;color:var(--ink)}
button.labor-day{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.labor-weekend{color:#727870;background:#f3f4f1}.labor-national{background:#e6eefb!important;color:#1e4c86!important}.labor-regional{background:#e5f2e6!important;color:#245d31!important}.labor-local{background:#fff0d7!important;color:#794800!important}
@media(max-width:767px){.sidebar-close{min-width:48px!important;width:48px;height:48px;right:12px;top:calc(24px + env(safe-area-inset-top))}.sidebar .brand-symbol{margin-top:0;max-width:calc(100% - 48px);min-height:48px}.brand-symbol .brand-icon{width:34px;height:44px}.brand-text{max-width:calc(100% - 44px)}}

/* Older calendar months share one compact disclosure instead of ten large cards. */
.work-calendar-month .accordion-button,.work-calendar-past>.accordion-item>.accordion-header>.accordion-button{min-height:44px;padding:10px 14px;font-size:16px;line-height:1.3;gap:8px}
.work-calendar-month[data-calendar-current]{scroll-margin-top:calc(80px + env(safe-area-inset-top))}
@media(min-width:768px){.work-calendar-month[data-calendar-current]{scroll-margin-top:16px}}

/* Compact single-line weather, including optional GPS action, on narrow phones. */
.home-context{padding:12px 16px}.home-context>div{min-width:0}.home-context .home-weather-icon{width:22px;height:22px}.home-weather-location.is-active{background:var(--cds-soft);box-shadow:inset 0 -2px var(--cds-primary)}
@media(hover:none) and (pointer:coarse){
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px!important}
 main{padding-left:max(17px,env(safe-area-inset-left));padding-right:max(17px,env(safe-area-inset-right))}
 .topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 dialog{max-width:min(740px,calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 20px))}
 .keyboard-open dialog[open]{top:calc(var(--cds-visual-top,0px) + 8px);bottom:auto;margin:0 auto;max-height:calc(var(--cds-visual-height,100dvh) - 16px)}
}
@media(max-width:767px){.keyboard-open .mobile-nav{display:none!important}.keyboard-open .workspace{padding-bottom:16px}}

/* Keep weekly navigation and PDF on one accessible row, including narrow phones. */
.week-navigation{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;min-width:0}.week-navigation>h2{flex:1 1 0;min-width:0;margin:0;font-size:18px}.week-navigation .week-navigation-actions{display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:6px;align-items:center}.week-navigation .week-navigation-actions>.button{display:inline-flex;flex:0 0 44px;align-items:center;justify-content:center;min-width:44px;min-height:48px;width:44px;padding:8px!important;margin:0}.week-navigation .week-navigation-actions img{flex-shrink:0}.simple-day .day-footer>.button{white-space:nowrap}.simple-day .day-footer>a{flex-shrink:0}


/* Compact route hierarchy: towns and estimates first; operational detail stays available. */
.route-clock{display:flex;align-items:center;gap:18px;padding:12px 14px;background:var(--cds-soft,#eef4eb);border-radius:12px;margin:0 0 14px}
.route-clock>span{min-width:0}.route-clock small{display:block;color:var(--muted);font-size:12px}.route-clock strong{font-size:19px;font-variant-numeric:tabular-nums}
.route-stops{margin:0 0 16px;padding-left:22px}.route-stops>li{padding:8px 0!important;font-size:14px}.route-stop-name{font-weight:600;overflow-wrap:anywhere}.route-stop-meta{display:flex;flex-wrap:wrap;gap:3px 12px;color:var(--muted);font-size:12px;margin-top:3px}.route-stop-meta>span{display:inline-flex;align-items:center;gap:4px}.route-stop-meta svg{width:14px;height:14px}.route-stop-meta b{color:var(--ink,#173c31);font-variant-numeric:tabular-nums}
.route-card{gap:12px}.route-card .route-clock,.route-card .route-stops{margin-bottom:0}.route-card>header h3{font-size:16px}.route-actions>.button:not(:first-child),.route-day-detail .route-actions>.button{min-width:44px;min-height:44px;padding:10px!important;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.route-actions>.button img{width:21px;height:21px}.route-card .route-actions>a[href^="/export.php"]{margin-left:auto}.route-actions{flex-wrap:nowrap!important}.route-card .route-traffic{font-size:12px;line-height:1.5}.route-copyright{white-space:normal;overflow-wrap:anywhere}.route-detail-body{margin-top:10px}.route-detail-body>p{margin-bottom:8px}.route-detail-body>ul{padding-left:18px}.route-details{padding-top:10px}.route-details[open]>summary{margin-bottom:8px}.route-day-detail .alert{margin-bottom:12px!important}.route-day-detail .route-stops{margin-top:12px}.route-card .alert .button{padding:0 4px!important;min-height:32px;color:inherit;font-weight:600}
.weather-brief{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:4px}.weather-brief>span:first-child{display:inline-flex;align-items:center;gap:4px}.weather-town{margin-bottom:12px}.weather-details{padding-top:8px}.weather-details>summary{font-size:12px}.weather-details[open]>summary{margin-bottom:8px}

.route-town-link{display:inline-block;text-align:left;background:transparent;border:0;padding:2px 0;min-height:32px;font:inherit;font-weight:600;color:var(--green);text-decoration:underline;text-decoration-color:#cddccf;text-underline-offset:3px}.route-town-link:hover{text-decoration-color:currentColor}.town-workshop-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.town-workshop-row:last-of-type{border-bottom:0}.town-workshop-row .workshop-title{text-align:left;font-weight:600;overflow-wrap:anywhere}.town-workshop-row>.button{flex-shrink:0}.town-workshop-row .badge{margin-top:4px}@media(pointer:coarse){.route-town-link{min-height:44px;margin-top:-4px;margin-bottom:-4px}}

.map-marker.cluster span{width:36px;height:36px;border-radius:50%;background:var(--green);color:white;border:2px solid white;box-shadow:0 1px 5px #12392f38;font-size:12px;font-weight:700;display:grid;place-items:center}.map-cluster-list{display:flex;flex-direction:column;max-height:240px;overflow:auto;margin-top:8px}.map-cluster-list>.button{justify-content:flex-start;text-align:left;white-space:normal}#map-feedback{min-height:1.5em}

.route-today>.route-clock{margin-bottom:14px}.route-today>.route-stops{margin-top:8px}.route-today>.route-traffic{font-size:12px;line-height:1.5}.route-today>.alert{margin-bottom:12px!important}.today-route-actions{flex-wrap:nowrap;gap:4px!important}.today-route-actions>.button:not(.primary){width:44px;min-width:44px;min-height:44px;padding:10px!important;flex-shrink:0}.today-route-actions>.primary{flex:1;white-space:nowrap;font-size:13px;padding:10px 12px!important}.today-progress .progress{height:5px}.route-today>header{flex-wrap:wrap}.route-today .route-detail-body>ul{padding-left:18px}

.labor-day.labor-today{position:relative;flex-direction:column;gap:2px;outline:2px solid var(--green);outline-offset:-2px;font-weight:700;line-height:1.1}.labor-today-label{font-size:9px;font-weight:700;color:var(--green);line-height:1;text-decoration:none}

.locality-card[data-code]{cursor:pointer}.locality-card h2>.workshop-title{font-size:inherit;text-align:left}.locality-card h2>.workshop-title:hover{text-decoration:underline;text-underline-offset:3px}

.daily-icon-action{width:44px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px!important}.daily-compact-button{min-height:44px;font-weight:600;white-space:nowrap}.daily-stop-number{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.daily-nav-tools{gap:6px!important}.daily-nav-tools>.daily-compact-button{margin-left:auto;padding:8px!important;font-size:12px}.daily-stops .list-group-item:last-child{border-bottom:0}.next-visit .card-body>.d-grid>.btn{font-size:14px}

.labor-day.labor-vacation{box-shadow:inset 0 -4px #2d765b}.labor-day.labor-vacation:not(button){background:#e6f3ed}.labor-vacation-key{background:#e6f3ed;color:#174b37;border-bottom:3px solid #2d765b}

.calendar-vacation-add{position:fixed;right:20px;bottom:calc(100px + env(safe-area-inset-bottom));z-index:35;border-radius:24px;min-height:44px;box-shadow:0 3px 12px #12392f28}@media(min-width:768px){.calendar-vacation-add{bottom:24px}}
