
    :root {
      --forest: #1e4d3a;
      --forest-light: #2d6b50;
      --mint: #e8f5ee;
      --amber: #f59e0b;
      --amber-light: #fef3c7;
      --red: #dc2626;
      --red-light: #fee2e2;
      --gas-blue: #1d4ed8;
      --gas-blue-light: #dbeafe;
      --ocean: #0369a1;
      --ocean-light: #e0f2fe;
      --text: #1a1a1a;
      --muted: #6b7280;
      --border: #d1fae5;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: #f0fdf4;
      color: var(--text);
      line-height: 1.6;
    }

    /* ── Page Header ── */
    .site-header {
      background: var(--forest);
      color: #fff;
      padding: 2rem 1.5rem;
      text-align: center;
    }
    .site-header h1 {
      font-size: 2.4rem;
      font-weight: 800;
      letter-spacing: -0.5px;
    }
    .site-header p {
      margin-top: 0.4rem;
      opacity: 0.75;
      font-size: 0.95rem;
    }

    /* ── Tiles Gallery ── */
    .tiles-gallery {
      max-width: 960px;
      margin: 2rem auto 0;
      padding: 0 1rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
      gap: 1.5rem;
    }

    .itinerary-tile {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,0.10);
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      border: 2px solid transparent;
    }
    .itinerary-tile:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    }
    .itinerary-tile.active {
      border-color: var(--forest);
    }

    .tile-hero {
      background: var(--forest);
      color: #fff;
      padding: 2rem 1.5rem 1.5rem;
      text-align: center;
    }
    .tile-hero h2 {
      font-size: 1.5rem;
      font-weight: 800;
      line-height: 1.25;
    }
    .tile-hero .sub {
      margin-top: 0.4rem;
      opacity: 0.8;
      font-size: 0.9rem;
    }
    .tile-hero .badge {
      display: inline-block;
      margin-top: 0.85rem;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 999px;
      padding: 0.25rem 0.85rem;
      font-size: 0.8rem;
    }

    /* ocean theme for Key West tile */
    .itinerary-tile.ocean-theme .tile-hero { background: #0c4a6e; }
    .itinerary-tile.ocean-theme.active { border-color: var(--ocean); }
    .itinerary-tile.ocean-theme .tile-meta-item .value { color: var(--ocean); }

    .tile-meta {
      background: #fff;
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-top: none;
    }
    .tile-meta-item {
      padding: 0.85rem 1rem;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .tile-meta-item:nth-child(even) { border-right: none; }
    .tile-meta-item:nth-last-child(-n+2) { border-bottom: none; }
    .tile-meta-item .label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
      font-weight: 600;
    }
    .tile-meta-item .value {
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--forest);
      margin-top: 0.1rem;
    }
    .tile-meta-item .value.small { font-size: 0.73rem; }

    /* tile clickable area (hero + meta) */
    .tile-clickable { cursor: pointer; }
    .tile-clickable:hover .tile-hero { filter: brightness(1.08); }

    /* tile action bar */
    .tile-actions {
      display: flex;
      border-top: 1px solid var(--border);
    }
    .tile-start-btn {
      flex: 1;
      background: var(--forest);
      color: #fff;
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 700;
      padding: 0.85rem 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      border-right: 1px solid rgba(255,255,255,0.18);
      transition: opacity 0.12s;
    }
    .tile-start-btn:hover { opacity: 0.86; }
    .itinerary-tile.ocean-theme .tile-start-btn { background: #0c4a6e; }

    .tile-view-btn {
      flex: 1;
      background: #fff;
      color: var(--forest);
      border: none;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 700;
      padding: 0.85rem 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: background 0.12s;
      font-family: inherit;
      letter-spacing: 0.01em;
    }
    .tile-view-btn:hover { background: var(--mint); }
    .itinerary-tile.ocean-theme .tile-view-btn { color: var(--ocean); }
    .itinerary-tile.ocean-theme .tile-view-btn:hover { background: var(--ocean-light); }
    .tile-view-btn .arrow { transition: transform 0.2s; }
    .itinerary-tile.active .tile-view-btn .arrow { transform: rotate(90deg); }

    /* detail start bar */
    .detail-start-bar {
      background: #fff;
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0 0 8px 8px;
      padding: 0.85rem 1.2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }
    .detail-start-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--forest);
      color: #fff;
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 700;
      padding: 0.5rem 1.4rem;
      border-radius: 999px;
      transition: opacity 0.12s;
      white-space: nowrap;
    }
    .detail-start-link:hover { opacity: 0.85; }
    .detail-start-link.ocean { background: #0c4a6e; }
    .detail-start-note {
      font-size: 0.78rem;
      color: var(--muted);
    }

    /* ── Full Itinerary Detail ── */
    .itinerary-detail {
      display: none;
      max-width: 860px;
      margin: 0 auto;
      padding: 0 1rem 3rem;
      animation: fadeIn 0.25s ease;
    }
    .itinerary-detail.visible { display: block; }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── Trip Card ── */
    .trip-hero {
      background: var(--forest);
      color: #fff;
      border-radius: 12px 12px 0 0;
      padding: 2.5rem 2rem 2rem;
      text-align: center;
      margin-top: 2rem;
    }
    .trip-hero.ocean { background: #0c4a6e; }
    .trip-hero h2 {
      font-size: 2rem;
      font-weight: 800;
    }
    .trip-hero .sub {
      margin-top: 0.5rem;
      opacity: 0.8;
      font-size: 1rem;
    }
    .trip-hero .badge {
      display: inline-block;
      margin-top: 1rem;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 999px;
      padding: 0.3rem 1rem;
      font-size: 0.85rem;
    }

    /* ── Trip Meta Table ── */
    .trip-meta {
      background: #fff;
      border: 1px solid var(--border);
      border-top: none;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .trip-meta-item {
      padding: 1rem 1.2rem;
      border-right: 1px solid var(--border);
    }
    .trip-meta-item:last-child { border-right: none; }
    .trip-meta-item .label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
      font-weight: 600;
    }
    .trip-meta-item .value {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--forest);
      margin-top: 0.15rem;
    }
    .trip-meta-item .value.ocean { color: var(--ocean); }

    /* ── Alert Banner ── */
    .alert {
      background: var(--red-light);
      border: 1px solid #fca5a5;
      border-top: none;
      padding: 0.9rem 1.2rem;
      font-size: 0.85rem;
      color: var(--red);
      font-weight: 500;
    }
    .alert strong { display: block; margin-bottom: 0.2rem; }

    /* ── Gas Legend ── */
    .gas-legend {
      background: var(--gas-blue-light);
      border: 1px solid #93c5fd;
      border-top: none;
      padding: 0.9rem 1.2rem;
      font-size: 0.85rem;
      color: var(--gas-blue);
      font-weight: 500;
      border-radius: 0 0 8px 8px;
      margin-bottom: 1.5rem;
    }
    .gas-legend strong { display: block; margin-bottom: 0.2rem; }
    .gas-legend.ocean-legend {
      background: var(--ocean-light);
      border-color: #7dd3fc;
      color: var(--ocean);
    }

    /* ── Section Header ── */
    .section-header {
      background: var(--forest);
      color: #fff;
      border-radius: 8px;
      padding: 0.8rem 1.2rem;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      margin: 1.5rem 0 0.75rem;
    }
    .section-header.ocean { background: #0c4a6e; }
    .section-header.closed { background: #92400e; }
    .section-note {
      font-size: 0.82rem;
      color: var(--muted);
      font-style: italic;
      margin-bottom: 0.75rem;
      padding: 0 0.2rem;
      font-weight: 400;
      text-transform: none;
      letter-spacing: 0;
    }

    /* ── Stop Card ── */
    .stop {
      background: var(--mint);
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-bottom: 0.75rem;
      overflow: hidden;
    }
    .stop.start-stop { background: #f0fdf4; }
    .stop.end-stop   { background: #f0fdf4; }
    .stop.lunch-stop { background: #fffbeb; border-color: #fde68a; }
    .stop.warning-stop { background: var(--red-light); border-color: #fca5a5; }
    .stop.ocean-stop { background: var(--ocean-light); border-color: #7dd3fc; }

    /* ── Gas Stop ── */
    .stop.gas-stop {
      background: var(--gas-blue-light);
      border: 2px solid #3b82f6;
    }
    .stop.gas-stop .stop-header { background: var(--gas-blue); }
    .stop.gas-stop .stop-number { background: #fff; color: var(--gas-blue); }

    .stop-header {
      background: var(--forest-light);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
    }
    .stop.start-stop .stop-header  { background: var(--forest); }
    .stop.end-stop .stop-header    { background: var(--forest); }
    .stop.lunch-stop .stop-header  { background: #92400e; }
    .stop.warning-stop .stop-header{ background: var(--red); }
    .stop.ocean-stop .stop-header  { background: var(--ocean); }

    /* ocean theme overrides */
    .ocean-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) {
      background: var(--ocean-light);
      border-color: #bae6fd;
    }
    .ocean-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header {
      background: var(--ocean);
    }
    .ocean-theme-detail .stop.start-stop .stop-header,
    .ocean-theme-detail .stop.end-stop .stop-header { background: #0c4a6e; }
    .ocean-theme-detail .stop:not(.gas-stop) .stop-number { color: var(--ocean); }
    .ocean-theme-detail .stop.start-stop .stop-number,
    .ocean-theme-detail .stop.end-stop .stop-number { color: #0c4a6e; }
    .ocean-theme-detail .stop-body ul li::before { color: var(--ocean); }
    .ocean-theme-detail .maps-link { background: var(--ocean); }
    .ocean-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .ocean-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .ocean-theme-detail .dist-badge b { color: var(--ocean); }
    .ocean-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .ocean-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .ocean-theme-detail .section-header:not(.closed) { background: #0c4a6e; }

    .stop-number {
      background: #fff;
      color: var(--forest);
      font-weight: 800;
      font-size: 0.85rem;
      width: 2rem;
      height: 2rem;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .stop.lunch-stop .stop-number   { color: #92400e; }
    .stop.warning-stop .stop-number { color: var(--red); }

    .stop-header-info { flex: 1; color: #fff; }
    .stop-time {
      font-size: 1rem;
      font-weight: 700;
    }
    .stop-name {
      font-size: 0.82rem;
      opacity: 0.9;
      margin-top: 0.1rem;
    }
    .stop-duration {
      color: #fff;
      font-size: 0.78rem;
      font-weight: 600;
      background: rgba(0,0,0,0.2);
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      white-space: nowrap;
    }

    .stop-body { padding: 0.9rem 1rem; }
    .stop-body p {
      font-size: 0.88rem;
      margin-bottom: 0.5rem;
      color: #374151;
    }
    .stop-body ul { list-style: none; padding: 0; }
    .stop-body ul li {
      font-size: 0.83rem;
      color: #4b5563;
      padding: 0.15rem 0 0.15rem 1.2rem;
      position: relative;
    }
    .stop-body ul li::before {
      content: "●";
      position: absolute;
      left: 0;
      color: var(--forest);
      font-size: 0.6rem;
      top: 0.35rem;
    }
    .stop.gas-stop .stop-body ul li::before  { color: var(--gas-blue); }
    .stop.lunch-stop .stop-body ul li::before{ color: #92400e; }

    /* gas stop specifics */
    .gas-stats {
      display: flex;
      gap: 1rem;
      margin-top: 0.75rem;
      flex-wrap: wrap;
    }
    .gas-stat {
      background: #fff;
      border: 1px solid #93c5fd;
      border-radius: 6px;
      padding: 0.4rem 0.75rem;
      font-size: 0.8rem;
      color: var(--gas-blue);
    }
    .gas-stat strong { display: block; font-size: 1rem; font-weight: 800; }

    /* ── Stop Meta Bar ── */
    .stop-meta-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
      flex-wrap: wrap;
    }
    .maps-link {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      background: var(--forest);
      color: #fff;
      text-decoration: none;
      font-size: 0.77rem;
      font-weight: 600;
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      flex-shrink: 0;
    }
    .maps-link:hover { opacity: 0.82; }
    .stop.gas-stop .maps-link    { background: var(--gas-blue); }
    .stop.lunch-stop .maps-link  { background: #92400e; }
    .stop.warning-stop .maps-link{ background: var(--red); }
    .dist-badge {
      font-size: 0.77rem;
      color: var(--muted);
      font-weight: 500;
    }
    .dist-badge b { color: var(--forest); font-weight: 700; }
    .stop.gas-stop .dist-badge b    { color: var(--gas-blue); }
    .stop.lunch-stop .dist-badge b  { color: #92400e; }
    .stop.warning-stop .dist-badge b{ color: var(--red); }

    /* ── Timeline Summary Table ── */
    .timeline-section { margin-top: 2rem; }
    .timeline-section h3 {
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      background: var(--forest);
      padding: 0.7rem 1rem;
      border-radius: 8px 8px 0 0;
    }
    .timeline-section h3.ocean { background: #0c4a6e; }
    .timeline-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.82rem;
      background: #fff;
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0 0 8px 8px;
      overflow: hidden;
    }
    .timeline-table th {
      background: #f9fafb;
      padding: 0.55rem 0.75rem;
      text-align: left;
      font-weight: 600;
      color: var(--muted);
      border-bottom: 1px solid var(--border);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .timeline-table td {
      padding: 0.55rem 0.75rem;
      border-bottom: 1px solid #f3f4f6;
      vertical-align: middle;
    }
    .timeline-table tr:last-child td { border-bottom: none; }
    .timeline-table tr.gas-row td { background: var(--gas-blue-light); color: var(--gas-blue); font-weight: 600; }
    .timeline-table tr.end-row td { background: var(--mint); font-weight: 600; color: var(--forest); }
    .timeline-table tr.end-row.ocean td { background: var(--ocean-light); color: #0c4a6e; }

    /* ── Tips Section ── */
    .tips-section {
      margin-top: 2rem;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }
    .tips-section h3 {
      background: var(--forest);
      color: #fff;
      padding: 0.7rem 1rem;
      font-size: 1rem;
    }
    .tips-section h3.ocean { background: #0c4a6e; }
    .tips-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0;
    }
    .tip-item {
      padding: 0.9rem 1rem;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .tip-item:nth-child(even) { border-right: none; }
    .tip-item .tip-title {
      font-weight: 700;
      font-size: 0.85rem;
      color: var(--forest);
      margin-bottom: 0.25rem;
    }
    .tip-item .tip-title.ocean { color: var(--ocean); }
    .tip-item .tip-body {
      font-size: 0.8rem;
      color: #4b5563;
    }

    footer {
      text-align: center;
      padding: 1.5rem;
      font-size: 0.78rem;
      color: var(--muted);
    }

    /* ── Amber Return Theme (Atlanta → Philadelphia) ── */
    .itinerary-tile.amber-theme .tile-hero { background: #92400e; }
    .itinerary-tile.amber-theme.active { border-color: #b45309; }
    .itinerary-tile.amber-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.amber-theme .tile-start-btn { background: #92400e; }
    .itinerary-tile.amber-theme .tile-view-btn { color: #92400e; }
    .itinerary-tile.amber-theme .tile-view-btn:hover { background: #fffbeb; }

    .amber-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) {
      background: #fffbeb; border-color: #fde68a;
    }
    .amber-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #b45309; }
    .amber-theme-detail .stop.start-stop .stop-header,
    .amber-theme-detail .stop.end-stop .stop-header { background: #92400e; }
    .amber-theme-detail .stop:not(.gas-stop) .stop-number { color: #b45309; }
    .amber-theme-detail .stop.start-stop .stop-number,
    .amber-theme-detail .stop.end-stop .stop-number { color: #92400e; }
    .amber-theme-detail .stop-body ul li::before { color: #b45309; }
    .amber-theme-detail .maps-link { background: #b45309; }
    .amber-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .amber-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .amber-theme-detail .dist-badge b { color: #b45309; }
    .amber-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .amber-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .amber-theme-detail .section-header:not(.closed) { background: #92400e; }
    .amber-theme-detail .timeline-section h3 { background: #92400e; }
    .amber-theme-detail .timeline-table tr.end-row td { background: #fffbeb; color: #92400e; }
    .amber-theme-detail .tips-section h3 { background: #92400e; }
    .amber-theme-detail .tip-item .tip-title { color: #b45309; }

    /* ── Coral/Sunset Return Theme (Key West → Atlanta) ── */
    .itinerary-tile.coral-theme .tile-hero { background: #9f1239; }
    .itinerary-tile.coral-theme.active { border-color: #be123c; }
    .itinerary-tile.coral-theme .tile-meta-item .value { color: #be123c; }
    .itinerary-tile.coral-theme .tile-start-btn { background: #9f1239; }
    .itinerary-tile.coral-theme .tile-view-btn { color: #be123c; }
    .itinerary-tile.coral-theme .tile-view-btn:hover { background: #fff1f2; }

    .coral-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) {
      background: #fff1f2; border-color: #fecdd3;
    }
    .coral-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #be123c; }
    .coral-theme-detail .stop.start-stop .stop-header,
    .coral-theme-detail .stop.end-stop .stop-header { background: #9f1239; }
    .coral-theme-detail .stop:not(.gas-stop) .stop-number { color: #be123c; }
    .coral-theme-detail .stop.start-stop .stop-number,
    .coral-theme-detail .stop.end-stop .stop-number { color: #9f1239; }
    .coral-theme-detail .stop-body ul li::before { color: #be123c; }
    .coral-theme-detail .maps-link { background: #be123c; }
    .coral-theme-detail .stop.lunch-stop .maps-link { background: #9f1239; }
    .coral-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .coral-theme-detail .dist-badge b { color: #be123c; }
    .coral-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .coral-theme-detail .stop.lunch-stop .dist-badge b { color: #9f1239; }
    .coral-theme-detail .section-header:not(.closed) { background: #9f1239; }
    .coral-theme-detail .timeline-section h3 { background: #9f1239; }
    .coral-theme-detail .timeline-table tr.end-row td { background: #fff1f2; color: #9f1239; }
    .coral-theme-detail .tips-section h3 { background: #9f1239; }
    .coral-theme-detail .tip-item .tip-title { color: #be123c; }

    /* ── Pacific / Teal Theme (SF → LA via Yosemite & Big Sur) ── */
    .itinerary-tile.pacific-theme .tile-hero { background: #0d4f4a; }
    .itinerary-tile.pacific-theme.active { border-color: #0f766e; }
    .itinerary-tile.pacific-theme .tile-meta-item .value { color: #0f766e; }
    .itinerary-tile.pacific-theme .tile-start-btn { background: #0d4f4a; }
    .itinerary-tile.pacific-theme .tile-view-btn { color: #0f766e; }
    .itinerary-tile.pacific-theme .tile-view-btn:hover { background: #f0fdfa; }

    .pacific-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) {
      background: #f0fdfa; border-color: #99f6e4;
    }
    .pacific-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #0f766e; }
    .pacific-theme-detail .stop.start-stop .stop-header,
    .pacific-theme-detail .stop.end-stop .stop-header { background: #0d4f4a; }
    .pacific-theme-detail .stop.end-stop { background: #f0fdfa; }
    .pacific-theme-detail .stop:not(.gas-stop) .stop-number { color: #0f766e; }
    .pacific-theme-detail .stop.start-stop .stop-number,
    .pacific-theme-detail .stop.end-stop .stop-number { color: #0d4f4a; }
    .pacific-theme-detail .stop-body ul li::before { color: #0f766e; }
    .pacific-theme-detail .maps-link { background: #0f766e; }
    .pacific-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .pacific-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .pacific-theme-detail .dist-badge b { color: #0f766e; }
    .pacific-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .pacific-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .pacific-theme-detail .section-header:not(.closed) { background: #0d4f4a; }
    .pacific-theme-detail .timeline-section h3 { background: #0d4f4a; }
    .pacific-theme-detail .timeline-table tr.end-row td { background: #f0fdfa; color: #0d4f4a; }
    .pacific-theme-detail .tips-section h3 { background: #0d4f4a; }
    .pacific-theme-detail .tip-item .tip-title { color: #0f766e; }

    /* ── PCH / Indigo Theme (SF → LA via Coast Only) ── */
    .itinerary-tile.pch-theme .tile-hero { background: #312e81; }
    .itinerary-tile.pch-theme.active { border-color: #4338ca; }
    .itinerary-tile.pch-theme .tile-meta-item .value { color: #4338ca; }
    .itinerary-tile.pch-theme .tile-start-btn { background: #312e81; }
    .itinerary-tile.pch-theme .tile-view-btn { color: #4338ca; }
    .itinerary-tile.pch-theme .tile-view-btn:hover { background: #eef2ff; }

    .pch-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) {
      background: #eef2ff; border-color: #c7d2fe;
    }
    .pch-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #4338ca; }
    .pch-theme-detail .stop.start-stop .stop-header,
    .pch-theme-detail .stop.end-stop .stop-header { background: #312e81; }
    .pch-theme-detail .stop.end-stop { background: #eef2ff; }
    .pch-theme-detail .stop:not(.gas-stop) .stop-number { color: #4338ca; }
    .pch-theme-detail .stop.start-stop .stop-number,
    .pch-theme-detail .stop.end-stop .stop-number { color: #312e81; }
    .pch-theme-detail .stop-body ul li::before { color: #4338ca; }
    .pch-theme-detail .maps-link { background: #4338ca; }
    .pch-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .pch-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .pch-theme-detail .dist-badge b { color: #4338ca; }
    .pch-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .pch-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .pch-theme-detail .section-header:not(.closed) { background: #312e81; }
    .pch-theme-detail .timeline-section h3 { background: #312e81; }
    .pch-theme-detail .timeline-table tr.end-row td { background: #eef2ff; color: #312e81; }
    .pch-theme-detail .tips-section h3 { background: #312e81; }
    .pch-theme-detail .tip-item .tip-title { color: #4338ca; }

    /* ── Tab Navigation ── */
    .tabs-nav {
      background: #163228;
      display: flex;
      padding: 0 1.5rem;
      gap: 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .tab-btn {
      background: none;
      border: none;
      color: rgba(255,255,255,0.6);
      font-size: 0.88rem;
      font-weight: 600;
      padding: 0.85rem 1.4rem;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      margin-bottom: -1px;
      font-family: inherit;
      transition: color 0.15s, border-color 0.15s;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }
    .tab-btn:hover { color: rgba(255,255,255,0.88); }
    .tab-btn.active { color: #fff; border-bottom-color: #4ade80; }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* ── Country Navigation ── */
    .country-nav {
      background: #0f2d22;
      display: flex;
      justify-content: center;
      gap: 0.75rem;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .country-btn {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      color: rgba(255,255,255,0.65);
      font-size: 0.95rem;
      font-weight: 700;
      padding: 0.55rem 1.6rem;
      cursor: pointer;
      border-radius: 999px;
      font-family: inherit;
      transition: all 0.15s;
      letter-spacing: 0.03em;
    }
    .country-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
    .country-btn.active { background: #fff; color: #0f2d22; border-color: #fff; }
    .tk-verify { margin: 1.5rem 0 .5rem; padding: .7rem .9rem; border: 1px dashed var(--shell-line, #cfe3d8); border-radius: 12px; font-size: .82rem; line-height: 1.45; color: #4a5a52; background: #f7fbf8; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
    .tk-verify button { font: inherit; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid #1f8a5b; background: #fff; color: #14684a; cursor: pointer; }
    .tk-verify .vs-ok { color: #14684a; font-weight: 600; }
    .rp-box { padding: 1.2rem 1.3rem; max-width: 460px; }
    .rp-box h3 { margin: 0 0 .3rem; } .rp-about { margin: 0 0 .8rem; color: #5b6b62; font-size: .85rem; }
    .rp-lbl { display: block; font-size: .8rem; font-weight: 600; margin: .6rem 0 .25rem; }
    .rp-box textarea, .rp-box input { width: 100%; box-sizing: border-box; font: inherit; padding: .5rem .6rem; border: 1px solid #cfe3d8; border-radius: 8px; }
    .rp-status { min-height: 1.2em; font-size: .85rem; margin: .5rem 0 0; } .rp-actions { display: flex; gap: .6rem; margin-top: .6rem; }
    .rp-actions .cta { font: inherit; font-weight: 600; padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: #17704a; color: #fff; cursor: pointer; }
    .rp-actions .cta:disabled { opacity: .6; cursor: default; }
    .rp-cancel { font: inherit; background: none; border: 0; color: #5b6b62; cursor: pointer; }
    @media print { .tk-verify button { display: none; } }
    /* ── Dark mode: the whole page is inverted, then photos, maps and video are turned back ── */
    html { color-scheme: light; }
    html[data-theme="dark"] { color-scheme: dark; filter: invert(1) hue-rotate(180deg); background: #fff; }
    html[data-theme="dark"] img, html[data-theme="dark"] video, html[data-theme="dark"] .route-map-scroll svg,
    html[data-theme="dark"] .place-photo, html[data-theme="dark"] .side-thumb, html[data-theme="dark"] .tk-keepcolor, html[data-theme="dark"] .pass-modal { filter: invert(1) hue-rotate(180deg); }
    html[data-theme="dark"] .pass-modal { color-scheme: light; }
    html[data-theme="dark"] .pass-modal img, html[data-theme="dark"] .pass-modal video { filter: none; }
    @media print { html[data-theme="dark"], html[data-theme="dark"] img, html[data-theme="dark"] .route-map-scroll svg, html[data-theme="dark"] .place-photo, html[data-theme="dark"] .side-thumb { filter: none; } }
    #tk-theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    #tk-theme-btn .tm-auto-badge { font-size: 9px; font-weight: 700; margin-left: 1px; }
    #tk-plan-btn { position: relative; } #tk-plan-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
    .plan-count { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
    .trip-plan-bar { margin: .8rem 0 .2rem; }
    .trip-plan-btn { font: inherit; font-size: .9rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px; border: 1px solid #f59e0b; background: #fef3c7; color: #78350f; cursor: pointer; }
    .trip-plan-btn[aria-pressed="true"] { background: #f59e0b; color: #1f1300; }
    @media print { .trip-plan-bar { display: none; } }
    .ico-flag { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
    .ico-flag.on { fill: currentColor; } .ico-flag.on path:last-child { stroke: currentColor; fill: none; }
    .trip-plan-btn .ico-flag { margin-right: .25rem; }
    #tk-plan-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
    .plan-star { font: inherit; font-size: 1rem; line-height: 1; padding: .3rem .55rem; border-radius: 999px; border: 1px solid #cfe3d8; background: #fff; color: #a16207; cursor: pointer; }
    .plan-star[aria-pressed="true"] { background: #fef3c7; border-color: #f59e0b; }
    .stop-meta-bar .plan-star { flex: none; }
    .plan-box { max-width: 520px; padding: 1.1rem 1.2rem; max-height: 92vh; overflow-y: auto; }
    .plan-head { display: flex; align-items: center; justify-content: space-between; } .plan-head h3 { margin: 0; }
    .plan-x { font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #5b6b62; }
    .plan-sub { margin: .2rem 0 .6rem; color: #5b6b62; font-size: .85rem; }
    .plan-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 34vh; flex: none; }
    .plan-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-top: 1px solid #e3efe8; }
    .plan-list li:first-child { border-top: 0; }
    .plan-n { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #1f8a5b; color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .plan-t { flex: 1; min-width: 0; } .plan-t b { display: block; font-size: .9rem; } .plan-t span { display: block; font-size: .75rem; color: #5b6b62; }
    .plan-list button { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1px solid #cfe3d8; background: #fff; cursor: pointer; font-size: .9rem; color: inherit; }
    .plan-list button:disabled { opacity: .35; cursor: default; }
    /* Passport app (/Passport/): only the passport, none of the trips behind it */
    html.passport-only .skip-link, html.passport-only .topbar, html.passport-only main, html.passport-only footer, html.passport-only .gs-modal:not(#pass-modal) { display: none !important; }
    html.passport-only body, html.passport-only .pass-modal { background: #0b1020; }
    /* Shown as a popup over the Orgbricks home page: see-through, so the page behind is visible (blurred by the page that holds this frame) */
    html.in-popup, html.in-popup body { background: transparent !important; }
    html.in-popup .pass-modal { background: rgba(10, 14, 28, 0.35); }
    .pass-count { white-space: nowrap; }
    html.in-popup .pass-wrap { position: relative; width: min(560px, 100%, calc((100vh - 130px) * 0.77)); }
    html.in-popup .pass-wrap.spread { width: min(1240px, 100%, calc((100vh - 130px) * 1.65)); }
    @media (max-width: 560px) { .pass-wrap .pass-x { top: -14px !important; right: 4px !important; } }
    .pass-wrap .pass-x { position: absolute; top: -16px; right: -16px; z-index: 6; width: 34px !important; height: 34px !important; min-width: 0; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.55) !important; background: #14182c !important; color: #fff !important; font-size: 16px; line-height: 32px; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
    .plan-gd { margin-top: .7rem; font-size: .78rem; color: #5b6b62; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .plan-gd[hidden] { display: none; }
    .plan-gd button { font: inherit; font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid #cfe3d8; background: #fff; cursor: pointer; }
    .plan-mks { display: flex; gap: .35rem; margin-top: .3rem; flex-wrap: wrap; }
    .plan-list .plan-mk { width: auto; height: auto; padding: .22rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #3a4a41; }
    .plan-list .plan-mk[aria-pressed="true"] { background: #dcfce7; border-color: #1f8a5b; color: #14532d; }
    .plan-empty { color: #5b6b62; font-size: .9rem; margin: .8rem 0; }
    .plan-actions[hidden], .plan-list li[hidden] { display: none; }
    .plan-multi { margin: .5rem 0 .2rem; } .plan-multi[hidden] { display: none; }
    .plan-switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; cursor: pointer; }
    .plan-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .plan-track { width: 38px; height: 22px; border-radius: 999px; background: #cbd5d0; position: relative; transition: background .15s; flex: none; }
    .plan-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
    .plan-switch input:checked + .plan-track { background: #1f8a5b; } .plan-switch input:checked + .plan-track::after { transform: translateX(16px); }
    .plan-switch input:focus-visible + .plan-track { outline: 2px solid #1f8a5b; outline-offset: 2px; }
    .plan-trips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; align-items: center; } .plan-trips[hidden] { display: none; }
    .plan-trips select { flex: 1 1 140px; min-width: 0; font: inherit; padding: .4rem .5rem; border: 1px solid #cfe3d8; border-radius: 8px; background: #fff; color: inherit; }
    .plan-trips button { font: inherit; font-size: .8rem; padding: .4rem .7rem; border-radius: 999px; border: 1px solid #1f8a5b; background: #fff; color: #14684a; cursor: pointer; }
    #plan-trip-del { border-color: #dc2626; color: #b91c1c; }
    .plan-addwrap { margin-top: .6rem; } .plan-addwrap[hidden] { display: none; }
    .plan-addbtn { font: inherit; font-size: .85rem; font-weight: 700; padding: .5rem .9rem; border-radius: 999px; border: 1px dashed #1f8a5b; background: #f3faf6; color: #14684a; cursor: pointer; }
    .plan-addbox { margin-top: .6rem; } .plan-addbox[hidden] { display: none; }
    .plan-addrow { display: flex; gap: .4rem; } .plan-addrow input { flex: 1; min-width: 0; font: inherit; padding: .5rem .6rem; border: 1px solid #cfe3d8; border-radius: 8px; }
    .plan-addgo { font: inherit; font-weight: 700; padding: .5rem .9rem; border-radius: 8px; border: 0; background: #17704a; color: #fff; cursor: pointer; }
    .plan-addnote { font-size: .75rem; color: #5b6b62; margin: .4rem 0; line-height: 1.4; } .plan-addnote a { color: #14684a; }
    .plan-addres { max-height: 26vh; overflow-y: auto; }
    .plan-addhit { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-top: 1px solid #e3efe8; padding: .5rem .2rem; cursor: pointer; color: inherit; }
    .plan-addhit:hover { background: #edf6f1; } .plan-addhit b { display: block; font-size: .88rem; } .plan-addhit span { display: block; font-size: .72rem; color: #5b6b62; }
    .plan-addhit i { margin-left: auto; font-style: normal; font-weight: 800; color: #14684a; font-size: 1.2rem; }
    .plan-partnote { flex-basis: 100%; margin: 0; font-size: .8rem; color: #5b6b62; }
    .plan-morelink { font-size: .82rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid #1f8a5b; color: #14684a; text-decoration: none; }
    .plan-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
    .plan-actions button { font: inherit; font-size: .82rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid #1f8a5b; background: #fff; color: #14684a; cursor: pointer; }
    .plan-actions .plan-primary { background: #1f8a5b; color: #fff; } .plan-actions .plan-danger { border-color: #dc2626; color: #b91c1c; }
    @media print { body.plan-printing > *:not(#plan-modal) { display: none !important; } body.plan-printing #plan-modal { position: static; background: none; display: block !important; } body.plan-printing .plan-box { box-shadow: none; border: 0; max-height: none; } body.plan-printing .plan-list { max-height: none; overflow: visible; } body.plan-printing .plan-actions, body.plan-printing .plan-list button, body.plan-printing .plan-x { display: none !important; } }
    .side-filters { display: flex; flex-wrap: wrap; gap: .35rem; padding: .1rem .15rem .6rem; }
    .fchip { font: inherit; font-size: .74rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--shell-line, #cfe3d8); background: #fff; color: inherit; cursor: pointer; }
    .fchip[aria-pressed="true"] { background: var(--accent, #1f8a5b); border-color: var(--accent, #1f8a5b); color: #fff; }
    .fclear { font: inherit; font-size: .74rem; padding: .22rem .4rem; border: 0; background: none; color: #b91c1c; cursor: pointer; text-decoration: underline; }
    .tools-box { max-height: 86vh; overflow-y: auto; }
    .tools-h { margin: 1rem 0 .4rem; font-size: .85rem; } .tools-h small { font-weight: 400; color: #5b6b62; }
    .tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
    .tools-conv { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; color: #5b6b62; }
    .tools-conv div { display: flex; gap: .3rem; align-items: center; }
    .tools-box input, .tools-box select { font: inherit; font-size: .9rem; padding: .35rem .45rem; border: 1px solid #cfe3d8; border-radius: 8px; min-width: 0; }
    .tools-conv input { width: 100%; }
    .tools-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; } .tools-row input { width: 6.5rem; }
    .tools-out { margin: .5rem 0 0; font-weight: 600; font-size: .95rem; }
    .tools-small { font: inherit; font-size: .75rem; padding: .3rem .6rem; border: 1px solid #cfe3d8; border-radius: 999px; background: #fff; cursor: pointer; color: inherit; }
    .pack-list { list-style: none; margin: .5rem 0 0; padding: 0; columns: 2; font-size: .85rem; }
    .pack-list li { break-inside: avoid; padding: .15rem 0; } .pack-list label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
    .pack-list input:checked + span { text-decoration: line-through; opacity: .55; }
    @media (max-width: 420px) { .pack-list { columns: 1; } }
    .st-top h4 { margin: .8rem 0 .3rem; font-size: .85rem; } .st-top ol { margin: 0; padding-left: 1.2rem; font-size: .85rem; } .st-top small { color: #5b6b62; margin-left: .3rem; }
    .panel-msg { max-width: 520px; margin: 3rem auto; padding: 2rem 1.5rem; text-align: center; color: var(--shell-muted, #5b6b62); }
    .panel-loading .panel-msg { animation: ppPulse 1.2s ease-in-out infinite; }
    @keyframes ppPulse { 50% { opacity: .45; } }
    .country-panel { display: none; }
    .country-panel.active { display: block; }

    /* ── India Itinerary Themes ── */
    .itinerary-tile.golden-triangle-theme .tile-hero { background: #92400e; }
    .itinerary-tile.golden-triangle-theme.active { border-color: #d97706; }
    .itinerary-tile.golden-triangle-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.golden-triangle-theme .tile-start-btn { background: #92400e; }
    .itinerary-tile.golden-triangle-theme .tile-view-btn { color: #b45309; }
    .itinerary-tile.golden-triangle-theme .tile-view-btn:hover { background: #fffbeb; }
    .golden-triangle-detail .section-header { background: #92400e; }

    .itinerary-tile.india-coastal-theme .tile-hero { background: #164e63; }
    .itinerary-tile.india-coastal-theme.active { border-color: #0891b2; }
    .itinerary-tile.india-coastal-theme .tile-meta-item .value { color: #0e7490; }
    .itinerary-tile.india-coastal-theme .tile-start-btn { background: #164e63; }
    .itinerary-tile.india-coastal-theme .tile-view-btn { color: #0e7490; }
    .itinerary-tile.india-coastal-theme .tile-view-btn:hover { background: #ecfeff; }
    .india-coastal-detail .section-header { background: #164e63; }

    .itinerary-tile.india-rajasthan-theme .tile-hero { background: #7f1d1d; }
    .itinerary-tile.india-rajasthan-theme.active { border-color: #b91c1c; }
    .itinerary-tile.india-rajasthan-theme .tile-meta-item .value { color: #b91c1c; }
    .itinerary-tile.india-rajasthan-theme .tile-start-btn { background: #7f1d1d; }
    .itinerary-tile.india-rajasthan-theme .tile-view-btn { color: #b91c1c; }
    .itinerary-tile.india-rajasthan-theme .tile-view-btn:hover { background: #fff1f2; }
    .india-rajasthan-detail .section-header { background: #7f1d1d; }

    .itinerary-tile.india-kerala-theme .tile-hero { background: #14532d; }
    .itinerary-tile.india-kerala-theme.active { border-color: #16a34a; }
    .itinerary-tile.india-kerala-theme .tile-meta-item .value { color: #15803d; }
    .itinerary-tile.india-kerala-theme .tile-start-btn { background: #14532d; }
    .itinerary-tile.india-kerala-theme .tile-view-btn { color: #15803d; }
    .itinerary-tile.india-kerala-theme .tile-view-btn:hover { background: #f0fdf4; }
    .india-kerala-detail .section-header { background: #14532d; }

    /* ── India City Themes ── */
    .itinerary-tile.india-delhi-theme .tile-hero { background: #991b1b; }
    .itinerary-tile.india-delhi-theme.active { border-color: #dc2626; }
    .itinerary-tile.india-delhi-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.india-delhi-theme .tile-start-btn { background: #991b1b; }
    .itinerary-tile.india-delhi-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.india-delhi-theme .tile-view-btn:hover { background: #fef2f2; }

    .itinerary-tile.india-mumbai-theme .tile-hero { background: #1e3a8a; }
    .itinerary-tile.india-mumbai-theme.active { border-color: #3b82f6; }
    .itinerary-tile.india-mumbai-theme .tile-meta-item .value { color: #1d4ed8; }
    .itinerary-tile.india-mumbai-theme .tile-start-btn { background: #1e3a8a; }
    .itinerary-tile.india-mumbai-theme .tile-view-btn { color: #1d4ed8; }
    .itinerary-tile.india-mumbai-theme .tile-view-btn:hover { background: #eff6ff; }

    .itinerary-tile.india-jaipur-theme .tile-hero { background: #9d174d; }
    .itinerary-tile.india-jaipur-theme.active { border-color: #ec4899; }
    .itinerary-tile.india-jaipur-theme .tile-meta-item .value { color: #db2777; }
    .itinerary-tile.india-jaipur-theme .tile-start-btn { background: #9d174d; }
    .itinerary-tile.india-jaipur-theme .tile-view-btn { color: #db2777; }
    .itinerary-tile.india-jaipur-theme .tile-view-btn:hover { background: #fdf2f8; }

    .itinerary-tile.india-goa-theme .tile-hero { background: #164e63; }
    .itinerary-tile.india-goa-theme.active { border-color: #22d3ee; }
    .itinerary-tile.india-goa-theme .tile-meta-item .value { color: #0891b2; }
    .itinerary-tile.india-goa-theme .tile-start-btn { background: #164e63; }
    .itinerary-tile.india-goa-theme .tile-view-btn { color: #0891b2; }
    .itinerary-tile.india-goa-theme .tile-view-btn:hover { background: #ecfeff; }

    .itinerary-tile.india-varanasi-theme .tile-hero { background: #78350f; }
    .itinerary-tile.india-varanasi-theme.active { border-color: #f59e0b; }
    .itinerary-tile.india-varanasi-theme .tile-meta-item .value { color: #d97706; }
    .itinerary-tile.india-varanasi-theme .tile-start-btn { background: #78350f; }
    .itinerary-tile.india-varanasi-theme .tile-view-btn { color: #d97706; }
    .itinerary-tile.india-varanasi-theme .tile-view-btn:hover { background: #fffbeb; }

    /* ── NYC / Cobalt Blue Theme ── */
    .itinerary-tile.nyc-theme .tile-hero { background: #1e40af; }
    .itinerary-tile.nyc-theme.active { border-color: #3b82f6; }
    .itinerary-tile.nyc-theme .tile-meta-item .value { color: #2563eb; }
    .itinerary-tile.nyc-theme .tile-start-btn { background: #1e40af; }
    .itinerary-tile.nyc-theme .tile-view-btn { color: #2563eb; }
    .itinerary-tile.nyc-theme .tile-view-btn:hover { background: #eff6ff; }
    .nyc-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #eff6ff; border-color: #bfdbfe; }
    .nyc-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #2563eb; }
    .nyc-theme-detail .stop.start-stop .stop-header, .nyc-theme-detail .stop.end-stop .stop-header { background: #1e40af; }
    .nyc-theme-detail .stop.end-stop { background: #eff6ff; }
    .nyc-theme-detail .stop:not(.gas-stop) .stop-number { color: #2563eb; }
    .nyc-theme-detail .stop.start-stop .stop-number, .nyc-theme-detail .stop.end-stop .stop-number { color: #1e40af; }
    .nyc-theme-detail .stop-body ul li::before { color: #2563eb; }
    .nyc-theme-detail .maps-link { background: #2563eb; }
    .nyc-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .nyc-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .nyc-theme-detail .dist-badge b { color: #2563eb; }
    .nyc-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .nyc-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .nyc-theme-detail .section-header:not(.closed) { background: #1e40af; }
    .nyc-theme-detail .timeline-section h3 { background: #1e40af; }
    .nyc-theme-detail .timeline-table tr.end-row td { background: #eff6ff; color: #1e40af; }
    .nyc-theme-detail .tips-section h3 { background: #1e40af; }
    .nyc-theme-detail .tip-item .tip-title { color: #2563eb; }

    /* ── Chicago / Emerald Green Theme ── */
    .itinerary-tile.chicago-theme .tile-hero { background: #14532d; }
    .itinerary-tile.chicago-theme.active { border-color: #16a34a; }
    .itinerary-tile.chicago-theme .tile-meta-item .value { color: #16a34a; }
    .itinerary-tile.chicago-theme .tile-start-btn { background: #14532d; }
    .itinerary-tile.chicago-theme .tile-view-btn { color: #16a34a; }
    .itinerary-tile.chicago-theme .tile-view-btn:hover { background: #dcfce7; }
    .chicago-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #dcfce7; border-color: #86efac; }
    .chicago-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #16a34a; }
    .chicago-theme-detail .stop.start-stop .stop-header, .chicago-theme-detail .stop.end-stop .stop-header { background: #14532d; }
    .chicago-theme-detail .stop.end-stop { background: #dcfce7; }
    .chicago-theme-detail .stop:not(.gas-stop) .stop-number { color: #16a34a; }
    .chicago-theme-detail .stop.start-stop .stop-number, .chicago-theme-detail .stop.end-stop .stop-number { color: #14532d; }
    .chicago-theme-detail .stop-body ul li::before { color: #16a34a; }
    .chicago-theme-detail .maps-link { background: #16a34a; }
    .chicago-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .chicago-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .chicago-theme-detail .dist-badge b { color: #16a34a; }
    .chicago-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .chicago-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .chicago-theme-detail .section-header:not(.closed) { background: #14532d; }
    .chicago-theme-detail .timeline-section h3 { background: #14532d; }
    .chicago-theme-detail .timeline-table tr.end-row td { background: #dcfce7; color: #14532d; }
    .chicago-theme-detail .tips-section h3 { background: #14532d; }
    .chicago-theme-detail .tip-item .tip-title { color: #16a34a; }

    /* ── Ohio (Cleveland) / Burnt Orange Theme ── */
    .itinerary-tile.ohio-theme .tile-hero { background: #7c2d12; }
    .itinerary-tile.ohio-theme.active { border-color: #c2410c; }
    .itinerary-tile.ohio-theme .tile-meta-item .value { color: #c2410c; }
    .itinerary-tile.ohio-theme .tile-start-btn { background: #7c2d12; }
    .itinerary-tile.ohio-theme .tile-view-btn { color: #c2410c; }
    .itinerary-tile.ohio-theme .tile-view-btn:hover { background: #fff7ed; }
    .ohio-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fff7ed; border-color: #fed7aa; }
    .ohio-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #c2410c; }
    .ohio-theme-detail .stop.start-stop .stop-header, .ohio-theme-detail .stop.end-stop .stop-header { background: #7c2d12; }
    .ohio-theme-detail .stop.end-stop { background: #fff7ed; }
    .ohio-theme-detail .stop:not(.gas-stop) .stop-number { color: #c2410c; }
    .ohio-theme-detail .stop.start-stop .stop-number, .ohio-theme-detail .stop.end-stop .stop-number { color: #7c2d12; }
    .ohio-theme-detail .stop-body ul li::before { color: #c2410c; }
    .ohio-theme-detail .maps-link { background: #c2410c; }
    .ohio-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .ohio-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .ohio-theme-detail .dist-badge b { color: #c2410c; }
    .ohio-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .ohio-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .ohio-theme-detail .section-header:not(.closed) { background: #7c2d12; }
    .ohio-theme-detail .timeline-section h3 { background: #7c2d12; }
    .ohio-theme-detail .timeline-table tr.end-row td { background: #fff7ed; color: #7c2d12; }
    .ohio-theme-detail .tips-section h3 { background: #7c2d12; }
    .ohio-theme-detail .tip-item .tip-title { color: #c2410c; }

    /* ── Maryland / Crimson Theme ── */
    .itinerary-tile.maryland-theme .tile-hero { background: #7f1d1d; }
    .itinerary-tile.maryland-theme.active { border-color: #dc2626; }
    .itinerary-tile.maryland-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.maryland-theme .tile-start-btn { background: #7f1d1d; }
    .itinerary-tile.maryland-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.maryland-theme .tile-view-btn:hover { background: #fef2f2; }
    .maryland-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fef2f2; border-color: #fecaca; }
    .maryland-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #dc2626; }
    .maryland-theme-detail .stop.start-stop .stop-header, .maryland-theme-detail .stop.end-stop .stop-header { background: #7f1d1d; }
    .maryland-theme-detail .stop.end-stop { background: #fef2f2; }
    .maryland-theme-detail .stop:not(.gas-stop) .stop-number { color: #dc2626; }
    .maryland-theme-detail .stop.start-stop .stop-number, .maryland-theme-detail .stop.end-stop .stop-number { color: #7f1d1d; }
    .maryland-theme-detail .stop-body ul li::before { color: #dc2626; }
    .maryland-theme-detail .maps-link { background: #dc2626; }
    .maryland-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .maryland-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .maryland-theme-detail .dist-badge b { color: #dc2626; }
    .maryland-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .maryland-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .maryland-theme-detail .section-header:not(.closed) { background: #7f1d1d; }
    .maryland-theme-detail .timeline-section h3 { background: #7f1d1d; }
    .maryland-theme-detail .timeline-table tr.end-row td { background: #fef2f2; color: #7f1d1d; }
    .maryland-theme-detail .tips-section h3 { background: #7f1d1d; }
    .maryland-theme-detail .tip-item .tip-title { color: #dc2626; }

    /* ── Places to Visit — Card Grid ── */
    .places-container {
      max-width: 980px;
      margin: 0 auto;
      padding: 2rem 1rem 3rem;
    }
    .city-section { margin-bottom: 3rem; }
    .city-hero {
      background: #1e3a8a;
      color: #fff;
      border-radius: 12px 12px 0 0;
      padding: 2rem 2rem 1.5rem;
      text-align: center;
    }
    .city-hero h2 { font-size: 2rem; font-weight: 800; }
    .city-hero .sub { margin-top: 0.4rem; opacity: 0.8; font-size: 0.95rem; }
    .city-hero .badge {
      display: inline-block;
      margin-top: 0.85rem;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 999px;
      padding: 0.25rem 0.9rem;
      font-size: 0.8rem;
    }
    .places-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 1.1rem;
      background: #f9fafb;
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0 0 12px 12px;
      padding: 1.5rem;
    }
    .place-card {
      background: #fff;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .place-card-header {
      padding: 1rem 1.1rem 0.75rem;
      border-bottom: 1px solid #f3f4f6;
    }
    .place-rank-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
    .place-rank {
      background: #1e40af;
      color: #fff;
      font-size: 0.72rem;
      font-weight: 800;
      width: 1.7rem;
      height: 1.7rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .place-name { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.2; }
    .place-neighborhood { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 0.1rem; }
    .place-category {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: #eff6ff;
      color: #1e40af;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      margin-top: 0.4rem;
    }
    .place-card-body { padding: 0.85rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
    .place-desc { font-size: 0.82rem; color: #374151; line-height: 1.55; margin-bottom: 0.7rem; }
    .place-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
    .place-badge {
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      background: #f3f4f6;
      color: #374151;
    }
    .place-badge.free { background: #dcfce7; color: #15803d; }
    .place-badge.paid { background: #fef3c7; color: #92400e; }
    .place-tips { list-style: none; padding: 0; margin: 0 0 0.75rem; }
    .place-tips li {
      font-size: 0.77rem;
      color: #6b7280;
      padding: 0.1rem 0 0.1rem 1.1rem;
      position: relative;
    }
    .place-tips li::before { content: "→"; position: absolute; left: 0; color: #2563eb; font-size: 0.7rem; top: 0.2rem; }
    .place-maps-link {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      background: #1e40af;
      color: #fff;
      text-decoration: none;
      font-size: 0.73rem;
      font-weight: 600;
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      margin-top: auto;
      align-self: flex-start;
    }
    .place-maps-link:hover { opacity: 0.85; }

    /* ── City Detail Sections (Places Tab) ── */
    .city-detail {
      display: none;
      animation: fadeIn 0.25s ease;
    }
    .city-detail.visible { display: block; }

    /* ── SF / Golden Gate Orange Theme ── */
    .itinerary-tile.sf-theme .tile-hero { background: #9a3412; }
    .itinerary-tile.sf-theme.active { border-color: #f97316; }
    .itinerary-tile.sf-theme .tile-meta-item .value { color: #f97316; }
    .itinerary-tile.sf-theme .tile-start-btn { background: #9a3412; }
    .itinerary-tile.sf-theme .tile-view-btn { color: #f97316; }
    .itinerary-tile.sf-theme .tile-view-btn:hover { background: #fff7ed; }
    .sf-theme-detail .city-hero { background: #9a3412; }
    .sf-theme-detail .place-rank { background: #9a3412; }
    .sf-theme-detail .place-category { background: #fff7ed; color: #9a3412; }
    .sf-theme-detail .place-maps-link { background: #9a3412; }
    .sf-theme-detail .place-tips li::before { color: #f97316; }

    /* ── LA / Hollywood Rose-Magenta Theme ── */
    .itinerary-tile.la-theme .tile-hero { background: #831843; }
    .itinerary-tile.la-theme.active { border-color: #db2777; }
    .itinerary-tile.la-theme .tile-meta-item .value { color: #db2777; }
    .itinerary-tile.la-theme .tile-start-btn { background: #831843; }
    .itinerary-tile.la-theme .tile-view-btn { color: #db2777; }
    .itinerary-tile.la-theme .tile-view-btn:hover { background: #fdf2f8; }
    .la-theme-detail .city-hero { background: #831843; }
    .la-theme-detail .place-rank { background: #831843; }
    .la-theme-detail .place-category { background: #fdf2f8; color: #831843; }
    .la-theme-detail .place-maps-link { background: #831843; }
    .la-theme-detail .place-tips li::before { color: #db2777; }

    /* ── Yosemite / Granite Slate Theme ── */
    .itinerary-tile.smokies-theme .tile-hero { background: #1f4e4a; }
    .itinerary-tile.smokies-theme.active { border-color: #2f7a73; }
    .itinerary-tile.smokies-theme .tile-meta-item .value { color: #2f7a73; }
    .itinerary-tile.smokies-theme .tile-start-btn { background: #1f4e4a; }
    .itinerary-tile.smokies-theme .tile-view-btn { color: #2f7a73; }
    .itinerary-tile.smokies-theme .tile-view-btn:hover { background: #e8f3f1; }
    .smokies-theme-detail .city-hero { background: #1f4e4a; }
    .smokies-theme-detail .place-rank { background: #1f4e4a; }
    .smokies-theme-detail .place-category { background: #e8f3f1; color: #1f4e4a; }
    .smokies-theme-detail .place-maps-link { background: #1f4e4a; }
    .itinerary-tile.yosemite-theme .tile-hero { background: #1e293b; }
    .itinerary-tile.yosemite-theme.active { border-color: #475569; }
    .itinerary-tile.yosemite-theme .tile-meta-item .value { color: #475569; }
    .itinerary-tile.yosemite-theme .tile-start-btn { background: #1e293b; }
    .itinerary-tile.yosemite-theme .tile-view-btn { color: #475569; }
    .itinerary-tile.yosemite-theme .tile-view-btn:hover { background: #f1f5f9; }
    .yosemite-theme-detail .city-hero { background: #1e293b; }
    .yosemite-theme-detail .place-rank { background: #1e293b; }
    .yosemite-theme-detail .place-category { background: #f1f5f9; color: #1e293b; }
    .yosemite-theme-detail .place-maps-link { background: #1e293b; }
    .yosemite-theme-detail .place-tips li::before { color: #475569; }

    /* ── NYC override explicit for city detail ── */
    .nyc-theme-detail .city-hero { background: #1e40af; }

    /* ── Route 66 / Purple Highway Theme ── */
    .itinerary-tile.route66-theme .tile-hero { background: #4c1d95; }
    .itinerary-tile.route66-theme.active { border-color: #7c3aed; }
    .itinerary-tile.route66-theme .tile-meta-item .value { color: #7c3aed; }
    .itinerary-tile.route66-theme .tile-start-btn { background: #4c1d95; }
    .itinerary-tile.route66-theme .tile-view-btn { color: #7c3aed; }
    .itinerary-tile.route66-theme .tile-view-btn:hover { background: #f5f3ff; }
    .route66-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #f5f3ff; border-color: #ddd6fe; }
    .route66-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #7c3aed; }
    .route66-theme-detail .stop.start-stop .stop-header, .route66-theme-detail .stop.end-stop .stop-header { background: #4c1d95; }
    .route66-theme-detail .stop.end-stop { background: #f5f3ff; }
    .route66-theme-detail .stop:not(.gas-stop) .stop-number { color: #7c3aed; }
    .route66-theme-detail .stop.start-stop .stop-number, .route66-theme-detail .stop.end-stop .stop-number { color: #4c1d95; }
    .route66-theme-detail .stop-body ul li::before { color: #7c3aed; }
    .route66-theme-detail .maps-link { background: #7c3aed; }
    .route66-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .route66-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .route66-theme-detail .dist-badge b { color: #7c3aed; }
    .route66-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .route66-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .route66-theme-detail .section-header:not(.closed) { background: #4c1d95; }
    .route66-theme-detail .timeline-section h3 { background: #4c1d95; }
    .route66-theme-detail .timeline-table tr.end-row td { background: #f5f3ff; color: #4c1d95; }
    .route66-theme-detail .tips-section h3 { background: #4c1d95; }
    .route66-theme-detail .tip-item .tip-title { color: #7c3aed; }

    /* ── Southwest / Amber Canyon Theme ── */
    .itinerary-tile.southwest-theme .tile-hero { background: #78350f; }
    .itinerary-tile.southwest-theme.active { border-color: #b45309; }
    .itinerary-tile.southwest-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.southwest-theme .tile-start-btn { background: #78350f; }
    .itinerary-tile.southwest-theme .tile-view-btn { color: #b45309; }
    .itinerary-tile.southwest-theme .tile-view-btn:hover { background: #fffbeb; }
    .southwest-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fffbeb; border-color: #fde68a; }
    .southwest-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #b45309; }
    .southwest-theme-detail .stop.start-stop .stop-header, .southwest-theme-detail .stop.end-stop .stop-header { background: #78350f; }
    .southwest-theme-detail .stop.end-stop { background: #fffbeb; }
    .southwest-theme-detail .stop:not(.gas-stop) .stop-number { color: #b45309; }
    .southwest-theme-detail .stop.start-stop .stop-number, .southwest-theme-detail .stop.end-stop .stop-number { color: #78350f; }
    .southwest-theme-detail .stop-body ul li::before { color: #b45309; }
    .southwest-theme-detail .maps-link { background: #b45309; }
    .southwest-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .southwest-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .southwest-theme-detail .dist-badge b { color: #b45309; }
    .southwest-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .southwest-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .southwest-theme-detail .section-header:not(.closed) { background: #78350f; }
    .southwest-theme-detail .timeline-section h3 { background: #78350f; }
    .southwest-theme-detail .timeline-table tr.end-row td { background: #fffbeb; color: #78350f; }
    .southwest-theme-detail .tips-section h3 { background: #78350f; }
    .southwest-theme-detail .tip-item .tip-title { color: #b45309; }

    /* ── New England / Crimson Foliage Theme ── */
    .itinerary-tile.newengland-theme .tile-hero { background: #881337; }
    .itinerary-tile.newengland-theme.active { border-color: #e11d48; }
    .itinerary-tile.newengland-theme .tile-meta-item .value { color: #be123c; }
    .itinerary-tile.newengland-theme .tile-start-btn { background: #881337; }
    .itinerary-tile.newengland-theme .tile-view-btn { color: #be123c; }
    .itinerary-tile.newengland-theme .tile-view-btn:hover { background: #fff1f2; }
    .newengland-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fff1f2; border-color: #fecdd3; }
    .newengland-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #be123c; }
    .newengland-theme-detail .stop.start-stop .stop-header, .newengland-theme-detail .stop.end-stop .stop-header { background: #881337; }
    .newengland-theme-detail .stop.end-stop { background: #fff1f2; }
    .newengland-theme-detail .stop:not(.gas-stop) .stop-number { color: #be123c; }
    .newengland-theme-detail .stop.start-stop .stop-number, .newengland-theme-detail .stop.end-stop .stop-number { color: #881337; }
    .newengland-theme-detail .stop-body ul li::before { color: #be123c; }
    .newengland-theme-detail .maps-link { background: #be123c; }
    .newengland-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .newengland-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .newengland-theme-detail .dist-badge b { color: #be123c; }
    .newengland-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .newengland-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .newengland-theme-detail .section-header:not(.closed) { background: #881337; }
    .newengland-theme-detail .timeline-section h3 { background: #881337; }
    .newengland-theme-detail .timeline-table tr.end-row td { background: #fff1f2; color: #881337; }
    .newengland-theme-detail .tips-section h3 { background: #881337; }
    .newengland-theme-detail .tip-item .tip-title { color: #be123c; }

    /* ── Music Highway / Jazz Gold Theme ── */
    .itinerary-tile.musichighway-theme .tile-hero { background: #1c1917; }
    .itinerary-tile.musichighway-theme.active { border-color: #d97706; }
    .itinerary-tile.musichighway-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.musichighway-theme .tile-start-btn { background: #1c1917; }
    .itinerary-tile.musichighway-theme .tile-view-btn { color: #b45309; }
    .itinerary-tile.musichighway-theme .tile-view-btn:hover { background: #fffbeb; }
    .musichighway-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fffbeb; border-color: #fde68a; }
    .musichighway-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #d97706; }
    .musichighway-theme-detail .stop.start-stop .stop-header, .musichighway-theme-detail .stop.end-stop .stop-header { background: #1c1917; }
    .musichighway-theme-detail .stop.end-stop { background: #fffbeb; }
    .musichighway-theme-detail .stop:not(.gas-stop) .stop-number { color: #d97706; }
    .musichighway-theme-detail .stop.start-stop .stop-number, .musichighway-theme-detail .stop.end-stop .stop-number { color: #1c1917; }
    .musichighway-theme-detail .stop-body ul li::before { color: #d97706; }
    .musichighway-theme-detail .maps-link { background: #d97706; }
    .musichighway-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .musichighway-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .musichighway-theme-detail .dist-badge b { color: #d97706; }
    .musichighway-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .musichighway-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .musichighway-theme-detail .section-header:not(.closed) { background: #1c1917; }
    .musichighway-theme-detail .timeline-section h3 { background: #1c1917; }
    .musichighway-theme-detail .timeline-table tr.end-row td { background: #fffbeb; color: #1c1917; }
    .musichighway-theme-detail .tips-section h3 { background: #1c1917; }
    .musichighway-theme-detail .tip-item .tip-title { color: #d97706; }

    /* ── Pacific Northwest / Emerald Forest Theme ── */
    .itinerary-tile.pacificnw-theme .tile-hero { background: #042f2e; }
    .itinerary-tile.pacificnw-theme.active { border-color: #059669; }
    .itinerary-tile.pacificnw-theme .tile-meta-item .value { color: #059669; }
    .itinerary-tile.pacificnw-theme .tile-start-btn { background: #042f2e; }
    .itinerary-tile.pacificnw-theme .tile-view-btn { color: #059669; }
    .itinerary-tile.pacificnw-theme .tile-view-btn:hover { background: #ecfdf5; }
    .pacificnw-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #ecfdf5; border-color: #a7f3d0; }
    .pacificnw-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #059669; }
    .pacificnw-theme-detail .stop.start-stop .stop-header, .pacificnw-theme-detail .stop.end-stop .stop-header { background: #042f2e; }
    .pacificnw-theme-detail .stop.end-stop { background: #ecfdf5; }
    .pacificnw-theme-detail .stop:not(.gas-stop) .stop-number { color: #059669; }
    .pacificnw-theme-detail .stop.start-stop .stop-number, .pacificnw-theme-detail .stop.end-stop .stop-number { color: #042f2e; }
    .pacificnw-theme-detail .stop-body ul li::before { color: #059669; }
    .pacificnw-theme-detail .maps-link { background: #059669; }
    .pacificnw-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .pacificnw-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .pacificnw-theme-detail .dist-badge b { color: #059669; }
    .pacificnw-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .pacificnw-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .pacificnw-theme-detail .section-header:not(.closed) { background: #042f2e; }
    .pacificnw-theme-detail .timeline-section h3 { background: #042f2e; }
    .pacificnw-theme-detail .timeline-table tr.end-row td { background: #ecfdf5; color: #042f2e; }
    .pacificnw-theme-detail .tips-section h3 { background: #042f2e; }
    .pacificnw-theme-detail .tip-item .tip-title { color: #059669; }

    /* ── Rocky Mountains / Deep Indigo Theme ── */
    .itinerary-tile.rockies-theme .tile-hero { background: #0f172a; }
    .itinerary-tile.rockies-theme.active { border-color: #3b82f6; }
    .itinerary-tile.rockies-theme .tile-meta-item .value { color: #2563eb; }
    .itinerary-tile.rockies-theme .tile-start-btn { background: #0f172a; }
    .itinerary-tile.rockies-theme .tile-view-btn { color: #2563eb; }
    .itinerary-tile.rockies-theme .tile-view-btn:hover { background: #eff6ff; }
    .rockies-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #eff6ff; border-color: #bfdbfe; }
    .rockies-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #2563eb; }
    .rockies-theme-detail .stop.start-stop .stop-header, .rockies-theme-detail .stop.end-stop .stop-header { background: #0f172a; }
    .rockies-theme-detail .stop.end-stop { background: #eff6ff; }
    .rockies-theme-detail .stop:not(.gas-stop) .stop-number { color: #2563eb; }
    .rockies-theme-detail .stop.start-stop .stop-number, .rockies-theme-detail .stop.end-stop .stop-number { color: #0f172a; }
    .rockies-theme-detail .stop-body ul li::before { color: #2563eb; }
    .rockies-theme-detail .maps-link { background: #2563eb; }
    .rockies-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rockies-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rockies-theme-detail .dist-badge b { color: #2563eb; }
    .rockies-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .rockies-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .rockies-theme-detail .section-header:not(.closed) { background: #0f172a; }
    .rockies-theme-detail .timeline-section h3 { background: #0f172a; }
    .rockies-theme-detail .timeline-table tr.end-row td { background: #eff6ff; color: #0f172a; }
    .rockies-theme-detail .tips-section h3 { background: #0f172a; }
    .rockies-theme-detail .tip-item .tip-title { color: #2563eb; }

    /* ── Chicago City Detail Override ── */
    .chicago-theme-detail .city-hero { background: #14532d; }
    .chicago-theme-detail .place-rank { background: #14532d; }
    .chicago-theme-detail .place-category { background: #dcfce7; color: #14532d; }
    .chicago-theme-detail .place-maps-link { background: #14532d; }
    .chicago-theme-detail .place-tips li::before { color: #16a34a; }

    /* ── Miami / Flamingo Pink Theme ── */
    .itinerary-tile.miami-theme .tile-hero { background: #831843; }
    .itinerary-tile.miami-theme.active { border-color: #db2777; }
    .itinerary-tile.miami-theme .tile-meta-item .value { color: #db2777; }
    .itinerary-tile.miami-theme .tile-start-btn { background: #831843; }
    .itinerary-tile.miami-theme .tile-view-btn { color: #db2777; }
    .itinerary-tile.miami-theme .tile-view-btn:hover { background: #fdf2f8; }
    .miami-theme-detail .city-hero { background: #831843; }
    .miami-theme-detail .place-rank { background: #831843; }
    .miami-theme-detail .place-category { background: #fdf2f8; color: #831843; }
    .miami-theme-detail .place-maps-link { background: #831843; }
    .miami-theme-detail .place-tips li::before { color: #db2777; }

    /* ── Las Vegas / Neon Indigo Theme ── */
    .itinerary-tile.lasvegas-theme .tile-hero { background: #1a0030; }
    .itinerary-tile.lasvegas-theme.active { border-color: #9333ea; }
    .itinerary-tile.lasvegas-theme .tile-meta-item .value { color: #9333ea; }
    .itinerary-tile.lasvegas-theme .tile-start-btn { background: #1a0030; }
    .itinerary-tile.lasvegas-theme .tile-view-btn { color: #9333ea; }
    .itinerary-tile.lasvegas-theme .tile-view-btn:hover { background: #faf5ff; }
    .lasvegas-theme-detail .city-hero { background: #1a0030; }
    .lasvegas-theme-detail .place-rank { background: #7c3aed; }
    .lasvegas-theme-detail .place-category { background: #faf5ff; color: #7c3aed; }
    .lasvegas-theme-detail .place-maps-link { background: #7c3aed; }
    .lasvegas-theme-detail .place-tips li::before { color: #9333ea; }

    /* ── New Orleans / Jazz Gold Theme ── */
    .itinerary-tile.neworleans-theme .tile-hero { background: #1c0a00; }
    .itinerary-tile.neworleans-theme.active { border-color: #d97706; }
    .itinerary-tile.neworleans-theme .tile-meta-item .value { color: #d97706; }
    .itinerary-tile.neworleans-theme .tile-start-btn { background: #1c0a00; }
    .itinerary-tile.neworleans-theme .tile-view-btn { color: #d97706; }
    .itinerary-tile.neworleans-theme .tile-view-btn:hover { background: #fffbeb; }
    .neworleans-theme-detail .city-hero { background: #1c0a00; }
    .neworleans-theme-detail .place-rank { background: #b45309; }
    .neworleans-theme-detail .place-category { background: #fffbeb; color: #b45309; }
    .neworleans-theme-detail .place-maps-link { background: #b45309; }
    .neworleans-theme-detail .place-tips li::before { color: #d97706; }

    /* ── Washington DC / Patriot Navy Theme ── */
    .itinerary-tile.washingtondc-theme .tile-hero { background: #0c1445; }
    .itinerary-tile.washingtondc-theme.active { border-color: #3b82f6; }
    .itinerary-tile.washingtondc-theme .tile-meta-item .value { color: #2563eb; }
    .itinerary-tile.washingtondc-theme .tile-start-btn { background: #0c1445; }
    .itinerary-tile.washingtondc-theme .tile-view-btn { color: #2563eb; }
    .itinerary-tile.washingtondc-theme .tile-view-btn:hover { background: #eff6ff; }
    .washingtondc-theme-detail .city-hero { background: #0c1445; }
    .washingtondc-theme-detail .place-rank { background: #0c1445; }
    .washingtondc-theme-detail .place-category { background: #eff6ff; color: #1e40af; }
    .washingtondc-theme-detail .place-maps-link { background: #1d4ed8; }
    .washingtondc-theme-detail .place-tips li::before { color: #3b82f6; }

    /* ── Nashville / Country Gold Theme ── */
    .itinerary-tile.nashville-theme .tile-hero { background: #2c1000; }
    .itinerary-tile.nashville-theme.active { border-color: #f97316; }
    .itinerary-tile.nashville-theme .tile-meta-item .value { color: #ea580c; }
    .itinerary-tile.nashville-theme .tile-start-btn { background: #2c1000; }
    .itinerary-tile.nashville-theme .tile-view-btn { color: #ea580c; }
    .itinerary-tile.nashville-theme .tile-view-btn:hover { background: #fff7ed; }
    .nashville-theme-detail .city-hero { background: #2c1000; }
    .nashville-theme-detail .place-rank { background: #c2410c; }
    .nashville-theme-detail .place-category { background: #fff7ed; color: #c2410c; }
    .nashville-theme-detail .place-maps-link { background: #c2410c; }
    .nashville-theme-detail .place-tips li::before { color: #f97316; }

    /* ── Seattle / Rainy Cyan Theme ── */
    .itinerary-tile.seattle-theme .tile-hero { background: #042831; }
    .itinerary-tile.seattle-theme.active { border-color: #0e7490; }
    .itinerary-tile.seattle-theme .tile-meta-item .value { color: #0e7490; }
    .itinerary-tile.seattle-theme .tile-start-btn { background: #042831; }
    .itinerary-tile.seattle-theme .tile-view-btn { color: #0e7490; }
    .itinerary-tile.seattle-theme .tile-view-btn:hover { background: #ecfeff; }
    .seattle-theme-detail .city-hero { background: #042831; }
    .seattle-theme-detail .place-rank { background: #0e7490; }
    .seattle-theme-detail .place-category { background: #ecfeff; color: #0e7490; }
    .seattle-theme-detail .place-maps-link { background: #0e7490; }
    .seattle-theme-detail .place-tips li::before { color: #06b6d4; }

    /* ── Denver / Mountain Violet Theme ── */
    .itinerary-tile.denver-theme .tile-hero { background: #1e0a4c; }
    .itinerary-tile.denver-theme.active { border-color: #8b5cf6; }
    .itinerary-tile.denver-theme .tile-meta-item .value { color: #7c3aed; }
    .itinerary-tile.denver-theme .tile-start-btn { background: #1e0a4c; }
    .itinerary-tile.denver-theme .tile-view-btn { color: #7c3aed; }
    .itinerary-tile.denver-theme .tile-view-btn:hover { background: #f5f3ff; }
    .denver-theme-detail .city-hero { background: #1e0a4c; }
    .denver-theme-detail .place-rank { background: #6d28d9; }
    .denver-theme-detail .place-category { background: #f5f3ff; color: #6d28d9; }
    .denver-theme-detail .place-maps-link { background: #6d28d9; }
    .denver-theme-detail .place-tips li::before { color: #8b5cf6; }

    /* ── Austin / Lone Star Orange Theme ── */
    .itinerary-tile.austin-theme .tile-hero { background: #431407; }
    .itinerary-tile.austin-theme.active { border-color: #ea580c; }
    .itinerary-tile.austin-theme .tile-meta-item .value { color: #ea580c; }
    .itinerary-tile.austin-theme .tile-start-btn { background: #431407; }
    .itinerary-tile.austin-theme .tile-view-btn { color: #ea580c; }
    .itinerary-tile.austin-theme .tile-view-btn:hover { background: #fff7ed; }
    .austin-theme-detail .city-hero { background: #431407; }
    .austin-theme-detail .place-rank { background: #c2410c; }
    .austin-theme-detail .place-category { background: #fff7ed; color: #c2410c; }
    .austin-theme-detail .place-maps-link { background: #c2410c; }
    .austin-theme-detail .place-tips li::before { color: #f97316; }

    /* ── Boston / Freedom Sky Blue Theme ── */
    .itinerary-tile.boston-theme .tile-hero { background: #0a1840; }
    .itinerary-tile.boston-theme.active { border-color: #0ea5e9; }
    .itinerary-tile.boston-theme .tile-meta-item .value { color: #0284c7; }
    .itinerary-tile.boston-theme .tile-start-btn { background: #0a1840; }
    .itinerary-tile.boston-theme .tile-view-btn { color: #0284c7; }
    .itinerary-tile.boston-theme .tile-view-btn:hover { background: #f0f9ff; }
    .boston-theme-detail .city-hero { background: #0a1840; }
    .boston-theme-detail .place-rank { background: #0369a1; }
    .boston-theme-detail .place-category { background: #f0f9ff; color: #0369a1; }
    .boston-theme-detail .place-maps-link { background: #0369a1; }
    .boston-theme-detail .place-tips li::before { color: #0ea5e9; }

    /* ── Atlanta / Peach Gold Theme ── */
    .itinerary-tile.atlanta-theme .tile-hero { background: #1a1000; }
    .itinerary-tile.atlanta-theme.active { border-color: #d97706; }
    .itinerary-tile.atlanta-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.atlanta-theme .tile-start-btn { background: #1a1000; }
    .itinerary-tile.atlanta-theme .tile-view-btn { color: #b45309; }
    .itinerary-tile.atlanta-theme .tile-view-btn:hover { background: #fffbeb; }
    .atlanta-theme-detail .city-hero { background: #1a1000; }
    .atlanta-theme-detail .place-rank { background: #92400e; }
    .atlanta-theme-detail .place-category { background: #fffbeb; color: #92400e; }
    .atlanta-theme-detail .place-maps-link { background: #92400e; }
    .atlanta-theme-detail .place-tips li::before { color: #d97706; }

    /* ── San Diego / Pacific Blue Theme ── */
    .itinerary-tile.sandiego-theme .tile-hero { background: #0c4a6e; }
    .itinerary-tile.sandiego-theme.active { border-color: #0284c7; }
    .itinerary-tile.sandiego-theme .tile-meta-item .value { color: #0284c7; }
    .itinerary-tile.sandiego-theme .tile-start-btn { background: #0c4a6e; }
    .itinerary-tile.sandiego-theme .tile-view-btn { color: #0284c7; }
    .itinerary-tile.sandiego-theme .tile-view-btn:hover { background: #f0f9ff; }
    .sandiego-theme-detail .city-hero { background: #0c4a6e; }
    .sandiego-theme-detail .place-rank { background: #0369a1; }
    .sandiego-theme-detail .place-category { background: #f0f9ff; color: #0369a1; }
    .sandiego-theme-detail .place-maps-link { background: #0369a1; }
    .sandiego-theme-detail .place-tips li::before { color: #0284c7; }

    /* ── Portland / Evergreen Theme Theme ── */
    .itinerary-tile.portland-theme .tile-hero { background: #14532d; }
    .itinerary-tile.portland-theme.active { border-color: #16a34a; }
    .itinerary-tile.portland-theme .tile-meta-item .value { color: #16a34a; }
    .itinerary-tile.portland-theme .tile-start-btn { background: #14532d; }
    .itinerary-tile.portland-theme .tile-view-btn { color: #16a34a; }
    .itinerary-tile.portland-theme .tile-view-btn:hover { background: #f0fdf4; }
    .portland-theme-detail .city-hero { background: #14532d; }
    .portland-theme-detail .place-rank { background: #15803d; }
    .portland-theme-detail .place-category { background: #f0fdf4; color: #15803d; }
    .portland-theme-detail .place-maps-link { background: #15803d; }
    .portland-theme-detail .place-tips li::before { color: #16a34a; }

    /* ── Orlando / Magic Purple Theme Theme ── */
    .itinerary-tile.orlando-theme .tile-hero { background: #581c87; }
    .itinerary-tile.orlando-theme.active { border-color: #a855f7; }
    .itinerary-tile.orlando-theme .tile-meta-item .value { color: #a855f7; }
    .itinerary-tile.orlando-theme .tile-start-btn { background: #581c87; }
    .itinerary-tile.orlando-theme .tile-view-btn { color: #a855f7; }
    .itinerary-tile.orlando-theme .tile-view-btn:hover { background: #faf5ff; }
    .orlando-theme-detail .city-hero { background: #581c87; }
    .orlando-theme-detail .place-rank { background: #7e22ce; }
    .orlando-theme-detail .place-category { background: #faf5ff; color: #7e22ce; }
    .orlando-theme-detail .place-maps-link { background: #7e22ce; }
    .orlando-theme-detail .place-tips li::before { color: #a855f7; }

    /* ── San Antonio / Mission Red Theme Theme ── */
    .itinerary-tile.sanantonio-theme .tile-hero { background: #7f1d1d; }
    .itinerary-tile.sanantonio-theme.active { border-color: #dc2626; }
    .itinerary-tile.sanantonio-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.sanantonio-theme .tile-start-btn { background: #7f1d1d; }
    .itinerary-tile.sanantonio-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.sanantonio-theme .tile-view-btn:hover { background: #fef2f2; }
    .sanantonio-theme-detail .city-hero { background: #7f1d1d; }
    .sanantonio-theme-detail .place-rank { background: #b91c1c; }
    .sanantonio-theme-detail .place-category { background: #fef2f2; color: #b91c1c; }
    .sanantonio-theme-detail .place-maps-link { background: #b91c1c; }
    .sanantonio-theme-detail .place-tips li::before { color: #dc2626; }

    /* ── Charleston / Pastel Rose Theme Theme ── */
    .itinerary-tile.charleston-theme .tile-hero { background: #831843; }
    .itinerary-tile.charleston-theme.active { border-color: #db2777; }
    .itinerary-tile.charleston-theme .tile-meta-item .value { color: #db2777; }
    .itinerary-tile.charleston-theme .tile-start-btn { background: #831843; }
    .itinerary-tile.charleston-theme .tile-view-btn { color: #db2777; }
    .itinerary-tile.charleston-theme .tile-view-btn:hover { background: #fdf2f8; }
    .charleston-theme-detail .city-hero { background: #831843; }
    .charleston-theme-detail .place-rank { background: #be185d; }
    .charleston-theme-detail .place-category { background: #fdf2f8; color: #be185d; }
    .charleston-theme-detail .place-maps-link { background: #be185d; }
    .charleston-theme-detail .place-tips li::before { color: #db2777; }

    /* ── Yellowstone / Geyser Gold Theme Theme ── */
    .itinerary-tile.yellowstone-theme .tile-hero { background: #78350f; }
    .itinerary-tile.yellowstone-theme.active { border-color: #d97706; }
    .itinerary-tile.yellowstone-theme .tile-meta-item .value { color: #d97706; }
    .itinerary-tile.yellowstone-theme .tile-start-btn { background: #78350f; }
    .itinerary-tile.yellowstone-theme .tile-view-btn { color: #d97706; }
    .itinerary-tile.yellowstone-theme .tile-view-btn:hover { background: #fffbeb; }
    .yellowstone-theme-detail .city-hero { background: #78350f; }
    .yellowstone-theme-detail .place-rank { background: #b45309; }
    .yellowstone-theme-detail .place-category { background: #fffbeb; color: #b45309; }
    .yellowstone-theme-detail .place-maps-link { background: #b45309; }
    .yellowstone-theme-detail .place-tips li::before { color: #d97706; }

    /* ── Zion / Canyon Orange Theme Theme ── */
    .itinerary-tile.zion-theme .tile-hero { background: #9a3412; }
    .itinerary-tile.zion-theme.active { border-color: #f97316; }
    .itinerary-tile.zion-theme .tile-meta-item .value { color: #f97316; }
    .itinerary-tile.zion-theme .tile-start-btn { background: #9a3412; }
    .itinerary-tile.zion-theme .tile-view-btn { color: #f97316; }
    .itinerary-tile.zion-theme .tile-view-btn:hover { background: #fff7ed; }
    .zion-theme-detail .city-hero { background: #9a3412; }
    .zion-theme-detail .place-rank { background: #c2410c; }
    .zion-theme-detail .place-category { background: #fff7ed; color: #c2410c; }
    .zion-theme-detail .place-maps-link { background: #c2410c; }
    .zion-theme-detail .place-tips li::before { color: #f97316; }

    /* ── Sedona / Red Rock Theme Theme ── */
    .itinerary-tile.sedona-theme .tile-hero { background: #7a2e1a; }
    .itinerary-tile.sedona-theme.active { border-color: #e2582b; }
    .itinerary-tile.sedona-theme .tile-meta-item .value { color: #e2582b; }
    .itinerary-tile.sedona-theme .tile-start-btn { background: #7a2e1a; }
    .itinerary-tile.sedona-theme .tile-view-btn { color: #e2582b; }
    .itinerary-tile.sedona-theme .tile-view-btn:hover { background: #fff1ec; }
    .sedona-theme-detail .city-hero { background: #7a2e1a; }
    .sedona-theme-detail .place-rank { background: #c2410c; }
    .sedona-theme-detail .place-category { background: #fff1ec; color: #c2410c; }
    .sedona-theme-detail .place-maps-link { background: #c2410c; }
    .sedona-theme-detail .place-tips li::before { color: #e2582b; }

    /* ── Grand Canyon / Canyon Terracotta Theme ── */
    .itinerary-tile.grandcanyon-theme .tile-hero { background: #5b0000; }
    .itinerary-tile.grandcanyon-theme.active { border-color: #ef4444; }
    .itinerary-tile.grandcanyon-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.grandcanyon-theme .tile-start-btn { background: #5b0000; }
    .itinerary-tile.grandcanyon-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.grandcanyon-theme .tile-view-btn:hover { background: #fef2f2; }
    .grandcanyon-theme-detail .city-hero { background: #5b0000; }
    .grandcanyon-theme-detail .place-rank { background: #991b1b; }
    .grandcanyon-theme-detail .place-category { background: #fef2f2; color: #991b1b; }
    .grandcanyon-theme-detail .place-maps-link { background: #991b1b; }
    .grandcanyon-theme-detail .place-tips li::before { color: #ef4444; }

    /* ── USA states & territories (generated themes) ── */
    .itinerary-tile.ss0-theme .tile-hero { background: #134e4a; }
    .itinerary-tile.ss0-theme.active { border-color: #0d9488; }
    .itinerary-tile.ss0-theme .tile-meta-item .value { color: #0d9488; }
    .itinerary-tile.ss0-theme .tile-start-btn { background: #134e4a; }
    .itinerary-tile.ss0-theme .tile-view-btn { color: #0d9488; }
    .itinerary-tile.ss0-theme .tile-view-btn:hover { background: #f0fdfa; }
    .ss0-theme-detail .city-hero { background: #134e4a; }
    .ss0-theme-detail .place-rank { background: #0d9488; }
    .ss0-theme-detail .place-category { background: #f0fdfa; color: #134e4a; }
    .ss0-theme-detail .place-maps-link { background: #0d9488; }
    .itinerary-tile.ss1-theme .tile-hero { background: #1e3a8a; }
    .itinerary-tile.ss1-theme.active { border-color: #2563eb; }
    .itinerary-tile.ss1-theme .tile-meta-item .value { color: #2563eb; }
    .itinerary-tile.ss1-theme .tile-start-btn { background: #1e3a8a; }
    .itinerary-tile.ss1-theme .tile-view-btn { color: #2563eb; }
    .itinerary-tile.ss1-theme .tile-view-btn:hover { background: #eff6ff; }
    .ss1-theme-detail .city-hero { background: #1e3a8a; }
    .ss1-theme-detail .place-rank { background: #2563eb; }
    .ss1-theme-detail .place-category { background: #eff6ff; color: #1e3a8a; }
    .ss1-theme-detail .place-maps-link { background: #2563eb; }
    .itinerary-tile.ss2-theme .tile-hero { background: #581c87; }
    .itinerary-tile.ss2-theme.active { border-color: #9333ea; }
    .itinerary-tile.ss2-theme .tile-meta-item .value { color: #9333ea; }
    .itinerary-tile.ss2-theme .tile-start-btn { background: #581c87; }
    .itinerary-tile.ss2-theme .tile-view-btn { color: #9333ea; }
    .itinerary-tile.ss2-theme .tile-view-btn:hover { background: #faf5ff; }
    .ss2-theme-detail .city-hero { background: #581c87; }
    .ss2-theme-detail .place-rank { background: #9333ea; }
    .ss2-theme-detail .place-category { background: #faf5ff; color: #581c87; }
    .ss2-theme-detail .place-maps-link { background: #9333ea; }
    .itinerary-tile.ss3-theme .tile-hero { background: #7c2d12; }
    .itinerary-tile.ss3-theme.active { border-color: #ea580c; }
    .itinerary-tile.ss3-theme .tile-meta-item .value { color: #ea580c; }
    .itinerary-tile.ss3-theme .tile-start-btn { background: #7c2d12; }
    .itinerary-tile.ss3-theme .tile-view-btn { color: #ea580c; }
    .itinerary-tile.ss3-theme .tile-view-btn:hover { background: #fff7ed; }
    .ss3-theme-detail .city-hero { background: #7c2d12; }
    .ss3-theme-detail .place-rank { background: #ea580c; }
    .ss3-theme-detail .place-category { background: #fff7ed; color: #7c2d12; }
    .ss3-theme-detail .place-maps-link { background: #ea580c; }
    .itinerary-tile.ss4-theme .tile-hero { background: #831843; }
    .itinerary-tile.ss4-theme.active { border-color: #db2777; }
    .itinerary-tile.ss4-theme .tile-meta-item .value { color: #db2777; }
    .itinerary-tile.ss4-theme .tile-start-btn { background: #831843; }
    .itinerary-tile.ss4-theme .tile-view-btn { color: #db2777; }
    .itinerary-tile.ss4-theme .tile-view-btn:hover { background: #fdf2f8; }
    .ss4-theme-detail .city-hero { background: #831843; }
    .ss4-theme-detail .place-rank { background: #db2777; }
    .ss4-theme-detail .place-category { background: #fdf2f8; color: #831843; }
    .ss4-theme-detail .place-maps-link { background: #db2777; }
    .itinerary-tile.ss5-theme .tile-hero { background: #14532d; }
    .itinerary-tile.ss5-theme.active { border-color: #16a34a; }
    .itinerary-tile.ss5-theme .tile-meta-item .value { color: #16a34a; }
    .itinerary-tile.ss5-theme .tile-start-btn { background: #14532d; }
    .itinerary-tile.ss5-theme .tile-view-btn { color: #16a34a; }
    .itinerary-tile.ss5-theme .tile-view-btn:hover { background: #f0fdf4; }
    .ss5-theme-detail .city-hero { background: #14532d; }
    .ss5-theme-detail .place-rank { background: #16a34a; }
    .ss5-theme-detail .place-category { background: #f0fdf4; color: #14532d; }
    .ss5-theme-detail .place-maps-link { background: #16a34a; }
    .itinerary-tile.ss6-theme .tile-hero { background: #78350f; }
    .itinerary-tile.ss6-theme.active { border-color: #d97706; }
    .itinerary-tile.ss6-theme .tile-meta-item .value { color: #d97706; }
    .itinerary-tile.ss6-theme .tile-start-btn { background: #78350f; }
    .itinerary-tile.ss6-theme .tile-view-btn { color: #d97706; }
    .itinerary-tile.ss6-theme .tile-view-btn:hover { background: #fffbeb; }
    .ss6-theme-detail .city-hero { background: #78350f; }
    .ss6-theme-detail .place-rank { background: #d97706; }
    .ss6-theme-detail .place-category { background: #fffbeb; color: #78350f; }
    .ss6-theme-detail .place-maps-link { background: #d97706; }
    .itinerary-tile.ss7-theme .tile-hero { background: #1e293b; }
    .itinerary-tile.ss7-theme.active { border-color: #475569; }
    .itinerary-tile.ss7-theme .tile-meta-item .value { color: #475569; }
    .itinerary-tile.ss7-theme .tile-start-btn { background: #1e293b; }
    .itinerary-tile.ss7-theme .tile-view-btn { color: #475569; }
    .itinerary-tile.ss7-theme .tile-view-btn:hover { background: #f1f5f9; }
    .ss7-theme-detail .city-hero { background: #1e293b; }
    .ss7-theme-detail .place-rank { background: #475569; }
    .ss7-theme-detail .place-category { background: #f1f5f9; color: #1e293b; }
    .ss7-theme-detail .place-maps-link { background: #475569; }
    .itinerary-tile.ss8-theme .tile-hero { background: #7f1d1d; }
    .itinerary-tile.ss8-theme.active { border-color: #dc2626; }
    .itinerary-tile.ss8-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.ss8-theme .tile-start-btn { background: #7f1d1d; }
    .itinerary-tile.ss8-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.ss8-theme .tile-view-btn:hover { background: #fef2f2; }
    .ss8-theme-detail .city-hero { background: #7f1d1d; }
    .ss8-theme-detail .place-rank { background: #dc2626; }
    .ss8-theme-detail .place-category { background: #fef2f2; color: #7f1d1d; }
    .ss8-theme-detail .place-maps-link { background: #dc2626; }
    .itinerary-tile.ss9-theme .tile-hero { background: #164e63; }
    .itinerary-tile.ss9-theme.active { border-color: #0891b2; }
    .itinerary-tile.ss9-theme .tile-meta-item .value { color: #0891b2; }
    .itinerary-tile.ss9-theme .tile-start-btn { background: #164e63; }
    .itinerary-tile.ss9-theme .tile-view-btn { color: #0891b2; }
    .itinerary-tile.ss9-theme .tile-view-btn:hover { background: #ecfeff; }
    .ss9-theme-detail .city-hero { background: #164e63; }
    .ss9-theme-detail .place-rank { background: #0891b2; }
    .ss9-theme-detail .place-category { background: #ecfeff; color: #164e63; }
    .ss9-theme-detail .place-maps-link { background: #0891b2; }

    /* ── Philadelphia → California / Navy &amp; Gold Cross-Country Theme ── */
    .itinerary-tile.phillyca-theme .tile-hero { background: #001f5b; }
    .itinerary-tile.phillyca-theme.active { border-color: #e8b520; }
    .itinerary-tile.phillyca-theme .tile-meta-item .value { color: #c4910a; }
    .itinerary-tile.phillyca-theme .tile-start-btn { background: #001f5b; }
    .itinerary-tile.phillyca-theme .tile-view-btn { color: #c4910a; }
    .itinerary-tile.phillyca-theme .tile-view-btn:hover { background: #fef9c3; }
    .phillyca-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fff8e6; border-color: #fde68a; }
    .phillyca-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #c4910a; }
    .phillyca-theme-detail .stop.start-stop .stop-header, .phillyca-theme-detail .stop.end-stop .stop-header { background: #001f5b; }
    .phillyca-theme-detail .stop.end-stop { background: #fff8e6; }
    .phillyca-theme-detail .stop:not(.gas-stop) .stop-number { color: #c4910a; }
    .phillyca-theme-detail .stop.start-stop .stop-number, .phillyca-theme-detail .stop.end-stop .stop-number { color: #001f5b; }
    .phillyca-theme-detail .stop-body ul li::before { color: #c4910a; }
    .phillyca-theme-detail .maps-link { background: #c4910a; }
    .phillyca-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .phillyca-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .phillyca-theme-detail .dist-badge b { color: #c4910a; }
    .phillyca-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .phillyca-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .phillyca-theme-detail .section-header:not(.closed) { background: #001f5b; }
    .phillyca-theme-detail .timeline-table tr.end-row td { background: #fff8e6; color: #001f5b; }
    .phillyca-theme-detail .tips-section h3 { background: #001f5b; }
    .phillyca-theme-detail .tip-item .tip-title { color: #c4910a; }

    /* ── Salt Lake City → California / Canyon Sunset Theme ── */
    .itinerary-tile.slc-ca-theme .tile-hero { background: #6b2100; }
    .itinerary-tile.slc-ca-theme.active { border-color: #c2410c; }
    .itinerary-tile.slc-ca-theme .tile-meta-item .value { color: #c2410c; }
    .itinerary-tile.slc-ca-theme .tile-start-btn { background: #6b2100; }
    .itinerary-tile.slc-ca-theme .tile-view-btn { color: #c2410c; }
    .itinerary-tile.slc-ca-theme .tile-view-btn:hover { background: #fff7ed; }
    .slc-ca-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fff7ed; border-color: #fed7aa; }
    .slc-ca-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #c2410c; }
    .slc-ca-theme-detail .stop.start-stop .stop-header, .slc-ca-theme-detail .stop.end-stop .stop-header { background: #6b2100; }
    .slc-ca-theme-detail .stop.end-stop { background: #fff7ed; }
    .slc-ca-theme-detail .stop:not(.gas-stop) .stop-number { color: #c2410c; }
    .slc-ca-theme-detail .stop.start-stop .stop-number, .slc-ca-theme-detail .stop.end-stop .stop-number { color: #6b2100; }
    .slc-ca-theme-detail .stop-body ul li::before { color: #c2410c; }
    .slc-ca-theme-detail .maps-link { background: #c2410c; }
    .slc-ca-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .slc-ca-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .slc-ca-theme-detail .dist-badge b { color: #c2410c; }
    .slc-ca-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .slc-ca-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .slc-ca-theme-detail .section-header:not(.closed) { background: #6b2100; }
    .slc-ca-theme-detail .timeline-section h3 { background: #6b2100; }
    .slc-ca-theme-detail .timeline-table tr.end-row td { background: #fff7ed; color: #6b2100; }
    .slc-ca-theme-detail .tips-section h3 { background: #6b2100; }
    .slc-ca-theme-detail .tip-item .tip-title { color: #c2410c; }

    /* ── Rehoboth Beach / Coastal Theme (Philadelphia → Rehoboth Beach) ── */
    .itinerary-tile.rehoboth-theme .tile-hero { background: #0c3d5c; }
    .itinerary-tile.rehoboth-theme.active { border-color: #0891b2; }
    .itinerary-tile.rehoboth-theme .tile-meta-item .value { color: #0891b2; }
    .itinerary-tile.rehoboth-theme .tile-start-btn { background: #0c3d5c; }
    .itinerary-tile.rehoboth-theme .tile-view-btn { color: #0891b2; }
    .itinerary-tile.rehoboth-theme .tile-view-btn:hover { background: #ecfeff; }
    .rehoboth-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #ecfeff; border-color: #a5f3fc; }
    .rehoboth-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #0891b2; }
    .rehoboth-theme-detail .stop.start-stop .stop-header, .rehoboth-theme-detail .stop.end-stop .stop-header { background: #0c3d5c; }
    .rehoboth-theme-detail .stop.end-stop { background: #ecfeff; }
    .rehoboth-theme-detail .stop:not(.gas-stop) .stop-number { color: #0891b2; }
    .rehoboth-theme-detail .stop.start-stop .stop-number, .rehoboth-theme-detail .stop.end-stop .stop-number { color: #0c3d5c; }
    .rehoboth-theme-detail .stop-body ul li::before { color: #0891b2; }
    .rehoboth-theme-detail .maps-link { background: #0891b2; }
    .rehoboth-theme-detail .stop.lunch-stop .maps-link { background: #0c3d5c; }
    .rehoboth-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rehoboth-theme-detail .dist-badge b { color: #0891b2; }
    .rehoboth-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .rehoboth-theme-detail .stop.lunch-stop .dist-badge b { color: #0c3d5c; }
    .rehoboth-theme-detail .section-header:not(.closed) { background: #0c3d5c; }
    .rehoboth-theme-detail .timeline-section h3 { background: #0c3d5c; }
    .rehoboth-theme-detail .timeline-table tr.end-row td { background: #ecfeff; color: #0c3d5c; }
    .rehoboth-theme-detail .tips-section h3 { background: #0c3d5c; }
    .rehoboth-theme-detail .tip-item .tip-title { color: #0891b2; }

    /* ── Blue Ridge Parkway theme ── */
    .itinerary-tile.blueridge-theme .tile-hero { background: #7c2d12; }
    .itinerary-tile.blueridge-theme.active { border-color: #ea580c; }
    .itinerary-tile.blueridge-theme .tile-meta-item .value { color: #ea580c; }
    .itinerary-tile.blueridge-theme .tile-start-btn { background: #7c2d12; }
    .itinerary-tile.blueridge-theme .tile-view-btn { color: #ea580c; }
    .itinerary-tile.blueridge-theme .tile-view-btn:hover { background: #fff7ed; }
    .blueridge-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fff7ed; border-color: #fed7aa; }
    .blueridge-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #ea580c; }
    .blueridge-theme-detail .stop.start-stop .stop-header, .blueridge-theme-detail .stop.end-stop .stop-header { background: #7c2d12; }
    .blueridge-theme-detail .stop.end-stop { background: #fff7ed; }
    .blueridge-theme-detail .stop:not(.gas-stop) .stop-number { color: #ea580c; }
    .blueridge-theme-detail .stop.start-stop .stop-number, .blueridge-theme-detail .stop.end-stop .stop-number { color: #7c2d12; }
    .blueridge-theme-detail .stop-body ul li::before { color: #ea580c; }
    .blueridge-theme-detail .maps-link { background: #ea580c; }
    .blueridge-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .blueridge-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .blueridge-theme-detail .dist-badge b { color: #ea580c; }
    .blueridge-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .blueridge-theme-detail .stop.lunch-stop .dist-badge b { color: #92400e; }
    .blueridge-theme-detail .section-header:not(.closed) { background: #7c2d12; }
    .blueridge-theme-detail .timeline-section h3 { background: #7c2d12; }
    .blueridge-theme-detail .timeline-table tr.end-row td { background: #fff7ed; color: #7c2d12; }
    .blueridge-theme-detail .tips-section h3 { background: #7c2d12; }
    .blueridge-theme-detail .tip-item .tip-title { color: #ea580c; }
    .blueridge-theme-detail .stop-meta-bar { justify-content: flex-start; }

    /* ── Skyline Drive & Blue Ridge Parkway — complete drive theme ── */
    .itinerary-tile.bridrive-theme .tile-hero { background: #134e4a; }
    .itinerary-tile.bridrive-theme.active { border-color: #0d9488; }
    .itinerary-tile.bridrive-theme .tile-meta-item .value { color: #0d9488; }
    .itinerary-tile.bridrive-theme .tile-start-btn { background: #134e4a; }
    .itinerary-tile.bridrive-theme .tile-view-btn { color: #0d9488; }
    .itinerary-tile.bridrive-theme .tile-view-btn:hover { background: #f0fdfa; }
    .bridrive-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #f0fdfa; border-color: #99f6e4; }
    .bridrive-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #0d9488; }
    .bridrive-theme-detail .stop.start-stop .stop-header, .bridrive-theme-detail .stop.end-stop .stop-header { background: #134e4a; }
    .bridrive-theme-detail .stop.end-stop { background: #f0fdfa; }
    .bridrive-theme-detail .stop:not(.gas-stop) .stop-number { color: #0d9488; }
    .bridrive-theme-detail .stop.start-stop .stop-number, .bridrive-theme-detail .stop.end-stop .stop-number { color: #134e4a; }
    .bridrive-theme-detail .stop-body ul li::before { color: #0d9488; }
    .bridrive-theme-detail .maps-link { background: #0d9488; }
    .bridrive-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .bridrive-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .bridrive-theme-detail .dist-badge b { color: #0d9488; }
    .bridrive-theme-detail .section-header:not(.closed) { background: #134e4a; }
    .bridrive-theme-detail .timeline-section h3 { background: #134e4a; }
    .bridrive-theme-detail .timeline-table tr.end-row td { background: #f0fdfa; color: #134e4a; }
    .bridrive-theme-detail .tips-section h3 { background: #134e4a; }
    .bridrive-theme-detail .tip-item .tip-title { color: #0d9488; }
    .bridrive-theme-detail .stop-meta-bar { justify-content: flex-start; }

    /* ── Famous road drives (generated themes) ── */
    .itinerary-tile.rd0-theme .tile-hero { background: #134e4a; }
    .itinerary-tile.rd0-theme.active { border-color: #0d9488; }
    .itinerary-tile.rd0-theme .tile-meta-item .value { color: #0d9488; }
    .itinerary-tile.rd0-theme .tile-start-btn { background: #134e4a; }
    .itinerary-tile.rd0-theme .tile-view-btn { color: #0d9488; }
    .itinerary-tile.rd0-theme .tile-view-btn:hover { background: #f0fdfa; }
    .rd0-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #f0fdfa; border-color: #99f6e4; }
    .rd0-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #0d9488; }
    .rd0-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #0d9488; }
    .rd0-theme-detail .maps-link { background: #0d9488; }
    .rd0-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd0-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd0-theme-detail .section-header:not(.closed) { background: #134e4a; }
    .rd0-theme-detail .timeline-section h3 { background: #134e4a; }
    .rd0-theme-detail .timeline-table tr.end-row td { background: #f0fdfa; color: #134e4a; }
    .rd0-theme-detail .tips-section h3 { background: #134e4a; }
    .rd0-theme-detail .tip-item .tip-title { color: #0d9488; }
    .rd0-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd1-theme .tile-hero { background: #1e3a8a; }
    .itinerary-tile.rd1-theme.active { border-color: #2563eb; }
    .itinerary-tile.rd1-theme .tile-meta-item .value { color: #2563eb; }
    .itinerary-tile.rd1-theme .tile-start-btn { background: #1e3a8a; }
    .itinerary-tile.rd1-theme .tile-view-btn { color: #2563eb; }
    .itinerary-tile.rd1-theme .tile-view-btn:hover { background: #eff6ff; }
    .rd1-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #eff6ff; border-color: #bfdbfe; }
    .rd1-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #2563eb; }
    .rd1-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #2563eb; }
    .rd1-theme-detail .maps-link { background: #2563eb; }
    .rd1-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd1-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd1-theme-detail .section-header:not(.closed) { background: #1e3a8a; }
    .rd1-theme-detail .timeline-section h3 { background: #1e3a8a; }
    .rd1-theme-detail .timeline-table tr.end-row td { background: #eff6ff; color: #1e3a8a; }
    .rd1-theme-detail .tips-section h3 { background: #1e3a8a; }
    .rd1-theme-detail .tip-item .tip-title { color: #2563eb; }
    .rd1-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd2-theme .tile-hero { background: #581c87; }
    .itinerary-tile.rd2-theme.active { border-color: #9333ea; }
    .itinerary-tile.rd2-theme .tile-meta-item .value { color: #9333ea; }
    .itinerary-tile.rd2-theme .tile-start-btn { background: #581c87; }
    .itinerary-tile.rd2-theme .tile-view-btn { color: #9333ea; }
    .itinerary-tile.rd2-theme .tile-view-btn:hover { background: #faf5ff; }
    .rd2-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #faf5ff; border-color: #e9d5ff; }
    .rd2-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #9333ea; }
    .rd2-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #9333ea; }
    .rd2-theme-detail .maps-link { background: #9333ea; }
    .rd2-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd2-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd2-theme-detail .section-header:not(.closed) { background: #581c87; }
    .rd2-theme-detail .timeline-section h3 { background: #581c87; }
    .rd2-theme-detail .timeline-table tr.end-row td { background: #faf5ff; color: #581c87; }
    .rd2-theme-detail .tips-section h3 { background: #581c87; }
    .rd2-theme-detail .tip-item .tip-title { color: #9333ea; }
    .rd2-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd3-theme .tile-hero { background: #7c2d12; }
    .itinerary-tile.rd3-theme.active { border-color: #ea580c; }
    .itinerary-tile.rd3-theme .tile-meta-item .value { color: #ea580c; }
    .itinerary-tile.rd3-theme .tile-start-btn { background: #7c2d12; }
    .itinerary-tile.rd3-theme .tile-view-btn { color: #ea580c; }
    .itinerary-tile.rd3-theme .tile-view-btn:hover { background: #fff7ed; }
    .rd3-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fff7ed; border-color: #fed7aa; }
    .rd3-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #ea580c; }
    .rd3-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #ea580c; }
    .rd3-theme-detail .maps-link { background: #ea580c; }
    .rd3-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd3-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd3-theme-detail .section-header:not(.closed) { background: #7c2d12; }
    .rd3-theme-detail .timeline-section h3 { background: #7c2d12; }
    .rd3-theme-detail .timeline-table tr.end-row td { background: #fff7ed; color: #7c2d12; }
    .rd3-theme-detail .tips-section h3 { background: #7c2d12; }
    .rd3-theme-detail .tip-item .tip-title { color: #ea580c; }
    .rd3-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd4-theme .tile-hero { background: #831843; }
    .itinerary-tile.rd4-theme.active { border-color: #db2777; }
    .itinerary-tile.rd4-theme .tile-meta-item .value { color: #db2777; }
    .itinerary-tile.rd4-theme .tile-start-btn { background: #831843; }
    .itinerary-tile.rd4-theme .tile-view-btn { color: #db2777; }
    .itinerary-tile.rd4-theme .tile-view-btn:hover { background: #fdf2f8; }
    .rd4-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fdf2f8; border-color: #fbcfe8; }
    .rd4-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #db2777; }
    .rd4-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #db2777; }
    .rd4-theme-detail .maps-link { background: #db2777; }
    .rd4-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd4-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd4-theme-detail .section-header:not(.closed) { background: #831843; }
    .rd4-theme-detail .timeline-section h3 { background: #831843; }
    .rd4-theme-detail .timeline-table tr.end-row td { background: #fdf2f8; color: #831843; }
    .rd4-theme-detail .tips-section h3 { background: #831843; }
    .rd4-theme-detail .tip-item .tip-title { color: #db2777; }
    .rd4-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd5-theme .tile-hero { background: #14532d; }
    .itinerary-tile.rd5-theme.active { border-color: #16a34a; }
    .itinerary-tile.rd5-theme .tile-meta-item .value { color: #16a34a; }
    .itinerary-tile.rd5-theme .tile-start-btn { background: #14532d; }
    .itinerary-tile.rd5-theme .tile-view-btn { color: #16a34a; }
    .itinerary-tile.rd5-theme .tile-view-btn:hover { background: #f0fdf4; }
    .rd5-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #f0fdf4; border-color: #bbf7d0; }
    .rd5-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #16a34a; }
    .rd5-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #16a34a; }
    .rd5-theme-detail .maps-link { background: #16a34a; }
    .rd5-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd5-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd5-theme-detail .section-header:not(.closed) { background: #14532d; }
    .rd5-theme-detail .timeline-section h3 { background: #14532d; }
    .rd5-theme-detail .timeline-table tr.end-row td { background: #f0fdf4; color: #14532d; }
    .rd5-theme-detail .tips-section h3 { background: #14532d; }
    .rd5-theme-detail .tip-item .tip-title { color: #16a34a; }
    .rd5-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd6-theme .tile-hero { background: #78350f; }
    .itinerary-tile.rd6-theme.active { border-color: #d97706; }
    .itinerary-tile.rd6-theme .tile-meta-item .value { color: #d97706; }
    .itinerary-tile.rd6-theme .tile-start-btn { background: #78350f; }
    .itinerary-tile.rd6-theme .tile-view-btn { color: #d97706; }
    .itinerary-tile.rd6-theme .tile-view-btn:hover { background: #fffbeb; }
    .rd6-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fffbeb; border-color: #fde68a; }
    .rd6-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #d97706; }
    .rd6-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #d97706; }
    .rd6-theme-detail .maps-link { background: #d97706; }
    .rd6-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd6-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd6-theme-detail .section-header:not(.closed) { background: #78350f; }
    .rd6-theme-detail .timeline-section h3 { background: #78350f; }
    .rd6-theme-detail .timeline-table tr.end-row td { background: #fffbeb; color: #78350f; }
    .rd6-theme-detail .tips-section h3 { background: #78350f; }
    .rd6-theme-detail .tip-item .tip-title { color: #d97706; }
    .rd6-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd7-theme .tile-hero { background: #1e293b; }
    .itinerary-tile.rd7-theme.active { border-color: #475569; }
    .itinerary-tile.rd7-theme .tile-meta-item .value { color: #475569; }
    .itinerary-tile.rd7-theme .tile-start-btn { background: #1e293b; }
    .itinerary-tile.rd7-theme .tile-view-btn { color: #475569; }
    .itinerary-tile.rd7-theme .tile-view-btn:hover { background: #f1f5f9; }
    .rd7-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #f1f5f9; border-color: #cbd5e1; }
    .rd7-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #475569; }
    .rd7-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #475569; }
    .rd7-theme-detail .maps-link { background: #475569; }
    .rd7-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd7-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd7-theme-detail .section-header:not(.closed) { background: #1e293b; }
    .rd7-theme-detail .timeline-section h3 { background: #1e293b; }
    .rd7-theme-detail .timeline-table tr.end-row td { background: #f1f5f9; color: #1e293b; }
    .rd7-theme-detail .tips-section h3 { background: #1e293b; }
    .rd7-theme-detail .tip-item .tip-title { color: #475569; }
    .rd7-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd8-theme .tile-hero { background: #7f1d1d; }
    .itinerary-tile.rd8-theme.active { border-color: #dc2626; }
    .itinerary-tile.rd8-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.rd8-theme .tile-start-btn { background: #7f1d1d; }
    .itinerary-tile.rd8-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.rd8-theme .tile-view-btn:hover { background: #fef2f2; }
    .rd8-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #fef2f2; border-color: #fecaca; }
    .rd8-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #dc2626; }
    .rd8-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #dc2626; }
    .rd8-theme-detail .maps-link { background: #dc2626; }
    .rd8-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd8-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd8-theme-detail .section-header:not(.closed) { background: #7f1d1d; }
    .rd8-theme-detail .timeline-section h3 { background: #7f1d1d; }
    .rd8-theme-detail .timeline-table tr.end-row td { background: #fef2f2; color: #7f1d1d; }
    .rd8-theme-detail .tips-section h3 { background: #7f1d1d; }
    .rd8-theme-detail .tip-item .tip-title { color: #dc2626; }
    .rd8-theme-detail .stop-meta-bar { justify-content: flex-start; }
    .itinerary-tile.rd9-theme .tile-hero { background: #164e63; }
    .itinerary-tile.rd9-theme.active { border-color: #0891b2; }
    .itinerary-tile.rd9-theme .tile-meta-item .value { color: #0891b2; }
    .itinerary-tile.rd9-theme .tile-start-btn { background: #164e63; }
    .itinerary-tile.rd9-theme .tile-view-btn { color: #0891b2; }
    .itinerary-tile.rd9-theme .tile-view-btn:hover { background: #ecfeff; }
    .rd9-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #ecfeff; border-color: #a5f3fc; }
    .rd9-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #0891b2; }
    .rd9-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-number { color: #0891b2; }
    .rd9-theme-detail .maps-link { background: #0891b2; }
    .rd9-theme-detail .stop.lunch-stop .maps-link { background: #92400e; }
    .rd9-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .rd9-theme-detail .section-header:not(.closed) { background: #164e63; }
    .rd9-theme-detail .timeline-section h3 { background: #164e63; }
    .rd9-theme-detail .timeline-table tr.end-row td { background: #ecfeff; color: #164e63; }
    .rd9-theme-detail .tips-section h3 { background: #164e63; }
    .rd9-theme-detail .tip-item .tip-title { color: #0891b2; }
    .rd9-theme-detail .stop-meta-bar { justify-content: flex-start; }

    /* ── Cape May / Victorian Purple Theme (Philadelphia → Cape May) ── */
    .itinerary-tile.cape-may-theme .tile-hero { background: #3b0764; }
    .itinerary-tile.cape-may-theme.active { border-color: #7e22ce; }
    .itinerary-tile.cape-may-theme .tile-meta-item .value { color: #7e22ce; }
    .itinerary-tile.cape-may-theme .tile-start-btn { background: #3b0764; }
    .itinerary-tile.cape-may-theme .tile-view-btn { color: #7e22ce; }
    .itinerary-tile.cape-may-theme .tile-view-btn:hover { background: #faf5ff; }
    .cape-may-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) { background: #faf5ff; border-color: #e9d5ff; }
    .cape-may-theme-detail .stop:not(.gas-stop):not(.lunch-stop):not(.warning-stop):not(.start-stop):not(.end-stop) .stop-header { background: #7e22ce; }
    .cape-may-theme-detail .stop.start-stop .stop-header, .cape-may-theme-detail .stop.end-stop .stop-header { background: #3b0764; }
    .cape-may-theme-detail .stop.end-stop { background: #faf5ff; }
    .cape-may-theme-detail .stop:not(.gas-stop) .stop-number { color: #7e22ce; }
    .cape-may-theme-detail .stop.start-stop .stop-number, .cape-may-theme-detail .stop.end-stop .stop-number { color: #3b0764; }
    .cape-may-theme-detail .stop-body ul li::before { color: #7e22ce; }
    .cape-may-theme-detail .maps-link { background: #7e22ce; }
    .cape-may-theme-detail .stop.lunch-stop .maps-link { background: #3b0764; }
    .cape-may-theme-detail .stop.gas-stop .maps-link { background: var(--gas-blue); }
    .cape-may-theme-detail .dist-badge b { color: #7e22ce; }
    .cape-may-theme-detail .stop.gas-stop .dist-badge b { color: var(--gas-blue); }
    .cape-may-theme-detail .stop.lunch-stop .dist-badge b { color: #3b0764; }
    .cape-may-theme-detail .section-header:not(.closed) { background: #3b0764; }
    .cape-may-theme-detail .timeline-section h3 { background: #3b0764; }
    .cape-may-theme-detail .timeline-table tr.end-row td { background: #faf5ff; color: #3b0764; }
    .cape-may-theme-detail .tips-section h3 { background: #3b0764; }
    .cape-may-theme-detail .tip-item .tip-title { color: #7e22ce; }

    /* ── Europe Itinerary Themes ── */
    .itinerary-tile.europe-grandtour-theme .tile-hero { background: #1e1035; }
    .itinerary-tile.europe-grandtour-theme.active { border-color: #7c3aed; }
    .itinerary-tile.europe-grandtour-theme .tile-meta-item .value { color: #7c3aed; }
    .itinerary-tile.europe-grandtour-theme .tile-start-btn { background: #1e1035; }
    .itinerary-tile.europe-grandtour-theme .tile-view-btn { color: #7c3aed; }
    .itinerary-tile.europe-grandtour-theme .tile-view-btn:hover { background: #f5f3ff; }
    .europe-grandtour-detail .section-header { background: #1e1035; }

    .itinerary-tile.europe-highlands-theme .tile-hero { background: #0a2218; }
    .itinerary-tile.europe-highlands-theme.active { border-color: #16a34a; }
    .itinerary-tile.europe-highlands-theme .tile-meta-item .value { color: #15803d; }
    .itinerary-tile.europe-highlands-theme .tile-start-btn { background: #0a2218; }
    .itinerary-tile.europe-highlands-theme .tile-view-btn { color: #15803d; }
    .itinerary-tile.europe-highlands-theme .tile-view-btn:hover { background: #f0fdf4; }
    .europe-highlands-detail .section-header { background: #0a2218; }

    .itinerary-tile.europe-amalfi-theme .tile-hero { background: #0c2340; }
    .itinerary-tile.europe-amalfi-theme.active { border-color: #0ea5e9; }
    .itinerary-tile.europe-amalfi-theme .tile-meta-item .value { color: #0284c7; }
    .itinerary-tile.europe-amalfi-theme .tile-start-btn { background: #0c2340; }
    .itinerary-tile.europe-amalfi-theme .tile-view-btn { color: #0284c7; }
    .itinerary-tile.europe-amalfi-theme .tile-view-btn:hover { background: #f0f9ff; }
    .europe-amalfi-detail .section-header { background: #0c2340; }

    .itinerary-tile.europe-romanticroad-theme .tile-hero { background: #1f0b00; }
    .itinerary-tile.europe-romanticroad-theme.active { border-color: #d97706; }
    .itinerary-tile.europe-romanticroad-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.europe-romanticroad-theme .tile-start-btn { background: #1f0b00; }
    .itinerary-tile.europe-romanticroad-theme .tile-view-btn { color: #b45309; }
    .itinerary-tile.europe-romanticroad-theme .tile-view-btn:hover { background: #fffbeb; }
    .europe-romanticroad-detail .section-header { background: #1f0b00; }

    /* ── Europe City Themes ── */
    .itinerary-tile.europe-paris-theme .tile-hero { background: #1a0533; }
    .itinerary-tile.europe-paris-theme.active { border-color: #a855f7; }
    .itinerary-tile.europe-paris-theme .tile-meta-item .value { color: #9333ea; }
    .itinerary-tile.europe-paris-theme .tile-start-btn { background: #1a0533; }
    .itinerary-tile.europe-paris-theme .tile-view-btn { color: #9333ea; }
    .itinerary-tile.europe-paris-theme .tile-view-btn:hover { background: #faf5ff; }
    .europe-paris-detail .city-hero { background: #1a0533; }
    .europe-paris-detail .place-rank { background: #6d28d9; }
    .europe-paris-detail .place-category { background: #faf5ff; color: #6d28d9; }
    .europe-paris-detail .place-maps-link { background: #6d28d9; }
    .europe-paris-detail .place-tips li::before { color: #a855f7; }

    .itinerary-tile.europe-rome-theme .tile-hero { background: #3d0000; }
    .itinerary-tile.europe-rome-theme.active { border-color: #ef4444; }
    .itinerary-tile.europe-rome-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.europe-rome-theme .tile-start-btn { background: #3d0000; }
    .itinerary-tile.europe-rome-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.europe-rome-theme .tile-view-btn:hover { background: #fef2f2; }
    .europe-rome-detail .city-hero { background: #3d0000; }
    .europe-rome-detail .place-rank { background: #991b1b; }
    .europe-rome-detail .place-category { background: #fef2f2; color: #991b1b; }
    .europe-rome-detail .place-maps-link { background: #991b1b; }
    .europe-rome-detail .place-tips li::before { color: #ef4444; }

    .itinerary-tile.europe-barcelona-theme .tile-hero { background: #4a0000; }
    .itinerary-tile.europe-barcelona-theme.active { border-color: #f59e0b; }
    .itinerary-tile.europe-barcelona-theme .tile-meta-item .value { color: #d97706; }
    .itinerary-tile.europe-barcelona-theme .tile-start-btn { background: #4a0000; }
    .itinerary-tile.europe-barcelona-theme .tile-view-btn { color: #d97706; }
    .itinerary-tile.europe-barcelona-theme .tile-view-btn:hover { background: #fffbeb; }
    .europe-barcelona-detail .city-hero { background: #4a0000; }
    .europe-barcelona-detail .place-rank { background: #92400e; }
    .europe-barcelona-detail .place-category { background: #fffbeb; color: #92400e; }
    .europe-barcelona-detail .place-maps-link { background: #92400e; }
    .europe-barcelona-detail .place-tips li::before { color: #f59e0b; }

    .itinerary-tile.europe-amsterdam-theme .tile-hero { background: #0a1a40; }
    .itinerary-tile.europe-amsterdam-theme.active { border-color: #ef4444; }
    .itinerary-tile.europe-amsterdam-theme .tile-meta-item .value { color: #dc2626; }
    .itinerary-tile.europe-amsterdam-theme .tile-start-btn { background: #0a1a40; }
    .itinerary-tile.europe-amsterdam-theme .tile-view-btn { color: #dc2626; }
    .itinerary-tile.europe-amsterdam-theme .tile-view-btn:hover { background: #fef2f2; }
    .europe-amsterdam-detail .city-hero { background: #0a1a40; }
    .europe-amsterdam-detail .place-rank { background: #1e3a8a; }
    .europe-amsterdam-detail .place-category { background: #eff6ff; color: #1e3a8a; }
    .europe-amsterdam-detail .place-maps-link { background: #1e3a8a; }
    .europe-amsterdam-detail .place-tips li::before { color: #3b82f6; }

    /* ── Thailand Itinerary Themes ── */
    .itinerary-tile.thai-bkk-cnx-theme .tile-hero { background: #78350f; }
    .itinerary-tile.thai-bkk-cnx-theme.active { border-color: #d97706; }
    .itinerary-tile.thai-bkk-cnx-theme .tile-meta-item .value { color: #b45309; }
    .itinerary-tile.thai-bkk-cnx-theme .tile-start-btn { background: #78350f; }
    .itinerary-tile.thai-bkk-cnx-theme .tile-view-btn { color: #b45309; }
    .itinerary-tile.thai-bkk-cnx-theme .tile-view-btn:hover { background: #fffbeb; }
    .thai-bkk-cnx-detail .section-header { background: #78350f; }

    .itinerary-tile.thai-islands-theme .tile-hero { background: #134e4a; }
    .itinerary-tile.thai-islands-theme.active { border-color: #0d9488; }
    .itinerary-tile.thai-islands-theme .tile-meta-item .value { color: #0f766e; }
    .itinerary-tile.thai-islands-theme .tile-start-btn { background: #134e4a; }
    .itinerary-tile.thai-islands-theme .tile-view-btn { color: #0f766e; }
    .itinerary-tile.thai-islands-theme .tile-view-btn:hover { background: #f0fdfa; }
    .thai-islands-detail .section-header { background: #134e4a; }

    .itinerary-tile.thai-golden-triangle-theme .tile-hero { background: #14532d; }
    .itinerary-tile.thai-golden-triangle-theme.active { border-color: #16a34a; }
    .itinerary-tile.thai-golden-triangle-theme .tile-meta-item .value { color: #15803d; }
    .itinerary-tile.thai-golden-triangle-theme .tile-start-btn { background: #14532d; }
    .itinerary-tile.thai-golden-triangle-theme .tile-view-btn { color: #15803d; }
    .itinerary-tile.thai-golden-triangle-theme .tile-view-btn:hover { background: #f0fdf4; }
    .thai-golden-triangle-detail .section-header { background: #14532d; }

    .itinerary-tile.thai-heritage-loop-theme .tile-hero { background: #7f1d1d; }
    .itinerary-tile.thai-heritage-loop-theme.active { border-color: #dc2626; }
    .itinerary-tile.thai-heritage-loop-theme .tile-meta-item .value { color: #b91c1c; }
    .itinerary-tile.thai-heritage-loop-theme .tile-start-btn { background: #7f1d1d; }
    .itinerary-tile.thai-heritage-loop-theme .tile-view-btn { color: #b91c1c; }
    .itinerary-tile.thai-heritage-loop-theme .tile-view-btn:hover { background: #fef2f2; }
    .thai-heritage-loop-detail .section-header { background: #7f1d1d; }

    /* ── Thailand City Themes ── */
    .itinerary-tile.thai-bangkok-theme .tile-hero { background: #7c2d12; }
    .itinerary-tile.thai-bangkok-theme.active { border-color: #ea580c; }
    .itinerary-tile.thai-bangkok-theme .tile-meta-item .value { color: #c2410c; }
    .itinerary-tile.thai-bangkok-theme .tile-start-btn { background: #7c2d12; }
    .itinerary-tile.thai-bangkok-theme .tile-view-btn { color: #c2410c; }
    .itinerary-tile.thai-bangkok-theme .tile-view-btn:hover { background: #fff7ed; }
    .thai-bangkok-detail .city-hero { background: #7c2d12; }
    .thai-bangkok-detail .place-rank { background: #9a3412; }
    .thai-bangkok-detail .place-category { background: #fff7ed; color: #9a3412; }
    .thai-bangkok-detail .place-maps-link { background: #9a3412; }
    .thai-bangkok-detail .place-tips li::before { color: #ea580c; }

    .itinerary-tile.thai-chiangmai-theme .tile-hero { background: #064e3b; }
    .itinerary-tile.thai-chiangmai-theme.active { border-color: #10b981; }
    .itinerary-tile.thai-chiangmai-theme .tile-meta-item .value { color: #059669; }
    .itinerary-tile.thai-chiangmai-theme .tile-start-btn { background: #064e3b; }
    .itinerary-tile.thai-chiangmai-theme .tile-view-btn { color: #059669; }
    .itinerary-tile.thai-chiangmai-theme .tile-view-btn:hover { background: #ecfdf5; }
    .thai-chiangmai-detail .city-hero { background: #064e3b; }
    .thai-chiangmai-detail .place-rank { background: #065f46; }
    .thai-chiangmai-detail .place-category { background: #ecfdf5; color: #065f46; }
    .thai-chiangmai-detail .place-maps-link { background: #065f46; }
    .thai-chiangmai-detail .place-tips li::before { color: #10b981; }

    .itinerary-tile.thai-phuket-theme .tile-hero { background: #0e4f6b; }
    .itinerary-tile.thai-phuket-theme.active { border-color: #06b6d4; }
    .itinerary-tile.thai-phuket-theme .tile-meta-item .value { color: #0891b2; }
    .itinerary-tile.thai-phuket-theme .tile-start-btn { background: #0e4f6b; }
    .itinerary-tile.thai-phuket-theme .tile-view-btn { color: #0891b2; }
    .itinerary-tile.thai-phuket-theme .tile-view-btn:hover { background: #ecfeff; }
    .thai-phuket-detail .city-hero { background: #0e4f6b; }
    .thai-phuket-detail .place-rank { background: #0e7490; }
    .thai-phuket-detail .place-category { background: #ecfeff; color: #0e7490; }
    .thai-phuket-detail .place-maps-link { background: #0e7490; }
    .thai-phuket-detail .place-tips li::before { color: #06b6d4; }

    .itinerary-tile.thai-chiangrai-theme .tile-hero { background: #292524; }
    .itinerary-tile.thai-chiangrai-theme.active { border-color: #d4d4d4; }
    .itinerary-tile.thai-chiangrai-theme .tile-meta-item .value { color: #57534e; }
    .itinerary-tile.thai-chiangrai-theme .tile-start-btn { background: #292524; }
    .itinerary-tile.thai-chiangrai-theme .tile-view-btn { color: #57534e; }
    .itinerary-tile.thai-chiangrai-theme .tile-view-btn:hover { background: #fafaf9; }
    .thai-chiangrai-detail .city-hero { background: #292524; }
    .thai-chiangrai-detail .place-rank { background: #44403c; }
    .thai-chiangrai-detail .place-category { background: #f5f5f4; color: #44403c; }
    .thai-chiangrai-detail .place-maps-link { background: #44403c; }
    .thai-chiangrai-detail .place-tips li::before { color: #a8a29e; }

    .itinerary-tile.thai-pattaya-theme .tile-hero { background: #164e63; }
    .itinerary-tile.thai-pattaya-theme.active { border-color: #06b6d4; }
    .itinerary-tile.thai-pattaya-theme .tile-meta-item .value { color: #0891b2; }
    .itinerary-tile.thai-pattaya-theme .tile-start-btn { background: #164e63; }
    .itinerary-tile.thai-pattaya-theme .tile-view-btn { color: #0891b2; }
    .itinerary-tile.thai-pattaya-theme .tile-view-btn:hover { background: #ecfeff; }
    .thai-pattaya-detail .city-hero { background: #164e63; }
    .thai-pattaya-detail .place-rank { background: #155e75; }
    .thai-pattaya-detail .place-category { background: #ecfeff; color: #155e75; }
    .thai-pattaya-detail .place-maps-link { background: #155e75; }
    .thai-pattaya-detail .place-tips li::before { color: #06b6d4; }

    @media (max-width: 600px) {
      .trip-hero h2      { font-size: 1.4rem; }
      .tile-hero h2      { font-size: 1.2rem; }
      .site-header h1    { font-size: 1.8rem; }
      .gas-stats         { flex-direction: column; }
      .tiles-gallery     { gap: 1rem; }
    }

    /* ── Mobile layout fixes ── */
    html, body { max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
    img, svg, video { max-width: 100%; }
    .country-nav, .tabs-nav {
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .country-nav::-webkit-scrollbar, .tabs-nav::-webkit-scrollbar { display: none; }
    .country-nav { justify-content: safe center; }
    .country-btn, .tab-btn { flex: 0 0 auto; white-space: nowrap; }
    .timeline-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tile-view-btn { white-space: nowrap; }
    .tile-meta-item { min-width: 0; overflow-wrap: anywhere; }
    .tile-hero h2 { overflow-wrap: anywhere; }
    @media (max-width: 600px) {
      .site-header { padding: 1.5rem 1rem; }
      .country-nav { gap: 0.5rem; padding: 0.75rem 1rem; }
      .country-btn { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
      .tabs-nav { padding: 0 0.5rem; }
      .tab-btn { padding: 0.8rem 1rem; }
      .tile-hero { padding: 1.5rem 1rem 1.25rem; }
      .tile-meta-item { padding: 0.75rem 0.85rem; }
    }

    /* ── Share Buttons ── */
    .tile-share-btn {
      background: #fff;
      color: var(--muted);
      border: none;
      cursor: pointer;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.85rem 0.8rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      transition: background 0.12s, color 0.12s;
      font-family: inherit;
      border-left: 1px solid var(--border);
      flex-shrink: 0;
    }
    .tile-share-btn:hover { background: var(--mint); color: var(--forest); }

    .detail-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      background: #fff;
      color: var(--forest);
      border: 2px solid var(--forest);
      font-size: 0.85rem;
      font-weight: 700;
      padding: 0.45rem 1.1rem;
      border-radius: 999px;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.12s;
      white-space: nowrap;
    }
    .detail-share-btn:hover { background: var(--mint); }

    .place-footer {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
      margin-top: 0.75rem;
    }
    .place-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      background: transparent;
      color: var(--muted);
      border: 1px solid #e5e7eb;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.22rem 0.5rem;
      border-radius: 999px;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.12s, color 0.12s, border-color 0.12s;
    }
    .place-share-btn:hover { background: var(--mint); color: var(--forest); border-color: var(--border); }

    /* ── Share Toast ── */
    #share-toast {
      position: fixed;
      top: calc(env(safe-area-inset-top, 0px) + 1rem);
      left: 50%;
      max-width: 92vw;
      text-align: center;
      transform: translateX(-50%) translateY(-120px);
      background: #1a1a1a;
      color: #fff;
      padding: 0.6rem 1.4rem;
      border-radius: 999px;
      font-size: 0.86rem;
      font-weight: 600;
      z-index: 9999;
      transition: transform 0.28s ease, opacity 0.28s ease;
      opacity: 0;
      pointer-events: none;
    }
    #share-toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* ══ Notes-style shell (Knottify-inspired) ══ */
    :root {
      --accent: #1f8a5b;
      --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
      --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
      --shell-bg: #f3f6f5;
      --shell-ink: #17211d;
      --shell-muted: #5d6b66;
      --shell-line: #dde5e1;
      --shell-card: #fff;
    }
    body { background: linear-gradient(180deg, #e9f1ee 0, var(--shell-bg) 260px) fixed, var(--shell-bg); color: var(--shell-ink); }
    .tk-hidden { display: none !important; }

    .topbar {
      position: sticky; top: 0; z-index: 50;
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.6rem 1rem;
      background: rgba(255,255,255,0.88);
      -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--shell-line);
    }
    .brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.2px; color: var(--shell-ink); text-decoration: none; flex: none; }
    .brand svg { height: 40px; width: auto; flex: none; overflow: visible; }
    .topnav { display: flex; gap: 0.25rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
    .topnav::-webkit-scrollbar { display: none; }
    .topbar .country-btn {
      flex: 0 0 auto; background: transparent; border: 0; color: var(--shell-muted);
      padding: 0.45rem 0.9rem; border-radius: 10px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0; white-space: nowrap;
    }
    .topbar .country-btn:hover { background: var(--accent-soft); color: var(--shell-ink); }
    .topbar .country-btn.active { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,0.14), 0 0 0 1px var(--accent-line); }
    .top-actions { display: flex; gap: 0.4rem; flex: none; position: relative; }
    .icon-btn {
      width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
      background: #fff; border: 1px solid var(--shell-line); border-radius: 10px; color: var(--shell-ink); cursor: pointer; font-family: inherit;
    }
    .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
    .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    html[data-logo="off"] .topbar .brand { display: none; }
    .set-box { max-height: 90vh; overflow-y: auto; }
    html.geo-set #dd-country, html.geo-set #dd-nation { display: none !important; }
    .set-sel { display: block; margin: .45rem 0; font-size: .82rem; color: var(--shell-muted); } .set-sel[hidden] { display: none; }
    .set-sel select { display: block; width: 100%; margin-top: .2rem; padding: .5rem .55rem; border-radius: 10px; border: 1px solid var(--shell-line); background: #fff; font: inherit; font-size: .9rem; color: #1b2b24; }
    .set-h { margin: 1rem 0 .4rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--shell-muted); }
    .set-row { display: flex; margin: .45rem 0; }
    .set-swatches { margin: .5rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .5rem; } .set-swatches[hidden] { display: none; }
    .set-swatches .swatch { width: 34px; height: 34px; aspect-ratio: auto; flex: none; }
    .set-box .off-status { font-size: .85rem; margin: 0 0 .5rem; } .set-box .off-act { display: block; width: 100%; margin: .35rem 0; }
    .set-box .off-act[hidden] { display: none; }
    .accent-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); display: block; }
    .accent-pop {
      position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--shell-line); border-radius: 12px;
      padding: 0.7rem; box-shadow: 0 10px 30px rgba(0,0,0,0.16); display: none; width: 196px; z-index: 70;
    }
    .accent-pop.open { display: block; }
    .off-pop { width: 280px; }
    .off-status { font-size: 0.82rem; margin: 0 0 0.6rem; color: var(--shell-ink); }
    .off-act { display: block; width: 100%; text-align: left; margin: 0 0 0.4rem; padding: 0.55rem 0.7rem; border: 1px solid var(--shell-line); border-radius: 10px; background: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--shell-ink); }
    .off-act:hover { border-color: var(--accent); color: var(--accent); }
    .off-act[hidden] { display: none; }
    .pa-link { display: flex; gap: .4rem; margin-bottom: .4rem; } .pa-link input { flex: 1; min-width: 0; padding: .5rem .6rem; border: 1px solid var(--shell-line); border-radius: 10px; font: inherit; font-size: .8rem; background: #fff; color: inherit; } .pa-link .off-act { width: auto; margin: 0; white-space: nowrap; text-align: center; }
    a.off-act { text-decoration: none; color: inherit; text-align: center; } .pa-steps { margin: .5rem 0; padding-left: 1.15rem; font-size: .82rem; line-height: 1.55; } .pa-steps li { margin-bottom: .35rem; }
    .off-note { font-size: 0.72rem; color: var(--shell-muted); margin: 0.2rem 0 0; line-height: 1.4; }
    @media (min-width: 900px) { .tk-search { max-width: 440px !important; min-width: 0 !important; flex: 1 1 120px !important; } .tk-search-text { min-width: 0; } .tk-search kbd { flex: none; } .top-actions { flex: none; } }
    .accent-pop h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--shell-muted); margin-bottom: 0.5rem; }
    .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .swatch { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--shell-line); cursor: pointer; padding: 0; }
    .swatch.on { box-shadow: 0 0 0 2px var(--shell-ink); }

    .tabs-nav { background: transparent; border-bottom: 0; max-width: 1240px; margin: 0.75rem auto 0; padding: 0 1rem; gap: 0.25rem; }
    .tabs-nav .tab-btn { color: var(--shell-muted); border-bottom-width: 2px; padding: 0.6rem 1rem; }
    .tabs-nav .tab-btn:hover { color: var(--shell-ink); }
    .tabs-nav .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

    .notes-app { display: flex; gap: 1rem; align-items: flex-start; max-width: 1240px; margin: 0.75rem auto 0; padding: 0 1rem 2rem; }
    .notes-side {
      position: fixed; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); z-index: 80;
      transform: translateX(-102%); transition: transform 0.22s ease;
      background: var(--shell-card); border-right: 1px solid var(--shell-line); box-shadow: 0 0 40px rgba(0,0,0,0.25);
      display: flex; flex-direction: column; padding: 0.9rem;
    }
    .notes-app.side-open .notes-side { transform: none; }
    .side-backdrop { position: fixed; inset: 0; background: rgba(10,20,16,0.4); z-index: 75; display: none; }
    .notes-app.side-open .side-backdrop { display: block; }
    .side-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
    .side-title { font-weight: 800; font-size: 1rem; }
    .side-count { font-size: 0.75rem; color: var(--shell-muted); background: var(--accent-soft); padding: 0.1rem 0.5rem; border-radius: 999px; font-weight: 700; }
    .side-head .icon-btn { margin-left: auto; width: 30px; height: 30px; }
    .side-search {
      width: 100%; padding: 0.55rem 0.8rem; border: 1px solid var(--shell-line); border-radius: 10px; font: inherit; font-size: 0.9rem;
      background: #fff; color: var(--shell-ink); margin-bottom: 0.6rem;
    }
    .side-search:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
    .side-list { overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; padding-right: 2px; }
    .side-item {
      display: grid; grid-template-columns: 10px 1fr; gap: 0.6rem; text-align: left; width: 100%;
      background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 0.6rem 0.65rem; cursor: pointer; font: inherit; color: var(--shell-ink);
    }
    .side-toggle { display: none !important; }
    .topbar .brand { margin-left: auto; }
    .topbar .tk-search { margin-right: auto; }
    #tk-list-btn { flex: none; }
    #tk-list-btn, #tk-bm-btn { flex: none; width: 36px; height: 36px; }
    @media (max-width: 520px) { #tk-list-btn, #tk-bm-btn { width: 34px; height: 34px; } .topbar.has-nation #tk-list-btn, .topbar.has-nation #tk-bm-btn { width: 32px; height: 32px; } }
    #tk-bm-btn { position: relative; } #tk-bm-btn svg, #tk-list-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
    .bm-body { overflow-y: auto; max-height: 56vh; }
    .bm-sect { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--shell-muted); margin: .7rem 0 .2rem; }
    .bm-row { display: flex; align-items: center; gap: .5rem; border-top: 1px solid #e3efe8; }
    .bm-open { flex: 1; min-width: 0; text-align: left; font: inherit; background: none; border: 0; padding: .6rem .2rem; cursor: pointer; color: inherit; }
    .bm-open b { display: block; font-size: .92rem; } .bm-open span { display: block; font-size: .75rem; color: var(--shell-muted); }
    .bm-open:hover b { text-decoration: underline; }
    .bm-x { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1px solid #cfe3d8; background: #fff; cursor: pointer; font-size: 1rem; color: inherit; }
    .side-row { position: relative; }
    .side-sect { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--shell-muted); padding: .35rem .65rem .1rem; }
    .side-pinbtn { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--shell-line); background: rgba(255,255,255,.92); color: var(--shell-muted); cursor: pointer; opacity: .85; }
    .side-pinbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
    .side-pinbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
    .side-pinbtn[aria-pressed="true"] svg { fill: currentColor; }
    .side-pinbtn:hover { opacity: 1; border-color: var(--accent); }
    .side-item:hover { background: var(--accent-soft); }
    .side-item.on { background: var(--accent-soft); border-color: var(--accent-line); }
    .side-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 0.38rem; }
    .side-name { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
    .side-sub { font-size: 0.74rem; color: var(--shell-muted); margin-top: 0.1rem; }
    .side-empty { color: var(--shell-muted); font-size: 0.85rem; padding: 0.8rem; }
    .side-pin { display: none; }

    .notes-main { flex: 1 1 auto; min-width: 0; background: var(--shell-card); border: 1px solid var(--shell-line); border-radius: 16px; box-shadow: 0 6px 24px rgba(20,40,32,0.07); position: relative; }
    .note-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem 0.5rem; }
    .note-head .icon-btn { flex: none; }
    .note-title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.2px; min-width: 0; overflow-wrap: anywhere; }
    .note-pill {
      display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; width: max-content; max-width: calc(100% - 1.5rem);
      margin: 0 0.75rem 0.5rem auto; padding: 0.25rem 0.4rem; background: #fff; border: 1px solid var(--shell-line);
      border-radius: 999px; box-shadow: 0 6px 20px rgba(20,40,32,0.1); position: relative;
    }
    /* Desktop: the tools pill floats near the search box and can be dragged anywhere */
    .pill-grip { display: none; }
    @media (min-width: 900px) {
      .note-pill { position: fixed; left: var(--pill-x, 60%); top: var(--pill-y, 12px); margin: 0; z-index: 60; flex-wrap: nowrap; max-width: none; }
      .pill-grip { display: block; width: 14px; height: 24px; margin: 0 0.1rem 0 0.15rem; cursor: grab; touch-action: none; flex: none;
        background: radial-gradient(circle, var(--shell-muted) 1.4px, transparent 1.7px) 0 0 / 7px 8px; opacity: 0.7; }
      .note-pill.dragging { cursor: grabbing; box-shadow: 0 10px 30px rgba(20,40,32,0.28); }
      .note-pill.dragging .pill-grip { cursor: grabbing; }
      .pill-menu.flip { right: auto; left: 0; }
    }
    /* The tools bar floats at the bottom of every page on every screen size; drag the grip to move it, double-tap the grip to put it back */
    html .note-pill { position: fixed; z-index: 60; margin: 0; flex-wrap: nowrap; width: max-content; max-width: calc(100vw - 16px); left: 50%; right: auto; top: auto; transform: translateX(-50%);
      bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); touch-action: none; box-shadow: 0 8px 28px rgba(8,40,30,.28); }
    html.pill-moved .note-pill { left: var(--pill-x); top: var(--pill-y); bottom: auto; transform: none; }
    html .pill-grip { display: block; width: 14px; height: 24px; margin: 0 .1rem 0 .3rem; cursor: grab; touch-action: none; flex: none; background: radial-gradient(circle, var(--shell-muted) 1.4px, transparent 1.7px) 0 0 / 7px 8px; opacity: .7; }
    html .note-pill.dragging { cursor: grabbing; } html .note-pill.dragging .pill-grip { cursor: grabbing; }
    html .pill-menu { top: auto; bottom: 46px; right: 0; left: auto; max-height: 60vh; overflow-y: auto; }
    html .note-pill.top-half .pill-menu { top: 46px; bottom: auto; }
    html .note-pill .pill-menu.flip { right: auto; left: 0; }
    .notes-app { padding-bottom: 5.5rem; }
    .pill-btn {
      min-width: 32px; height: 32px; padding: 0 0.5rem; border: 0; background: transparent; border-radius: 999px; cursor: pointer;
      color: var(--shell-ink); font: inherit; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center;
    }
    .pill-btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
    .pill-btn:disabled { opacity: 0.35; cursor: default; }
    .pill-sep { width: 1px; height: 18px; background: var(--shell-line); margin: 0 0.2rem; }
    .pill-zoom { font-size: 0.78rem; font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; font-weight: 700; }
    .pill-menu {
      position: absolute; right: 0; top: 42px; z-index: 30; background: #fff; border: 1px solid var(--shell-line); border-radius: 12px;
      box-shadow: 0 12px 32px rgba(0,0,0,0.18); padding: 0.3rem; min-width: 220px; display: none;
    }
    .pill-menu.open { display: block; }
    .pill-menu button, .pill-menu a {
      display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 0.55rem 0.7rem; border-radius: 8px;
      font: inherit; font-size: 0.86rem; color: var(--shell-ink); cursor: pointer; text-decoration: none;
    }
    .pill-menu button:hover, .pill-menu a:hover { background: var(--accent-soft); }

    .note-body { padding: 0.25rem 1.25rem 1rem; zoom: var(--note-zoom, 1); }
    .note-body .itinerary-detail { max-width: none; margin: 0; padding: 0 0 1rem; animation: none; }
    .note-body .trip-hero { margin-top: 0.25rem; border-radius: 12px 12px 0 0; padding: 1.25rem 1.25rem 1rem; }
    .note-body .trip-hero h2 { display: none; }
    .note-body .detail-share-btn { display: none; }
    .note-welcome { padding: 1.5rem 0.25rem 2rem; max-width: 62ch; }
    .note-welcome h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 0.75rem; }
    .note-welcome p { color: var(--shell-muted); margin-bottom: 0.9rem; }
    .note-welcome ul { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.1rem; }
    .note-welcome li { display: flex; gap: 0.6rem; align-items: baseline; }
    .note-welcome li::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 4px; flex: none; transform: translateY(2px); }
    .note-welcome .cta { background: color-mix(in srgb, var(--accent) 82%, #000); color: #fff; border: 0; border-radius: 10px; padding: 0.65rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; }
    .note-welcome .cta:hover { filter: brightness(1.08); }
    .wm { margin: 0 0 1.1rem; border: 1px solid var(--shell-line); border-radius: 14px; background: var(--shell-card); overflow: hidden; }
    .wm[hidden] { display: none; }
    .wm-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .55rem .7rem; border-bottom: 1px solid var(--shell-line); }
    .wm-bar b { font-size: .8rem; color: var(--shell-muted); margin-right: auto; }
    .wm-chip { border: 1px solid var(--shell-line); background: var(--shell-card); color: var(--shell-ink); border-radius: 999px; padding: .22rem .65rem; font: inherit; font-size: .76rem; cursor: pointer; }
    .wm-chip.on { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
    .set-look { display: flex; gap: .5rem; margin: .3rem 0 .6rem; }
    .set-look button { flex: 1; border: 1px solid var(--shell-line); border-radius: 12px; background: #fff; padding: .6rem .5rem; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--shell-ink); text-align: center; }
    .set-look button small { display: block; font-weight: 400; font-size: .7rem; color: var(--shell-muted); margin-top: .1rem; }
    .set-look button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
    .tl-home, .tl-back { display: none; }
    html[data-look="tiles"] .tl-home { display: block; }
    html[data-look="watch"] .tl-home { display: block; }
    html[data-look="tiles"] .note-welcome { max-width: none; padding: .5rem 0 1.5rem; }
    html[data-look="watch"] .note-welcome { max-width: none; padding: .5rem 0 1.5rem; }
    html[data-look="tiles"] .note-welcome > h3, html[data-look="tiles"] .note-welcome > p, html[data-look="tiles"] .note-welcome > .wm, html[data-look="tiles"] .note-welcome > ul, html[data-look="tiles"] .note-welcome > .cta { display: none; }
    html[data-look="watch"] .note-welcome > h3, html[data-look="watch"] .note-welcome > p, html[data-look="watch"] .note-welcome > .wm, html[data-look="watch"] .note-welcome > ul, html[data-look="watch"] .note-welcome > .cta { display: none; }
    html[data-look="tiles"] .notes-app.is-open .tl-back { display: inline-flex; }
    html[data-look="watch"] .notes-app.is-open .tl-back { display: inline-flex; }
    html[data-look="tiles"] .notes-side, html[data-look="tiles"] .side-backdrop, html[data-look="tiles"] #tk-list-btn { display: none !important; }
    html[data-look="watch"] .notes-side, html[data-look="watch"] .side-backdrop, html[data-look="watch"] #tk-list-btn { display: none !important; }
    .tl-back { align-items: center; flex: none; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.6); border-radius: 999px; padding: .35rem .8rem .35rem .6rem; font: inherit; font-weight: 700; font-size: .85rem; color: var(--shell-ink); cursor: pointer; }
    .tk-count { display: none; flex: none; margin-left: auto; font-size: .76rem; font-weight: 700; color: #06324a; background: rgba(255,255,255,.5); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
    @media (min-width: 640px) { html[data-look="tiles"] .tk-count:not([hidden]) { display: inline-block; } html[data-look="tiles"] .tl-top { display: none; } }
    @media (min-width: 640px) { html[data-look="watch"] .tk-count:not([hidden]) { display: inline-block; } html[data-look="watch"] .tl-top { display: none; } }
    html[data-look="tiles"] .tl-search { display: none; }
    html[data-look="watch"] .tl-search { display: none; }
    html[data-look="tiles"] .tl-top { justify-content: flex-end; }
    html[data-look="watch"] .tl-top { justify-content: flex-end; }
    .tl-top { position: sticky; top: 64px; z-index: 5; display: flex; gap: .6rem; align-items: center; margin: 0 0 1rem; padding: .4rem 0; }
    .tl-search { flex: 1; min-width: 0; padding: .7rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.34); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); font: inherit; font-size: 1rem; color: var(--shell-ink); box-shadow: 0 4px 18px rgba(10,80,120,.14); }
    .tl-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
    .tl-count { flex: none; font-size: .78rem; font-weight: 700; color: #06324a; background: rgba(255,255,255,.4); border-radius: 999px; padding: .25rem .6rem; }
    .tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: .6rem; }
    html[data-look="tiles"] .notes-app:not(.is-open) .note-head { display: none; }
    html[data-look="watch"] .notes-app:not(.is-open) .note-head { display: none; }
    @media (max-width: 520px) { .tl-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .tl-ico { width: 42px; height: 42px; font-size: 1.35rem; border-radius: 13px; } .tl-name { font-size: .72rem; } .tl-sub { font-size: .62rem; } .tl-tile { border-radius: 18px; padding: .7rem .35rem .6rem; } }
    .tl-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .6rem .5rem .55rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.75); cursor: pointer; font: inherit; color: var(--shell-ink);
      background: linear-gradient(160deg, rgba(255,255,255,.42), color-mix(in srgb, var(--tc) 14%, rgba(255,255,255,.14))); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
      border-color: rgba(255,255,255,.55); box-shadow: 0 8px 24px rgba(6,60,110,.26), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(255,255,255,.12); transition: transform .15s ease, box-shadow .15s ease; }
    .tl-tile:hover, .tl-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(8,70,110,.26), inset 0 1px 0 #fff; outline: none; }
    .tl-tile:active { transform: scale(.97); }
    .tl-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; margin-bottom: .2rem;
      background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%), var(--tc); box-shadow: 0 4px 10px rgba(0,0,0,.2); color: #fff; font-weight: 800; }
    .tl-name { color: #04283d; font-weight: 800; font-size: .84rem; line-height: 1.2; overflow-wrap: anywhere; }
    .tl-sub { font-size: .68rem; color: #0f3f58; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
    .tl-rec { position: absolute; top: 6px; right: 8px; font-size: .68rem; font-weight: 700; color: #b0284a; display: inline-flex; gap: 2px; align-items: center; }
    .tl-rec svg { width: 11px; height: 11px; }
    .tl-crumb { display: flex; align-items: center; gap: .7rem; margin: -.3rem 0 .9rem; } .tl-crumb[hidden] { display: none; }
    .tl-crumb button { border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-weight: 700; font-size: .85rem; color: #04283d; cursor: pointer; }
    .tl-crumb b { font-size: 1.15rem; color: #04283d; }
    .tl-state .tl-ico { border-radius: 50%; }
    html[data-look="tiles"] .tl-back, html[data-look="watch"] .tl-back, html[data-look="tiles"] .tl-crumb button, html[data-look="watch"] .tl-crumb button { display: none !important; }
    .tl-float { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 56; display: none; align-items: center; gap: .15rem; max-width: 44vw; padding: .65rem .85rem .65rem .45rem; border: 1px solid rgba(255,255,255,.7); border-left: 0; border-radius: 0 999px 999px 0; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 6px 20px rgba(6,60,110,.28); color: #04283d; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; }
    .tl-float .tl-fi { font-size: 1.6rem; line-height: 1; margin-top: -.1rem; } .tl-float .tl-ft { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html[data-look="tiles"] .tl-float:not([hidden]), html[data-look="watch"] .tl-float:not([hidden]) { display: inline-flex; }
    html[data-look="watch"] .tl-float { background: rgba(28,28,30,.92); border-color: #38383c; color: #f2f2f7; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
    .tl-none { grid-column: 1 / -1; text-align: center; padding: 2rem; color: #35566a; }
    /* Tiles look: the whole page sits on clear, watery glass */
    html[data-look="tiles"] body { background: radial-gradient(700px 520px at 12% 8%, rgba(255,255,255,.75), transparent 62%), radial-gradient(640px 640px at 92% 22%, rgba(64,224,208,.75), transparent 64%), radial-gradient(760px 700px at 8% 62%, rgba(40,120,235,.7), transparent 66%), radial-gradient(700px 600px at 88% 92%, rgba(24,200,190,.7), transparent 66%), linear-gradient(165deg, #bff1fb 0, #6fd0ee 30%, #2f94de 62%, #17a9c4 100%) fixed; color: var(--shell-ink); }
    html[data-look="tiles"] body::before { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
      background: radial-gradient(closest-side, rgba(255,255,255,.9), transparent) 18% 30% / 38% 30% no-repeat, radial-gradient(closest-side, rgba(255,255,255,.8), transparent) 74% 20% / 30% 24% no-repeat, radial-gradient(closest-side, rgba(255,255,255,.85), transparent) 58% 70% / 42% 30% no-repeat, radial-gradient(closest-side, rgba(255,255,255,.7), transparent) 12% 86% / 28% 22% no-repeat; animation: tlDrift 22s ease-in-out infinite alternate; }
    @keyframes tlDrift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
    @media (prefers-reduced-motion: reduce) { html[data-look="tiles"] body::before { animation: none; } }
    html[data-look="tiles"] .topbar { background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); border-bottom-color: rgba(255,255,255,.4); }
    html[data-look="tiles"] .icon-btn, html[data-look="tiles"] .tk-search { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
    html[data-look="tiles"] .notes-main { background: transparent; border-color: rgba(255,255,255,.45); box-shadow: 0 14px 40px rgba(6,60,110,.28), inset 0 1px 0 rgba(255,255,255,.6); isolation: isolate; }
    html[data-look="tiles"] .notes-main::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); pointer-events: none; }
    html[data-look="tiles"] .note-body .itinerary-detail { background: transparent; border-radius: 16px; }
    /* Cards on the detail pages look like iPhone widget stacks: big rounded frosted glass with the next card peeking underneath */
    html[data-look="tiles"] .note-body .place-card, html[data-look="tiles"] .note-body .stop { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255,255,255,.7);
      background: linear-gradient(160deg, rgba(255,255,255,.42), color-mix(in srgb, var(--tc, #1e4d3a) 14%, rgba(255,255,255,.14))); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
      border-color: rgba(255,255,255,.55); box-shadow: 0 8px 24px rgba(6,60,110,.26), 0 11px 0 -5px rgba(255,255,255,.3), 0 20px 0 -11px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.75); margin-bottom: 1.8rem; color: #04283d; }
    html[data-look="tiles"] .note-body .places-container, html[data-look="tiles"] .note-body .places-grid, html[data-look="tiles"] .note-body .city-detail { background: transparent; box-shadow: none; border-color: transparent; }
    html[data-look="tiles"] .note-body .place-card .place-name, html[data-look="tiles"] .note-body .stop-name { color: #04283d; }
    html[data-look="tiles"] .note-body .place-card .place-desc, html[data-look="tiles"] .note-body .stop-body p { color: #0f3f58; }
    html[data-look="tiles"] .note-body .place-card .place-rank { background: var(--tc, #1e4d3a); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
    html[data-look="tiles"] .note-body .place-card .place-category { background: rgba(255,255,255,.5); color: #04283d; }
    html[data-look="tiles"] .note-body .place-card .place-maps-link { background: color-mix(in srgb, var(--tc, #1e4d3a) 85%, #000); }
    html[data-look="tiles"] .note-body .itinerary-detail > .trip-meta, html[data-look="tiles"] .note-body .itinerary-detail > .detail-start-bar, html[data-look="tiles"] .note-body .itinerary-detail > .trip-plan-bar,
    html[data-look="tiles"] .note-body .itinerary-detail > .route-map, html[data-look="tiles"] .note-body .itinerary-detail > .trip-summary, html[data-look="tiles"] .note-body .itinerary-detail > .mile-end,
    html[data-look="tiles"] .note-body .itinerary-detail > .tk-verify { overflow: hidden; border-radius: 28px; border: 1px solid rgba(255,255,255,.7); background: linear-gradient(160deg, rgba(255,255,255,.74), rgba(255,255,255,.5)); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 12px 28px rgba(6,60,110,.24), inset 0 1px 0 rgba(255,255,255,.85); margin-bottom: 1.2rem; }
    html[data-look="tiles"] .note-body .trip-hero { border-radius: 28px; overflow: hidden; box-shadow: 0 12px 28px rgba(6,60,110,.3); }
    html[data-look="tiles"] .note-body .itinerary-detail > .mile-end { border-style: solid; }
    html[data-look="tiles"] .note-body .itinerary-detail > .mile-end::after, html[data-look="tiles"] .note-body .itinerary-detail > .mile-end::before { display: none; }
    html[data-look="tiles"] .note-body .place-card::after, html[data-look="tiles"] .note-body .stop::after { content: none; }
    html[data-look="tiles"] .note-body .stop.start-stop, html[data-look="tiles"] .note-body .stop.end-stop, html[data-look="tiles"] .note-body .stop.lunch-stop, html[data-look="tiles"] .note-body .stop.warning-stop, html[data-look="tiles"] .note-body .stop.ocean-stop { background: linear-gradient(160deg, rgba(255,255,255,.74), rgba(255,255,255,.5)); }
    html[data-look="tiles"] .note-body .place-photo, html[data-look="tiles"] .note-body .stop-body .place-photo { border-radius: 0; }
    html[data-look="tiles"] .note-body .stop-body .place-photo { border-radius: 18px; }
    html[data-look="tiles"] .note-pill { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border-color: rgba(255,255,255,.6); }
    html[data-look="tiles"] .tabs-nav .tab-btn.active { background: rgba(255,255,255,.5); border-radius: 12px 12px 0 0; }
    html[data-look="tiles"] .footer, html[data-look="tiles"] footer { background: transparent; }
    html[data-look="tiles"] footer, html[data-look="tiles"] footer a, html[data-look="tiles"] .footer, html[data-look="tiles"] .footer a { color: #04283d; }

    /* ── Watch look: round glowing icons on black, like a smartwatch home screen ── */
    html[data-look="watch"], html[data-look="watch"][data-theme="dark"] { filter: none !important; background: #000; color-scheme: dark; }
    html[data-look="watch"][data-theme="dark"] img, html[data-look="watch"][data-theme="dark"] video, html[data-look="watch"][data-theme="dark"] .route-map-scroll svg, html[data-look="watch"][data-theme="dark"] .place-photo, html[data-look="watch"][data-theme="dark"] .side-thumb { filter: none; }
    html[data-look="watch"] body { background: #000; color: #f2f2f7; }
    html[data-look="watch"] .topbar { background: rgba(18,18,20,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom-color: #26262a; }
    html[data-look="watch"] .icon-btn, html[data-look="watch"] .tk-search { background: #1c1c1e; border-color: #2c2c30; color: #f2f2f7; border-radius: 999px; }
    html[data-look="watch"] .icon-btn svg { stroke: #f2f2f7; }
    html[data-look="watch"] .topbar .dd-btn, html[data-look="watch"] .topbar .dd-wrap > button { background: #1c1c1e; border-color: #2c2c30; color: #f2f2f7; }
    html[data-look="watch"] .tk-count { background: #2c2c30; color: #f2f2f7; }
    html[data-look="watch"] .notes-main { background: transparent; border-color: transparent; box-shadow: none; }
    html[data-look="watch"] .note-title, html[data-look="watch"] .note-body { color: #f2f2f7; }
    html[data-look="watch"] .tl-count { background: #2c2c30; color: #f2f2f7; }
    html[data-look="watch"] .tl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px 10px; padding: 8px 0 70px; }
    html[data-look="watch"] .rec-hint { color: #aeaeb2; }
    html[data-look="watch"] .tl-tile { width: 92px; padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; gap: .3rem; color: #f2f2f7; transition: transform .18s ease; }
    html[data-look="watch"] .tl-tile:nth-child(even) { transform: translateY(26px); }
    html[data-look="watch"] .tl-tile:hover, html[data-look="watch"] .tl-tile:focus-visible { transform: scale(1.1); box-shadow: none; }
    html[data-look="watch"] .tl-tile:nth-child(even):hover, html[data-look="watch"] .tl-tile:nth-child(even):focus-visible { transform: translateY(26px) scale(1.1); }
    html[data-look="watch"] .tl-tile:active { transform: scale(.94); }
    html[data-look="watch"] .tl-ico { width: 82px; height: 82px; border-radius: 50%; font-size: 2.3rem; margin: 0; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.45), transparent 52%), var(--tc); box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 8px 20px color-mix(in srgb, var(--tc) 55%, transparent); }
    html[data-look="watch"] .tl-name { color: #f2f2f7; font-size: .68rem; line-height: 1.15; max-height: 2.4em; overflow: hidden; }
    html[data-look="watch"] .tl-sub { display: none; }
    html[data-look="watch"] .tl-state .tl-ico { box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 8px 20px color-mix(in srgb, var(--tc) 55%, transparent); }
    html[data-look="watch"] .tl-rec { top: 0; right: 6px; color: #ff6b8b; }
    html[data-look="watch"] .tl-none { color: #aeaeb2; }
    html[data-look="watch"] .tl-crumb button { background: #1c1c1e; border-color: #2c2c30; color: #f2f2f7; }
    html[data-look="watch"] .tl-crumb b { color: #f2f2f7; }
    html[data-look="watch"] .tl-back { background: #1c1c1e; border-color: #2c2c30; color: #f2f2f7; }
    html[data-look="watch"] .note-pill { background: rgba(28,28,30,.92); border-color: #38383c; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
    html[data-look="watch"] .pill-btn, html[data-look="watch"] .pill-zoom { color: #f2f2f7; }
    html[data-look="watch"] .pill-sep { background: #48484c; }
    html[data-look="watch"] .pill-menu { background: #1c1c1e; border-color: #38383c; }
    html[data-look="watch"] .pill-menu button, html[data-look="watch"] .pill-menu a { color: #f2f2f7; }
    /* detail pages: soft light cards with big round corners on the black */
    html[data-look="watch"] .note-body .itinerary-detail { background: transparent; }
    html[data-look="watch"] .note-body .place-card, html[data-look="watch"] .note-body .stop, html[data-look="watch"] .note-body .itinerary-detail > .trip-meta, html[data-look="watch"] .note-body .itinerary-detail > .detail-start-bar,
    html[data-look="watch"] .note-body .itinerary-detail > .route-map, html[data-look="watch"] .note-body .itinerary-detail > .trip-summary, html[data-look="watch"] .note-body .itinerary-detail > .mile-end, html[data-look="watch"] .note-body .itinerary-detail > .tk-verify { border-radius: 28px; overflow: hidden; border: 1px solid #2c2c30; background: #f2f2f7; color: #1c1c1e; margin-bottom: 1rem; }
    html[data-look="watch"] .note-body .places-container, html[data-look="watch"] .note-body .places-grid, html[data-look="watch"] .note-body .city-detail { background: transparent; box-shadow: none; border-color: transparent; }
    html[data-look="watch"] .note-body .place-card .place-rank { background: var(--tc, #1e4d3a); }
    html[data-look="watch"] .note-body .place-card .place-maps-link { background: color-mix(in srgb, var(--tc, #1e4d3a) 85%, #000); }
    html[data-look="watch"] .note-body .trip-hero { border-radius: 28px; overflow: hidden; }
    html[data-look="watch"] .note-body .alert, html[data-look="watch"] .note-body .section-header { border-radius: 20px; }
    html[data-look="watch"] .note-foot, html[data-look="watch"] footer, html[data-look="watch"] footer a, html[data-look="watch"] .footer, html[data-look="watch"] .footer a { color: #aeaeb2; background: transparent; }
    html[data-look="watch"] .tabs-nav .tab-btn { color: #aeaeb2; } html[data-look="watch"] .tabs-nav .tab-btn.active { color: #fff; }

    html[data-look="tiles"] .note-body .place-card, html[data-look="tiles"] .note-body .stop, html[data-look="watch"] .note-body .place-card, html[data-look="watch"] .note-body .stop { cursor: pointer; }
    html.at-lock { overflow: hidden; }
    .at-sheet { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-end; justify-content: center; } .at-sheet[hidden] { display: none; }
    .at-back { position: absolute; inset: 0; background: rgba(4,30,50,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    .at-box { position: relative; width: min(640px, 100%); max-height: 92vh; max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(214,240,252,.82)); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); border: 1px solid rgba(255,255,255,.8); color: #04283d; box-shadow: 0 -10px 40px rgba(6,60,110,.4); animation: atUp .22s ease; padding-bottom: env(safe-area-inset-bottom, 0px); }
    @keyframes atUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    @media (min-width: 700px) { .at-sheet { align-items: center; } .at-box { border-radius: 28px; max-height: 88vh; } }
    .at-x { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.75); font-size: 1.5rem; line-height: 1; cursor: pointer; color: #04283d; }
    .at-photo { flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: #cfe8f3; } .at-photo[hidden] { display: none; } .at-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .at-body { padding: 1.1rem 1.3rem .6rem; }
    .at-head { display: flex; gap: .7rem; align-items: center; padding-right: 2.6rem; } .at-rank { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #0b4a63; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; } .at-rank:empty { display: none; }
    .at-name { font-size: 1.35rem; line-height: 1.2; margin: 0; font-weight: 800; }
    .at-cat { margin-top: .5rem; display: inline-block; padding: .2rem .6rem; border-radius: 8px; background: rgba(255,255,255,.7); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; } .at-cat[hidden] { display: none; }
    .at-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; } .at-chip { padding: .22rem .6rem; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); font-size: .78rem; font-weight: 700; }
    .at-desc { margin: .8rem 0; line-height: 1.55; font-size: 1rem; }
    .at-wiki { margin: .6rem 0; padding: .8rem .9rem; border-radius: 16px; background: rgba(255,255,255,.55); } .at-wiki[hidden] { display: none; } .at-wiki h4 { margin: 0 0 .3rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #35566a; } .at-ex { margin: 0 0 .4rem; line-height: 1.5; font-size: .92rem; } .at-wl { font-weight: 800; font-size: .85rem; color: #0b4a63; }
    .at-act { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .4rem; } .at-act a, .at-act button { padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.7); font: inherit; font-weight: 800; font-size: .88rem; color: #04283d; text-decoration: none; cursor: pointer; } .at-act a[hidden] { display: none; } .at-act .at-maps { background: #0b4a63; color: #fff; border-color: #0b4a63; }
    .at-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; background: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
    .at-nav button { padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.75); font: inherit; font-weight: 800; color: #04283d; cursor: pointer; } .at-nav button:disabled { opacity: .35; cursor: default; } .at-pos { font-size: .8rem; font-weight: 800; color: #35566a; }
    html[data-look="watch"] .at-box { background: #1c1c1e; border-color: #38383c; color: #f2f2f7; } html[data-look="watch"] .at-x, html[data-look="watch"] .at-nav button, html[data-look="watch"] .at-act a, html[data-look="watch"] .at-act button { background: #2c2c30; border-color: #48484c; color: #f2f2f7; } html[data-look="watch"] .at-act .at-maps { background: #0a84ff; border-color: #0a84ff; color: #fff; }
    html[data-look="watch"] .at-cat, html[data-look="watch"] .at-chip, html[data-look="watch"] .at-wiki { background: #2c2c30; border-color: #48484c; color: #f2f2f7; } html[data-look="watch"] .at-wiki h4, html[data-look="watch"] .at-pos { color: #aeaeb2; } html[data-look="watch"] .at-wl { color: #64d2ff; } html[data-look="watch"] .at-nav { background: #1c1c1e; border-top-color: #38383c; }

    .at-h { margin: 1.2rem 0 .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #35566a; font-weight: 800; }
    .at-desc { font-size: 1.08rem; line-height: 1.65; font-weight: 500; }
    .at-rt { padding: .22rem .6rem; font-size: .78rem; font-weight: 700; color: #35566a; }
    .at-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; margin: 1rem 0 .2rem; } .at-facts[hidden], .at-tips[hidden], .at-near[hidden] { display: none; }
    .at-fact { padding: .6rem .75rem; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); } .at-fact span { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #35566a; font-weight: 800; } .at-fact b { display: block; margin-top: .15rem; font-size: .9rem; line-height: 1.3; }
    .at-ex p { margin: 0 0 .75rem; line-height: 1.65; font-size: .98rem; } .at-ex .at-more-p { display: none; } .at-ex.open .at-more-p { display: block; }
    .at-more { margin: 0 0 .5rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.7); font: inherit; font-weight: 800; font-size: .82rem; color: #04283d; cursor: pointer; } .at-more[hidden] { display: none; }
    .at-tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; } .at-tips li { position: relative; padding: .55rem .8rem .55rem 2.1rem; border-radius: 14px; background: rgba(255,255,255,.55); font-size: .92rem; line-height: 1.45; } .at-tips li::before { content: "\2713"; position: absolute; left: .8rem; top: .5rem; font-weight: 800; color: #0b7a5a; }
    .at-nl { display: flex; flex-wrap: wrap; gap: .4rem; } .at-nl button { padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.7); font: inherit; font-weight: 700; font-size: .82rem; color: #04283d; cursor: pointer; text-align: left; }
    html[data-look="watch"] .at-h, html[data-look="watch"] .at-rt { color: #aeaeb2; } html[data-look="watch"] .at-fact, html[data-look="watch"] .at-tips li, html[data-look="watch"] .at-more, html[data-look="watch"] .at-nl button { background: #2c2c30; border-color: #48484c; color: #f2f2f7; } html[data-look="watch"] .at-fact span { color: #aeaeb2; } html[data-look="watch"] .at-tips li::before { color: #30d158; }
    .wm-stage { position: relative; }
    .wm-svg { display: block; width: 100%; height: auto; background: #d6e6f2; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
    .wm.zoomed .wm-svg { touch-action: none; cursor: grab; }
    .wm-zoom { position: absolute; right: .5rem; top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
    .wm-zoom button { width: 2.5rem; height: 2.5rem; border: 1px solid var(--shell-line); border-radius: 10px; background: color-mix(in srgb, var(--shell-card) 92%, transparent); color: var(--shell-ink); font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
    .wm.full { position: fixed; inset: 0; z-index: 3000; margin: 0; border-radius: 0; border: 0; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
    .wm.full .wm-stage { flex: 1; min-height: 0; }
    .wm.full .wm-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .wm.full .wm-cap { padding-bottom: calc(.55rem + env(safe-area-inset-bottom, 0px)); }
    html.wm-lock, html.wm-lock body { overflow: hidden; }
    html[data-theme="dark"] .wm-svg { background: #15222c; }
    .wm-land path { fill: #eef0e6; stroke: #c3cabb; stroke-width: .6px; vector-effect: non-scaling-stroke; }
    html[data-theme="dark"] .wm-land path { fill: #2b3a35; stroke: #3f504a; }
    .wm-land path.sel { fill: color-mix(in srgb, var(--accent) 32%, #eef0e6); }
    html[data-theme="dark"] .wm-land path.sel { fill: color-mix(in srgb, var(--accent) 40%, #2b3a35); }
    .wm-pin { stroke: #fff; stroke-width: 1.4px; vector-effect: non-scaling-stroke; cursor: pointer; }
    .wm-pin:hover, .wm-pin.on { stroke: #111; stroke-width: 2.4px; }
    .wm-pin:focus-visible, .wm-r:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .wm-r { cursor: pointer; }
    .wm-route { fill: none; stroke-width: 2.4px; stroke-linecap: round; stroke-linejoin: round; opacity: .72; vector-effect: non-scaling-stroke; }
    .wm-hit { fill: none; stroke: transparent; stroke-width: 14px; vector-effect: non-scaling-stroke; pointer-events: stroke; }
    .wm-r:hover .wm-route, .wm-r.on .wm-route { opacity: 1; stroke-width: 4px; }
    .wm-cap { display: flex; gap: .6rem; align-items: center; padding: .55rem .75rem; font-size: .85rem; color: var(--shell-muted); min-height: 2.9rem; }
    .wm-capt b { color: var(--shell-ink); }
    .wm-open { margin-left: auto; flex: none; border: 0; border-radius: 9px; padding: .4rem .8rem; background: color-mix(in srgb, var(--accent) 82%, #000); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
    .note-foot { border-top: 1px solid var(--shell-line); margin: 0 1.25rem; padding: 0.6rem 0; text-align: right; font-size: 0.75rem; color: var(--shell-muted); }

    .stop-check { display: inline-flex; flex: none; cursor: pointer; }
    .stop-check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255,255,255,0.9); background: transparent; cursor: pointer; margin: 0; display: grid; place-content: center; }
    .stop-check input::after { content: ""; width: 10px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
    .stop-check input:checked { background: rgba(0,0,0,0.28); }
    .stop-check input:checked::after { opacity: 1; }
    .stop-check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
    .stop.done { opacity: 0.6; }
    .stop.done .stop-name { text-decoration: line-through; }

    /* Places notes */
    .note-body .places-container { max-width: none; padding: 0; margin: 0; }
    .note-body .city-detail { animation: none; padding-bottom: 1rem; }
    .note-body .city-hero { margin-top: 0.25rem; padding: 1.25rem 1.25rem 1rem; }
    .note-body .city-hero h2 { display: none; }
    .note-body .city-section { margin-bottom: 1rem; }
    .place-card.visited { opacity: 0.6; }
    /* Attraction cards: badge on the left, text aligned in one column, actions pinned to the bottom */
    .place-card { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.8rem; align-items: start; padding: 1rem 1.1rem; }
    .place-card .place-rank { grid-column: 1; margin-top: 0.05rem; }
    .place-content { grid-column: 2; display: flex; flex-direction: column; min-width: 0; height: 100%; text-align: left; }
    .place-card .place-name { font-size: 1rem; font-weight: 800; line-height: 1.25; padding-top: 0.2rem; overflow-wrap: anywhere; }
    .place-card .place-category { align-self: flex-start; margin: 0.45rem 0 0.6rem; }
    .place-card .place-desc { font-size: 0.84rem; line-height: 1.55; margin: 0 0 0.85rem; }
    .place-card .place-footer { margin-top: auto; gap: 0.45rem 0.5rem; }
    .place-card .place-footer > * { order: 3; }
    .place-card .place-footer .place-badge { order: 1; align-self: flex-start; }
    .place-card .place-footer::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
    @media (max-width: 600px) {
      .note-body .places-grid { padding: 0.9rem 0.65rem; gap: 0.8rem; }
      .place-card { grid-template-columns: 1.8rem minmax(0, 1fr); column-gap: 0.6rem; padding: 0.9rem 0.8rem; }
      .place-card .place-rank { width: 1.6rem; height: 1.6rem; }
    }
    .place-card.tk-hidden { display: none !important; }
    .visit-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; color: var(--shell-muted); cursor: pointer; padding: 0.2rem 0.55rem; border: 1px solid var(--shell-line); border-radius: 999px; background: #fff; }
    .visit-check input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 4px; margin: 0; cursor: pointer; display: grid; place-content: center; }
    .visit-check input:checked { background: var(--accent); }
    .visit-check input::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0.5px, -0.5px); opacity: 0; }
    .visit-check input:checked::after { opacity: 1; }
    .visit-check:has(input:checked) { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
    .visit-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    /* Search everything */
    .gs-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 12px 0; background: rgba(10,20,16,0.5); }
    .gs-modal[hidden] { display: none; }
    .gs-box { width: min(580px, 100%); max-height: 72vh; background: #fff; border: 1px solid var(--shell-line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
    .gs-input { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--shell-line); border-radius: 10px; color: var(--shell-ink); background: #fff; }
    .gs-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
    .gs-results { overflow-y: auto; max-height: 52vh; display: flex; flex-direction: column; gap: 2px; }
    .gs-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.65rem; border-radius: 10px; cursor: pointer; }
    .gs-item:hover, .gs-item.active { background: var(--accent-soft); }
    .gs-ico { font-size: 1.05rem; flex: none; width: 1.5rem; text-align: center; }
    .gs-text { flex: 1; min-width: 0; }
    .gs-title { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gs-meta { font-size: 0.75rem; color: var(--shell-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gs-kind { flex: none; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--shell-muted); }
    .side-search-wrap { position: relative; }
    .side-recent { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--shell-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: .3rem; }
    .side-recent[hidden] { display: none; }
    .gs-recent-h { display: flex; justify-content: space-between; align-items: center; padding: .3rem .65rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--shell-muted); }
    .gs-recent-clear { font: inherit; font-size: .75rem; text-transform: none; letter-spacing: 0; background: none; border: 0; color: #b91c1c; cursor: pointer; text-decoration: underline; }
    .gs-recent-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: 10px; cursor: pointer; }
    .gs-recent-item:hover, .gs-recent-item:focus-visible { background: var(--accent-soft); outline: none; }
    .gs-recent-ico { color: var(--shell-muted); width: 1.3em; text-align: center; } .gs-recent-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gs-recent-x { font-size: 1.2rem; line-height: 1; background: none; border: 0; color: var(--shell-muted); cursor: pointer; padding: 0 .3rem; }
    .gs-empty { text-align: center; color: var(--shell-muted); font-size: 0.88rem; padding: 1rem; margin: 0; }
    .gs-hint { text-align: center; color: var(--shell-muted); font-size: 0.72rem; margin: 0; }
    @keyframes tkflash { 0%, 65% { box-shadow: 0 0 0 3px var(--accent), 0 0 20px var(--accent-line); } 100% { box-shadow: 0 0 0 0 transparent; } }
    .tk-flash { animation: tkflash 2.3s ease-out; border-radius: 10px; }
    @media print { .gs-modal { display: none !important; } }

    /* ── Dropdown navigation (country + itineraries/attractions) ── */
    .tabs-nav { display: none; }
    .topbar { gap: 0.4rem; flex-wrap: nowrap; padding: 0.55rem 0.75rem; }
    .topbar .brand { gap: 0.45rem; }
    .topbar .brand svg { height: 34px; }
    .brand-name { display: none; }
    .dd-wrap { position: relative; flex: none; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .skip-link { position: absolute; left: .5rem; top: -3rem; z-index: 100; background: #fff; color: #0f2d22; padding: .5rem .8rem; border-radius: 8px; border: 2px solid var(--accent, #1f8a5b); }
    .skip-link:focus { top: .5rem; }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
    .dd-btn {
      display: inline-flex; align-items: center; gap: 0.35rem; height: 36px; padding: 0 0.65rem; cursor: pointer;
      background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 65%, #000); border: 1px solid var(--accent-line); border-radius: 999px;
      font: inherit; font-size: 0.84rem; font-weight: 800; white-space: nowrap;
    }
    .dd-btn-kind { background: #fff; color: var(--shell-ink); border-color: var(--shell-line); }
    .dd-btn:hover { border-color: var(--accent); }
    .dd-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent-line); }
    .dd-btn:focus-visible, .dd-menu button:focus-visible, .tk-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .dd-ico { font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; }
    .ico-svg { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
    .gs-ico .ico-svg { width: 1.3em; height: 1.3em; }
    .fnear .ico-svg { width: 1.1em; height: 1.1em; margin-right: .15rem; }
    .dd-caret { font-style: normal; font-size: 0.65rem; opacity: 0.8; }
    .dd-menu {
      position: absolute; left: 0; top: 44px; min-width: 170px; background: #fff; border: 1px solid var(--shell-line); border-radius: 12px;
      box-shadow: 0 14px 34px rgba(0,0,0,0.2); padding: 4px; z-index: 90;
    }
    .dd-menu[hidden] { display: none; }
    .topbar .dd-menu .country-btn, .topbar .dd-menu .kind-btn {
      display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; background: transparent; border: 0; box-shadow: none;
      padding: 0.6rem 0.7rem; border-radius: 8px; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--shell-ink); cursor: pointer; letter-spacing: 0;
    }
    .topbar .dd-menu .country-btn:hover, .topbar .dd-menu .kind-btn:hover { background: var(--accent-soft); }
    .topbar .dd-menu .country-btn.active, .topbar .dd-menu .kind-btn.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
    .topbar .dd-menu .country-btn.active::after, .topbar .dd-menu .kind-btn.active::after { content: "✓"; margin-left: auto; font-weight: 800; }
    .tk-search {
      display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: auto; width: 36px; height: 36px;
      background: #fff; border: 1px solid var(--shell-line); border-radius: 10px; color: var(--shell-ink); cursor: pointer; font: inherit; padding: 0;
    }
    .tk-search:hover { border-color: var(--accent); color: var(--accent); }
    .tk-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
    .tk-search-text, .tk-search kbd { display: none; }
    .top-actions { margin-left: 0; }
    /* ── Wide screens: use the full width ── */
    .notes-app { max-width: none; padding-inline: 1.25rem; }
    .tabs-nav { max-width: none; }
    .note-body .stop-body p { max-width: none; }
    @media (min-width: 1500px) {
      .notes-app { padding-inline: 2rem; gap: 1.5rem; }
      .notes-app.pinned .notes-side { width: 340px; }
      .tk-search { max-width: 760px; }
      .note-body .itinerary-detail.visible { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; align-items: start; }
      .note-body .itinerary-detail > :not(.stop) { grid-column: 1 / -1; }
      .note-body .itinerary-detail > .stop { margin-bottom: 0; }
      .note-body .itinerary-detail.visible { row-gap: 0.75rem; }
    }
    @media (min-width: 2200px) {
      .note-body .itinerary-detail.visible { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .places-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    }
    @media (max-width: 520px) {
      .topbar { gap: 0.3rem; padding: 0.5rem 0.6rem; }
      .topbar .dd-btn { padding: 0 0.55rem; gap: 0.3rem; font-size: 0.8rem; }
      .topbar .dd-caret { display: none; }
      .topbar .tk-search, .topbar .top-actions .icon-btn { width: 30px; height: 30px; }
      .topbar .top-actions { gap: 0.2rem; }
      .dd-label-kind { display: none; }
      .topbar .brand svg { height: 30px; }
      .topbar .brand svg { height: 34px; }
    }
    @media (min-width: 640px) { .brand-name { display: inline; } .topbar { gap: 0.6rem; padding: 0.6rem 1rem; } .topbar .brand svg { height: 40px; } }
    @media (min-width: 900px) {
      .tk-search { flex: 1 1 auto; width: auto; max-width: 560px; margin-left: 0.5rem; justify-content: flex-start; gap: 0.6rem; padding: 0 0.8rem; color: var(--shell-muted); font-size: 0.86rem; }
      .tk-search-text { display: inline; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .tk-search kbd { display: inline; font: inherit; font-size: 0.7rem; border: 1px solid var(--shell-line); border-radius: 6px; padding: 1px 6px; color: var(--shell-muted); }
      .top-actions { margin-left: auto; }
    }

    /* Illustrated route map at the end of each itinerary */
    .route-map { margin: 1rem 0 1.25rem; border: 1px solid var(--shell-line); border-radius: 16px; background: #fff; overflow: hidden; }
    .route-map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem; padding: 0.8rem 1.1rem 0.6rem; }
    .route-map-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 70%, #000); }
    .route-map-note { font-size: 0.78rem; color: var(--shell-muted); }
    .route-map-swipe { display: none; }
    @media (max-width: 860px) { .route-map-swipe { display: inline; } }
    .route-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 0.6rem 0.7rem; }
    .route-map-scroll svg { display: block; width: calc(100% * var(--z, 1)); height: auto; border-radius: 14px; max-width: none; }
    @media (max-width: 860px) { .route-map-scroll svg { min-width: calc(var(--mw, 820px) * var(--z, 1)); } }
    .route-map-view { position: relative; }
    .route-map-scroll.zoomed { max-height: 78vh; overflow: auto; cursor: grab; }
    .route-map-scroll.panning { cursor: grabbing; user-select: none; }
    .rm-zoom { position: absolute; z-index: 5; top: 8px; left: 14px; display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(255,255,255,0.95); border: 1px solid var(--shell-line); border-radius: 999px; box-shadow: 0 4px 14px rgba(20,40,32,0.18); }
    .rm-zoom button { min-width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--shell-ink); cursor: pointer; padding: 0 0.45rem; }
    .rm-zoom button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
    .rm-zoom button:disabled { opacity: 0.35; cursor: default; }
    .rm-zoom .rm-fit { font-size: 0.74rem; letter-spacing: 0.02em; }
    .rm-zoom .rm-zlabel { font-size: 0.74rem; font-weight: 700; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
    .rm-zoom .rm-full-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
    .rm-full-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
    .rm-full-btn .rm-ic-out { display: none; }
    .route-map-view.rm-full { position: fixed; inset: 0; z-index: 300; background: #fff; display: flex; flex-direction: column; }
    .route-map-view.rm-full .route-map-scroll { flex: 1 1 auto; max-height: none; height: 100%; overflow: auto; padding: 0; }
    .route-map-view.rm-full .route-map-scroll:not(.zoomed) svg { width: 100%; height: 100vh; min-width: 0 !important; border-radius: 0; }
    .route-map-view.rm-full .rm-zoom { top: 12px; left: 12px; }
    .rm-full .rm-full-btn .rm-ic-in { display: none; }
    .rm-full .rm-full-btn .rm-ic-out { display: inline; }
    body.rm-lock { overflow: hidden; }
    @media print { .rm-zoom { display: none; } .route-map-scroll.zoomed { max-height: none; } }
    .route-map-scroll svg a { cursor: pointer; }
    .note-body .itinerary-detail > .route-map { grid-column: 1 / -1; }
    .trip-summary { margin: 0 0 1rem; border: 1px solid var(--shell-line); border-radius: 16px; background: #fff; overflow: hidden; }
    .trip-summary > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; user-select: none; }
    .trip-summary > summary::-webkit-details-marker { display: none; }
    .trip-summary > summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); transition: transform 0.15s; flex: none; margin-right: 0.15rem; }
    .trip-summary[open] > summary::before { transform: rotate(45deg); }
    .trip-summary > summary:hover { background: var(--accent-soft); }
    .ts-title { font-size: 1.05rem; font-weight: 800; }
    .ts-hint { font-size: 0.8rem; color: var(--shell-muted); }
    .trip-summary[open] > summary { border-bottom: 1px solid var(--shell-line); }
    .trip-summary .sum-body { padding: 0.9rem 1rem 1rem; }
    .note-body .itinerary-detail > .trip-summary { grid-column: 1 / -1; }
    @media (min-width: 1500px) {
      .trip-summary .sum-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: 0.75rem; align-items: start; }
      .trip-summary .sum-body > :not(.stop) { grid-column: 1 / -1; }
      .trip-summary .sum-body > .stop { margin-bottom: 0; }
    }
    @media (min-width: 2200px) { .trip-summary .sum-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    .eu-guide .tips-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .eu-guide .tip-item { font-size: 0.92rem; line-height: 1.5; }
    .eu-guide .tip-item .tip-title { display: block; margin-bottom: 0.15rem; }
    .eu-guide .timeline-table td, .eu-guide .timeline-table th { font-size: 0.82rem; vertical-align: top; }
    .foot-stats { display: inline-block; padding: 7px 2px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
    .st-box { overflow: auto; padding: 1rem 1.1rem 1.2rem; display: block; max-height: 86vh; }
    .st-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
    .st-head h3 { font-size: 1.15rem; font-weight: 800; }
    .st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.6rem; }
    .st-card { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.1rem; }
    .st-card b { font-size: 1.55rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
    .st-card span { font-size: 0.76rem; color: var(--shell-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
    .st-sub { margin: 1.1rem 0 0.5rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
    .st-tablewrap { overflow-x: auto; }
    .st-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
    .st-table th, .st-table td { text-align: right; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--shell-line); font-variant-numeric: tabular-nums; }
    .st-table th:first-child, .st-table td:first-child { text-align: left; font-weight: 700; }
    .st-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--shell-muted); }
    .st-table tr:last-child td { border-bottom: 0; font-weight: 800; }
    .st-note { margin: 0.7rem 0 0; font-size: 0.75rem; color: var(--shell-muted); line-height: 1.4; }
    @media (max-width: 520px) { .st-table { font-size: 0.78rem; } .st-table th, .st-table td { padding: 0.35rem 0.3rem; } .st-cards { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); } .st-card b { font-size: 1.35rem; } .st-box { padding: 0.9rem 0.8rem 1rem; } }
    @media print { #st-modal { display: none !important; } }
    .dd-sub { font-size: 0.7rem; font-weight: 600; color: var(--shell-muted); margin-left: 0.4rem; }
    .country-note { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.75rem 1rem 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 0.86rem; line-height: 1.45; }
    .country-note .cn-flag { font-size: 1.3rem; line-height: 1.2; }
    @media (min-width: 900px) { .country-note { margin-right: 310px; } }
    @media print { .country-note { display: none; } }
    #dd-nation[hidden] { display: none; }
    @media (max-width: 520px) {
      .topbar.has-nation { flex-wrap: wrap; padding: 0.5rem 0.4rem; gap: 0.25rem; }
      .topbar.has-nation .dd-btn { padding: 0 0.45rem; font-size: 0.78rem; }
      .topbar.has-nation .tk-search, .topbar.has-nation .top-actions .icon-btn { width: 32px; height: 32px; }
      .topbar.has-nation #dd-nation { order: 20; flex: 1 1 100%; }
      .topbar.has-nation #dd-nation .dd-btn { width: 100%; justify-content: flex-start; }
      .topbar.has-nation #dd-nation .dd-label-kind { display: inline; }
      .topbar #dd-nation .dd-menu { left: 0; right: auto; min-width: 240px; max-height: 60vh; overflow-y: auto; }
    }
    #dd-nation .dd-menu { max-height: 70vh; overflow-y: auto; }
    /* Phones: one compact icon bar in every section, with the region, trips/places and country menus as icons only.
       list, region, trips/places, country, logo, search, saved, My trip, theme, offline, accent. */
    .dd-nbadge { display: none; font-style: normal; }
    @media (max-width: 520px) {
      .topbar, .topbar.has-nation { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 0.2rem; padding: 0.45rem 0.4rem; }
      .topbar .brand, .topbar .tk-search { margin-left: 0 !important; margin-right: 0 !important; }
      .topbar .brand svg { height: calc(var(--tb, 27px) * .9); }
      .topbar .top-actions { display: contents; }
      .topbar .dd-wrap { flex: none; position: static; }
      .topbar .dd-btn, .topbar.has-nation .dd-btn { height: var(--tb, 27px); min-width: var(--tb, 27px); width: auto; padding: 0 0.4rem; gap: 0; font-size: 0.72rem; justify-content: center; position: relative; }
      .topbar .dd-label, .topbar .dd-caret, .topbar #dd-nation .dd-label-kind { display: none !important; }
      .topbar .dd-ico { font-size: calc(var(--tb, 27px) * .6); }
      .topbar .dd-nbadge:not([hidden]) { display: flex; position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; align-items: center; justify-content: center; line-height: 1; }
      .topbar #tk-list-btn, .topbar #tk-bm-btn, .topbar .tk-search, .topbar .top-actions .icon-btn, .topbar.has-nation #tk-list-btn, .topbar.has-nation #tk-bm-btn, .topbar.has-nation .tk-search, .topbar.has-nation .top-actions .icon-btn { width: var(--tb, 27px) !important; height: var(--tb, 27px) !important; border-radius: 9px; flex: none; padding: 0; }
      .topbar .icon-btn svg, .topbar .tk-search svg { width: calc(var(--tb, 27px) * .58); height: calc(var(--tb, 27px) * .58); }
      .topbar .accent-dot { width: calc(var(--tb, 27px) * .5); height: calc(var(--tb, 27px) * .5); }
      .topbar .plan-count { top: -5px; right: -5px; min-width: 15px; height: 15px; font-size: 9px; line-height: 15px; }
      .topbar #dd-nation, .topbar.has-nation #dd-nation { order: 0; flex: none; width: auto; }
      .topbar.has-nation #dd-nation .dd-btn { width: auto; justify-content: center; }
      .topbar .dd-menu { position: fixed !important; left: 8px !important; right: 8px !important; top: 48px !important; width: auto !important; min-width: 0 !important; max-height: 70vh; overflow-y: auto; }
    }
    @media (max-width: 370px) { .topbar .brand { display: none; } }
    .coming-soon { max-width: 520px; margin: 3rem auto; padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1px dashed var(--shell-line); border-radius: 16px; }
    .coming-soon .cs-ico { font-size: 2.6rem; line-height: 1.1; }
    .coming-soon h3 { margin: 0.6rem 0 0.3rem; font-size: 1.2rem; font-weight: 800; }
    .coming-soon p { color: var(--shell-muted); font-size: 0.92rem; }
    .topbar .dd-menu .country-btn.soon .dd-name, .topbar .dd-menu .kind-btn.soon .dd-name { color: var(--shell-muted); font-weight: 600; }
    .dd-rate { display: block; margin-top: .1rem; font-size: .72rem; font-weight: 600; line-height: 1.2; color: var(--shell-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #dd-nation-menu .kind-btn { display: flex; align-items: center; gap: .65rem; min-width: 0; }
    #dd-nation-menu .dd-ico { flex: none; width: 1.7rem; justify-content: center; font-size: 1.25rem; }
    #dd-nation-menu .dd-name { flex: 1 1 auto; min-width: 0; text-align: left; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
    #dd-nation-menu .dd-count { flex: none; margin-left: 0; padding-left: .4rem; text-align: right; }
    #dd-nation-menu { min-width: min(330px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
    .dd-menu .dd-count { margin-left: auto; padding-left: 0.8rem; font-size: 0.7rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
    .dd-menu .soon .dd-count { color: var(--shell-muted); font-weight: 600; font-style: italic; }
    .dd-menu .active .dd-count { margin-right: 0.3rem; }
    .place-card .place-photo { grid-column: 1 / -1; margin: -1rem -1.1rem 0.8rem; }
    @media (max-width: 600px) { .place-card .place-photo { margin: -0.9rem -0.8rem 0.7rem; } }
    .place-photo { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e6eee9; text-decoration: none; }
    .place-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .place-photo.loading { background: linear-gradient(100deg, #e6eee9 30%, #f3f7f4 50%, #e6eee9 70%) 0 0 / 200% 100%; animation: ppShimmer 1.2s linear infinite; }
    @keyframes ppShimmer { to { background-position: -200% 0; } }
    .stop-body .place-photo { aspect-ratio: auto; height: clamp(150px, 20vw, 230px); border-radius: 10px; margin: 0 0 0.7rem; }
    .side-item.has-thumb { grid-template-columns: 10px 1fr 54px; align-items: center; }
    .side-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #e6eee9; flex: none; }
    .side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .side-thumb.loading { background: linear-gradient(100deg, #e6eee9 30%, #f3f7f4 50%, #e6eee9 70%) 0 0 / 200% 100%; animation: ppShimmer 1.2s linear infinite; }
    .side-thumb.fallback { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: color-mix(in srgb, var(--tc, #1e4d3a) 16%, #fff); }
    .side-item.has-thumb .side-dot { margin-top: 0; align-self: center; }
    .pp-credit { position: absolute; right: 6px; bottom: 6px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: rgba(0,0,0,0.55); padding: 1px 7px; border-radius: 999px; }
    @media (prefers-reduced-motion: reduce) { .place-photo.loading { animation: none; } }
    @media print { .place-photo.loading { display: none; } }
    .rm-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0.7rem; padding: 0.2rem 0.8rem 0.9rem; }
    .rm-day { border: 1px solid var(--shell-line); border-radius: 12px; padding: 0.5rem 0.55rem 0.4rem; border-top: 4px solid var(--dc); background: #fff; }
    .rm-day-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; margin: 0 0.15rem 0.35rem; }
    .rm-day-n { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dc); }
    .rm-day-t { font-size: 0.84rem; font-weight: 700; }
    .rm-row { display: grid; grid-template-columns: 24px 70px 1fr auto; gap: 0.4rem; align-items: baseline; padding: 0.28rem 0.25rem; border-radius: 8px; color: inherit; text-decoration: none; font-size: 0.82rem; line-height: 1.3; }
    .rm-link { display: contents; color: inherit; text-decoration: none; }
    .rm-row.rm-has-link:hover { background: var(--accent-soft); }
    .rm-star, .rm-save { align-self: center; padding: .1rem .3rem; font-size: .85rem; }
    .rm-btns { display: flex; gap: 2px; align-items: center; justify-self: end; }
    .ico-heart { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vertical-align: -0.2em; } .ico-heart.on { fill: currentColor; }
    .rec-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: .7rem 0 .2rem; }
    .rec-btn { font: inherit; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; border: 1.5px solid #f3c1cc; background: #fff; color: #e11d48; font-weight: 800; border-radius: 999px; }
    .rec-btn:hover { border-color: #e11d48; }
    .rec-btn .ico-heart { color: #e11d48; }
    .rec-btn.big { height: 36px; padding: 0 .9rem; font-size: .88rem; }
    .rec-btn.mini { height: 30px; padding: 0 .55rem; font-size: .78rem; }
    .rec-btn[aria-pressed="true"] { background: #dcf1fb; border-color: #8fd0ea; color: #e11d48; }
    .rec-n { color: #e11d48; font-weight: 800; font-size: .85em; min-width: 1ch; } .rec-btn .rec-l { color: #be123c; }
    .rec-btn[aria-pressed="true"] .rec-l { color: #0b5c7e; }
    .vis-n { font-weight: 800; color: #14684a; background: rgba(31,138,91,.12); border-radius: 999px; padding: 0 .4rem; font-size: .72rem; margin-left: .1rem; }
    .arr-row.top { padding: .6rem 0 0; }
    .arr-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: .55rem 1rem 0; }
    .visit-check.dep-check input { border-color: #d98a00; } .visit-check.dep-check input:checked { background: #d98a00; }
    .visit-check.dep-check:has(input:checked) { background: #fdecc8; border-color: #f0c070; color: #8a5200; }
    .visit-check:has(input:checked) { background: #dcf1fb; border-color: #8fd0ea; color: #0b5c7e; }
    .did-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; color: #14684a; white-space: nowrap; }
    #tk-pass-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
    .pass-modal { align-items: center; }
    .pass-wrap { position: relative; width: min(440px, 100%); }
    .pass-x { position: absolute; top: -10px; right: -4px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
    .pass-book { border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
    .pass-page { min-height: 570px; border-radius: 14px; padding: 18px 16px 16px; background: #f6efdb; background-image: repeating-linear-gradient(45deg, rgba(160,130,70,.05) 0 2px, transparent 2px 6px), radial-gradient(circle at 50% 45%, rgba(255,255,255,.55), transparent 70%); border: 3px solid #d8c796; color: #4a3b1d; animation: passIn .25s ease-out; outline: none; position: relative; overflow: hidden; }
    @keyframes passIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
    .pass-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid rgba(120,95,40,.35); padding-bottom: 6px; margin-bottom: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: #7a6330; }
    .pass-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; letter-spacing: .02em; text-transform: none; color: #3c2f12; margin: 0 0 8px; }
    .pass-grid { padding-bottom: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 4px; justify-items: center; }
    .stamp { width: 150px; height: 130px; mix-blend-mode: multiply; animation: stampIn .35s cubic-bezier(.2,1.6,.4,1) backwards; }
    @keyframes stampIn { from { opacity: 0; scale: 1.5; } to { opacity: .92; scale: 1; } }
    .pass-foot { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .66rem; letter-spacing: .12em; color: #8a7740; }
    .pass-empty { text-align: center; padding: 70px 16px 0; font-size: .95rem; line-height: 1.5; color: #6b5a2c; }
    .pass-cover { --cv1: #243a66; --cv2: #141f38; background-color: var(--cv2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 40%, var(--cv1), var(--cv2) 78%); border-color: rgba(0,0,0,.55); color: #d8b45a; text-align: center; padding-top: 34px; }
    .pass-cover::before { content: ''; position: absolute; inset: 9px; border: 1.5px dashed rgba(216,180,90,.4); border-radius: 10px; pointer-events: none; }
    .pass-cover .cv-top { font-size: .72rem; letter-spacing: .4em; opacity: .9; margin-bottom: 26px; }
    .pass-cover .emb { width: 150px; height: 150px; display: block; margin: 0 auto 22px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
    .pass-cover h2 { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .34em; font-size: 1.6rem; margin: 0 0 12px; font-weight: 700; background: linear-gradient(180deg, #f3dc93, #c9a13e 55%, #a67d1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0,0,0,.55)) drop-shadow(0 -1px 0 rgba(255,236,170,.25)); }
    .pass-cover .sub { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
    .pass-cover .cv-chip { display: block; width: 44px; margin: 64px auto 0; }
    .pass-idtop b.long { font-size: .8rem; letter-spacing: .02em; word-break: break-all; }
    .pass-phone { margin-top: 10px; } .pass-phl { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #8a7740; } .pass-phrow { display: grid; grid-template-columns: .9fr 1.4fr; gap: 8px; } .pass-phrow .pf { height: 34px; box-sizing: border-box; } .pass-phone .pass-note { display: block; margin: 4px 0 0; }
    .pass-idtop { display: flex; gap: 18px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #8a7740; margin: 4px 0 10px; } .pass-idtop b { display: block; font: 700 .95rem Georgia, serif; color: #3c2f12; letter-spacing: .04em; }
    .pass-visa { background-color: #f4efe0; background-image: repeating-radial-gradient(circle at 20% 30%, rgba(60,120,110,.07) 0 1px, transparent 1px 6px), repeating-radial-gradient(circle at 80% 75%, rgba(120,80,150,.06) 0 1px, transparent 1px 7px), linear-gradient(135deg, rgba(255,255,255,.4), rgba(200,230,215,.25)); }
    .pass-visa::before { content: 'VISAS'; position: absolute; left: 0; right: 0; top: 44%; text-align: center; font: 800 4.2rem Georgia, serif; letter-spacing: .3em; color: rgba(90,130,120,.07); pointer-events: none; }
    .pass-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; color: #fff; font-size: .8rem; }
    .pass-nav button { width: 40px; height: 34px; border-radius: 999px; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; } .pass-nav button:disabled { opacity: .4; cursor: default; }
      background: var(--lc); background: linear-gradient(145deg, color-mix(in srgb, var(--lc) 65%, #fff), var(--lc) 52%, color-mix(in srgb, var(--lc) 78%, #000)); box-shadow: 0 7px 16px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.4), inset 0 -3px 6px rgba(0,0,0,.18); -webkit-tap-highlight-color: transparent; }
    .pass-menu .nb-lbls .cell { height: 112px; } .pass-menu .nb-lbls .cell.tall { height: 136px; overflow: hidden; } .pass-menu .nb-lbls .pv { width: 172%; transform: scale(.58); transform-origin: 0 0; text-align: left; }
    .ph-d { position: absolute; top: 3px; left: 6px; right: 17px; text-align: center; font: 600 .5rem/1.2 -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; color: #7a6a45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
    .ph-w { position: relative; }
    .ph-w.playing .ph-play { display: none; }
    .ph-vid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; object-fit: contain; z-index: 2; }
    .ph-fs { position: absolute; top: 5px; right: 5px; z-index: 3; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; padding: 0; display: flex; align-items: center; justify-content: center; }
    .ph-play { z-index: 4; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.55); color: #fff; font-size: 17px; padding: 0 0 0 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
    .ph-p { position: absolute; left: 100%; margin-left: 3px; top: 0; height: 100%; width: 12px; writing-mode: vertical-rl; font: 600 .5rem/12px -apple-system, 'Segoe UI', sans-serif; font-style: normal; color: #7a6a45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
    .pass-menu .nb-gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 2px 4px 8px; } .pass-menu .nb-gal button { width: auto; padding: 5px 0; font-size: 1.6rem; line-height: 1.1; text-align: center; background: #fff; border: 1px solid #e6dcc0; border-radius: 10px; }
    .pass-menu .nb-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 6px 8px; } .pass-menu .nb-tabs button { width: auto; padding: 6px 11px; border: 1px solid #cdbf93; border-radius: 999px; background: #fff; font-size: .78rem; } .pass-menu .nb-tabs button.on { background: #3c2f12; color: #fff; border-color: #3c2f12; }
    .pass-menu .nb-lbls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 8px 10px; } .pass-menu .nb-lbls button { width: auto; display: block; padding: 8px; background: #3a2412; border: 2px solid transparent; border-radius: 12px; } .pass-menu .nb-lbls button.on { border-color: #d8b45a; } .pass-menu .nb-lbls button:hover { background: #3a2412; }
    .pass-menu .nb-sw.lab button { width: 28px; height: 28px; }
    .pass-menu .nb-sw.lab { flex-wrap: wrap; }
    .pass-menu .nb-paper { display: flex; gap: 6px; padding: 0 8px 8px; } .pass-menu .nb-paper button { flex: 1; width: auto; padding: 7px 4px; text-align: center; border: 1px solid #cdbf93; border-radius: 9px; background: #fff; font-size: .78rem; } .pass-menu .nb-paper button.on { background: #3c2f12; color: #fff; border-color: #3c2f12; }
    /* The notebook uses the whole screen: the page grows to fill what the bottom bar leaves */
    .pass-menu .nb-del { margin: 6px 8px; width: calc(100% - 16px); }
    @media print { body.nb-printing > *:not(#nb-print) { display: none !important; } body.nb-printing #nb-print { display: block !important; } #nb-print { display: none; } #nb-print .nb-pp { page-break-after: always; break-after: page; padding: 24px 28px; font: 14px/26px Georgia, serif; white-space: pre-wrap; } #nb-print .nb-pp h4 { font: 700 11px/1 sans-serif; letter-spacing: .1em; color: #777; margin: 0 0 12px; } }
    .pass-leaf { position: absolute; z-index: 6; border-radius: 14px; pointer-events: none; transform-style: preserve-3d; will-change: transform; }
    .pass-leaf .face { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
    .pass-leaf .face.back { transform: rotateY(180deg); }
    .pass-leaf .face .pass-page { margin: 0; min-height: 0; height: 100%; width: 100%; box-sizing: border-box; animation: none !important; }
    .pass-leaf .shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(40,28,6,.55), rgba(40,28,6,0) 70%); }
    .pass-leaf.rl .shade { background: linear-gradient(270deg, rgba(40,28,6,.55), rgba(40,28,6,0) 70%); }
    .pass-book { perspective: 2600px; }
    @keyframes passNext { from { opacity: .25; transform: perspective(1100px) rotateY(-72deg); transform-origin: left center; filter: brightness(.7); } to { opacity: 1; transform: none; filter: none; } }
    @keyframes passPrev { from { opacity: .25; transform: perspective(1100px) rotateY(72deg); transform-origin: right center; filter: brightness(.7); } to { opacity: 1; transform: none; filter: none; } }
    @keyframes passPulse { 0%,100% { transform: none; } 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(1.15) rotate(6deg); } }
    #tk-pass-btn.pass-pulse { animation: passPulse .9s ease-out; color: #15803d; }
    .stamp { cursor: pointer; }
    .pass-photo.ro { cursor: default; }
    .pass-editbtn { font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 20px; border-radius: 999px; border: 1.5px solid #b8a468; background: #fff8e1; color: #5b4a1a; cursor: pointer; }
    .pass-id { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; }
    .pass-idf { flex: 1; min-width: 0; font-size: .8rem; }
    .pass-page label { display: block; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: #8a7740; }
    .pass-page .pf { display: block; width: 100%; box-sizing: border-box; margin-top: 2px; padding: 4px 5px; border: 0; border-bottom: 2px solid #b8a468; border-radius: 0; background: rgba(255,255,255,.5); font: 700 .84rem Georgia, serif; color: #3c2f12; min-width: 0; }
    .pass-kv { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dotted rgba(120,95,40,.4); font-size: .78rem; } .pass-kv span { color: #8a7740; } .pass-kv b { color: #3c2f12; text-align: right; } .pass-kv.wide { margin: 8px 2px 0; }
    .pass-mrz { position: absolute; left: 10px; right: 10px; bottom: 30px; font: 600 .6rem/1.55 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; color: #4d4220; white-space: nowrap; overflow: hidden; background: rgba(255,255,255,.4); padding: 5px 6px; border-radius: 4px; }
    .pass-photo { position: relative; width: 98px; height: 126px; flex: none; border: 2px solid #b8a468; border-radius: 6px; background: rgba(255,255,255,.55); color: #c9b87a; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
    .pass-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } .pass-photo svg { width: 66%; } .pass-photo small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .56rem; color: #8a7740; background: rgba(255,255,255,.75); padding: 2px 0; }
    .pass-crop-modal { align-items: center; padding: 12px; z-index: 260; }
    .pass-cropbox { background: #fffbe9; border: 2px solid #b8a468; border-radius: 14px; padding: 14px; width: min(330px, 94vw); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.45); color: #3c2f12; } .pass-cropbox h4 { margin: 0 0 4px; font: 700 1.05rem Georgia, serif; }
    .pass-stage { position: relative; width: 260px; height: 325px; margin: 8px auto 10px; overflow: hidden; border-radius: 8px; background: #222; touch-action: none; cursor: grab; max-width: 100%; } .pass-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
    .pass-stage::after { content: ''; position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 8px; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 33.34% 33.34%; }
    .pass-zoomr { width: 88%; margin: 0 0 10px; accent-color: #1d7a5a; } .pass-cropbox .pass-addp { justify-content: center; padding: 0; } .pass-cropbox .pass-addp button { padding: 8px 16px; border: 0; border-radius: 8px; font: 700 .86rem inherit; cursor: pointer; background: #1d7a5a; color: #fff; } .pass-cropbox .pass-addp .pass-crop-cancel { background: #8a8a8a; }
    .pass-rm { margin-top: 6px; border: 0; background: none; color: #8a7740; font-size: .68rem; text-decoration: underline; cursor: pointer; padding: 0; }
    .pass-row3 .pf { height: 34px; box-sizing: border-box; line-height: 1.2; }
    .pass-page .pf[type=date] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; text-align: left; padding: 4px 5px; margin: 2px 0 0; }
    .pass-page .pf[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
    .pass-page .pf[type=date]::-webkit-datetime-edit { padding: 0; }
    .pass-page select.pf { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a7740 50%), linear-gradient(135deg, #8a7740 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 20px; }
    .pass-row3 { align-items: end; }
    .pass-row3 { display: grid; grid-template-columns: 1.25fr 1.25fr .6fr; gap: 8px; margin-top: 10px; } .pass-row3.two { grid-template-columns: 1fr 1fr; } .pass-row3.kvs { margin-top: 8px; } .pass-kv.col { display: block; border: 0; padding: 0; } .pass-kv.col span { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; } .pass-kv.col b { display: block; text-align: left; font-size: .78rem; }
    .pass-sig { margin-top: 14px; height: 44px; line-height: 44px; border-bottom: 1px solid #8a7740; padding-left: 8px; font: italic 400 1.7rem 'Segoe Script', 'Snell Roundhand', 'Bradley Hand', 'Brush Script MT', cursive; color: #1c3faa; overflow: hidden; white-space: nowrap; }
    .pass-chk { display: flex !important; align-items: center; gap: 6px; margin-top: 8px; font-size: .68rem !important; letter-spacing: .02em !important; text-transform: none !important; } .pass-chk input { width: 15px; height: 15px; margin: 0; accent-color: #1d7a5a; }
    .pass-thumbrow { margin-top: 6px; height: 118px; border-bottom: 1px solid #8a7740; display: flex; align-items: center; padding-left: 18px; } .pass-thumb { height: 112px; width: auto; }
    .pass-sigcap { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #8a7740; margin-top: 2px; }
    .pass-page textarea.pass-lines { height: 196px; resize: none; line-height: 28px; font: 600 .9rem/28px Georgia, serif; background: repeating-linear-gradient(transparent 0 27px, rgba(120,95,40,.35) 27px 28px); border-bottom: 0; padding: 0 4px; }
    .vsticker { display: block; width: 100%; height: auto; margin: 4px 0 6px; transform: rotate(-1deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
    .pass-lastp { text-align: center; padding: 70px 14px 0; color: #4d4220; } .pass-lastp .lp-title { font: 700 .95rem Georgia, serif; letter-spacing: .12em; margin-bottom: 14px; } .pass-lastp p { font-size: .78rem; line-height: 1.55; margin: 0 14px 28px; } .pass-lastp .lp-bar { width: 190px; height: 38px; display: block; margin: 0 auto 6px; color: #3c2f12; } .pass-lastp .lp-no { font: 600 .72rem ui-monospace, Menlo, monospace; letter-spacing: .18em; margin-bottom: 34px; } .pass-lastp .lp-small { font-size: .68rem; color: #8a7740; }
    .pass-back { padding-top: 0; }
    .pass-visapage .vsticker { margin: 56px 0 26px; }
    .pass-endorse { height: 210px; background: repeating-linear-gradient(transparent 0 27px, rgba(120,95,40,.3) 27px 28px); position: relative; } .pass-endorse span { position: absolute; top: -18px; left: 2px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #8a7740; }
    .pass-scatter.short { height: 290px; }
    .pass-scatter { position: relative; height: 400px; margin-top: 6px; } .pass-scatter .stamp { position: absolute; }
    .pass-wrap.spread { width: min(940px, 100%); }
    .pass-book { display: grid; grid-template-columns: 1fr; position: relative; }
    .pass-wrap.spread .pass-book { grid-template-columns: 1fr 1fr; }
    .pass-wrap.spread #pass-page { border-radius: 14px 0 0 14px; border-right-width: 1px; } .pass-wrap.spread #pass-page2 { border-radius: 0 14px 14px 0; border-left-width: 1px; }
    .pass-wrap.spread .pass-book::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 46px; transform: translateX(-50%); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(60,40,10,.22) 50%, transparent); }
    .pass-blank { background-image: repeating-linear-gradient(45deg, rgba(160,130,70,.05) 0 2px, transparent 2px 6px); }
    .pass-map { width: 100%; height: auto; display: block; background: #cfe3ea; border-radius: 8px; } .pass-map .mn { fill: #e0d6b8; stroke: #f6efdb; stroke-width: .4; } .pass-map .mv { fill: #1d7a5a; stroke: #f6efdb; stroke-width: .5; cursor: pointer; } .pass-map circle.mn { fill: #c9bc96; }
    .pass-mapc { margin: 8px 0 6px; text-align: center; font-size: .85rem; } .pass-mapc b { font: 700 1.5rem Georgia, serif; color: #1d7a5a; } .pass-mapc span { color: #8a7740; }
    .pass-zoom { margin: 0 0 6px; background: #1d7a5a; color: #fff; border-color: #1d7a5a; }
    .pass-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 150px; overflow: auto; padding-bottom: 28px; }
    .pass-chip { border: 1px solid #b8a468; background: rgba(255,255,255,.55); border-radius: 999px; padding: 3px 9px; font-size: .72rem; color: #3c2f12; cursor: pointer; }
    .pass-hint { text-align: center; font-size: .8rem; color: #8a7740; padding: 10px 0; }
    .pass-edit .pass-del { background: #b3302f !important; }
    .pass-edit { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; gap: 6px; align-items: center; background: #fffbe9; border: 2px solid #b8a468; border-radius: 10px; padding: 6px 8px; font-size: .72rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); } .pass-edit b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pass-edit input { border: 1px solid #b8a468; border-radius: 6px; padding: 3px 4px; font: inherit; max-width: 130px; } .pass-edit button { border: 0; border-radius: 6px; padding: 4px 9px; background: #1d7a5a; color: #fff; cursor: pointer; } .pass-edit button[data-act=x] { background: #999; }
    @media print { .pass-modal { display: none !important; } }
    #pass-print { display: none; }
    .pass-nav .pass-count { background: none !important; border: 0; color: #fff; font-size: .8rem !important; width: auto !important; padding: 6px 10px; cursor: pointer; text-decoration: underline dotted; }
    .pass-addhit { display: block; width: 100%; text-align: left; padding: 8px 10px; margin: 4px 0; border: 1px solid #d8c98f; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; } .pass-addhit b { display: block; } .pass-addhit small { color: #6b5e2e; }
    .pass-menu { position: absolute; left: 0; right: 0; bottom: 54px; z-index: 5; background: #fffbe9; border: 2px solid #b8a468; border-radius: 12px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-height: 60vh; overflow: auto; }
    .pass-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 8px; border-radius: 8px; font: 600 .86rem inherit; color: #3c2f12; cursor: pointer; } .pass-menu button:hover { background: rgba(184,164,104,.25); } .pass-menu small { display: block; font-weight: 400; color: #8a7740; font-size: .7rem; }
    .pass-menu.map { left: 50%; right: auto; width: min(560px, 100%); transform: translateX(-50%); box-sizing: border-box; }
    .pass-menu button.pass-chip { display: inline-block; width: auto; padding: 3px 9px; border: 1px solid #b8a468; border-radius: 999px; font-size: .72rem; background: rgba(255,255,255,.55); }
    .pass-menu button.pass-zoom { display: inline-block; width: auto; background: #1d7a5a; color: #fff; margin-bottom: 6px; }
    .pass-menu .pass-q { width: 100%; box-sizing: border-box; padding: 6px 8px; margin: 4px 0 8px; border: 1px solid #b8a468; border-radius: 8px; background: #fff; font: inherit; font-size: .84rem; color: #3c2f12; }
    .pass-menu #pass-res { max-height: 40vh; overflow: auto; } .pass-menu #pass-res button { padding: 6px 8px; font-size: .8rem; } .pass-menu #pass-res small { display: block; }
    .pass-note { margin: 6px 8px; font-size: .72rem; color: #8a7740; line-height: 1.4; } .pass-ysum { margin: 4px 8px 8px; font-size: .8rem; color: #3c2f12; }
    .pass-mbars { display: flex; gap: 4px; height: 70px; align-items: flex-end; margin: 4px 8px 8px; } .pass-mbars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; } .pass-mbars i { display: block; width: 100%; background: #1d7a5a; border-radius: 3px 3px 0 0; min-height: 2px; } .pass-mbars em { font-size: .6rem; color: #8a7740; font-style: normal; }
    .pass-prow { display: flex; gap: 4px; } .pass-menu .pass-delp { width: auto; padding: 9px 12px; color: #a33; } .pass-addp { display: flex; gap: 6px; padding: 0 8px; } .pass-addp input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid #b8a468; border-radius: 8px; font: inherit; font-size: .84rem; } .pass-menu .pass-addp button { width: auto; background: #1d7a5a; color: #fff; padding: 6px 12px; justify-content: center; }
    .pass-menu h4 { margin: 4px 8px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #8a7740; }
    .pass-latest { margin-top: 14px; border: 1px solid rgba(232,207,138,.7); background: none; color: #e8cf8a; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .78rem; cursor: pointer; }
    @media print {
      body.pass-printing > *:not(#pass-print) { display: none !important; }
      body.pass-printing #pass-print { display: block !important; }
      html, html[data-theme="dark"] { filter: none !important; }
      #pass-print .pass-page { position: relative; width: 480px; height: 660px; min-height: 0; margin: 0 auto; box-sizing: border-box; break-after: page; page-break-after: always; break-inside: avoid; animation: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      #pass-print .stamp { animation: none !important; opacity: .92; }
      #pass-print .pass-chips { max-height: none; overflow: visible; }
      #pass-print.booklet .bk-sheet { display: flex; width: 100%; height: 196mm; break-after: page; page-break-after: always; overflow: hidden; }
      #pass-print.booklet .bk-sheet .pass-page { width: 50%; height: 100%; margin: 0; border-radius: 0; flex: none; }
      #pass-print.booklet .pass-scatter { height: 400px; }
      @page { margin: 12mm; }
    }
    .rec-hint { font-size: .8rem; color: #5b6b62; }
    .rec-fav { font-size: .72rem; font-weight: 800; color: #9a3412; background: #ffedd5; border-radius: 6px; padding: .1rem .45rem; } .rec-fav[hidden] { display: none; }
    .side-rec { display: inline-flex; align-items: center; gap: .2rem; margin-left: .45rem; font-size: .72rem; font-weight: 800; color: #be123c; background: #ffe4ea; border-radius: 999px; padding: 0 .4rem; }
    .fchip.frec[aria-pressed="true"] { background: #e11d48; border-color: #e11d48; }
    @media print { .rec-bar, .rec-btn { display: none; } }
    .save-star { font: inherit; line-height: 1; padding: .3rem .45rem; border-radius: 999px; border: 1px solid #cfe3d8; background: #fff; color: #14684a; cursor: pointer; }
    .save-star[aria-pressed="true"] { background: #e2f2ea; border-color: #1f8a5b; }
    .ico-bm { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vertical-align: -0.2em; } .ico-bm.on { fill: currentColor; }
    @media print { .save-star, .plan-star { display: none; } }
    .rm-n { width: 22px; height: 22px; border-radius: 50%; background: var(--dc); color: #fff; font-size: 0.7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; align-self: start; }
    .rm-time { color: var(--dc); font-weight: 700; font-size: 0.76rem; font-variant-numeric: tabular-nums; }
    .rm-name { min-width: 0; overflow-wrap: anywhere; }
    @media print { .route-map-scroll svg { min-width: 0 !important; } }

    /* Mile marker at the end of each itinerary */
    .mile-end { display: flex; align-items: center; gap: 1.25rem; margin: 1.5rem 0 0.5rem; padding: 1rem 1.25rem; border: 1px solid var(--shell-line); border-radius: 16px; background: linear-gradient(180deg, #fff 0, color-mix(in srgb, var(--mile) 7%, #fff) 100%); border-bottom: 5px dashed color-mix(in srgb, var(--mile) 45%, #fff); }
    .mile-post { width: 120px; height: auto; flex: none; }
    .mile-text { min-width: 0; }
    .mile-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mile); }
    .mile-title { font-size: 1.1rem; font-weight: 800; line-height: 1.25; margin: 0.15rem 0; overflow-wrap: anywhere; }
    .mile-sub { font-size: 0.85rem; color: var(--shell-muted); margin-bottom: 0.7rem; }
    .mile-top { background: var(--mile); color: #fff; border: 0; border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
    .mile-top:hover { filter: brightness(1.12); }
    .note-body .itinerary-detail > .mile-end { grid-column: 1 / -1; }
    @media (max-width: 480px) { .mile-end { gap: 0.9rem; padding: 0.9rem; } .mile-post { width: 84px; } }
    @media print { .mile-top { display: none; } }

    @media (min-width: 900px) {
      .notes-app.pinned .notes-side {
        position: sticky; top: 72px; transform: none; width: 300px; flex: none; max-height: calc(100vh - 88px);
        border: 1px solid var(--shell-line); border-radius: 16px; box-shadow: 0 6px 24px rgba(20,40,32,0.07); z-index: 1;
      }
      .notes-app.pinned.side-open .side-backdrop { display: none; }
      .notes-app.pinned .side-pin { display: inline-flex; }
      .notes-app.pinned .side-toggle { display: none; }
      .notes-app.pinned .side-close { display: none; }
      .side-pin { display: inline-flex; }
    }
    @media (max-width: 700px) {
      .note-body { padding: 0.25rem 0.75rem 0.75rem; }
      .note-foot { margin: 0 0.75rem; }
      .note-title { font-size: 1.1rem; }
      .note-pill { margin-left: 0.5rem; }
    }
    @media print {
      .topbar, .tabs-nav, .notes-side, .side-backdrop, .note-head .icon-btn, .note-pill, .note-foot, #share-toast { display: none !important; }
      body { background: #fff; }
      .notes-main { border: 0; box-shadow: none; }
      .note-body { zoom: 1; }
    }
  