/* =========================================================================
   KOMUTA — "Daylight" design system
   Bright, clean, native transit-app feel. Mobile-first.
   Plus Jakarta Sans throughout. Line colors are the accents.
   ========================================================================= */

:root {
  --font: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;

  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --pad: clamp(16px, 5vw, 22px);
  --maxw: 640px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* line palette — vivid, legible on light & dark */
  --l-bogor: #E11D2A;
  --l-cikarang: #1391E0;
  --l-rangkas: #16A34A;
  --l-tangerang: #2E6BD6;
  --l-priuk: #E0277E;
  --l-bst: #6D5AE6;
  --go: #11A861;   /* "soon / catch it" green */
}

/* ---------- LIGHT (default) ---------- */
[data-theme="light"] {
  --bg: #F2F3F6;
  --bg-2: #E9EBF0;
  --surface: #FFFFFF;
  --surface-2: #F4F5F8;
  --surface-3: #ECEEF2;
  --ink: #14161C;
  --ink-2: #59606E;
  --ink-3: #8A91A0;
  --hair: #E7E9EE;
  --primary: #16181F;
  --on-primary: #FFFFFF;
  --go-bg: #E4F6EC;
  --go-ink: #0B7A45;
  --sh-sm: 0 1px 2px rgba(20,22,30,.05), 0 1px 3px rgba(20,22,30,.04);
  --sh-md: 0 4px 14px -4px rgba(20,22,30,.10), 0 2px 6px -3px rgba(20,22,30,.06);
  --sh-lg: 0 16px 40px -12px rgba(20,22,30,.20), 0 4px 12px -6px rgba(20,22,30,.10);
  color-scheme: light;
}

/* ---------- DARK (refined, true-ish black) ---------- */
[data-theme="dark"] {
  --bg: #0B0C0F;
  --bg-2: #121319;
  --surface: #16181E;
  --surface-2: #1E212A;
  --surface-3: #262A34;
  --ink: #F1F3F7;
  --ink-2: #9BA2B1;
  --ink-3: #686F7E;
  --hair: #23262F;
  --primary: #FFFFFF;
  --on-primary: #14161C;
  --go-bg: rgba(43,211,122,.14);
  --go-ink: #34D27E;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 6px 18px -6px rgba(0,0,0,.55);
  --sh-lg: 0 20px 44px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  overflow-x: hidden;
}

/* ============ APP BAR ============ */
.appbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--hair) 70%, transparent); }
.appbar-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-dots { display: inline-flex; gap: 3px; }
.brand-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }

.appbar-right { display: flex; align-items: center; gap: 10px; }
.now-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.nc-time { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.nc-time small { font-weight: 600; color: var(--ink-3); font-size: .82em; }
.nc-meta { font-size: 10.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; display: flex; gap: 5px; }
.nc-meta #clockDate::after { content: " ·"; }

.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.theme-toggle:hover { transform: rotate(-15deg); background: var(--surface-2); }
.theme-toggle:active { transform: scale(.92); }
.ic-sun { display: none; }
[data-theme="dark"] .ic-sun { display: block; }
[data-theme="dark"] .ic-moon { display: none; }

/* ============ APP LAYOUT ============ */
.app { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 56px; }

/* ============ SEARCH ============ */
.search { margin-top: 16px; }
.search-card { position: relative; display: flex; align-items: stretch; gap: 8px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: 6px; }
.route-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-sep { height: 1px; background: var(--hair); margin-left: 46px; }

.combo.sf { position: relative; }
.combo-box { display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; border-radius: var(--r-lg); transition: background .18s; }
.combo-box:focus-within { background: var(--surface-2); }
.sf-dot { width: 15px; height: 15px; flex: none; }
.sf-dot.from { border-radius: 50%; border: 3.5px solid var(--l-cikarang); }
.sf-dot.to { border-radius: 4px; background: var(--l-bogor); }
.sf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sf-label { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; text-transform: uppercase; }
.sf-label .opt { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-3); opacity: .8; }
.combo-input { width: 100%; min-width: 0; background: none; border: none; outline: none; color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 600; padding: 0; }
.combo-input::placeholder { color: var(--ink-3); font-weight: 500; }
.combo-clear { display: none; border: none; background: var(--surface-3); color: var(--ink-2); width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
.combo-box.filled .combo-clear { display: grid; place-items: center; }
.combo-clear:hover { background: var(--hair); color: var(--ink); }

.swap { flex: none; align-self: center; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), color .2s, border-color .2s; }
.swap:hover { color: var(--l-cikarang); border-color: color-mix(in srgb, var(--l-cikarang) 50%, var(--hair)); }
.swap:active { transform: scale(.9); }
.swap.spin { transform: rotate(180deg); }

