/* Geist: the font nevoq05.id uses (one variable file, all weights) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/vendor/geist/geist.woff2) format("woff2"); }
:root {
  --bg: #ffffff; --bg2: #eef3f8; --fg: #0b1f33; --muted: #44546a; --line: #d0d9e4;
  --brand: #0c457f; --brand-fg: #ffffff; --brand-soft: #e8f2fc; --warn-bg: #fff4d6; --warn-fg: #6b4a00;
  --danger: #b3261e; --shadow: 0 6px 24px rgba(0,0,0,.18);
  --sheet-peek: min(40dvh, 360px); --sheet-full: 84dvh; --panel-w: 392px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #0b2540; --bg2: #11304f; --fg: #eaf2fa; --muted: #9fb1c6; --line: #28496d;
    --brand: #8cc8f5; --brand-fg: #06182b; --brand-soft: #1d3c59; --warn-bg: #3a2f10; --warn-fg: #f3d58a; --danger: #ff8a80; --shadow: 0 6px 24px rgba(0,0,0,.6); 
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 15px/1.45 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); overflow: hidden; -webkit-text-size-adjust: 100%; }
#map { position: fixed; inset: 0; z-index: 0; background: var(--bg2); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* panel: bottom sheet on mobile, side card on desktop */
#panel { position: fixed; z-index: 500; left: 0; right: 0; bottom: 0; height: var(--sheet-peek); background: var(--bg);
  border-radius: 18px 18px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom); transition: height .22s ease, transform .22s ease, visibility 0s; }
#panel.collapsed { transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
#panel[data-state="full"] { height: var(--sheet-full); }
#grab { border: 0; background: none; height: 26px; flex: none; display: grid; place-items: center; }
#grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.tabs { display: flex; gap: 6px; padding: 0 12px 8px; flex: none; }
.tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: var(--bg2); font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-fg); } /* solid, like the active tab on nevoq05.id */
.views { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 16px; -webkit-overflow-scrolling: touch; }
@media (min-width: 761px), (min-width: 600px) and (min-aspect-ratio: 4/5) {
  #panel { top: 12px; left: 12px; bottom: 12px; right: auto; width: var(--panel-w); height: auto !important; border-radius: 16px; padding-bottom: 0; }
  #grab { display: none; }
  .tabs { padding-top: 12px; }
  #panel.collapsed { transform: translateX(calc(-100% - 24px)); }
  .fab { top: 12px; left: 12px; }
}

/* search */
.search { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 48px; }
.search svg, .icon-btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; min-height: 46px; font-size: 16px; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.btn { min-height: 44px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-fg); padding: 0 16px; font-weight: 600; }
.btn.ghost { background: none; color: var(--brand); margin-top: 8px; }
.btn.block { width: 100%; }
.btn.secondary { background: var(--bg2); color: var(--fg); border-color: var(--line); }

/* lists */
.list { list-style: none; margin: 8px 0 0; padding: 0; }
.list li > button, .list li > .card { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; min-height: 56px; display: flex; gap: 12px; align-items: flex-start; }
.list li > button:hover { background: var(--bg2); }
.list .t { font-weight: 600; } .list .s { color: var(--muted); font-size: 13px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-top: 2px; line-height: 1; padding-top: 1px; }
.num.plain { background: var(--bg2); color: var(--muted); }
.gap { position: relative; font-size: 12px; color: var(--muted); padding: 6px 4px 2px 44px; } .gap.long { color: var(--danger); font-weight: 600; }
.gap::before { content: ''; position: absolute; left: 17px; top: 0; bottom: 0; border-left: 2px dotted var(--line); } /* timeline: the leg between two stops */
.gap.long::before { border-left-color: var(--danger); }
.gap.end { padding-bottom: 8px; }
.list li > button.list-toggle { justify-content: center; align-items: center; color: var(--brand); font-weight: 600; font-size: 14px; min-height: 48px; }

