  /* Layout: one centred column like the family recipe app — sticky search + filter rows, list, full-screen detail sheet. */
  :root {
    /* Light mode: a soft sea-green page behind white cards, with firmer borders and shadows. (Dark mode has its own colours below and is unaffected.) */
    --bg: #E4EEEC;
    --surface: #FFFFFF;
    --surface-2: #D6E4E1;
    --ink: #13292B;
    --ink-muted: #4F6465;
    --line: #B9CCC9;
    --line-soft: #D0DFDC;
    --sea: #0E6670;
    --sea-soft: #C8E5E6;
    --bloom: #B8325F;
    --bloom-soft: #F6E1E8;
    --star: #C98A0C;
    --star-soft: #F7ECD3;
    --warn: #8A5A00; --cash-ink: #FFFFFF;
    --warn-soft: #F7EBCF;
    --shadow: 0 1px 2px rgba(19,41,43,.10), 0 6px 18px rgba(19,41,43,.13);
    --display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
    --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --radius: 10px;
    --gut: 18px;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0F1819; --surface: #172224; --surface-2: #1F2C2E; --ink: #E6EEEC; --ink-muted: #95A7A6;
      --line: #2C3B3D; --line-soft: #223032; --sea: #5CC2C9; --sea-soft: #173638; --bloom: #EE7FA5; --bloom-soft: #3A1F2A;
      --star: #F0B53C; --star-soft: #382C12; --warn: #E2B556; --warn-soft: #33290F; --cash-ink: #1d1606;
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0F1819; --surface: #172224; --surface-2: #1F2C2E; --ink: #E6EEEC; --ink-muted: #95A7A6;
    --line: #2C3B3D; --line-soft: #223032; --sea: #5CC2C9; --sea-soft: #173638; --bloom: #EE7FA5; --bloom-soft: #3A1F2A;
    --star: #F0B53C; --star-soft: #382C12; --warn: #E2B556; --warn-soft: #33290F; --cash-ink: #1d1606;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
  .wrap { max-width: 740px; margin: 0 auto; padding-inline: var(--gut); }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: var(--sea); }
  :focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
  [hidden] { display: none !important; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

  /* masthead */
  .masthead { padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
  .eyebrow { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); margin: 0; }
  h1 { font-family: var(--display); font-weight: 650; font-size: clamp(1.8rem, 7vw, 2.45rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
  h1 em { font-style: normal; color: var(--sea); }
  .sub { margin: 0; font-size: .88rem; color: var(--ink-muted); }
  .top-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .pill-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
  .pill-btn:hover { border-color: var(--sea); color: var(--sea); }
  .pill-btn.primary { background: var(--sea); border-color: var(--sea); color: var(--surface); }
  .pill-btn.primary:hover { filter: brightness(1.08); color: var(--surface); }
  .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bloom); color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

  /* what's new */
  .news { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sea); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); font-size: .9rem; }
  .news h2 { margin: 0 0 4px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
  .news-line { margin: 0; font-weight: 600; }
  .news ul { margin: 8px 0 0; padding-left: 18px; }
  .news li { margin-bottom: 3px; }
  .news li button { background: none; border: 0; padding: 0; color: var(--sea); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
  .linkish { background: none; border: 0; padding: 0; color: var(--sea); cursor: pointer; font-size: .84rem; text-decoration: underline; text-underline-offset: 2px; }
  .status-note { margin-top: 10px; font-size: .84rem; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 12px; }

  /* controls */
  .controls { position: sticky; top: 0; z-index: 20; background: var(--bg); padding-block: 14px 10px; margin-top: 12px; border-bottom: 1px solid var(--line-soft); }
  .search-field { position: relative; }
  .search-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--ink-muted); fill: none; stroke-width: 1.9; pointer-events: none; }
  #q { width: 100%; font-size: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 40px; box-shadow: var(--shadow); }
  #q::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
  #clearq { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-muted); font-size: 1.15rem; padding: 7px 9px; cursor: pointer; border-radius: 7px; }
  .facets { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; }
  .facet { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-block: 1px; }
  .facet::-webkit-scrollbar { display: none; }
  @media (hover: hover) and (pointer: fine) { .facet { flex-wrap: wrap; overflow: visible; row-gap: 6px; } .facet-label { align-self: flex-start; padding-top: 7px; } }
  .help h3 { font-family: var(--display); font-size: 1.1rem; margin: 22px 0 6px; }
  .help ul { margin: 0; padding-left: 1.15rem; } .help li { margin: 0 0 8px; }
  .help kbd { font: inherit; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
  .facet-label { flex: 0 0 64px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
  .chip { flex: 0 0 auto; font-size: .82rem; font-weight: 500; color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; white-space: nowrap; }
  .chip:hover { color: var(--ink); border-color: var(--ink-muted); }
  .chip[aria-pressed="true"] { background: var(--sea-soft); color: var(--sea); border-color: var(--sea); font-weight: 650; }
  .tally { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .8rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .tally select { font-size: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 3px 6px; }
  .tally-right { display: flex; gap: 12px; align-items: center; }
  .tally-left { display: flex; gap: 10px; align-items: center; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; color: var(--sea); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
  .filter-toggle[aria-expanded="true"] { background: var(--sea-soft); border-color: var(--sea); }
  .filter-toggle .chev { transition: transform .15s; display: inline-block; }
  .filter-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .filter-toggle .badge { height: 18px; min-width: 18px; font-size: .68rem; }
  #toTop { position: fixed; right: 16px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sea); color: var(--surface); box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  #toBottom { position: fixed; right: 16px; bottom: 74px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sea); color: var(--surface); box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  #toBottom[hidden] { display: none; }
  #toBottom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  #toTop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }

  /* list */
  #list { list-style: none; margin: 0; padding: 0 0 40px; }
  .row { border-bottom: 1px solid var(--line-soft); }
  .row > button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 14px 2px; cursor: pointer; }
  .row > button:hover .row-title { color: var(--sea); }
  .row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .row-title { font-family: var(--display); font-size: 1.2rem; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
  .row-meta { font-size: .82rem; color: var(--ink-muted); margin-top: 3px; }
  .row-hl { margin: 6px 0 0; padding: 0; list-style: none; font-size: .88rem; line-height: 1.4; color: var(--ink); }
  .row-hl li { position: relative; padding-left: 14px; }
  .row-hl li::before { content: "•"; position: absolute; left: 2px; color: var(--sea); }
  .scores { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; font-size: .8rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
  .score b { color: var(--ink); font-weight: 700; }
  .score .st { color: var(--star); }
  .tagline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
  .tag { font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--ink-muted); }
  .tag.kam { background: var(--bloom-soft); color: var(--bloom); }
  .tag.music, .tag.patio { background: var(--sea-soft); color: var(--sea); }
  .tag.warn { background: var(--warn-soft); color: var(--warn); }
  .tag.cash { background: var(--warn); color: var(--cash-ink); font-weight: 700; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
  .others { margin: 0; padding-left: 1.1rem; } .others li { margin: 0 0 3px; }
  .drive { font-size: .78rem; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .empty { padding: 44px 4px; text-align: center; color: var(--ink-muted); }

  /* overlays */
  .sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
  .sheet-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line-soft); padding-block: 10px; }
  .sheet-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-size: .9rem; font-weight: 650; color: var(--sea); cursor: pointer; padding: 6px 8px 6px 0; }
  .back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
  .sheet-body { padding-block: 22px 70px; }
  .sheet-body h2 { font-family: var(--display); font-size: clamp(1.7rem, 6.4vw, 2.3rem); font-weight: 650; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 6px; text-wrap: balance; }
  .byline { font-size: .87rem; color: var(--ink-muted); margin: 0 0 12px; }
  .blurb { font-size: 1.02rem; line-height: 1.55; margin: 0 0 18px; max-width: 64ch; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
  .stat { background: var(--surface); padding: 11px 12px; }
  .stat dt { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); margin: 0 0 3px; }
  .stat dd { margin: 0; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
  .stat dd small { font-weight: 500; color: var(--ink-muted); font-size: .76rem; display: block; }
  .sec-head { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); padding-bottom: 7px; border-bottom: 1px solid var(--line); margin: 26px 0 12px; }
  .facts { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: .93rem; }
  .facts dt { color: var(--ink-muted); font-size: .8rem; font-weight: 600; padding-top: 2px; }
  .facts dd { margin: 0; overflow-wrap: anywhere; }
  .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .btn { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 650; text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; cursor: pointer; }
  .btn:hover { border-color: var(--sea); color: var(--sea); }
  .btn.primary { background: var(--sea); border-color: var(--sea); color: var(--surface); }
  .btn.primary:hover { filter: brightness(1.08); color: var(--surface); }
  .btn.danger { color: var(--bloom); border-color: var(--bloom); }
  .btn:disabled { opacity: .55; cursor: default; }
  .notes { background: var(--bloom-soft); border-radius: var(--radius); padding: 12px 14px; font-size: .93rem; }
  .notes strong { display: block; color: var(--bloom); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
  .verify { font-size: .8rem; color: var(--ink-muted); margin-top: 14px; }
  .owner-box { background: var(--warn-soft); border-radius: var(--radius); padding: 12px 14px; font-size: .88rem; margin-top: 14px; }
  .owner-box strong { display: block; color: var(--warn); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }

  /* rating */
  .stars { display: inline-flex; gap: 2px; }
  .stars button { border: 0; background: none; padding: 2px; cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--line); }
  .stars button.on { color: var(--star); }
  textarea, .field input, .field select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: .95rem; }
  textarea { min-height: 76px; resize: vertical; margin-top: 8px; }
  .form-msg { font-size: .84rem; margin-top: 8px; color: var(--ink-muted); }
  .form-msg.err { color: var(--bloom); }
  .reviews { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .review { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 12px; font-size: .92rem; }
  .review-head { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--ink-muted); }
  .review-head b { color: var(--ink); }
  .review p { margin: 5px 0 0; white-space: pre-wrap; }
  .review .mini { display: flex; gap: 12px; margin-top: 6px; }

  /* forms + admin */
  .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: .86rem; font-weight: 600; }
  .field span.hint { font-weight: 400; color: var(--ink-muted); font-size: .8rem; }
  .tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
  .admin-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 11px 13px; margin-bottom: 9px; font-size: .9rem; }
  .admin-item .meta { font-size: .78rem; color: var(--ink-muted); }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  @media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } .facts { grid-template-columns: 80px 1fr; } }

  /* dialog */
  .modal { position: fixed; inset: 0; z-index: 90; background: rgba(10,20,20,.45); display: flex; align-items: center; justify-content: center; padding: 18px; }
  .modal-card { background: var(--surface); border-radius: 12px; padding: 18px; max-width: 400px; width: 100%; box-shadow: var(--shadow); }
  .modal-card p { margin: 0 0 14px; }
  footer { font-size: .76rem; color: var(--ink-muted); padding: 10px 0 40px; }