/* combo dropdown */
.combo-list { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 46vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--sh-lg); animation: pop .15s var(--ease-out); -webkit-overflow-scrolling: touch; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.combo-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); cursor: pointer; font-size: 15px; }
.combo-opt[aria-selected="true"], .combo-opt:hover { background: var(--surface-2); }
.combo-opt .opt-code { font-weight: 700; font-size: 11px; color: var(--ink-2); background: var(--surface-3); padding: 4px 7px; border-radius: 7px; letter-spacing: .02em; flex: none; min-width: 40px; text-align: center; }
.combo-opt .opt-name { font-weight: 600; flex: 1; min-width: 0; }
.combo-opt .opt-name b { color: var(--l-cikarang); }
.combo-opt .opt-type { font-size: 10px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; }
.combo-empty { padding: 18px; text-align: center; color: var(--ink-2); font-size: 14px; }

/* time row */
.time-row { display: flex; gap: 10px; margin-top: 10px; }
.time-chip { flex: 1; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 14px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.tc-ic { color: var(--ink-3); flex: none; }
.tc-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.time-input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.time-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
[data-theme="dark"] .time-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
.now-btn { flex: none; border: none; background: var(--surface-3); color: var(--ink-2); font-family: var(--font); font-size: 12.5px; font-weight: 700; padding: 9px 12px; border-radius: var(--r-md); cursor: pointer; transition: background .18s, color .18s; }
.now-btn:hover { background: var(--ink); color: var(--surface); }

.btn-primary { flex: none; border: none; border-radius: var(--r-lg); height: 50px; padding: 0 22px; background: var(--primary); color: var(--on-primary); font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: var(--sh-sm); transition: transform .15s var(--ease), opacity .2s; }
.btn-primary:hover { opacity: .92; }
.btn-primary:active { transform: scale(.97); }

/* ============ RESULTS ============ */
.results { margin-top: 22px; }
.toolbar { margin-bottom: 14px; }
.result-summary { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.result-summary b { color: var(--ink); font-weight: 700; }
.result-summary .ar { color: var(--ink-3); margin: 0 2px; }
.result-summary .sum-note { color: var(--ink-3); font-weight: 500; }
.filter-row { display: flex; align-items: center; gap: 8px; }
.filter-row .icon-btn { flex: none; }
.filter-row .filters { flex: 1; min-width: 0; padding-bottom: 0; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color .18s, transform .5s var(--ease); }
.icon-btn:hover { color: var(--ink); }
.icon-btn.spinning { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* line filter chips — horizontal scroll on mobile */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.filters::-webkit-scrollbar { display: none; }
.lchip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 10px; border-radius: var(--r-pill); border: 1.5px solid var(--hair); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; scroll-snap-align: start; transition: all .18s var(--ease); }
.lchip .lc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lc); flex: none; }
.lchip .lc-count { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.lchip[aria-pressed="true"] { color: var(--ink); border-color: var(--lc); background: color-mix(in srgb, var(--lc) 9%, var(--surface)); }
.lchip[aria-pressed="false"] { opacity: .5; }
.lchip:active { transform: scale(.95); }
.lchip-static { cursor: default; }
.lchip-static:active { transform: none; }

/* ============ DEPARTURE LIST ============ */
.list { display: flex; flex-direction: column; gap: 10px; min-height: 180px; }

/* now divider */
.now-divider { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.now-divider .nd-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--go-ink); background: var(--go-bg); padding: 4px 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; }
.now-divider .nd-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); animation: blink 1.5s steps(1) infinite; }
.now-divider .nd-rule { flex: 1; height: 1px; background: var(--hair); }
@keyframes blink { 50% { opacity: .25; } }

