  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { background: var(--navy); touch-action: pan-x pan-y; }

  :root {
    --navy: #1a1a2e;
    --navy-light: #2d2d4e;
    --bg: #f0f2f5;
    --card: #fff;
    --green: #28a745;
    --green-bg: #d4edda;
    --green-fg: #155724;
    --yellow-bg: #fff3cd;
    --yellow-fg: #856404;
    --red-bg: #f8d7da;
    --red-fg: #721c24;
    --gray-bg: #f7f8fa;
    --text-muted: #888;
    --text-light: #555;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--navy);
    color: var(--navy);
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    padding-top: var(--header-h, 60px);
    overflow-x: auto;
  }

  header {
    background: var(--navy);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  header h1 { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.5px; margin: 0; }
  header svg { flex-shrink: 0; }

  /* ===== SETTINGS BAR ===== */
  .settings {
    background: var(--card);
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
    box-shadow: var(--shadow);
    position: sticky;
    left: 0;
    width: calc(100vw - var(--sb, 0px));
    box-sizing: border-box;
  }

  .setting-group { display: flex; flex-direction: column; gap: 4px; }

  .setting-group label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-light);
  }

  .slider-row { display: flex; align-items: center; gap: 4px; }
  .slider-row input[type="range"] { width: 100%; flex: 1; accent-color: var(--navy); height: 24px; }
  .slider-val {
    font-size: 0.78rem; font-weight: 700; min-width: 56px; width: 56px;
    text-align: center; color: var(--navy); white-space: nowrap;
    border: 1px solid transparent; border-radius: 4px; padding: 2px 4px;
    background: var(--gray-bg); font-family: inherit;
    transition: border-color .15s;
  }
  .slider-val:focus { outline: none; border-color: var(--navy); background: #fff; }

  .setting-group select {
    padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid #ccc;
    font-size: 0.85rem; background: #fff; color: var(--navy); font-weight: 600;
    width: 100%;
  }

  .btn-toggle {
    background: transparent; color: var(--navy); border: 1.5px solid #ccc;
    padding: 4px 8px; border-radius: var(--radius-sm); font-size: 0.82rem;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
  }
  .btn-toggle:hover { border-color: var(--navy); }
  .btn-toggle.open { background: var(--navy); color: #fff; border-color: var(--navy); }

  .filters-panel {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
  }
  .filters-panel.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
  }

  .btn-preset {
    background: #fff; color: var(--navy); border: 1.5px solid var(--navy);
    padding: 5px 0; border-radius: var(--radius-sm); font-size: 0.72rem;
    font-weight: 600; cursor: pointer; transition: all 0.15s;
    white-space: nowrap; flex: 1; text-align: center;
  }
  .btn-preset:hover { background: var(--navy); color: #fff; }
  .btn-preset.active { background: var(--navy); color: #fff; }

  /* ===== DUAL RANGE SLIDER ===== */
  .range-slider {
    position: relative;
    width: 100%;
    flex: 1;
    height: 28px;
    min-width: 100px;
  }
  .range-slider .track {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
  }
  .range-slider .track-fill {
    position: absolute;
    top: 12px;
    height: 4px;
    background: var(--navy);
    border-radius: 2px;
  }
  .range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    top: 0;
    height: 28px;
    margin: 0;
    z-index: 3;
  }
  .range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
  }
  .range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
    pointer-events: all;
    margin-top: -9px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 4;
  }
  .range-slider input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
  }
  .range-slider input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 4;
  }
  .range-slider-label {
    font-size: 0.78rem; font-weight: 700; color: var(--navy); white-space: nowrap;
    min-width: 70px; text-align: center;
    border: 1px solid transparent; border-radius: 4px; padding: 2px 4px;
    background: var(--gray-bg); font-family: inherit;
    transition: border-color .15s;
  }
  .range-slider-label:focus { outline: none; border-color: var(--navy); background: #fff; }

  /* ===== SECTIONS ===== */
  .home-section { padding: 16px 20px 0; }

  .section-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px;
    padding-left: 20px;
    position: sticky;
    left: 0;
    width: calc(100vw - var(--sb, 0px));
    box-sizing: border-box;
  }

  .home-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }

  .home-card {
    border-radius: var(--radius); padding: 12px 14px; min-width: 80px;
    text-align: center; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
    flex-shrink: 0;
  }
  .home-card:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }

  .home-card .hc-date { font-size: 0.7rem; font-weight: 600; opacity: 0.8; }
  .home-card .hc-score { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
  .home-card .hc-rules { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; opacity: 0.85; }
  .home-card .hc-time { font-size: 0.62rem; opacity: 0.7; margin-top: 2px; }

  /* ===== DESTINATION GRID ===== */
  .dest-section { padding: 16px 0 24px; }
  .grid-wrapper { padding: 0 20px; }

  .grid-table {
    border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 500px;
  }

  .grid-table th {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.3px; color: var(--text-light); padding: 6px 4px; text-align: center;
    background: var(--bg); position: sticky; z-index: 10;
    top: calc(var(--header-h, 68px) + 10px);
    box-shadow: 0 -14px 0 var(--bg), 0 3px 0 var(--bg);
  }

  .grid-table th.airport-header { text-align: left; min-width: 70px; max-width: 110px; z-index: 12; position: sticky; left: 0; background: var(--bg); top: calc(var(--header-h, 68px) + 10px); box-shadow: 0 -14px 0 var(--bg); }

  .grid-table td.airport-label {
    font-size: 0.9rem; font-weight: 700; color: var(--navy);
    padding: 8px 10px; vertical-align: middle; white-space: normal; max-width: 110px;
    position: sticky; left: 0; background: var(--bg); z-index: 11;
  }

  .grid-table td.airport-label .apt-top {
    display: flex; align-items: center; white-space: nowrap;
  }
  .grid-table td.airport-label .apt-name {
    font-size: 0.72rem; font-weight: 400; color: #777; display: block;
    overflow-wrap: break-word; hyphens: auto;
  }
  .grid-table td.airport-label .apt-rwy {
    font-size: 0.64rem; font-weight: 400; color: #aaa; display: block;
  }
  .grid-table td.airport-label .apt-dist {
    font-size: 0.6rem; font-weight: 600; color: #999; margin-left: 3px;
  }
  .grid-table td.airport-label .apt-route {
    font-size: 0.6rem; font-weight: 400; color: #2196f3; display: block; font-style: italic;
  }

  .cell {
    border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s; min-width: 62px;
    vertical-align: middle; position: relative; z-index: 1;
  }
  .cell:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); z-index: 1; }
  .cell:active { transform: scale(0.97); }

  .cell .score { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
  .cell .rules { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; opacity: 0.85; }
  .cell .best-time { font-size: 0.58rem; margin-top: 2px; opacity: 0.7; }

  .score-green  { background: var(--green-bg); color: var(--green-fg); }
  .score-yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
  .score-red    { background: var(--red-bg); color: var(--red-fg); }
  .score-none   { background: #e9ecef; color: #999; }

  /* ===== DETAIL PANEL ===== */
  .detail-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0);
    z-index: 200; justify-content: center; align-items: flex-end;
    transition: background 0.3s ease;
  }
  .detail-overlay.open { display: flex; }
  .detail-overlay.visible { background: rgba(0,0,0,0.4); }

  .detail-panel {
    background: var(--card); border-radius: 16px 16px 0 0; padding: 24px 20px;
    max-width: 520px; width: 100%; box-shadow: var(--shadow-lg);
    position: relative; max-height: 85vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.45s ease;
    will-change: transform, opacity;
  }
  .detail-panel.show { transform: translateY(0); opacity: 1; }
  .detail-panel.swiping { transition: none; }
  .detail-panel.dismissing { transition: transform 0.2s ease, opacity 0.2s ease; }

  /* Mobile fullscreen detail panel */
  @media (max-width: 768px) {
    .detail-overlay { align-items: stretch; }
    .detail-panel {
      max-width: 100%; max-height: 100%; height: 100%;
      border-radius: 0; padding: 20px 16px;
      overflow-y: auto;
    }
  }
  .detail-panel h2 { font-size: 1.1rem; margin-bottom: 4px; }
  .detail-panel .detail-sub { font-size: 0.8rem; color: #777; margin-bottom: 14px; }

  .detail-panel .detail-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px;
  }

  .detail-item { background: var(--gray-bg); border-radius: 8px; padding: 10px 12px; }
  .detail-item .di-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
  .detail-item .di-value { font-size: 1rem; font-weight: 700; color: var(--navy); }

  .detail-reasons { margin-top: 8px; }
  .detail-reasons h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
  .detail-reasons ul { list-style: none; padding: 0; }
  .detail-reasons li { font-size: 0.82rem; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
  .detail-reasons li:last-child { border-bottom: none; }

  .detail-close {
    position: absolute; top: 12px; right: 16px; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: #999; line-height: 1;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  }
  .detail-close:hover { color: #333; }

  .status-msg { text-align: center; padding: 48px 24px; font-size: 1rem; color: var(--text-muted); }
  .status-msg.error { color: #c0392b; }

  @keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
  }
  .shimmer-row {
    display: flex; gap: 6px; padding: 8px 16px;
  }
  .shimmer-block {
    height: 52px; border-radius: var(--radius-sm); flex: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
  }
  .shimmer-label { width: 80px; flex: none; }

  /* ===== MOBILE ===== */
  @media (max-width: 768px) {
    header { padding: 10px 14px; }
    header h1 { font-size: 1rem; }

    .settings {
      padding: 10px 12px;
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .btn-preset { font-size: 0.65rem; padding: 4px 0; }

    .filters-panel { grid-template-columns: 1fr 1fr; gap: 8px; }

    .setting-group select { font-size: 0.8rem; padding: 8px; }

    .home-section { padding-left: 10px; padding-right: 10px; }
    .section-label { padding-left: 10px; }
    .grid-wrapper { padding: 0 10px; }

    .grid-table { border-spacing: 2px; min-width: 400px; }
    .cell { min-width: 52px; padding: 6px 3px; }
    .cell .score { font-size: 0.95rem; }
    .cell .rules { font-size: 0.55rem; }
    .cell .best-time { font-size: 0.52rem; }

    .grid-table td.airport-label { font-size: 0.8rem; padding: 5px 7px; }
    .grid-table td.airport-label .apt-name { font-size: 0.65rem; }
    .grid-table td.airport-label .apt-rwy { font-size: 0.58rem; }
    .grid-table td.airport-label .apt-route { font-size: 0.54rem; }

    .detail-panel .detail-grid { gap: 5px; grid-template-columns: 1fr 1fr; }
    .detail-item { padding: 6px 7px; }
    .detail-item .di-value { font-size: 0.82rem; }
    .detail-item .di-label { font-size: 0.56rem; }

  }

  @media (min-width: 769px) {
    .detail-overlay { align-items: center; }
    .detail-panel { border-radius: 16px; }
    .settings { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  }

  @media (max-width: 480px) {
    .settings { padding: 8px 10px; }

    .btn-preset { font-size: 0.58rem; padding: 3px 0; }

    .filters-panel { grid-template-columns: 1fr; gap: 6px; }

    .grid-table { min-width: 350px; }
    .cell { min-width: 44px; padding: 5px 2px; }
    .cell .score { font-size: 0.85rem; }
    .cell .rules { font-size: 0.5rem; }
    .cell .best-time { font-size: 0.5rem; }

    .detail-panel .detail-grid { grid-template-columns: 1fr 1fr; }
  }

  /* Add-airport inline search */
  .add-airport-bar {
    position: relative;
  }
  .add-airport-bar input {
    width: 100%; padding: 6px 8px; border: 1.5px dashed #ccc;
    border-radius: var(--radius-sm); font-size: 0.75rem; font-family: inherit;
    color: var(--navy); background: var(--card); transition: border-color 0.15s;
  }
  .add-airport-bar input:focus { outline: none; border-color: var(--green); border-style: solid; }
  .add-airport-bar input::placeholder { color: #aaa; }
  .add-dropdown {
    position: absolute; left: 0; right: 0; bottom: 100%; background: #fff;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; box-shadow: var(--shadow-lg);
    z-index: 50; max-height: 200px; overflow-y: auto;
  }
  .add-dd-item { padding: 10px 12px; font-size: 0.82rem; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
  .add-dd-item:hover, .add-dd-item:active { background: #e8f5e9; }

  /* Delete button on custom airports */
  .apt-delete { display: inline-block; margin-left: 4px; color: #ccc; cursor: pointer; font-size: 0.75rem; font-weight: 700; vertical-align: middle; transition: color .15s; }
  .apt-delete:hover { color: #e74c3c; }

  /* ===== COMMENTS ===== */
  .comments-section {
    padding: 12px 20px 40px;
    position: sticky; left: 0;
    width: calc(100vw - var(--sb, 0px));
    box-sizing: border-box;
  }
  .comments-inner { max-width: 600px; }
  .comment-form {
    display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
  }
  .comment-label {
    font-size: 0.75rem; font-weight: 700; color: var(--text-light);
    white-space: nowrap;
  }
  .comment-form input {
    flex: 1; padding: 6px 8px; border: 1.5px solid #ccc; border-radius: var(--radius-sm);
    font-size: 0.8rem; font-family: inherit; color: var(--navy); background: #fff;
    transition: border-color 0.15s; min-width: 0;
  }
  .comment-form input:focus { outline: none; border-color: var(--navy); }
  .comment-btn {
    background: var(--navy); color: #fff; border: none;
    padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem;
    font-weight: 600; cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
  }
  .comment-btn:hover { opacity: 0.85; }
  .comment-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .comments-list { display: flex; flex-direction: column; gap: 6px; }
  .comment-card {
    font-size: 0.8rem; color: var(--text-light); line-height: 1.4;
    padding: 4px 0; border-bottom: 1px solid #e8e8e8; word-break: break-word;
  }
  .comment-card .comment-time { font-size: 0.65rem; color: var(--text-muted); margin-right: 6px; }
  .comment-delete { color: #ccc; cursor: pointer; font-weight: 700; margin-left: 4px; transition: color .15s; }
  .comment-delete:hover { color: #e74c3c; }

  .about-section {
    background: var(--navy);
    color: #d8dce6;
    padding: 40px 20px 60px;
    margin-top: 40px;
    font-size: 0.95rem;
    line-height: 1.6;
    scroll-margin-top: 90px;
    position: sticky;
    left: 0;
    width: calc(100vw - var(--sb, 0px));
    box-sizing: border-box;
  }
  .about-inner {
    max-width: 760px;
    margin: 0 auto;
  }
  .about-section h1 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 0 12px;
    line-height: 1.25;
  }
  .about-section h2 {
    color: #fff;
    font-size: 1.15rem;
    margin: 28px 0 8px;
  }
  .about-section p, .about-section li { color: #d8dce6; }
  .about-section .about-lead { font-size: 1.02rem; color: #e8ebf0; }
  .about-section ul { padding-left: 20px; margin: 8px 0 12px; }
  .about-section li { margin: 4px 0; }
  .about-section strong { color: #fff; }
  .about-section code {
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.85em;
  }
  .about-section .sources-list { margin: 10px 0 16px; }
  .about-section .sources-list dt {
    color: #fff;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 2px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }
  .about-section .sources-list dt:first-of-type { margin-top: 6px; }
  .about-section .sources-list dd {
    margin: 0 0 6px;
    padding-left: 0;
    color: #d8dce6;
  }
  .about-section .src-attrib {
    font-weight: 400;
    font-size: 0.78rem;
    color: #b8c0d0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1px 7px;
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    transition: background 0.15s, color 0.15s;
  }
  .about-section .src-attrib:hover {
    background: rgba(255,255,255,0.13);
    color: #fff;
  }

  .about-link {
    flex-shrink: 0;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 6px;
    background: #ffb000;
    color: var(--navy);
    border: 1.5px solid #ffb000;
    transition: background 0.25s, color 0.25s, border-color 0.25s, padding 0.25s, font-size 0.25s, box-shadow 0.25s;
    box-shadow: 0 0 0 0 rgba(255,176,0,0.6);
    animation: aboutPulse 2.2s ease-in-out infinite;
    white-space: nowrap;
  }
  .about-link:hover { background: #ffc433; border-color: #ffc433; }
  @keyframes aboutPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,176,0,0.55); }
    50%     { box-shadow: 0 0 0 6px rgba(255,176,0,0); }
  }
  .about-link.seen {
    background: transparent;
    color: rgba(255,255,255,0.55);
    border-color: transparent;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 6px;
    box-shadow: none;
    animation: none;
  }
  .about-link.seen:hover { color: #fff; }
  @media (max-width: 600px) {
    .about-link { font-size: 0.75rem; padding: 6px 10px; }
    .about-link.seen { font-size: 0.7rem; padding: 3px 5px; }
  }

  /* Quieter nav link for cross-page navigation (Destinations link in main header).
     Doesn't pulse like .about-link, so it doesn't compete for attention with
     the onboarding CTAs. */
  header .nav-link {
    flex-shrink: 0;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
    white-space: nowrap;
  }
  header .nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }

  /* Header dropdown shouldn't shrink below ~100px on mobile, and on small
     screens we hide the secondary "Destinations" text and show only an icon
     to avoid squishing the home selector. */
  header #sel-home { min-width: 100px; }
  @media (max-width: 480px) {
    header { gap: 6px; padding: 10px 10px; }
    header #sel-home { min-width: 90px; }
    header .nav-link { font-size: 0.75rem; padding: 5px 8px; }
  }

  /* ===== Tour (Driver.js) ===== */
  body.tour-active header { z-index: 1 !important; }
  .driver-popover.wvfr-tour {
    background: #1a1a2e;
    color: #f3f4f8;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    padding: 18px 20px 14px;
    max-width: 340px;
  }
  .driver-popover.wvfr-tour .driver-popover-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    padding-right: 28px;
  }
  .driver-popover.wvfr-tour .driver-popover-description {
    color: #d8dce6;
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .driver-popover.wvfr-tour .driver-popover-progress-text {
    color: #9ea4b3;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .driver-popover.wvfr-tour button.driver-popover-next-btn {
    background: #ffb000;
    color: #1a1a2e;
    border: none;
    font-weight: 700;
    text-shadow: none;
    border-radius: 6px;
    padding: 6px 14px;
  }
  .driver-popover.wvfr-tour button.driver-popover-prev-btn {
    background: transparent;
    color: #d8dce6;
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 600;
    text-shadow: none;
    border-radius: 6px;
    padding: 6px 14px;
  }
  .driver-popover.wvfr-tour button.driver-popover-close-btn {
    position: absolute;
    color: #d8dce6;
    font-size: 1.4rem;
    line-height: 1;
    top: 8px;
    right: 10px;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
  }
  .driver-popover.wvfr-tour button.driver-popover-close-btn:hover { color: #fff; }
  .driver-popover.wvfr-tour .driver-popover-arrow-side-bottom.driver-popover-arrow {
    border-bottom-color: #1a1a2e;
  }
  .driver-popover.wvfr-tour .driver-popover-arrow-side-top.driver-popover-arrow {
    border-top-color: #1a1a2e;
  }
  .driver-popover.wvfr-tour .driver-popover-arrow-side-left.driver-popover-arrow {
    border-left-color: #1a1a2e;
  }
  .driver-popover.wvfr-tour .driver-popover-arrow-side-right.driver-popover-arrow {
    border-right-color: #1a1a2e;
  }

  /* ===== Welcome toast ===== */
  .welcome-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, 120%);
    background: #1a1a2e;
    color: #f3f4f8;
    border: 1px solid rgba(255,176,0,0.4);
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.35);
    z-index: 9999;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
    max-width: calc(100vw - 24px);
  }
  .welcome-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  .welcome-toast .welcome-emoji { font-size: 1.1rem; line-height: 1; }
  .welcome-toast .welcome-text { white-space: nowrap; }
  .welcome-toast .welcome-start {
    background: #ffb000;
    color: #1a1a2e;
    border: none;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .welcome-toast .welcome-start:hover { background: #ffc433; }
  .welcome-toast .welcome-close {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    padding: 2px 8px;
    cursor: pointer;
    transition: color 0.15s;
  }
  .welcome-toast .welcome-close:hover { color: #fff; }
  @media (max-width: 480px) {
    .welcome-toast {
      font-size: 0.8rem;
      padding: 6px 6px 6px 12px;
    }
    .welcome-toast .welcome-text { white-space: normal; line-height: 1.25; }
    .welcome-toast .welcome-start { font-size: 0.75rem; padding: 5px 10px; }
  }
