@layer app {
  body { background: #0c1412; color: #e6f2ed; }

  .rotta {
    --bg: #0c1412;
    --panel: #0f1916;
    --panel-2: #13201c;
    --panel-3: #182823;
    --ink: #e6f2ed;
    --ink-2: #a9bfb7;
    --ink-3: #74908a;
    --line: rgba(190, 232, 216, .1);
    --line-2: rgba(190, 232, 216, .2);
    --accent: #38e1a8;
    --s-drive: #38e1a8;
    --s-late: #ff6b57;
    --s-return: #5aa8ff;
    --s-parked: #f2b84b;
    --sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
    --cond: "Barlow Condensed", "Barlow", ui-sans-serif, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.4, .5, 1);
    --panel-w: clamp(340px, 26vw, 392px);

    position: relative;
    display: grid;
    grid-template-columns: var(--panel-w) minmax(0, 1fr);
    height: calc(100svh - var(--fs-bar-h));
    min-height: 600px;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font: 400 14px/1.4 var(--sans);
    -webkit-font-smoothing: antialiased;
  }
  .rotta *, .rotta *::before, .rotta *::after { box-sizing: border-box; }
  :where(.rotta) :where(button) { font: inherit; color: inherit; }
  .rotta :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .rotta [hidden] { display: none !important; }
  .rt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rt-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .rotta [data-status] { --sc: var(--s-drive); }
  .rotta [data-status="late"] { --sc: var(--s-late); }
  .rotta [data-status="return"] { --sc: var(--s-return); }
  .rotta [data-status="parked"] { --sc: var(--s-parked); }

  /* ---------------------------------------------------------------- panel */
  .rt-panel { position: relative; z-index: 6; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
  .rt-grip { display: none; }
  .rt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
  .rt-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .rt-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #062018; flex: none; box-shadow: 0 8px 22px -10px rgba(56, 225, 168, .8); }
  .rt-logo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .rt-logo circle { fill: currentColor; stroke: none; }
  .rt-brand strong { display: block; font: 700 19px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
  .rt-brand small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-live { display: flex; align-items: center; gap: 7px; flex: none; padding: 6px 10px; border-radius: 999px; background: rgba(56, 225, 168, .08); border: 1px solid rgba(56, 225, 168, .22); }
  .rt-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(56, 225, 168, .6); animation: rt-pulse 1.8s ease-out infinite; }
  @keyframes rt-pulse { 70% { box-shadow: 0 0 0 7px rgba(56, 225, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 225, 168, 0); } }
  .rt-live__txt { font: 700 11px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .rt-clock { font: 600 13px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }

  .rt-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0 10px; border-bottom: 1px solid var(--line); }
  .rt-tabs button {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; background: none; cursor: pointer;
    color: var(--ink-3); font: 600 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; transition: color .25s;
  }
  .rt-tabs button:hover { color: var(--ink-2); }
  .rt-tabs button[aria-selected="true"] { color: var(--ink); }
  .rt-count { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: var(--panel-3); color: var(--ink-2); font: 600 11px/1 var(--mono); letter-spacing: 0; }
  .rt-tabs button[aria-selected="true"] .rt-count { background: rgba(56, 225, 168, .16); color: var(--accent); }
  .rt-tabs__ind { position: absolute; bottom: -1px; left: 10px; width: calc(50% - 10px); height: 2px; border-radius: 2px; background: var(--accent); transition: transform .45s var(--spring); }
  .rotta[data-tab="deliv"] .rt-tabs__ind { transform: translateX(100%); }

  .rt-pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .rt-pane__note { margin: 12px 18px 4px; color: var(--ink-3); font-size: 12px; }
  .rt-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 10px; }
  .rt-filter {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); font: 600 12.5px/1 var(--cond); letter-spacing: .04em;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
  }
  .rt-filter:hover { border-color: var(--line-2); color: var(--ink); }
  .rt-filter:active { transform: scale(.96); }
  .rt-filter b { font: 600 11px/1 var(--mono); color: var(--ink-3); }
  .rt-filter__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
  .rt-filter[data-status="all"] .rt-filter__dot { background: conic-gradient(var(--s-drive) 0 25%, var(--s-late) 0 50%, var(--s-return) 0 75%, var(--s-parked) 0); }
  .rt-filter[aria-pressed="true"] { background: color-mix(in srgb, var(--sc) 14%, var(--panel-2)); border-color: color-mix(in srgb, var(--sc) 55%, transparent); color: var(--ink); }
  .rt-filter[data-status="all"][aria-pressed="true"] { --sc: #cfe9df; }
  .rt-filter[aria-pressed="true"] b { color: var(--ink); }
  .rt-search { position: relative; display: block; margin: 0 16px 10px; }
  .rt-search .rt-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 16px; height: 16px; }
  .rt-search input {
    width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
    font: 400 14px/1 var(--sans); transition: border-color .2s, box-shadow .2s;
  }
  .rt-search input::placeholder { color: #5e7871; }
  .rt-search input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px rgba(56, 225, 168, .12); }

  .rt-list, .rt-dlist { list-style: none; margin: 0; padding: 2px 10px 16px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
  .rt-van {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%;
    padding: 11px 10px 13px 12px; margin: 0 0 4px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; cursor: pointer;
    transition: background .2s, border-color .2s;
  }
  .rt-van::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--sc); }
  .rt-van:hover { background: var(--panel-2); }
  .rt-van[aria-current="true"] { background: var(--panel-3); border-color: color-mix(in srgb, var(--sc) 45%, transparent); }
  .rt-van__id { font: 600 12px/1 var(--mono); color: var(--ink); padding: 6px 7px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line); }
  .rt-van__main { display: grid; gap: 3px; min-width: 0; }
  .rt-van__main strong { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-van__next { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-van__side { display: grid; justify-items: end; gap: 5px; }
  .rt-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; white-space: nowrap;
    background: color-mix(in srgb, var(--sc) 15%, transparent); color: var(--sc); font: 700 11px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase;
  }
  .rt-van__eta { font: 500 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .rt-van__bar { position: absolute; left: 12px; right: 10px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .rt-van__bar i { display: block; height: 100%; background: var(--sc); opacity: .75; transition: width .6s var(--ease); }
  .rt-van.is-flash { animation: rt-row-flash 1.4s var(--ease); }
  @keyframes rt-row-flash { 0% { background: color-mix(in srgb, var(--sc) 22%, transparent); } }
  .rt-empty { margin: 30px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }

  .rt-dl {
    display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 8px 11px 10px; margin-bottom: 4px;
    border-radius: 12px; border: 1px solid transparent; transition: background .2s;
  }
  .rt-dl:hover { background: var(--panel-2); }
  .rt-dl__eta { font: 600 17px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .rt-dl[data-late] .rt-dl__eta { color: var(--s-late); }
  .rt-dl[data-dwell] .rt-dl__eta { color: var(--accent); position: relative; }
  .rt-dl[data-dwell] .rt-dl__eta::before { content: ""; position: absolute; left: -9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); animation: rt-pulse 1.6s ease-out infinite; }
  .rt-dl__main { display: grid; gap: 3px; min-width: 0; }
  .rt-dl__main strong { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-dl__main span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-dl__side { display: grid; justify-items: end; gap: 5px; }
  .rt-dl__van { padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font: 600 11px/1 var(--mono); color: var(--ink-2); }
  .rt-dl__van:hover { color: var(--ink); border-color: var(--accent); }
  .rt-dl__win { font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
  .rt-dl[data-late] .rt-dl__win { color: var(--s-late); }

  /* ---------------------------------------------------------------- map */
  .rt-mapwrap { position: relative; min-width: 0; overflow: hidden; isolation: isolate; background: #0a110f; }
  .rt-map { position: absolute; inset: 0; z-index: 0; cursor: grab; touch-action: none; outline: none; }
  .rt-map.is-panning { cursor: grabbing; }
  .rt-map:focus-visible { box-shadow: inset 0 0 0 2px rgba(56, 225, 168, .5); }
  .rt-svg { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
  .rt-world { --ls: 2; }
  .rt-world .sc { transform: scale(var(--ls)); }

  .m-land { fill: #0a110f; }
  .m-b0 { fill: #16231f; stroke: #16231f; }
  .m-b1 { fill: #182722; stroke: #182722; }
  .m-b2 { fill: #14201c; stroke: #14201c; }
  .m-bh { fill: #1d2925; stroke: #1d2925; }
  .m-bi { fill: #161f23; stroke: #161f23; }
  .m-park { fill: #10261b; stroke: #10261b; }
  .m-blocks path { stroke-width: 9; stroke-linejoin: round; }
  .m-trees path { fill: #15341f; }
  .m-piazza { fill: #1a2622; stroke: #22302b; stroke-width: 2; }
  .m-duomo rect, .m-duomo circle { fill: #2a3833; }
  .m-roads path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .m-r1 { stroke: #1d2e29; stroke-width: 5; }
  .m-r2 { stroke: #22342e; stroke-width: 8; }
  .m-r3o { stroke: #0a110f; stroke-width: 22; }
  .m-r3 { stroke: #26392f; stroke-width: 12; }
  .m-water path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .m-bank { stroke: #0d1f22; stroke-width: 66; }
  .m-river { stroke: #0f2e34; stroke-width: 50; }
  .m-flow { stroke: #1a4c55; stroke-width: 2; stroke-dasharray: 2 34; animation: rt-flow 9s linear infinite; }
  @keyframes rt-flow { to { stroke-dashoffset: -360; } }
  .m-bridge { fill: none; stroke: #2c423a; stroke-width: 13; stroke-linecap: butt; }

  .rt-lb text { font: 600 12px/1 var(--cond); letter-spacing: .22em; text-anchor: middle; dominant-baseline: middle; fill: #5d7a71; paint-order: stroke; stroke: #0b1311; stroke-width: 3px; stroke-linejoin: round; }
  .rt-lb--park text { font-size: 11px; letter-spacing: .12em; fill: #4f8f68; text-transform: none; font-style: normal; }
  .rt-lb--water text { font-size: 11px; letter-spacing: .3em; fill: #3f7d86; text-transform: uppercase; stroke: #0f2e34; }
  .rt-lb--road text { font-size: 10px; letter-spacing: .3em; fill: #4c6a61; text-transform: uppercase; stroke: #26392f; }
  .rt-labels { transition: opacity .3s; }
  .rt-world.is-far .rt-lb--park, .rt-world.is-far .rt-lb--road { display: none; }
  .rt-hub rect { fill: rgba(56, 225, 168, .16); stroke: var(--accent); stroke-width: 1.5; }
  .rt-hub path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
  .rt-hub text { font: 700 10px/1 var(--cond); letter-spacing: .2em; text-anchor: middle; fill: var(--accent); paint-order: stroke; stroke: #0b1311; stroke-width: 3px; }

  /* live layers */
  .rt-traffic path { fill: none; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .8s, opacity .4s; }
  .rt-traffic .t0 { stroke: #2fbf86; opacity: .16; }
  .rt-traffic .t1 { stroke: #f2b84b; opacity: .9; }
  .rt-traffic .t2 { stroke: #ff6b57; opacity: .95; }
  .rt-zones path { fill: var(--zc); fill-opacity: .07; stroke: var(--zc); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
  .rt-zones text { font: 700 12px/1 var(--cond); letter-spacing: .2em; text-anchor: middle; fill: var(--zc); opacity: .9; paint-order: stroke; stroke: #0b1311; stroke-width: 3px; }
  .rt-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .rt-route .r-glow { stroke: var(--sc, var(--accent)); stroke-width: 9; opacity: .16; }
  .rt-route .r-main { stroke: var(--sc, var(--accent)); stroke-width: 3; }
  .rt-route .r-next { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 2 7; opacity: .7; animation: rt-dash 1.2s linear infinite; }
  .rt-route .r-home { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 6; opacity: .8; }
  @keyframes rt-dash { to { stroke-dashoffset: -18; } }
  .rt-stop .s-dot { fill: #0b1311; stroke: var(--sc, #8aa79e); stroke-width: 2; }
  .rt-stop.is-dim { opacity: .35; }
  .rt-stop .s-n { font: 700 9.5px/1 var(--mono); text-anchor: middle; dominant-baseline: central; fill: var(--ink); }
  .rt-stop.is-big .s-dot { stroke-width: 2.2; }
  .rt-stop.is-done .s-dot { fill: var(--sc); stroke: #0b1311; }
  .rt-stop.is-done .s-n { fill: #062018; }
  .rt-stop.is-next .s-ring { fill: none; stroke: var(--sc); stroke-width: 1.5; animation: rt-ring 1.6s var(--ease) infinite; transform-origin: 0 0; }
  @keyframes rt-ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(2); opacity: 0; } }

  .rt-inc .i-pulse { fill: rgba(255, 107, 87, .25); transform-origin: 0 0; animation: rt-ring 1.8s var(--ease) infinite; }
  .rt-inc .i-tri { fill: var(--s-late); stroke: #0b1311; stroke-width: 1.5; stroke-linejoin: round; }
  .rt-inc .i-bang { stroke: #0b1311; stroke-width: 2; stroke-linecap: round; fill: none; }
  .rt-mk { cursor: pointer; }
  .rt-mk .mk-halo { fill: var(--sc); opacity: .14; transition: opacity .3s, transform .4s var(--spring); }
  .rt-mk .mk-body { fill: var(--sc); stroke: #07100d; stroke-width: 1.5; }
  .rt-mk .mk-cab { fill: rgba(5, 18, 14, .55); }
  .rt-mk .mk-lbl { font: 600 10px/1 var(--mono); text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: #07100d; stroke-width: 3px; opacity: 0; transition: opacity .25s; }
  .rt-world.is-near .rt-mk .mk-lbl, .rt-mk:hover .mk-lbl, .rt-mk.is-sel .mk-lbl { opacity: 1; }
  .rt-mk:hover .mk-halo { opacity: .3; }
  .rt-mk.is-sel .mk-halo { opacity: .32; animation: rt-halo 1.8s var(--ease) infinite; }
  .rt-mk.is-sel .mk-body { stroke: #fff; stroke-width: 2; }
  @keyframes rt-halo { 0% { transform: scale(.9); } 50% { transform: scale(1.25); } 100% { transform: scale(.9); } }
  .rt-mk.is-dim { opacity: .4; }
  .rt-mk.is-hidden { display: none; }
  .rt-mk[data-status="late"] .mk-halo { opacity: .28; }

  /* overlays */
  .rt-kpis {
    position: absolute; z-index: 4; top: 14px; left: 14px; right: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 190px)); gap: 8px;
    margin: 0; padding: 0; list-style: none; pointer-events: none;
  }
  .rt-kpi {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; align-items: center;
    padding: 11px 13px; border-radius: 14px; background: rgba(12, 20, 18, .74); border: 1px solid var(--line); pointer-events: auto;
    -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  }
  .rt-kpi .rt-ic { grid-row: span 2; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(56, 225, 168, .1); color: var(--accent); }
  .rt-kpi__label sub { font-size: .75em; vertical-align: -.1em; line-height: 0; }
  .rt-kpi__label { font: 600 11px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-kpi__val { font: 600 20px/1 var(--mono); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .rt-kpi__val small { font-size: 12px; color: var(--ink-3); letter-spacing: 0; font-weight: 500; }
  .rt-kpi.is-tick .rt-kpi__val { animation: rt-tick .9s var(--ease); }
  @keyframes rt-tick { 25% { color: var(--accent); } }

  .rt-ctl { position: absolute; z-index: 4; top: 14px; right: 14px; display: grid; gap: 6px; }
  .rt-btn {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line); background: rgba(12, 20, 18, .78); color: var(--ink);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s, border-color .2s, transform .15s, color .2s;
  }
  .rt-btn:hover { background: rgba(24, 40, 35, .92); border-color: var(--line-2); }
  .rt-btn:active { transform: scale(.94); }
  .rt-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  .rt-btn--ghost { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; width: 36px; height: 36px; border-radius: 10px; }
  .rt-layers {
    position: absolute; z-index: 5; top: 14px; right: 66px; width: 236px; padding: 12px 14px 8px; border-radius: 14px;
    background: rgba(15, 25, 22, .94); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: rt-pop .3s var(--ease);
  }
  @keyframes rt-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
  .rt-layers__title { margin: 0 0 6px; font: 700 11px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
  .rt-switch { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 13.5px; color: var(--ink); }
  .rt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .rt-switch__t { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s; }
  .rt-switch__t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform .35s var(--spring), background .25s; }
  .rt-switch input:checked + .rt-switch__t { background: var(--accent); }
  .rt-switch input:checked + .rt-switch__t::after { transform: translateX(14px); background: #062018; }
  .rt-switch input:focus-visible + .rt-switch__t { outline: 2px solid var(--accent); outline-offset: 2px; }
  .rt-sw { margin-left: auto; width: 26px; height: 10px; border-radius: 3px; }
  .rt-sw--traffic { background: linear-gradient(90deg, #2fbf86 0 33%, #f2b84b 0 66%, #ff6b57 0); }
  .rt-sw--zones { border: 1.5px dashed #9b8cff; }
  .rt-sw--stops { background: radial-gradient(circle, #0b1311 2px, transparent 2.5px) 0 50% / 9px 10px repeat-x, transparent; box-shadow: none; border-radius: 0; height: 10px; position: relative; }
  .rt-sw--stops::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 2px, #8aa79e 2.1px 3.4px, transparent 3.5px) 0 50% / 9px 10px repeat-x; }

  .rt-legend {
    position: absolute; z-index: 3; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 12px; padding: 9px 12px; border-radius: 12px;
    background: rgba(12, 20, 18, .74); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    font: 600 12px/1 var(--cond); letter-spacing: .06em; color: var(--ink-2);
  }
  .rt-legend span { display: inline-flex; align-items: center; gap: 7px; }
  .rt-legend span::before { content: ""; width: 14px; height: 8px; border-radius: 3px; background: var(--sc); }

  .rt-sim { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; }
  .rt-scale { display: grid; justify-items: start; gap: 4px; padding: 7px 10px; border-radius: 10px; background: rgba(12, 20, 18, .74); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .rt-scale i { display: block; width: var(--sw, 80px); height: 5px; border: 1.5px solid var(--ink-2); border-top: 0; transition: width .2s; }
  .rt-scale b { font: 500 10.5px/1 var(--mono); color: var(--ink-2); }
  .rt-speed { display: flex; padding: 3px; border-radius: 11px; background: rgba(12, 20, 18, .78); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .rt-speed button { height: 30px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--ink-3); font: 600 12px/1 var(--mono); transition: background .2s, color .2s; }
  .rt-speed button:hover { color: var(--ink); }
  .rt-speed button[aria-pressed="true"] { background: var(--accent); color: #062018; }

  .rt-follow {
    position: absolute; z-index: 4; top: 92px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
    padding: 5px 5px 5px 12px; border-radius: 999px; background: var(--accent); color: #062018; font: 700 13px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 14px 30px -14px rgba(56, 225, 168, .8); animation: rt-pop .35s var(--spring);
  }
  .rt-follow > span { display: inline-flex; align-items: center; gap: 7px; }
  .rt-follow .rt-ic { width: 16px; height: 16px; animation: rt-spin 4s linear infinite; }
  @keyframes rt-spin { to { transform: rotate(360deg); } }
  .rt-follow button { height: 28px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer; background: #062018; color: var(--accent); font: 700 12px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }

  /* ---------------------------------------------------------------- vehicle card */
  .rt-card {
    position: absolute; z-index: 7; top: 96px; right: 70px; width: 356px; max-height: calc(100% - 110px); overflow-y: auto; overscroll-behavior: contain;
    padding: 14px 16px 16px; border-radius: 18px; background: rgba(15, 25, 22, .95); border: 1px solid var(--line-2);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    animation: rt-card-in .45s var(--spring); scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent;
  }
  @keyframes rt-card-in { from { opacity: 0; transform: translateX(16px) scale(.98); } }
  .rt-card__head { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
  .rt-card__back { order: 2; margin-left: auto; }
  .rt-card__title { display: grid; gap: 6px; justify-items: start; }
  .rt-card__title h2 { margin: 0; font: 700 30px/1 var(--mono); letter-spacing: -.04em; color: var(--ink); }
  .rt-card__title p { margin: 0; font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
  .rt-card__driver { display: flex; align-items: center; gap: 11px; padding: 10px 6px 10px 10px; margin-bottom: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
  .rt-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #1f3b33, #12241f); color: var(--accent); font: 700 13px/1 var(--cond); letter-spacing: .06em; box-shadow: inset 0 0 0 1px rgba(56, 225, 168, .3); }
  .rt-card__driver > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
  .rt-card__driver strong { font-size: 14.5px; font-weight: 600; }
  .rt-card__driver span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(255, 107, 87, .1); border: 1px solid rgba(255, 107, 87, .4); color: #ffb3a8; animation: rt-pop .35s var(--ease); }
  .rt-alert .rt-ic { color: var(--s-late); margin-top: 1px; }
  .rt-alert p { margin: 0; font-size: 13px; line-height: 1.4; }
  .rt-alert b { color: #fff; font-weight: 600; }
  .rt-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
  .rt-metrics > div { padding: 9px 9px 10px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
  .rt-metrics dt { font: 600 10.5px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; white-space: nowrap; }
  .rt-metrics dd { margin: 0; font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
  .rt-metrics b { font: 600 17px/1 var(--mono); color: var(--ink); letter-spacing: -.03em; }
  .rt-meter { display: block; height: 3px; margin-top: 7px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
  .rt-meter i { display: block; height: 100%; width: 50%; background: var(--accent); transition: width .5s var(--ease); }
  .rt-card__eta { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 3px; padding: 12px; margin-bottom: 14px; border-radius: 12px; background: color-mix(in srgb, var(--sc, var(--accent)) 10%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--sc, var(--accent)) 35%, transparent); }
  .rt-card__eta span { font: 600 10.5px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .rt-card__eta strong { grid-column: 1; font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rt-card__eta time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 600 24px/1 var(--mono); letter-spacing: -.04em; color: var(--sc, var(--accent)); font-variant-numeric: tabular-nums; }
  .rt-card__h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font: 700 12px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .rt-card__h span { font: 500 11.5px/1 var(--mono); letter-spacing: 0; text-transform: none; }
  .rt-tl { list-style: none; margin: 0 0 14px; padding: 0; }
  .rt-tl li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0 9px; }
  .rt-tl li::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: -6px; width: 2px; background: var(--line-2); }
  .rt-tl li:last-child::before { display: none; }
  .rt-tl li.is-done::before { background: color-mix(in srgb, var(--sc, var(--accent)) 60%, transparent); }
  .rt-tl__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); font: 700 10px/1 var(--mono); color: var(--ink-3); }
  .rt-tl li.is-done .rt-tl__dot { background: var(--sc, var(--accent)); border-color: transparent; color: #062018; }
  .rt-tl li.is-done .rt-tl__dot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .rt-tl li.is-next .rt-tl__dot { border-color: var(--sc, var(--accent)); color: var(--sc, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc, var(--accent)) 18%, transparent); }
  .rt-tl li.is-hub .rt-tl__dot { border-style: dashed; }
  .rt-tl__main { display: grid; gap: 2px; min-width: 0; }
  .rt-tl__main strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-tl li.is-done .rt-tl__main strong { color: var(--ink-2); font-weight: 500; }
  .rt-tl__main span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-tl__time { display: grid; justify-items: end; gap: 3px; font: 600 12.5px/1 var(--mono); color: var(--ink); white-space: nowrap; }
  .rt-tl__time small { font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
  .rt-tl li.is-late .rt-tl__time, .rt-tl li.is-late .rt-tl__time small { color: var(--s-late); }
  .rt-tl li.is-done .rt-tl__time { color: var(--ink-3); font-weight: 500; }
  .rt-card__foot { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 12px 16px 16px; background: linear-gradient(to bottom, rgba(15, 25, 22, 0), rgba(15, 25, 22, .98) 30%); }
  .rt-follow-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 44px; border-radius: 12px; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(56, 225, 168, .1); color: var(--accent);
    font: 700 14px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, transform .15s;
  }
  .rt-follow-btn:hover { background: rgba(56, 225, 168, .18); }
  .rt-follow-btn:active { transform: scale(.98); }
  .rt-follow-btn[aria-pressed="true"] { background: var(--accent); color: #062018; }

  /* toasts */
  .rt-toasts { position: absolute; z-index: 9; top: 96px; left: calc(var(--panel-w) + (100% - var(--panel-w)) / 2); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(440px, calc(100% - var(--panel-w) - 32px)); }
  .rt-toast {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 14px; pointer-events: auto; cursor: pointer; text-align: left;
    background: rgba(15, 25, 22, .96); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); color: var(--ink);
    box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    animation: rt-toast-in .5s var(--spring);
  }
  .rt-toast__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; background: color-mix(in srgb, var(--sc) 18%, transparent); color: var(--sc); }
  .rt-toast__ic .rt-ic { width: 16px; height: 16px; stroke-width: 2.2; }
  .rt-toast__txt { display: block; min-width: 0; }
  .rt-toast strong { display: block; font: 700 12px/1.1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--sc); margin-bottom: 3px; }
  .rt-toast__txt > span { display: block; font-size: 13px; color: var(--ink-2); }
  .rt-toast__txt b { color: var(--ink); font-weight: 600; }
  .rt-toast.is-out { animation: rt-toast-out .35s var(--ease) forwards; }
  @keyframes rt-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
  @keyframes rt-toast-out { to { opacity: 0; transform: translateY(-6px); } }

  /* ---------------------------------------------------------------- mobile: full map + bottom sheet */
  @media (max-width: 899px) {
    .rotta { display: block; min-height: 540px; --sheet-peek: 42%; --sheet-h: var(--sheet-peek); }
    .rotta[data-sheet="full"] { --sheet-h: calc(100% - 96px); }
    .rt-mapwrap { position: absolute; inset: 0; }
    .rt-panel {
      position: absolute; left: 0; right: 0; bottom: 0; height: var(--sheet-h); border-right: 0; border-radius: 22px 22px 0 0;
      border-top: 1px solid var(--line-2); box-shadow: 0 -24px 50px -24px rgba(0, 0, 0, .85); transition: height .5s var(--spring);
    }
    .rt-panel.is-dragging { transition: none; }
    .rt-grip { display: grid; place-items: center; flex: none; width: 100%; height: 20px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; }
    .rt-grip i { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); }
    .rt-head { padding: 4px 16px 10px; }
    .rt-logo { width: 32px; height: 32px; }
    .rt-brand strong { font-size: 17px; }
    .rt-tabs button { height: 40px; }
    .rt-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 14px 8px; }
    .rt-filters::-webkit-scrollbar { display: none; }
    .rt-filter { flex: none; }
    .rt-search { margin: 0 14px 8px; }
    .rt-kpis {
      top: 10px; left: 0; right: 58px; display: flex; gap: 6px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; pointer-events: auto;
      -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    }
    .rt-kpis::-webkit-scrollbar { display: none; }
    .rt-kpis::after { content: ""; flex: none; width: 18px; }
    .rt-kpi { flex: none; display: grid; grid-template-columns: auto; padding: 8px 11px; row-gap: 5px; border-radius: 12px; }
    .rt-kpi .rt-ic { display: none; }
    .rt-kpi__label { font-size: 10px; }
    .rt-kpi__val { font-size: 16px; }
    .rt-ctl { top: 10px; right: 10px; }
    .rt-btn { width: 40px; height: 40px; }
    .rt-layers { top: 10px; right: 58px; }
    .rt-legend { display: none; }
    .rt-sim { bottom: calc(var(--sheet-peek) + 10px); right: 10px; transition: opacity .3s; }
    .rotta[data-sheet="full"] .rt-sim, .rotta.has-card .rt-sim { opacity: 0; pointer-events: none; }
    .rt-follow { top: 64px; }
    .rt-toasts { top: 62px; left: 50%; width: calc(100% - 20px); }
    .rt-card {
      top: auto; right: 0; left: 0; bottom: 0; width: auto; max-height: 76%; border-radius: 22px 22px 0 0; padding-top: 10px;
      animation: rt-sheet-in .5s var(--spring); border-bottom: 0;
    }
    @keyframes rt-sheet-in { from { transform: translateY(40%); opacity: .3; } }
    .rt-card__foot { bottom: -16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .rt-metrics b { font-size: 15px; }
  }
  @media (max-width: 899px) and (max-height: 700px) { .rotta { --sheet-peek: 46%; } }

  @media (prefers-reduced-motion: reduce) {
    .rotta *, .rotta *::before, .rotta *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}