/* group head */
.group-head { display: flex; align-items: center; gap: 9px; margin: 16px 2px 2px; }
.group-head:first-child { margin-top: 2px; }
.group-head .gh-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lc); }
.group-head .gh-name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.group-head .gh-count { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.group-head .gh-rule { flex: 1; height: 1px; background: var(--hair); }

/* departure card */
.dep {
  --lc: var(--ink);
  position: relative; display: flex; flex-direction: column; gap: 5px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  padding: 15px 30px 15px 22px; overflow: hidden;
  opacity: 0; transform: translateY(8px); animation: rise .45s var(--ease-out) forwards;
  transition: box-shadow .2s, transform .12s;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.dep:hover { box-shadow: var(--sh-md); }
.dep:active { transform: scale(.99); }
.dep::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--lc); }

.dep-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dep-time { font-size: 26px; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink); }
.cd { flex: none; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd.soon { background: var(--go-bg); color: var(--go-ink); }
.cd.imminent { background: var(--go); color: #fff; animation: pulse 1.3s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--go) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.cd.gone { color: var(--ink-3); }

.dep-dest { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); min-width: 0; }
.dep-dest .arrow { color: var(--lc); font-weight: 800; flex: none; }
.dep-dest .dest-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.dep-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dep-line .dep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); flex: none; }
.dep-line .dep-train { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: var(--r-pill); }
.tag-direct { color: var(--go-ink); background: var(--go-bg); }
.tag-dead { color: var(--ink-3); border: 1px dashed var(--hair); }

.dep-arrival { font-size: 13px; color: var(--ink-2); font-weight: 500; margin-top: 1px; font-variant-numeric: tabular-nums; }
.dep-arrival .arr-time { color: var(--ink); font-weight: 700; }
.dep-arrival .dur { color: var(--ink-3); }

.dep.departed { opacity: .55; }
.dep.departed:hover { opacity: .82; }

/* ============ STATES ============ */
.state { text-align: center; padding: 46px 20px; color: var(--ink-2); animation: rise .45s var(--ease-out) both; }
.state h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 4px 0 8px; }
.state p { margin: 0 auto; max-width: 42ch; font-size: 14.5px; }
.intro-art { color: var(--l-cikarang); margin-bottom: 6px; }
.intro-art svg { max-width: 100%; }
.state.error h2 { color: var(--l-bogor); }
.retry { margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--on-primary); background: var(--primary); border: none; padding: 12px 22px; border-radius: var(--r-pill); cursor: pointer; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.quick-btn { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); padding: 9px 15px; border-radius: var(--r-pill); cursor: pointer; box-shadow: var(--sh-sm); transition: transform .15s var(--ease), color .18s, border-color .18s; }
.quick-btn:hover { color: var(--l-cikarang); border-color: color-mix(in srgb, var(--l-cikarang) 45%, var(--hair)); }
.quick-btn:active { transform: scale(.95); }

