/* Sydney Wide Shuttles — booking & quote app */
:root {
  --red: #d7191f;
  --red-dark: #b0121a;
  --red-tint: #fdeced;
  --ink: #15171a;
  --ink-2: #3b4048;
  --muted: #6b7280;
  --line: #dfe3e8;
  --line-strong: #c4cad3;
  --bg: #f5f6f8;
  --card: #ffffff;
  --yellow: #ffc93c;
  --yellow-dark: #f0b400;
  --green: #138a4b;
  --green-tint: #e7f6ee;
  --blue: #1f6fd1;
  --blue-tint: #e8f1fc;
  --amber-tint: #fff5d9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Rubik", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 720px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { justify-content: center; text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header ------------------------------------------------------------ */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { max-height: 52px; width: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--red) 0 55%, var(--ink) 55%); }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text strong { color: var(--red); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--red); background: var(--red-tint); }
.main-nav .nav-phone { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-weight: 600; }
.main-nav .nav-phone:hover { background: #000; color: #fff; }

/* Hero ------------------------------------------------------------- */
.page-hero { background: var(--ink); color: #fff; padding: 36px 0 76px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -40px; width: 420px; height: 260px;
  background: linear-gradient(115deg, transparent 0 30%, var(--red) 30% 52%, transparent 52% 58%, #2a7fd4 58% 66%, transparent 66%);
  opacity: .9; transform: skewX(-12deg);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; margin: 0; }
.eyebrow { margin: 0 0 6px; color: #c9ccd2; font-size: 1rem; }

.form-section { margin-top: -48px; padding-bottom: 56px; position: relative; z-index: 2; }

/* Cards ------------------------------------------------------------ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 28px; }
.form-title { font-size: 1.15rem; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
@media (max-width: 600px) { .form-card { padding: 20px 16px; } }

/* Steps ------------------------------------------------------------ */
.steps { list-style: none; margin: 0 0 16px; padding: 14px 20px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.step + .step::before { content: ""; display: block; width: clamp(24px, 12vw, 160px); height: 2px; background: var(--line-strong); margin-right: 2px; }
.step-done + .step::before { background: var(--red); }
.step-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  font-family: var(--display); font-weight: 800; border: 2px solid var(--line-strong); color: var(--muted); }
.step-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: .9rem; color: var(--muted); }
.step-current .step-num { border-color: var(--red); color: var(--red); }
.step-current .step-label { color: var(--red); }
.step-done .step-num { background: var(--red); border-color: var(--red); color: #fff; }
.step-done .step-label { color: var(--ink); }

/* Form blocks ------------------------------------------------------ */
.form-block { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.form-block + .form-block { padding-top: 24px; border-top: 1px solid var(--line); }
.form-block > legend { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; padding: 0;
  display: flex; align-items: center; gap: 10px; }
.block-num { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .85rem; }

.grid { display: grid; gap: 0 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.field { margin-bottom: 16px; min-width: 0; }
.field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.req { color: var(--red); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.hint { margin: 5px 0 0; font-size: .8rem; color: var(--muted); }

input:not([type]), input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=time],
input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
input[type=date], input[type=time] { min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa1ab; }
input:hover, select:hover, textarea:hover { border-color: #9aa1ab; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 23, 26, .12); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
select { padding-right: 40px; cursor: pointer; }

.has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #fffafa; }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { box-shadow: 0 0 0 3px rgba(215, 25, 31, .15); }
.field-error { margin: 6px 0 0; color: var(--red-dark); font-size: .85rem; font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex: 0 0 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.char-count { display: block; text-align: right; font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* Radio cards */
.choice-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.choice-group legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.choice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body { display: block; height: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, background .15s; position: relative; }
.choice-body::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: #fff; }
.choice-title { display: block; font-weight: 600; }
.choice-desc { display: block; font-size: .8rem; color: var(--muted); }
.choice:hover .choice-body { border-color: #9aa1ab; }
.choice input:checked + .choice-body { border-color: var(--red); background: var(--red-tint); }
.choice input:checked + .choice-body::before { border-color: var(--red); box-shadow: inset 0 0 0 4px #fff; background: var(--red); }
.choice input:focus-visible + .choice-body { box-shadow: 0 0 0 3px rgba(215, 25, 31, .25); }
@media (max-width: 400px) { .choice-options { grid-template-columns: 1fr; } }

/* Checkbox */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: 0 0 auto; }
.inline-check { margin: 0 0 16px; }
.consent > label { font-weight: 400; color: var(--ink); }
.consent { padding: 16px; background: var(--bg); border-radius: var(--radius-sm); margin-top: 8px; }

/* Honeypot */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  font: 600 1rem var(--font); border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(21, 23, 26, .35); outline-offset: 2px; }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow-dark); }
.btn-primary:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-danger { background: #fff; color: var(--red-dark); border-color: #f0b8ba; }
.btn-danger:hover { background: var(--red-tint); color: var(--red-dark); }
.btn-link { background: none; border: 0; color: var(--red); padding: 6px 0; min-height: 0; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .875rem; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); }
.form-actions p { margin: 0; }
@media (max-width: 600px) { .form-actions .btn-lg { width: 100%; } }

/* Alerts */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert:focus { outline: none; }
.alert-error { background: var(--red-tint); color: var(--red-dark); border: 1px solid #f4c3c5; }
.alert-success { background: var(--green-tint); color: var(--green); border: 1px solid #b9e3cb; }
.alert-info { background: var(--blue-tint); color: #164f96; border: 1px solid #c4dbf5; }

/* Review */
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head h2 { font-family: var(--display); font-size: 1.3rem; margin: 0; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 16px; }
.review-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.review-row dt { color: var(--muted); font-size: .9rem; }
.review-row dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.review-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .review-list { grid-template-columns: 1fr; } .review-row { grid-template-columns: 120px 1fr; } }

/* Quote layout */
.quote-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.quote-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.quote-aside h2 { font-family: var(--display); font-size: 1.25rem; color: var(--red); }
.quote-aside p { color: var(--ink-2); font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { padding: 6px 0 6px 28px; position: relative; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 14px; height: 8px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.call-box { background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 14px 16px; display: grid; }
.call-box span { font-size: .85rem; color: #c9ccd2; }
.call-box a { color: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-decoration: none; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { order: 2; } }

.recaptcha { margin: 8px 0 16px; }

/* Success & choice cards */
.success-card, .notice-card { padding: 40px 32px; text-align: center; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-tint); color: var(--green);
  display: grid; place-items: center; margin: 0 auto 16px; }
.success-card h1 { font-family: var(--display); font-size: 1.6rem; }
.lead { color: var(--muted); margin: 16px 0 4px; }
.reference { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: .06em; margin: 0 0 16px;
  display: inline-block; padding: 6px 18px; border: 2px dashed var(--red); border-radius: var(--radius-sm); color: var(--red); }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice-card { padding: 28px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .15s, box-shadow .15s; }
.choice-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(16, 24, 40, .12); color: var(--ink); }
.choice-card h2 { font-family: var(--display); font-size: 1.4rem; margin-top: 12px; }
.choice-card p { color: var(--ink-2); flex: 1; }
.choice-card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; }
@media (max-width: 700px) { .choice-cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 16px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Embedded in WordPress (iframe): drop the app's own chrome */
.is-embedded body { background: transparent; }
.is-embedded .site-header, .is-embedded .site-footer, .is-embedded .page-hero { display: none; }
.is-embedded .form-section { margin-top: 0; padding: 4px 0 8px; }

/* ================================================================== *
 *  Admin
 * ================================================================== */
.admin body, body.admin { background: var(--bg); }
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; max-width: 1280px; }
.admin-bar .brand-text { color: #fff; font-size: 1rem; }
.admin-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.admin-nav a, .admin-nav button { color: #c9ccd2; text-decoration: none; padding: 8px 12px; border-radius: 6px; font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; }
.admin-nav a:hover, .admin-nav button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }
.admin-nav form { margin: 0; }
.admin-main { max-width: 1280px; padding-top: 24px; padding-bottom: 48px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-title h1 { font-size: 1.5rem; margin: 0; }
.admin-title .sub { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { padding: 18px 20px; text-decoration: none; color: var(--ink); }
.stat:hover { border-color: var(--line-strong); color: var(--ink); }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.panel { margin-bottom: 24px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1rem; margin: 0; }
.panel-body { padding: 18px; }
.panel-empty { padding: 28px 18px; text-align: center; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.filters .f { display: grid; gap: 4px; }
.filters label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.filters input, .filters select { min-height: 38px; padding: 7px 10px; font-size: .9rem; }
.filters .f-search { flex: 1 1 220px; }
.filters .select-wrap::after { right: 12px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafbfc; }
table.data .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; white-space: nowrap; }
table.data .nowrap { white-space: nowrap; }
table.data .trip { max-width: 320px; color: var(--ink-2); }
table.data .trip span { color: var(--muted); }
.row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.row-link:hover { color: var(--red); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: #eef0f3; color: var(--ink-2); }
.badge-pending, .badge-new { background: var(--amber-tint); color: #8a5a00; }
.badge-confirmed, .badge-quoted { background: var(--blue-tint); color: #164f96; }
.badge-completed, .badge-accepted { background: var(--green-tint); color: var(--green); }
.badge-cancelled, .badge-declined, .badge-no_show { background: var(--red-tint); color: var(--red-dark); }
.badge-expired { background: #eef0f3; color: var(--muted); }

.pagination { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.pagination .pages { display: flex; gap: 6px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 160px 1fr; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { overflow-wrap: anywhere; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: .8rem; }
.timeline .note { color: var(--ink-2); white-space: pre-line; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card h1 { font-size: 1.3rem; margin-top: 12px; }
.btn-block { width: 100%; }

/* Small screens */
@media (max-width: 600px) {
  .steps { padding: 12px; gap: 8px; }
  .step + .step::before { width: 16px; }
  .step-label { font-size: .75rem; }
  .step-num { width: 28px; height: 28px; }
  .page-hero { padding: 24px 0 64px; }
  .page-hero::after { opacity: .25; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
}

/* ================================================================== *
 *  v2 — customer self-service
 * ================================================================== */
.return-toggle { margin: 4px 0 14px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fafbfc; }
.return-toggle:has(input:checked) { border-style: solid; border-color: var(--ink); background: #fff; }
.return-fields { padding: 0 0 4px; }

/* Address suggestions */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
.ac-item { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.ac-item:hover, .ac-item.is-active { background: var(--bg); }

/* Instant estimate */
.estimate { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 8px; background: #fafbfc; }
.estimate.is-ready { background: #fffdf3; border-color: #f3dc8d; }
.estimate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.estimate-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.estimate-total { font-family: var(--display); font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.estimate.is-loading .estimate-total { opacity: .4; }
.estimate-note { margin: 4px 0 0; font-size: .85rem; color: var(--ink-2); }
.estimate-detail { margin-top: 10px; font-size: .85rem; }
.estimate-detail summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.estimate-detail ul { list-style: none; margin: 8px 0 0; padding: 0; }
.estimate-detail li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line); font-variant-numeric: tabular-nums; }
.estimate-detail .est-leg { font-weight: 700; border: 0; padding-top: 8px; }
.estimate-review { display: grid; gap: 2px; padding: 14px 16px; margin: 0 0 16px; border-radius: var(--radius-sm); background: #fffdf3; border: 1px solid #f3dc8d; }
.estimate-review span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.estimate-review strong { font-family: var(--display); font-size: 1.6rem; }
.estimate-review small { color: var(--ink-2); }
.center-block { max-width: 320px; margin: 0 auto 16px; text-align: center; }
.review-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin: 18px 0 0; }
.review-list-1 { grid-template-columns: 1fr; }

/* Accept quote */
.quote-price { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 18px 20px; margin-bottom: 12px;
  border-radius: var(--radius); background: var(--ink); color: #fff; }
.quote-price strong { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--yellow); line-height: 1.1; }
.quote-price small { color: #c9ccd2; }
.quote-price .estimate-label { color: #c9ccd2; }
.quote-price p { margin: 0; color: #e3e5e8; }
@media (max-width: 600px) { .quote-price { grid-template-columns: 1fr; } }

/* My booking */
.manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.manage-main, .manage-side { display: grid; gap: 16px; min-width: 0; }
.manage-side h2, .manage-actions h2 { font-size: 1.1rem; margin-bottom: 10px; }
@media (max-width: 860px) { .manage-grid { grid-template-columns: 1fr; } }
.trip-card { padding: 20px 22px; }
.trip-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.trip-card-head h2 { font-family: var(--display); font-size: 1.35rem; margin: 0; }
.trip-kind { margin: 0 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.trip-card-meta { display: flex; gap: 8px; align-items: center; }
.trip-card-meta .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: .9rem; }
.route { list-style: none; margin: 16px 0; padding: 0; position: relative; }
.route li { display: flex; gap: 12px; padding: 6px 0; position: relative; }
.route li small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.route-dot { flex: 0 0 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 3px solid var(--red); background: #fff; position: relative; z-index: 1; }
.route-dot-end { background: var(--red); }
.route li:first-child::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: -12px; width: 2px; background: var(--line-strong); }
.trip-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.trip-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.trip-facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 600px) { .trip-facts { grid-template-columns: 1fr 1fr; } }
.trip-driver { margin: 12px 0 0; padding: 10px 12px; background: var(--green-tint); color: var(--green); border-radius: var(--radius-sm); font-size: .92rem; }
.trip-card .alert { margin: 12px 0 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 12px 0 16px; }
.tab { font: 600 .95rem var(--font); background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tab:focus-visible { outline: 3px solid rgba(21, 23, 26, .3); }
.manage-actions .form-actions { justify-content: flex-end; }
.pay-card { display: grid; gap: 12px; }
.pay-card h2 { margin: 0; }
.pay-lines { margin: 0; display: grid; gap: 6px; }
.pay-lines div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.pay-lines dt { color: var(--muted); }
.pay-lines dd { margin: 0; font-weight: 600; }
.pay-due { padding-top: 6px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.paid-note { margin: 0; color: var(--green); font-weight: 700; }
.pay-now { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin: 8px 0 12px;
  background: #fffdf3; border: 1px solid #f3dc8d; border-radius: var(--radius); }
.pay-now strong { display: block; font-family: var(--display); font-size: 2rem; }
.pay-now small { color: var(--ink-2); }
.pay-now form { margin: 0; }
.secure-note { margin: 0; }
.success-section { margin-top: 32px; }

/* ================================================================== *
 *  v2 — admin
 * ================================================================== */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; margin-left: 2px; }
.title-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; margin: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mt-sm { margin-top: 10px; }
.align-start { align-items: start; }
.align-end { align-items: end; }
.text-warn { color: var(--red-dark); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.leg-tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #164f96; background: var(--blue-tint); border-radius: 4px; padding: 1px 5px; margin-top: 3px; }
.badge-unpaid { background: #eef0f3; color: var(--ink-2); }
.badge-deposit { background: var(--amber-tint); color: #8a5a00; }
.badge-paid { background: var(--green-tint); color: var(--green); }
.badge-account { background: var(--blue-tint); color: #164f96; }
.badge-refunded, .badge-void { background: #eef0f3; color: var(--muted); }
.stat-attn { border-color: #f3dc8d; }
.stat-urgent { border-color: #f0b8ba; background: #fffafa; }
.stat-note { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats-6 .stat-value { font-size: 1.5rem; }
@media (max-width: 1100px) { .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filters.card { margin-bottom: 16px; }
.filters .legend { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; align-self: center; }
.row-inactive td { opacity: .55; }
.panel-form { border-top: 1px solid var(--line); background: #fafbfc; }
.panel-form h3 { font-size: .95rem; margin: 0 0 12px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; min-width: 0; }
.copy-row { display: flex; gap: 8px; margin: 8px 0; }
.copy-row input { flex: 1; min-width: 0; min-height: 36px; font-size: .8rem; padding: 6px 10px; background: var(--bg); }
.disclosure { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.disclosure > summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.mini-list { list-style: none; margin: 10px 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; font-variant-numeric: tabular-nums; }
.mini-list li:last-child { border-bottom: 0; }
.request-panel { border-color: #f3dc8d; background: #fffdf3; }
.request-panel .panel-head { border-color: #f3dc8d; }
.request-what { font-weight: 600; white-space: pre-line; margin-top: 0; }
.request-msg { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--yellow-dark); background: #fff; }
.timeline li.tl-system::before { background: #2a7fd4; }
.timeline li.tl-customer::before { background: var(--yellow-dark); }
.auto-list { margin: 0 0 8px; padding-left: 18px; font-size: .9rem; display: grid; gap: 4px; }

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.cal-day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 180px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-day.is-today { border-color: var(--red); box-shadow: inset 0 3px 0 var(--red); }
.cal-day.is-past { background: #fafbfc; }
.cal-day-head { display: flex; justify-content: space-between; align-items: baseline; }
.cal-day-head a { color: var(--ink); text-decoration: none; }
.cal-day-head span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.cal-day-head strong { font-size: 1.2rem; }
.cal-count { font-size: .75rem; color: var(--muted); font-weight: 600; }
.cal-empty { margin: 0; font-size: .8rem; color: #aab0b9; }
.cal-trip { display: grid; gap: 1px; padding: 6px 8px; border-radius: 6px; border-left: 3px solid var(--line-strong); background: var(--bg); color: var(--ink);
  text-decoration: none; font-size: .78rem; line-height: 1.3; }
.cal-trip:hover { filter: brightness(.97); color: var(--ink); }
.cal-trip:focus-visible { outline: 2px solid var(--ink); }
.cal-time { font-weight: 700; }
.cal-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-route { color: var(--ink-2); overflow-wrap: anywhere; }
.cal-driver { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .6rem; font-weight: 700; }
.cal-pending { border-left-color: var(--yellow-dark); background: var(--amber-tint); }
.cal-confirmed { border-left-color: var(--blue); background: var(--blue-tint); }
.cal-completed { border-left-color: var(--green); background: var(--green-tint); }
.cal-nodriver .cal-driver { color: var(--red-dark); font-weight: 700; }
.cal-key { font-size: .75rem; padding: 3px 8px; border-radius: 4px; border-left: 3px solid var(--line-strong); }
.cal-key.cal-nodriver { color: var(--red-dark); font-weight: 700; background: #fff; }
@media (max-width: 1000px) { .calendar { grid-template-columns: 1fr; } .cal-day { min-height: 0; } }

/* Run sheet */
.runsheet-unassigned { border-color: #f0b8ba; }
.runsheet-unassigned .panel-head { background: var(--red-tint); }
.rs-time { font-size: 1.05rem; }
@media print {
  .admin-bar, .no-print, .title-actions, .filters, .alert, .breadcrumb { display: none !important; }
  body.admin { background: #fff; }
  .card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .admin-main { padding: 0; max-width: none; }
  table.data td, table.data th { padding: 6px 8px; }
}

/* Invoices */
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.inv-parties > div { display: grid; gap: 2px; font-size: .9rem; }
table.data tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
table.data tfoot .total td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--ink); }

/* Reports chart: one series, single hue; grid and axes recessive */
.chart-wrap { overflow-x: auto; }
.bar-chart { width: 100%; min-width: 520px; height: auto; display: block; font-family: var(--font); }
.bar-chart .grid-line { stroke: #eceff3; stroke-width: 1; }
.bar-chart .grid-line.baseline { stroke: var(--line-strong); }
.bar-chart .axis-label { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bar-chart .bar { fill: var(--red); }
.bar-chart .bar-hit { fill: transparent; }
.bar-chart .bar-g:hover .bar, .bar-chart .bar-g:focus .bar { fill: var(--red-dark); }
.bar-chart .bar-g:hover .bar-hit, .bar-chart .bar-g:focus .bar-hit { fill: rgba(21, 23, 26, .04); }
.bar-chart .bar-g:focus { outline: none; }
.bar-chart .bar-value { fill: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; }
.status-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }

/* ================================================================== *
 *  v3 — verification & emails
 * ================================================================== */
.verify-box { border: 1px solid #b9e3cb; background: var(--green-tint); border-radius: var(--radius-sm); padding: 14px 16px 4px; margin: 8px 0 16px; min-width: 0; }
.verify-box legend { font-weight: 700; padding: 0 6px; }
.verify-box > p { margin-top: 0; }
.otp-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; letter-spacing: .3em; }
.btn-inline { display: inline; min-height: 0; padding: 0; font-size: inherit; font-weight: 600; vertical-align: baseline; }
.verify-badges { margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.compose h3 .small { font-weight: 400; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-item { padding: 12px 18px; border-top: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.mail-item.mail-staff { border-left-color: var(--blue); }
.mail-item.mail-customer { border-left-color: var(--yellow-dark); background: #fffdf6; }
.mail-item.mail-failed { border-left-color: var(--red); background: #fffafa; }
.mail-meta { font-size: .85rem; }
.mail-subject { font-weight: 600; margin: 4px 0; overflow-wrap: anywhere; }
.mail-body { white-space: normal; font-size: .9rem; color: var(--ink-2); background: var(--bg); border-radius: 6px; padding: 8px 10px; margin-top: 6px; overflow-wrap: anywhere; }
.transcript { margin-bottom: 16px; }
.transcript pre { white-space: pre-wrap; font-size: .78rem; max-height: 320px; overflow: auto; margin: 8px 0 0; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-tabs { display: grid; padding: 8px; }
.settings-tabs a { padding: 9px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.settings-tabs a:hover { background: var(--bg); color: var(--ink); }
.settings-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.settings-main { min-width: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.settings-grid .setting-bool { grid-column: 1 / -1; margin-bottom: 10px; }
.settings-grid .field:has(textarea) { grid-column: 1 / -1; }
@media (max-width: 900px) { .settings-layout { grid-template-columns: 1fr; } .settings-tabs { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
@media (max-width: 600px) { .settings-grid { grid-template-columns: 1fr; } }

.field > label.check { display: flex; font-weight: 400; color: var(--ink); }
.setting-bool .check span { font-weight: 500; }

/* ===================== v4: trip tracking ===================== */
.stage-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; background: #eef0f3; color: var(--ink-2); }
.stage-on_way { background: var(--blue-tint); color: #164f96; }
.stage-arrived { background: var(--amber-tint); color: #8a5a00; }
.stage-on_board { background: #efe7fb; color: #5b2bb5; }
.stage-completed { background: var(--green-tint); color: var(--green); }
.stage-no_show { background: var(--red-tint); color: var(--red-dark); }

.track-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.track-card { padding: 22px; }
.track-map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); background: #e8ecef; z-index: 0; }
.map-note { margin: 6px 2px 0; }
.track-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.track-steps::before { content: ""; position: absolute; top: 9px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); }
.track-steps li { position: relative; text-align: center; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ts-dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line-strong); position: relative; z-index: 1; }
.track-steps li.done .ts-dot { background: var(--green); border-color: var(--green); }
.track-steps li.current .ts-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px var(--red-tint); animation: ts-pulse 1.6s ease-in-out infinite; }
.track-steps li.done, .track-steps li.current { color: var(--ink); font-weight: 600; }
.track-steps time { font-weight: 400; color: var(--muted); min-height: 1.2em; }
@keyframes ts-pulse { 50% { box-shadow: 0 0 0 10px transparent; } }
.track-headline { font-family: var(--display); font-size: 1.45rem; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.track-sub { margin: 0 0 16px; }
.track-facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.track-facts div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; font-size: .92rem; }
.track-facts dt { color: var(--muted); }
.track-facts dd { margin: 0; }
.track-cta h2 { font-size: 1.05rem; }
.map-pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 13px; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-pin span { line-height: 1; }
.pin-pickup { background: var(--ink); }
.pin-dest { background: var(--red); }
.pin-car { background: #fff; font-size: 17px; border-color: var(--red); transition: transform .3s; }
.mini-steps { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; }
.mini-steps li { padding: 3px 0 3px 18px; position: relative; }
.mini-steps li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mini-steps time { font-weight: 600; margin-right: 4px; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.live-map-panel { padding: 0; overflow: hidden; }
.live-map { height: 480px; border: 0; border-radius: 0; }

/* Driver app (phone first) */
.driver-app { background: #eef0f3; }
.driver-bar { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.driver-bar .brand-text { color: #fff; }
.driver-home { text-decoration: none; }
.driver-who { font-size: .9rem; color: #c9ccd2; }
.driver-main { max-width: 640px; margin: 0 auto; padding: 16px 12px 96px; }
.driver-h1 { font-size: 1.35rem; margin: 2px 0 4px; }
.driver-day { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 4px 8px; }
.driver-job { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 14px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.driver-job.is-live { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-tint); }
.dj-time { font-weight: 700; font-size: 1.05rem; }
.dj-route { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.driver-job .stage-pill { grid-column: 2; justify-self: start; }
.driver-empty { padding: 24px; text-align: center; }
.driver-back { display: inline-block; margin: 0 0 10px; text-decoration: none; font-weight: 600; }
.driver-card { padding: 16px; }
.driver-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.driver-stops { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.driver-stops li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); }
.ds-label { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.driver-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0 12px; font-size: .92rem; }
.driver-notes { background: var(--amber-tint); padding: 10px 12px; border-radius: var(--radius-sm); font-size: .92rem; }
.driver-map { height: 260px; margin-top: 8px; }
.gps-status { margin: 6px 2px 14px; }
.driver-actions { display: grid; gap: 10px; margin: 4px 0 14px; }
.driver-actions .btn-lg { min-height: 58px; font-size: 1.1rem; }

@media (max-width: 860px) {
  .track-layout, .live-layout { grid-template-columns: 1fr; }
  .track-map { height: 340px; }
  .live-map { height: 380px; }
}

/* Installer */
.install-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px 4px; margin: 0 0 16px; }
.install-group legend { font-weight: 700; padding: 0 6px; }
.install-demo { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); margin: 0 0 8px; }
.config-text { width: 100%; font: 13px/1.4 ui-monospace, Menlo, monospace; }
.color-input { width: 72px; height: 44px; padding: 4px; }
.input-with-btn .color-input { flex: 0 0 72px; min-height: 44px; }
