:root { --ink: #142B25; --muted: #5A6B65; --line: #E3E8E2; --bg: #F4F5F0; --accent: #1F5F4A; --soft: #1F5F4A1A; --warn: #8A5A0E; --btn-line: #D5DDD6; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { color: var(--ink); font-family: 'Onest', system-ui, sans-serif; font-size: 17px; line-height: 1.4; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
#app { position: relative; height: 100dvh; max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.b { font-weight: 600; }
.nw { white-space: nowrap; }

/* list */
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; }
.head { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: 4px; }
.head-row { display: flex; align-items: center; gap: 8px; padding: 0 16px 4px; }
.route-btn { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 0; text-align: left; }
.route-title { min-width: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-day { flex: 0 0 auto; font-size: 15px; color: var(--muted); white-space: nowrap; }
.lang { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 15px; font-weight: 600; white-space: nowrap; }
.extras { overflow: hidden; transition: height 180ms ease-out; }
.modes { display: flex; gap: 2px; margin: 0 16px 8px; background: #E6EAE4; border-radius: 12px; padding: 3px; }
.home .modes { margin: 0; }
.modes button { flex: 1; height: 44px; border: 0; border-radius: 9px; background: transparent; font-size: 17px; font-weight: 500; color: var(--muted); }
.modes button[aria-pressed=true] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 43, 37, .14); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.day { flex: 0 0 auto; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 16px; font-weight: 500; white-space: nowrap; }
.day.empty { color: var(--muted); }
.day[aria-pressed=true] { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.need { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 16px 8px; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px 8px; }
.chip { height: 44px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 17px; font-weight: 500; }
.chip[aria-pressed=true] { border-color: var(--accent); background: var(--soft); font-weight: 600; }
.parts { display: flex; align-items: stretch; gap: 4px; padding: 0 12px; }
.part { flex: 1 1 auto; height: 44px; padding: 3px 4px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.part[aria-current=location] { border-bottom-color: var(--accent); font-weight: 600; }
.part[aria-disabled=true] { color: #768480; font-weight: 400; cursor: default; }
.list { padding: 4px 16px 40px; display: flex; flex-direction: column; gap: 10px; }
.group { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: var(--btn-line); margin: 8px 2px 2px; }
.part-title { padding: 4px 2px 0; font-size: 18px; font-weight: 600; line-height: 1.3; }

/* cards */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.card-open { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 16px; background: transparent; }
.card-body { position: relative; min-height: 44px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; pointer-events: none; }
.col { display: flex; flex-direction: column; gap: 2px; }
.rowa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.when { flex: 1; min-width: 0; display: flex; align-items: baseline; }
.when b { font-weight: 600; letter-spacing: -0.3px; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zw { display: inline-block; width: 0; overflow: hidden; font-size: 28px; line-height: 1.15; }
.price { flex: 0 0 auto; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.price b { font-size: 22px; font-weight: 600; line-height: 1.25; }
.price span { font-size: 15px; color: var(--muted); }
.night { font-size: 15px; color: var(--warn); }
.avail { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 17px; line-height: 1.25; }
.car { font-size: 17px; line-height: 1.25; }
.line { font-size: 15px; line-height: 1.4; }
.ago { display: flex; align-items: flex-end; padding-right: 64px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.cargo-head { font-size: 22px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.2; }
.cargo-when { font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--accent); }
.call { position: absolute; right: 12px; bottom: 12px; width: 52px; height: 44px; border: 1px solid var(--btn-line); border-radius: 12px; background: var(--soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-box { margin-top: 20px; padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty-box .t { font-size: 18px; font-weight: 600; line-height: 1.3; }
.btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; }

/* overlays */
.layer { position: absolute; inset: 0; background: var(--bg); }
.home { z-index: 8; overflow-y: auto; }
.home-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
.home-body { padding: 12px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
.fromto { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pick { width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 64px 10px 16px; border: 0; background: transparent; text-align: left; }
.pick + .pick { border-top: 1px solid var(--line); }
.pick small { font-size: 14px; color: var(--muted); }
.pick span { font-size: 19px; font-weight: 600; }
.swap { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid var(--btn-line); border-radius: 12px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cta { height: 54px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; }
.h { font-size: 20px; font-weight: 700; white-space: nowrap; }
.recent { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.recent button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 0; border-bottom: 1px solid #EEF1EC; background: transparent; font-size: 17px; text-align: left; }
.recent button:last-child { border-bottom: 0; }
.recent button span { flex: 1; }
.pop { display: flex; flex-wrap: wrap; gap: 8px; }
.pop button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 500; }
.sheet { position: absolute; inset: 0; z-index: 20; }
.shade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(20, 43, 37, .45); }
.panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--btn-line); align-self: center; margin-bottom: 8px; }
.picker { max-height: 78%; padding: 8px 0 20px; }
.picker h2, .contacts h2 { margin: 0; font-size: 20px; font-weight: 600; }
.picker h2 { padding: 4px 20px 10px; }
.search { margin: 0 20px 10px; height: 48px; padding: 0 14px; border: 1px solid var(--btn-line); border-radius: 12px; font: inherit; font-size: 17px; background: #fff; color: var(--ink); }
.places { overflow-y: auto; }
.place { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 6px 20px; border: 0; border-top: 1px solid #EEF1EC; background: #fff; text-align: left; }
.place[aria-selected=true] { background: var(--soft); }
.place span { flex: 1; font-size: 17px; font-weight: 500; }
.place small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.contacts { padding: 8px 20px 26px; gap: 14px; }
.contacts .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sq { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.numrow { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: 16px; }
.numrow span { flex: 1; min-width: 0; font-size: 21px; font-weight: 600; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.numrow .sq { background: #F7F9F6; color: var(--accent); }
.chans { display: flex; flex-direction: column; gap: 10px; }
.chan { height: 52px; border-radius: 14px; border: 1px solid var(--btn-line); background: #fff; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.chan.first { border: 0; background: var(--accent); color: #fff; }
.ask { font-size: 15px; color: var(--muted); text-align: center; }

/* details */
.detail { z-index: 10; display: flex; flex-direction: column; }
.dbar { height: 56px; flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.dbar button { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.dbar span { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dscroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 112px; display: flex; flex-direction: column; gap: 12px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dwhen { font-weight: 600; letter-spacing: -0.6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dnote { font-size: 15px; color: var(--muted); }
.dprice { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dprice b { font-size: 22px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.facts { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg small { font-size: 14px; color: var(--muted); }
.msg .tx { white-space: pre-line; overflow-wrap: anywhere; }
.msg .orig { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; color: #3E524C; }
.link { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 16px; font-weight: 500; }
.dfoot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 22px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.main { flex: 1; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.src { flex: 0 0 auto; height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--btn-line); border-radius: 14px; background: #fff; color: var(--accent); font-size: 17px; font-weight: 600; }
.toast { position: absolute; top: 12px; left: 16px; right: 16px; z-index: 40; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 16px; box-shadow: 0 8px 24px rgba(20, 43, 37, .25); }
.fresh { position: absolute; left: 50%; transform: translateX(-50%); z-index: 30; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 8px 24px rgba(20, 43, 37, .25); }
.card.gone { opacity: .5; pointer-events: none; }
.gone-note { font-size: 15px; line-height: 1.4; color: var(--muted); }
.skeleton { height: 96px; border-radius: 16px; background: #fff; border: 1px solid var(--line); opacity: .6; }
.dbar .share { margin-left: auto; color: var(--accent); }
button.chan { font: inherit; font-size: 17px; font-weight: 600; color: inherit; cursor: pointer; }
.linkbox { width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #F7F9F6; font: inherit; font-size: 14px; color: var(--muted); }