/* skeleton */
.skeleton { display: flex; flex-direction: column; gap: 9px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 16px 16px 16px 22px; position: relative; overflow: hidden; }
.skeleton::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--surface-3); }
.sk { background: var(--surface-2); border-radius: 7px; overflow: hidden; position: relative; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 6%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-row { display: flex; justify-content: space-between; }
.sk-time { height: 24px; width: 70px; }
.sk-cd { height: 22px; width: 64px; border-radius: var(--r-pill); }
.sk-dest { height: 18px; width: 52%; }
.sk-line { height: 13px; width: 38%; }

/* ============ FOOTER ============ */
.footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 12px; }
.footer a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--l-cikarang); }
.footer-sub { margin: 6px 0 0; }
.noscript { padding: 18px; text-align: center; background: var(--l-bogor); color: #fff; }

/* ============ TRAIN DETAIL SHEET ============ */
body.no-scroll { overflow: hidden; }
.dep { cursor: pointer; }
.dep::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-50%) rotate(-45deg); opacity: .35; transition: opacity .2s, right .2s; }
.dep:hover::after { opacity: .7; right: 11px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-end; justify-content: center; background: rgba(12,14,20,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s var(--ease-out); }
[data-theme="dark"] .sheet-backdrop { background: rgba(0,0,0,.64); }
.sheet-backdrop:not([hidden]) { display: flex; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: var(--maxw); max-height: 88vh; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-lg); padding: 10px var(--pad) calc(22px + env(safe-area-inset-bottom)); animation: slideup .34s var(--ease-out); }
@keyframes slideup { from { transform: translateY(101%); } }
.sheet-grab { width: 42px; height: 5px; border-radius: 999px; background: var(--hair); margin: 2px auto 14px; flex: none; }
.sheet-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: none; background: var(--surface-2); color: var(--ink-2); cursor: pointer; z-index: 2; transition: background .18s, color .18s; }
.sheet-close:hover { background: var(--surface-3); color: var(--ink); }
.sheet-head { flex: none; padding: 0 44px 14px 2px; border-bottom: 1px solid var(--hair); }
.sheet-id { font-size: 12.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sheet-route { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.15; }
.sheet-route .ar { color: var(--ink-3); font-weight: 700; }
.sheet-line { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: #fff; padding: 4px 11px; border-radius: 999px; letter-spacing: .01em; }
.sheet-body { overflow-y: auto; padding: 14px 2px 2px; -webkit-overflow-scrolling: touch; }
.sheet-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 44px 20px; color: var(--ink-2); font-size: 14px; }
.sheet-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--l-cikarang); animation: spin .7s linear infinite; }
.sheet-loading .retry { margin-top: 2px; }

/* route timeline */
.stop { display: grid; grid-template-columns: 24px 1fr auto; column-gap: 12px; align-items: center; min-height: 44px; }
.stop-rail { position: relative; align-self: stretch; }
.stop-rail::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 4px; background: var(--lc, var(--ink)); border-radius: 4px; }
.stop:first-child .stop-rail::before { top: 50%; }
.stop:last-child .stop-rail::before { bottom: 50%; }
.stop-dot { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3.5px solid var(--lc, var(--ink)); box-sizing: border-box; }
.stop:first-child .stop-dot, .stop:last-child .stop-dot { width: 17px; height: 17px; left: 2px; }
.stop-name { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.stop-time { font-size: 14px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stop.passed .stop-name, .stop.passed .stop-time { color: var(--ink-3); }
.stop.passed .stop-dot { background: var(--lc, var(--ink)); }
.stop.board .stop-name, .stop.alight .stop-name { font-weight: 800; }
.stop .pin { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; color: #fff; text-transform: uppercase; }
.stop.board .pin { background: var(--go); }
.stop.alight .pin { background: var(--l-bogor); }
.stop .transit-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--hair); padding: 2px 8px; border-radius: 999px; }
.stop .transit-line { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; }
.sheet-seg { margin: 6px 0 6px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 460px) {
  .nc-meta #clockDate { display: none; }
  .nc-meta #clockDate::after { content: ""; }
  .dep-time { font-size: 24px; }
  .dep-dest { font-size: 17px; }
  .time-row { flex-wrap: wrap; }
  .btn-primary { flex: 1 1 100%; }
}
@media (min-width: 641px) {
  .dep:hover { transform: translateY(-1px); }
}

/* safe-area insets */
@supports (padding: max(0px)) {
  .appbar-in, .app { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }

:focus-visible { outline: 2px solid var(--l-cikarang); outline-offset: 2px; border-radius: 4px; }
.combo-input:focus-visible, .time-input:focus-visible { outline: none; }
