  /* ══════════════════════════════════════════════════════════════════════════
     FONT ITERATION 0 — baseline (saved 2026-04-14 before iteration 1)
     .nav-pill:          font-size 0.82rem, font-weight 500
     .card-venue:        font-size 0.85rem, font-weight 500
     .card-title:        font-size 1.3rem  (no explicit weight — DM Serif Display)
     .card-artist-desc:  font-size 0.875rem, line-height 1.6
     .card-time:         font-size 0.75rem, font-weight 500
     .card-price:        font-size 0.75rem, font-weight 700
     .date-group-header: font-size 1.4rem,  font-weight 400
     .card-cat-badge:    font-size 0.62rem, font-weight 700
     ══════════════════════════════════════════════════════════════════════════ */

  :root {
    --ink: #1a1a1a;
    --paper: #f4f0e8;
    --newsprint: #e8e4d8;
    --cream: #ede8dc;
    --warm-gray: #b8b2a4;
    --rust: #c0440e;
    --rust-light: #e8541a;
    --gold: #c9a84c;
    --teal: #4a9e8e;
    --teal-light: #2a9d8f;
    --deep: #1a1a1a;
    --mid: #3d3d38;
    --tag-bg: #e8e2d4;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  body {
    font-family: 'Libre Franklin', 'Instrument Sans', sans-serif;
    background: var(--newsprint);
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.02) 1px, rgba(0,0,0,0.02) 2px),
      repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0,0,0,0.02) 1px, rgba(0,0,0,0.02) 2px);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── Screens ── */
  .screen {
    display: none;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    animation: fadeIn 0.28s ease;
    overflow: hidden;
  }
  .screen.active { display: flex; }

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

  /* ── Progress dots (screens 1–3) ── */
  .progress-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 0 0;
    flex-shrink: 0;
  }
  .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #c8c2b4;
    transition: background 0.2s;
  }
  .dot.active { background: var(--rust); }
  .dot.done   { background: var(--teal); }

  /* ── Site nav: mobile = [Logo+Wordmark][☰] / [Where · When strip]
                  desktop = [Logo+Wordmark][Where · When controls][☰] ── */
  .screen-nav {
    background: var(--ink);
    border-bottom: 4px solid var(--rust);
    padding: 0.3rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    min-height: 52px;
  }
  .nav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    cursor: pointer;
  }
  .nav-logo-circle {
    height: 44px; width: 44px; cursor: pointer; display: block;
    border-radius: 50%;
  }

  /* Center column — hidden on mobile, shown on desktop */
  .nav-center {
    display: none;
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 1.25rem;
  }
  .nav-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  .nav-sep {
    color: rgba(244,240,232,0.35);
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .loc-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    position: relative;
  }
  .when-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .when-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cream);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .when-select {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: rgba(244,240,232,0.95);
    background: rgba(255,255,255,0.11);
    border: 1.5px solid rgba(244,240,232,0.25);
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    outline: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
  }
  .when-select:focus {
    background: rgba(255,255,255,0.17);
    border-color: rgba(244,240,232,0.5);
  }

  /* ── Inline custom date picker (desktop) ── */
  .when-field { position: relative; }
  .when-custom-picker {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #14302f;
    border: 1.5px solid rgba(244,240,232,0.22);
    border-radius: 6px;
    padding: 0.7rem 0.8rem 0.65rem;
    z-index: 300;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  }
  .wcp-row {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
  }
  .wcp-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(244,240,232,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .wcp-date {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: var(--cream);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(244,240,232,0.22);
    border-radius: 4px;
    padding: 0.32rem 0.5rem;
    outline: none;
    color-scheme: dark;
    width: 9rem;
  }
  .wcp-date:focus {
    border-color: rgba(244,240,232,0.45);
    background: rgba(255,255,255,0.14);
  }
  .wcp-apply {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--rust);
    border: none;
    border-radius: 4px;
    padding: 0.38rem 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .wcp-apply:hover { opacity: 0.88; }

  /* ── Mobile sheet custom range ── */
  .sheet-custom-range {
    display: none;
    padding: 0 1.25rem 0.5rem;
    gap: 0.65rem;
    flex-direction: column;
  }
  .sheet-custom-range.open { display: flex; }
  .scr-row {
    display: flex;
    gap: 0.75rem;
  }
  .scr-label {
    flex: 1;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(244,240,232,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .scr-date {
    width: 100%;
    font-size: 1rem;
    padding: 0.55rem 0.6rem;
    box-sizing: border-box;
  }
  .scr-apply {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 6px;
  }

  /* ── Mobile second row: compact tappable Where · When strip ── */
  .nav-mobile-row {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.15rem 0 0.2rem;
    gap: 0;
    border-top: 1px solid rgba(244,240,232,0.1);
  }
  .nav-pill {
    flex: 1;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(244,240,232,0.8);
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }
  .nav-pill:active { color: var(--paper); }
  .nav-pill-sep {
    color: rgba(244,240,232,0.3);
    font-size: 0.7rem;
    flex-shrink: 0;
    padding: 0 0.15rem;
    pointer-events: none;
  }

  @media (min-width: 769px) {
    .screen-nav { min-height: 60px; padding: 0.35rem 1.25rem; }
    .nav-logo-circle { height: 52px; width: 52px; }
    .nav-center { display: flex; }
    .nav-mobile-row { display: none; }
    .nav-mobile-actions { display: none; }
    .nav-dd-mobile-pill-toprow { display: none; }
    .hamburger { margin-left: 0; }

    /* CTA row: constrain button width on tablet/desktop */
    .cta-row { padding: 1rem 1.5rem 1.5rem; border-top: none; }
    .cta-row .btn-primary { width: auto; min-width: 280px; align-self: flex-start; }
  }

  /* ── Bottom sheets ── */
  .sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .sheet-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-radius: 16px 16px 0 0;
    z-index: 401;
    height: 75dvh;
    max-height: 75dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    overflow: hidden;
  }
  .bottom-sheet.open { transform: translateY(0); }
  .sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #c8c2b4;
    margin: 0.75rem auto 0.25rem;
    flex-shrink: 0;
    cursor: grab;
  }
  .sheet-header {
    padding: 0.5rem 1.25rem 0.6rem;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink);
    flex-shrink: 0;
    border-bottom: 1px solid #e0dbd0;
  }
  .sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .sheet-footer {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e0dbd0;
    flex-shrink: 0;
  }
  .sheet-done-btn {
    width: 100%;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--teal);
    color: var(--paper);
    border: none;
    border-radius: 6px;
    padding: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
  }
  .sheet-done-btn:active { background: var(--teal-light); }

  /* WHERE sheet — new autocomplete input */
  .where-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .where-input {
    flex: 1;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--ink);
    border: 1.5px solid #d4cfc6;
    border-radius: 8px;
    padding: 12px 44px 12px 14px;
    background: #faf9f6;
    width: 100%;
    outline: none;
    box-sizing: border-box;
  }
  .where-input:focus { border-color: var(--teal); }
  .where-geo-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    touch-action: manipulation;
  }
  .where-geo-error {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--warm-gray);
    margin-top: -4px;
    flex-shrink: 0;
  }
  .where-dropdown {
    background: white;
    border: 1.5px solid var(--teal);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .where-result-row {
    padding: 10px 14px 9px;
    border-bottom: 1px solid #ede9e2;
    cursor: pointer;
    transition: background 0.12s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .where-result-row:last-child { border-bottom: none; }
  .where-result-row:active,
  .where-result-row.selected { background: rgba(26,107,107,0.08); }
  .where-result-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .where-result-dot.metro { background: var(--teal); }
  .where-result-dot.no-metro { background: #c8c3ba; }
  .where-result-text { display: flex; flex-direction: column; gap: 1px; }
  .where-result-name {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--ink);
  }
  .where-result-metro {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gray);
  }

  /* WHERE sheet — legacy */
  .sheet-city-input {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--ink);
    background: white;
    border: 2px solid #d4cfc4;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    flex-shrink: 0;
  }
  .sheet-city-input:focus { border-color: var(--teal); }
  .sheet-city-drop {
    background: white;
    border: 1.5px solid var(--teal);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .sheet-city-row {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ece8de;
    cursor: pointer;
    transition: background 0.12s;
  }
  .sheet-city-row:last-child { border-bottom: none; }
  .sheet-city-row:active, .sheet-city-row.selected { background: rgba(26,107,107,0.08); color: var(--teal); font-weight: 600; }
  .sheet-city-noresults { color: var(--warm-gray); cursor: default !important; font-style: italic; }
  .sheet-match { color: var(--rust); font-weight: 700; }
  .sheet-geo-btn {
    width: 100%;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--teal);
    background: rgba(26,107,107,0.07);
    border: 1.5px solid rgba(26,107,107,0.25);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .sheet-geo-btn:active { background: rgba(26,107,107,0.14); }
  .sheet-quick-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
  }
  .sheet-quick-pill {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--ink);
    background: #f0ece3;
    border: 1.5px solid #ccc8be;
    border-radius: 100px;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
  }
  .sheet-quick-pill:active { background: #e4dfd5; border-color: #b8b3a8; }

  .drive-time-section {
    border-top: 1px solid #e8e4dc;
    padding-top: 12px;
    flex-shrink: 0;
  }
  .drive-time-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }
  .drive-time-pills {
    display: flex;
    gap: 8px;
  }
  .drive-pill {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--ink);
    background: #f0ece3;
    border: 1.5px solid #ccc8be;
    border-radius: 100px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
  }
  .drive-pill.active {
    background: var(--rust);
    color: white;
    border-color: var(--rust);
  }
  .drive-pill:active { opacity: 0.8; }

  /* WHEN sheet */
  .sheet-when-option {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    background: white;
    border: 2px solid #d4cfc4;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
  }
  .sheet-when-option.selected {
    border-color: var(--teal);
    background: rgba(26,107,107,0.07);
    color: var(--teal);
    font-weight: 600;
  }
  .sheet-when-option:active { background: rgba(26,107,107,0.1); }
  .sheet-when-sub {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--warm-gray);
    font-weight: 400;
    margin-top: 0.15rem;
    font-style: normal;
  }
  .sheet-when-option.selected .sheet-when-sub { color: rgba(26,107,107,0.7); }
  .sheet-custom-dates {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0 0;
  }
  .sheet-custom-dates.visible { display: flex; }
  .sheet-date-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .sheet-date-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: var(--warm-gray);
    width: 3.5rem;
    flex-shrink: 0;
  }
  .sheet-date-input {
    flex: 1;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: white;
    border: 2px solid #d4cfc4;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    outline: none;
  }
  .sheet-date-input:focus { border-color: var(--teal); }
  .loc-label {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cream);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .loc-inline-input {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: rgba(244,240,232,0.95);
    background: rgba(255,255,255,0.11);
    border: 1.5px solid rgba(244,240,232,0.25);
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    min-width: 180px;
    outline: none;
    transition: background 0.15s, border-color 0.15s;
    caret-color: var(--gold);
  }
  .loc-inline-input::placeholder {
    font-family: 'Instrument Sans', sans-serif;
    font-style: italic;
    color: rgba(184,178,164,0.7);
  }
  .loc-inline-input:focus {
    background: rgba(255,255,255,0.17);
    border-color: rgba(244,240,232,0.5);
  }
  /* GPS button injected next to inline input */
  .location-gps-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: rgba(184,178,164,0.7);
    padding: 4px 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
  }
  .location-gps-btn:hover {
    color: var(--gold, #d4a843);
  }

  /* Autocomplete dropdown for inline input */
  .loc-inline-drop {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 220px;
    display: none;
    background: white;
    border: 2px solid var(--teal);
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }
  /* Context message row (metro expansion notice) */
  .loc-context {
    display: none;
    width: 100%;
    font-family: 'Space Mono', monospace;
    font-size: 0.57rem;
    font-style: italic;
    letter-spacing: 0.02em;
    color: rgba(184,178,164,0.88);
    line-height: 1.55;
    padding: 0.15rem 0 0.35rem;
  }
  .loc-context.visible { display: block; }
  .loc-context a {
    color: var(--teal-light);
    cursor: pointer;
    text-decoration: underline;
    font-style: italic;
  }
  .hamburger {
    margin-left: auto;
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    color: rgba(244,240,232,0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .hamburger:hover { color: var(--paper); }

  /* ── Your Scene menu sheet ── */
  #sheet-menu .sheet-header { font-family: 'DM Serif Display', serif; }
  .menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ece8de;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.95rem;
    transition: background 0.12s;
  }
  .menu-item:hover { background: var(--cream); }
  .menu-item:last-child { border-bottom: none; }
  .menu-item-icon { font-size: 1.2rem; flex-shrink: 0; width: 1.6rem; text-align: center; }
  .menu-item-text { flex: 1; }
  .menu-item-label { font-weight: 500; }
  .menu-item-sub { font-size: 0.72rem; color: var(--warm-gray); margin-top: 0.15rem; }
  .menu-item-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    color: var(--warm-gray);
    background: var(--cream);
    border: 1px solid #d4cfc4;
    border-radius: 100px;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
  }
  .menu-divider {
    height: 1px;
    background: #ece8de;
    margin: 0.25rem 0;
  }

  /* ── Shared body — responsive tile grid (1→2→3 col) ── */
  .s-body {
    flex: 1;
    padding: 1.5rem 1.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr;         /* mobile: 1 col */
    align-content: start;
    gap: 0.65rem;
    overflow-y: auto;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  @media (min-width: 600px) {
    .s-body { grid-template-columns: repeat(2, 1fr); } /* tablet: 2 col */
  }
  @media (min-width: 900px) {
    .s-body { grid-template-columns: repeat(3, 1fr); } /* desktop: 3 col max */
  }
  /* Full-width items span all columns */
  .genre-disclaimer,
  .choice-card.full-width,
  .s-body > .btn-primary,
  .s-body > .btn-ghost { grid-column: 1 / -1; }

  /* ── Choice cards (multi or single select) ── */
  .choice-card {
    background: white;
    border: 2px solid #d4cfc4;
    border-radius: 6px;
    padding: 1.25rem;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
    position: relative;
  }
  .choice-card:hover { border-color: var(--rust-light); background: #faf8f5; }
  .choice-card.selected {
    border-color: var(--rust);
    background: rgba(192,68,14,0.06);
  }
  .choice-card.selected .check {
    opacity: 1;
    background: var(--rust);
  }
  .choice-card.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
  }
  .choice-icon { font-size: 1.4rem; flex-shrink: 0; }
  .choice-text { flex: 1; }
  .choice-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.1rem;
  }
  .choice-sub {
    font-size: 0.85rem;
    color: var(--warm-gray);
  }
  .check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--teal);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
  }
  .check svg { width: 11px; height: 11px; fill: white; }
  .genre-disclaimer {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--warm-gray);
    line-height: 1.55;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(212,207,196,0.25);
  }
  .genre-disclaimer a {
    color: var(--warm-gray);
    text-decoration: underline;
  }
  .genre-disclaimer a:hover { color: var(--rust); }

  .soon-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--tag-bg);
    color: var(--warm-gray);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    flex-shrink: 0;
  }

  /* ── Pills ── */
  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
  }
  .pill {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    border: 1.5px solid #c8c2b4;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
    color: var(--mid);
    user-select: none;
  }
  .pill:hover { border-color: var(--rust-light); color: var(--rust); }
  .pill.selected {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
  }

  /* ── CTAs ── */
  .cta-row {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .btn-primary {
    background: var(--rust);
    color: white;
    border: none;
    padding: 0 1.5rem;
    height: 56px;
    min-height: 56px;
    width: 100%;
    border-radius: 5px;
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-primary:hover { background: var(--rust-light); }
  .btn-primary:disabled { background: #c8c2b4; cursor: not-allowed; }
  .btn-ghost {
    background: none;
    color: var(--warm-gray);
    border: none;
    padding: 0.5rem;
    min-height: 44px;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
  }

  /* ═══════════════════════════════════════
     SCREEN 3 — Explore cards
     ═══════════════════════════════════════ */
  /* ── Welcome screen ── */
  .welcome-hero {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
    flex-shrink: 0;
  }
  .welcome-tagline {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-gray);
    letter-spacing: 0.01em;
  }
  .welcome-body {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    max-width: 560px !important;
    gap: 12px !important;
  }
  .explore-card {
    background: white;
    border: none;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  }
  .explore-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  }
  .explore-card:active { transform: scale(0.97); }
  .explore-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
  }
  .explore-body { width: 100%; }
  .explore-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
    line-height: 1.2;
  }
  .explore-desc {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    color: #6b6560;
    line-height: 1.45;
  }
  .explore-arrow { display: none; }

  /* ── Floating "Help me choose" CTA ── */
  #help-choose-btn {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--rust);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.72rem 1.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(192,68,14,0.4);
    z-index: 110;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
    opacity: 0;
    pointer-events: none;
  }
  #help-choose-btn.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #help-choose-btn:hover { background: var(--rust-light); }

  /* ── Start-over link in s6 nav ── */
  .nav-start-over {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    color: var(--warm-gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .nav-start-over:hover { color: var(--paper); }

  /* ═══════════════════════════════════════
     SCREEN 4 — "I Know What I Want" artist picker
     ═══════════════════════════════════════ */

  /* Selected artists bar */
  .s4-selected-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--line);
    min-height: 2.6rem;
    align-items: center;
    flex-shrink: 0;
  }
  .s4-no-selected {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .s4-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--rust);
    color: var(--paper);
    border-radius: 20px;
    padding: 0.22rem 0.65rem;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
  }
  .s4-pill-remove {
    cursor: pointer;
    opacity: 0.8;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0 0.05rem;
  }
  .s4-pill-remove:hover { opacity: 1; }

  /* Category + genre bubbles */
  .s4-bubble-rows {
    padding: 0.4rem 0.75rem 0.3rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    overflow: hidden;
  }
  .s4-bubble-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .s4-bubble-row::-webkit-scrollbar { display: none; }
  @media (min-width: 800px) {
    .s4-bubble-row { flex-wrap: wrap; overflow-x: visible; }
  }
  .s4-cat-bubble, .s4-genre-bubble {
    padding: 0.28rem 0.8rem;
    border-radius: 20px;
    border: 1.5px solid var(--teal);
    background: transparent;
    color: var(--teal);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
  }
  .s4-cat-bubble.active, .s4-genre-bubble.active {
    background: var(--teal);
    color: var(--paper);
  }
  .s4-cat-bubble:hover:not(.active),
  .s4-genre-bubble:hover:not(.active) { background: rgba(74,158,142,0.1); }
  .s4-genre-row { display: none; }
  .s4-genre-row.visible { display: flex; margin-top: 0.15rem; }

  /* Search input */
  .s4-search-wrap {
    padding: 0.55rem 1rem 0.35rem;
    flex-shrink: 0;
  }
  .s4-search {
    width: 100%;
    background: white;
    border: 1.5px solid #d4cfc4;
    border-radius: 5px;
    padding: 0.5rem 0.9rem;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
  }
  .s4-search:focus { border-color: var(--teal); }
  .s4-search::placeholder { color: var(--warm-gray); font-style: italic; }

  /* Artist pill grid */
  .s4-artist-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
  }
  .s4-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.55rem;
  }
  .s4-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .s4-pill {
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--rust);
    background: var(--paper);
    color: var(--ink);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    user-select: none;
    line-height: 1.4;
  }
  .s4-pill:hover { background: rgba(192,68,14,0.08); }
  .s4-pill.picked { background: var(--rust); color: var(--paper); border-color: var(--rust); }
  .s4-loading-msg { color: var(--mid); font-size: 0.85rem; padding: 1rem 0; }
  .s4-suggest-btn {
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid var(--teal);
    background: var(--paper);
    color: var(--teal);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    user-select: none;
  }
  .s4-suggest-btn:hover { background: var(--teal); color: white; }


  /* ═══════════════════════════════════════
     SCREEN 6 — Shows feed
     ═══════════════════════════════════════ */
  #s6 { background: var(--paper); }

  /* Feed outer scroll container — flex column of day sections */
  .feed-scroll {
    flex: 1;
    padding: 1rem 1.25rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* One section per day */
  .day-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  /* "Show all upcoming dates" CTA at the bottom of a date-capped feed */
  .load-all-dates-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    justify-content: center;
  }
  .load-all-dates-cta span { font-size: 0.8rem; color: var(--mid); }
  .load-all-dates-btn {
    font-size: 0.8rem;
    color: var(--accent);
    background: none;
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
  }
  .load-all-dates-btn:hover { background: var(--accent); color: white; }

  /* Responsive card grid within each day */
  .day-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  @media (min-width: 769px) {
    .day-cards { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  }
  @media (min-width: 1200px) {
    .day-cards { grid-template-columns: repeat(4, 1fr); }
  }

  /* loading / error state */
  .feed-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
  }
  .spinner {
    width: 32px; height: 32px;
    border: 3px solid #d4cfc4;
    border-top-color: var(--rust);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .feed-state p {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--warm-gray);
  }

  /* empty-state — no shows returned */
  .feed-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 2rem;
    text-align: center;
  }
  .feed-empty-msg {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--mid);
    line-height: 1.45;
    max-width: 360px;
  }
  .feed-empty-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gray);
    line-height: 1.6;
    max-width: 320px;
  }
  .feed-empty-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--paper);
    background: var(--teal);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background 0.15s;
  }
  .feed-empty-btn:hover { background: var(--teal-light); }

  /*
   * ── Show card structure (unified across music, theater, comedy) ────
   * <div class="show-card [recommended] [rec-show-card]">
   *   <div class="card-top">
   *     <div class="card-header-row">
   *       <span class="card-venue">Venue Name</span>          ← teal, Space Mono 0.72rem
   *       [<span class="card-status-badge …">…</span>]        ← theater: Previews/Closing
   *       <span class="card-date">Sat Apr 12</span>           ← warm-gray, Space Mono 0.62rem
   *     </div>
   *     <div class="card-title">Billing Name</div>            ← DM Serif Display
   *     [<div class="card-artist-desc">…</div>]               ← AI desc, italic 0.65rem
   *     [<span class="card-time">8:00 pm</span>]              ← Space Mono 0.65rem warm-gray
   *     [<div style="…">.card-show-type + revival tag</div>]  ← theater only
   *     [<span class="card-genres">genre · genre</span>]      ← music only
   *     [<div class="rec-reason">AI reason…</div>]            ← AI picks only
   *   </div>
   *   [<div class="card-musicians"><span class="musician-chip">…</span></div>]
   *   [<div class="card-comedians"><span class="comedian-chip">…</span></div>]  ← comedy pills
   *   [<div class="comedy-desc">✨ ensemble description…</div>]               ← comedy AI desc
   *   <div class="card-bottom">
   *     [<span class="rec-badge">Pick</span>]
   *     [<span class="rec-badge-ai">✨ For you</span>]
   *     [<span class="card-tag hood">Neighborhood</span>]
   *     [<span class="card-price">$25</span>]
   *     [<span class="card-run-time">145 min</span>]          ← theater only
   *     [<a class="card-ticket-btn" href="…" target="_blank">Buy Tickets</a>]
   *   </div>
   * </div>
   *
   * Ticket URL logic (getTicketUrl helper):
   *   source_type='ticketmaster' → ticketing_url
   *   source_type='playbill'|'scraped' → source_url ?? ticketing_url
   *   otherwise → ticketing_url ?? source_url
   * ─────────────────────────────────────────────────────────────── */
  .show-card {
    background: white;
    border: 2px solid var(--ink);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
  }
  .show-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
  .show-card.recommended { border-color: var(--gold); background: #fffdf5; }

  /* Card inner regions */
  .card-top {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
  }
  .card-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
  }
  /* Full-bleed colored header band — direct child of show-card */
  .card-header-top {
    background: var(--rust);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .show-card.cat-theater .card-header-top { background: var(--teal); }
  .show-card.cat-comedy  .card-header-top { background: var(--gold); }
  .show-card.cat-dance   .card-header-top { background: #9b6fa8; }
  .show-card.cat-sports  .card-header-top { background: #3a6ea8; }
  .show-card.cat-misc    .card-header-top { background: #888; }
  .card-header-top .card-cat-row {
    margin-bottom: 0;
  }
  .card-date-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 1px;
  }
  .card-venue {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--teal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  button.card-venue-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }
  button.card-venue-btn:hover { color: var(--rust); }
  .card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-date {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .show-card.cat-comedy .card-date { color: var(--ink); }
  .card-time {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8125rem;
    color: var(--rust);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .card-artist-desc {
    font-family: 'Instrument Sans', sans-serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #3d3830;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.1rem;
  }
  .card-musicians {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .musician-chip {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--newsprint);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    cursor: default;
  }
  button.musician-chip { cursor: pointer; }
  button.musician-chip:hover { background: #d8d4c8; }

  /* Anchors artist chips + card-bottom to the bottom of the card */
  .card-footer {
    margin-top: auto;
  }
  .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--newsprint);
  }
  .card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    flex-shrink: 1;
  }
  .card-meta .card-tag { padding-left: 0; }
  .card-price {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mid);
  }
  .card-tag {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8125rem;
    background: var(--tag-bg);
    color: var(--mid);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
  }
  .card-tag.hood { font-weight: 600; color: var(--teal); background: transparent; }
  .rec-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gold);
    color: white;
    padding: 0.12rem 0.4rem;
    border-radius: 2px;
    flex-shrink: 0;
  }

  /* date group header — full-width label above each day's grid */
  .date-group-header {
    font-family: 'Righteous', 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--rust);
  }
  /* "(Today)" / "(Tomorrow)" qualifier inside day header */
  .date-qualifier {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.35rem;
  }

  /* Category + genre badge row — top-left of card, above venue name */
  .card-cat-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .card-venue-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
  }

  .card-cat-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    background: none;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
  }
  .show-card.cat-comedy .card-cat-badge { color: var(--ink); }
  .card-genre-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--warm-gray);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Genre tags line on show cards */
  .card-genres {
    font-family: 'Libre Franklin', sans-serif;
    font-style: italic;
    font-size: 0.8rem;
    color: #777;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── Back button ── */
  .back-btn {
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    color: var(--warm-gray);
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.75rem;
    display: block;
    text-align: left;
  }
  .back-btn:hover { color: var(--paper); }

  /* ── Card ticket button (shared by music, theater, comedy cards) ── */
  .card-ticket-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    background: var(--ink);
    border-radius: 4px;
    padding: 0.45rem 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
  }
  .card-ticket-btn:hover { background: var(--rust); color: white; }

  /* ── Affiliate badge + ticket button wrapper ── */
  .tix-wrap { display: inline-flex; align-items: center; flex-shrink: 0; }
  .affiliate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #2e9e4f;
    background: none;
    border: none;
    padding: 0 0.15rem 0 0;
    margin-right: 0.1rem;
    line-height: 1;
    vertical-align: middle;
  }

  /* ── Sage icons on card header ── */
  .sage-icons {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.7;
    letter-spacing: -0.05em;
    cursor: default;
  }

  /* ── Info modal (Manifesto / Sages / Welcome) ── */
  #info-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  #info-modal-overlay.open {
    display: flex;
  }
  #info-modal {
    background: var(--paper, #f8f5ef);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  }
  .info-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--warm-gray, #888);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    transition: background 0.1s;
  }
  .info-modal-close:hover { background: rgba(0,0,0,0.07); }
  #info-modal-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 2rem 1rem 0;
    color: var(--ink, #1a1a1a);
  }
  #info-modal-body {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink, #1a1a1a);
  }
  #info-modal-body p { margin: 0 0 0.85rem; }
  #info-modal-body p:last-child { margin-bottom: 0; }
  .info-sage-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .info-sage-section:last-of-type { border-bottom: none; }
  .info-sage-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }

  /* ── City autocomplete dropdown ── */
  .city-wrap { position: relative; }
  .city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: white;
    border: 2px solid var(--teal);
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .city-dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    color: var(--ink);
    cursor: pointer;
    border-bottom: 1px solid #f0ece4;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .city-dropdown-item:last-child { border-bottom: none; }
  .city-dropdown-item:hover { background: var(--cream); }
  .city-dropdown-name { font-weight: 500; }
  .city-dropdown-metro {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gray);
  }
  .sheet-city-metro {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gray);
    margin-top: 1px;
  }

  /* ── Recommendation textarea (screen 3b) ── */
  .taste-textarea {
    width: 100%;
    background: white;
    border: 2px solid #d4cfc4;
    border-radius: 5px;
    padding: 0.9rem 1rem;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    resize: none;
    line-height: 1.55;
    min-height: 160px;
  }
  .taste-textarea:focus { border-color: var(--teal); }
  .taste-textarea::placeholder { color: var(--warm-gray); }
  .char-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: var(--warm-gray);
    text-align: right;
    margin-top: 0.3rem;
  }
  .taste-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: var(--warm-gray);
    letter-spacing: 0.03em;
    margin-top: 0.35rem;
  }

  /* ── s3b layout: textarea fills space, button pinned at bottom ── */
  .s3b-body {
    /* inherits flex:1, flex-direction:column from .s-body */
  }
  .s3b-body .textarea-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .s3b-body .taste-textarea {
    flex: 1;
    min-height: 80px;
    max-height: 120px;
  }
  @media (min-width: 600px) {
    .s3b-body .taste-textarea {
      max-height: none;
    }
  }
  #s3b .btn-primary {
    width: 100%;
    color: var(--cream);
  }

  /* ── AI recommended show cards ── */
  .rec-show-card {
    border-left: 3px solid var(--gold) !important;
    background: #fffdf5 !important;
  }
  .rec-reason {
    font-family: 'Space Mono', monospace;
    font-style: italic;
    font-size: 0.75rem;
    color: var(--warm-gray);
    line-height: 1.55;
    margin-top: 0.5rem;
  }
  .rec-badge-ai {
    margin-left: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--gold);
    color: white;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    flex-shrink: 0;
  }
  /* ── Feed context header ── */
  .feed-context-header {
    padding: 0.65rem 1.1rem 0.4rem;
    flex-shrink: 0;
  }
  .feed-context-label {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.2;
  }
  @media (max-width: 480px) {
    .feed-context-label { font-size: 0.95rem; }
  }
  .feed-context-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    color: var(--warm-gray);
    margin-top: 0.15rem;
  }

  /* ── Theater card extras ── */
  .card-status-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .card-status-badge.previews   { background: rgba(180,130,0,0.12); color: #8a6200; }
  .card-status-badge.closing    { background: rgba(178,34,34,0.1);  color: #a01010; }
  .card-show-type {
    font-family: 'Space Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    background: rgba(26,107,107,0.08);
    color: var(--teal);
    border: 1px solid rgba(26,107,107,0.18);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    align-self: flex-start;
  }
  .card-run-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.03em;
    color: var(--warm-gray);
  }

  /* ── Comedy card extras ── */
  .card-comedians {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0 1.1rem 0.65rem;
  }
  .comedian-chip {
    font-size: 0.68rem;
    color: var(--rust);
    background: rgba(178,60,20,0.07);
    border: 1px solid rgba(178,60,20,0.18);
    border-radius: 100px;
    padding: 0.15rem 0.55rem;
    font-family: inherit;
    cursor: default;
  }
  button.comedian-chip { cursor: pointer; }
  button.comedian-chip:hover { background: rgba(178,60,20,0.15); border-color: var(--rust); }
  .comedy-desc {
    font-style: italic;
    font-size: 0.7rem;
    color: var(--warm-gray);
    line-height: 1.5;
    padding: 0 1.1rem 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Filter bar — 3-row hierarchy ── */
  #feed-filter-bar {
    flex-shrink: 0;
    border-bottom: 3px solid var(--rust);
    background: var(--ink);
    display: flex;
    flex-direction: column;
  }
  .filter-row {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .filter-row:first-child { border-top: none; padding: 0; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row-genres, .filter-row-subs {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
    overflow: hidden;
    transition: max-height 0.22s ease, padding 0.18s ease, border-color 0.18s ease;
  }
  .filter-row-genres.visible, .filter-row-subs.visible {
    max-height: 60px;
    padding: 0.35rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .fb-bubble {
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.03em;
    border-radius: 100px;
    border: none;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.0)  50%,
      rgba(0,0,0,0.0)        50%,
      rgba(0,0,0,0.04)       100%
    ), #f0ece3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 1.5px #ccc8be;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.12s ease;
    user-select: none;
    flex-shrink: 0;
  }
  .fb-bubble:hover:not(.active):not(.fb-done):not(.fb-reset) {
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 0 0 1.5px #a8a09a;
  }
  .fb-bubble:active { transform: translateY(1px); filter: brightness(0.96); }
  /* Category pills on the dark bar — flat, rectangular, no pill shape */
  .fb-cat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 0.75rem;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-right: 1px solid rgba(255,255,255,0.2);
    color: var(--newsprint);
  }
  .fb-cat:last-child { border-right: none; }
  .fb-cat:hover:not(.active):not(.fb-done):not(.fb-reset) {
    background: var(--rust);
    box-shadow: none;
  }
  .fb-genre { font-size: 0.7rem;  padding: 0.25rem 0.75rem; height: 27px; color: var(--mid); border-radius: 4px; }
  .fb-sub   { font-size: 0.66rem; padding: 0.2rem 0.65rem;  height: 25px; color: var(--mid); border-radius: 4px; }
  .fb-group-divider { display: inline-flex; align-items: center; color: var(--mid); opacity: 0.4; font-size: 0.8rem; padding: 0 0.15rem; pointer-events: none; user-select: none; }

  /* ── Active pill states ── */
  .fb-bubble.active { color: white; border: none; }
  .fb-bubble.active.fb-genres-selected {
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55), 0 1px 3px rgba(0,0,0,0.2);
    filter: brightness(0.88);
  }

  /* All — dark fill (non-cat bubbles keep gradient) */
  .fb-bubble.active.fb-all {
    background: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.12) 100%), #1a1a18;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 1.5px #111;
    color: #f4f0e8; border: none;
  }
  /* Music */
  .fb-bubble.active.fb-music {
    background: linear-gradient(to bottom, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #c0440e;
    box-shadow: 0 1px 3px rgba(192,68,14,0.35), 0 0 0 1.5px #a03408;
    color: white; border: none;
  }
  /* Theater */
  .fb-bubble.active.fb-theater {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #7b5ea7;
    box-shadow: 0 1px 3px rgba(123,94,167,0.35), 0 0 0 1.5px #6347a0;
    color: white; border: none;
  }
  /* Comedy */
  .fb-bubble.active.fb-comedy {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #4a9e8e;
    box-shadow: 0 1px 3px rgba(74,158,142,0.35), 0 0 0 1.5px #3a8070;
    color: white; border: none;
  }
  .fb-bubble.active.fb-readings {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #c9a84c;
    box-shadow: 0 1px 3px rgba(201,168,76,0.35), 0 0 0 1.5px #a88930;
    color: white; border: none;
  }
  .fb-bubble.active.fb-sports {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #2d6a4f;
    box-shadow: 0 1px 3px rgba(45,106,79,0.35), 0 0 0 1.5px #1e4f38;
    color: white; border: none;
  }
  /* Misc — slate */
  .fb-bubble.active.fb-misc {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #64748b;
    box-shadow: 0 1px 3px rgba(100,116,139,0.35), 0 0 0 1.5px #475569;
    color: white; border: none;
  }
  /* Genre/sub bubbles — translucent tint, category-colored text */
  .fb-bubble.active.genre-music {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.0) 55%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.02) 100%), rgba(192,68,14,0.10);
    box-shadow: 0 1px 2px rgba(192,68,14,0.15), 0 0 0 1px rgba(192,68,14,0.35);
    color: #c0440e; border: none;
  }
  .fb-bubble.active.genre-theater {
    background: rgba(123,94,167,0.85);
    box-shadow: 0 1px 2px rgba(123,94,167,0.15), 0 0 0 1px rgba(123,94,167,0.35);
    color: white; border: none;
  }
  .fb-bubble.active.genre-comedy {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.0) 55%, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.02) 100%), rgba(26,107,107,0.10);
    box-shadow: 0 1px 2px rgba(26,107,107,0.15), 0 0 0 1px rgba(26,107,107,0.35);
    color: var(--teal); border: none;
  }
  /* Disabled pills (future categories — remove disabled flag to go live) */
  .fb-bubble.fb-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
  }
  /* Future category active states — stubbed now so launch = zero CSS work */
  .fb-bubble.active.fb-museums {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #c9a84c;
    box-shadow: 0 1px 3px rgba(201,168,76,0.35), 0 0 0 1.5px #a8893a;
    color: white; border: none;
  }
  .fb-bubble.active.fb-restaurants {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.08) 100%), #5a8a5a;
    box-shadow: 0 1px 3px rgba(90,138,90,0.35), 0 0 0 1.5px #3d6b3d;
    color: white; border: none;
  }
  /* ── Vibe / Sage filter — match flat category pill style ── */
  .fb-vibe {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 0.75rem;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    color: var(--newsprint);
  }
  .fb-bubble.active.fb-vibe {
    background: var(--rust) !important;
    color: white !important;
    box-shadow: none !important;
    border: none !important;
  }
  .filter-row-vibe {
    gap: 0.4rem;
    padding-top: 0.1rem;
  }
  .fb-sage {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    height: 28px;
    background: rgba(120,80,200,0.06);
    border-color: rgba(120,80,200,0.2);
    color: #6040b0;
  }
  .fb-sage.previewing {
    background: rgba(120,80,200,0.13);
    border-color: rgba(120,80,200,0.4);
    color: #5030a0;
  }
  .fb-bubble.active.fb-sage {
    background: var(--teal);
    box-shadow: 0 1px 3px rgba(26,107,107,0.3), 0 0 0 1.5px #145555;
    color: white; border: none;
  }
  /* fb-cat active: flat category colors — (0,3,0) wins over all fb-bubble.active.fb-* above */
  .fb-bubble.fb-cat.active            { background: var(--ink)  !important; color: var(--newsprint) !important; box-shadow: none !important; border-right: 1px solid rgba(255,255,255,0.2) !important; }
  .fb-bubble.fb-cat.active.fb-music   { background: var(--rust) !important; color: white !important; }
  .fb-bubble.fb-cat.active.fb-theater { background: var(--teal) !important; color: white !important; }
  .fb-bubble.fb-cat.active.fb-comedy  { background: var(--gold) !important; color: var(--ink) !important; }
  .fb-bubble.fb-cat.active.fb-dance   { background: #9b6fa8    !important; color: white !important; }
  .fb-bubble.fb-cat.active.fb-sports  { background: #3a6ea8    !important; color: white !important; }
  .fb-bubble.fb-cat.active.fb-misc    { background: #888       !important; color: white !important; }
  .vibe-sage-blurb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(120,80,200,0.06);
    border-radius: 8px;
    margin: 0 0.25rem;
    flex-wrap: wrap;
  }
  .vibe-sage-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #6040b0;
    font-style: italic;
    flex: 1;
    min-width: 0;
  }
  .fb-vibe-apply {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    background: #7850c8;
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.12s;
  }
  .fb-vibe-apply:hover { background: #6040b0; }
  .fb-vibe-apply:disabled { background: #999; cursor: default; opacity: 0.6; }
  .vibe-sage-blurb--custom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .vibe-custom-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .vibe-custom-input {
    flex: 1;
    min-width: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: var(--near-black);
    outline: none;
  }
  .vibe-custom-input:focus { border-color: #7c5cbf; }
  .fb-vibe-close {
    font-size: 0.75rem;
    color: var(--warm-gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.2rem;
    flex-shrink: 0;
    line-height: 1;
  }

  .fb-clear-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.63rem;
    color: var(--warm-gray);
    background: none;
    border: none;
    padding: 0 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
    align-self: center;
  }
  .fb-clear-link:hover { color: var(--rust); }
  .genre-disclaimer {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gray);
    padding: 0.25rem 1rem 0.1rem;
    line-height: 1.4;
  }
  @media (min-width: 800px) {
    .filter-row-genres.visible, .filter-row-subs.visible { max-height: 160px; }
  }

  /* ── AI reason expand/collapse ── */
  .rec-reason {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: var(--rust);
    font-style: italic;
    line-height: 1.55;
    margin-top: 0.35rem;
  }
  .reason-more {
    color: var(--rust);
    text-decoration: underline;
    cursor: pointer;
    font-style: normal;
    white-space: nowrap;
  }
  .rec-reason-full {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: var(--rust);
    font-style: italic;
    line-height: 1.55;
    margin-top: 0.35rem;
  }

  /* ── Rec section footer ── */
  .rec-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.1rem;
    border-top: 1px solid #ece8de;
  }
  .rec-footer-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    border: 1.5px solid #b8b2a8;
    border-radius: 100px;
    background: transparent;
    color: var(--mid);
    padding: 0.28rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .rec-footer-btn:hover { border-color: var(--rust); color: var(--rust); background: rgba(192,68,14,0.05); }
  .rec-footer-btn.primary { background: var(--rust); border-color: var(--rust); color: white; }
  .rec-footer-btn.primary:hover { opacity: 0.88; }

  /* ── Detail modal ── */
  #detail-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 400;
    align-items: flex-end;
    justify-content: center;
  }
  #detail-modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
  #detail-modal {
    background: var(--paper);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.5rem 1.4rem 2rem;
    transform: translateY(0);
    animation: slideUp 0.28s cubic-bezier(0.34,1.4,0.64,1);
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .modal-handle {
    width: 40px; height: 4px; border-radius: 2px;
    background: #c8c2b4;
    margin: 0 auto 1.2rem;
  }
  .modal-close {
    float: right; background: none; border: none;
    font-size: 1.2rem; color: var(--warm-gray);
    cursor: pointer; line-height: 1; padding: 0 0 0.5rem 0.5rem;
  }
  .modal-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem; color: var(--ink);
    line-height: 1.2; margin-bottom: 0.5rem; clear: right;
  }
  .modal-genre-tags {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem; color: var(--warm-gray);
    letter-spacing: 0.04em; margin-bottom: 0.75rem;
  }
  .modal-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem; font-style: italic;
    color: #5a5a52; line-height: 1.6; margin-bottom: 0.35rem;
  }
  .modal-bio-attribution {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem; color: var(--warm-gray);
    margin-bottom: 1rem;
  }
  .modal-bio-attribution a {
    color: var(--warm-gray); text-decoration: underline;
  }
  .modal-shows-label {
    font-family: 'Righteous', serif; font-size: 0.85rem;
    color: var(--rust); letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 0.5rem;
    border-top: 1px solid #ece8de; padding-top: 0.75rem;
  }
  .modal-show-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0; border-bottom: 1px solid #f0ece0;
    font-family: 'Instrument Sans', sans-serif; font-size: 0.82rem;
  }
  .modal-show-date { color: var(--warm-gray); font-size: 0.72rem; flex-shrink: 0; min-width: 5rem; }
  .modal-show-venue { color: var(--teal); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal-venue-link {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--teal); font-size: 0.82rem; font-family: 'Instrument Sans', sans-serif;
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-align: left; text-decoration: underline dotted;
  }
  .modal-venue-link:hover { color: var(--rust); }
  .modal-show-geo { color: var(--warm-gray); font-size: 0.7rem; flex-shrink: 0; }
  .modal-show-tix {
    font-family: 'Space Mono', monospace; font-size: 0.6rem;
    color: white; background: var(--rust); border-radius: 100px;
    padding: 0.22rem 0.65rem; white-space: nowrap; flex-shrink: 0;
    text-decoration: none;
  }
  .modal-performers {
    display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem;
  }
  .modal-artist-chip {
    background: none; border: 1px solid #d0cab8; border-radius: 100px;
    padding: 0.2rem 0.65rem; cursor: pointer;
    font-family: 'Instrument Sans', sans-serif; font-size: 0.72rem; color: var(--mid);
    text-decoration: none;
  }
  .modal-artist-chip:hover { border-color: var(--teal); color: var(--teal); }
  .modal-placeholder {
    font-family: 'Space Mono', monospace; font-size: 0.65rem;
    color: var(--warm-gray); font-style: italic; margin-top: 0.5rem;
  }

  /* ── Suggestion pills (s3b) ── */
  .taste-suggestions {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
    padding: 0 0 0.5rem;
  }
  .taste-pill {
    font-family: 'Space Mono', monospace; font-size: 0.65rem;
    letter-spacing: 0.03em;
    border: 1.5px solid #b8b2a8; border-radius: 100px;
    background: transparent; color: var(--mid);
    padding: 0.3rem 0.8rem; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
  }
  .taste-pill:hover { border-color: var(--rust); color: var(--rust); background: rgba(192,68,14,0.05); }

  .feed-banner {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: var(--mid);
    background: var(--cream);
    border: 1px solid #d4cfc4;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    line-height: 1.55;
    flex-shrink: 0;
  }

  /* ── Toast ── */
  .toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--deep);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.1rem;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    transition: transform 0.25s ease;
    white-space: nowrap;
    z-index: 200;
    pointer-events: none;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* ═══════════════════════════════════════
     MOBILE — 768px and below
     ═══════════════════════════════════════ */
  @media (max-width: 768px) {

    /* ── Nav ── */
    .screen-nav { min-height: 56px; padding: 0.3rem 0.75rem; }

    /* Pills: font-size:0 hides the "Where:" / "When:" text nodes;
       spans restore size so only the value text is visible           */
    .nav-pill {
      font-size: 0;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 100px;
      min-height: 44px;
      padding: 0 0.85rem;
      touch-action: manipulation;
      display: inline-flex;
      align-items: center;
    }
    .nav-pill:active { background: rgba(255,255,255,0.2); color: var(--paper); }
    .pill-city-text,
    .pill-when-text {
      font-family: 'Instrument Sans', sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      color: rgba(244,240,232,0.9);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: inline-block;
    }
    .pill-city-text { max-width: 120px; }

    /* ── Filter bar: compact flat bar on mobile ── */
    .fb-cat   { font-size: 0.875rem; height: auto; padding: 0.75rem 0.6rem; }
    .fb-genre { font-size: 12px; height: 32px; padding: 0 0.75rem; color: var(--mid); border-radius: 4px; }
    .fb-sub   { font-size: 12px; height: 32px; padding: 0 0.65rem; color: var(--mid); border-radius: 4px; }
    .fb-bubble { touch-action: manipulation; }
    .genre-disclaimer {
      font-size: 11px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      padding-bottom: 0.35rem;
    }

    /* ── Card feed spacing: strictly 1 col on mobile ── */
    /* Actual container class is .day-cards (inside #feed-cards > .day-section > .day-cards) */
    .day-cards,
    #feed-cards .day-cards { grid-template-columns: 1fr !important; gap: 8px; }
    .feed-scroll { padding: 0.75rem 0.75rem 1rem; gap: 1rem; }

    /* ── Card text truncation ── */
    .card-title {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-tag {
      max-width: 160px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .musician-chip, .comedian-chip {
      max-width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      display: inline-block;
    }

    /* ── Buy Tickets: compact on mobile ── */
    .card-ticket-btn {
      font-size: 0.8rem;
      padding: 0.4rem 0.7rem;
    }

    /* ── Touch action ── */
    .sheet-done-btn,
    .sheet-when-option,
    .sheet-city-row { touch-action: manipulation; }

    /* ── Tablet overrides (iPad, large Android: touch + wide) ── */
    body.is-tablet .day-cards {
      grid-template-columns: repeat(3, 1fr);
    }
    body.is-tablet .filter-row {
      gap: 10px;
    }
    body.is-tablet .fb-bubble {
      font-size: 13px;
      padding: 0.4rem 1.1rem;
    }
  }

  /* ── Genre bottom sheet — slide-up panel ── */
  .genre-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--paper);
    border-radius: 16px 16px 0 0;
    z-index: 300;
    max-height: 75dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
  }
  .genre-sheet.open { transform: translateY(0); }

  .sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .sheet-backdrop.open { opacity: 1; pointer-events: all; }

  .genre-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 8px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--ink);
    flex-shrink: 0;
  }
  .genre-sheet-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--ink);
  }
  .genre-sheet-done {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--teal);
    color: var(--paper);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
  }
  .genre-sheet-done:active { opacity: 0.85; }
  .genre-sheet-count-row {
    padding: 0 20px 6px;
    flex-shrink: 0;
  }
  .genre-sheet-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.73rem;
    color: var(--warm-gray);
  }
  .genre-sheet-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px 20px;
  }
  .g-bubble {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    min-height: 40px;
    border-radius: 100px;
    border: none;
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.0) 50%,
      rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.04) 100%
    ), #f0ece3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 1.5px #ccc8be;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s ease;
  }
  .g-bubble.active {
    background: var(--rust);
    color: white;
    box-shadow: 0 2px 8px rgba(192,68,14,0.35), 0 0 0 2px rgba(192,68,14,0.25);
  }
  .g-bubble:active { transform: scale(0.95); }
  .genre-sheet-footer {
    border-top: 1px solid #e8e4dc;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    flex-shrink: 0;
  }
  .genre-philosophy {
    font-size: 0.74rem;
    color: var(--warm-gray);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    text-align: center;
  }

  /* ── Advanced Location: bubbles, anywhere helper, privacy note ── */

  /* Anywhere pill: grayed-out style */
  .nav-pill.nav-pill-anywhere { color: var(--warm-gray); }

  /* Anywhere helper text below filter bar — single-line scrollable on mobile */
  #anywhere-helper {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: var(--warm-gray);
    padding: 0.3rem 1rem 0.1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    text-align: left;
  }
  #anywhere-helper::-webkit-scrollbar { display: none; }

  /* Desktop where-box inline location display (replaces placeholder) */
  .loc-display-wrap {
    display: none;            /* hidden by default; .has-location reveals it */
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 260px;
    overflow: hidden;
    /* Match input box appearance */
    background: rgba(255,255,255,0.11);
    border: 1.5px solid rgba(244,240,232,0.25);
    border-radius: 4px;
    padding: 0.35rem 0.7rem;
    min-width: 180px;
  }
  /* CSS class applied by renderLocBubbles when locations are set */
  .loc-field.has-location .loc-display-wrap {
    display: inline-flex;
  }
  .loc-field.has-location .loc-inline-input {
    display: none;
  }
  .loc-display-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(244,240,232,0.95);  /* matches input text color — was var(--ink), invisible on dark nav */
    white-space: nowrap;
  }
  .loc-display-x {
    background: none;
    border: none;
    color: rgba(184,178,164,0.7);   /* matches placeholder color */
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 1px;
    line-height: 1;
  }
  .loc-display-x:hover { color: rgba(244,240,232,0.95); }
  .loc-display-sep {
    color: rgba(184,178,164,0.7);
    font-size: 0.78rem;
    margin: 0 1px;
  }

  /* Desktop How Far box */
  .howfar-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--ink);
    background: #faf9f6;
    border: 1.5px solid #d4cfc6;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: border-color 0.15s;
  }
  .howfar-field:hover { border-color: var(--teal); }
  .howfar-label { color: var(--warm-gray); font-size: 0.8rem; }
  .howfar-value { font-weight: 600; }
  .howfar-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1.5px solid var(--teal);
    border-radius: 6px;
    overflow: hidden;
    z-index: 200;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .howfar-option {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    padding: 9px 14px;
    border-bottom: 1px solid #ede9e2;
    cursor: pointer;
    transition: background 0.1s;
  }
  .howfar-option:last-child { border-bottom: none; }
  .howfar-option:hover,
  .howfar-option.active { background: rgba(26,107,107,0.08); color: var(--teal); font-weight: 600; }

  /* Desktop city bubbles inside loc-field (legacy, kept for fallback) */
  .loc-bubbles {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }
  .loc-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--teal);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 2px 7px 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .loc-bubble-x {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 1px 0;
  }
  .loc-bubble-x:hover { color: #fff; }

  /* WHERE sheet: selected city bubbles row */
  .sheet-selected-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 8px 0;
  }
  .sheet-city-bubble {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--teal);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 10px 4px 12px;
    border-radius: 999px;
  }
  .sheet-city-bubble-x {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }
  .sheet-city-bubble-x:hover { color: #fff; }

  /* WHERE sheet: privacy note */
  .sheet-privacy-note {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gray);
    margin: 6px 0 4px;
    line-height: 1.5;
  }

  /* How far pill separator: hidden when pill hidden */
  .nav-pill-howfar-sep { display: none; }

  /* city-dropdown selected state */
  .city-dropdown-item.selected { color: var(--teal); font-weight: 600; }

  /* ── Deep Dive filter bar buttons ─────────────────────────────────────────── */
  .fb-deep-dive {
    font-size: 0.72rem; padding: 0.25rem 0.75rem; height: 27px;
    color: var(--mid);
    border: 1.5px dashed #b8b2a8;
    background: transparent;
    box-shadow: none;
    margin-left: 0.25rem;
  }
  .fb-deep-dive:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
  .fb-deep-dive.active { background: var(--teal); color: white; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }

  /* ── Deep Dive search modal ─────────────────────────────────────────────────── */
  #deep-dive-modal {
    display: none; position: fixed; inset: 0; z-index: 1100;
    background: rgba(14,14,12,0.55); align-items: flex-start; justify-content: center;
    padding-top: clamp(60px, 12vh, 120px);
  }
  #deep-dive-modal.open { display: flex; animation: fadeIn 0.18s ease; }
  .dd-panel {
    background: var(--paper); border-radius: 12px;
    width: min(420px, 92vw); max-height: 70vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  }
  .dd-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1rem 0.5rem;
  }
  .dd-title { font-family: 'DM Serif Display', serif; font-size: 1.1rem; }
  .dd-close {
    background: none; border: none; font-size: 1.4rem; color: var(--warm-gray);
    cursor: pointer; line-height: 1; padding: 0;
  }
  .dd-close:hover { color: var(--ink); }
  .dd-input {
    margin: 0 1rem 0.6rem; padding: 0.55rem 0.75rem;
    font-family: 'Space Mono', monospace; font-size: 0.82rem;
    border: 1.5px solid #ccc8be; border-radius: 8px;
    background: var(--cream); color: var(--ink);
    outline: none;
  }
  .dd-input:focus { border-color: var(--teal); }
  .dd-results { overflow-y: auto; flex: 1; }
  .dd-result-row {
    display: flex; flex-direction: column; gap: 0.1rem;
    width: 100%; text-align: left; padding: 0.65rem 1rem;
    background: none; border: none; border-top: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
  }
  .dd-result-row:hover { background: rgba(0,0,0,0.03); }
  .dd-result-name { font-family: 'Space Mono', monospace; font-size: 0.82rem; color: var(--ink); }
  .dd-result-sub { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--warm-gray); }
  .dd-count { color: var(--teal); margin-left: 0.4rem; }
  .dd-count-tracked { color: var(--warm-gray); margin-left: 0.4rem; font-style: italic; }
  .dd-no-results { padding: 1rem; font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--warm-gray); }

  /* ── Deep Dive context header badge ─────────────────────────────────────────── */
  .deep-dive-clear {
    display: inline-flex; align-items: center;
    margin-left: 0.75rem; padding: 0.2rem 0.7rem;
    background: rgba(0,0,0,0.08); border: none; border-radius: 100px;
    font-size: 0.72rem; font-family: 'Instrument Sans', sans-serif;
    cursor: pointer; color: inherit; vertical-align: middle;
  }
  .deep-dive-clear:hover { background: rgba(0,0,0,0.15); }

  /* ── Nav bar Deep Dive buttons ── */
  .nav-dd-sep { flex-shrink: 0; }
  .nav-dd-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  /* Teal pill — visually distinct from category pills, matches brand */
  .nav-dd-btn {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--newsprint);
    padding: 0.5rem 1rem;
    height: auto;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    user-select: none;
    flex-shrink: 0;
    box-shadow: none;
  }
  .nav-dd-btn:hover { background: var(--rust); border-color: var(--rust); color: white; }
  .nav-dd-btn:active { transform: translateY(1px); }
  .nav-dd-btn.active { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.4); }
  .nav-dd-btn.nav-dd-myscene { background: var(--teal); border-color: var(--teal); color: white; }
  .nav-dd-btn.nav-dd-myscene:hover { background: #3d8a7a; border-color: #3d8a7a; }
  .nav-dd-btn.nav-dd-submit { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .nav-dd-btn.nav-dd-submit:hover { background: #b8962a; border-color: #b8962a; }

  /* v47 */
  /* Mobile pill group: sits between logo and hamburger via margin-left: auto */
  /* Mobile top fill: Where + How Far + Add Listings (between logo and hamburger) */
  .nav-mobile-top-fill {
    display: none;
    flex: 1;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    padding: 0 0.4rem;
    overflow: hidden;
  }
  .nav-mobile-submit {
    font-size: 0.72rem;
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Mobile second row: Venues / Artists / My Scene / My Calendar */
  .nav-mobile-pill-group {
    display: none;
    width: 100%;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0 0.15rem;
    border-top: 1px solid rgba(244,240,232,0.1);
  }
  .nav-mobile-pill-group .nav-dd-btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    flex: 1;
    text-align: center;
  }

  @media (min-width: 769px) {
    /* Title: lighter weight on desktop — 900 is too blocky at full size */
    .card-title { font-weight: 600; font-size: 1.5rem; }
  }

  @media (max-width: 768px) {
    .nav-mobile-top-fill  { display: flex; }
    .nav-mobile-pill-group { display: flex; }
    .nav-dd-controls { display: none !important; }
    .nav-dd-sep      { display: none !important; }
  }

  /* Add Listings — gold pill, desktop nav only */
  .nav-dd-submit {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.0)  50%,
      rgba(0,0,0,0.0)        50%,
      rgba(0,0,0,0.06)       100%
    ), #c9a84c;
    border-color: #c9a84c;
    color: #111;
    box-shadow: 0 1px 3px rgba(201,168,76,0.35);
  }
  .nav-dd-submit:hover {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.22) 0%,
      rgba(255,255,255,0.0)  50%,
      rgba(0,0,0,0.0)        50%,
      rgba(0,0,0,0.06)       100%
    ), #b8903a;
    border-color: #b8903a;
    color: #111;
  }

  /* ── Help Us Improve Listings modal ── */
  #submissions-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  #submissions-overlay.open { display: flex; }
  #submissions-modal {
    background: var(--paper, #f8f5ef);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 540px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  }
  #submissions-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 2rem 1.25rem 0;
    color: var(--ink, #1a1a1a);
  }
  .sub-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
  }
  .sub-tab {
    padding: 0.35rem 0.75rem;
    border: 1.5px solid var(--accent, #4a9e8e);
    border-radius: 20px;
    background: none;
    color: var(--accent, #4a9e8e);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
    white-space: nowrap;
  }
  .sub-tab.active { background: var(--accent, #4a9e8e); color: #fff; }
  .sub-hint {
    font-size: 0.88rem;
    color: var(--warm-gray, #888);
    margin: 0 0 0.85rem;
    line-height: 1.5;
  }
  .sub-row { margin-bottom: 0.85rem; }
  .sub-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #d5cfc6;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--ink, #1a1a1a);
    margin-bottom: 0.5rem;
    font-family: inherit;
    -webkit-appearance: none;
  }
  .sub-input:focus { outline: none; border-color: var(--accent, #4a9e8e); }
  .sub-city-row {
    display: grid;
    grid-template-columns: 1fr 78px;
    gap: 0.5rem;
  }
  .sub-city-row .sub-input { margin-bottom: 0; }
  .sub-add-btn {
    background: none;
    border: none;
    color: var(--accent, #4a9e8e);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-top: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .sub-footer { margin-top: 1.25rem; }
  .sub-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent, #4a9e8e);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
  }
  .sub-submit:hover { background: #3d8a7a; }
  .sub-submit:disabled { opacity: 0.5; cursor: not-allowed; }
  .sub-thanks {
    text-align: center;
    font-size: 1rem;
    color: var(--ink, #1a1a1a);
    padding: 1.75rem 0 0.5rem;
    font-family: 'Space Mono', monospace;
  }
  .sub-honeypot {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
  }
