  :root {
    --black: #111010;
    --white: #F7F4EE;
    --accent: #E8593C;
    --muted: #7a7670;
    --border: rgba(0,0,0,0.09);
    --sidebar-w: 460px; /* widened from 360 so all 7 category chips fit in TWO rows (Wellness ends row 2, not alone on row 3), date pills fit one row, and thumbnails sit naturally (2026-07-18) */
    --header-h: 56px;
    --green: #1D9E75;
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--black);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* ---- HEADER ---- */
  header { display:grid; grid-template-columns:auto 1fr auto; align-items:center; padding:0 20px; height:var(--header-h); border-bottom:1px solid var(--border); background:var(--white); z-index:10; flex-shrink:0; gap:12px; position:relative; }
  .logo { font-family:'DM Serif Display',serif; font-size:22px; letter-spacing:-0.02em; color:var(--black); flex-shrink:0; }
  .logo span { color:var(--accent); font-style:italic; }
  /* Header centre: search + nav cluster, right-aligned as a group so the search
     sits clear of the sidebar edge and the pills ride beside it (2026-07-18) */
  .header-center { display:flex; justify-content:flex-end; align-items:center; gap:10px; }
  .header-right { display:flex; align-items:center; gap:8px; position:relative; }
  .date-pills { display:flex; gap:5px; }
  .date-pill { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:7px 16px; border-radius:999px; border:1px solid rgba(0,0,0,0.35); background:transparent; color:var(--black); cursor:pointer; white-space:nowrap; transition:all 0.15s; }
  .date-pill.active { background:#1D9E75; color:#fff; border-color:#1D9E75; }
  .date-pill:hover:not(.active) { background:rgba(0,0,0,0.05); }
  /* Blog CTA (picks.html) — accent-coloured TEXT in the nav trio; the colour
     alone makes it pop now that the trio is text-with-separators (2026-07-18) */
  .picks-cta { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:4px 0; border:none; background:transparent; color:var(--accent); text-decoration:none; white-space:nowrap; transition:opacity 0.15s; }
  .picks-cta:hover { text-decoration:underline; }
  /* Centre nav — TEXT links separated by thin vertical bars, not bubbles
     (2026-07-18 review: a row of pills read as blocky): Transform my Map |
     Liked Events | Händer's Blog | My account. Separators sit on the RIGHT of
     Transform/Liked and the LEFT of My account, so the logged-out header
     (Blog only) shows no orphan bars. Desktop-only elements → base styles safe. */
  .header-nav-link { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:var(--black); background:transparent; border:none; text-decoration:none; padding:4px 0; white-space:nowrap; transition:color 0.15s; }
  .header-nav-link:hover { color:var(--accent); }
  #headerLikedLink   { border-right:1px solid rgba(0,0,0,0.25); border-radius:0; padding-right:14px; }
  #headerAccountLink { border-left:1px solid rgba(0,0,0,0.25);  border-radius:0; padding-left:14px; }
  #headerTransformBtn { background:transparent; border:none; border-right:1px solid rgba(0,0,0,0.25); border-radius:0; padding:4px 14px 4px 0; }
  #headerTransformBtn.tm-active { border-right-color:rgba(0,0,0,0.25); color:#1D9E75; }

  /* ---- DATE PICKER DROPDOWN ---- */
  .datepicker-dropdown {
    position: absolute;
    top: var(--header-h);
    /* Desktop: anchored left, next to the sidebar date pills (moved there
       2026-07-18). Mobile restores right:20px in the 768px block. */
    left: 20px;
    right: auto;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 14px 16px 10px;
    min-width: 270px;
    display: none;
  }
  .datepicker-dropdown.open { display: block; }
  /* calendar */
  .cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
  .cal-nav-btn { background:none; border:none; cursor:pointer; font-size:18px; color:var(--muted); padding:2px 8px; border-radius:6px; font-family:'DM Sans',sans-serif; line-height:1; transition:background 0.12s,color 0.12s; }
  .cal-nav-btn:hover { background:rgba(0,0,0,0.06); color:var(--black); }
  .cal-month-label { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:var(--black); }
  .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:1px; margin-bottom:6px; }
  .cal-day-header { font-family:'DM Sans',sans-serif; font-size:10px; font-weight:500; color:var(--muted); text-align:center; padding:3px 0 6px; }
  .cal-day { font-family:'DM Sans',sans-serif; font-size:13px; text-align:center; padding:6px 4px; border-radius:6px; cursor:pointer; color:var(--black); transition:background 0.1s; line-height:1.2; }
  .cal-day:hover:not(.cal-day-empty):not(.cal-day-past) { background:rgba(0,0,0,0.06); }
  .cal-day-empty { cursor:default; }
  .cal-day-past { color:rgba(0,0,0,0.22); cursor:default; pointer-events:none; }
  .cal-day-today { font-weight:700; }
  .cal-day-selected { background:var(--green) !important; color:#fff !important; border-radius:6px; }
  .cal-day-range-start { background:var(--green) !important; color:#fff !important; border-radius:6px 0 0 6px; }
  .cal-day-range-end { background:var(--green) !important; color:#fff !important; border-radius:0 6px 6px 0; }
  .cal-day-in-range { background:rgba(29,158,117,0.14); border-radius:0; }
  .cal-hint { font-family:'DM Sans',sans-serif; font-size:11px; color:var(--muted); text-align:center; padding:2px 0 6px; min-height:17px; }
  .datepicker-footer { display:flex; align-items:center; justify-content:space-between; padding-top:8px; border-top:1px solid var(--border); margin-top:4px; }
  .datepicker-toggle-range { background:none; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; font-size:11px; color:var(--muted); padding:0; transition:color 0.15s; }
  .datepicker-toggle-range:hover { color: var(--black); }
  .datepicker-close-btn { background:none; border:none; cursor:pointer; font-size:12px; color:var(--muted); width:22px; height:22px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:background 0.15s,color 0.15s; }
  .datepicker-close-btn:hover { background:rgba(0,0,0,0.06); color:var(--black); }

  /* ---- SORT PILL + custom menu ----
     The trigger keeps the original pill look; the open menu is our own markup
     (native <select> option lists render in OS style — white, blocky, system
     font — and can't be themed), styled on the signout/account-menu dropdown
     pattern so all site dropdowns share one language (DESIGN_LOG 2026-07-19). */
  .sort-dropdown { position:relative; flex-shrink:0; }
  .sort-select { font-family:'DM Sans',sans-serif; font-size:11px; font-weight:500; color:var(--muted); background:transparent; border:1px solid var(--border); border-radius:999px; padding:3px 22px 3px 10px; cursor:pointer; outline:none; -webkit-appearance:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a7670' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 8px center; flex-shrink:0; transition:border-color 0.15s, color 0.15s; }
  .sort-select:hover, .sort-select:focus, .sort-dropdown.open .sort-select { border-color:var(--black); color:var(--black); }
  .sort-menu { position:absolute; top:calc(100% + 6px); right:0; z-index:50; display:none; flex-direction:column; min-width:130px; background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:0 4px 16px rgba(0,0,0,0.12); padding:6px; }
  .sort-dropdown.open .sort-menu { display:flex; }
  .sort-menu-item { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:var(--black); text-align:left; padding:8px 12px; border-radius:8px; border:none; background:transparent; cursor:pointer; white-space:nowrap; transition:background 0.15s; }
  .sort-menu-item:hover { background:rgba(0,0,0,0.05); }
  .sort-menu-item.selected { color:var(--accent); }

  .join-btn { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:7px 16px; background:var(--black); color:var(--white); border:none; border-radius:999px; cursor:pointer; text-decoration:none; white-space:nowrap; transition:opacity 0.15s; flex-shrink:0; }
  .join-btn:hover { opacity:0.8; }
  /* ---- AUTH TOP BAR ---- */
  .topbar-transform-btn { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:7px 16px; background:#fff; color:var(--black); border:1.5px solid var(--black); border-radius:999px; cursor:pointer; white-space:nowrap; transition:opacity 0.15s; flex-shrink:0; }
  .topbar-transform-btn:hover { opacity:0.8; }
  .transform-dot-accent { color: var(--accent); }
  #headerTransformBtn .transform-dot-accent { font-family: 'DM Serif Display', serif; font-style: italic; }
  .topbar-user-icon { width:32px; height:32px; border-radius:50%; border:1px solid var(--border); background:#f0efed; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; transition:background 0.15s; padding:0; }
  .topbar-user-icon:hover { background:#e5e3de; }
  /* ---- SIGN OUT DROPDOWN ---- */
  .signout-dropdown { position:absolute; top:calc(100% + 8px); right:0; background:#fff; border:1px solid var(--border); border-radius:10px; box-shadow:0 4px 16px rgba(0,0,0,0.12); padding:12px 16px; white-space:nowrap; z-index:50; min-width:140px; }
  .signout-dropdown-text { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:var(--black); margin:0 0 10px; }
  .signout-dropdown-actions { display:flex; gap:8px; }
  .signout-yes-btn { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:6px 14px; border-radius:999px; border:none; background:rgba(244,67,54,0.1); color:#c62828; cursor:pointer; transition:background 0.15s; }
  .signout-yes-btn:hover { background:rgba(244,67,54,0.18); }
  .signout-cancel-btn { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:6px 14px; border-radius:999px; border:1px solid var(--border); background:transparent; color:var(--muted); cursor:pointer; transition:background 0.15s; }
  .signout-cancel-btn:hover { background:rgba(0,0,0,0.05); }
  /* ---- ACCOUNT MENU (inside the dropdown) ---- */
  .signout-dropdown:has(.account-menu) { padding:6px; min-width:168px; }
  .account-menu { display:flex; flex-direction:column; }
  .account-menu-item { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:var(--black); text-decoration:none; text-align:left; padding:9px 12px; border-radius:8px; border:none; background:transparent; cursor:pointer; transition:background 0.15s; }
  .account-menu-item:hover { background:rgba(0,0,0,0.05); }
  .account-menu-signout { color:#c62828; border-top:1px solid var(--border); border-radius:0 0 8px 8px; margin-top:2px; padding-top:11px; }
  .account-menu-signout:hover { background:rgba(244,67,54,0.1); }
  .signout-confirm { padding:6px; }

  /* ---- MAIN LAYOUT ---- */
  .main {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  /* ---- SIDEBAR ---- */
  /* scrollbar-gutter:stable reserves the scrollbar's width from first paint, so
     the chips don't re-wrap the moment events load and the bar appears (2026-07-18) */
  .sidebar { width:var(--sidebar-w); flex-shrink:0; overflow-y:auto; scrollbar-gutter:stable; border-right:1px solid var(--border); background:var(--white); scrollbar-width:thin; display:flex; flex-direction:column; }
  .sidebar-cats { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; flex-wrap:wrap; gap:8px; position:sticky; top:0; background:var(--white); z-index:2; }
  /* Date pills — moved from the header into the sidebar (DESIGN_LOG 2026-07-18).
     Sized down to match the category chips. order:1 renders them BELOW the
     JS-appended category chips (chips above, dates below — same-day review). */
  /* Full-bleed separator: negative margins pull the border-top out to the
     sidebar edges (the container has 16px side padding), with breathing room
     so the Wellness chip doesn't crowd the line. */
  .sidebar-cats .date-pills { order:1; width:calc(100% + 32px); flex-wrap:wrap; padding:12px 16px 0; margin:4px -16px 0; border-top:1px solid rgba(0,0,0,0.18); }
  .sidebar-cats .date-pill { font-size:12px; padding:5px 12px; }
  .cat-chip { font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; padding:5px 12px; border-radius:999px; border:1.5px solid #ddd; background:transparent; color:#999; cursor:pointer; transition:all 0.15s; white-space:nowrap; }
  .sidebar-list-header { padding:10px 20px 8px; border-bottom:1px solid var(--border); position:sticky; top:57px; background:var(--white); z-index:1; display:flex; align-items:center; justify-content:space-between; }
  .event-count { font-size:12px; color:var(--muted); font-weight:400; }
  .event-count strong { color:var(--black); font-weight:500; }

  /* ---- EVENT CARD ---- */
  .event-card { display:flex; align-items:flex-start; gap:12px; padding:14px 20px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.1s; }
  .event-card:hover, .event-card.highlighted { background:#f5f2ec; }
  .card-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:4px; }
  .card-content { flex:1; min-width:0; }
  .card-name { font-size:14px; font-weight:500; color:var(--black); line-height:1.3; }
  .card-sub { font-size:12px; color:var(--muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .card-desc { font-size:12px; color:var(--muted); margin-top:3px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }


  /* ---- MAP ---- */
  .map-container {
    flex: 1;
    position: relative;
    height: 100%;
  }
  #map { width: 100%; height: 100%; }
  /* the WebGL tile canvas dims smoothly as the time slider moves */
  #map canvas { transition: filter 0.35s ease; }

  /* Night tint sits over the map (incl. pins) but under the controls */
  .night-tint {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, rgba(20,24,60,0.0), rgba(8,10,30,0.85));
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  /* ---- TIME SLIDER — PARKED (DESIGN_LOG 2026-07-18) ----
     Hidden on desktop; the DOM and JS stay because the mobile header slider
     and mobile "On now" toggle sync through these elements. Real removal
     happens in the mobile pass. */
  .time-slider {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    background: rgba(255,255,255,0.98);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    display: none; /* parked — was flex */
    align-items: center;
    gap: 14px;
    padding: 8px 14px 8px 8px;
    width: min(560px, calc(100% - 96px));
    transition: background 0.35s, color 0.35s;
  }
  .time-slider.is-night {
    background: rgba(22,24,46,0.92);
    color: #f2f0ff;
  }

  .now-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 999px;
    border: none;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.15s;
  }
  .now-btn:hover { opacity: 0.85; }
  .now-btn .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
  }

  .time-track { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  #timeRange {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right,
      #ffd27a 0%, #ffb15c 22%, #ff8a5b 42%,
      #7c5cff 62%, #3a2f8f 82%, #ffd27a 100%);
    cursor: pointer;
    outline: none;
  }
  #timeRange::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
  }
  #timeRange::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3); cursor: pointer;
  }

  .time-readout {
    display: flex; align-items: baseline; gap: 6px;
    font-variant-numeric: tabular-nums;
  }
  #timeLabel { font-size: 15px; font-weight: 500; }
  #timeDay   { font-size: 10px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.05em; }

  .time-filter-toggle {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; cursor: pointer; flex-shrink: 0;
    white-space: nowrap; user-select: none;
  }
  .time-filter-toggle input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }

  /* ---- SEARCH (desktop) — header-centre pill, next to the picks CTA
     (DESIGN_LOG 2026-07-18; moved up from the bottom-of-map spot after
     same-day review). Hidden ≤768px via header-center + the 768 block. ---- */
  .map-search {
    /* Anchored just right of the sidebar edge (2026-07-18): out of the flex
       flow, so the nav trio stays right-aligned while the search starts where
       the map does — never over the sidebar/scrollbar. Width shrinks on
       narrower windows so it can't collide with the nav cluster. */
    position: absolute;
    left: calc(var(--sidebar-w) + 16px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    width: clamp(220px, calc(100vw - var(--sidebar-w) - 600px), 440px);
    color: var(--muted);
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .map-search:focus-within { border-color: var(--black); box-shadow: 0 2px 10px rgba(0,0,0,0.08); color: var(--black); }
  .map-search-icon { flex-shrink: 0; color: var(--black); } /* icon draws with currentColor */
  .map-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--black); }
  /* Styled placeholder overlay — black text, three accent dots (logo echo).
     Hidden once the input has text (.has-text toggled in JS). */
  .map-search-ph { position: absolute; left: 41px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 500; color: var(--black); pointer-events: none; white-space: nowrap; }
  .map-search-ph-dots { color: var(--accent); letter-spacing: 1px; }
  .map-search.has-text .map-search-ph { display: none; }
  .map-search-clear { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,0.08); color: var(--muted); font-size: 10px; cursor: pointer; transition: background 0.15s, color 0.15s; }
  .map-search-clear:hover { background: rgba(0,0,0,0.14); color: var(--black); }

  /* Smaller, softer pins — scale SVG on hover without touching the SDK's translate */
  .maplibregl-marker svg { transition: transform 0.12s; opacity: 0.85; filter: saturate(0.72); }
  .maplibregl-marker:hover svg { transform: scale(1.18); opacity: 1; filter: saturate(1); }

  /* Map popup */
  .maptiler-popup-content {
    font-family: 'DM Sans', sans-serif;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    max-width: 220px;
    font-size: 13px;
  }
  .popup-name { font-weight: 500; margin-bottom: 6px; font-size: 14px; }
  .popup-img { width:100%; height:90px; object-fit:cover; border-radius:6px; display:block; margin-bottom:8px; }
  .popup-date { font-size:11px; color:#555; margin-bottom:4px; }
  .popup-meta { color: #777; font-size: 12px; line-height: 1.6; }

  /* ---- AI CHAT ---- */
  /* ---- LOADING / EMPTY ---- */
  .loading { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }
  .empty   { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; display: none; }

  /* ---- EVENT DETAIL PAGE ---- */
  .detail-page { position:fixed; inset:0; z-index:500; background:var(--white); overflow-y:auto; display:none; }
  .detail-page.open { display:block; }
  .detail-hero { position:relative; height:240px; overflow:hidden; background:#ddd; }
  .detail-hero img { width:100%; height:100%; object-fit:cover; display:block; }
  .detail-hero-color { width:100%; height:100%; }
  .detail-hero-btn { position:absolute; top:16px; width:38px; height:38px; border-radius:50%; background:rgba(0,0,0,0.35); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; backdrop-filter:blur(4px); transition:background 0.15s; }
  .detail-hero-btn:hover { background:rgba(0,0,0,0.55); }
  .detail-back { left:16px; }
  .detail-share { right:16px; }
  .detail-recurrence-badge { position:absolute; bottom:14px; left:16px; background:rgba(0,0,0,0.55); color:#fff; font-size:11px; font-weight:500; padding:4px 10px; border-radius:999px; backdrop-filter:blur(4px); }
  .detail-body { padding:20px; max-width:640px; margin:0 auto; }
  /* Passed-event notice — deep links can open events that already happened (2026-07-19) */
  .detail-passed-banner { background:#333; color:#fff; font-size:13px; font-weight:600; text-align:center; padding:10px 14px; border-radius:10px; margin-bottom:14px; }
  .detail-cat-chip { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:500; padding:4px 10px; border-radius:999px; margin-bottom:12px; color:#fff; }
  .detail-cat-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.7); }
  .detail-title { font-size:26px; font-weight:700; line-height:1.2; margin-bottom:4px; }
  .detail-venue { font-size:14px; color:var(--muted); margin-bottom:18px; }
  .detail-divider { border:none; border-top:1px solid var(--border); margin:18px 0; }
  .detail-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .detail-info-item label { display:block; font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin-bottom:3px; }
  .detail-info-item span { font-size:14px; font-weight:500; }
  .detail-desc { font-size:14px; line-height:1.65; color:#333; }
  .detail-map-thumb { width:100%; border-radius:10px; display:block; margin-bottom:6px; }
  .detail-address { font-size:12px; color:var(--muted); margin-bottom:0; }
  .detail-price-val { font-size:28px; font-weight:700; margin-bottom:4px; }
  .detail-book-btn { display:block; text-align:center; background:#1D9E75; color:#fff; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:500; padding:14px; border-radius:12px; text-decoration:none; margin-bottom:12px; transition:opacity 0.15s; }
  .detail-book-btn:hover { opacity:0.9; }
  .detail-interest-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:24px; }
  .detail-interest-btn { font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; padding:12px; border-radius:12px; border:1px solid var(--border); background:transparent; color:var(--muted); cursor:pointer; transition:all 0.15s; }
  .detail-interest-btn:hover { background:rgba(0,0,0,0.04); }
  .detail-interested-btn.active { background:rgba(29,158,117,0.12); border-color:#5DCAA5; color:#1D9E75; }
  .detail-not-btn.active { background:rgba(0,0,0,0.06); border-color:#999; color:var(--black); }
  .detail-nudge { background:#f5f2ec; border-radius:12px; padding:20px; margin-bottom:48px; }
  .detail-nudge h3 { font-size:16px; font-weight:600; margin-bottom:6px; }
  .detail-nudge p { font-size:13px; color:var(--muted); margin-bottom:12px; line-height:1.5; }
  .detail-nudge-link { color:#1D9E75; font-size:13px; font-weight:500; cursor:pointer; text-decoration:none; }

  /* ---- SIGNUP MODAL ---- */
  .signup-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:1000; display:none; align-items:flex-end; justify-content:center; }
  .signup-overlay.open { display:flex; }
  .signup-sheet { background:var(--white); border-radius:24px 24px 0 0; width:100%; max-width:640px; max-height:92vh; overflow-y:auto; padding:14px 24px 48px; animation:slideUp 0.3s cubic-bezier(0.4,0,0.2,1); }
  @keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
  .drag-handle { width:40px; height:4px; background:rgba(0,0,0,0.15); border-radius:999px; margin:0 auto 20px; }
  .signup-title { font-size:22px; font-weight:700; margin-bottom:6px; }
  .signup-subtitle { font-size:14px; color:var(--muted); margin-bottom:20px; line-height:1.5; }
  .signup-event-ref { display:flex; align-items:flex-start; gap:10px; background:#f5f2ec; border-radius:10px; padding:12px 14px; margin-bottom:16px; }
  .signup-event-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:3px; }
  .signup-event-info { flex:1; }
  .signup-event-name { font-size:13px; font-weight:500; }
  .signup-event-action { font-size:11px; color:var(--muted); margin-top:2px; }
  .signup-divider { border:none; border-top:1px solid var(--border); margin:16px 0; }
  .signup-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
  .signup-field { display:flex; flex-direction:column; gap:4px; }
  .signup-field label { font-size:11px; font-weight:500; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; }
  .signup-field input { font-family:'DM Sans',sans-serif; font-size:14px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; outline:none; background:#fff; color:var(--black); transition:border-color 0.15s; }
  .signup-field input:focus { border-color:#1D9E75; }
  .signup-field input.error { border-color:#f44336; }
  .signup-selector-label { font-size:11px; font-weight:500; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:8px; margin-top:4px; }
  .signup-pills { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
  .signup-pill { font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; padding:6px 14px; border-radius:999px; border:1px solid var(--border); background:transparent; color:var(--muted); cursor:pointer; transition:all 0.15s; }
  .signup-pill.active { background:#1D9E75; color:#fff; border-color:#1D9E75; }
  .signup-submit { font-family:'DM Sans',sans-serif; font-size:15px; font-weight:500; width:100%; padding:14px; border-radius:12px; border:none; background:#1D9E75; color:#fff; cursor:pointer; margin-top:16px; transition:opacity 0.15s; }
  .signup-submit:hover { opacity:0.9; }
  .signup-submit:disabled { opacity:0.55; cursor:default; }
  .signup-gdpr { font-size:11px; color:var(--muted); text-align:center; margin-top:12px; line-height:1.5; }
  .signup-msg { display:none; border-radius:10px; padding:12px 16px; font-size:13px; font-weight:500; margin-top:12px; text-align:center; }
  .signup-msg.success { display:block; background:rgba(29,158,117,0.12); color:#1D9E75; }
  .signup-msg.error   { display:block; background:rgba(244,67,54,0.10); color:#c62828; }

  /* OAuth (Google) button + signup step UI */
  .oauth-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px; border:1px solid var(--border); border-radius:12px; background:#fff; color:var(--black); font-family:'DM Sans',sans-serif; font-size:15px; font-weight:500; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
  .oauth-btn:hover { background:#f7f7f7; border-color:#cfcfcf; }
  .oauth-btn:disabled { opacity:0.55; cursor:default; }
  .oauth-btn-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#fff; border:1px solid #e0e0e0; color:#4285F4; font-weight:700; font-size:13px; line-height:1; }
  .oauth-divider { display:flex; align-items:center; gap:10px; margin:14px 0; color:var(--muted); font-size:12px; }
  .oauth-divider::before, .oauth-divider::after { content:''; flex:1; border-top:1px solid var(--border); }
  .signup-back { background:none; border:none; color:var(--muted); font-family:'DM Sans',sans-serif; font-size:13px; cursor:pointer; padding:0; margin-bottom:10px; }
  .signup-back:hover { color:var(--black); }

  .signup-signed-in { display:none; text-align:center; padding:20px 0 8px; }
  .signup-signed-in.visible { display:block; }
  .signup-signed-in-name { font-size:20px; font-weight:600; margin-bottom:6px; }
  .signup-signed-in-sub  { font-size:13px; color:var(--muted); margin-bottom:20px; }
  .signup-signout-btn { font-family:'DM Sans',sans-serif; font-size:13px; color:var(--muted); background:none; border:1px solid var(--border); border-radius:999px; padding:7px 18px; cursor:pointer; transition:all 0.15s; }
  .signup-signout-btn:hover { border-color:#f44336; color:#f44336; }

  /* ---- GATE ---- */
  .gate {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 28px;
    transition: opacity 0.4s ease;
  }
  .gate.fade-out { opacity: 0; pointer-events: none; }
  .gate-logo { font-family: 'DM Serif Display', serif; font-size: 64px; letter-spacing: -0.02em; color: var(--black); }
  .gate-logo span { color: var(--accent); font-style: italic; }
  .gate-sub { font-size: 14px; color: var(--muted); margin-top: -16px; }
  .gate-form { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 260px; }
  .gate-input {
    width: 100%; font-family: 'DM Sans', sans-serif; font-size: 15px;
    padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px;
    outline: none; text-align: center; background: #fff; color: var(--black);
    letter-spacing: 0.05em; transition: border-color 0.15s;
  }
  .gate-input:focus { border-color: var(--black); }
  .gate-input.error { border-color: var(--accent); animation: shake 0.3s ease; }
  @keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
  }
  .gate-btn {
    width: 100%; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
    padding: 12px; border-radius: 999px; border: none;
    background: var(--black); color: var(--white); cursor: pointer; transition: opacity 0.15s;
  }
  .gate-btn:hover { opacity: 0.82; }

  /* ---- TRANSFORM MY MAP ---- */
  .tm-overlay { position:fixed; inset:0; z-index:900; background:rgba(0,0,0,0.65); display:none; align-items:center; justify-content:center; font-family:'DM Sans',sans-serif; }
  .tm-overlay.open { display:flex; }
  .tm-card { background:#fff; border-radius:20px; padding:28px 28px 24px; width:90%; max-width:440px; max-height:90vh; overflow-y:auto; }
  .tm-card-header { text-align:right; margin-bottom:12px; }
  .tm-title { font-size:22px; font-weight:700; color:var(--black); margin-bottom:8px; }
  .tm-subtitle { font-size:14px; color:var(--muted); margin-bottom:20px; line-height:1.5; }
  .tm-skip-btn { background:none; border:none; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--muted); cursor:pointer; padding:0; }
  .tm-skip-btn:hover { color:var(--black); }
  .tm-cat-chips { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
  .tm-cat-chip { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:8px 18px; border-radius:999px; border:2px solid var(--border); background:transparent; color:var(--muted); cursor:pointer; transition:all 0.15s; }
  .tm-go-btn { font-family:'DM Sans',sans-serif; font-size:15px; font-weight:500; width:100%; padding:14px; border-radius:12px; border:none; background:#1D9E75; color:#fff; cursor:pointer; transition:opacity 0.15s; }
  .tm-go-btn:disabled { opacity:0.35; cursor:default; }
  .tm-go-btn:not(:disabled):hover { opacity:0.9; }
  .tm-secondary-btn { font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; width:100%; padding:12px; border-radius:12px; border:1px solid var(--border); background:transparent; color:var(--muted); cursor:pointer; margin-top:10px; transition:all 0.15s; }
  .tm-secondary-btn:hover { background:rgba(0,0,0,0.04); }
  /* Swipe screen */
  .tm-swipe-screen { width:100%; height:100%; position:relative; display:flex; flex-direction:column; }
  .tm-swipe-top { position:absolute; top:16px; left:0; right:0; display:flex; align-items:center; justify-content:center; z-index:3; pointer-events:none; }
  .tm-progress { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:#fff; background:rgba(0,0,0,0.4); padding:5px 16px; border-radius:999px; backdrop-filter:blur(4px); }
  .tm-swipe-close { position:absolute; right:16px; top:0; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,0.4); border:none; color:#fff; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); transition:background 0.15s; pointer-events:all; }
  .tm-swipe-close:hover { background:rgba(0,0,0,0.65); }
  .tm-swipe-content { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:70px 16px 20px; overflow-y:auto; }
  .tm-swipe-card { background:#fff; border-radius:16px; width:100%; max-width:440px; overflow:hidden; box-shadow:0 8px 40px rgba(0,0,0,0.3); }
  .tm-card-img { width:100%; height:220px; object-fit:cover; display:block; }
  .tm-card-img-placeholder { width:100%; height:220px; }
  .tm-card-body { padding:20px; }
  .tm-card-title { font-size:20px; font-weight:700; margin-bottom:6px; line-height:1.25; color:var(--black); }
  .tm-card-date { font-size:13px; color:var(--muted); margin-bottom:10px; }
  .tm-desc-preview { font-size:13px; color:#444; line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:12px; }
  .tm-card-divider { border:none; border-top:1px solid var(--border); margin:14px 0; }
  .tm-card-full-desc { font-size:13px; color:#444; line-height:1.55; margin-bottom:12px; }
  .tm-card-meta { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:5px; }
  .tm-action-bar { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 0; width:100%; max-width:440px; }
  .tm-action-not { font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; padding:14px; border-radius:12px; border:none; background:#f0efed; color:var(--black); cursor:pointer; transition:background 0.15s, color 0.15s; }
  .tm-action-not:hover { background:#555; color:#fff; }
  .tm-action-not:active { background:#333; color:#fff; }
  .tm-action-yes { font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; padding:14px; border-radius:12px; border:none; background:#f0efed; color:var(--black); cursor:pointer; transition:background 0.15s, color 0.15s; }
  .tm-action-yes:hover { background:#1D9E75; color:#fff; }
  .tm-action-yes:active { background:#17875f; color:#fff; }
  /* Little H-creature — first appearance of the Händer mascot (see skills/branding) */
  .hander-creature { display:inline-block; margin-bottom:14px; animation:handerBob 2.8s ease-in-out infinite; }
  .hander-creature .hander-eyes { animation:handerBlink 4.2s infinite; transform-origin:center; transform-box:fill-box; }
  @keyframes handerBob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
  @keyframes handerBlink { 0%,90%,100% { transform:scaleY(1); } 95% { transform:scaleY(0.12); } }
  /* Floating transform panel */
  /* Transform button active (transformed view indicator) */
  .topbar-transform-btn.tm-active { border-color:#1D9E75; color:#1D9E75; }
  /* Empty state message over map */
  .transform-empty-msg { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:6; background:rgba(255,255,255,0.96); backdrop-filter:blur(4px); border-radius:12px; padding:20px 24px; text-align:center; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--muted); max-width:300px; box-shadow:0 4px 16px rgba(0,0,0,0.12); line-height:1.55; pointer-events:none; }

  /* ---- HÄNDER'S PICKS PANEL ---- */
  .picks-panel { position:fixed; top:var(--header-h); right:0; height:calc(100vh - var(--header-h)); width:var(--sidebar-w); z-index:6; background:var(--white); border-left:1px solid var(--border); transform:translateX(100%); transition:transform 280ms ease; display:flex; flex-direction:column; }
  .picks-panel.open { transform:translateX(0); }
  .picks-panel-header { padding:20px 20px 16px; border-bottom:1px solid var(--border); display:flex; align-items:flex-start; justify-content:space-between; flex-shrink:0; }
  .picks-panel-title { font-family:'DM Serif Display',serif; font-size:20px; color:var(--black); }
  .picks-panel-subtitle { font-family:'DM Sans',sans-serif; font-size:12px; color:var(--muted); margin-top:4px; }
  .picks-panel-close { background:none; border:none; font-size:18px; color:var(--muted); cursor:pointer; padding:2px 6px; line-height:1; border-radius:4px; transition:background 0.15s; }
  .picks-panel-close:hover { background:rgba(0,0,0,0.06); color:var(--black); }
  .picks-panel-body { flex:1; overflow-y:auto; padding-bottom:40px; }
  .picks-card { border-bottom:1px solid var(--border); padding:16px; }
  .picks-card-img { width:100%; height:120px; object-fit:cover; display:block; border-radius:8px; margin-bottom:12px; }
  .picks-card-img-placeholder { width:100%; height:120px; border-radius:8px; margin-bottom:12px; }
  .picks-card-body { }
  .picks-cat-chip { display:inline-flex; align-items:center; gap:5px; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; padding:4px 10px; border-radius:999px; color:#fff; margin-bottom:8px; }
  .picks-cat-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.7); flex-shrink:0; }
  .picks-card-name { font-size:15px; font-weight:500; color:var(--black); margin-bottom:4px; line-height:1.3; }
  .picks-card-date { font-size:13px; color:var(--muted); margin-bottom:4px; }
  .picks-card-venue { font-size:12px; color:var(--muted); margin-bottom:12px; }
  .picks-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .picks-btn-int { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:10px; border-radius:8px; border:none; background:#f0efed; color:var(--black); cursor:pointer; transition:background 0.15s, color 0.15s; }
  .picks-btn-int:hover { background:#1D9E75; color:#fff; }
  .picks-btn-not { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:10px; border-radius:8px; border:none; background:#f0efed; color:var(--black); cursor:pointer; transition:background 0.15s, color 0.15s; }
  .picks-btn-not:hover { background:#555; color:#fff; }
  .picks-footer { padding:16px 20px 24px; text-align:center; border-top:1px solid var(--border); flex-shrink:0; }
  .picks-rate-more { background:none; border:none; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--muted); cursor:pointer; }
  .picks-rate-more:hover { color:var(--black); }
  .picks-complete-msg { text-align:center; padding:40px 20px; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--muted); line-height:1.6; }
  /* ---- PICKS PILLS ---- */
  @keyframes picksGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 18px 4px rgba(255,255,255,0.15); }
  }
  @keyframes picksGlowSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 18px 4px rgba(255,255,255,0.10); }
  }
  .picks-feeling-pill { position:fixed; right:24px; top:50%; transform:translateY(-50%) translateX(120px); opacity:0; pointer-events:none; z-index:20; background:var(--black); color:#fff; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:12px 20px; border-radius:999px; cursor:pointer; border:none; transition:transform 400ms ease, opacity 400ms ease; }
  .picks-feeling-pill.visible { transform:translateY(-50%) translateX(0); opacity:1; pointer-events:auto; animation:picksGlow 2.4s infinite; }
  .picks-persistent-pill { position:fixed; right:24px; top:50%; transform:translateY(-50%); opacity:0; pointer-events:none; z-index:20; background:var(--black); color:#fff; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:12px 20px; border-radius:999px; cursor:pointer; border:none; transition:opacity 300ms ease; }
  .picks-persistent-pill.visible { opacity:1; pointer-events:auto; animation:picksGlowSoft 2.4s infinite; }
  /* Continuous matching pill — same anchor as the picks pills; morphs into them at 8 likes */
  .match-pill { position:fixed; right:24px; top:50%; transform:translateY(-50%) translateX(120px); opacity:0; pointer-events:none; z-index:20; background:#1D9E75; color:#fff; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:12px 20px; border-radius:999px; cursor:pointer; border:none; transition:transform 400ms ease, opacity 400ms ease; box-shadow:0 4px 16px rgba(29,158,117,0.3); }
  .match-pill.visible { transform:translateY(-50%) translateX(0); opacity:1; pointer-events:auto; }
  /* Post-signup discovery — breathing pulse on the Transform button + a playful toast */
  .transform-pulse { animation:transformPulse 1.8s ease-in-out infinite; }
  @keyframes transformPulse {
    0%, 100% { box-shadow:0 0 0 0 rgba(29,158,117,0); transform:scale(1); }
    50%      { box-shadow:0 0 0 7px rgba(29,158,117,0.16); transform:scale(1.05); }
  }
  .transform-hint-toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(20px); opacity:0; pointer-events:none; z-index:950; display:flex; align-items:center; gap:14px; max-width:calc(100vw - 32px); background:var(--black); color:#fff; font-family:'DM Sans',sans-serif; font-size:14px; line-height:1.4; padding:13px 16px; border-radius:14px; box-shadow:0 10px 34px rgba(0,0,0,0.32); transition:opacity 300ms ease, transform 300ms ease; }
  .transform-hint-toast.visible { opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
  .transform-hint-try { flex-shrink:0; background:#fff; color:var(--black); border:none; border-radius:999px; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:600; padding:8px 16px; cursor:pointer; white-space:nowrap; }
  .transform-hint-try:hover { opacity:0.9; }

  /* ── Group date badge ───────────────────────────────────── */
  .group-date-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: #e8e8e8;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    vertical-align: middle;
    line-height: 1.6;
  }

  /* ── Trending badge — liked in the last 7 days (DESIGN_LOG 2026-07-19).
     Same geometry as .group-date-badge; warm tint distinct from all seven
     category colours so it can't be read as a category dot. ── */
  .trending-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: #FDEBD6;
    color: #B4560A;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    vertical-align: middle;
    line-height: 1.6;
  }

  /* ── Stack list popup ────────────────────────────────────── */
  .stack-list-popup {
    background: #fff;
    border-radius: 12px;
    min-width: 220px;
    max-width: 300px;
    overflow: hidden;
  }
  .stack-list-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
  }
  .stack-list-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    padding: 0 2px;
    line-height: 1;
  }
  .stack-list-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.1s;
  }
  .stack-list-row:last-child { border-bottom: none; }
  .stack-list-row:hover { background: #f7f7f7; }
  .stack-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .stack-list-info { display: flex; flex-direction: column; min-width: 0; }
  .stack-list-name { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
  .stack-list-date { font-size: 11px; color: #888; margin-top: 1px; }

  /* ── Detail date selector ────────────────────────────────── */
  .detail-date-section { padding: 4px 0 8px; }
  .detail-date-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }
  .detail-date-rows { display: flex; flex-direction: column; gap: 4px; }
  .detail-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid #e8e8e8;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
    background: #fff;
  }
  .detail-date-row:hover:not(.past) { background: #f5f5f5; }
  .detail-date-row.selected { border-color: #1D9E75; background: #f0faf6; }
  .detail-date-row.past { opacity: 0.45; cursor: default; }
  .detail-date-row-date { font-size: 14px; font-weight: 500; color: #1a1a1a; }
  .detail-date-row-time { font-size: 13px; color: #666; }
  .detail-date-row-past-label { font-size: 11px; color: #aaa; font-style: italic; }

  /* ---- MOBILE ELEMENT DEFAULTS (hidden on desktop) ---- */
  .mobile-row1-pill   { display: contents; } /* transparent to desktop grid */
  .mobile-header-row  { display: none; } /* time slider — PARKED on mobile too (2026-07-18); DOM + JS kept */
  .mobile-sheet-cats  { display: none; }
  .mobile-bottom-nav  { display: none; }
  .mobile-drag-handle { display: none; }
  .mobile-sidebar-top { display: none; }
  .card-thumb         { display: none; }
  .card-actions       { display: none; }

  /* ---- DESKTOP EVENT-CARD THUMBNAILS (DESIGN_LOG 2026-07-18) ----
     The card markup always includes .card-thumb (mobile shows it on the left);
     desktop shows it on the RIGHT edge of each entry. Must come AFTER the
     .card-thumb{display:none} default above to win the cascade; min-width
     scope keeps the mobile styles below untouched. */
  @media (min-width: 769px) {
    .card-thumb,
    .card-thumb-placeholder {
      display: block;
      width: 56px;
      height: 56px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0;
      order: 2; /* dot → content (flex:1 pushes thumb to the right edge) → thumb */
    }
    /* Sort dropdown: black text, darker outline + accent-orange chevron on desktop (2026-07-18) */
    .sort-select { color: var(--black); border-color: rgba(0,0,0,0.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23E8593C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
    /* Desktop: the standalone person icon + dropdown are retired — the icon
       lives INSIDE the My account pill, Sign out on the account page
       (2026-07-18). Mobile keeps both. !important beats the JS inline display. */
    .topbar-user-icon { display: none !important; }
    .signout-dropdown { display: none !important; }
    /* Slightly slimmer chips so the 7 categories fit 2 rows in the sidebar
       (Wellness belongs at the end of row 2, not alone on row 3) */
    .sidebar-cats .cat-chip { padding: 5px 10px; }
    /* Slightly darker separators — event cards AND the sidebar section lines,
       so they all match (2026-07-18) */
    .event-card { border-bottom-color: rgba(0,0,0,0.18); }
    .sidebar-cats { border-bottom-color: rgba(0,0,0,0.18); }
    .sidebar-list-header { border-bottom-color: rgba(0,0,0,0.18); }
  }

  /* ---- MOBILE ---- */
  @media (max-width: 700px) {
    :root { --sidebar-w: 100vw; }
    .main { flex-direction: column-reverse; }
    .sidebar { width: 100%; height: 45vh; border-right: none; border-top: 1px solid var(--border); }
    .map-container { height: 55vh; }
    .date-pills { display: none; }
    .header-center { display: none; }
    .time-slider { width: calc(100% - 24px); bottom: 70px; gap: 8px; padding: 7px 10px; }
    .time-filter-toggle { display: none; }
    .detail-info-grid { grid-template-columns: 1fr; }
    .signup-row { grid-template-columns: 1fr; }
  }

  /* ---- MOBILE REDESIGN (768px breakpoint) ---- */
  @media (max-width: 768px) {

    /* Full-screen map layout */
    body { overflow: hidden; }
    .main {
      position: fixed;
      inset: 0;
      display: block;
      overflow: hidden;
      flex-direction: row; /* reset 700px override */
    }
    .map-container {
      position: absolute;
      inset: 0;
      height: auto; /* reset 700px override */
    }
    #map { position: fixed; inset: 0; }

    /* Header: transparent, floats over map */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: auto;
      min-height: var(--header-h);
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      padding: 0 14px;
      gap: 0;
      background: transparent;
      border-bottom: none;
      z-index: 20;
      pointer-events: none;
    }
    header > * { pointer-events: auto; }
    /* Row 1 (mobile redesign 2026-07-18): the time slider + person icon are
       gone from the pill; the search bar takes their place. header-center goes
       display:contents so ONLY .map-search escapes into the pill's flex row —
       every other desktop nav item inside it is hidden explicitly (!important
       beats the inline display JS sets on the logged-in links). */
    .header-center { display: contents; }
    .header-center > *:not(.map-search) { display: none !important; }
    /* header-right (Log in pill, person icon, dropdown) is fully retired on
       mobile — the bottom nav owns login/account entry now (2026-07-18) */
    .header-right { display: none !important; }

    /* White floating pill — logo + search */
    .mobile-row1-pill {
      order: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      width: calc(100% - 24px);
      background: #fff;
      border-radius: 999px;
      padding: 8px 14px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
      margin: 8px 12px;
    }
    .mobile-row1-pill .logo { flex-shrink: 0; margin-right: 0; }

    /* Search inside the pill — ONE white surface (2026-07-18, "fewer shapes"):
       no inset field, the magnifier + placeholder sit directly on the pill
       with a hairline divider after the logo. 16px input stops iOS focus-zoom. */
    .map-search {
      position: relative; /* not absolute (desktop) — and keeps the -ph overlay anchored */
      left: auto;
      top: auto;
      transform: none;
      flex: 1;
      min-width: 0;
      width: auto;
      gap: 7px;
      background: transparent;
      border: none;
      border-left: 1px solid rgba(0,0,0,0.12);
      border-radius: 0;
      padding: 4px 0 4px 12px;
    }
    .map-search:focus-within { box-shadow: none; }
    .map-search input { font-size: 16px; }
    .map-search-ph { left: 35px; font-size: 14px; }
    .map-search-clear { color: var(--black); }

    /* Hide desktop time slider */
    .time-slider { display: none; }
    /* Restore the datepicker's original mobile position (desktop moved to left
       when the date pills went into the sidebar, 2026-07-18) */
    .datepicker-dropdown { left: auto; right: 20px; }
    /* Hide desktop sidebar cats (mobile uses #mobileSidebarCats in the sheet) */
    .sidebar-cats { display: none; }
    /* Sidebar list header: no sticky on mobile */
    .sidebar-list-header { position: static; top: auto; }

    /* Bottom nav height — the sheet and everything anchored to the bottom
       edge offsets by this (mobile redesign 2026-07-18) */
    :root { --mbn-h: calc(56px + env(safe-area-inset-bottom, 0px)); }

    /* Bottom sheet sidebar — travels in the space ABOVE the fixed bottom nav
       (option A: nav always on top). Can now collapse to just the drag handle
       (~30px) so the map goes effectively full-screen; snap points in JS. */
    .sidebar {
      position: fixed;
      bottom: var(--mbn-h); left: 0; right: 0;
      width: 100%;
      height: 220px;
      border-right: none;
      border-top: 1px solid var(--border);
      border-radius: 16px 16px 0 0;
      background: var(--white);
      z-index: 10;
      transition: height 0.3s cubic-bezier(0.4,0,0.2,1);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    }
    .sidebar.sheet-expanded { height: 70vh; }
    /* While the user is actively dragging, follow the finger with no easing. */
    .sidebar.dragging { transition: none; }

    /* Drag handle — full-width tall grab zone so it's easy to grab on touch.
       touch-action:none tells the browser to hand the vertical drag to JS
       instead of treating it as a page scroll. */
    .mobile-drag-handle {
      display: block;
      width: 100%;
      height: 30px;
      margin: 0;
      background: none;
      cursor: grab;
      flex-shrink: 0;
      position: relative;
      touch-action: none;
    }
    .mobile-drag-handle::before {
      content: '';
      position: absolute;
      top: 11px; left: 50%;
      transform: translateX(-50%);
      width: 42px; height: 5px;
      background: rgba(0,0,0,0.2);
      border-radius: 999px;
    }
    .mobile-drag-handle:active { cursor: grabbing; }

    /* Category pills row inside the sheet — above the date pills, one
       horizontally scrollable line (moved from the header, 2026-07-18) */
    .mobile-sheet-cats {
      display: flex;
      align-items: center;
      padding: 0 14px 8px;
      flex-shrink: 0;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .mobile-sheet-cats::-webkit-scrollbar { display: none; }
    .mobile-sidebar-cats { display: flex; gap: 6px; flex-shrink: 0; }
    .mobile-sidebar-cats .cat-chip {
      font-size: 12px;
      padding: 6px 12px;
      border: none;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* Mobile sidebar top: date pills + on-now */
    .mobile-sidebar-top {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px 6px;
      flex-shrink: 0;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .mobile-sidebar-top::-webkit-scrollbar { display: none; }
    .mobile-date-pills { display: flex; gap: 5px; flex-shrink: 0; }
    .mobile-date-pill {
      font-family: 'DM Sans', sans-serif;
      font-size: 12px; font-weight: 500;
      padding: 5px 12px;
      border-radius: 999px;
      /* Black text + darker outline — mobile colour pass (2026-07-18),
         matching the desktop date pills */
      border: 1px solid rgba(0,0,0,0.35);
      background: transparent;
      color: var(--black);
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s;
    }
    .mobile-date-pill.active { background: var(--black); color: var(--white); border-color: var(--black); }
    #mobileDatesPill.active  { background: var(--green); color: #fff; border-color: var(--green); }
    /* Date picker dropdown: sits above the bottom sheet on mobile */
    .datepicker-dropdown { z-index: 50; }
    /* On now — PARKED (2026-07-18): hidden like the time slider, DOM + JS
       sync logic kept for a future return */
    .mobile-on-now-toggle { display: none; }

    /* Event list scrollable inside sheet */
    #eventList { overflow-y: auto; flex: 1; }

    /* Mobile event card: flex row */
    .event-card {
      flex-direction: row;
      align-items: stretch;
      padding: 0;
      gap: 0;
    }
    /* Color bar replaces dot */
    .card-dot {
      width: 3px;
      height: auto;
      border-radius: 0;
      margin-top: 0;
      flex-shrink: 0;
      align-self: stretch;
    }
    /* Thumbnail */
    .card-thumb {
      display: block;
      width: 60px;
      height: 60px;
      object-fit: cover;
      flex-shrink: 0;
      align-self: center;
      margin: 10px 8px 10px 10px;
      border-radius: 6px;
    }
    .card-thumb-placeholder {
      display: block;
      width: 60px;
      height: 60px;
      border-radius: 6px;
      flex-shrink: 0;
      align-self: center;
      margin: 10px 8px 10px 10px;
    }
    .card-content { flex: 1; min-width: 0; padding: 10px 0; }
    .card-desc { display: none; }
    /* Action buttons */
    .card-actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 8px 10px;
      flex-shrink: 0;
    }
    .card-action-btn {
      width: 30px; height: 30px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: #f0efed;
      color: var(--muted);
      cursor: pointer;
      font-size: 13px;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.15s;
      padding: 0;
      line-height: 1;
    }
    /* Mobile colour pass (2026-07-18): orange heart, black ✕ */
    .card-action-int { color: var(--accent); }
    .card-action-not { color: var(--black); }
    .card-action-int.active { background: #1D9E75; color: #fff; border-color: #1D9E75; }
    .card-action-not.active { background: #555; color: #fff; border-color: #555; }

    /* Map controls: hide zoom/compass, move geolocate above sheet */
    .maplibregl-ctrl-zoom-in,
    .maplibregl-ctrl-zoom-out,
    .maplibregl-ctrl-compass { display: none !important; }
    /* Geolocate arrow — HIDDEN on mobile for now (2026-07-18): not needed yet,
       and it floated awkwardly over the map. Zoom/compass were already hidden,
       so the whole top-right control group goes. Delete this rule (and restore
       the positioning below) to bring it back. */
    .maplibregl-ctrl-top-right { display: none !important; }

    /* Picks panel: full-width bottom sheet */
    .picks-panel {
      width: 100%;
      top: 60px; /* was 116px — header lost its category row (2026-07-18) */
      bottom: var(--mbn-h); /* stops above the bottom nav (2026-07-18) */
      height: auto;
      transform: translateY(100%);
      border-left: none;
      border-top: 1px solid var(--border);
      border-radius: 16px 16px 0 0;
    }
    .picks-panel.open { transform: translateY(0); }

    /* Picks pills: anchor above the bottom sheet */
    /* HÄNDER'S PICKS — HIDDEN on mobile for now (2026-07-18): pills, match
       pill and panel. !important beats the JS .visible/.open class toggles,
       which still run untouched — remove these four rules to bring it back. */
    .picks-feeling-pill    { display: none !important; }
    .picks-persistent-pill { display: none !important; }
    .match-pill            { display: none !important; }
    .picks-panel           { display: none !important; }
    .transform-hint-toast { bottom: calc(86px + var(--mbn-h)); }

    /* When the bottom sheet is raised, the pills sit behind/over the list —
       hide them and make them non-interactive so the sheet owns the screen. */
    body.sheet-raised .picks-persistent-pill.visible,
    body.sheet-raised .picks-feeling-pill.visible,
    body.sheet-raised .match-pill.visible {
      opacity: 0;
      pointer-events: none;
    }

    /* Transform panel: tuck under header */

    /* Sort dropdown — black text, darker outline, accent chevron (mobile
       colour pass 2026-07-18, mirrors the desktop rule) */
    .sort-select { color: var(--black); border-color: rgba(0,0,0,0.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23E8593C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

    /* ---- BOTTOM NAV (mobile redesign 2026-07-18) ----
       Fixed tab bar at the very bottom; the sheet travels above it. Active
       view tab (Map / Transform) is accent orange. */
    .mobile-bottom-nav {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: var(--mbn-h);
      display: flex;
      align-items: flex-start;
      justify-content: space-around;
      background: #fff;
      border-top: 1px solid rgba(0,0,0,0.12);
      padding: 6px 4px calc(4px + env(safe-area-inset-bottom, 0px));
      z-index: 30;
    }
    .mbn-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      flex: 1;
      min-width: 0;
      background: none;
      border: none;
      padding: 2px 0;
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      font-weight: 500;
      color: var(--black);
      text-decoration: none;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .mbn-item svg { display: block; }
    .mbn-item.active { color: var(--accent); }
    .mbn-item.transform-pulse { animation: transformPulse 1.4s ease-in-out infinite; }

    /* Detail page overrides */
    .detail-info-grid { grid-template-columns: 1fr; }
    .signup-row { grid-template-columns: 1fr; }
  }

  /* ── Venue popup ─────────── */

  .venue-popup-outer .maplibregl-popup-content { padding:0; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,0.18); overflow:hidden; }
  .venue-popup { background:#fff; border-radius:12px; min-width:240px; max-width:300px; overflow:hidden; font-family:'DM Sans',sans-serif; }
  .venue-popup-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:12px 14px 4px; }
  .venue-popup-title { font-size:15px; font-weight:600; color:#1a1a1a; line-height:1.25; }
  .venue-name-link { color:inherit; text-decoration:none; cursor:pointer; }
  .venue-name-link:hover { text-decoration:underline; }
  .venue-popup-close { background:none; border:none; cursor:pointer; font-size:14px; color:#999; padding:0 2px; line-height:1; flex-shrink:0; }
  .venue-popup-stats { padding:0 14px 10px; font-size:12px; color:#888; }
  .venue-popup-tabs { display:flex; gap:6px; padding:0 14px 8px; }
  .venue-popup-tab { font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; padding:5px 12px; border-radius:999px; border:1px solid var(--border); background:transparent; color:var(--muted); cursor:pointer; }
  .venue-popup-tab.active { background:var(--black); color:#fff; border-color:var(--black); }
  .venue-popup-list { max-height:260px; overflow-y:auto; border-top:1px solid #f0f0f0; }
  .venue-popup-row { display:flex; align-items:center; gap:10px; padding:9px 14px; cursor:pointer; border-bottom:1px solid #f8f8f8; transition:background 0.1s; }
  .venue-popup-row:last-child { border-bottom:none; }
  .venue-popup-row:hover { background:#f7f7f7; }
  .venue-popup-thumb { width:42px; height:42px; border-radius:7px; object-fit:cover; flex-shrink:0; display:block; }
  .venue-popup-thumb-ph { width:42px; height:42px; border-radius:7px; flex-shrink:0; }
  .venue-popup-row-info { min-width:0; }
  .venue-popup-row-name { font-size:13px; font-weight:600; color:#1a1a1a; line-height:1.3; display:flex; align-items:center; gap:6px; }
  .venue-popup-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
  .venue-popup-row-date { font-size:11px; color:#888; margin-top:2px; }

  /* ============================================================
     COOKIE CONSENT THEME (vanilla-cookieconsent v3) — brand match
     Additive: only overrides the library's CSS variables. Loads on
     every page via core.css. Safe to tweak/remove independently.
     ============================================================ */
  #cc-main {
    --cc-font-family: 'DM Sans', sans-serif;
    --cc-bg: #F7F4EE;
    --cc-primary-color: #111010;
    --cc-secondary-color: #7a7670;

    --cc-btn-primary-bg: #1D9E75;
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-border-color: #1D9E75;
    --cc-btn-primary-hover-bg: #178a66;
    --cc-btn-primary-hover-border-color: #178a66;

    --cc-btn-secondary-bg: #ece8e0;
    --cc-btn-secondary-color: #111010;
    --cc-btn-secondary-border-color: #ece8e0;
    --cc-btn-secondary-hover-bg: #e2ddd2;
    --cc-btn-secondary-hover-border-color: #e2ddd2;

    --cc-toggle-on-bg: #1D9E75;
    --cc-cookie-category-block-bg: #efece5;
    --cc-cookie-category-block-bg-hover: #e8e4db;
    --cc-separator-border-color: rgba(0,0,0,0.09);

    --cc-modal-border-radius: 16px;
    --cc-btn-border-radius: 999px;
  }
  /* Headings inside the consent UI use the brand serif */
  #cc-main .cm__title,
  #cc-main .pm__title { font-family: 'DM Serif Display', serif; }
