/* BYO Eats — "Shiraz" theme: burgundy and aubergine, warm cream, gold and coral accents */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/fraunces-latin.woff2") format("woff2"); }

:root {
  --bg: #fbf6ef;
  --bg-glow: radial-gradient(1200px 500px at 85% -10%, rgba(192, 138, 46, .14), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(122, 31, 61, .10), transparent 60%);
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: #f4ebe0;
  --border: rgba(91, 21, 48, .12);
  --border-strong: rgba(91, 21, 48, .22);
  --ink: #2a1520;
  --ink-2: #634653;
  --ink-3: #8f7783;
  --primary: #7a1f3d;
  --primary-ink: #fff8f0;
  --accent: #b7802a;          /* gold: stars, highlights */
  --coral: #d4553f;           /* EatClub deals */
  --success: #2f7d4f;
  --info-bg: rgba(122, 31, 61, .06);
  --hero-from: #5b1530;
  --hero-to: #2e1236;
  --hero-ink: #fbf1e6;
  --hero-ink-2: #e9cfc0;
  --hero-gold: #f0c36a;
  --fam-asian: #d4553f;
  --fam-middle-eastern: #b7802a;
  --fam-european: #8a3f9e;
  --fam-latin-american: #2a8c7f;
  --fam-african: #a85a2a;
  --fam-other: #8a8088;
  --nearme-dot: #7a1f3d;
  --shadow: 0 1px 2px rgba(46, 18, 54, .06), 0 8px 24px rgba(46, 18, 54, .08);
  --shadow-lift: 0 2px 4px rgba(46, 18, 54, .08), 0 14px 32px rgba(46, 18, 54, .12);
  --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170d14;
    --bg-glow: radial-gradient(1200px 520px at 85% -10%, rgba(240, 195, 106, .10), transparent 60%), radial-gradient(900px 520px at -10% 10%, rgba(160, 40, 80, .22), transparent 60%);
    --surface: rgba(43, 25, 37, .72);
    --surface-solid: #26161f;
    --surface-2: #2f1c28;
    --border: rgba(255, 228, 214, .10);
    --border-strong: rgba(255, 228, 214, .20);
    --ink: #f8ede4;
    --ink-2: #d2bcc3;
    --ink-3: #9c8590;
    --primary: #f0a3b8;
    --primary-ink: #2a0f1c;
    --accent: #f0c36a;
    --coral: #ff8a73;
    --success: #6fd39a;
    --info-bg: rgba(240, 163, 184, .08);
    --hero-from: #6e1b3b;
    --hero-to: #2a1033;
    --fam-asian: #ff8a73;
    --fam-middle-eastern: #f0c36a;
    --fam-european: #c89be0;
    --fam-latin-american: #5fd3c2;
    --fam-african: #e09a64;
    --fam-other: #b0a6ad;
    --nearme-dot: #f0a3b8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 36px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: var(--bg-glow); background-attachment: fixed; color: var(--ink); font: 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.page { max-width: 1120px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 18px; }

/* Header */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.brand img { border-radius: 10px; box-shadow: var(--shadow); }
.page-head h1 { font-family: var(--display); font-weight: 650; font-size: clamp(32px, 8vw, 46px); line-height: 1.05; letter-spacing: -0.015em; margin: 12px 0 8px; font-variation-settings: "opsz" 96; }
.summary { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 60ch; }

/* Search */
.searchbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; padding: 8px 0; margin: -4px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); color: var(--ink-3); }
.search:focus-within { border-color: var(--primary); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; height: 50px; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.clear { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; }
.nearme { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--primary); color: var(--primary-ink); font-weight: 650; box-shadow: var(--shadow); white-space: nowrap; --nearme-dot: var(--primary); }
.nearme[aria-pressed="true"] { background: var(--accent); color: #2a1520; }
.nearme[aria-busy="true"] { opacity: .7; }
@media (max-width: 360px) { .nearme { padding: 0 14px; } }
.locmsg { border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--ink-2); font-size: 15px; }
.locmsg strong { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 24px 22px; color: var(--hero-ink); background: linear-gradient(140deg, var(--hero-from), var(--hero-to)); box-shadow: var(--shadow-lift); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 195, 106, .35), transparent 70%); pointer-events: none; }
[hidden] { display: none !important; }
.hero-rank { font-family: var(--display); font-size: 68px; line-height: 64px; font-weight: 700; color: var(--hero-gold); }
.hero-body { position: relative; flex: 1 1 260px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-gold); }
.hero-name { font-family: var(--display); font-size: 34px; line-height: 1.1; font-weight: 650; }
.hero .stars { color: var(--hero-gold); }
.hero .stars span, .hero-small { color: var(--hero-ink-2); }
.hero .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: var(--hero-ink); }
.hero a { color: var(--hero-gold); }
.hero .bottle a, .hero .bottle a .d, .hero .bottle .k, .hero .bottle li.none span:last-child { color: var(--hero-ink); }
.hero .bottle .k { opacity: .75; }
.hero-small { font-size: 14px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); white-space: nowrap; }
.chip.tint { background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--ink)); border-color: color-mix(in srgb, var(--c) 32%, transparent); }
.chip.ta { --c: var(--success); }
.chip.muted { background: transparent; border-style: dashed; color: var(--ink-3); }
.chip.warn { background: transparent; border-style: dashed; color: var(--ink-2); }
.stars { color: var(--accent); letter-spacing: 1.5px; font-size: 14px; }
.stars span { color: var(--ink-2); letter-spacing: 0; }
.price { color: var(--ink); font-weight: 700; letter-spacing: .5px; margin-left: 4px; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.metric .v { font-family: var(--display); font-size: 28px; font-weight: 650; line-height: 1.15; color: var(--ink); }
.metric .l { font-size: 13px; color: var(--ink-2); }

/* Section & filters */
.section h2 { font-family: var(--display); font-weight: 650; font-size: 26px; line-height: 1.15; margin: 6px 0 4px; }
.caption { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-size: 12px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset button { appearance: none; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 550; background: var(--surface-solid); color: var(--ink); border: 1px solid var(--border-strong); }
.chipset button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chipset button.soon { color: var(--ink-3); border-style: dashed; background: transparent; }
.chipset button.soon small { font-size: 11px; font-weight: 600; margin-left: 5px; text-transform: uppercase; letter-spacing: .06em; }
.chipset button.soon[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); border: 2px dashed var(--primary); }
.chipset.sub { padding: 10px; border-radius: var(--r-md); background: var(--surface-2); }
.chipset.sub button { min-height: 38px; font-size: 14px; }
.chipset .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.seg-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.seg-wrap::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 550; min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.seg button:disabled { opacity: .4; cursor: default; }
.legend { font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legend b { color: var(--ink); font-weight: 700; }
.legend .ln { flex-basis: 100%; color: var(--ink-3); }
.toggles { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 500; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 48px; height: 28px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; flex: none; }
.thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.toggle input:checked + .track { background: var(--primary); }
.toggle input:checked + .track .thumb { transform: translateX(20px); }
.toggle input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }
.result-count { margin: 0 0 10px; font-size: 14px; color: var(--ink-3); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 18px 0 10px; font-family: var(--display); font-size: 21px; font-weight: 650; }
.group-head:first-child { margin-top: 0; }
.group-title { min-width: 0; }
.group-count { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.group-see { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--surface-solid); color: var(--primary); font-family: var(--font); font-size: 15px; font-weight: 650; line-height: 1; white-space: nowrap; cursor: pointer; }
.group-see:active { background: var(--primary); color: var(--primary-ink); }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px 21px; border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 55%, transparent)); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-name { font-family: var(--display); font-size: 21px; line-height: 1.2; font-weight: 650; }
.rank { flex: none; text-align: right; line-height: 1.1; }
.rank b { display: block; font-family: var(--display); font-size: 21px; color: var(--ink-3); }
.rank small { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.dist { align-self: flex-start; font-size: 13px; font-weight: 650; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 999px; padding: 2px 10px; }
.dish { font-size: 15.5px; font-weight: 500; }
.meta { font-size: 12.5px; color: var(--ink-3); margin-top: -4px; }
.deal { text-decoration: none; display: block; border-radius: var(--r-md); padding: 10px 12px; min-height: 44px; background: color-mix(in srgb, var(--coral) 10%, transparent); border: 1px solid color-mix(in srgb, var(--coral) 38%, transparent); }
.deal .d1 { font-size: 12px; font-weight: 750; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; }
.deal .d1::after { content: " ↗"; }
.deal .d2 { font-size: 13.5px; color: var(--ink); }
.bottle { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 0; font-size: 13.5px; color: var(--ink-2); }
.bottle li { display: grid; grid-template-columns: 74px 1fr; align-items: center; min-height: 36px; }
.bottle .k { font-weight: 600; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.bottle a { display: flex; align-items: center; gap: 8px; min-height: 36px; min-width: 0; color: var(--ink-2); text-decoration: none; }
.bottle a .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.bottle a .d { flex: none; color: var(--ink-3); }
.bottle li.none span:last-child { color: var(--ink-3); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-2); gap: 8px; }
.card-foot a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; font-weight: 650; text-decoration: none; }
.note { font-size: 13px; color: var(--ink-3); }

