:root{font-family:Manrope,system-ui,sans-serif;color:#14233a;background:#f4f7fc;font-synthesis:none;--bg:#f4f7fc;--navy:#101b2e;--muted:#5b6d84;--line:#e1e8f1;--blue:#1c56d9;--blue-dark:#1746b1;--white:#fff}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-size:1rem}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.66}
:focus-visible{outline:3px solid #4a8cff;outline-offset:3px}
svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.shell{min-height:100dvh}
.sidebar{width:242px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;background:var(--navy);color:#b5c3d8;padding:32px 20px 22px;z-index:2}
.brand{display:flex;align-items:center;gap:12px;margin:0 0 59px 8px;color:white;font-size:1.17rem;font-weight:800;letter-spacing:-.045em;line-height:1.08}
.brand-icon{width:41px;height:41px;flex:none;display:grid;place-items:center;background:#2463e6;border-radius:11px;color:white;box-shadow:0 4px 14px #123c8d65}
.brand-icon svg{width:23px;height:23px}
.brand small{display:block;letter-spacing:.13em;font-size:.59rem;margin-top:7px;color:#a8bad5;font-weight:800}
.nav-label{font-size:.69rem;letter-spacing:.135em;font-weight:800;color:#9cacc4;margin:0 0 12px 12px}
.sidebar nav a{display:flex;align-items:center;gap:12px;padding:0 13px;min-height:47px;margin-bottom:5px;border-radius:8px;font-size:.9rem;font-weight:700;position:relative}
.sidebar nav a:hover{background:#1a2a45;color:white}
.sidebar nav a.active{background:#243c65;color:white}
.sidebar nav a.active svg{color:#8db6ff}
.sidebar nav a.active::before{content:"";position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:3px;background:#77a8ff}
.sidebar-bottom{margin-top:auto;border-top:1px solid #29374d;padding:19px 4px 0}
.sidebar-meta{display:flex;align-items:center;gap:10px}
.sidebar-meta>span{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#22344e;color:#89b4fa}
.sidebar-meta>span svg{width:17px;height:17px}
.sidebar-meta strong,.sidebar-meta small{display:block;font-size:.78rem}
.sidebar-meta strong{color:#e3ecfa}
.sidebar-meta small{margin-top:2px;font-size:.7rem;color:#a9b9d0}
.workspace{margin-left:242px}
.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 33px}
#breadcrumb{font-size:.925rem;font-weight:800}
.header-right{display:flex;align-items:center;gap:17px;color:var(--muted)}
#today{display:flex;align-items:center;gap:8px;font-size:.855rem;font-weight:700}
#today svg{width:16px;height:16px}
.header-divider{height:28px;border-left:1px solid var(--line)}
.avatar{display:grid;place-items:center;border-radius:50%;background:#e7efff;color:#244ba3;font-size:.72rem;font-weight:800;width:36px;height:36px}
.mobile-brand{display:none}
main{max-width:1500px;margin:0 auto;padding:31px 33px 45px}
.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:15px;padding:33px 36px 34px;min-height:244px;background:#102645;color:white;display:flex;align-items:center;box-shadow:0 5px 12px #162d4f13}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0c1e38 0%,#0c1e38dd 28%,#11284748 66%,#142b4c06),url('/winter.webp') center 53%/cover no-repeat}
.hero-inner{max-width:620px}
.hero-kicker{display:flex;align-items:center;gap:7px;color:#acd0ff;font-size:.71rem;letter-spacing:.14em;font-weight:800;margin:0 0 11px}
.hero-kicker svg{width:15px;height:15px}
h1,h2,p{margin:0}
h1{font-size:2.6rem;line-height:1.12;font-weight:800;letter-spacing:-.055em}
.hero p:not(.hero-kicker){color:#dce7f6;margin-top:11px;font-size:.98rem;line-height:1.65;max-width:475px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:8px 14px;border-radius:8px;border:1px solid transparent;font-weight:800;font-size:.875rem;line-height:1.25;white-space:nowrap}
.btn svg{width:17px;height:17px}
.primary{background:var(--blue);color:white;box-shadow:0 2px 3px #14396b15}
.primary:hover{background:var(--blue-dark)}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:21px}
.hero .primary{background:#2b66ea;padding-inline:16px}
.hero .primary:hover{background:#2157d3}
.secondary{background:white;border-color:#dbe4f1;color:#263b57}
.secondary:hover,.icon-btn:hover{background:#edf3fc}
.metrics{margin-top:23px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:17px 15px;display:flex;align-items:center;gap:12px;box-shadow:0 2px 4px #18325306;min-height:91px}
.tile{background:#eaf1ff;color:#2459ce;border-radius:9px;width:43px;height:43px;flex:none;display:grid;place-items:center}
.tile.green{color:#08754f;background:#e6f7ef}
.tile.violet{color:#6548c9;background:#f0ebff}
.tile.cyan{color:#096f9b;background:#e6f6fc}
.tile.amber{color:#9e5911;background:#fff2de}
.metric-label{color:var(--muted);font-size:.83rem;font-weight:700}
.metric strong{display:block;font-size:1.54rem;letter-spacing:-.055em;line-height:1.05;margin-top:4px}
.panel{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 2px 5px #18325307;overflow:hidden;margin-top:24px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 21px}
h2{font-size:1.2rem;font-weight:800;letter-spacing:-.026em}
.panel-head p,.page-head p{color:var(--muted);font-size:.875rem;margin-top:4px;line-height:1.45}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left}
thead{background:#f7f9fc;color:#5d6d82}
th{font-size:.75rem;font-weight:800;padding:11px 14px;white-space:nowrap}
th:first-child,td:first-child{padding-left:21px}
th:last-child,td:last-child{padding-right:21px}
td{padding:12px 14px;border-top:1px solid #e9eef5;font-size:.83rem;font-weight:650;color:#40546f}
tr:hover td{background:#f9fbfe}
.customer-cell{display:flex;align-items:center;gap:10px;color:#17273f}
.customer-cell strong{font-size:.86rem}
.customer-cell small,.date-cell small{display:block;color:var(--muted);font-size:.74rem;margin-top:3px}
.customer-cell .tile{height:34px;width:34px;border-radius:8px}
.customer-cell .tile svg{height:16px;width:16px}
.chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#eaf2ff;color:#234f9f;padding:4px 7px;white-space:nowrap;font-size:.725rem;font-weight:800;line-height:1.2}
.chip svg{height:12px;width:12px}
.chip.salt{background:#e7f6fb;color:#146683}
.chip.complete{background:#e6f7ee;color:#08724b;border-radius:99px}
.chip.pending{background:#fff2de;color:#8c510e;border-radius:99px}
.chip.complete::before,.chip.pending::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.icon-btn{display:inline-grid;place-items:center;background:white;color:#385577;border:1px solid var(--line);height:34px;min-width:34px;padding:4px;border-radius:7px}
.icon-btn svg{width:16px;height:16px}
.row-action{text-align:right;white-space:nowrap}
.panel-foot{padding:12px 21px;border-top:1px solid #e9eef5;color:var(--muted);font-size:.76rem;display:flex;justify-content:space-between;align-items:center;gap:8px}
.sample{display:flex;align-items:center;gap:6px;font-weight:800;color:#455c7e}
.sample svg{width:14px;height:14px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 0 26px}
.page-head h1{font-size:2.05rem}
.filters{display:flex;align-items:center;gap:10px;padding:0 21px 16px}
.filters input{flex:1}
input:not([type=checkbox]):not([type=file]),select,textarea{border:1px solid #cfdaea;border-radius:8px;background:white;color:#152741;padding:10px 12px;min-width:0;min-height:43px;width:100%;font-size:1rem}
select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24' stroke='%23465d7b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.filters select{width:auto;max-width:50%}
.empty{padding:38px 20px;text-align:center;color:var(--muted)}
.empty .tile{margin:0 auto 12px}
.empty p{margin:5px auto 15px;font-size:.875rem}
.empty h2{color:#14233a}
dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 28px);color:#162742;box-shadow:0 25px 90px #08172b50;overscroll-behavior:contain}
dialog::backdrop{background:#07172b91;backdrop-filter:blur(2px)}
.modal-head,.modal-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 21px;background:white;position:sticky;z-index:1}
.modal-head{top:0;border-bottom:1px solid var(--line)}
.modal-actions{bottom:0;border-top:1px solid var(--line);justify-content:flex-end;flex-wrap:wrap}
.modal-body{padding:20px 21px;display:grid;gap:15px}
.modal-body>p{color:var(--muted)}
.field{display:grid;gap:6px;font-size:.875rem;font-weight:800}
.field small,.photo-time{color:var(--muted);font-size:.77rem;font-weight:600}
textarea{resize:vertical}
fieldset{padding:0;border:0;margin:0;min-width:0}
legend{font-size:.875rem;font-weight:800;margin-bottom:7px;padding:0}
.choices{display:flex;gap:9px;flex-wrap:wrap}
.choice{border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:8px;padding:10px;font-size:.875rem;font-weight:750}
.choice input{accent-color:var(--blue);width:17px;height:17px;margin:0}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photo{background:#f5f8fd;border:1px dashed #b3c6e3;border-radius:9px;padding:11px;display:grid;gap:7px;align-content:start;min-width:0}
.photo strong{font-size:.86rem}
.photo .btn{white-space:normal;text-align:center;width:100%;min-height:41px;padding:6px 7px}
.photo img{width:100%;height:128px;object-fit:cover;border-radius:6px;background:#e2eafa;display:block}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.error{font-size:.875rem;color:#a32932;font-weight:750}
.error:empty{display:none}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.detail-grid span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:3px}
.note{white-space:pre-wrap;overflow-wrap:anywhere}
#toast{position:fixed;bottom:20px;right:20px;z-index:8;background:#173457;color:white;border-radius:9px;box-shadow:0 5px 20px #18325335;padding:12px 16px;font-weight:750;font-size:.9rem}
#toast:empty{display:none}
.loading{color:var(--muted)}
@media(max-width:1150px){.sidebar{width:205px}.workspace{margin-left:205px}main{padding-inline:25px}.topbar{padding-inline:25px}.metric{padding:14px 11px;gap:9px}.metric .tile{width:37px;height:37px}.metrics{gap:10px}}
@media(max-width:960px){.metric-label{font-size:.76rem}.metric .tile{width:33px;height:33px}.metric .tile svg{width:17px}.sidebar{width:177px;padding-inline:14px}.workspace{margin-left:177px}.brand{margin-left:4px}.brand small{font-size:.55rem}td,th{padding-inline:8px}main,.topbar{padding-inline:19px}}
@media(max-width:760px){.sidebar{inset:auto 0 0;width:auto;padding:0 10px env(safe-area-inset-bottom);box-shadow:0 -2px 9px #0b192520}.sidebar .brand,.nav-label,.sidebar-bottom,#breadcrumb,.header-divider{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(3,1fr)}.sidebar nav a{justify-content:center;flex-direction:column;gap:4px;margin:4px 3px;min-height:53px;padding:4px;font-size:.73rem}.sidebar nav a.active::before{display:none}.sidebar nav a svg{width:17px;height:17px}.workspace{margin-left:0}.topbar{height:61px;padding-inline:15px}.mobile-brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:-.04em}.brand-icon{width:32px;height:32px;border-radius:8px}.brand-icon svg{width:19px;height:19px}#today{font-size:.72rem}.header-right{gap:9px}.avatar{width:29px;height:29px}main{padding:15px 13px 91px}.hero{padding:25px 20px;min-height:235px}.hero::before{background-position:58% center}.hero h1{font-size:2.05rem}.hero p:not(.hero-kicker){font-size:.9rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:13px}.metric{min-height:72px;padding:10px;gap:9px}.metric-label{font-size:.78rem}.metric strong{font-size:1.36rem}.panel{margin-top:15px}.panel-head{padding:14px 12px}.panel-head h2{font-size:1rem}.panel-head p{font-size:.76rem}.panel-head .btn{padding-inline:9px;font-size:.74rem}.filters{padding-inline:12px}.panel-foot{padding-inline:12px}table thead{display:none}table,tbody,tr,td{display:block;width:100%}tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 7px;padding:12px;border-top:1px solid #e9eef5}tbody td,tbody td:first-child,tbody td:last-child{padding:0;border:0}td:nth-child(3),td:nth-child(4){font-size:.75rem}td[data-status]{grid-column:2;grid-row:2;justify-self:end}td.row-action{grid-column:2;grid-row:1;align-self:start}td[data-service]{grid-row:2;grid-column:1}td[data-date]{grid-row:3;grid-column:1}td[data-crew]{grid-row:4;grid-column:1}td[data-count]{grid-row:2;grid-column:1}.date-cell small{display:inline;margin-left:5px}.page-head{margin:6px 0 16px}.page-head h1{font-size:1.7rem}.page-head p{font-size:.78rem}#toast{bottom:calc(69px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:no-preference){.btn,.sidebar nav a{transition:background-color .15s}}
[hidden]{display:none!important}
.modal-body>.photo{max-width:none}
.modal-body>.photo img{height:175px;object-position:center}
#main:focus{outline:none}
.customer-cell div{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.filters input{grid-column:1/-1}.filters select{max-width:none;width:100%;font-size:.9rem}}
.page-actions,.row-buttons{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.danger{background:#fff;color:#9b2533;border-color:#efcdd2}
.danger:hover{background:#fff0f0}
.row-buttons .btn{min-height:36px;font-size:.8rem;padding-inline:10px}
.report-filters{display:flex;align-items:end;gap:13px;padding:16px 21px;flex-wrap:wrap}
.report-filters .field:first-child{flex:2 1 240px}
.report-filters .field{flex:1 1 130px;min-width:0}
.lot-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lot-fields>.field:only-child{grid-column:1/-1}
.import-sites{display:grid;gap:1px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--line);margin-top:9px}
#import-review p{color:var(--muted);font-size:.84rem;line-height:1.45}
.import-sites label{display:flex;align-items:center;gap:9px;background:white;padding:9px;font-size:.87rem;overflow-wrap:anywhere}
.import-sites label small{display:block;color:var(--muted)}
@media(max-width:760px){
  .sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  .page-head:has(.page-actions){align-items:flex-start;flex-direction:column}
  .page-actions{justify-content:flex-start}
  .row-buttons .btn{min-height:38px}
  tr:has(.row-buttons) td.row-action{grid-column:1/-1;grid-row:3}
  tr:has(.row-buttons) .row-buttons{justify-content:flex-start}
  .report-filters{padding:12px;gap:10px}
  .report-filters .field:first-child{flex:1 0 100%}
}
@media(max-width:360px){.lot-fields{grid-template-columns:1fr}}
.report-amount{display:block;color:#4b617b;font-size:.75rem;margin-top:5px}
.team-list{list-style:none;margin:0;padding:0}
.team-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:11px 21px;font-size:.9rem;overflow-wrap:anywhere}
.team-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:0 21px 17px}
.team-form .field:first-child{flex:2 1 230px}
.team-form .field{flex:1 1 130px}
.team-form .error{flex:0 0 100%}
@media(max-width:760px){.sidebar nav:has([data-page=team]:not([hidden])){grid-template-columns:repeat(5,minmax(0,1fr))}.sidebar nav a{font-size:.68rem}.team-list li,.team-form{padding-inline:12px}}
.address-link{display:inline-flex;align-items:baseline;gap:3px;color:#325b9c;text-decoration:underline;text-underline-offset:2px}
.address-link svg{width:13px;height:13px;align-self:flex-start}
.address-link:hover{color:var(--blue-dark)}
.group-control{min-width:min(180px,50%);gap:3px}
.group-control select{font-size:.9rem}
.customer-table tbody th{background:#edf3fc;border-top:1px solid var(--line);font-size:.9rem;color:#1d3c64;text-align:left}
.customer-group-heading span{font-size:.76rem;color:var(--muted);margin-left:8px;font-weight:650}
.customer-table [data-assignment] small{display:block;color:var(--muted);margin-top:3px}
.assignment-muted{color:var(--muted)}
.weather-list{padding:0 14px 14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,237px),1fr));gap:10px}
.visit-weather h3{font-size:1rem;margin:0 0 3px}
.visit-weather>p{color:var(--muted);font-size:.82rem;margin:0 0 9px}
.weather-day{min-width:0;border:1px solid var(--line);border-radius:9px;padding:11px;background:#f7faff;display:grid;gap:6px}
.weather-day-title{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 9px}
.weather-day strong{font-size:.92rem}
.weather-day small,.weather-day p,.weather-loading{color:var(--muted);font-size:.82rem}
.weather-list>.weather-loading{padding:7px}
.weather-day dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:6px;margin:0}
.weather-day dt{color:var(--muted);font-size:.73rem}
.weather-day dd{margin:0;font-size:.85rem;font-weight:800}
.weather-source{color:#325b9c;text-decoration:underline;text-underline-offset:2px;font-size:.81rem;justify-self:start}
@media(max-width:760px){
  .customer-table tbody .customer-group-heading{display:block}
  .customer-table tbody .customer-group-heading th{display:block;background:transparent;border:0;padding:0}
  .customer-table tbody .customer-group-heading{background:#edf3fc}
  .customer-table tr:has(.row-buttons) td[data-assignment]{grid-column:1/-1;grid-row:2;display:flex;gap:6px;flex-wrap:wrap}
  .customer-table tr:has(.row-buttons) td[data-assignment] small{margin:0}
  .customer-table tr:has(.row-buttons) td[data-count]{grid-column:2;grid-row:1;text-align:right}
}
.customer-list-controls{display:flex;align-items:end;flex-wrap:wrap;gap:8px}
.customer-list-controls .group-control{min-width:min(140px,100%)}
.route-assignment-list small{display:block;color:var(--muted);margin-top:3px}
.route-assignee{display:grid;gap:8px;flex:2 1 230px;min-width:0}
.route-management-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.team-route-note{padding:0 21px 15px;color:var(--muted);font-size:.85rem}
.team-route-note a{text-decoration:underline;text-underline-offset:2px}
.route-remove{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
@media(max-width:560px){
  .customer-panel-head{align-items:flex-start;flex-direction:column}
  .customer-list-controls{width:100%;flex-wrap:nowrap}
  .customer-list-controls .group-control{flex:1;min-width:0}
  .team-route-note{padding-inline:12px}
}
.forecast-day dl{grid-template-columns:repeat(3,minmax(0,1fr));margin:2px 0}
.forecast-day dd{font-size:1rem}
.forecast-day .forecast-missing{font-size:.74rem;color:var(--muted);font-weight:650}
.today-forecast{background:#eef5ff;border-color:#c7daff}
.hero-background-control{position:absolute;top:12px;right:12px;z-index:1}
.hero-background-control:empty{display:none}
.hero-background-control .btn{min-height:38px;font-size:.79rem}
.hero.has-background{min-height:clamp(325px,37vw,460px);padding:16px 24px;align-items:flex-end;justify-content:flex-end}
.hero.has-background::before{background:none}
.hero-picture{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 56%;z-index:-1}
.hero.has-background .hero-inner{width:min(100%,440px);padding:16px 20px;border-radius:10px;background:#0b192eee;box-shadow:0 3px 14px #06101d35}
@media(max-width:760px){
  .hero.has-background{padding:12px;min-height:clamp(320px,78vw,405px)}
  .hero-picture{object-position:42% 51%}
  .hero.has-background .hero-inner{padding:12px 14px}
  .hero-background-control .btn{min-height:34px;padding:5px 8px;font-size:.71rem}
  .hero-background-control .btn svg{width:14px;height:14px}
}
.route-picker{width:min(100%,260px)}
.route-stop-list li .customer-cell{min-width:0}
.route-stop-list li{gap:8px}
.route-stop-list .btn{flex:none}
.route-form-note{font-size:.85rem;color:var(--muted);margin:5px 0}
.route-site-picker{max-height:215px}
.route-site-picker .route-site-option{padding:9px 10px}
.route-site-option input{flex:none}
@media(max-width:560px){.route-visit-header{align-items:stretch;flex-direction:column}.route-picker{width:100%}}
.team-member-list li{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(0,1.5fr) auto;align-items:start;gap:12px}
.team-member-list small{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}
.team-member-routes small{margin-top:0}
.team-member-routes span{display:block;margin-top:3px}
.team-member-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
@media(max-width:610px){
  .team-member-list li{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px}
  .team-member-role{text-align:right}
  .team-member-routes{grid-column:1/-1}
  .team-member-actions{grid-column:1/-1;justify-self:end}
}
.team-tabs{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:9px;background:#edf3fa;width:fit-content}
.team-tabs button{min-height:38px;padding:6px 13px;border:1px solid transparent;border-radius:6px;background:transparent;color:#375068;font-size:.87rem;font-weight:750}
.team-tabs button[aria-selected=true]{background:white;color:#1a3f83;border-color:#d7e2ef;box-shadow:0 1px 3px #1b385217}
.welcome-email-body{max-width:680px;display:grid;gap:14px;padding:0 20px 20px}
.welcome-email-body>p{color:var(--muted);font-size:.88rem}
.welcome-email-body>button{justify-self:start}
.welcome-email-body textarea{white-space:pre-wrap}
.welcome-email-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:610px){.welcome-email-body{padding-inline:12px}.team-tabs button{min-height:42px}}
.route-organize{padding:0 21px 14px;display:grid;gap:6px}
.route-organize p,.route-stop-note{font-size:.81rem;color:var(--muted)}
.route-organize .route-plan-result{color:#163e72;font-weight:800}
.route-organize .error{color:#a22737}
.route-plan-sources a{text-decoration:underline;text-underline-offset:2px}
.route-stop-site,.route-stop-actions{display:flex;align-items:center;gap:7px;min-width:0}
.route-stop-actions{flex-wrap:wrap;justify-content:flex-end}
.route-stop-note{display:block;margin-top:4px}
.stop-position{flex:none;min-width:27px;height:27px;padding:0 4px;border-radius:50%;display:grid;place-items:center;color:#1a4da3;background:#eaf1ff;font-weight:800;font-size:.8rem}
@media(max-width:600px){.route-organize{padding-inline:12px}.route-stop-list li{align-items:flex-start;flex-direction:column}.route-stop-actions .btn{min-height:36px}}

@media(max-width:960px){.brand{font-size:1.02rem}}
@media(max-width:760px){.mobile-brand{min-width:0;font-size:.95rem;line-height:1.12}.header-right{flex:none}}

.visit-status-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.visit-status-row .btn{min-height:36px}
.report-mobile-label{display:none}
@media(max-width:760px){
  .customer-visit-report .report-mobile-label{display:inline-block;min-width:5.25rem;color:var(--muted);font-weight:700}
  .customer-visit-report td[data-departure]{grid-column:1/-1;grid-row:4}
  .customer-visit-report td[data-duration]{grid-column:1/-1;grid-row:5}
  .customer-visit-report td[data-crew]{grid-row:6}
}
button.avatar{border:0;padding:0;cursor:pointer;font-family:inherit}
button.avatar:hover{background:#d9e6ff}
.signed-out .sidebar,.signed-out .header-right{display:none}
.signed-out .workspace{margin-left:0}
.signed-out .mobile-brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:-.04em}
.signed-out main{padding-bottom:45px}
.sign-in{max-width:420px;margin:6vh auto 0;padding:30px 26px;display:grid;gap:14px}
.sign-in h1{font-size:1.7rem}
.sign-in>p{color:var(--muted);font-size:.9rem;line-height:1.55}
.sign-in form{display:grid;gap:13px}
.sign-in form small{color:var(--muted);font-size:.78rem;line-height:1.5}
.sign-in-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.78rem;font-weight:700}
.sign-in-divider::before,.sign-in-divider::after{content:"";flex:1;border-top:1px solid var(--line)}
.topbar{height:calc(72px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(33px,env(safe-area-inset-left));padding-right:max(33px,env(safe-area-inset-right))}
@media(max-width:760px){.topbar{height:calc(61px + env(safe-area-inset-top));padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}}
#splash{position:fixed;inset:0;z-index:20;background:#101b2e;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:24px;transition:opacity .35s}
#splash.done{opacity:0;pointer-events:none}
#splash strong{font-size:1.25rem;font-weight:800;letter-spacing:-.03em;margin-top:14px}
#splash span{color:#a9b9d0;font-size:.9rem;font-weight:600}
.splash-scene{width:min(680px,100%);height:auto;overflow:hidden;border-radius:14px}
.splash-rig{transform:translateX(90px)}
@media(prefers-reduced-motion:no-preference){
  .splash-rig{animation:splash-drive 4.4s linear infinite}
  .splash-wheel{transform-box:fill-box;transform-origin:center;animation:splash-spin .45s linear infinite}
  .splash-beacon{animation:splash-blink .7s steps(2,jump-none) infinite}
  .splash-glow{animation:splash-glow .7s steps(2,jump-none) infinite}
  .splash-pile{transform-box:fill-box;transform-origin:left bottom;animation:splash-heap .5s ease-in-out infinite alternate}
  .splash-spray circle{animation:splash-fling .6s ease-out infinite}
  .splash-spray circle:nth-child(2n){animation-delay:.2s}
  .splash-spray circle:nth-child(3n){animation-delay:.4s}
  .splash-flakes circle{animation:splash-fall 3s linear infinite}
  .splash-flakes circle:nth-child(3n){animation-duration:4.2s;animation-delay:-1.3s}
  .splash-flakes circle:nth-child(3n+1){animation-duration:3.6s;animation-delay:-2.2s}
}
@keyframes splash-drive{from{transform:translateX(-215px)}to{transform:translateX(500px)}}
@keyframes splash-glow{from{opacity:.3}to{opacity:0}}
@keyframes splash-spin{to{transform:rotate(360deg)}}
@keyframes splash-blink{from{opacity:1}to{opacity:.15}}
@keyframes splash-heap{from{transform:scale(1,.94)}to{transform:scale(1.05,1.04)}}
@keyframes splash-fling{from{transform:translate(0,6px);opacity:1}to{transform:translate(16px,-14px);opacity:0}}
@keyframes splash-fall{from{transform:translate(0,-20px)}to{transform:translate(-14px,110px)}}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top);background:#fff;z-index:9}
dialog{max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
