:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e2e8f0;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  width: 100%;
  min-height: 50px;
  font-size: 13px;
}

.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--navy-2);
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--ink);
  border-color: var(--border);
}

.btn-apple-maps {
  background: #0f172a;
  color: #ffffff;
  flex: 1 1 auto;
}

.btn-google-maps {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.btn-taxi {
  background: #fef3c7;
  color: #78350f;
  border-color: #f59e0b;
}

.btn-doc {
  background: #e0f2fe;
  color: #075985;
  border-color: #7dd3fc;
}

.btn-lock {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

/* Lock Screen */
.lock-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) 18px calc(20px + var(--safe-bottom));
  background: linear-gradient(160deg, #0b172a 0%, #162a47 100%);
}

.lock-card {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.lock-emblem {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.lock-card h1 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lock-subtitle {
  margin: 0 0 16px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 18px;
}

.status-checking {
  background: #e2e8f0;
  color: #334155;
}

.status-ready {
  background: var(--green-bg);
  color: var(--green);
}

.status-warn {
  background: var(--amber-bg);
  color: #92400e;
}

.unlock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passphrase-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface-muted);
}

.passphrase-input:focus {
  border-color: var(--accent);
  background: #ffffff;
}

.unlock-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}

.lock-reason {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--amber-bg);
  color: #92400e;
  font-size: 11px;
  font-weight: 500;
}

.lock-footnote {
  margin: 18px 0 0;
  font-size: 10px;
  color: var(--subtle);
  line-height: 1.45;
}

/* App Shell */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #ffffff;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.header-left {
  min-width: 0;
}

.header-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.mini-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.mini-pill.is-warn {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}

