/* AjonTec Go - shared UI kit. Signature: commercial number-plate chips + route line. */
:root {
  color-scheme: light;
  --asphalt: #1C2630; --asphalt-2: #26323D; --plate: #F6C21C; --plate-ink: #15191C;
  --route: #0E7C86; --route-ink: #FFFFFF; --go: #2F9E5B; --stop: #D2463F; --amber: #D9821A;
  --bg: #F3F5F2; --card: #FFFFFF; --ink: #17202A; --ink-2: #56636F; --line: #DFE4E1; --soft: #EEF2EF;
  --radius: 10px; --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(23, 32, 42, .04), 0 6px 20px -12px rgba(23, 32, 42, .25);
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sign: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #10161B; --card: #172028; --ink: #E6EBEE; --ink-2: #9AA8B3; --line: #26323D; --soft: #1C2731; --route: #3BB3BD; --shadow: 0 6px 24px -14px rgba(0,0,0,.8); } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #10161B; --card: #172028; --ink: #E6EBEE; --ink-2: #9AA8B3; --line: #26323D; --soft: #1C2731; --route: #3BB3BD; --shadow: 0 6px 24px -14px rgba(0,0,0,.8); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--route); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font: 600 1.9rem/1.1 var(--f-sign); letter-spacing: .01em; }
h2 { font: 600 1.35rem/1.15 var(--f-sign); }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: .4rem 0; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* layout */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.rail { background: var(--asphalt); color: #D8E0E6; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.rail .logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; }
.rail .logo b { font: 700 1.25rem/1 var(--f-sign); letter-spacing: .02em; }
.rail .logo small { display: block; color: #9FB0BC; font-size: .72rem; margin-top: 2px; }
.rail a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: #C7D2DA; font-weight: 600; font-size: .93rem; }
.rail a:hover { background: var(--asphalt-2); color: #fff; text-decoration: none; }
.rail a.on { background: var(--plate); color: var(--plate-ink); }
.rail a .n { margin-left: auto; background: var(--stop); color: #fff; font-size: .72rem; padding: 0 7px; border-radius: 10px; }
.rail .grow { flex: 1; }
.rail .who { border-top: 1px solid var(--asphalt-2); padding: 12px 10px 0; font-size: .85rem; color: #9FB0BC; }
svg.i { width: 20px; height: 20px; flex: none; }
.main { padding: 24px clamp(14px, 3vw, 36px) 40px; min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.top .sub { color: var(--ink-2); font-size: .9rem; width: 100%; margin-top: -6px; }
.top .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mbar, .tabbar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: var(--asphalt); color: #fff; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .mbar b { font: 700 1.15rem/1 var(--f-sign); }
  .mbar .sp { flex: 1; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; color: var(--ink-2); font-size: .66rem; font-weight: 700; min-width: 0; }
  .tabbar a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { color: var(--asphalt); background: var(--plate); border-radius: 12px; padding: 2px 10px; width: 42px; }
  :root[data-theme="dark"] .tabbar a.on svg { color: var(--plate-ink); }
  .tabbar a:hover { text-decoration: none; }
  .main { padding: 16px 14px calc(84px + var(--safe-b)); }
  /* the credit line comes after the page: it gets the space above the bottom menu instead of the page */
  .main:has(+ .credit) { padding-bottom: 8px; }
  .app .credit { padding-bottom: calc(70px + var(--safe-b)); }
  /* a box brought into view (typing, errors) is never left under the top bar or the bottom menu */
  html { scroll-padding-top: calc(64px + var(--safe-t)); scroll-padding-bottom: calc(70px + var(--safe-b)); }
  h1 { font-size: 1.6rem; }
}
/* phone menu: drawer from the right */
.sheet { position: fixed; inset: 0; background: rgba(10, 15, 20, 0); z-index: 60; display: flex; justify-content: flex-end; transition: background .2s ease; }
.sheet.in { background: rgba(10, 15, 20, .5); }
.sheet .panel { background: var(--asphalt); width: min(86vw, 340px); height: 100%; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(0, 0, 0, .3); transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top, 0px); }
.sheet.in .panel { transform: none; }
.sheet .ph { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--asphalt-2); color: #fff; }
.sheet .ph b { display: block; font: 700 1.1rem/1.1 var(--f-sign); }
.sheet .ph small { display: block; color: #9FB0BC; font-size: .78rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.sheet .pl { flex: 1; overflow-y: auto; padding: 6px 10px; overscroll-behavior: contain; }
.sheet .pf { border-top: 1px solid var(--asphalt-2); padding: 8px 10px calc(10px + var(--safe-b)); }
.sheet .panel a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; color: #D8E0E6; border-radius: 10px; font-weight: 600; margin: 1px 0; }
.sheet .panel a:active { background: var(--asphalt-2); }
.sheet .panel a.on { background: var(--plate); color: var(--plate-ink); }
.sheet .panel a .n { margin-left: auto; background: var(--stop); color: #fff; font-size: .72rem; padding: 0 7px; border-radius: 10px; }
.mbar .mburger { margin-right: -6px; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet .panel { transition: none; } }

/* surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 14px; }
.card h3 { margin-bottom: 10px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .split.side-first > :last-child { order: -1; } }
.btn.wrap { white-space: normal; flex-wrap: wrap; line-height: 1.25; text-align: center; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nw { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.muted, .hint { color: var(--ink-2); }
.hint { font-size: .85rem; }
.small { font-size: .82rem; }
.mono { font-variant-numeric: tabular-nums; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.empty { text-align: center; padding: 34px 16px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* stat tiles: big condensed numerals like a signboard */
.stat { padding: 14px 16px; }
.stat .k { color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.stat .v { font: 600 2rem/1.05 var(--f-sign); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.stat.dark { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.stat.dark .k, .stat.dark .d { color: #A9B8C3; }
.stat.dark .v { color: var(--plate); }

/* the plate chip */
.plate { display: inline-flex; align-items: center; gap: 6px; background: var(--plate); color: var(--plate-ink); font: 700 .86rem/1 var(--f-sign); letter-spacing: .06em; padding: 4px 8px 3px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--plate-ink); white-space: nowrap; text-transform: uppercase; }
.plate.w { background: #fff; color: #111; }
.plate.lg { font-size: 1.05rem; padding: 6px 10px 5px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.go { background: rgba(47, 158, 91, .13); color: var(--go); }
.pill.stop { background: rgba(210, 70, 63, .12); color: var(--stop); }
.pill.amber { background: rgba(217, 130, 26, .14); color: var(--amber); }
.pill.route { background: rgba(14, 124, 134, .12); color: var(--route); }
.pill.live::before { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* route line: pickup ring → dashed road → drop pin */
.route { position: relative; padding-left: 26px; }
.route .stop { position: relative; padding: 2px 0 10px; }
.route .stop::before { content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--route); background: var(--card); }
.route .stop.drop::before { background: var(--plate-ink); border-color: var(--plate-ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 13px; height: 13px; }
:root[data-theme="dark"] .route .stop.drop::before { background: var(--plate); border-color: var(--plate); }
.route .stop + .stop { padding-bottom: 0; }
.route::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 18px; border-left: 2px dashed var(--line); }
/* a status pill with the "route" colour is not a route timeline (its dot stays in the middle) */
.pill.route { position: static; padding: 3px 10px; }
.pill.route::before { position: static; border-left: 0; top: auto; bottom: auto; left: auto; }
.route .t { font-weight: 700; }
.route .s { font-size: .86rem; color: var(--ink-2); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 .9rem/1 var(--f-ui); padding: 10px 14px; border-radius: 9px; cursor: pointer; min-height: 40px; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.btn.primary:hover { background: var(--asphalt-2); }
:root[data-theme="dark"] .btn.primary { background: var(--plate); color: var(--plate-ink); border-color: var(--plate); }
.btn.sign { background: var(--plate); color: var(--plate-ink); border-color: var(--plate-ink); }
.btn.danger { color: var(--stop); border-color: rgba(210, 70, 63, .4); }
.btn.go { background: var(--go); border-color: var(--go); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 32px; padding: 6px 10px; font-size: .82rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: 500 .95rem var(--f-ui); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; min-height: 42px; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--route); box-shadow: 0 0 0 3px rgba(14, 124, 134, .15); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--route); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin: 8px 0; font-size: .92rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }
.err { color: var(--stop); font-size: .86rem; font-weight: 600; min-height: 1em; margin-top: 6px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: 700 .84rem var(--f-ui); color: var(--ink-2); cursor: pointer; }
.seg .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); min-width: 110px; }
.chip b { display: block; font-size: .92rem; }
.chip span { font-size: .78rem; color: var(--ink-2); }
.chip.on { border-color: var(--asphalt); box-shadow: inset 0 0 0 1px var(--asphalt); background: var(--soft); }
:root[data-theme="dark"] .chip.on { border-color: var(--plate); box-shadow: inset 0 0 0 1px var(--plate); }

/* tables -> cards on phones */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .78rem; color: var(--ink-2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--soft); }
table.t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) {
  .tw.cards { border: 0; background: transparent; overflow: visible; }
  .tw.cards table, .tw.cards tbody, .tw.cards tr, .tw.cards td { display: block; width: 100%; }
  .tw.cards thead { display: none; }
  .tw.cards tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
  .tw.cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tw.cards td::before { content: attr(data-l); color: var(--ink-2); font-size: .8rem; font-weight: 600; text-align: left; }
  .tw.cards td.n { text-align: right; }
}

/* list items */
.list > .it { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > .it:last-child { border-bottom: 0; }
.list > a.it { color: inherit; }
.list > a.it:hover { text-decoration: none; background: var(--soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.av { width: 44px; height: 44px; border-radius: 12px; background: var(--soft) center/cover no-repeat; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.av.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.3rem; }

/* modal, toast */
.modal { position: fixed; inset: 0; background: rgba(10, 15, 20, .55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .box { background: var(--card); width: min(620px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal .box.wide { width: min(980px, 100%); }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal .mb { padding: 16px; }
@media (max-width: 640px) { .modal { align-items: flex-end; padding: 0; } .modal .box { border-radius: 18px 18px 0 0; max-height: 92vh; max-height: calc(100dvh - 24px - var(--safe-t)); padding-bottom: var(--safe-b); } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); background: var(--asphalt); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 99; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
@media (max-width: 900px) { .toast { bottom: calc(84px + var(--safe-b)); } }
.loading { padding: 40px; text-align: center; color: var(--ink-2); }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 12px 20px; font-size: .9rem; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--route); }
.tl li::after { content: ""; position: absolute; left: 7px; top: 17px; bottom: 0; border-left: 2px solid var(--line); }
.tl li:last-child::after { display: none; }

/* media */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gallery a, .gallery video { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); width: 100%; object-fit: cover; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tag { position: relative; }
/* maps stay under menus, sheets and pop-ups (Leaflet's own layers go up to 1000) */
.leaflet-container { isolation: isolate; z-index: 0; font: inherit; }
.leaflet-control-attribution { font-size: 10px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg:empty { display: none; }
.sugg { max-height: 220px; overflow-y: auto; margin-top: 6px; }
.map { height: 340px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map.tall { height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 380px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; background: var(--route); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--asphalt); }
:root[data-theme="dark"] .bars div:hover { background: var(--plate); }
.bars-x { display: flex; gap: 4px; font-size: .68rem; color: var(--ink-2); }
.bars-x span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }
.kv { display: grid; grid-template-columns: minmax(0, max-content) minmax(min-content, 1fr); gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; }
pre { background: var(--asphalt); color: #E6EDF2; padding: 14px; border-radius: 12px; overflow-x: auto; }
.copy { cursor: pointer; }
.chat { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding: 4px; }
.chat .m { max-width: 80%; padding: 7px 11px; border-radius: 12px; background: var(--soft); font-size: .9rem; }
.chat .m.me { align-self: flex-end; background: var(--asphalt); color: #fff; }
.chat .m small { display: block; opacity: .7; font-size: .7rem; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art { background: var(--asphalt); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 12ch; }
.auth .art .road { position: absolute; left: -10%; right: -10%; bottom: 120px; height: 90px; background: #2B3843; transform: skewY(-6deg); }
.auth .art .road::after { content: ""; position: absolute; left: 0; right: 0; top: 43px; border-top: 4px dashed var(--plate); }
.auth .form { display: flex; align-items: center; justify-content: center; padding: 28px 18px; }
.auth .form > div { width: min(400px, 100%); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; min-height: 100dvh; align-content: start; } .auth .art { padding: 16px 16px 20px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); min-height: 0; gap: 12px; } .auth .art h1 { font-size: 1.45rem; max-width: none; line-height: 1.15; } .auth .art .pitch p, .auth .art .pitch .hint, .auth .art .road { display: none; } .auth .form { align-items: flex-start; padding: 22px 16px 32px; } }
@media print { .rail, .mbar, .tabbar, .noprint, .toast { display: none !important; } .app { display: block; } .main { padding: 0; } .card { box-shadow: none; border: 0; } body { background: #fff; color: #000; } }
.credit { text-align: center; font-size: .78rem; color: var(--ink-2); padding: 18px 0 6px; }
.grid > .card + .card, .split > .card + .card, .row > .card + .card { margin-top: 0; }
.bars div { max-width: 56px; }
.bars { justify-content: flex-start; }
.bars-x span { max-width: 56px; }
.bars-x { justify-content: flex-start; }

.rail .grp { font: 700 .7rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: #7F909C; padding: 14px 12px 4px; }
.sheet .grp { font: 700 .7rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: #7F909C; padding: 10px 12px 2px; }
.rail { gap: 0; }
.rail a { margin: 1px 0; }
.swatch { width: 54px; height: 40px; padding: 2px; border-radius: 8px; }
.ed-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--soft); }
.ed-img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; margin-top: 6px; background: #fff; }

/* ---------- app feel and offline ---------- */
#netbar { white-space: nowrap; position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -160%); z-index: 3000; background: #3A2A10; color: #FFE9B8; border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .3s ease; max-width: calc(100vw - 24px); pointer-events: none; }
#netbar.show { transform: translate(-50%, 0); }
#netbar.ok { background: #14432A; color: #C8F3D8; }
#netbar i { width: 8px; height: 8px; border-radius: 50%; background: #F6C21C; flex: none; animation: blink 1.2s infinite; }
#netbar.ok i { background: #3DDC84; animation: none; }
.askbox { position: fixed; inset: 0; z-index: 4000; background: rgba(10, 14, 18, .5); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadein .15s ease; }
.askbox .in { background: var(--card, #fff); color: var(--ink, #1c2630); border-radius: 18px; padding: 20px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.askbox p { margin: 0 0 14px; font-size: 1rem; line-height: 1.45; }
.askbox input { width: 100%; margin-bottom: 14px; }
.askbox .row { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
html { -webkit-tap-highlight-color: transparent; }
/* inside the GoRide app the phone's status bar and navigation bar are already kept clear by the app itself:
   no second safe-area gap at the top and bottom (Android 15 edge-to-edge reports the insets to the page too) */
html.in-app { --safe-b: 0px; --safe-t: 0px; }
html.in-app .mbar { padding-top: 10px; }
html.in-app #netbar { top: 8px; }
@media (max-width: 860px) { html.in-app .auth .art { padding-top: 16px; } }
html.in-app body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.in-app input, html.in-app textarea, html.in-app [contenteditable], html.in-app .sel, html.in-app .otp, html.in-app code { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html.in-app img { -webkit-user-drag: none; pointer-events: auto; }
html.in-app a, html.in-app button { -webkit-touch-callout: none; }
html.in-app .btn:active, html.in-app .tabbar a:active { transform: scale(.97); }
html.in-app ::-webkit-scrollbar { width: 0; height: 0; }
/* form brought back from an unsaved draft */
.draftbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--line); border-left: 4px solid var(--route); border-radius: 12px; background: var(--soft); font-size: .9rem; }
.draftbar .grow { flex: 1 1 200px; min-width: 0; }

[hidden] { display: none !important; } /* a hidden box stays hidden even when its class sets display */

/* ride booking (one screen: pickup → where to → vehicle → book) */
.rbook { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.rbook .card { margin: 0; }
.rwhere { padding-top: 10px; padding-bottom: 10px; }
.rline { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.rline + .rline { border-top: 1px solid var(--line); }
.rline input[type=search] { border: 0; background: var(--soft); font-size: 1.02rem; padding: 12px 14px; border-radius: 12px; width: 100%; }
.rdot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--soft); }
.rdot.go { background: var(--go); }
.rdot.sign { background: var(--plate); border: 2px solid var(--asphalt); }
.rveh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.rveh.on { border-color: var(--asphalt); box-shadow: 0 0 0 2px var(--plate) inset; }
.rvi { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; }
.rvp { font: 600 1.2rem var(--f-sign); white-space: nowrap; }
.pill.small { font-size: .68rem; padding: 1px 7px; }
.ell { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rgobar { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 8px 0 4px; }
@media (max-width: 900px) { .rgobar { bottom: calc(58px + var(--safe-b)); } }

/* keyboard open on a phone (html.kb, set by kit.js): the bottom menu and bottom bars make room for the keyboard */
@media (max-width: 900px) {
  html.kb .tabbar { display: none; }
  html.kb .rgobar, html.kb .mk-cartbar { position: static !important; } /* while typing they stay in the page, not over the box */
  html.kb .main { padding-bottom: 16px; }
  html.kb .app .credit { display: none; }
  html.kb { scroll-padding-bottom: 12px; }
}

/* support call card (v4.4.0) */
.callcard .okc { color: var(--go); }
.callcard .shutc { color: #B4541A; }
kbd.key { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--plate); color: var(--plate-ink, #15191C); font: 700 .8rem/1 inherit; }
.callline { margin-top: 14px; text-align: center; }
.callline a { font-weight: 700; white-space: nowrap; }
.callline .i { width: 15px; height: 15px; vertical-align: -2px; }

/* OTP log-in on the screen itself (v4.5.6) */
.otpinline { animation: otpin .18s ease-out; }
@keyframes otpin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.otpget .btn.wa { border-color: #25D366; color: #128C7E; }
.otpget .btn.wa .i { color: #25D366; }
/* the invisible reCAPTCHA (Firebase OTP) works without its corner badge; the notice is shown under the log-in form instead */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }
/* customer & business app: the open page in the bottom menu is shown clearly (same red as Shop | Ride | Parcel) */
@media (max-width: 899px) {
  .vapp .tabbar { box-shadow: 0 -6px 18px -12px rgba(23, 32, 42, .35); }
  .vapp .tabbar a { position: relative; padding-top: 8px; transition: color .15s; }
  .vapp .tabbar a.on { color: var(--stop); font-weight: 800; }
  .vapp .tabbar a.on svg { color: #fff; background: var(--stop); border-radius: 12px; padding: 3px 11px; width: 46px; box-shadow: 0 6px 12px -8px var(--stop); }
  :root[data-theme="dark"].vapp .tabbar a.on svg { color: #fff; }
  .vapp .tabbar a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--stop); }
  .vapp .tabbar a:active svg { transform: scale(.92); }
}
.vapp .glog { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 800; }
.vapp .mbar .glog { padding: 6px 10px; min-height: 36px; font-size: .82rem; }
.vapp .mbar .glog svg { width: 16px; height: 16px; }
body.guest .mbar [data-theme-t] { display: none; }
.vapp .mbar { min-width: 0; }
.vapp .mbar > b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vapp .mbar .glog { flex: none; }
@media (max-width: 400px) { .vapp .mbar .glog { padding: 6px 8px; font-size: .76rem; gap: 4px; } .vapp .mbar .glog svg { display: none; } .vapp .mbar { gap: 8px; } }

/* v5.0: cart and favourites at the top, language inside the menu */
.tico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; text-decoration: none; }
.tico:hover { background: rgba(255,255,255,.08); }
.tico .i { width: 22px; height: 22px; }
.tico .n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--stop, #D2463F); color: #fff; font: 700 .68rem/18px var(--f-sign, sans-serif); text-align: center; }
.tico .n:empty { display: none; }
.tico.fav.on .i { fill: #FF6B6B; stroke: #FF6B6B; }
.rail .rtop { display: flex; gap: 6px; padding: 4px 12px 10px; }
.rail .rtop .tico { background: rgba(255,255,255,.06); }
.sheet .plang { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; }
.sheet .plang span { flex: 1; }
.sheet .plang select { max-width: 160px; }
.hrt { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; color: #5B6770; z-index: 2; }
.hrt .i { width: 18px; height: 18px; }
.hrt.on { color: #E5484D; }
.hrt.on .i { fill: #E5484D; }