/* route form */
form#route-form { position: relative; display: grid; row-gap: 12px; margin-bottom: 8px; }
.field { position: relative; display: flex; align-items: center; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0 4px 0 12px; min-height: 48px; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; min-height: 46px; font-size: 16px; text-overflow: ellipsis; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-right: 6px; }
.dot.from { border: 3px solid var(--brand); } .dot.to { background: var(--danger); }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:hover, .icon-btn.on { color: var(--brand); background: var(--brand-soft); }
.swap { position: absolute; right: 54px; top: 54px; z-index: 2; width: 28px; height: 28px; min-height: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 50%; }
.swap svg { width: 15px; height: 15px; transform: rotate(90deg); }
.sugg { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sugg li { padding: 10px 10px; border-radius: 8px; min-height: 44px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--brand-soft); }
.sugg .tag { font-size: 11px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.alts { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.alt { flex: none; min-height: 52px; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); text-align: left; }
.alt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.alt b { display: block; } .alt span { font-size: 13px; color: var(--muted); }
.seg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--bg); min-height: 40px; min-width: 52px; }
.seg button[aria-checked="true"] { background: var(--brand); color: var(--brand-fg); font-weight: 600; }
.switch { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.summary { font-weight: 600; margin: 6px 0; }
.banner { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 6px 0; }

/* detail */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
/* pills and badges: line-height 1 (whole-pixel line box) + flex centring, otherwise Geist lands up to 1px high */
.chip { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; display: inline-flex; align-items: center; line-height: 1; min-height: 24px; }
dl.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; font-size: 14px; }
dl.spec dt { color: var(--muted); } dl.spec dd { margin: 0; font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.actions a.btn { display: grid; place-items: center; text-decoration: none; }

/* map bits */
.pin { width: 30px; height: 42px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.pin svg { display: block; }
.pin.from { color: #0c457f; } .pin.to { color: #d93025; }
.hit { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-fg); border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hit.sel { transform: scale(1.3); }
.hit.picked { background: #7e57c2; border-width: 3px; box-shadow: 0 0 0 2px #7e57c2, 0 2px 6px rgba(0,0,0,.4); position: relative; }
.hit.picked::after { content: '✓'; position: absolute; right: -9px; top: -9px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: #7e57c2; font-size: 11px; line-height: 15px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cl { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-fg); font-weight: 700; font-size: 13px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
/* picking mode: MapLibre sets its grab/pointer cursor on the canvas container, so the crosshair has to target that (the extra classes also win over its :active grabbing rule) */
.picking .maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
.maplibregl-map { font: inherit; }
.maplibregl-ctrl-attrib { font-size: 11px; }
#toast { position: fixed; z-index: 900; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); max-width: min(92vw, 420px); background: #0b1f33; color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { #panel { transition: none; } }

.range-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; font-size: 14px; }
.rin { display: inline-flex; align-items: center; gap: 6px; }
.rin input { width: 96px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 0 10px; font-size: 16px; }
.summary.bad { color: var(--danger); } .summary.ok { color: var(--brand); }

.cl.hc { background: #1a5fb4; }
/* route tab: other stations' clusters are grey and smaller, so the route's own markers stand out */
.rv .cl:not(.hc) { width: 28px; height: 28px; background: #8a96a6; color: #fff; font-size: 11px; border-width: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
#hint-https a { color: var(--brand); font-weight: 600; }

.seg button { min-width: 48px; padding: 0 8px; }
#toll button { padding: 0 12px; }

h3.sub { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 0; }
ul.boxes { list-style: none; margin: 4px 0 0; padding: 0; } ul.boxes li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* collapse button + floating reopen button */
#collapse { width: 44px; height: 44px; flex: none; align-self: center; }
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) { #collapse svg { transform: rotate(-90deg); } }
.fab { position: fixed; z-index: 500; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--brand); color: var(--brand-fg); box-shadow: var(--shadow); display: grid; place-items: center; }
.fab svg { width: 24px; height: 24px; fill: currentColor; }
/* map controls: theme / 3D / legend are custom MapLibre controls; MapLibre stacks them top-right with a 10px margin, like Leaflet did */
.theme-ctl { background: var(--bg); border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.theme-ctl button { width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--fg); }
.theme-ctl svg { width: 22px; height: 22px; fill: currentColor; }
#d3-btn { font-size: 13px; font-weight: 700; line-height: 1; }
#d3-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
/* zoom / compass group (NavigationControl): same card as .theme-ctl; its stock 29px buttons and 4px radius are overridden to 40px / 8px */
.maplibregl-ctrl-group { background: var(--bg); border-radius: 8px; }
.maplibregl-ctrl-group:not(:empty) { box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.maplibregl-ctrl-group button:first-child { border-radius: 8px 8px 0 0; } .maplibregl-ctrl-group button:last-child { border-radius: 0 0 8px 8px; } .maplibregl-ctrl-group button:only-child { border-radius: 8px; }
/* the icons are dark SVG background-images: invert for dark mode (hue-rotate keeps the compass needle red) */
:root[data-theme="dark"] .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }

/* station popup anchored on the pin */
.stn-pop .maplibregl-popup-content { background: var(--bg); color: var(--fg); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; min-width: 250px; font: inherit; }
.stn-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--bg); }
/* dark mode: the card and its arrow were the same near-black as the map, so the arrow vanished; use a lighter surface and one outline around card + arrow */
:root[data-theme="dark"] .stn-pop .maplibregl-popup-content { background: var(--bg2); box-shadow: none; }
:root[data-theme="dark"] .stn-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--bg2); }
:root[data-theme="dark"] .stn-pop.maplibregl-popup { filter: drop-shadow(0 0 1px rgba(255,255,255,.7)) drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.stn-pop .maplibregl-popup-close-button { color: var(--muted); top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 8px; font: 24px/36px system-ui; }
.stn h2 { margin: 0 24px 4px 0; font-size: 16px; line-height: 1.3; }
.stn .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 4px; font-weight: 600; }
.stn .badge { display: inline-flex; align-items: center; height: 20px; line-height: 1; color: #fff; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.stn .addr { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.stn .pbox { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; border-top: 1px solid var(--line); }
.stn .pbox li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.stn .pbox .s, .stn .more, .stn .note { color: var(--muted); } .stn .pbox .s { white-space: nowrap; }
.stn .note { margin: 0 0 8px; font-size: 12px; }
.stn .actions { display: flex; gap: 6px; }
.stn .actions .btn { flex: 1; min-height: 40px; display: grid; place-items: center; padding: 0 8px; text-decoration: none; white-space: nowrap; font-size: 14px; }
.stn .actions .btn.ghost { flex: 0 0 auto; margin-top: 0; border-color: var(--line); }

.stn .actions a.btn { color: var(--brand-fg); }

/* popup tabs */
.stn .ptabs { display: flex; gap: 2px; margin: 6px 0 4px; border-bottom: 1px solid var(--line); }
.stn .ptabs button { border: 0; background: none; padding: 6px 8px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.stn .ptabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.stn .pane { height: 150px; overflow-y: auto; overscroll-behavior: contain; font-size: 13px; margin-bottom: 8px; }
.stn .pane .chips { margin: 4px 0; } .stn .pane dl.spec { margin: 2px 0 8px; font-size: 13px; } .stn .pane .banner { font-size: 12px; }
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) { .stn .pane { height: 104px; } }

.stn .pane { height: auto; max-height: 150px; } .stn .pane[data-p="chg"] { height: 150px; }
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) { .stn .pane { max-height: 130px; } .stn .pane[data-p="chg"] { height: 110px; } }
.stn .pane .note { margin: 4px 0 0; }
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) {
  .stn h2 { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stn .meta { font-size: 14px; }
}
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) { .stn .pane { max-height: 150px; } .stn .pane[data-p="chg"] { height: 120px; } }

