:root {
    color-scheme: light;
    font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7f6;
    color: #152f35;
    --teal: #086b65;
    --line: #d7e1df;
    --muted: #4c6568;
    --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: var(--teal); }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, .map-canvas:focus-visible { outline: 3px solid #b75b13; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: 1rem; background: white; z-index: 2000; }
.skip-link:focus { top: .5rem; }
.suite-bar { background: #103c39; color: #fff; border-bottom: 3px solid #66c8b0; }
.suite-inner { max-width: 1120px; min-height: 59px; margin: auto; padding: 0 26px; display: flex; gap: 22px; align-items: center; }
.wordmark { display: inline-flex; align-items: baseline; font-weight: 760; font-size: 1.55rem; letter-spacing: -.065em; }
.brand-dot { width: 6px; height: 6px; margin-left: 3px; background: #b4ecd9; border-radius: 50%; }
.app-nav { display: flex; align-items: center; gap: 8px; }
.app-nav a, .logout { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; color: #e4f4ee; font-size: .88rem; font-weight: 600; text-decoration: none; }
.app-nav a[aria-current] { color: white; box-shadow: inset 0 -2px #9ce4cd; }
.suite-inner form { margin-left: auto; }
.logout { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 450; }
.page { width: min(100%,1120px); margin: 0 auto; padding: 34px 26px 48px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(2rem,5vw,3rem); line-height: 1.06; letter-spacing: -.05em; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date,.overline { margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.date::first-letter { text-transform: uppercase; }
.refresh { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
.button,.map-panel button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; text-align: center; border: 1px solid transparent; border-radius: 8px; padding: 9px 14px; font-size: .9rem; font-weight: 650; line-height: 1.2; text-decoration: none; }
.button.primary { background: var(--teal); color: white; }
.button.primary:hover { background: #075a55; }
.button.secondary,.map-panel button { color: #164d49; border-color: #c0d1ce; background: white; }
.button.secondary:hover,.map-panel button:hover { background: #e9f4ef; }
.filter-panel { margin: 24px 0 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.days,.vehicles { display: flex; flex-wrap: wrap; gap: 4px; }
.days { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #eaf0ed; }
.days a,.vehicles a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border-radius: 7px; padding: 8px 12px; color: #3d5758; font-weight: 600; font-size: .86rem; line-height: 1.2; text-decoration: none; }
.days a[aria-current] { background: white; color: #173f3b; box-shadow: 0 1px 4px #183b3824; }
.vehicles { gap: 6px; }
.vehicles a { text-align: center; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.vehicles a[aria-current] { background: #daeee7; color: #0e554a; border-color: #9bcdbf; }
.sheets { display: grid; align-items: start; grid-template-columns: repeat(auto-fit,minmax(min(100%,365px),1fr)); gap: 18px; }
.vehicle-sheet { --vehicle:#126e69; --vehicle-pale:#e0f2ed; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--vehicle); border-radius: 15px; overflow: clip; }
.vehicle-sheet.express { --vehicle:#24629b; --vehicle-pale:#e7f1f9; }
.vehicle-sheet.doblo { --vehicle:#93430f; --vehicle-pale:#fbecdf; }
.sheet-head { padding: 18px 20px; }
.vehicle-heading { display: flex; align-items: center; gap: 13px; }
.vehicle-heading > div { min-width: 0; }
.vehicle-photo { border-radius: 10px; background: var(--vehicle-pale); width: 68px; height: 54px; padding: 3px; object-fit: contain; flex: none; }
.vehicle-heading h2 { font-size: clamp(1.17rem,2.3vw,1.55rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.driver { color: var(--muted); margin-top: 4px; font-size: .9rem; overflow-wrap: anywhere; }
.driver strong { color: #314f51; font-weight: 600; }
.gps-line { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 16px; }
.gps { padding: 5px 9px; border-radius: 20px; background: #edf1f2; font-weight: 650; }
.gps.live { background: #dcf3e8; color: #166347; }
.gps.live::before,.gps.parked::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: middle; }
.gps.parked { background: #edf1f2; color: #455f64; }
.parked-detail { margin-top: 5px; font-size: .78rem; color: var(--muted); }
.progress-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: .83rem; margin: 16px 0 4px; color: var(--muted); }
.progress-row strong { color: #294a4d; }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 6px; overflow: hidden; background: #e9efed; color: var(--vehicle); }
progress::-webkit-progress-bar { background: #e9efed; } progress::-webkit-progress-value { background: var(--vehicle); }
progress::-moz-progress-bar { background: var(--vehicle); }
.map-panel { padding: 0 20px 14px; }
.map-panel button { font-size: .83rem; min-height: 40px; }
.map-provider { font-size: .75rem; color: var(--muted); padding-left: 8px; }
.map-canvas { margin-top: 10px; height: clamp(250px,42vh,390px); border-radius: 8px; background: #e8efed; isolation: isolate; }
.map-warning,.notice { font-size: .87rem; padding: 8px 12px; background: #fff1d6; color: #74460a; border-radius: 8px; }
.notice { margin: 0 20px 12px; }
.map-point { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: white; border: 2px solid var(--vehicle); color: var(--vehicle); box-shadow: 0 1px 4px #0003; font: 700 14px/1 sans-serif; }
.map-point.truck { background: var(--vehicle-pale); }
.map-point img { width: 29px; height: 24px; object-fit: contain; }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop { border-top: 1px solid var(--line); display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 18px 20px; }
.stop.is-next { background: linear-gradient(100deg,#edf7f2,white); }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; background: var(--vehicle-pale); border: 1px solid var(--vehicle); color: var(--vehicle); font-weight: 700; border-radius: 50%; font-size: .9rem; }
.is-done .step-number { background: #e5f3e9; color: #34734a; border-color: #b8d6c2; }
.step-meta { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: .77rem; color: var(--muted); min-height: 19px; }
.step-meta .kind { font-weight: 700; color: var(--vehicle); }
.next { font-weight: 700; color: #065d49; }
.step-meta .status { margin-left: auto; }
.step-body h3 { margin-top: 5px; font-size: 1.18rem; line-height: 1.23; letter-spacing: -.026em; overflow-wrap: anywhere; }
.address,.reference { font-size: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.address { color: var(--muted); margin-top: 4px; }
.reference { margin: 8px 0 0; color: #314f51; font-variant-numeric: tabular-nums; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.attachment-link,.text-link { font-weight: 600; font-size: .86rem; text-underline-offset: 3px; }
.attachment-link { display: inline-flex; align-items: center; min-height: 40px; }
.no-stops { padding: 20px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.classic { margin-top: 18px; }
.access-card { max-width: 30rem; margin: clamp(20px,8vh,90px) auto; border: 1px solid var(--line); border-top: 4px solid var(--teal); background: #fff; border-radius: 15px; padding: clamp(22px,5vw,36px); box-shadow: 0 4px 18px #244a3808; }
.access-card h1 { font-size: clamp(1.9rem,5vw,2.7rem); }
.access-card p { color: var(--muted); line-height: 1.55; margin: 12px 0 20px; }
.access-card .text-link { display: inline-flex; padding: 10px 0; }
@media (max-width:650px) {
    .suite-inner { padding: 0 14px; gap: 10px; }
    .page { padding: 22px 13px 44px; }
    .filter-panel { align-items: start; flex-direction: column; gap: 9px; margin: 17px 0 14px; }
    .days { width: 100%; flex-wrap: nowrap; }
    .days a { flex: 1; padding: 8px 4px; }
    .vehicles a { min-height: 38px; font-size: .8rem; padding: 7px 10px; }
    .refresh { flex-direction: column-reverse; align-items: end; gap: 4px; }
    .refresh .button { min-height: 40px; }
    .sheet-head,.stop { padding: 15px 14px; }
    .map-panel { padding: 0 14px 13px; }
    .stop { grid-template-columns: 29px minmax(0,1fr); gap: 9px; }
    .step-number { width: 29px; height: 29px; }
    .app-nav { gap: 1px; }
    .app-nav a,.logout { padding: 0 5px; font-size: .82rem; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }
.photo-focus,.name-focus { padding: 0; color: inherit; background: transparent; border: 0; border-radius: 5px; line-height: inherit; }
.photo-focus { flex: none; }
.photo-focus img { display: block; }
.name-focus { text-align: start; font-size: inherit; font-weight: inherit; letter-spacing: inherit; overflow-wrap: anywhere; }
.name-focus:hover:enabled { color: var(--vehicle); text-decoration: underline; text-underline-offset: 3px; }
.photo-focus:disabled,.name-focus:disabled { cursor: default; }
.button.unavailable { background: #f1f4f2; color: #657778; border-color: #e4e9e7; font-weight: 550; }
.button.unavailable s { text-decoration-thickness: 2px; }
