/* App parity: orange accents, calm surfaces, consistent spacing and readable helpers. */
:root{--app-accent:#ff6800}
.web-modal{border-radius:22px;max-width:min(640px,calc(100vw - 32px));color:var(--ink);background:var(--surface)}
.web-modal .modal-head{gap:16px;padding:20px 24px;align-items:center}
.web-modal .modal-body{padding:24px}.web-modal .modal-head button{color:var(--app-accent);font-weight:650}
.web-modal p,.settings-card .fine,.diesel-settings-note{line-height:1.55;overflow-wrap:break-word}
.calculation-card{border-radius:16px}.calculation-card h3{font-size:clamp(20px,3vw,28px);line-height:1.25}
#calculation-note:empty{display:none}.calculation-dismiss-note{text-align:center;font-size:13px;max-width:32em;margin:16px auto 0}
.highway-choice-panel{width:min(600px,calc(100% - 32px));padding:18px;border-radius:18px;box-sizing:border-box}
#highway-choices{flex-wrap:wrap;gap:10px;margin:14px 0}.highway-choice{min-height:44px;min-width:100px;text-align:left}
.highway-choice[aria-pressed=true]{outline-color:var(--app-accent);background:color-mix(in srgb,var(--app-accent) 8%,var(--surface,#fff))}
.highway-actions{margin-top:16px}.highway-actions button{min-height:40px}.highway-actions #highway-choice-cancel{color:var(--app-accent);border-color:color-mix(in srgb,var(--app-accent) 35%,transparent)}
.highway-direction-row{color:var(--muted);font-size:12px}.highway-actions .modal-confirm{background:var(--app-accent);border-color:var(--app-accent)}
.route-option .route-name{min-height:2.8em;line-height:1.4;display:block}.route-saving-row{display:block;min-height:30px;line-height:20px;padding:5px 0;color:var(--muted);font-size:13px}.route-saving-row[hidden]{display:none}
.history-costs .cost-per-mile{border-radius:10px;background:color-mix(in srgb,var(--app-accent) 9%,var(--surface,#fff));padding:10px 14px}.cost-per-mile small{text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.06em}
.history-empty{text-align:center;padding:48px 24px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.history-empty strong{font-size:20px}.history-empty p{max-width:28em;margin:10px auto;color:var(--muted);line-height:1.5}
.truck-profile-preview{display:flex;gap:16px;align-items:center;padding:16px;margin-bottom:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.truck-profile-preview svg{width:100px;height:50px;flex-shrink:0}.truck-profile-preview span{display:grid;gap:6px;min-width:0}.truck-profile-preview strong{font-size:15px;line-height:1.35}.truck-profile-preview small{font-size:12px;color:var(--muted)}
.truck-profile-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:14px}
.truck-profile-choice{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;text-align:center}
.truck-profile-choice svg{width:100px;height:44px}.truck-profile-choice span{font-size:12px;line-height:1.4}.truck-profile-choice[aria-pressed=true]{border-color:var(--app-accent);box-shadow:0 0 0 1px var(--app-accent);background:color-mix(in srgb,var(--app-accent) 6%,var(--surface))}
.fuel-badge-name,.fuel-badge-price{white-space:nowrap}.fuel-station-label{max-width:none!important}.map-toggle-hint{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line);border-radius:12px!important;box-shadow:0 4px 18px #0002}
.settings-card .fine,.diesel-settings-note{margin-top:12px;font-size:13px}.new-route-button{color:var(--app-accent)!important}
@media(max-width:600px){.web-modal .modal-head{padding:16px 20px}.web-modal .modal-body{padding:20px}.highway-choice-panel{padding:16px}.history-costs{flex-wrap:wrap}.truck-profile-preview{gap:12px;padding:12px}.truck-profile-preview svg{width:80px}.highway-actions{display:flex}.highway-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

.dashboard .modal-head .wrong-toll-button{margin:0;padding:6px 8px;font-size:13px;white-space:nowrap;min-height:40px;color:var(--app-accent)}
.modal-head:has(.wrong-toll-button) h2{flex:1;text-align:center;font-size:18px}.modal-head:has(.wrong-toll-button){gap:10px}.modal-head .wrong-toll-button::first-letter{font-size:23px}
.map-route-summary[aria-pressed=true]{border-color:var(--app-accent);background:color-mix(in srgb,var(--app-accent) 6%,var(--surface));box-shadow:none}
[aria-pressed=true]>.map-route-summary-heading>.map-route-selection-badge{background:var(--app-accent)}
@media(max-width:480px){.modal-head:has(.wrong-toll-button){padding:14px 12px;gap:6px}.modal-head:has(.wrong-toll-button) h2{font-size:16px}.dashboard .modal-head .wrong-toll-button{font-size:12px;padding:4px}.map-card.expanded .map-route-comparison{grid-template-columns:1fr}}

.profile-gallery{margin-top:14px}.profile-gallery summary{font-size:13px;font-weight:650;color:var(--app-accent);cursor:pointer;padding:8px 0}.dashboard .dash-heading h1{font-family:inherit;font-size:clamp(26px,3vw,36px);font-weight:750;letter-spacing:-.025em;text-transform:none}
.history-costs .cost-per-mile{grid-column:3;grid-row:2;justify-self:stretch;text-align:right}.history-costs .cost-per-mile strong{font-size:16px}.route-option{border-radius:16px}.route-option .route-name:before{display:inline-block;margin-right:6px}
@media(max-width:700px){.history-costs .cost-per-mile{grid-column:2/4}.workspace-tabs{display:flex!important;flex-wrap:wrap!important;gap:5px}.workspace-tabs button{flex:1 1 auto;min-width:0}.workspace-tabs .new-route-button{flex-basis:100%}}

.calculation-actions{display:flex;justify-content:center;margin:18px 0 0}#cancel-calculation{padding:9px 16px;min-height:38px;border:1px solid color-mix(in srgb,var(--app-accent) 35%,transparent);border-radius:10px;color:var(--app-accent);background:color-mix(in srgb,var(--app-accent) 8%,var(--surface));font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer}#cancel-calculation:disabled{opacity:.55;cursor:wait}

/* Compare total and per-mile costs without increasing route-card height. */
.route-option .route-cost-footer{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.route-cost-footer .cost-route-per-mile{text-align:right;margin-left:auto;flex-shrink:0;padding-left:16px;border-left:1px solid #20160f30}
.route-cost-footer .cost-route-per-mile strong{font-size:1.1rem}.route-cost-footer .cost-route-per-mile small{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.045em}
.route-cost-footer .cost-route-total-value small{color:inherit}
