:root {
  --navy: #0f2a44;
  --navy-2: #1b3d5f;
  --bg: #eef3f8;
  --card: #ffffff;
  --text: #1a2633;
  --muted: #66788a;
  --line: #dbe4ee;
  --ice: #2f80ed;
  --ice-soft: #e3efff;
  --driver: #0f8a5f;
  --rider: #d9480f;
  --either: #7048e8;
  --whistler: #1c64c8;
  --cypress: #2b8a3e;
  --grouse: #c92a2a;
  --seymour: #7b2cbf;
  --amber: #e67700;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--navy); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 38px; height: 38px; border-radius: 10px; }
.top h1 { margin: 0; font-size: 18px; letter-spacing: .5px; }
.top p { margin: 2px 0 0; font-size: 12px; opacity: .75; }
.lang { background: var(--navy-2); color: #fff; border: 1px solid #ffffff33; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.demo { margin: 0; padding: 6px 16px; font-size: 12px; color: var(--muted); background: #fff8e1; border-bottom: 1px solid #f3e3a8; }

/* filters */
.filters { padding: 12px 16px 4px; display: grid; gap: 8px; }
.seg { display: flex; background: #dfe7f0; border-radius: 999px; padding: 3px; }
.seg .chip { flex: 1; border: 0; background: transparent; }
.seg .chip.on { background: #fff; box-shadow: 0 1px 3px #0002; color: var(--navy); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; white-space: nowrap;
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.wkend:not(.on) { color: var(--ice); border-color: #b9d3f7; }
.chip.m-whistler.on { background: var(--whistler); border-color: var(--whistler); }
.chip.m-cypress.on { background: var(--cypress); border-color: var(--cypress); }
.chip.m-grouse.on { background: var(--grouse); border-color: var(--grouse); }
.chip.m-seymour.on { background: var(--seymour); border-color: var(--seymour); }

/* cards */
.list { padding: 8px 16px; display: grid; gap: 10px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius); padding: 12px 14px;
  box-shadow: 0 1px 2px #0f2a4414, 0 2px 10px #0f2a440d; cursor: pointer;
  display: grid; gap: 6px;
}
.card:active { transform: scale(.99); }
.card.is-closed { opacity: .55; }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge, .mtn { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.badge.driver { background: #e6f6ef; color: var(--driver); }
.badge.rider { background: #fff0e8; color: var(--rider); }
.badge.either { background: #f0ebff; color: var(--either); }
.mtn { color: #fff; }
.mtn.whistler { background: var(--whistler); }
.mtn.cypress { background: var(--cypress); }
.mtn.grouse { background: var(--grouse); }
.mtn.seymour { background: var(--seymour); }
.date { margin-left: auto; font-weight: 700; color: var(--navy); }
.row { font-size: 14px; }
.times { display: flex; gap: 16px; }
.times em { font-style: normal; font-size: 11px; color: #fff; background: var(--navy-2); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.meta .full { color: var(--grouse); font-weight: 600; }
.meta .price { margin-left: auto; color: var(--text); font-weight: 700; font-size: 15px; }
.who { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.who b { color: var(--text); }
.ribbon {
  margin: -12px -14px 2px; padding: 4px 14px; font-size: 12px; font-weight: 600;
  background: #e6f6ef; color: var(--driver);
}
.ribbon.amber { background: #fff4e0; color: var(--amber); }
.ribbon.grey { background: #eceff2; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty.small { padding: 10px; font-size: 13px; }

/* mine */
.sec { font-size: 15px; margin: 18px 16px 8px; color: var(--navy); }
.mine-block { margin: 0 16px 16px; }
.mine-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; font-size: 13px; }
.mcount { font-weight: 600; color: var(--navy); }
.matches { display: grid; gap: 8px; padding-left: 12px; border-left: 3px solid var(--ice-soft); }
.link { background: none; border: 0; color: var(--ice); padding: 4px; font-size: 13px; }
.reset { display: block; margin: 24px auto; color: var(--muted); }
#view > .card { margin: 0 16px 10px; }

/* form */
.form { padding: 8px 16px 16px; }
.form h2 { font-size: 18px; margin: 8px 0 12px; color: var(--navy); }
fieldset { border: 0; margin: 0 0 12px; padding: 12px 14px; background: #fff; border-radius: var(--radius); }
legend { float: left; width: 100%; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.sublabel { font-weight: 600; font-size: 14px; margin: 14px 0 8px; }
legend + * { clear: both; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfcfe; color: var(--text); margin-top: 8px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ice); outline-offset: 0; border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill input, .role-card input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; background: #fbfcfe; cursor: pointer;
}
.pill input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill input:focus-visible + span { outline: 2px solid var(--ice); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-card span {
  display: grid; gap: 2px; text-align: center; padding: 12px 6px; border-radius: 12px;
  border: 2px solid var(--line); cursor: pointer;
}
.role-card small { color: var(--muted); font-size: 12px; }
.role-card.driver input:checked + span { border-color: var(--driver); background: #e6f6ef; }
.role-card.rider input:checked + span { border-color: var(--rider); background: #fff0e8; }
.role-card.either input:checked + span { border-color: var(--either); background: #f0ebff; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; height: 40px; border: 0; background: #f1f5f9; font-size: 20px; }
.stepper output { width: 44px; text-align: center; font-weight: 700; font-size: 16px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.check input { width: 20px; height: 20px; }
.money { display: flex; align-items: center; gap: 6px; }
.money span { font-size: 18px; font-weight: 700; margin-top: 8px; }
.hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.warn { margin: 8px 0 0; font-size: 13px; color: var(--amber); }
.err { color: var(--grouse); font-weight: 600; text-align: center; }
.primary {
  width: 100%; border: 0; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700;
  background: var(--ice); color: #fff;
}
.legal { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* bottom nav */
.tabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 6;
}
.tabs button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 12px; min-width: 80px; }
.tabs .ico { font-size: 20px; }
.tabs button.on { color: var(--navy); font-weight: 600; }
.tabs .fab .ico {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ice); color: #fff; font-size: 26px; margin-top: -24px; box-shadow: 0 4px 12px #2f80ed55;
}

/* modal */
.modal { position: fixed; inset: 0; background: #0f2a4466; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  position: relative; width: 100%; max-width: 560px; background: var(--bg);
  border-radius: 18px 18px 0 0; padding: 40px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh; overflow-y: auto;
}
.sheet .card { cursor: default; }
.x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 28px; color: var(--muted); }
.contact {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 14px; background: #fff; border-radius: var(--radius); font-size: 14px;
}
.ghost {
  border: 1px solid var(--ice); color: var(--ice); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; text-decoration: none; display: inline-block;
}
.book { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.book .primary { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 20;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 4px 14px #0004; max-width: 90vw; text-align: center;
}

/* disclaimer */
.disclaimer {
  margin-top: 12px; padding: 12px 14px; background: #fff8e1; border: 1px solid #f3e3a8;
  border-radius: var(--radius); font-size: 12px; color: #5c4a00; line-height: 1.55;
}
.disclaimer b { font-size: 13px; }
.disclaimer ul { margin: 6px 0 0; padding-left: 18px; }
.agree { margin: 12px 4px; }
.legal.foot { padding: 4px 24px 16px; }
.trip { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #fff4e0; color: var(--amber); }

/* credit line */
.credit { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 16px 20px; letter-spacing: .3px; }
.credit a { color: var(--navy-2); font-weight: 600; text-decoration: none; }

/* feedback */
.fb-link { font-size: 13px; font-weight: 600; margin: 0 6px 6px; }
.fb-h { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.sheet textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.fb-send { margin-top: 4px; }
.hint.center { text-align: center; }
.link.danger { color: var(--grouse); }
.sheet .disclaimer:first-of-type { margin-top: 0; }
.sheet input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; }
.fb-sub { font-size: 15px; color: var(--navy); margin: 20px 0 4px; }
.pay-btn { display: block; text-align: center; margin-top: 10px; padding: 12px; border-radius: 12px; font-weight: 700; text-decoration: none; color: #fff; }
.pay-btn.paypal { background: #0070ba; }
.pay-btn.kofi { background: #ff5e5b; }
.hint.pending { font-style: italic; }
.primary:disabled { opacity: .6; }
.seat-ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 12px; background: #fff; border-radius: 12px; font-size: 13px; }
.stepper button:disabled { opacity: .35; }
.ml-box { margin: 10px 0; padding: 10px 12px; background: #fff; border: 1px dashed var(--ice); border-radius: 10px; font-size: 12px; word-break: break-all; color: var(--navy-2); }
.mine-actions .link { margin-left: 8px; }
.danger-btn { background: var(--grouse); margin-top: 12px; }
.demo.admin { background: #ffe8e8; border-color: #f5c2c2; color: var(--grouse); font-weight: 600; }
.demo .link { font-size: 12px; padding: 0; }
#contactBox { display: grid; gap: 10px; }
.c-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-row .ghost + .ghost { margin-left: 4px; }

/* ---- v2 layout: beta tag, folded filters, card hierarchy, empty state, safety ---- */
.top h1 { display: flex; align-items: center; gap: 8px; }
.beta { font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 2px 6px; border-radius: 6px;
  background: #ffffff22; color: #cfe3ff; border: 1px solid #ffffff33; }
.more-toggle { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 13px; color: var(--text); text-align: left; }
.more-toggle.open { border-color: var(--navy); }
.mt-right { flex: none; color: var(--ice); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.count { font-style: normal; background: var(--ice); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 11px; padding: 0 5px; }
.more-panel { background: #fff; border-radius: 12px; padding: 4px 12px 12px; display: grid; gap: 2px; }
.more-panel .sublabel { margin: 10px 0 6px; font-size: 13px; color: var(--muted); }
.more-panel .chips.scroll { margin: 0 -12px; padding: 0 12px; }

.c-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.c-date { width: 56px; text-align: center; background: var(--ice-soft); border-radius: 12px; padding: 6px 0; color: var(--navy); line-height: 1.15; }
.c-date b { display: block; font-size: 18px; }
.c-date small { font-size: 12px; color: var(--muted); }
.c-date.today { background: var(--navy); color: #fff; }
.c-date.today small { color: #cfe3ff; }
.c-main { min-width: 0; display: grid; gap: 5px; }
.c-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.c-pick { font-size: 14px; font-weight: 600; color: var(--text); }
.c-side { text-align: right; display: grid; gap: 3px; justify-items: end; }
.c-price { font-size: 18px; color: var(--navy); white-space: nowrap; }
.c-seats { font-size: 12px; font-weight: 600; color: var(--driver); background: #e6f6ef; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.c-seats.full { color: var(--grouse); background: #ffe8e8; }
.c-need { font-size: 13px; color: var(--rider); background: #fff0e8; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.c-sub { font-size: 12px; color: var(--muted); }
.c-who { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.c-who b { color: var(--text); }

.empty p { margin: 0 0 14px; line-height: 1.6; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.primary.small { width: auto; padding: 9px 18px; font-size: 14px; border-radius: 999px; }

.safety { margin-top: 12px; padding: 12px 14px; background: #e9f7ef; border: 1px solid #bfe5cf;
  border-radius: var(--radius); font-size: 13px; color: #1e5b3a; line-height: 1.6; }
.safety b { font-size: 14px; }
.safety ul { margin: 6px 0 2px; padding-left: 18px; }
.safety .link { padding: 0; font-size: 13px; }

/* live matches in the post form */
.live-match { margin: 0 0 12px; padding: 12px 14px; background: #fff; border: 2px solid var(--ice-soft); border-radius: var(--radius); }
.live-match > b { color: var(--navy); font-size: 15px; }
.live-match .hint { margin: 4px 0 10px; }
.lm-list { display: grid; gap: 8px; }
.lm-list .card { box-shadow: none; border: 1px solid var(--line); }
.lm-none { margin: 0; font-size: 13px; color: var(--muted); }
.posted-matches { margin: 6px 0 10px; padding: 10px 12px; background: #e6f6ef; color: var(--driver); border-radius: 10px; font-weight: 600; font-size: 14px; }

/* ---- ski style slider (顶中顶 … 佛中佛) ---- */
.vibe-stage { position: relative; height: 128px; border-radius: 14px; overflow: hidden; text-align: center;
  background: linear-gradient(90deg, #fff1e6, #f3f7fb 50%, #e8f6ef); display: grid; align-content: center; gap: 2px; padding: 8px 12px; }
.vibe-emoji { font-size: 44px; line-height: 1; }
.vibe-name { font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: 2px; }
.vibe-quip { font-size: 12px; color: var(--muted); min-height: 2.4em; }
.form input[type=range].vibe-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin: 16px 0 6px; border-radius: 999px;
  background: linear-gradient(90deg, #e8590c, #f59f00 25%, #74c0fc 55%, #20c997); outline: none; padding: 0; border: 0; font-size: 0; }
.vibe-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 3px solid var(--navy); box-shadow: 0 2px 8px #0003; cursor: grab; }
.vibe-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); cursor: grab; }
.vibe-ticks { display: grid; grid-template-columns: repeat(6, 1fr); }
.vibe-ticks button { border: 0; background: none; font-size: 12px; color: var(--muted); padding: 4px 0; white-space: nowrap; }
.vibe-ticks button.on { color: var(--navy); font-weight: 800; }
.vibe-particle { position: absolute; bottom: 18px; font-size: 22px; pointer-events: none; opacity: 0;
  animation: vibe-fly 1.1s ease-out forwards; }
@keyframes vibe-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(.6) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(var(--rot)); }
}
/* one animation per style */
.fx-fire { animation: fx-shake .5s; background: linear-gradient(90deg, #ffe0cc, #ffd8a8) !important; }
.fx-fire .vibe-emoji { animation: fx-grow .5s; }
.fx-bounce .vibe-emoji { animation: fx-bounce .6s; }
.fx-pulse .vibe-emoji { animation: fx-pulse .6s; }
.fx-wobble .vibe-emoji { animation: fx-wobble .7s; }
.fx-float .vibe-emoji { animation: fx-float 1.2s ease-in-out; }
.fx-zen { background: linear-gradient(90deg, #e6fcf5, #d3f9d8) !important; }
.fx-zen .vibe-emoji { animation: fx-zen 1.6s ease-in-out; }
@keyframes fx-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes fx-grow { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-10deg); } 100% { transform: scale(1); } }
@keyframes fx-bounce { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-18px); } 55% { transform: translateY(0); } 75% { transform: translateY(-7px); } }
@keyframes fx-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes fx-wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 50% { transform: rotate(14deg); } 75% { transform: rotate(-8deg); } }
@keyframes fx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fx-zen { 0% { transform: scale(1); filter: drop-shadow(0 0 0 #20c997); } 50% { transform: scale(1.15); filter: drop-shadow(0 0 14px #20c997); } 100% { transform: scale(1); filter: drop-shadow(0 0 0 #20c997); } }
@media (prefers-reduced-motion: reduce) { .vibe-stage, .vibe-stage * { animation: none !important; } }
/* badge on cards */
.vibe-tag { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: #f1f3f5; color: #495057; }
.vibe-tag.v0, .vibe-tag.v1 { background: #fff0e6; color: #d9480f; }
.vibe-tag.v4, .vibe-tag.v5 { background: #e6fcf5; color: #087f5b; }

/* ---- avatars & profile ---- */
.av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  font-size: 16px; line-height: 1; background: #e9ecef; box-shadow: inset 0 0 0 2px #fff; }
.av.letter { color: #495057; font-weight: 800; font-size: 13px; }
.av.sm { width: 24px; height: 24px; font-size: 14px; }
.av.md { width: 46px; height: 46px; font-size: 26px; }
.av.lg { width: 64px; height: 64px; font-size: 36px; }
.av.lg.letter, .av.md.letter { font-size: 22px; }
.c-who { display: flex; align-items: center; gap: 8px; }
.name-row { display: flex; align-items: center; gap: 10px; }
.name-row input { margin-top: 0 !important; }
.av-btn { border: 0; background: none; padding: 0; position: relative; }
.av-btn::after { content: "✎"; position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 10px; display: grid; place-items: center; }
.av-picker { margin-top: 10px; padding: 10px; background: #f8fafc; border-radius: 12px; }
.av-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.av-opt { border: 2px solid transparent; background: #fff; border-radius: 10px; font-size: 22px; padding: 4px 0; }
.av-opt.on { border-color: var(--ice); background: var(--ice-soft); }
.av-colors { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.av-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.av-color.on { box-shadow: 0 0 0 3px var(--ice); }
.profile-card { margin: 0 16px 8px; padding: 14px; background: #fff; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 2px #0f2a4414; }
.pf-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pf-text b { font-size: 17px; color: var(--navy); }
.pf-text small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pf-preview { text-align: center; margin: 6px 0 4px; }
.sheet .av-picker { margin-top: 0; }

/* ---- founder, discipline, drop-off ---- */
img.av { object-fit: cover; background: #dee2e6; }
.founder-av { box-shadow: 0 0 0 2px #ffd43b, inset 0 0 0 2px #fff; }
.founder-badge { font-style: normal; font-size: 10px; font-weight: 800; color: #7a4f00; background: linear-gradient(90deg, #ffe066, #ffd43b);
  padding: 2px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.disc-tag { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: #e7f5ff; color: #1864ab; }
.c-drop { font-weight: 600; color: var(--whistler); }
#dropWrap input { margin-top: 8px; }
.pf-vibes { margin-top: 8px; }
.pf-vibes .pill span { font-size: 13px; padding: 6px 10px; }
a.brand { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.brand:active .logo { transform: scale(.94); }
.logo { transition: transform .12s; }

/* ---- ride requests ---- */
.rq-main { margin-top: 12px; }
.rq-box { margin-top: 12px; padding: 12px 14px; background: #fff7e6; border: 1px solid #ffe08a; border-radius: var(--radius); font-size: 14px; font-weight: 600; color: #7a4f00; }
.rq-box.ok { background: #e6f6ef; border-color: #b2e2c8; color: var(--driver); }
.rq-box.grey { background: #f1f3f5; border-color: var(--line); color: var(--muted); }
.rq-btns { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.rq-list { display: grid; gap: 12px; margin: 0 16px 8px; }
.rq-item { background: #fff; border-radius: var(--radius); padding: 0 0 10px; box-shadow: 0 1px 2px #0f2a4414; }
.rq-item .card { box-shadow: none; }
.rq-item .rq-btns { padding: 0 14px; }
.rq-contact { margin: 0 14px; display: grid; gap: 8px; background: #f8fafc; }
.rq-pick { cursor: pointer; }
.tabs button { position: relative; }
.tab-badge { position: absolute; top: 0; right: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #fa5252; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.tab-badge.inline { position: static; display: inline-grid; vertical-align: 2px; }

/* ---- seat board ---- */
.view-seg .chip { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; padding: 4px 16px 2px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .seat { width: 12px; height: 13px; }
.board { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 6px; scrollbar-width: none; }
.board::-webkit-scrollbar { display: none; }
.day-col { flex: 0 0 calc(50% - 21px); scroll-snap-align: start; background: #fff; border-radius: 16px; padding: 10px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 1px 2px #0f2a4414; min-height: 220px; }
.day-col header { text-align: center; line-height: 1.2; }
.day-col header b { font-size: 18px; color: var(--navy); margin-right: 4px; }
.day-col header small { font-size: 13px; color: var(--muted); }
.day-col header span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.day-col.wkend header b { color: var(--ice); }
.cars { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.no-car { font-size: 12px; color: var(--muted); margin: 18px 0; }
.car-wrap { display: grid; justify-items: center; gap: 3px; }
/* top-down car: windshield at the front, seat rows, trunk at the back for big cars */
.car { --mc: var(--navy); width: 92px; border: 3px solid var(--mc); background: #f8fafc; border-radius: 30px 30px 18px 18px;
  padding: 6px 8px 8px; display: grid; gap: 5px; justify-items: center; cursor: pointer; box-shadow: 0 3px 8px #0f2a4420; }
.car:active { transform: scale(.96); }
.car.m-whistler { --mc: var(--whistler); } .car.m-cypress { --mc: var(--cypress); }
.car.m-grouse { --mc: var(--grouse); } .car.m-seymour { --mc: var(--seymour); }
.car.either { border-style: dashed; }
.car.full { opacity: .55; }
.windshield { width: 60px; height: 12px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #a5d8ff, #74c0fc); }
.seat-row { display: flex; gap: 5px; justify-content: center; }
.seat { display: inline-block; width: 20px; height: 22px; border-radius: 6px 6px 4px 4px; position: relative; }
.seat::before { content: ""; position: absolute; left: 3px; right: 3px; top: -4px; height: 5px; border-radius: 3px; background: inherit; filter: brightness(.85); }
.seat.drv { background: #4dabf7; } .seat.free { background: #51cf66; } .seat.pend { background: #fcc419; } .seat.ok { background: #ff6b6b; }
.trunk { width: 100%; min-height: 20px; margin-top: 2px; border-top: 2px dashed #ced4da; font-size: 11px; line-height: 20px; text-align: center; letter-spacing: -2px; }
.car-cap { font-size: 12px; color: var(--muted); }
.car-cap b { font-size: 11px; color: #fff; background: var(--navy); border-radius: 4px; padding: 0 4px; margin-right: 2px; }
.car-cap b.m-whistler { background: var(--whistler); } .car-cap b.m-cypress { background: var(--cypress); }
.car-cap b.m-grouse { background: var(--grouse); } .car-cap b.m-seymour { background: var(--seymour); }
.riders-btn { margin-top: auto; border: 1px dashed var(--rider); background: #fff6f0; color: var(--rider); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.board-hint { margin: 4px 16px 8px; }

/* ---- calendar strip + style tint on cars ---- */
.cal-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; }
.cal-strip::-webkit-scrollbar { display: none; }
.cal-day { flex: 0 0 auto; width: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 5px 0 4px;
  display: grid; justify-items: center; gap: 1px; color: var(--text); }
.cal-day small { font-size: 10px; color: var(--muted); }
.cal-day b { font-size: 17px; line-height: 1.1; }
.cal-day .dots { font-size: 8px; letter-spacing: 1px; color: var(--ice); min-height: 10px; }
.cal-day.wkend small { color: var(--ice); font-weight: 700; }
.cal-day.none { opacity: .4; }
.cal-day.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-day.on small, .cal-day.on .dots { color: #cfe3ff; }
.car.vb0 { background: #ffe3e3; } .car.vb1 { background: #ffe8cc; } .car.vb2 { background: #fff3bf; }
.car.vb3 { background: #e7f5ff; } .car.vb4 { background: #e6fcf5; } .car.vb5 { background: #d3f9d8; }
.car-vibe { font-size: 10px; font-weight: 800; white-space: nowrap; margin-top: 1px; }
.car.vb0 .car-vibe { color: #e03131; } .car.vb1 .car-vibe { color: #e8590c; } .car.vb2 .car-vibe { color: #f08c00; }
.car.vb3 .car-vibe { color: #1c7ed6; } .car.vb4 .car-vibe { color: #0ca678; } .car.vb5 .car-vibe { color: #2f9e44; }

/* ---- seat board v2: big sideways cars ---- */
.day-col.v2 { flex: 0 0 calc(82% - 16px); gap: 14px; padding: 12px 10px 14px; }
.day-col.v2 .cars { gap: 18px; width: 100%; }
.bc { display: grid; justify-items: center; gap: 2px; width: 100%; }
.bc-car { border: 0; background: none; padding: 0; position: relative; display: grid; justify-items: center; cursor: pointer; }
.bc-car:active { transform: scale(.97); }
.car-svg { display: block; height: auto; filter: drop-shadow(0 4px 6px #0f2a4426); }
.bc-vibe { position: absolute; top: 50%; right: 18%; transform: translateY(-50%); font-size: 12px; font-weight: 900;
  writing-mode: vertical-rl; letter-spacing: 1px; pointer-events: none; }
.bc.full .bc-car { opacity: .6; filter: grayscale(.25); }
.bc-wait { display: flex; gap: 3px; margin-top: -2px; }
.person { width: 19px; height: 26px; display: inline-block; vertical-align: middle; }
.bc-stop { margin-top: auto; display: flex; align-items: flex-end; gap: 3px; border: 0; border-top: 2px dashed #ffc078;
  background: none; padding: 10px 6px 0; width: 100%; justify-content: center; cursor: pointer; }
.bc-stop-sign { font-size: 20px; margin-right: 6px; }
.bc-stop b { font-size: 12px; color: #e8590c; margin-left: 2px; }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.legend .person { width: 11px; height: 15px; }
.shake { animation: welded .45s; }
@keyframes welded { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px) rotate(-2deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }


/* ---- route list (style C) ---- */
.ri-day { font-size: 14px; font-weight: 800; color: var(--navy); margin: 8px 2px 0; }
.ri { background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 16px 1fr auto; gap: 10px;
  align-items: stretch; cursor: pointer; box-shadow: 0 1px 2px #0f2a4410; }
.ri:active { transform: scale(.99); }
.ri-route { display: flex; flex-direction: column; align-items: center; padding: 5px 0; }
.ri-route i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); flex: none; }
.ri-route i.end { background: var(--navy); }
.ri-route span { flex: 1; width: 2px; background: #c7d0d9; margin: 2px 0; }
.ri-stops { min-width: 0; }
.ri-stops b { display: block; font-size: 15px; color: var(--text); }
.ri-stops small { display: block; font-size: 12px; color: var(--muted); margin: 3px 0 7px; }
.ri-hit { font-style: normal; color: var(--navy); font-weight: 700; }
.ri-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.ri-seats { display: flex; gap: 4px; }
.ri-seats i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--navy); }
.ri-seats i.on { background: var(--navy); }
.ri-need { font-size: 15px; color: var(--navy); white-space: nowrap; }
.ri-ask { font-size: 13px; font-weight: 700; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ri.full { filter: grayscale(1); opacity: .45; cursor: default; box-shadow: none; }
.ri.full .ri-need { font-weight: 600; }
.demo.test { background: #c92a2a; border-color: #a51d1d; color: #fff; font-weight: 700; text-align: center; }
