/* Muted 70s palette: rust, harvest gold, brick, avocado, teal on warm cream. */
:root {
  --brown: #4a2a18;
  --orange: #c4612f;
  --gold: #d29b2c;
  --red: #b5493a;
  --avocado: #6e8034;
  --teal: #2f7c74;
  --plum: #7d4a68;
  --sky: #3f739c;
  --cocoa: #8b5a3c;
  --pine: #3f6149;
  --mint: #a8dcc0;

  --bg: #faf3e6;
  --surface: #fffcf6;
  --surface-2: #f2e6d0;
  --text: #2e1d12;
  --muted: #7b6250;
  --line: #e6d7bd;
  --accent: #b8572a;
  --accent-text: #fff;
  --bar: var(--brown);
  --bar-text: #faf3e6;
  --on-color: #fff;      /* text on a coloured chip */
  --on-gold: #2e1d12;    /* gold is too light for white text */

  --r-great: #2f7c74;
  --r-good: #6e8034;
  --r-ok: #c69328;
  --r-low: #9a8a7c;
  --must: #c4612f;

  --radius: 14px;
  --tabs-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f140d;
    --surface: #2b1d14;
    --surface-2: #3a281b;
    --text: #f3e8d6;
    --muted: #bfa88e;
    --line: #4a3524;
    --accent: #df8a55;
    --accent-text: #1f140d;
    --bar: #150d08;
    --bar-text: #f3e8d6;
    --orange: #df8a55;
    --gold: #d9b15e;
    --red: #d9735f;
    --avocado: #a2b062;
    --teal: #5fa89e;
    --plum: #b98aa6;
    --sky: #7aa5c6;
    --cocoa: #c99a76;
    --pine: #86ad8f;
    --r-great: #5fa89e;
    --r-good: #a2b062;
    --r-ok: #d9b15e;
    --r-low: #a8978a;
    --must: #df8a55;
    --on-color: #1f140d;
    --on-gold: #1f140d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f140d;
  --surface: #2b1d14;
  --surface-2: #3a281b;
  --text: #f3e8d6;
  --muted: #bfa88e;
  --line: #4a3524;
  --accent: #df8a55;
  --accent-text: #1f140d;
  --bar: #150d08;
  --bar-text: #f3e8d6;
  --orange: #df8a55;
  --gold: #d9b15e;
  --red: #d9735f;
  --avocado: #a2b062;
  --teal: #5fa89e;
  --plum: #b98aa6;
  --sky: #7aa5c6;
  --cocoa: #c99a76;
  --pine: #86ad8f;
  --r-great: #5fa89e;
  --r-good: #a2b062;
  --r-ok: #d9b15e;
  --r-low: #a8978a;
  --must: #df8a55;
  --on-color: #1f140d;
  --on-gold: #1f140d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* html shows the bar colour, so any space the phone adds outside the page blends with the bars */
html { -webkit-text-size-adjust: 100%; background: var(--bar); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- chrome ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--bar); color: var(--bar-text);
  border-bottom: 0;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px;
  background: linear-gradient(to bottom, var(--gold) 0 2px, var(--orange) 2px 4px, var(--red) 4px 6px);
}
.topbar h1 {
  flex: 1; margin: 0; min-width: 0;
  font-size: 20px; font-weight: 800; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.back {
  border: 0; background: none; color: var(--gold);
  font-size: 34px; line-height: 1; padding: 0 8px 4px 0; margin-left: -4px; cursor: pointer;
}
.offline {
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  background: var(--orange); color: #fff;
}
main {
  max-width: 720px; margin: 0 auto;
  padding: 18px 16px calc(var(--tabs-h) + env(safe-area-inset-bottom) + 24px);
  outline: none;
}
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar); border-top: 2px solid var(--orange);
}
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  height: var(--tabs-h); justify-content: center;
  font-size: 11px; font-weight: 600; text-decoration: none; color: #c9b597;
}
.tabs a.active { color: var(--gold); }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.toast {
  position: fixed; z-index: 20; left: 16px; right: 16px;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 12px);
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast span { flex: 1; }
.toast button { border: 0; border-radius: 8px; padding: 6px 12px; background: var(--accent); color: var(--accent-text); font-weight: 700; }

/* ---- generic ---- */
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 24px 0 8px; }
h2:first-child { margin-top: 8px; }
.empty { color: var(--muted); text-align: center; padding: 32px 8px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.list li:last-child .row { border-bottom: 0; }
.row:active { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 650; overflow-wrap: anywhere; }
.row-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chev { color: var(--muted); font-size: 22px; line-height: 1; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  background: var(--orange); color: var(--on-color); text-decoration: none; flex-shrink: 0;
}
.badge.other { background: var(--muted); }
.c0 { background: var(--orange); } .c1 { background: var(--teal); } .c2 { background: var(--gold); color: var(--on-gold); }
.c3 { background: var(--red); } .c4 { background: var(--avocado); } .c5 { background: var(--plum); }
.badge.lg { min-width: 44px; height: 44px; font-size: 16px; }
.tent-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
a.badge-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 3px 10px 3px 3px; border-radius: 99px; background: var(--surface-2); }

.rating {
  display: inline-block; min-width: 44px; text-align: center;
  padding: 3px 8px; border-radius: 8px;
  font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--r-low);
}
.r-great { background: var(--r-great); }
.r-good { background: var(--r-good); }
.r-ok { background: var(--r-ok); color: var(--on-gold); }
.rating.none { background: none; color: var(--muted); font-weight: 600; font-size: 12px; min-width: 0; padding: 3px 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rating:not(.none) { color: #1d0f07; } }
:root[data-theme="dark"] .rating:not(.none) { color: #1d0f07; }

.must-pill { display: inline-block; font-size: 11px; font-weight: 800; color: var(--must); border: 1.5px solid currentColor; border-radius: 99px; padding: 0 7px; }

/* ---- home ---- */
.searchbox {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 0 14px; height: 50px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line);
  color: var(--muted); text-align: left; cursor: text;
}
.searchbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--text); }
.searchbox:focus-within { border-color: var(--accent); }
.searchbox .clear { border: 0; background: none; color: var(--muted); font-size: 20px; padding: 4px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; min-height: 84px;
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.tile { border-left: 5px solid var(--tile, var(--accent)); }
.tile b { font-size: 17px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.hot { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.tile.hot span { color: inherit; opacity: .88; }
.tile.t-tents { --tile: var(--teal); }
.tile.t-brew { --tile: var(--gold); }
.tile.t-top { --tile: var(--red); }
.tile.t-mine { --tile: var(--orange); }

/* ---- map ---- */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold); background: #4a2412; }
.map img { display: block; width: 100%; height: auto; }
.map .pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 11%; aspect-ratio: 1; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer;
}
.map .pin:focus-visible { outline: 3px solid var(--mint); }
.map .pin.here { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange); animation: pulse 1.6s ease-in-out infinite; width: 5.5%; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(217,105,42,.35); } }
@media (prefers-reduced-motion: reduce) { .map .pin.here { animation: none; } }
.map-hint { font-size: 13px; color: var(--muted); margin: 6px 2px 0; }