.mini-pill-muted {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.main-content {
  flex: 1 1 auto;
  padding: 12px 12px calc(86px + var(--safe-bottom));
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* Day Picker Strip */
.day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-pill {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.day-pill.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.day-pill-date {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.day-pill-city {
  font-size: 10px;
  opacity: 0.8;
  white-space: nowrap;
}

/* Day Header & Controls */
.day-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
}

.day-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.day-subheading {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.toggle-chip {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.toggle-chip.is-on {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Advisory Banner */
.advisory-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #78350f;
}

.advisory-box summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.advisory-box p {
  margin: 8px 0 0;
  line-height: 1.45;
}

/* Stop Cards */
.stop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.stop-card.is-muted {
  opacity: 0.65;
  background: #f8fafc;
}

.stop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.time-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 8px;
}

.stop-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.chip-paid { background: var(--green-bg); color: var(--green); }
.chip-confirmed { background: #dbeafe; color: #1d4ed8; }
.chip-optional { background: #f3e8ff; color: #6b21a8; }
.chip-moved { background: #e2e8f0; color: #475569; }
.chip-unverified { background: var(--amber-bg); color: #92400e; }

.stop-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.stop-address {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.stop-address-missing {
  color: var(--amber);
  font-style: italic;
}

.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.stop-details {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.stop-details summary {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  padding: 4px 0;
}

.detail-block {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
}

.detail-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 2px;
}

/* Section Cards (Printouts / Prep / SOS) */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.section-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.section-card p.muted {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

/* Printouts */
.doc-group-title {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
}

.doc-info {
  min-width: 0;
}

.doc-name {
  font-size: 12px;
  font-weight: 700;
  word-break: break-word;
}

.doc-meta {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 26px 16px;
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

.empty-state-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.empty-state code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.checklist-text strong {
  display: block;
  font-size: 12px;
}

.checklist-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.checklist-item.is-done .checklist-text strong {
  text-decoration: line-through;
  color: var(--subtle);
}

/* Hotel Taxi Cards & Emergency */
.hotel-taxi-preview {
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.hotel-taxi-preview .spanish-cue {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
}

.hotel-taxi-preview h3 {
  margin: 4px 0;
  font-size: 15px;
}

.hotel-taxi-preview p {
  margin: 0 0 10px;
  font-size: 11px;
  color: #e2e8f0;
}

.sos-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #dc2626;
  color: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  text-decoration: none;
}

.sos-banner-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.embassy-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-muted);
}

.embassy-card h3 {
  margin: 0 0 4px;
  font-size: 12px;
}

.embassy-card p {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.source-note {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 8px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + var(--safe-bottom));
}

.nav-btn {
  background: transparent;
  border: none;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--subtle);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}

.nav-btn.is-active {
  color: var(--navy);
  background: #e2e8f0;
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(12px + var(--safe-top)) 12px calc(12px + var(--safe-bottom));
}

.taxi-card-sheet {
  width: 100%;
  max-width: 440px;
  min-height: 75dvh;
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px;
  border: 4px solid #f59e0b;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.taxi-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.taxi-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.btn-taxi-close {
  background: #0f172a;
  color: #ffffff;
  min-height: 44px;
  padding: 8px 16px;
}

.taxi-body {
  padding: 24px 0;
  text-align: left;
}

.taxi-prompt {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #b45309;
}

.taxi-place {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.taxi-address {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
}

.taxi-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
}

.btn-taxi-maps {
  width: 100%;
  min-height: 52px;
  background: #0284c7;
  color: #ffffff;
  font-size: 16px;
}

/* PDF Modal */
.pdf-sheet {
  width: 100%;
  max-width: 720px;
  height: 88dvh;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-toolbar {
  padding: 10px 12px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdf-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-frame {
  flex: 1 1 auto;
  width: 100%;
  border: none;
  background: #334155;
}

/* Danger / Post-trip Wipe */
.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-text-danger {
  margin-top: 14px;
  background: transparent;
  border: none;
  color: #b91c1c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 40px;
}

.wipe-card {
  border-color: #fecaca;
  background: #fff5f5;
}

.sos-banner-notes {
  font-size: 11px;
  opacity: 0.92;
  margin-top: 2px;
}

/* ===== Trip-agnostic additions (compact type, matches the reduced font scale) ===== */
.taxi-prompt-en, .taxi-place-en {
  margin: -8px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}

.draft-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 11px;
  line-height: 1.35;
}
.draft-banner strong { font-size: 11px; letter-spacing: 0.04em; }

.party-line { margin: 4px 0; font-size: 12px; font-weight: 600; color: var(--ink); }

.route-list { list-style: none; margin: 0; padding: 0; }
.route-item {
  padding: 7px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.route-item:first-child { border-top: none; }
.route-top { display: flex; align-items: baseline; gap: 6px; }
.route-day { font-size: 12px; font-weight: 800; color: var(--accent-dark); min-width: 40px; }
.route-date { font-size: 11px; color: var(--subtle); }
.route-drive, .day-drive {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy-2);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.route-drive.is-long, .day-drive.is-long { background: var(--amber-bg); border-color: #fcd34d; color: #92400e; }
.route-city { font-size: 12px; font-weight: 700; margin-top: 2px; }
.route-sites { font-size: 11px; color: var(--muted); line-height: 1.35; }
.day-drive { display: inline-block; margin: 4px 0 0; }

.tip-line { margin: 4px 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.tip-line strong { color: var(--ink); }

/* Driving legs */
.leg-card {
  background: #eef6fb;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  padding: 7px 9px;
}
.leg-main { display: flex; gap: 8px; align-items: flex-start; }
.leg-time { font-size: 11px; font-weight: 800; color: var(--accent-dark); min-width: 34px; padding-top: 1px; }
.leg-body { flex: 1; min-width: 0; }
.leg-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.leg-meta { font-size: 10px; color: var(--subtle); font-weight: 600; }
.leg-note { font-size: 10px; color: #92400e; margin-top: 2px; line-height: 1.35; }
.leg-card .stop-actions { margin-top: 5px; }

.stop-local { margin: -2px 0 3px; font-size: 11px; color: var(--subtle); font-style: italic; }
.stop-info { margin: 3px 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.stop-notes { color: #334155; }
.stop-card.is-stay { border-left: 3px solid var(--green); }

/* Self-guided tour */
.tour-box {
  margin-top: 8px;
  border: 1px solid #c7d2fe;
  background: #f5f7ff;
  border-radius: 10px;
  padding: 6px 9px;
}
.tour-box summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #3730a3;
  cursor: pointer;
  list-style: none;
}
.tour-box summary::-webkit-details-marker { display: none; }
.tour-box summary::after { content: '▸'; margin-left: 6px; }
.tour-box[open] summary::after { content: '▾'; }
.tour-mins { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--subtle); }
.tour-intro { margin: 6px 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.tour-points { list-style: none; margin: 0; padding: 0; }
.tour-point { padding: 6px 0; border-top: 1px solid #e0e7ff; }
.tour-point-head { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tour-num {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.tour-stand { margin: 3px 0; font-size: 11px; color: #3730a3; }
.tour-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #4f46e5; }
.tour-narration { margin: 3px 0; font-size: 11px; line-height: 1.45; color: var(--ink); }
.tour-look ul { margin: 2px 0 0; padding-left: 16px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.tour-express { margin: 6px 0 2px; font-size: 11px; color: #92400e; }

/* SOS grid & phrases */
.sos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.sos-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 4px;
  border-radius: 10px;
  background: var(--red-bg);
  color: var(--red);
  text-decoration: none;
}
.sos-tile-num { font-size: 18px; font-weight: 900; }
.sos-tile-label { font-size: 10px; font-weight: 600; text-align: center; line-height: 1.2; }
.note-list { margin: 4px 0 0; padding-left: 16px; font-size: 11px; line-height: 1.45; color: var(--muted); }
.note-list li { margin-bottom: 3px; }
.phrase-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1px 8px; padding: 4px 0; border-top: 1px solid var(--border); font-size: 11px; }
.phrase-en { color: var(--muted); }
.phrase-local { font-weight: 700; }
.phrase-say { grid-column: 2; font-size: 10px; color: var(--subtle); font-style: italic; }
.info-icon { margin-right: 4px; }
.leg-card .btn { min-height: 30px; padding: 4px 10px; font-size: 11px; border-radius: 8px; }
.leg-card .stop-actions { display: flex; gap: 6px; }
.leg-card .btn-apple-maps { flex: 0 0 auto; }

/* ---- Before you go ---- */
.byg-toc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.byg-toc-link { font-size: 11px; padding: 3px 7px; border-radius: 10px; background: var(--surface-2, #eef2f7); color: inherit; text-decoration: none; }
.byg-card > summary { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; cursor: pointer; list-style: none; }
.byg-card > summary::-webkit-details-marker { display: none; }
.byg-card[open] > summary { margin-bottom: 6px; }
.byg-status { font-size: 11px; background: #fff6db; color: #7a5a00; padding: 4px 6px; border-radius: 6px; margin: 0 0 6px; }
.byg-list { margin: 0 0 6px; padding-left: 16px; font-size: 11.5px; line-height: 1.4; }
.byg-list li { margin-bottom: 3px; }
.byg-ok { color: #1b7f3b; font-weight: 700; }
.byg-unv { color: #b26a00; font-weight: 700; }
.byg-src { font-size: 10px; color: #5a6b80; }
.byg-sub { font-size: 12px; margin: 8px 0 3px; }
.video-block { margin-top: 6px; border-top: 1px dashed #d5dce6; padding-top: 6px; }
.video-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; margin-bottom: 3px; }
.video-list { list-style: none; margin: 0 0 4px; padding: 0; }
.video-item { padding: 3px 0; border-bottom: 1px solid #eef1f5; }
.video-item:last-child { border-bottom: 0; }
.video-link { display: flex; gap: 5px; align-items: baseline; font-size: 11.5px; font-weight: 600; color: #0b5cad; text-decoration: none; }
.video-icon { color: #c4302b; font-size: 10px; }
.video-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 10px; color: #5a6b80; padding-left: 15px; }
.video-note { font-style: italic; }
.chip-net { background: #e8eefc; color: #2b4c9a; font-size: 10px; }
.chip-kids { background: #e5f7ea; color: #1b7f3b; font-size: 10px; }
.kids-box { font-size: 11.5px; line-height: 1.4; background: #f3f8ec; border-left: 3px solid #7cb342; padding: 5px 7px; border-radius: 4px; margin: 6px 0; }
.kids-label { display: block; font-weight: 700; font-size: 10.5px; color: #4d7c0f; margin-bottom: 1px; }
.nav-label { white-space: nowrap; }
.byg-tel { font-weight: 700; color: #0b5cad; text-decoration: none; white-space: nowrap; }
.byg-group { font-weight: 500; color: #5a6b80; font-size: 11px; }
.byg-credit { font-weight: 600; }