/* Empty, callouts, rows */
.empty { text-align: center; padding: 26px 18px; border-radius: var(--r-lg); border: 1.5px dashed var(--border-strong); background: var(--surface); color: var(--ink-2); }
.empty .big { font-size: 34px; }
.empty strong { display: block; font-family: var(--display); font-size: 21px; color: var(--ink); margin: 6px 0 4px; }
.callout { border-radius: var(--r-lg); padding: 15px 17px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; box-shadow: var(--shadow); }
.callout.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.callout strong { display: block; margin-bottom: 3px; font-family: var(--display); font-size: 17px; }
.rows { list-style: none; margin: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.rows li + li { border-top: 1px solid var(--border); }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 62px; text-decoration: none; color: inherit; }
.rows a:active { background: var(--surface-2); }
.row-title { font-weight: 650; }
.row-detail { font-size: 13px; color: var(--ink-2); }
.row-phone { flex: none; font-size: 14px; font-weight: 650; color: var(--primary-ink); background: var(--primary); white-space: nowrap; padding: 9px 14px; border-radius: 999px; }
.footnote { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* All Sydney grouped view + progressive lists */
.region-group { margin-bottom: 22px; }
.region-group + .region-group { padding-top: 6px; border-top: 1px solid var(--border); }
.see-all { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 50px; margin-top: 12px; border-radius: 999px; border: 1.5px solid var(--primary); background: transparent; color: var(--primary); font: inherit; font-size: 15.5px; font-weight: 650; cursor: pointer; }
.see-all:active { background: var(--primary); color: var(--primary-ink); }
.show-more { border-style: solid; background: var(--surface-solid); }
.chipset button.more { border-style: dashed; color: var(--primary); }
#footSentinel { height: 1px; }
.deal-chip { display: inline-flex; align-self: flex-start; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); font-weight: 700; font-size: 13.5px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent); }
.details-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 2px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.details-btn[aria-expanded="true"] span { transform: rotate(180deg); }
.details-btn span { transition: transform .2s; }
.muted-t { color: var(--ink-3); }
/* Regions: two rows that scroll sideways, so 13 chips never push the list off screen */
.region-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
.region-scroll::-webkit-scrollbar { display: none; }
.chipset.regions { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-auto-columns: max-content; width: max-content; padding-right: 24px; }
.more-filters { border-top: 1px solid var(--border); padding-top: 4px; }
.more-filters summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 48px; align-content: center; cursor: pointer; font-weight: 650; color: var(--primary); }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: "▾"; margin-left: auto; color: var(--ink-2); transition: transform .2s; }
.more-filters[open] summary::after { transform: rotate(180deg); }
.more-filters summary small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.more-body { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
/* While searching, get the summary out of the way so results sit near the top */
body.searching #metrics, body.searching #caption { display: none; }


/* ---- BYO tonight soft preference ---- */
.tonight-row { margin: 10px 0 4px; }
.card.dim { opacity: 0.55; }
.band-head { font-family: var(--serif, Fraunces, Georgia, serif); font-size: 1.05rem; margin: 18px 0 8px; grid-column: 1 / -1; }
.band-head.muted { color: var(--ink-3); font-size: 0.95rem; }
.tonight-note { font-size: 13.5px; color: var(--ink-2); background: var(--chip); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; grid-column: 1 / -1; }
.chip.ok { background: color-mix(in srgb, #2d6a4f 14%, transparent); color: #1b4332; border-color: transparent; }
@media (prefers-color-scheme: dark) {
  .chip.ok { background: color-mix(in srgb, #95d5b2 18%, transparent); color: #d8f3dc; }
}

/* ---- Plan a night ---- */
.searchbar { flex-wrap: wrap; }
.plan-btn {
  flex: none; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.plan-btn[aria-pressed="true"] { background: var(--brand, #5b1530); color: #fff; border-color: transparent; }
.plan-add {
  margin-top: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px dashed var(--border-strong); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.plan-add.on { border-style: solid; background: color-mix(in srgb, var(--brand, #5b1530) 12%, transparent); color: var(--brand, #5b1530); }
.card.picked { outline: 2px solid color-mix(in srgb, var(--brand, #5b1530) 45%, transparent); }
body.plan-mode .plan-btn { /* keep visible */ }

.sheet {
  position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, #000 45%, transparent);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
}
.sheet[hidden] { display: none !important; }
.sheet-card {
  width: min(440px, 100%); max-height: min(88vh, 720px); overflow: auto;
  background: var(--card, #fff); color: var(--ink); border-radius: 20px 20px 16px 16px;
  padding: 16px 16px 20px; box-shadow: 0 16px 48px color-mix(in srgb, #000 28%, transparent);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head h2 { margin: 0; font-family: var(--serif, Fraunces, Georgia, serif); font-size: 1.25rem; }
.sheet-close { border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--ink-3); cursor: pointer; min-width: 44px; min-height: 44px; }
.sheet-lead { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 14px; }
.sheet-empty { font-size: 14px; color: var(--ink-3); padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-msg { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--brand, #5b1530); color: #fff; border-color: transparent; }
.btn.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 36px; font-size: 13px; }
.planner-picks { display: grid; gap: 8px; }
.planner-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--chip, #f3ebe3); }
.planner-row strong { display: block; }
.planner-row span { font-size: 12.5px; color: var(--ink-3); }
.vote-list { display: grid; gap: 8px; }
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.vote-row.mine { border-color: var(--brand, #5b1530); box-shadow: inset 0 0 0 1px var(--brand, #5b1530); }
.vote-main strong { display: block; }
.vote-main span { font-size: 12.5px; color: var(--ink-3); }
.vote-tally { text-align: right; }
.vote-tally b { display: block; font-size: 1.2rem; }
.vote-tally small { color: var(--ink-3); }
.vote-meta { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }

/* ---- Corkage calculator sticky ---- */
.calc-sticky {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  pointer-events: none;
}
.calc-sticky .calc-toggle, .calc-sticky .calc-panel { pointer-events: auto; }
.calc-toggle {
  width: 100%; min-height: 44px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, #000 16%, transparent);
}
.calc-panel {
  margin-top: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--card); box-shadow: 0 8px 28px color-mix(in srgb, #000 12%, transparent);
}
.calc-lead { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-field { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.calc-field input, .calc-field select {
  min-height: 42px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg, #fff); color: var(--ink); font: inherit; font-weight: 500; padding: 0 10px;
}
.calc-hint { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }
.calc-result { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: var(--chip, #f3ebe3); }
.calc-result.win { background: color-mix(in srgb, #2d6a4f 16%, transparent); }
.calc-result.lose { background: color-mix(in srgb, #9b2226 14%, transparent); }
.calc-result.need, .calc-result.info, .calc-result.even { }
.calc-open {
  display: block; width: 100%; margin-top: 8px; min-height: 40px; border: 0; border-top: 1px solid var(--border);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; padding: 8px 2px 0;
}
body { padding-bottom: 8px; }

.page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