/* ---------- additions for the standalone app ---------- */
.login { max-width: 420px; padding-top: 56px; }
.login .eyebrow { margin-bottom: 8px; }
.login h2 em { font-style: normal; color: var(--sea); }
.login .btn { justify-content: center; }
.login .btn.primary { width: 100%; padding: 11px 13px; }
.login #lFinger { width: 100%; padding: 11px 13px; }
.login .btn-row { margin-top: 10px; }
.pin-show { font-family: var(--display); font-size: 2.6rem; font-weight: 650; letter-spacing: .35em; text-align: center; margin: 4px 0 10px; padding-left: .35em; font-variant-numeric: tabular-nums; }
.meta { font-size: .78rem; color: var(--ink-muted); }
.offer { margin-top: 10px; font-size: .9rem; background: var(--sea-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; }
.foot-links { white-space: nowrap; }
.foot-links .linkish { font-size: inherit; }
.admin-item .slot form.admin-item { margin: 10px 0 0; }
.filter-bar { margin-top: 10px; }
.map-sheet { overflow: hidden; display: flex; flex-direction: column; }
#mapCanvas { flex: 1; min-height: 300px; width: 100%; }
.map-info { max-width: 240px; color: #13292B; font-family: inherit; }
.map-info b { display: block; font-size: .95rem; }
.map-info small { display: block; margin: 2px 0 6px; color: #5C6E6F; }
.google-box { margin: 14px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.google-box .g-attr { font: 400 12px/16px Roboto, Arial, sans-serif; color: #5E5E5E; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .google-box .g-attr { color: #c9c9c9; } }
:root[data-theme="dark"] .google-box .g-attr { color: #c9c9c9; }

.activity { margin-top: 8px; }
.activity summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--sea); }
.activity div { font-size: .88rem; padding: 6px 0; border-top: 1px solid var(--line-soft); margin-top: 6px; }

.guide-table { border-collapse: collapse; width: 100%; font-size: .82rem; margin: 8px 0; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.guide-table th { background: var(--sea-soft); }
.help code { background: var(--sea-soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
