:root{--ink:#132b28;--muted:#4e6761;--line:#d9e4df;--mint:#e5f4eb;--green:#17614a;--bg:#f1f5f2;font-family:"DM Sans","Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}header{height:70px;background:#102e27;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.brand{text-decoration:none;color:white;font-weight:800;font-size:21px;white-space:nowrap}.brand span{display:inline-grid;place-items:center;width:34px;height:34px;background:#a6edbc;color:#102e27;border-radius:9px;margin-right:8px}nav{display:flex;gap:6px}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:8px 11px;font-weight:650}button:hover{background:var(--mint)}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #e29336;outline-offset:2px}nav button{border:0;background:transparent;color:#c9ded4}nav button.active,nav button:hover{background:#285044;color:#fff}.pilot{white-space:nowrap;font-size:13px;color:#dceee4}.pilot i,.map-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#65d992;margin-right:5px}main{padding:22px;max-width:1700px;margin:auto}.workspace{display:grid;grid-template-columns:365px minmax(0,1fr);gap:18px;align-items:start}.workspace aside,.map-panel,.sheet{background:#fff;border:1px solid var(--line);border-radius:15px}.workspace aside,.sheet{padding:22px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--green);margin:0 0 7px}h1{font-size:34px;margin:0;letter-spacing:-.045em}h2{font-size:19px;margin:0;letter-spacing:-.025em}.muted{color:var(--muted);line-height:1.4;margin:9px 0 15px}.small,details{font-size:13px}.row,.fields,.chips{display:flex;gap:8px;align-items:center}.fields>*{flex:1;min-width:0}.between{justify-content:space-between}.fields label{font-size:12px;font-weight:700;display:block}input,select{width:100%;background:#fff;border:1px solid #bacdc4;border-radius:8px;padding:9px;margin:5px 0 0;color:var(--ink);min-width:0}details{margin:10px 0;color:var(--muted)}summary{cursor:pointer}.primary{width:100%;background:var(--green);color:white;border:0;text-align:left;padding:11px 13px}.primary:hover{background:#104c39}.primary span{float:right}hr{border:0;border-top:1px solid var(--line);margin:16px 0}.link{border:0;color:var(--green);padding:4px;font-size:13px}.chips{flex-wrap:wrap;margin:10px 0}.chips button{font-size:12px}.chips [aria-pressed=true]{background:var(--mint);color:#144f3b;border-color:#80b69b}.result,.trip{border:1px solid var(--line);border-radius:10px;margin:0 0 8px;padding:10px 12px}.result button{border:0;padding:0;text-align:left;background:transparent}.result button:hover{text-decoration:underline}.result p,.trip p{font-size:13px;color:var(--muted);margin:4px 0}.map-panel{position:sticky;top:14px;overflow:hidden}.map-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:15px 18px}.map-body{position:relative;height:calc(100dvh - 175px);min-height:450px;background:#e7eee7}.map-body canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.map-tools{position:absolute;top:14px;right:14px;display:grid;gap:5px}.map-tools button{width:40px;font-size:19px;padding:5px}.map-legend,#popup{position:absolute;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:12px}.map-legend{bottom:15px;left:14px}.map-legend i{background:var(--green)}#popup{top:14px;left:14px;width:min(265px,calc(100% - 70px));padding:12px;font-size:14px}#popup p{margin:5px 0 10px}#popup .row{flex-wrap:wrap}.sheet{max-width:900px;margin:auto}.sheet h2{margin:16px 0 10px}.trip button{margin:5px 5px 0 0}.stats{display:flex;gap:10px;flex-wrap:wrap}.stats div{background:var(--mint);padding:15px;border-radius:10px;flex:1;min-width:120px}.stats strong{display:block;font-size:28px}#stops ol{padding-left:22px;font-size:13px}#stops li{margin:4px 0}#stops button{padding:1px 7px;margin-left:5px}
@media(max-width:820px){header{height:auto;min-height:65px;padding:12px;flex-wrap:wrap;gap:8px}.brand{font-size:17px}.pilot{display:none}nav button{font-size:13px;padding:6px}main{padding:10px}.workspace{grid-template-columns:1fr}.workspace aside,.sheet{padding:15px}.map-panel{position:static;grid-row:1}.map-body{height:46vh;min-height:285px}.map-head{padding:10px 12px}h1{font-size:29px}}
:root {
  --ink:#172338; --muted:#516179; --line:#e1e8f0; --mint:#eaf2ff;
  --green:#155bdb; --bg:#edf2f8;
  font-family:Inter,"Segoe UI",sans-serif;
}
body { min-height:100dvh; }
html[data-dark-appearance] { background:#111b29; color-scheme:dark; }
header {
  background:linear-gradient(90deg,#103344 10%,#103344f0 38%,#10334438 79%,#10334480),
             #103344 url("ruta-banner.webp") right 56% / cover no-repeat;
  min-height:68px;
  box-shadow:0 2px 10px #12213a20;
}
header, header .brand, nav button, .pilot { color:#f5fbff; }
.brand { letter-spacing:-.04em; }
.brand span { background:#2474f5; color:white; }
nav button.active, nav button:hover { background:#244e62; }
main { padding:18px; }
.workspace { grid-template-columns:minmax(350px, 410px) minmax(0, 1fr); gap:15px; }
.workspace aside,.map-panel,.sheet { border-radius:18px; box-shadow:0 6px 24px #1a34560d; }
.workspace aside { padding:19px; max-height:calc(100dvh - 105px); overflow:auto; scrollbar-width:thin; }
h1 { font-size:31px; line-height:1.1; }
h2 { font-size:19px; }
button,input,select { min-height:42px; }
button:hover { background:#eef5ff; }
.primary { background:#155bdb; }
.primary:hover { background:#104cbf; }
.primary .icon { float:right; margin-top:1px; }
.icon {
  display:inline-block; width:17px; height:17px; flex:0 0 17px;
  background:currentColor; mask:var(--glyph) center / contain no-repeat;
  vertical-align:-3px;
}
.brand .icon { width:21px; height:21px; }
button .icon { margin-right:3px; }
.map-tools button .icon,.primary .icon { margin-right:0; }
.map-body { height:calc(100dvh - 166px); }
.map-head { min-height:62px; }
.map-tools button { display:grid; place-items:center; width:44px; height:44px; box-shadow:0 2px 8px #17233820; }
.map-fix { position:absolute; bottom:0; left:0; font-size:10px; padding:2px 5px; background:#fffc; color:#293b58; }
.lookahead { margin:10px 0; border:1px solid #d7e5fa; border-radius:12px; background:#f3f7ff; padding:9px 11px; font-size:13px; font-weight:650; }
.lookahead label { display:flex; align-items:center; gap:6px; }
#routeScope { border:0; padding:0; margin:5px 0 0; min-width:0; }
#routeScope:disabled { opacity:.55; }
.switch-label {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  cursor:pointer;
}
.switch-label input[role=switch] {
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  opacity:0;
  margin:0;
  padding:0;
}
.switch-track {
  position:relative;
  flex:0 0 36px;
  height:22px;
  border-radius:999px;
  background:#64748b;
  transition:background-color .15s ease;
}
.switch-track::before {
  content:"";
  position:absolute;
  inset:3px auto auto 3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  transition:transform .15s ease;
}
.switch-label input:checked + .switch-track { background:#15803d; }
.switch-label input:checked + .switch-track::before { transform:translateX(14px); }
.switch-label input:focus-visible + .switch-track { outline:2px solid currentColor; outline-offset:3px; }
.switch-label:has(input:disabled) { cursor:default; }
@media (pointer:coarse) {
  .switch-label { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  .switch-track,.switch-track::before { transition:none; }
}
@media (forced-colors:active) {
  .switch-track { forced-color-adjust:none; background:GrayText; }
  .switch-label input:checked + .switch-track { background:Highlight; }
  .switch-track::before { background:Canvas; }
}
.lookahead input[type=number] { width:63px; margin:0; min-height:36px; padding:5px; }
#progressBox { border-top:1px solid #d7e5fa; margin-top:8px; padding-top:7px; }
#progressBox label { justify-content:space-between; }
#progressBox output { font-weight:500; color:var(--muted); }
#progress { min-height:26px; padding:0; accent-color:#155bdb; }
.category-bar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin:8px 0; }
.category-bar button { display:grid; justify-items:center; align-content:center; gap:4px; padding:5px 2px; font-size:11px; line-height:1.1; min-height:47px; }
.category-bar button .icon { margin:0; }
.category-bar button[aria-pressed=true] { color:#104cbf; border-color:#84aef2; background:#e6efff; }
.result { display:flex; align-items:center; gap:9px; padding:9px; border-radius:12px; }
.result-detail { flex:1; min-width:0; }
.result button { min-height:25px; line-height:1.2; }
.result p { margin:3px 0 0; }
.place-icon { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; color:var(--place-color); border-radius:9px; background:color-mix(in srgb,var(--place-color) 10%,white); }
.place-icon img { display:block; width:30px; height:auto; max-height:24px; object-fit:contain; border-radius:3px; }
.detour,.popup-detour { color:#114db4; font-weight:700; font-size:12px; }
.detour { max-width:94px; text-align:right; }
#popup { box-shadow:0 7px 24px #1723382b; }
#popup .row { margin-bottom:8px; }
#popup button:first-child { background:#eaf2ff; color:#104cbf; }
#stops button { min-height:30px; }
@media(max-width:820px) {
  header { padding:8px 12px; }
  nav { flex-wrap:wrap; }
  nav button { min-height:40px; }
  main { padding:8px; }
  .workspace { grid-template-columns:1fr; gap:8px; }
  .workspace aside { max-height:none; overflow:visible; padding:14px; }
  .map-body { height:42dvh; min-height:245px; }
  .map-head { min-height:54px; }
}
@media(max-width:420px) {
  header { gap:4px; }
  nav { width:100%; justify-content:space-between; }
  nav button { flex:1; }
}
@media(orientation:landscape) and (max-height:580px) and (min-width:650px) {
  header { min-height:50px; height:50px; }
  .workspace { grid-template-columns:minmax(310px, 40%) minmax(0,1fr); }
  .workspace aside { max-height:calc(100dvh - 70px); overflow:auto; }
  .map-panel { grid-row:auto; }
  .map-body { height:calc(100dvh - 128px); min-height:190px; }
}
.marker-group { display:grid; gap:5px; max-height:190px; overflow:auto; margin:8px 0; }
.marker-group button { text-align:left; }
.map-legend .icon { background:currentColor; width:15px; height:15px; border-radius:0; }
.voice-bar { padding:0 14px 8px; }
#voiceForm { flex-wrap:nowrap; }
#voiceForm input { min-width:0; }
#voicePanel p { margin:6px 0; }
#voiceStatus { color:var(--muted); }
#voiceFeedback:empty { display:none; }
#offlineStatus:empty { display:none; }
.map-panel .map-body { height:calc(100dvh - 220px); }
@media(max-width:820px) { .map-panel .map-body { height:42dvh; } }
.endpoint { display:flex; gap:5px; align-items:center; margin-top:5px; }
.endpoint input { margin:0; flex:1; }
.icon-button { display:inline-grid; place-items:center; width:44px; height:44px; min-height:44px; flex:0 0 44px; padding:0; color:var(--green); }
.icon-button .icon { width:20px; height:20px; margin:0; }
.icon-button[aria-pressed=true],.icon-button[aria-expanded=true] { background:#e6efff; border-color:#84aef2; }
#savedMatches { display:grid; gap:5px; margin-top:6px; }
#savedMatches button { text-align:left; }
@media(max-width:400px) { .route-fields { display:grid; grid-template-columns:1fr; } }
.brand { display:inline-flex; align-items:center; gap:10px; }
.brand-logo { display:block; width:42px; height:42px; object-fit:contain; transform:scale(1.2); }
@media(max-width:420px) { .brand-logo { width:36px; height:36px; } }

@media (min-width:821px) and (min-height:581px) {
  :root { --header-height:clamp(100px, 6.5vw, 120px); }
  header { height:var(--header-height); background-position:center, right 56%; }
  .workspace aside { max-height:calc(100dvh - var(--header-height) - 35px); }
  .map-panel .map-body { height:calc(100dvh - var(--header-height) - 150px); }
}
 .account-form { display:grid; gap:10px; max-width:420px; margin:14px 0; }
 .account-form label { font-weight:600; }
 .account-form > button { justify-self:start; }
 .account-plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:12px; margin-top:20px; }
 #proRouteTools { display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap; }
 .pro-badge { padding:5px 13px; border-radius:20px; background:#f2cb72; color:#332204; font-weight:800; white-space:nowrap; }
 .is-pro .pro-action, .is-pro #nextStop, .is-pro #listen[aria-pressed=true] {
   color:#3e2a06; background:#f5d486; border-color:#b78a30;
 }
 .is-pro #listen .icon { color:#896019; }
 .is-pro [data-view="cuenta"] .icon { color:#f2cb72; }
 #downloadedTrips { margin-top:24px; }
 @media(max-width:480px) { .pro-badge { padding:3px 8px; font-size:12px; } }
 .route-options { display:flex; flex-wrap:wrap; gap:8px; }
 #routeComparison { padding:6px 12px 0; }
 #routeComparison p { margin:5px 0; }
 .route-options button[aria-pressed=true] { background:var(--pro-fill,#f5d486); color:var(--pro-ink,#3e2a06); border-color:var(--pro-border,#b78a30); }
 .is-pro[data-accent="azul"] { --pro-fill:#9ac9ff; --pro-ink:#142f50; --pro-border:#5792ce; }
 .is-pro[data-accent="verde"] { --pro-fill:#a9dcb6; --pro-ink:#173d24; --pro-border:#5c9b6d; }
 .is-pro .pro-action, .is-pro #nextStop, .is-pro #listen[aria-pressed=true], .is-pro #calculate {
   background:var(--pro-fill,#f5d486); color:var(--pro-ink,#3e2a06); border-color:var(--pro-border,#b78a30);
 }
 .pro-dark { --ink:#edf4ff; --muted:#bbc8db; --line:#52637b; --green:#a0c9ff; --mint:#253650; background:#111b29; color:var(--ink); color-scheme:dark; }
 .pro-dark .workspace aside, .pro-dark .map-panel, .pro-dark .sheet, .pro-dark .map-legend,
 .pro-dark #popup, .pro-dark input, .pro-dark select, .pro-dark button:not(.primary) { background-color:#202e42; color:var(--ink); }
 .pro-dark .lookahead, .pro-dark .detour { background:#2a3a51; color:var(--ink); }
 .pro-dark .route-options button[aria-pressed=true], .pro-dark .pro-action,
 .pro-dark #nextStop, .pro-dark #listen[aria-pressed=true] { background:var(--pro-fill,#f5d486); color:var(--pro-ink,#3e2a06); }
 #toggleRouteSettings, #closeRouteSettings { display:none; }
 @media(max-width:1024px) {
   .is-pro #mapa { grid-template-columns:minmax(0,1fr); }
   .is-pro #mapa .map-panel { position:static; grid-row:1; }
   .is-pro #toggleRouteSettings { display:inline-flex; gap:6px; align-items:center; margin:8px 10px 0; }
   .is-pro #mapa:not(.route-settings-open) #routeSettings { display:none; }
   .is-pro #mapa.route-settings-open #routeSettings { position:fixed; z-index:10; inset:auto 8px 8px; max-height:75dvh; }
   .is-pro #mapa.route-settings-open #closeRouteSettings { display:inline-flex; align-items:center; margin-bottom:8px; }
   .is-pro:has(#mapa:not([hidden])) { display:flex; flex-direction:column; height:100dvh; }
   .is-pro:has(#mapa:not([hidden])) > header { flex:none; }
   .is-pro:has(#mapa:not([hidden])) > main { flex:1; min-height:0; display:flex; width:100%; }
   .is-pro #mapa { width:100%; grid-template-rows:minmax(0,1fr); }
   .is-pro #mapa .map-panel { display:flex; flex-direction:column; align-self:stretch; }
   .is-pro #mapa .map-body { flex:1; height:auto; min-height:0; }
   .is-pro #mapa .map-head { min-height:0; padding-block:4px; }
   .is-pro #mapa .map-head h2 { display:none; }
   .is-pro #mapa .map-head { position:absolute; right:12px; top:5px; z-index:2; padding:0; pointer-events:none; }
   .is-pro #mapa #locate { pointer-events:auto; }
   .is-pro #mapa .map-panel { position:relative; }
   .is-pro #mapa .voice-bar { padding-block:4px; }
   .is-pro #mapa #voiceFeedback:empty { display:none; }
   .is-pro #toggleRouteSettings { align-self:flex-start; }
 }
 @media(max-width:480px) {
   .is-pro header { position:relative; }
   .is-pro .pro-badge { position:absolute; top:12px; right:12px; }
   .is-pro #mapa .route-options { gap:5px; }
   .is-pro #mapa .route-options button { font-size:12px; padding:6px; }
 }
 .route-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
 .route-actions button { display:inline-flex; align-items:center; gap:5px; min-height:36px; padding:5px 9px; font-size:13px; }
 .route-actions .icon-button { flex:0 0 36px; width:36px; justify-content:center; padding:0; }
 .route-actions .icon { margin-right:0; }
 .button-help { position:fixed; z-index:100; max-width:min(260px,calc(100vw - 16px)); padding:7px 10px; border-radius:7px; background:#182b42; color:#fff; box-shadow:0 3px 12px #0003; font-size:12px; line-height:1.35; pointer-events:none; }

 :root { --metal-gold:linear-gradient(166deg,#f7ebcd 0%,#d4b279 42%,#ad8650 44%,#d7ba82 77%,#b58e54 100%); }
 .is-pro .pro-badge,
 .is-pro[data-accent="dorado"] :is(.pro-action,#nextStop,#calculate,#listen[aria-pressed=true],.route-options button[aria-pressed=true]) {
   background:var(--metal-gold); color:#30210e; border:1px solid #997648;
   box-shadow:inset 0 1px 1px #fff9,inset 0 -2px 2px #57330938,0 2px 4px #17233828;
 }
 #listen[aria-pressed=false] .icon { color:#657387; }
 .is-pro #listen[aria-pressed=true] .icon { color:inherit; }
 @media(max-width:1024px) {
   .is-pro { --bottom-nav:calc(65px + env(safe-area-inset-bottom, 0px)); }
   .is-pro header { position:relative; min-height:58px; height:58px; padding:6px 12px; flex-wrap:nowrap; }
   .is-pro .pro-badge { position:static; font-size:12px; }
   .is-pro header nav {
     position:fixed; z-index:20; inset:auto 0 0; min-height:var(--bottom-nav);
     display:flex; justify-content:center; gap:8px;
     padding:5px 10px calc(5px + env(safe-area-inset-bottom, 0px));
     background:#fbfcfe; border-top:1px solid #dce4ed; box-shadow:0 -4px 18px #152c4217;
   }
   .is-pro header nav button {
     display:grid; justify-items:center; align-content:center; gap:4px;
     flex:1 1 0; max-width:160px; min-height:48px; padding:4px 6px;
     font-size:11px; font-weight:650; line-height:1.1; color:#52647a; border-radius:11px;
   }
   .is-pro header nav button .icon { width:20px; height:20px; margin:0; color:inherit; }
   .is-pro header nav button:is(.active,:hover) { background:#e4edf6; color:#153d60; }
   .is-pro.pro-dark header nav { background:#202e42; border-color:#52637b; }
   .is-pro.pro-dark header nav button { color:#bbc8db; }
   .is-pro.pro-dark header nav button.active { color:#fff; background:#354c67; }
   .is-pro > main { padding:6px 6px calc(var(--bottom-nav) + 6px); }
   .is-pro #mapa.route-settings-open #routeSettings {
     inset:64px auto calc(var(--bottom-nav) + 6px) 6px;
     width:min(390px,calc(100vw - 12px)); max-height:none; overflow:auto;
     box-shadow:4px 0 28px #10203135;
   }
   .is-pro #mapa .map-head { top:8px; right:8px; }
   .is-pro #mapa #toggleRouteSettings {
     position:absolute; z-index:3; inset:8px auto auto 8px;
     width:44px; height:44px; margin:0; padding:0; justify-content:center;
     box-shadow:0 2px 8px #17233830; border-radius:12px;
   }
   .is-pro #toggleRouteSettings span { position:absolute; clip-path:inset(50%); white-space:nowrap; }
   .is-pro #toggleRouteSettings .icon { margin:0; width:19px; height:19px; }
   .is-pro #mapa #routeComparison {
     position:absolute; z-index:2; inset:8px 59px auto;
     padding:0; pointer-events:none;
   }
   .is-pro #routeComparison .route-options { justify-content:center; gap:5px; }
   .is-pro #routeComparison .route-options button {
     min-height:36px; padding:5px 7px; font-size:11px; pointer-events:auto;
     border-radius:10px; box-shadow:0 2px 7px #17233830;
   }
   .is-pro #routeComparison p { display:none; }
   .is-pro #mapa .map-tools { top:74px; right:8px; }
   .is-pro #mapa .map-tools button { border-radius:12px; background-color:#fbfcfe; }
   .is-pro #mapa .voice-bar {
     position:absolute; z-index:2; bottom:33px; left:8px; right:56px;
     padding:0; pointer-events:none;
   }
   .is-pro #mapa :is(#voiceStatus,#voiceFeedback):not(:empty) {
     display:inline-block; margin:2px 0; padding:4px 8px; border-radius:8px;
     background:#fbfcfeee; color:#253d55;
   }
   .is-pro #mapa #popup { top:88px; }
   .is-pro #mapa .map-legend { display:none; }
   .is-pro #routeSettings #proRouteTools { margin-top:12px; }
 }

#cuenta {
  max-width:1040px;
  padding:clamp(16px,3vw,38px);
  background:#103344 linear-gradient(110deg,#0a2639f5 0%,#103344de 44%,#10334448 100%);
  background-image:linear-gradient(110deg,#0a2639f5 0%,#103344de 44%,#10334448 100%),url("ruta-banner.webp");
  background-position:center,70% center;
  background-size:cover;
  border-color:#23475b;
  color:#f5fbff;
}
.account-access {
  max-width:480px;
  padding:clamp(16px,2.4vw,28px);
  background:#0b253be8;
  border:1px solid #63849c80;
  border-radius:16px;
  box-shadow:0 12px 28px #07172844;
}
#cuenta #accountStatus:empty { display:none; }
.account-access #accountStatus { color:#d3e9ff; }
#cuenta .account-actions { flex-wrap:wrap; }
#cuenta button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:40px; border-radius:10px; box-shadow:0 2px 4px #091c3533;
}
#cuenta button:active { transform:translateY(1px); box-shadow:none; }
#cuenta button .icon { margin:0; }
#cuenta .account-primary { background:#2369bb; border-color:#4a8ed5; color:#fff; }
#cuenta .account-primary:hover { background:#195393; }
#cuenta .account-secondary { background:#e5effa; border-color:#acc5dd; color:#153d60; }
#cuenta .account-secondary:hover { background:#c9e2fa; }
#cuenta .account-plans { align-items:start; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); }
#cuenta .account-plans .trip { padding:18px; margin:0; border-radius:15px; box-shadow:0 8px 20px #07172840; }
#cuenta .account-plans h2 { display:flex; align-items:center; gap:8px; margin:0 0 10px; }
#cuenta .account-free { background:#164d69; border-color:#5a9bb8; color:#fff; }
#cuenta .account-free p { color:#ebf8ff; }
#cuenta .account-pro { background:var(--metal-gold); border-color:#997648; color:#101010; }
#cuenta .account-pro p { color:#101010; }
#cuenta .account-settings {
  margin:12px 0 0; padding:12px; max-width:none;
  color:#101010; background:#fff8e8ee; border:1px solid #895f3266; border-radius:11px;
}
#cuenta .account-settings h3 { margin:0 0 6px; }
#cuenta .account-settings button { background:#543c25; border-color:#715339; color:#fff; }
#cuenta .account-settings button:hover { background:#3d2918; }
#cuenta .account-settings input:not([type="checkbox"]),
#cuenta .account-settings select { color:#141414; background:#fff; }
#cuenta #voiceForm { margin-top:8px; }

#desktopRouteTools:not(:has(#proRouteTools:not([hidden]))),
.voice-bar:has(#voiceStatus:empty):has(#voiceFeedback:empty) { display:none; }
@media (min-width:1025px) {
  #mapa .map-panel { display:flex; flex-direction:column; height:calc(100dvh - var(--header-height,70px) - 36px); min-height:300px; overflow:visible; }
  #mapa .map-body { flex:1; height:auto; min-height:0; overflow:hidden; border-radius:0 0 17px 17px; }
  #mapa .map-toolbar {
    display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; padding:8px 12px;
    border-bottom:1px solid var(--line);
  }
  #mapa .map-head { display:contents; }
  #mapa #locate { order:3; margin-left:auto; min-height:36px; height:36px; width:36px; flex-basis:36px; }
  #mapa #routeComparison { padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
  #mapa #routeComparison p { margin:0; font-size:12px; }
  #desktopRouteTools #proRouteTools { align-items:center; }
  #mapa :is(#nextStop,#alertSummary,.route-options button) { min-height:36px; padding:5px 9px; font-size:13px; }
  #mapa .voice-bar {
    position:absolute; z-index:3; top:100%; left:12px; right:60px; transform:translateY(calc(-100% - 34px));
    width:fit-content; max-width:min(520px,calc(100% - 72px)); max-height:25%; overflow:auto;
    padding:7px 10px; background:#f7fbff; color:#253d55; border:1px solid #ccd9e5; border-radius:10px;
  }
  #mapa .voice-bar :is(#voiceStatus,#voiceFeedback) { margin:0; color:inherit; }
  #mapa #voiceStatus:not(:empty) { display:block; }
}

body:has(#cuenta:not([hidden])) { background:#103344; }
main:has(> #cuenta:not([hidden])) { max-width:none; width:100%; }
#cuenta {
  max-width:none;
  min-height:calc(100dvh - var(--header-height, 96px) - 36px);
  display:grid;
  grid-template-columns:minmax(290px, 1fr) minmax(320px, 1.45fr);
  gap:clamp(14px, 2vw, 28px);
  align-content:start;
  align-items:start;
}
#cuenta .account-access { max-width:none; }
#cuenta .account-plans { margin:0; }
#cuenta:has(#accountForm:not([hidden])) {
  grid-template-columns:minmax(0,680px);
  justify-content:center;
  align-content:center;
}
#cuenta:has(#accountForm:not([hidden])) .account-access {
  width:min(100%,480px);
  justify-self:center;
}
#cuenta:has(#accountForm:not([hidden])) .account-access :is(h1,h2) {
  text-align:center;
}
#cuenta:has(#accountForm:not([hidden])) .account-form {
  max-width:none;
  margin-bottom:0;
}
#cuenta:has(#accountForm:not([hidden])) .account-plans {
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
@media(max-width:540px) {
  #cuenta:has(#accountForm:not([hidden])) .account-plans {
    grid-template-columns:minmax(0,1fr);
  }
}
#cuenta .account-preferences {
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(330px,1.15fr) minmax(280px,1fr) minmax(180px,.65fr);
  gap:16px;
  align-items:start;
}
#cuenta .account-preferences .account-settings { margin:0; padding:16px; }
#cuenta .account-settings p { color:#453728; }
#cuenta .preferences-actions { flex-wrap:wrap; }
#cuenta #preferencesStatus { margin:0; font-size:13px; line-height:1.4; }
#cuenta #preferencesStatus:empty { display:none; }
#cuenta #preferencesStatus[data-state] { flex:1 1 180px; padding:7px 9px; border-radius:6px; }
#cuenta #preferencesStatus[data-state="pending"] { background:#ece4d7; color:#493e31; }
#cuenta #preferencesStatus[data-state="success"] { background:#dceee0; color:#19462a; }
#cuenta #preferencesStatus[data-state="error"] { background:#f7e0dd; color:#782726; }
.is-pro #cuenta #savePreferences {
  background:var(--pro-fill,var(--metal-gold));
  border-color:var(--pro-border,#997648);
  color:var(--pro-ink,#30210e);
}
.pro-dark #cuenta .account-settings { background:#202e42; color:#edf4ff; }
.pro-dark #cuenta .account-settings p:not([data-state]) { color:#bbc8db; }
.pro-dark #cuenta .account-settings input:not([type="checkbox"]),
.pro-dark #cuenta .account-settings select { background:#142236; color:#edf4ff; border-color:#52637b; }
#cuenta #voicePanel .row { flex-wrap:wrap; }
#cuenta #voicePanel .row label { display:flex; align-items:center; }
#cuenta #voiceForm input { flex:1 1 130px; }
@media(max-width:1020px) {
  #cuenta .account-preferences { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  #cuenta, #cuenta .account-preferences { grid-template-columns:minmax(0,1fr); }
}
#addDestination { margin:8px 0; }
#destinationEditor { padding:10px; margin-bottom:8px; border:1px solid var(--line); border-radius:10px; }
#destinationEditor label { font-size:13px; font-weight:650; }
#destinationChoices { display:grid; gap:5px; margin-top:6px; }
#destinationStatus:empty { display:none; }
#stops .itinerary { margin:6px 0 12px; padding-left:24px; }
#stops .itinerary-item { display:list-item; padding:6px 0; border-bottom:1px solid var(--line); }
.itinerary-item > .itinerary-name, .itinerary-item > .itinerary-actions { vertical-align:middle; }
.itinerary-name { display:inline-block; width:calc(100% - 111px); font-weight:600; }
.itinerary-address { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.itinerary-name small { display:block; color:var(--muted); font-weight:500; }
.itinerary-actions { display:inline-flex; justify-content:flex-end; width:111px; gap:4px; }
#stops .itinerary-actions button { display:grid; place-items:center; margin:0; padding:0; width:32px; min-height:32px; border-radius:7px; }
#stops .itinerary-actions .icon { width:15px; height:15px; margin:0; }
#stops .itinerary-actions button:disabled { opacity:.3; cursor:default; }
#stops .itinerary-actions button:last-child { color:#aa3243; }
.pro-dark #stops .itinerary-actions button:last-child { color:#ff9baa; }
.map-panel { --map-credit-space:39px; }
.map-panel:has(#weatherCredit:not([hidden]),#trafficCredit:not([hidden])) { --map-credit-space:74px; }
.map-panel:has(#weatherCredit:not([hidden])):has(#trafficCredit:not([hidden])) { --map-credit-space:109px; }
.map-credits {
  position:absolute;
  right:5px;
  bottom:5px;
  z-index:2;
  display:grid;
  grid-auto-rows:32px;
  gap:3px;
  max-width:calc(100% - 95px);
}
.map-credits a {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:26px;
  padding:3px 8px;
  color:#17354a;
  background:#f7fbff;
  border:1px solid #72889e;
  border-radius:7px;
  font-size:11px;
  line-height:1.2;
  text-align:center;
  text-decoration:underline;
}
.pro-dark .map-credits a {
  color:#edf5ff;
  background:#202e42;
}
.map-credits img {
  width:43px;
  height:16px;
  padding:1px 2px;
  object-fit:contain;
  background:#f7fbff;
  border-radius:3px;
}
.map-legend { bottom:var(--map-credit-space); }
#toggleWeather[aria-pressed=true] {
  background:#1d5275;
  color:#fff;
}
#routeWeather {
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  width:max-content;
  max-width:min(330px,calc(100% - 82px));
  max-height:min(70%,calc(100% - var(--map-credit-space) - 18px));
  overflow:auto;
  background:#f7fbff;
  color:#17354a;
  border:1px solid #8296a9;
  border-radius:12px;
  padding:10px 12px;
  box-shadow:0 4px 16px #10233733;
}
.pro-dark #routeWeather { background:#202e42; color:#edf5ff; }
#routeWeather h3,#routeWeather p { margin:0 0 4px; }
#routeWeather h3 { font-size:14px; }
#routeWeather details { margin:6px 0; color:inherit; }
#routeWeather ul { list-style:none; padding:0; margin:6px 0; }
#routeWeather button { width:100%; margin-bottom:4px; text-align:left; font-size:12px; }
#routeWeather a { color:inherit; text-decoration:underline; }
#popup { z-index:3; }
#incidentDetour {
  position:absolute;
  z-index:3;
  bottom:var(--map-credit-space);
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 24px);
  padding:10px 12px;
  color:#153626;
  background:#f5fff9;
  border:1px solid #6e9b85;
  border-radius:12px;
  box-shadow:0 4px 16px #10233733;
}
#incidentDetour p { margin:0 0 7px; font-size:13px; }
#takeDetour { background:#17614a; color:#fff; }
#incidentDetour .row { flex-wrap:wrap; }
.pro-dark #incidentDetour { color:#edf5ff; background:#202e42; }
.pro-dark #incidentDetour #takeDetour { color:#fff; background:#17614a; }
@media (min-width:1025px) {
  #mapa .map-panel:has(#incidentDetour:not([hidden])) .voice-bar {
    transform:translateY(calc(-100% - var(--map-credit-space) - 100px));
  }
}
#popup .trip { padding:0; border:0; }
.road-alert-panel {
  --alert-panel:#fff;
  --alert-card:#f2f6fb;
  --alert-active:#dceafd;
  --alert-active-ink:#163e72;
  --alert-success:#176042;
  --alert-error:#9c2940;
  position:absolute;
  z-index:5;
  top:14px;
  right:64px;
  width:min(360px,calc(100% - 80px));
  max-height:calc(100% - var(--map-credit-space) - 20px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px;
  background:var(--alert-panel);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 9px 24px #09192950;
}
.pro-dark .road-alert-panel {
  --alert-panel:#172538;
  --alert-card:#202f44;
  --alert-active:#355173;
  --alert-active-ink:#e4f2ff;
  --alert-success:#a0e6be;
  --alert-error:#ffb2bc;
}
.road-alert-heading,.road-alert-card-heading { display:flex; align-items:center; gap:8px; }
.road-alert-heading { justify-content:space-between; }
.road-alert-heading h3 { margin:0; font-size:17px; }
.road-alert-heading .icon-button { width:36px; height:36px; min-height:36px; }
.road-alert-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:10px 0 12px; }
.road-alert-tabs button { min-height:40px; font-size:13px; }
.road-alert-tabs button[aria-pressed=true] {
  background:var(--alert-active);
  color:var(--alert-active-ink);
  border-color:var(--alert-active);
}
.road-alert-empty,.road-alert-card {
  background:var(--alert-card,#f2f6fb);
  border:1px solid var(--line);
  border-radius:11px;
  padding:10px;
  margin:0 0 8px;
  font-size:13px;
  overflow-wrap:anywhere;
}
.pro-dark #popup .road-alert-card { background:#202f44; }
.road-alert-empty p,.road-alert-card p { margin:5px 0 0; line-height:1.4; }
.road-alert-empty strong { margin-left:7px; }
.road-alert-empty p,.road-alert-card .road-alert-source { color:var(--muted); }
.road-alert-source,.road-alert-card-heading span { font-size:11px; }
.road-alert-card-heading { flex-wrap:wrap; }
.road-alert-card-heading span { color:var(--muted); }
.road-alert-subheading { margin:10px 0 5px; font-size:13px; }
.road-alert-actions,.road-alert-sources .row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:8px; }
.road-alert-actions button,.road-alert-sources button,.road-alert-sources a { font-size:12px; }
.road-alert-sources { margin:10px 0 0; border-top:1px solid var(--line); padding-top:9px; }
.road-alert-sources p { margin:6px 0; }
.road-alert-sources p:empty,.road-alert-message:empty { display:none; }
.road-alert-sources a { color:inherit; text-decoration:underline; }
.road-alert-message { margin:0 0 7px; font-size:12px; color:var(--muted); }
.road-alert-message[data-state=success] { color:var(--alert-success); font-weight:700; }
.road-alert-message[data-state=error] { color:var(--alert-error); font-weight:700; }
#alertForm { display:grid; gap:6px; margin:0; }
#alertForm label,.road-alert-location > span { display:block; font-size:13px; font-weight:700; }
.road-alert-intro { margin:0 0 3px; color:var(--muted); font-size:12px; }
#alertForm :is(input,select,textarea) { margin:0; }
#alertForm textarea {
  font:inherit;
  color:inherit;
  background:var(--alert-panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px;
  resize:vertical;
  max-height:8em;
}
.road-alert-location {
  display:grid;
  gap:7px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px;
}
.road-alert-location > button { text-align:left; min-height:36px; }
.road-alert-location details,.road-alert-location .road-alert-message { margin:0; }
.road-alert-coordinate-label { margin:6px 0 3px; }
#publishAlert { min-height:40px; margin-top:3px; }
#alertPickBanner {
  position:absolute;
  z-index:5;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:80%;
  display:flex;
  gap:8px;
  align-items:center;
  padding:7px 10px;
  font-size:13px;
  background:#17334f;
  color:#fff;
  border-radius:10px;
  box-shadow:0 4px 16px #10233744;
}
.map-body canvas.picking-alert { cursor:crosshair; }
@media (max-width:700px) {
  .road-alert-panel { right:8px; width:min(360px,calc(100% - 16px)); }
  .map-body:has(.road-alert-panel:not([hidden])) #routeWeather { visibility:hidden; }
}
.local-server-note { padding:9px 14px; background:#ffebbd; color:#44300b; font-size:13px; }
.local-server-note a { color:inherit; font-weight:700; }
.vehicle-field { display:flex; align-items:center; gap:8px; margin:8px 0; font-size:13px; font-weight:650; }
.vehicle-field select { width:auto; flex:1; margin:0; }
#business {
  --business-card:#fff;
  --business-detail:#edf4fb;
  --business-accent:#16466b;
  width:100%;
  max-width:1280px;
  padding:clamp(14px,3vw,30px);
}
.pro-dark #business {
  --business-card:#172538;
  --business-detail:#273b54;
  --business-accent:#d1e7ff;
}
.business-header {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.business-context { margin:0 0 5px; color:var(--muted); font-size:13px; font-weight:650; }
.business-roles,.business-trip-actions { display:flex; flex-wrap:wrap; gap:6px; }
.business-roles button,.business-trip-actions button { min-height:38px; font-size:13px; }
.business-roles button[aria-pressed=true],#business .business-primary {
  background:#16466b;
  border-color:#16466b;
  color:#fff;
}
.pro-dark .business-roles button[aria-pressed=true],.pro-dark #business .business-primary {
  background:#a9c9ed;
  border-color:#a9c9ed;
  color:#122b47;
}
#businessStatus { margin:10px 0; font-size:13px; color:var(--green); }
#businessStatus:empty { display:none; }
#operations > label { display:block; margin-top:14px; max-width:290px; }
.business-metrics {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));
  gap:9px;
  margin:15px 0;
}
.business-metric {
  display:grid;
  grid-template-columns:22px 1fr;
  align-items:center;
  gap:4px 6px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--business-detail);
}
.business-metric strong { font-size:22px; }
.business-metric span { grid-column:1/-1; font-size:12px; color:var(--muted); }
.business-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:12px; }
.business-audit { grid-template-columns:1fr; }
.business-column {
  min-width:0;
  border:1px solid var(--line);
  border-radius:13px;
  padding:13px;
  background:var(--business-card);
}
.business-column h3 { margin:0 0 10px; }
.business-trip {
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  margin:0 0 8px;
}
.business-trip-head { display:flex; gap:7px; align-items:flex-start; justify-content:space-between; }
.business-trip-head h4 { margin:0; overflow-wrap:anywhere; }
.business-trip-state {
  flex:none;
  border-radius:12px;
  padding:3px 7px;
  background:var(--business-detail);
  color:var(--business-accent);
  font-size:11px;
  font-weight:700;
}
.business-trip p,.business-stop-summary { font-size:13px; margin:6px 0; }
.business-stops,.business-history ol { list-style:none; padding:0; margin:7px 0; }
.business-stops li,.business-history li {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding:6px 0;
  font-size:12px;
}
.business-history time { color:var(--muted); }
.business-assignment { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr)); gap:8px; margin-top:8px; }
.business-assignment label,#operations > label { min-width:0; font-size:12px; font-weight:650; }
.business-assignment select,.business-assignment input { height:40px; }
.business-assignment button { grid-column:1/-1; justify-self:start; min-height:36px; font-size:12px; }
.business-fleet {
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--business-detail);
}
.business-fleet summary,.business-planning > summary {
  font-weight:700;
  color:var(--ink);
  min-height:32px;
  align-content:center;
}
.business-fleet-list { display:flex; flex-wrap:wrap; gap:5px 14px; padding:0; list-style:none; }
.business-fleet-list li { font-size:12px; color:var(--muted); }
.business-planning:not([open]) { align-self:start; }
.business-schedule-form {
  grid-column:1/-1;
  margin:2px 0;
  padding:8px;
  border:1px solid var(--line);
  border-radius:9px;
}
.business-schedule-form summary { font-weight:700; color:var(--ink); }
.business-schedule-form label { display:block; margin:8px 0; }
.business-schedule-form input { min-width:0; height:40px; }
.business-schedule-form .muted,.business-schedule-error { margin:6px 0; font-size:12px; }
.business-schedule-error { color:#9f3044; }
.pro-dark .business-schedule-error { color:#ffb3bd; }
.business-schedule-error:empty { display:none; }
.business-delays,.business-map-delay {
  border:1px solid #e7b969;
  border-radius:10px;
  padding:8px 11px;
  color:#5b3200;
  background:#fff1d2;
}
.business-delays { margin:12px 0; }
.business-delays h3,.business-delays p { margin:0; }
.business-delays p { margin-top:4px; font-size:13px; }
.business-map-delay { margin:4px 10px; font-size:13px; }
.pro-dark .business-delays,.pro-dark .business-map-delay {
  color:#ffe0a7;
  background:#432f1b;
  border-color:#956938;
}
.business-delivery-times { margin:8px 0; padding:0; list-style:none; }
.business-delivery-times li {
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  padding:6px;
  border-top:1px solid var(--line);
  font-size:12px;
}
.business-delivery-times strong { flex-basis:100%; }
.business-delivery-times span { color:var(--muted); }
.business-delivery-times .business-delay-text { color:#8b4813; font-weight:700; }
.pro-dark .business-delivery-times .business-delay-text { color:#ffcf96; }
#business {
  --business-surface:#f4f7fb;
  --business-blue:#1e527c;
  --business-progress:#207e70;
  --business-wait-bg:#edf1ff;
  --business-wait-ink:#314889;
  --business-moving-bg:#e0f4ee;
  --business-moving-ink:#166453;
  --business-done-bg:#eaf0f5;
  --business-done-ink:#455972;
  max-width:1440px;
  background:var(--business-surface);
}
.pro-dark #business {
  --business-surface:#131f31;
  --business-blue:#9cc6eb;
  --business-progress:#65cbb4;
  --business-wait-bg:#2b3960;
  --business-wait-ink:#d1dcff;
  --business-moving-bg:#194638;
  --business-moving-ink:#a0f0d3;
  --business-done-bg:#27384e;
  --business-done-ink:#c5d6e8;
}
#business .business-header { padding-bottom:20px; }
#business .business-context { color:var(--business-blue); }
#business .business-metrics {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:20px 0;
}
#business .business-metric {
  grid-template-columns:24px 1fr;
  gap:5px 10px;
  padding:15px 16px;
  background:var(--business-card);
}
#business .business-metric .icon {
  width:22px;
  height:22px;
  color:var(--business-blue);
  margin:0;
}
#business .business-metric:has(#businessLateCount) .icon {
  color:#a46314;
}
.pro-dark #business .business-metric:has(#businessLateCount) .icon { color:#ffd18a; }
#business .business-metric strong { font-size:26px; }
#business[data-role=operador] .business-columns {
  grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);
  align-items:start;
  gap:16px;
}
#business .business-column { padding:clamp(13px,1.8vw,22px); }
#business .business-column h3 { font-size:18px; margin-bottom:12px; }
#business .business-trip { padding:14px; margin-bottom:10px; }
#business .business-trip h4 { font-size:16px; }
#business .business-trip progress {
  display:block;
  width:min(180px,100%);
  height:7px;
  margin:0 0 10px;
  accent-color:var(--business-progress);
}
#business .business-trip-state {
  padding:4px 9px;
  background:var(--business-wait-bg);
  color:var(--business-wait-ink);
}
#business .business-trip-state[data-state="En curso"] {
  background:var(--business-moving-bg);
  color:var(--business-moving-ink);
}
#business .business-trip-state[data-state="Finalizado"] {
  background:var(--business-done-bg);
  color:var(--business-done-ink);
}
#business .business-delays { padding:12px 15px; }
#business .business-delays h3 { display:flex; align-items:center; gap:7px; font-size:15px; }
#business .business-delays h3 .icon { margin:0; }
.business-filters { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:14px; }
.business-filters button { min-height:34px; padding:5px 10px; font-size:12px; }
.business-filters button[aria-pressed=true] {
  background:var(--business-detail);
  color:var(--business-blue);
  border-color:var(--business-blue);
}
.operator-subheading {
  font-size:13px;
  margin:17px 0 7px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.business-trip :is(.business-deliveries,.business-history) {
  margin:9px 0 6px;
  padding:7px 9px;
  background:var(--business-surface);
  border-radius:7px;
}
.business-trip :is(.business-deliveries,.business-history) summary { color:var(--business-blue); font-weight:650; }
@media (max-width:780px) {
  #business[data-role=operador] .business-columns { grid-template-columns:minmax(0,1fr); }
  #business .business-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:740px) {
  .business-columns { grid-template-columns:1fr; }
  .business-roles { display:grid; grid-template-columns:repeat(3,1fr); width:100%; }
  .business-roles button { padding:6px; }
  .business-roles .icon { display:block; margin:0 auto 3px; }
}
@media (max-width:1024px) {
  #business[data-role=chofer] .business-columns { grid-template-columns:minmax(0,1fr); }
  #business:is([data-role=chofer],[data-role=auditor]) .business-roles button,
  #business:is([data-role=chofer],[data-role=auditor]) .business-filters button,
  #business[data-role=auditor] .business-trip > button,
  #business[data-role=chofer] :is(.business-trip-actions,.business-stops) button {
    min-height:44px;
  }
  #business[data-role=chofer] .business-trip-actions > button { flex:1 1 140px; }
  #business[data-role=auditor] .business-history summary { padding-block:10px; }
}
@media (max-width:500px) {
  #business .business-metric { padding:12px; }
  #business[data-role=chofer] .business-stops li > span { flex:1 1 120px; overflow-wrap:anywhere; }
}