/* place lookup marker */
.place-dot { width: 18px; height: 18px; border-radius: 50%; background: #2b6cff; border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(43,108,255,.3); }
/* the visitor's own position (Dekat saya): same blue as a searched place, plus a pulsing halo so the two can be told apart */
.me-dot { position: relative; width: 18px; height: 18px; }
.me-dot b { position: absolute; inset: 0; border-radius: 50%; background: #2b6cff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.me-dot i { position: absolute; inset: -6px; border-radius: 50%; background: rgba(43,108,255,.35); animation: me-pulse 2s ease-out infinite; }
@keyframes me-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .me-dot i { animation: none; transform: scale(1.3); opacity: .6; } }
.lg-me { margin: 0 5px; width: 18px !important; height: 18px; }
#places:empty { display: none; }
#places .tag { font-size: 11px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* both tabs share one cell so the popup is as tall as its longer tab (no jump, no empty gap) */
.stn .panes { display: grid; }
.stn .panes > .pane { grid-area: 1 / 1; height: auto !important; max-height: 150px; }
.stn .panes > .pane[hidden] { display: block !important; visibility: hidden; }
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) { .stn .panes > .pane { max-height: 150px; } }

/* route progress */
#route-prog { display: none; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
#route-prog.on { display: block; }
#route-prog .pl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 9px; }
#route-prog .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: rp-pulse 1.1s ease-in-out infinite; flex: none; }
#route-prog .trk { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
#route-prog .trk i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s linear;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #fff), var(--brand)); background-size: 200% 100%; animation: rp-slide 1.2s linear infinite; }
#route-prog.done .trk i { transition: width .25s ease; animation: none; background: var(--brand); }
#route-prog.done .dot { animation: none; }
@keyframes rp-slide { to { background-position: -200% 0; } }
@keyframes rp-pulse { 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { #route-prog .dot, #route-prog .trk i { animation: none; } }

/* toll side */
.hit.opp { background: #7a879a; border-style: dashed; }
.side { font-size: 12px; font-weight: 600; color: var(--muted); }
.side.ok { color: var(--brand); } .side.opp { color: #b3261e; }
:root[data-theme="dark"] .side.opp { color: #ff8a80; }
.chip.warn { border-color: #b3261e; color: #b3261e; } .chip.okc { border-color: var(--brand); color: var(--brand); }

/* backup stations off the toll road */
.hit.bk { background: var(--bg); color: var(--brand); border: 2px solid var(--brand); font-size: 16px; }
.num.bk { background: var(--bg); color: var(--brand); border: 2px solid var(--brand); }
#backup { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
#backup summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
#backup .muted { font-size: 12.5px; margin: 0 0 6px; }

/* info pane: room for the side chip + note before scrolling */
.stn .panes > .pane { max-height: 190px; }
@media (max-width: 599.98px), (max-width: 760px) and (max-aspect-ratio: 799/1000) { .stn .panes > .pane { max-height: 165px; } }

/* advanced filters */
.more { padding: 0 12px 8px; flex: none; font-size: 13px; }
.more > summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.more[open] > summary { color: var(--fg); }
.more .seg button { min-width: 64px; }
.small { font-size: 12px; }
/* stop picker + trip export */
.list li { position: relative; }
#hits li > button { padding-right: 52px; }
#hits li.cur > button, #backup-list li.cur > button { background: rgba(12,69,127,.14); box-shadow: inset 3px 0 0 var(--brand); }
.pick { position: absolute; right: 0; bottom: 0; width: 48px; min-height: 56px; display: grid; place-items: center; cursor: pointer; }
.pick input { width: 22px; height: 22px; accent-color: var(--brand); }
.trip { margin: 6px 0 10px; }
.trip-btns { display: flex; gap: 8px; margin: 6px 0; position: relative; }
/* share menu: "Salin tautan" first (the system share sheet puts Copy at the bottom); floats under the buttons */
.share-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: flex; flex-direction: column; width: min(240px, 100%); padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); }
.share-menu[hidden] { display: none; }
.share-menu button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.share-menu button:hover, .share-menu button:focus-visible { background: var(--bg2); }
.share-menu button:first-child { font-weight: 600; }
.trip-btns .btn { flex: 1; padding: 0 10px; font-size: 14px; white-space: nowrap; }
.trip-btns .btn.ico { flex: 1; padding: 0; display: grid; place-items: center; position: relative; }
.trip-btns .ico svg { width: 20px; height: 20px; fill: currentColor; }
.trip-btns .ico[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 6px); padding: 5px 8px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; }
.trip-btns .ico:first-child::after { left: 0; transform: none; }
.trip-btns .ico:last-of-type::after { left: auto; right: 0; transform: none; }
.trip-btns .ico:hover::after, .trip-btns .ico:focus-visible::after { opacity: 1; }
@media (hover: none) { .trip-btns .ico:hover::after { opacity: 0; } }

/* station links inside notices */
.stn-link { display: inline; font: inherit; font-weight: 600; color: inherit; background: none; border: 0; border-bottom: 1px dashed currentColor; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.stn-link svg { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; margin-right: 2px; }
.stn-link:hover { background: var(--bg2); }

/* status cards (DC gap, battery range) */
#summary-sub { margin: -2px 0 8px; }
.note { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; background: var(--bg2); font-size: 14px; }
.note.ok { border-left-color: var(--brand); } .note.bad { border-left-color: var(--danger); }
.note[hidden] { display: none; }
.n-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.n-title { font-weight: 600; }
.n-val { font-weight: 700; font-size: 16px; white-space: nowrap; }
.note.ok .n-val { color: var(--brand); } .note.bad .n-val { color: var(--danger); }
.n-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; }
.n-rows dt { color: var(--muted); font-size: 12px; padding-top: 2px; } .n-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.n-text { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.note .stn-link { font-weight: 500; text-align: left; }

/* via points (titik singgah) */
#vias { display: contents; }
.dot.via { width: 18px; height: 18px; margin-right: 2px; background: #7e57c2; display: grid; place-items: center; color: #fff; font-size: 11px; line-height: 1; }
.dot.via b { font-weight: 700; }
.pin.via { color: #7e57c2; }
.add-via { justify-self: start; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 14px; padding: 2px 4px; min-height: 32px; cursor: pointer; margin-top: -6px; }
.add-via[hidden] { display: none; }
.via-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.via-row .add-via { margin-top: 0; }
.via-row { margin-top: -6px; }
.clr { width: 36px; height: 36px; position: relative; }
.clr svg { width: 18px; height: 18px; fill: currentColor; }
.clr[hidden] { display: none; }
.clr::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 4px); padding: 5px 8px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; }
.clr:hover::after, .clr:focus-visible::after { opacity: 1; }
@media (hover: none) { .clr:hover::after { opacity: 0; } }
#toast .undo { margin-left: 8px; border: 0; background: none; color: #8cc8f5; font: inherit; font-weight: 700; padding: 4px 2px; cursor: pointer; }
.swap { right: auto; left: 30px; } /* clear of the icons on the right of the via fields */
.swap { top: 43px; width: 26px; height: 26px; }

/* ordered stops: drag handle, remove button */
#stops { display: grid; row-gap: 12px; }
.grip { display: none; width: 22px; height: 40px; margin: 0 -2px 0 -8px; padding: 0; border: 0; background: none; color: var(--muted); cursor: grab; touch-action: none; place-items: center; flex: none; }
.grip svg { width: 18px; height: 18px; fill: currentColor; }
#stops.multi .grip { display: grid; }
.icon-btn.del { display: none; }
#stops.multi .icon-btn.del { display: grid; }
#stops.multi + .swap { left: 56px; }
.field.dragging { position: relative; z-index: 5; box-shadow: var(--shadow); opacity: .94; cursor: grabbing; }
.field.drop-before { box-shadow: 0 -4px 0 -1px var(--brand); } .field.drop-after { box-shadow: 0 4px 0 -1px var(--brand); }
#stops, form#route-form { grid-template-columns: minmax(0, 1fr); } /* four buttons per field must not widen the panel */

/* open/closed indicator on every collapsible: the native triangle disappears once summary is display:flex */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ''; flex: none; width: 6px; height: 6px; margin: 0 10px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details[open] > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }

/* section headings and dividers in the route tab (Opsi folds after a route is found, its summary line shows the values) */
.sec-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sec { border-top: 1px solid var(--line); margin-top: 10px; }
.sec > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sec-sum { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sec[open] .sec-sum { display: none; }
.sec[open] { padding-bottom: 4px; }
.sec-top { border-top: 1px solid var(--line); margin-top: 6px; padding: 12px 0 4px; }
.more.on > summary { color: var(--brand); font-weight: 600; }
.note-ferry { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.note-ferry > summary, .n-more > summary { display: flex; align-items: center; min-height: 32px; cursor: pointer; }
.note-ferry > p { margin: 4px 0 2px; color: var(--muted); }
.n-more { margin-top: 4px; }
.n-more > summary { min-height: 30px; font-size: 12px; color: var(--muted); }
.n-more .n-text { margin: 2px 0 0; }
.car-sel { min-height: 44px; max-width: 58%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); padding: 0 8px; font-size: 15px; }
.rr { width: 36px; height: 36px; }
.rr svg { width: 18px; height: 18px; }
.rr[hidden] { display: none; }
.charge-est { margin: 4px 0 6px; }
/* tolerance slider and proportional option rows */
.tol { margin: 6px 0 4px; font-size: 14px; }
.tol-h { display: flex; justify-content: space-between; align-items: baseline; }
.tol-h b { color: var(--brand); font-size: 14px; }
#corr { width: 100%; margin: 8px 0 2px; accent-color: var(--brand); height: 28px; }
.tol-ticks { position: relative; height: 16px; margin: 0 8px; font-size: 11px; color: var(--muted); } /* 8px = half the thumb, so ticks sit under the stops */
.tol-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tol-ticks span:first-child { transform: translateX(-8px); }
.tol-ticks span:last-child { transform: translateX(calc(-100% + 8px)); }
.range-row > span:first-child, .range-row > label:first-child { font-size: 14px; }
.car-sel { min-height: 40px; max-width: 62%; font-size: 16px; }
.rin input { min-height: 40px; width: 92px; }
@media not all and (pointer: coarse) { .car-sel, .rin input { font-size: 14px; min-height: 32px; border-radius: 8px; } .rin input { width: 80px; } } /* mouse: compact like the text around it; touch screens keep 16px (iOS zooms into smaller inputs) and 40px tap targets */

/* map legend */
.lg-ctl { position: relative; }
.lg-ctl #lg-btn.on { color: var(--brand); }
.lg-panel { position: absolute; right: 0; top: 46px; width: 260px; max-height: calc(100vh - 200px); overflow-y: auto; background: var(--bg); color: var(--fg); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px 12px; font-size: 13px; cursor: auto; }
.lg-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.lg-x { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 8px; }
.lg-panel summary { display: flex; align-items: center; min-height: 36px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; border-top: 1px solid var(--line); }
.lg-panel details[open] > summary { color: var(--fg); }
.lg-panel details > ul { padding-bottom: 6px; }
.lg-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lg-panel li { display: flex; align-items: center; gap: 10px; min-height: 32px; line-height: 1.3; }
.lg-panel li > :first-child { flex: none; width: 28px; display: grid; place-items: center; }
.lg-panel .lg-pin, .lg-panel .lg-rp svg { width: 22px; height: 31px; } .lg-rp { width: 28px; height: 31px; filter: none; }
.lg-hit { margin: 0 3px; width: 22px !important; height: 22px; font-size: 11px; box-shadow: none; }
.lg-hit.picked::after { width: 12px; height: 12px; line-height: 12px; font-size: 9px; right: -6px; top: -6px; }
.lg-cl { margin: 0 2px; width: 24px !important; height: 24px; font-size: 10px; border-width: 2px; box-shadow: none; }
.lg-grey { background: #8a96a6; color: #fff; }
.lg-line { height: 5px; border-radius: 3px; background: #0c457f; box-shadow: 0 0 0 2px #fff; }
.lg-line.lg-alt { background: #7a879a; opacity: .7; box-shadow: none; }
.lg-ring { margin: 0 3px; height: 22px; width: 22px !important; border-radius: 50%; border: 2px dashed #0c457f; background: rgba(12,69,127,.06); }
.lg-route { display: none; } .rv .lg-route { display: block; } .rv .lg-search { display: none; }
.lg-panel .lg-selpin { width: 22px; height: 42px; margin: 2px 3px; }
.lg-hsel { box-shadow: 0 0 0 2px rgba(12,69,127,.25), 0 0 0 4px #0c457f; }
.lg-dot { margin: 0 7px; width: 14px !important; height: 14px; border-width: 2px; box-shadow: 0 0 0 4px rgba(43,108,255,.3); justify-self: center; }
@media (max-width: 640px) { .lg-panel { width: min(260px, calc(100vw - 72px)); max-height: 36vh; } }

/* search tab: venue chips, sort, recent searches, card tools */
.ven-row { margin: 6px 0 2px; font-size: 14px; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vchips button { display: inline-flex; align-items: center; justify-content: center; line-height: 1; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 13px; }
.vchips button[aria-checked="true"], .vchips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); font-weight: 600; }
.more #kw button { min-width: 48px; }
.sort-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -4px 0 4px; font-size: 13px; color: var(--muted); }
.sort-row select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); padding: 0 8px; font-size: 13px; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.recent > span { width: 100%; }
.recent .chip { min-height: 32px; color: var(--fg); cursor: pointer; }
.recent .rc-clear { border: 0; background: none; color: var(--muted); font-size: 13px; min-height: 32px; text-decoration: underline; cursor: pointer; }
.stn .chip.area { cursor: pointer; color: var(--brand); border-color: var(--brand); background: var(--brand-soft); font-weight: 600; min-height: 28px; display: inline-flex; align-items: center; gap: 4px; }
.stn .chip.area svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.stn .area-lbl { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-bottom: -2px; }
.stn .chip.area:hover { border-color: var(--brand); color: var(--brand); }
.stn .tools { display: flex; gap: 4px; margin: -2px 0 2px; }
.stn .tools .icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); }
.stn .tools .icon-btn svg { width: 20px; height: 20px; }
.stn .tools .icon-btn[aria-pressed="true"] { color: #e0a100; }
.stn .tools .icon-btn[aria-pressed="true"] .s-off, .stn .tools .icon-btn[aria-pressed="false"] .s-on { display: none; }
.stn .est { margin: 6px 0 0; font-size: 13px; }
.stn .est.warn { color: #b3261e; }
.fav-i { color: #e0a100; }
/* Google Maps split into parts (more than 9 stops): the menu opens under the Maps button, on the left */
.gmaps-menu { left: 0; right: auto; width: min(320px, 100%); }
.gmaps-menu p { margin: 6px 10px 4px; }
.gmaps-menu a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px; }
.gmaps-menu a:hover, .gmaps-menu a:focus-visible { background: var(--bg2); }
#car-note .calc { display: block; margin-top: 4px; font-weight: 600; color: var(--fg); }
.runit { white-space: nowrap; }
.car-box { position: relative; flex: 0 1 62%; min-width: 0; }
.car-box .car-sel { width: 100%; max-width: none; padding: 0 10px; }
.car-list { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; width: max(100%, 260px); max-height: min(50vh, 340px); overflow-y: auto; margin: 0; padding: 0 0 4px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.car-list[hidden] { display: none; }
.car-list li { padding: 9px 12px; font-size: 14px; cursor: pointer; }
.car-list li.cl-h { position: sticky; top: 0; z-index: 1; padding: 7px 12px; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); cursor: default; } /* brand band stays on top while its models scroll */
.car-list li.cl-none { color: var(--muted); border-bottom: 1px solid var(--line); }
.car-list li[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.car-list li.on, .car-list li[data-i]:hover { background: var(--bg2); }
/* side panel on a near-square screen narrower than a laptop (Galaxy Z Fold inner screen held upright): slimmer card so the map keeps room */
@media (min-width: 600px) and (max-width: 760px) and (min-aspect-ratio: 4/5) { :root { --panel-w: 320px; } }
/* short phone screens (Z Fold 8 cover screen, landscape phones): a taller peek and a slimmer header, so results show below the tabs */
@media (max-height: 640px) and (max-width: 599.98px), (max-height: 640px) and (max-width: 760px) and (max-aspect-ratio: 799/1000) {
  :root { --sheet-peek: 50dvh; --sheet-full: 90dvh; }
  #grab { height: 16px; }
  .tabs { padding-bottom: 4px; }
  .tabs button { min-height: 38px; }
  .more > summary { min-height: 26px; }
  .more { padding-bottom: 2px; }
}
.lg-detour { background: repeating-linear-gradient(90deg, #e8590c 0 6px, transparent 6px 10px) !important; }

/* ---- route panel, "plan first" (2026-11-29). Roll back: ~/revert-spklu-route.sh on .251, git tag v-route-old ---- */
#v-route.routed:not(.editing) #route-form { display: none; }
.route-head { display: flex; align-items: center; gap: 8px; padding: 6px 0 4px; }
.rh-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rh-txt b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { border-color: var(--brand); }
.pill.main { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 8px; } /* wraps instead of a hidden sideways scroll (a mouse cannot swipe it) */
/* settings dialog: a bottom sheet on phones, a centred card on wide screens */
.opts-dlg { width: 100%; max-width: 480px; max-height: 92dvh; margin: auto auto 0; padding: 8px 16px 16px; border: 0; border-radius: 18px 18px 0 0; background: var(--bg); color: var(--fg); box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
.opts-dlg::backdrop { background: rgba(0, 0, 0, .45); }
@media (min-width: 761px), (min-width: 600px) and (min-aspect-ratio: 4/5) { .opts-dlg { margin: auto; border-radius: 16px; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -8px; background: var(--bg); z-index: 2; padding: 6px 0; }
.dlg-head b { font-size: 18px; }
.dlg-head .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dlg-sec { margin: 12px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#opts-done { width: 100%; margin-top: 14px; min-height: 48px; font-size: 16px; }
/* results */
.alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 2px 0 8px; }
.alts[hidden] { display: none; }
.alt { min-height: 48px; padding: 6px 10px; min-width: 0; }
.alt b, .alt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt b { font-size: 14px; }
.plan-card { background: var(--bg2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin: 2px 0 8px; }
.pc-total { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.pc-total b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; font-size: 14px; }
.pc-stats dt { font-size: 12px; color: var(--muted); }
.pc-stats dd { margin: 0; font-weight: 700; }
.lnk { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chips:empty { display: none; }
.st { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 600; }
.st svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st.ok { background: var(--brand-soft); color: var(--brand); }
.st.bad { background: #fde7e5; color: #8c1d17; }
.st.warn { background: var(--warn-bg); color: var(--warn-fg); }
.st.info { background: #e3ecf8; color: #23446e; }
.st.plain { background: var(--bg); color: var(--fg); border-color: var(--line); }
.st[aria-expanded="true"] { border-color: currentColor; }
:root[data-theme="dark"] .st.bad { background: #4a1c19; color: #ffb4ab; } :root[data-theme="dark"] .st.info { background: #1d2c40; color: #a9c7f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st.bad { background: #4a1c19; color: #ffb4ab; } :root:not([data-theme="light"]) .st.info { background: #1d2c40; color: #a9c7f0; } }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 2px; }
.plan-h h3 { margin: 0; font-size: 16px; }
.chg { margin-left: auto; padding-left: 8px; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.chg b { display: block; font-size: 14px; color: var(--fg); }
.chg.slow b { color: var(--warn-fg); }
.list li.fer, .list li.ends { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-start; padding: 6px 4px 8px; border-bottom: 1px solid var(--line); }
.list li.fer .num { background: #e3ecf8; color: #23446e; font-size: 15px; }
.list li.ends .num { background: var(--fg); color: var(--bg); }
.list li.ends .gap { flex-basis: 100%; margin: -6px -4px 4px; }
.list li .t { font-weight: 600; }
.foot-notes { margin-top: 8px; }
.foot-notes .banner { font-size: 12px; }
.trip-bar { position: sticky; bottom: -16px; z-index: 5; margin: 8px -12px -16px; padding: 8px 12px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.trip-bar .trip-btns { margin: 0; }
.trip-bar .btn.gm { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 15px; }
.trip-bar .btn.gm svg { width: 20px; height: 20px; fill: currentColor; }
.trip-bar .btn.ico { flex: 0 0 52px; min-height: 48px; }
.trip-bar .share-menu { top: auto; bottom: calc(100% + 6px); }
.vchips button small { font-size: 11px; opacity: .7; margin-left: 2px; }
.vchips button.more { border-style: dashed; color: var(--brand); font-weight: 600; }
.op-dlg { display: none; height: 85dvh; padding-bottom: 0; flex-direction: column; overflow: hidden; }
.op-dlg[open] { display: flex; }
.op-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; margin-top: 4px; }
.op-row { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; }
.op-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.op-row span { flex: 1; }
.op-row small { color: var(--muted); font-size: 12px; }
/* mouse: compact like the other filter rows; touch keeps 44px rows, 15px text and a 16px search box (iOS zooms into smaller inputs) */
@media not all and (pointer: coarse) { .op-row { min-height: 36px; } .op-row input { width: 16px; height: 16px; } .op-dlg .search { min-height: 38px; } .op-dlg .search input { min-height: 36px; font-size: 14px; } .op-dlg .search svg { width: 18px; height: 18px; } .op-foot .btn { min-height: 38px; font-size: 14px; } }
@media (pointer: coarse) { .op-row { font-size: 15px; } }
.op-foot { display: flex; gap: 8px; padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.op-foot .btn:last-child { flex: 1; }

/* One scale for the panel (2026-12-02, owner: sizes were uneven). Tabs 15px/600, 44px. Every other control
   (segmented choices, location/operator chips, route option pills, the ghost buttons under the search field,
   "+ Tambah tujuan") 14px/600, 40px high (the text link 36px). Labels 14px/400 on every pointer. Status line 13px.
   Inputs stay 16px on touch (iOS zooms into smaller ones). */
.seg button, .vchips button, .pill, .btn.ghost, .add-via { font-size: 14px; font-weight: 600; }
.seg button, .vchips button, .pill, .btn.ghost { min-height: 40px; }
.vchips button, .pill { padding: 0 14px; }
.btn.ghost { border-radius: 10px; padding: 0 14px; }
.add-via { min-height: 36px; }
.more > summary { font-size: 14px; }
#search-info { font-size: 13px; }

/* guided tour: dimmed page with a hole around the control being explained */
.tour-block { position: fixed; inset: 0; z-index: 1000; }
.tour.dim .tour-block { background: rgba(0, 0, 0, .55); }
.tour-hole { position: fixed; z-index: 1001; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); pointer-events: none; transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
.tour-card { position: fixed; z-index: 1002; background: var(--bg); color: var(--fg); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; }
.tour-card b { display: block; font-size: 15px; margin: 2px 0 4px; }
.tour-card .tour-t { margin: 0 0 12px; line-height: 1.45; }
.tour-card .tour-t b { display: inline; font-size: inherit; margin: 0; }
.tour-n { margin: 0; }
.tour-btns { display: flex; align-items: center; gap: 8px; }
.tour-btns span { flex: 1; }
.tour-skip { border: 0; background: none; color: var(--muted); font-weight: 600; min-height: 40px; padding: 0 4px; }
.tour-btns .btn { min-height: 40px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }
