:root {
  --bg: #f8f5f0;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #7a726a;
  --faint: #b5ada4;
  --line: rgba(29, 27, 24, 0.08);
  --fill: rgba(29, 27, 24, 0.05);
  --accent: #e8590c;
  --accent-soft: rgba(232, 89, 12, 0.12);
  --on-accent: #ffffff;
  --now: #2f9e44;
  --up: #2f9e44;
  --mid: #f08c00;
  --down: #e03131;
  --shadow: 0 1px 2px rgba(29, 27, 24, 0.04), 0 6px 20px rgba(29, 27, 24, 0.06);
  --shadow-lift: 0 10px 30px rgba(29, 27, 24, 0.18);
  --r: 18px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);

  --t-sports: #e7efff; --i-sports: #3b6fd8;
  --t-music: #f3e9ff; --i-music: #8b46d9;
  --t-faith: #fff4d4; --i-faith: #b8860b;
  --t-sales: #ffe9e1; --i-sales: #d9480f;
  --t-food: #fff0dc; --i-food: #c46a00;
  --t-arts: #e3f6ef; --i-arts: #198754;
  --t-community: #eef0f3; --i-community: #5c6773;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --card: #1d1b19;
    --ink: #f4f0ea;
    --muted: #a59d94;
    --faint: #6d665f;
    --line: rgba(255, 255, 255, 0.08);
    --fill: rgba(255, 255, 255, 0.07);
    --accent: #ff7a33;
    --accent-soft: rgba(255, 122, 51, 0.16);
    --on-accent: #1a0d05;
    --now: #51cf66;
    --up: #51cf66;
    --mid: #fcc419;
    --down: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.5);
    --t-sports: #1d2a44; --i-sports: #8fb0ff;
    --t-music: #2d2040; --i-music: #c9a3ff;
    --t-faith: #3a3018; --i-faith: #f2cc60;
    --t-sales: #3d231b; --i-sales: #ff9f80;
    --t-food: #3b2a14; --i-food: #ffc078;
    --t-arts: #17332a; --i-arts: #7ee0b5;
    --t-community: #262a2f; --i-community: #b0bac4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.press { transition: transform 0.18s var(--ease), opacity 0.18s; }
.press:active { transform: scale(0.97); opacity: 0.85; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  padding: var(--top) 8px 0 16px;
  height: calc(52px + var(--top));
  display: flex; align-items: center; gap: 4px;
  transition: background 0.25s, box-shadow 0.25s;
}
.bar.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 0.5px 0 var(--line);
}
/* The big title shrinks up into the bar at the same left edge (four controls sit on the right). */
.bar-title {
  flex: 1; min-width: 0; font-weight: 650; font-size: 17px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.bar.solid .bar-title { opacity: 1; transform: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px;
  display: grid; place-items: center; color: var(--ink);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn.on { color: var(--accent); }

/* ---------- page ---------- */
main { max-width: 640px; margin: 0 auto; padding: calc(52px + var(--top)) 0 calc(120px + var(--bottom)); }
.hero { padding: 6px 20px 2px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h1 {
  margin: 2px 0 0; font: 800 38px/1.05 ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.chips {
  position: sticky; top: calc(52px + var(--top)); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 20px 8px; scroll-padding: 0 20px;
  background: var(--bg);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 550; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s var(--ease);
}
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .e { font-size: 16px; }

/* ---------- list ---------- */
.day { padding: 18px 20px 8px; display: flex; align-items: center; gap: 8px; }
.day h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.day .sub { color: var(--muted); font-size: 15px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 0 color-mix(in srgb, var(--now) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.cards { display: grid; gap: 10px; padding: 0 16px; }
.card {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  padding: 10px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }
.thumb {
  flex: none; width: 68px; height: 68px; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center; font-size: 30px;
  background: var(--t, var(--fill));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* A venue's logo in place of a flyer: logos are drawn for white, so the tile stays white in dark mode too */
.thumb.logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hero-tile.logo { height: 190px; background: #fff; }
.hero-tile.logo img { width: 150px; height: 150px; border-radius: 22px; }
.card .txt { min-width: 0; flex: 1; }
.card .title {
  font-weight: 650; font-size: 16.5px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: 3px; color: var(--muted); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.badge { font-size: 12.5px; font-weight: 650; padding: 2px 8px; border-radius: 10px; background: var(--fill); color: var(--muted); }
.badge.now { background: color-mix(in srgb, var(--now) 16%, transparent); color: var(--now); }
.badge.up { color: var(--up); }
.badge.down { color: var(--down); }
.badge.mix { color: var(--ink); }

.empty { text-align: center; padding: 56px 32px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 8px; }
.empty p { margin: 0 0 18px; font-size: 17px; }

.skel { height: 88px; border-radius: var(--r); background: linear-gradient(100deg, var(--card) 40%, var(--fill) 50%, var(--card) 60%) 0 0 / 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

footer { text-align: center; color: var(--faint); font-size: 13px; padding: 36px 0 0; }
footer button { color: var(--muted); font-weight: 600; padding: 8px; }

/* ---------- add button ---------- */
.fab {
  position: fixed; z-index: 15; right: max(20px, calc(50vw - 300px)); bottom: calc(22px + var(--bottom));
  width: 62px; height: 62px; border-radius: 31px;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: var(--shadow-lift);
  transition: transform 0.25s var(--ease);
}
.fab:active { transform: scale(0.92); }
.fab svg { width: 30px; height: 30px; }

.btn {
  height: 54px; border-radius: 16px; padding: 0 22px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 650;
  background: var(--accent); color: var(--on-accent);
}
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn:disabled { opacity: 0.4; }
.btn.small { height: 44px; width: auto; font-size: 16px; }
.link { color: var(--accent); font-weight: 600; padding: 12px; font-size: 16px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.38); opacity: 0; transition: opacity 0.4s var(--ease); }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px;
  max-height: calc(100% - var(--top) - 10px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lift);
  transform: translateY(100%); transition: transform 0.45s var(--ease);
  will-change: transform;
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grab::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--faint); opacity: 0.6; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 17px; background: color-mix(in srgb, var(--card) 85%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; color: var(--muted); }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 20px calc(28px + var(--bottom)); }
.sheet-foot { flex: none; padding: 12px 20px calc(14px + var(--bottom)); background: var(--bg); box-shadow: 0 -0.5px 0 var(--line); }

/* event */
.hero-img {
  position: relative; margin: 0 -20px; height: min(52vh, 440px); overflow: hidden; background: #000;
  display: grid; place-items: center;
}
.hero-img .blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(0.7); }
.hero-img img { position: relative; max-height: 100%; width: auto; object-fit: contain; }
.hero-tile { margin: 0 -20px; height: 150px; display: grid; place-items: center; font-size: 64px; background: var(--t, var(--fill)); }
.ev-badges { display: flex; gap: 6px; margin: 16px 0 6px; flex-wrap: wrap; }
.ev-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -0.015em; }
.rows { margin: 14px 0 0; display: grid; gap: 2px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 16.5px; text-align: left; width: 100%; }
.row svg { flex: none; width: 22px; height: 22px; color: var(--muted); }
.row .sub { color: var(--muted); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 6px; }
.act { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.act .ring { width: 54px; height: 54px; border-radius: 27px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); color: var(--ink); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.act:active .ring { transform: scale(0.92); }
.act .ring svg { width: 24px; height: 24px; }
.act.on .ring { background: var(--accent); color: var(--on-accent); }
.details { margin: 14px 0 0; color: var(--ink); opacity: 0.85; font-size: 16px; line-height: 1.5; }

.box { margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.box h3 { margin: 0 0 14px; font-size: 19px; font-weight: 750; }
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rate button {
  display: grid; justify-items: center; gap: 4px; padding: 14px 4px; border-radius: 14px;
  background: var(--fill); font-size: 13.5px; font-weight: 650;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.rate button .e { font-size: 30px; line-height: 1; }
.rate button:active { transform: scale(0.94); }
.rate button.on[data-r="1"] { background: color-mix(in srgb, var(--up) 18%, transparent); box-shadow: inset 0 0 0 2px var(--up); }
.rate button.on[data-r="0"] { background: color-mix(in srgb, var(--mid) 18%, transparent); box-shadow: inset 0 0 0 2px var(--mid); }
.rate button.on[data-r="-1"] { background: color-mix(in srgb, var(--down) 16%, transparent); box-shadow: inset 0 0 0 2px var(--down); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags .chip { height: 38px; }
.tags .n { color: var(--muted); font-weight: 600; }
.chip.on .n { color: inherit; opacity: 0.7; }
.reveal { animation: reveal 0.35s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

.meter { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--fill); gap: 2px; }
.meter i { display: block; height: 100%; transition: flex-grow 0.6s var(--ease); }
.meter .u { background: var(--up); } .meter .m { background: var(--mid); } .meter .d { background: var(--down); }
.counts { display: flex; gap: 14px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.counts b { color: var(--ink); }
.live-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.quiet { color: var(--muted); font-size: 15px; margin: 0; }
.thanks { font-size: 17px; font-weight: 650; margin: 0 0 12px; }

.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 26px; }
.report-wrap > button { color: var(--faint); font-size: 14px; font-weight: 600; padding: 12px; min-height: 44px; }

/* post */
.pick { display: grid; gap: 10px; padding: 8px 0 4px; }
.pick-main {
  height: 168px; border-radius: 22px; background: var(--accent); color: var(--on-accent);
  display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 20px; font-weight: 750;
  box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.pick-main svg { width: 46px; height: 46px; }
.pick-main small { font-size: 14px; font-weight: 600; opacity: 0.8; }
.pick-main input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sheet-h { margin: 6px 0 16px; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }

.reading { position: relative; margin: 6px 0 0; border-radius: 18px; overflow: hidden; background: #000; height: 46vh; display: grid; place-items: center; }
.reading img { max-height: 100%; width: auto; opacity: 0.75; }
.scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { to { top: 100%; } }
.reading .label { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.draft { position: relative; margin-top: 12px; padding: 6px 16px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.draft + .draft { margin-top: 14px; }
.draft .x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; color: var(--faint); }
.draft .x svg { width: 18px; height: 18px; }
.field { display: block; border-bottom: 0.5px solid var(--line); padding: 10px 0; }
.field:last-of-type { border-bottom: 0; }
.field input, .field textarea {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: none; min-height: 44px; font-size: 16px; color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.title input { font-size: 21px; font-weight: 700; padding-right: 30px; }
.split { display: flex; gap: 10px; align-items: center; }
.split input[type="date"], .split input[type="time"] { min-width: 0; flex: 1; min-height: 28px; }
.split .to { color: var(--faint); }
.cat-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 2px 16px 4px; }
.cat-pick::-webkit-scrollbar { display: none; }
.cat-pick .chip { height: 34px; font-size: 14px; }
.chip.kid.on { background: var(--accent); color: var(--on-accent); }
.thumb-strip { display: flex; align-items: center; gap: 12px; margin: 4px 0 4px; color: var(--muted); font-size: 15px; font-weight: 600; }
.thumb-strip img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.oops { text-align: center; padding: 20px 0 8px; }
.oops .big { font-size: 46px; }
.oops p { font-size: 18px; font-weight: 650; margin: 8px 0 18px; }
.oops .btn + .btn { margin-top: 10px; }

/* zoom */
.zoom { position: fixed; inset: 0; z-index: 60; background: #000; opacity: 0; transition: opacity 0.3s; }
.zoom.open { opacity: 1; }
.zoom-stage { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; touch-action: manipulation; cursor: zoom-in; -webkit-overflow-scrolling: touch; }
.zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-stage.zoomed { place-items: start; cursor: zoom-out; }
.zoom-stage.zoomed img { max-width: none; max-height: none; width: 250%; }
.zoom-close { position: absolute; top: calc(12px + var(--top)); right: 12px; width: 42px; height: 42px; border-radius: 21px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoom-close svg { width: 20px; height: 20px; }
.zoom-share { position: absolute; left: 50%; bottom: calc(22px + var(--bottom)); transform: translateX(-50%); height: 50px; padding: 0 22px; border-radius: 25px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1d1b18; font-size: 16px; font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.zoom-share svg { width: 20px; height: 20px; }
.zoom-share:active { transform: translateX(-50%) scale(0.96); }
/* The event picture says it's the flyer */
.flyer-tag { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 14px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.flyer-tag svg { width: 14px; height: 14px; }

/* toast */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(100px + var(--bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15.5px; box-shadow: var(--shadow-lift);
  transition: transform 0.35s var(--ease), opacity 0.25s; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { color: var(--accent); font-weight: 750; padding: 4px 6px; }

.c-sports { --t: var(--t-sports); --i: var(--i-sports); }
.c-music { --t: var(--t-music); --i: var(--i-music); }
.c-faith { --t: var(--t-faith); --i: var(--i-faith); }
.c-sales { --t: var(--t-sales); --i: var(--i-sales); }
.c-food { --t: var(--t-food); --i: var(--i-food); }
.c-arts { --t: var(--t-arts); --i: var(--i-arts); }
.c-community { --t: var(--t-community); --i: var(--i-community); }

@media (min-width: 700px) {
  .sheet { bottom: 24px; border-radius: 22px; max-height: calc(100% - 48px); }
  .hero-img, .hero-tile { margin: 0 -20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* form + button resets used by the sheets */
.split svg { flex: none; width: 20px; height: 20px; color: var(--faint); }
button.hero-img { width: calc(100% + 40px); padding: 0; cursor: zoom-in; }
.act { color: var(--muted); }
.row.press, button.row { color: inherit; }

/* interested / going */
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.pill {
  height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 650;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pill svg { width: 20px; height: 20px; }
.pill.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.crowd { margin: 10px 2px 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.actions { grid-template-columns: repeat(3, 1fr); }

/* footer */
footer { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.push-btn { display: inline-flex; align-items: center; gap: 6px; }
.push-btn svg { width: 16px; height: 16px; }
.push-btn.on { color: var(--accent); }

/* add-to-home-screen steps */
.steps { display: grid; gap: 12px; margin: 4px 0 8px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); font-size: 17px; font-weight: 600; }
.step .num { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 800; }
.step svg { flex: none; width: 24px; height: 24px; color: var(--accent); }

/* Add to Home Screen */
.step .txt { flex: 1; display: grid; gap: 2px; }
.step .txt small { color: var(--muted); font-size: 14px; font-weight: 500; }
.step .appicon { flex: none; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.nudge {
  position: fixed; z-index: 16; left: 16px; right: 16px; bottom: calc(96px + var(--bottom)); max-width: 608px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow-lift);
  transform: translateY(16px); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nudge.show { transform: none; opacity: 1; }
.nudge img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.nudge-main { flex: 1; display: grid; gap: 1px; text-align: left; padding: 4px 0; }
.nudge-main b { font-size: 16px; }
.nudge-main small { color: var(--muted); font-size: 14px; }
.nudge-x { flex: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--faint); }
.nudge-x svg { width: 18px; height: 18px; }

/* Review fixes (2026-10-27) */
/* A long "when · place" line must ellipsize, never widen the page. */
.cards { grid-template-columns: minmax(0, 1fr); }

/* Snap pill: one tap opens the camera or photos; the pencil types one in. */
.fab { width: auto; height: 58px; border-radius: 29px; display: flex; align-items: stretch; overflow: hidden; padding: 0; }
.fab:active { transform: none; }
.fab-snap { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 18px; font-size: 18px; font-weight: 750; cursor: pointer; transition: background 0.15s; }
.fab-snap svg { width: 26px; height: 26px; }
.fab-snap input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fab-type { width: 54px; display: grid; place-items: center; color: inherit; border-left: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent); transition: background 0.15s; }
.fab-type svg { width: 22px; height: 22px; }
.fab-snap:active, .fab-type:active { background: rgba(0, 0, 0, 0.12); }
/* Signed out: a quiet line in the pill's place that opens sign-in (2026-10-30). */
.fab.hint { height: auto; background: var(--card); color: var(--muted); box-shadow: var(--shadow); }
.fab-hint { padding: 11px 16px; font-size: 15px; font-weight: 600; line-height: 1.2; color: inherit; background: none; }

/* Warnings from neighbors' reports */
.badge.warn { background: color-mix(in srgb, var(--mid) 20%, transparent); color: color-mix(in srgb, var(--mid) 70%, var(--ink)); }
.flag { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--mid) 16%, transparent); font-size: 15px; font-weight: 600; }

/* What people said: plain text, not tappable-looking chips */
.taglist { margin: 12px 0 0; color: var(--ink); opacity: 0.8; font-size: 15px; line-height: 1.5; }
.last-report { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.said { margin-bottom: 16px; }
.said.after { margin: 18px 0 0; }
.nudge-shake { animation: shake 0.4s; color: var(--down) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Report: asks why, inline */
.report-wrap { display: flex; justify-content: center; width: 100%; }
.report-box { width: 100%; display: grid; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.report-q { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.report-opt { height: 46px; border-radius: 12px; background: var(--fill); font-size: 16px; font-weight: 600; text-align: left; padding: 0 14px; color: var(--ink) !important; }
.report-cancel { color: var(--muted) !important; padding: 10px; }
.reported { color: var(--faint); font-size: 14px; font-weight: 600; padding: 8px; }

/* Keep a toast clear of the Home Screen card */
body.nudging .toast { bottom: calc(176px + var(--bottom)); }

/* "Remind you?" card inside the event, after Interested/Going */
.remind { margin: 14px 0 0; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.remind-head { display: flex; gap: 12px; align-items: flex-start; }
.remind-head svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.remind-head b { display: block; font-size: 16.5px; }
.remind-head small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.remind-btns { display: flex; gap: 8px; margin-top: 12px; }
.remind-btns .btn { flex: 1; height: 44px; font-size: 16px; }
.steps.compact { margin: 12px 0 0; gap: 8px; }
.steps.compact .step { padding: 10px 12px; font-size: 15.5px; box-shadow: none; background: var(--fill); }

/* More dates / repeats (post form) */
.dates-panel { border-bottom: 0.5px solid var(--line); padding: 4px 0 10px; }
.more-dates-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15.5px; padding: 8px 0; min-height: 40px; }
.more-dates-btn svg { width: 18px; height: 18px; }
.repeat-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.repeat-pick .chip { height: 36px; font-size: 14.5px; }
.until { margin: 8px 0 0; }
.until-l { color: var(--muted); font-weight: 600; font-size: 15px; min-width: 44px; }
.extra-date { margin: 8px 0 0; }
.extra-date input, .until input { flex: 1; min-width: 0; border: 0; outline: 0; background: var(--fill); border-radius: 10px; padding: 8px 10px; font-size: 16px; min-height: 40px; }
.x-sm { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--faint); }
.x-sm svg { width: 16px; height: 16px; }
.add-date { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; padding: 10px 0 2px; min-height: 40px; }
.add-date svg { width: 18px; height: 18px; }
.dates-sum { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.dates-sum:empty { display: none; }

/* The other dates on the event page */
.row.more-dates { align-items: flex-start; }
.row.more-dates svg { margin-top: 7px; }
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.date-chip { height: 34px; font-size: 14px; padding: 0 12px; }

/* Towns, sign-ups, links (2026-10-27) */
.badge.town { background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.chip.wide.on { background: var(--accent); color: var(--on-accent); }
.split .grow2 { flex: 2; min-width: 0; }
.split .town-in { flex: 1; min-width: 0; max-width: 40%; color: var(--muted); }
.link-row:empty { display: none; }
.link-row { margin: 14px 0 0; }
.link-btn { text-decoration: none; }
.link-btn svg { width: 20px; height: 20px; }
.extras .field:last-child { border-bottom: 0.5px solid var(--line); }
button.thumb-strip { padding: 0; cursor: zoom-in; }
.details a { color: var(--accent); font-weight: 600; word-break: break-word; }
.dup { display: grid; gap: 10px; }
.dup-q { margin: 0; text-align: center; font-weight: 700; font-size: 16px; }
.dup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* batch snap: many photos read at once */
.batch-read { margin-top: 6px; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.btile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #000; }
.btile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: opacity 0.3s; }
.btile.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%); background-size: 100% 200%; animation: bscan 1.2s linear infinite; }
.btile.ok img { opacity: 1; }
.btile.ok::before, .btile.bad::before { position: absolute; right: 6px; bottom: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.btile.ok::before { content: '✓'; background: #1f9d55; }
.btile.bad::before { content: '!'; background: #d64545; }
@keyframes bscan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.batch-read .label { margin-top: 16px; text-align: center; font-weight: 650; color: var(--muted); }
.batch-note { margin: -4px 0 6px; color: var(--muted); font-size: 14px; }
.bitem { margin-top: 10px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.brow { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; min-height: 64px; }
.bthumb { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; }
.bthumb img { width: 100%; height: 100%; object-fit: cover; }
.btext { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; }
.btext b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btext .sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .x { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--faint); }
.brow .x svg { width: 18px; height: 18px; }
.bitem .draft { margin: 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
.foot-links .from { flex-basis: 100%; text-align: center; color: var(--faint); font-size: 14px; }

/* accounts: sign in, your posts, the owner's check */
.sheet-sub { margin: -8px 0 14px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.field.solo { border-bottom: 0; padding: 0; margin: 4px 0 6px; }
.field.solo input { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.code-in { text-align: center; font-size: 28px !important; font-weight: 750; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }
.code-links { display: flex; justify-content: space-between; margin: 0 -12px; }
.link.quiet { color: var(--muted); font-weight: 600; }
.link.danger { color: var(--down); }
.report-opt.danger { color: var(--down) !important; }
.acct-row { display: grid; gap: 8px; margin: 14px 0 4px; }
.acct-strip { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 14px 0 4px; padding: 0 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 16px; text-align: left; }
.acct-row .acct-strip { margin: 0; }
.acct-strip svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.acct-strip .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-strip b { color: var(--accent); }
.acct-strip.review { font-weight: 650; }
.acct-strip.review.has { background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
.acct-strip.review.has svg { color: var(--accent); }
.acct-h { margin: 22px 0 8px; font-size: 18px; font-weight: 750; }
.muted { color: var(--muted); }
.post-list { display: grid; gap: 8px; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.post-row img, .post-row .tile { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; font-size: 24px; }
.post-row .grow, .review-top .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.post-row b, .review-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row .sub, .review-top .sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-foot { display: flex; justify-content: space-between; margin: 22px -12px 0; }
.badge.wait { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.report-wrap.owner { display: flex; gap: 6px; }
.report-wrap.owner > button { color: var(--accent); }
.review-list { display: grid; gap: 12px; }
.review-card { padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.review-top { display: flex; align-items: center; gap: 12px; }
.review-details { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); opacity: 0.85; }
.review-link { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-line { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.review-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.review-btns .btn { width: 100%; }
.review-more { display: flex; justify-content: space-between; margin: 4px -12px -8px; }
.btn.danger { background: var(--down); color: #fff; }
#list > .acct-strip, #list > .acct-row { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
.stack { display: grid; gap: 8px; }
.stack .field.solo { margin: 0; }
.poster { display: grid; gap: 2px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.poster b { color: var(--ink); font-size: 15px; }
.poster-status { margin-top: 2px; font-weight: 650; color: var(--accent); }
.acct-strip .grow b.plain { color: var(--ink); }
.acct-strip .grow .sub { color: var(--muted); font-size: 14px; }
#account-btn { position: relative; }
#account-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
#account-btn.in { color: var(--accent); }

/* Find events (2026-10-27): date strip, calendar, Free, search, onboarding, featured, businesses */
/* The language you'd switch to, as text, in the top bar */
.lang-btn { height: 44px; min-width: 36px; padding: 0 4px; border-radius: 22px; font-size: 14px; font-weight: 750; letter-spacing: 0.05em; color: var(--ink); }

/* Date strip: text pills, lighter than the chips above; a 44px tap target on a 34px pill */
.days { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 6px; scroll-padding: 0 16px; }
.days::-webkit-scrollbar { display: none; }
.dpill {
  position: relative; flex: none; height: 34px; padding: 0 11px; border-radius: 17px;
  color: var(--muted); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.dpill::before { content: ""; position: absolute; inset: -5px 0; }
.dpill:active { transform: scale(0.95); }
.dpill.none { color: var(--faint); }
.dpill.on { background: var(--accent-soft); color: var(--accent); }
.dpill.cal { width: 34px; padding: 0; margin-left: 4px; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.dpill.cal svg { width: 18px; height: 18px; }
.dpill.cal.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Calendar sheet */
.presets { display: flex; gap: 8px; margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.months { display: grid; gap: 18px; }
.month h3 { margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.dow, .dgrid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--faint); padding-bottom: 4px; }
.dc { position: relative; height: 44px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--ink); }
.dc .n { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; transition: background 0.15s, color 0.15s; }
.dc.past { color: var(--faint); font-weight: 500; }
.dc.today .n { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dc.has::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--accent); }
.dc.in { background: var(--accent-soft); }
.dc.from { border-radius: 22px 0 0 22px; }
.dc.to { border-radius: 0 22px 22px 0; }
.dc.from.to { border-radius: 22px; }
.dc.from .n, .dc.to .n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.dc.from::after, .dc.to::after { background: var(--on-accent); }

/* Search: one field under the hero, only while open */
.search { display: flex; align-items: center; gap: 10px; margin: 10px 20px 0; height: 44px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.search > svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.search-x { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--muted); }
.search-x svg { width: 18px; height: 18px; }
.fallback { margin: 26px 20px -8px; color: var(--muted); font-size: 15.5px; font-weight: 600; }

/* Onboarding */
.seg { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--fill); margin: 2px 0 18px; }
.seg-opt { height: 36px; padding: 0 16px; border-radius: 11px; font-size: 15px; font-weight: 650; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg-opt.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.likes { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.likes .chip { height: 42px; padding: 0 16px; }
.likes .chip.on { background: var(--accent); color: var(--on-accent); }
/* Family Hub: a person's colour as a dot on their chip */
.chip .sw { flex: none; width: 10px; height: 10px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.chip.on .sw { box-shadow: 0 0 0 1.5px var(--on-accent); }
.onboard-skip { display: block; margin: 6px auto 0; color: var(--muted); }

/* Featured: a quiet accent ring and a tiny label */
.card.featured { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.feat { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }

/* A verified business or group */
.badge.check { background: color-mix(in srgb, var(--now) 14%, transparent); color: color-mix(in srgb, var(--now) 70%, var(--ink)); }
.check-badge { flex: none; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--now) 16%, transparent); color: var(--now); font-size: 13px; font-weight: 800; }

/* Round 2 (2026-10-27): flyers on typed posts, businesses, the owner's stats, subscribe */
/* A flyer (or a business photo) in the form: thumb · label · Replace · × */
.flyer-box { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 600; }
.flyer-box .grow { flex: 1; min-width: 0; }
.flyer-box .more-dates-btn { padding: 8px 0; }
.field .flyer-box { border-bottom: 0; padding: 0; }
.flyer-btn { position: relative; overflow: hidden; cursor: pointer; }
.flyer-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.extras-btns { display: flex; flex-wrap: wrap; gap: 0 18px; }
.extras .extras-btns + .field, .extras .field:last-child { border-bottom: 0.5px solid var(--line); }
.extras .extras-btns:last-child { padding-bottom: 2px; }
/* A Facebook link: one quiet line, and the flyer button beside it */
.fb-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: -2px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.fb-hint .more-dates-btn { padding: 4px 0; min-height: 36px; }

/* "Post as {name}": one row with a switch; the whole row toggles */
.toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; margin: -4px 0 4px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; }
.toggle-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--faint); transition: background 0.2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease); }
.toggle-row.on .switch { background: var(--accent); }
.toggle-row.on .switch .knob { transform: translateX(20px); }

/* The business page */
.hero-img.org { height: min(40vh, 320px); }
.hero-tile.org { background: var(--accent-soft); }
.follow { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; }
.follow .pill { flex: none; padding: 0 20px; }
.follow .crowd { margin: 0; }
.follow:empty { display: none; }

/* follow anything: one quiet row under the event, and the star view's Following block */
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; }
.follow-row .lbl { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 2px; }
.follow-row .chip, .follow-chips .chip { height: 34px; padding: 0 12px; font-size: 14px; max-width: 100%; }
.follow-row .chip svg, .follow-chips .chip svg { flex: none; width: 15px; height: 15px; }
.follow-row .chip .t, .follow-chips .chip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#list > .following { width: calc(100% - 32px); margin: 14px 16px 0; }
.following .acct-h { margin: 0 0 8px; font-size: 16px; }
.follow-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-chips .chip { padding-right: 10px; }
.follow-chips .chip .x { display: inline-flex; opacity: 0.7; }
a.row { text-decoration: none; color: inherit; }
.sheet .cards { padding: 0; }
.org-form .cat-pick { margin-top: 4px; }

/* The owner's check: a business, then its plan */
.review-top .tile.bthumb { display: grid; place-items: center; font-size: 24px; background: var(--fill); }
.plan-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-box .repeat-pick { margin: 0; }
.plan-box .review-btns { margin-top: 12px; }
.review-card.done { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--now) 50%, transparent); }
/* Feature until… (the owner, on any event) */
.report-wrap.owner .report-box .until { margin: 0; }
.report-box .until input { flex: 1; min-width: 0; }
.report-box .until .btn.small { flex: none; }

/* Stats: the accent is the only data color; numbers wear the ink */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 12px; }
.stat { padding: 14px 16px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 1px; }
.stat b { font-size: 30px; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { font-size: 14px; font-weight: 650; }
.stat small { font-size: 13px; font-weight: 600; color: var(--muted); }
.sbox { margin-top: 12px; padding: 14px 16px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.sbox h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.sbox h3 small { font-size: 13px; font-weight: 600; color: var(--muted); }
.srow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; width: 100%; padding: 7px 0; border-top: 0.5px solid var(--line); font-size: 15.5px; text-align: left; color: var(--ink); }
.sbox h3 + .srow, .sbox h3 + .muted { border-top: 0; }
.srow .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow b { font-variant-numeric: tabular-nums; }
.srow small { flex-basis: 100%; color: var(--muted); font-size: 13.5px; font-weight: 600; }
button.srow { min-height: 44px; }
.sbox .muted { margin: 4px 0; font-size: 15px; }
.readout { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.readout b { color: var(--ink); font-size: 20px; font-weight: 750; margin-right: 2px; }
.chart { position: relative; }
.ymax { position: absolute; left: 0; top: -2px; font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: stretch; gap: 2px; height: 150px; }
.cbar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; }
.cbar .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.cbar i { display: block; width: min(100%, 18px); border-radius: 4px 4px 0 0; background: var(--accent); opacity: 0.45; transition: opacity 0.15s; }
.cbar.on i { opacity: 1; }
.cbar small { font-size: 11px; font-weight: 600; line-height: 1; color: var(--faint); }
.cbar.on small { color: var(--ink); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--faint); }
.funnel { display: grid; gap: 7px; margin-top: 4px; }
.frow { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: baseline; font-size: 15px; }
.frow b { font-variant-numeric: tabular-nums; }
.fbar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.sfoot { margin: 16px 4px 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Subscribe: the feed link, and the toggles that shape it */
.url-box { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--fill); color: var(--ink); font: 600 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.family { margin: 16px 0 0; text-align: center; font-size: 14.5px; }
.review-link.quiet { color: var(--muted); }

/* Home town: the quiet line under the title in wide mode, the leading chip, and the town sheet */
.hero-sub { margin: 3px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
h1 { overflow-wrap: anywhere; }
.chip.home { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 650; }
.chip.home .e { font-size: 14px; }
.btn.loc { margin: 2px 0 14px; }
.btn.loc svg { width: 20px; height: 20px; }
.town-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.town-search svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.town-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; -webkit-appearance: none; appearance: none; }
.town-search input::-webkit-search-cancel-button, .town-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.town-search input::placeholder { color: var(--faint); }
.town-list { display: grid; gap: 2px; margin: 10px 0 0; }
.town-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 12px; color: var(--ink); font-size: 16.5px; text-align: left; }
.town-row:active { background: var(--fill); }
.town-row .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.town-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.town-row .sub { color: var(--muted); font-size: 14px; }
.town-row.on b { color: var(--accent); }
.town-row svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.town-sep { height: 0.5px; margin: 8px 0; background: var(--line); }
.town-none { margin: 16px 0; text-align: center; font-size: 15.5px; }

/* ---------- "?" sheet and the privacy line ---------- */
.faq { margin: 0 0 16px; }
.faq h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.faq p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
footer a { display: block; width: 100%; color: var(--faint); font-weight: 600; font-size: 13px; padding: 10px 8px 0; text-decoration: none; }