/* ---- segmented / filters ---- */
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--surface-2); margin: 12px 0; }
.seg a, .seg button { flex: 1; border: 0; background: none; cursor: pointer; text-align: center; padding: 8px; border-radius: 9px; text-decoration: none; font-weight: 650; font-size: 14px; color: var(--muted); }
.seg a.on, .seg button.on { background: var(--accent); color: var(--accent-text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px; }
.filters select, .chip {
  flex-shrink: 0; max-width: 100%; height: 36px; padding: 0 12px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600;
}
.filters select { appearance: none; -webkit-appearance: none; padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.chip[aria-pressed="true"], .filters select.set { border-color: var(--accent); background-color: var(--accent); color: var(--accent-text); }
.count { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

/* ---- beer card ---- */
.beers { display: grid; gap: 10px; }
.beer { padding: 12px 14px; }
.beer.picked { border-color: var(--must); border-width: 2px; }
.beer.tried { opacity: .62; }
.beer-head { display: flex; align-items: flex-start; gap: 10px; }
.beer-head h3 { flex: 1; margin: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.beer-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.beer-meta a { color: var(--text); font-weight: 600; text-decoration: none; }
.beer-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.note { margin: 8px 0 0; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.note.warn { color: var(--muted); }
.beer-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 700; text-decoration: none;
}
.btn.untappd { flex: 1; min-width: 0; white-space: nowrap; background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.untappd.disabled { background: none; border-style: dashed; color: var(--muted); font-weight: 600; flex: 1; }
.btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-color); }

/* ---- breweries A–Z ---- */
.az-wrap { position: relative; }
.az {
  position: fixed; right: 2px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px; font-weight: 800; color: var(--accent); touch-action: none; user-select: none;
}
.az span { padding: 1px 6px; }
.letter { position: sticky; top: calc(env(safe-area-inset-top) + 55px); z-index: 2;
  background: var(--bg); margin: 0; padding: 10px 2px 4px; font-size: 15px; color: var(--accent); }
.filterbox { margin-bottom: 8px; }

.danger { color: #b3261e; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 28px; }
.foot button { border: 0; background: none; text-decoration: underline; color: inherit; font-size: 12px; padding: 6px; }
.az-page { margin-right: 14px; }

/* ---- group selections ---- */
.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.picks-label { font-size: 13px; font-weight: 800; color: var(--must); margin-right: 2px; }
.person {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text);
}
.person.p0 { background: var(--orange); color: var(--on-color); } .person.p1 { background: var(--teal); color: var(--on-color); }
.person.p2 { background: var(--gold); color: var(--on-gold); } .person.p3 { background: var(--red); color: var(--on-color); }
.person.p4 { background: var(--avocado); color: var(--on-color); } .person.p5 { background: var(--plum); color: var(--on-color); }
.person.p6 { background: var(--sky); color: var(--on-color); } .person.p7 { background: var(--cocoa); color: var(--on-color); }
.person.p8 { background: var(--pine); color: var(--on-color); }
.person.me { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.chip small { font-weight: 600; opacity: .7; margin-left: 2px; }
.chip.inline { height: 28px; padding: 0 10px; font-size: 12px; margin-left: 6px; vertical-align: middle; }
.empty .person { margin: 2px; }
.unlock { padding: 18px 16px; margin-top: 8px; }
.unlock h2 { margin: 0 0 6px; }
.unlock p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.unlock input {
  width: 100%; height: 46px; padding: 0 12px; margin-bottom: 10px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-size: 17px;
}
.unlock input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.unlock .unlock-error { color: var(--red); font-weight: 600; }
.btn.primary { width: 100%; background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:disabled { opacity: .6; }

/* ---- group selections folded by tent -> brewery ---- */
.folds { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fold > summary {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px;
  list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .chev { margin-left: auto; transition: transform .15s; }
.fold[open] > summary .chev { transform: rotate(90deg); }
.fold-title { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.fold-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tent-fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tent-fold > summary:active, .brew-fold > summary:active { background: var(--surface-2); }
.tent-fold > summary { border-radius: var(--radius); }
.tent-fold > .fold-body { padding: 0 10px 10px; }
.brew-fold { border-top: 1px solid var(--line); }
.brew-fold > summary { min-height: 46px; padding: 6px 4px 6px 12px; }
.brew-fold > summary .fold-title { font-weight: 650; }
.brew-fold > .fold-body { padding: 2px 0 10px; }
@media (prefers-reduced-motion: reduce) { .fold > summary .chev { transition: none; } }

/* ---- about ---- */
.about-link {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px;
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.about-link:active { background: var(--surface-2); }
.about-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.about-link small { color: var(--muted); font-size: 13px; }
.about-i {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid var(--teal); color: var(--teal);
  font: italic 800 16px Georgia, serif;
}
.about-hero {
  margin-top: 8px; padding: 22px 18px 20px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  /* 70s stripe band along the top edge */
  background-image: linear-gradient(var(--orange) 0 6px, var(--gold) 6px 12px, var(--red) 12px 18px, transparent 18px);
  padding-top: 30px;
}
.about-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.about-hero .about-title { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--text); }
.about-sub { margin: 4px 0 0; font-size: 17px; color: var(--accent); font-weight: 650; }
.ig-list { overflow: hidden; }
.ig {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.ig:last-child { border-bottom: 0; }
.ig:active { background: var(--surface-2); }
.ig svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--plum); stroke-width: 2; }
.ig svg .dot { fill: var(--plum); stroke: none; }
.ig > span:nth-of-type(1) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ig small { color: var(--muted); font-size: 13px; }
.fine { list-style: none; margin: 0; padding: 4px 14px; }
.fine li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fine li:last-child { border-bottom: 0; }
.about-sign { text-align: center; margin: 28px 0 4px; font-size: 18px; font-weight: 700; color: var(--teal); }
.about-motto { text-align: center; margin: 0 0 8px; font-size: 15px; font-style: italic; color: var(--muted); }

/* ---- flags ---- */
.flag-ico { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.btn.flag[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.flag[aria-pressed="true"] .cloth, .chip[aria-pressed="true"] .cloth { fill: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 5px; }
.chip .flag-ico { width: 14px; height: 14px; }
.flag-pill { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); }
.flag-pill .flag-ico { width: 11px; height: 11px; stroke-width: 2.4; }
.flag-pill .cloth { fill: currentColor; }
.nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; }
.empty .flag-ico { width: 15px; height: 15px; }
/* three buttons on narrow phones: Flag/Tried drop their words, keep their icons */
@media (max-width: 359px) { .beer-actions .btn .lbl { display: none; } .beer-actions .btn.flag, .beer-actions [data-act="tried"] { width: 44px; padding: 0; } }

/* ---- top-right search + My Beers ---- */
.top-search { border: 0; background: none; color: var(--bar-text); width: 40px; height: 40px; margin: -6px -8px -6px 0; padding: 8px; cursor: pointer; }
.top-search svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.seg-sm { margin-top: -4px; }
.seg-sm a, .seg-sm button { padding: 6px; font-size: 13px; }

/* ---- import / export ---- */
.about-link + .about-link { margin-top: 10px; }
.about-i.io { border-color: var(--orange); color: var(--orange); font: 800 15px/1 -apple-system, system-ui, sans-serif; }
.io-card { padding: 14px 16px 16px; }
.io-card p { margin: 0 0 12px; font-size: 15px; }
.io-steps { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.io-steps li { margin-bottom: 6px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
.file-btn { position: relative; width: 100%; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.io-card .btn.primary:disabled { opacity: .5; }
#import-result:not(:empty) { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.io-msg { margin: 0 0 10px; }
.io-msg.bad { color: var(--red); font-weight: 600; }
.io-msg.good { color: var(--teal); font-weight: 600; }
.io-msg a { color: inherit; }
.io-skip { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.io-skip summary { cursor: pointer; }
.io-skip ul { margin: 6px 0 0; padding-left: 18px; }
.io-check { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.io-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.io-actions { display: flex; gap: 8px; }
.io-actions .btn { flex: 1; }

/* ---- share ---- */
.share-row { display: flex; gap: 8px; }
.share-row .btn { flex: 1; min-width: 0; height: 62px; padding: 0 6px; font-size: 14px; flex-direction: column; gap: 2px; }
.share-row .btn > span:first-child { font-size: 18px; line-height: 1; }
.qr-dialog { border: 0; padding: 0; border-radius: var(--radius); background: transparent; max-width: calc(100vw - 32px); }
.qr-dialog::backdrop { background: rgba(20, 12, 7, .72); }
/* QR stays black-on-white in dark mode so every camera can read it */
.qr-box { background: #fff; color: #2e1d12; padding: 20px 20px 16px; border-radius: var(--radius); text-align: center; border-top: 6px solid var(--orange); }
.qr-box img { display: block; width: min(260px, 70vw); height: auto; margin: 0 auto; image-rendering: pixelated; }
.qr-box p { margin: 10px 0 14px; font-size: 14px; }
.qr-box .btn { width: 100%; }

/* ---- add to home screen ---- */
.install-tip { position: relative; margin-bottom: 14px; padding: 14px 44px 14px 16px; border-left: 5px solid var(--orange); }
.install-tip p { margin: 6px 0 0; font-size: 14px; }
.tip-title { font-size: 16px; }
.tip-note { color: var(--muted); }
.tip-note a { color: var(--accent); font-weight: 600; }
.tip-close {
  position: absolute; top: 4px; right: 4px; width: 40px; height: 40px;
  border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer;
}
.ios-share { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-btn { width: 100%; margin-top: 10px; }
.install-how p { margin: 0 0 10px; }
.install-how p:last-child { margin-bottom: 0; }
.group-link { margin-top: 0; }
.about-i.grp { border-color: var(--plum); font-size: 15px; font-style: normal; }

