:root {
  --ink: #22211e;
  --muted: #6f6b63;
  --paper: #f4f0e8;
  --paper-deep: #eae3d7;
  --white: #fffdf8;
  --tomato: #ef5a3c;
  --tomato-dark: #cb3e24;
  --butter: #f5c84c;
  --lime: #bcd96d;
  --lilac: #b9a7e8;
  --aqua: #7cc7c0;
  --border: rgba(34, 33, 30, 0.14);
  --shadow: 0 18px 50px rgba(45, 38, 28, 0.1);
  --small-shadow: 0 8px 24px rgba(45, 38, 28, 0.09);
  --radius: 22px;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 200, 76, 0.15), transparent 24rem),
    radial-gradient(circle at 96% 44%, rgba(185, 167, 232, 0.14), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(239, 90, 60, 0.38);
  outline-offset: 3px;
}

.shell { min-height: 100vh; }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-areas: "brand cities account";
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(34, 33, 30, 0.09);
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 11px 15px 11px;
  color: var(--white);
  background: var(--tomato);
  font-family: var(--sans);
  font-size: 17px;
  transform: rotate(-4deg);
}

.city-tabs {
  grid-area: cities;
  justify-self: center;
  display: flex;
  max-width: min(50vw, 620px);
  align-items: center;
  gap: 4px;
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
}

.city-tab {
  padding: 8px 15px;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.city-tab.active { background: var(--ink); color: var(--white); }
.city-tab-empty { color: var(--muted); cursor: default; }

.mobile-city-picker { display: none; }

.top-actions {
  grid-area: account;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.avatar-button,
.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(34, 33, 30, 0.12);
  border-radius: 50%;
  background: var(--lilac);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar.alt { background: var(--lime); }
.avatar.small { width: 25px; height: 25px; font-size: 10px; }
.avatar-button { cursor: pointer; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover { transform: translateY(-1px); box-shadow: var(--small-shadow); }
.button.primary { background: var(--tomato); }
.button.primary:hover { background: var(--tomato-dark); }
.button.secondary { border-color: var(--border); color: var(--ink); background: var(--white); }
.button.ghost { min-height: 36px; padding: 7px 11px; color: var(--ink); background: transparent; }
.button.soft { color: var(--ink); background: var(--butter); }
.button.full { width: 100%; }
.button:disabled { opacity: 0.45; transform: none; box-shadow: none; cursor: not-allowed; }

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px 4vw 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: rgba(34, 33, 30, 0.65);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-title,
.modal-title,
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.date-panel {
  display: flex;
  min-height: 176px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: 26px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--small-shadow);
}

.date-panel-main { min-width: 0; }
.date-panel-eyebrow { margin-bottom: 9px; color: rgba(255,255,255,.55); }
.date-title,
.date-restaurant {
  display: block;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.date-restaurant { width: fit-content; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.date-restaurant:hover { text-decoration-thickness: 2px; }
.date-meta { max-width: 760px; margin: 12px 0 0; color: rgba(255,255,255,.65); font-size: 14px; }
.date-panel-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button.dark-secondary { border-color: rgba(255,255,255,.18); color: var(--white); background: rgba(255,255,255,.08); }
.button.dark-secondary:hover { background: rgba(255,255,255,.14); }
.button.light-primary { color: var(--ink); background: var(--white); }
.button.light-primary:hover { background: var(--paper); }

.board-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(35px, 3.5vw, 48px); }
.section-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.board-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.search,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
}

.search { width: min(260px, 45vw); border-radius: 999px; }
.field textarea { min-height: 92px; resize: vertical; }
.field label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 750; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.filter-pills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 3px; }
.filter-pill {
  padding: 8px 13px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill.active { color: var(--white); background: var(--ink); }

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.restaurant-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(34, 33, 30, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 0 rgba(34,33,30,.03);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.restaurant-card:hover { transform: translateY(-2px); box-shadow: var(--small-shadow); }
.restaurant-card.selected { box-shadow: 0 0 0 3px var(--tomato), var(--shadow); }
.restaurant-card.compact { border-radius: 18px; }

.card-badges { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.owner-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  width: fit-content;
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 750;
}

.status-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--tomato);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.select-check {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--tomato);
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  font-weight: 800;
}

.card-body { display: flex; min-height: 220px; flex: 1; flex-direction: column; padding: 20px; }
.card-kicker { display: flex; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.card-title { margin: 7px 0 9px; font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.card-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.map-link { font-size: 12px; font-weight: 750; text-decoration: none; }
.map-link:hover { text-decoration: underline; }

.empty-state {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 40px;
  border: 1px dashed rgba(34, 33, 30, .24);
  border-radius: 28px;
  text-align: center;
  background: rgba(255,255,255,.34);
}
.empty-illustration { font-family: var(--serif); font-size: 74px; line-height: 1; }
.empty-title { margin: 12px 0 5px; font-family: var(--serif); font-size: 31px; }
.empty-copy { max-width: 440px; margin: 0 auto 20px; color: var(--muted); }

.overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  background: rgba(34, 33, 30, .48);
  backdrop-filter: blur(7px);
  animation: fade-in 160ms ease-out;
}

.modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
  animation: slide-in 220ms cubic-bezier(.2,.8,.2,1);
}

.modal.wide { width: min(940px, 100%); }
.modal-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 25px 26px 18px; background: rgba(244,240,232,.93); backdrop-filter: blur(16px); }
.modal-title { font-size: clamp(35px, 5vw, 52px); }
.modal-copy { max-width: 580px; margin: 9px 0 0; color: var(--muted); }
.modal-body { padding: 4px 26px 28px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.modal-actions.split-actions { justify-content: space-between; flex-wrap: wrap; }
.action-group { display: flex; flex-wrap: wrap; gap: 8px; }

.form-stack { display: grid; gap: 15px; }
.details { border: 0; }
.details summary { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }

.maps-resolve-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.resolve-button { min-width: 152px; }
.button-spinner { width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.field-hint.error { color: #a13724; }
.manual-details-link { width: max-content; padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.restaurant-details { display: grid; gap: 15px; margin: 4px 0 0; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255, 253, 248, .68); }
.restaurant-details-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.restaurant-details-head .eyebrow { margin-bottom: 3px; }
.restaurant-details-head h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 500; letter-spacing: -.035em; }
.restaurant-details-copy { margin: -7px 0 2px; color: var(--muted); font-size: 13px; }
.details-status { padding: 5px 9px; border-radius: 999px; color: #416016; background: rgba(188, 217, 109, .35); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.details-status.manual { color: var(--muted); background: var(--paper-deep); }
.optional-label { color: var(--muted); font-size: 10px; font-weight: 600; }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pick-card { position: relative; min-height: 140px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 18px; background: var(--white); text-align: left; }
.pick-card.selected { border-color: var(--tomato); }
.pick-select { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.pick-copy { padding: 18px 48px 10px 18px; }
.pick-name { font-family: var(--serif); font-size: 25px; line-height: 1.05; }
.pick-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
.pick-map { display: inline-flex; align-items: center; gap: 4px; margin: 0 18px 16px; }
.pick-card .select-check { top: 12px; bottom: auto; }

.waiting-card,
.notice {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}
.waiting-card { text-align: center; }
.waiting-glyph { display: grid; width: 72px; height: 72px; margin: 4px auto 14px; place-items: center; border-radius: 50%; background: var(--butter); font-family: var(--serif); font-size: 36px; animation: breathe 2s ease-in-out infinite; }
.notice { margin: 14px 0; background: rgba(245,200,76,.23); }
.notice.tie { background: rgba(185,167,232,.34); }
.notice strong { display: block; margin-bottom: 3px; }

.review-stack { display: grid; gap: 12px; }
.review-card { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); }
.review-card-head { display: flex; align-items: center; gap: 10px; }
.review-card-head strong, .review-card-head small { display: block; }
.review-card-head small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.partner-review { background: rgba(255, 253, 248, .55); }
.review-reaction { width: max-content; padding: 6px 10px; border-radius: 999px; background: rgba(188, 217, 109, .35); font-size: 12px; font-weight: 750; }
.review-note, .review-empty { margin: 0; color: var(--muted); }
.review-note { white-space: pre-wrap; }
.review-empty { font-size: 13px; font-style: italic; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 16px; background: var(--paper-deep); }
.segment { padding: 10px; border: 0; border-radius: 12px; background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.segment.active { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.ranking-list { display: grid; gap: 9px; margin-top: 18px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px; padding: 0 9px 0 0; border: 1px solid var(--border); border-radius: 17px; background: var(--white); }
.rank-number { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--serif); font-size: 20px; }
.rank-place-link { display: grid; min-width: 0; align-self: stretch; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; padding: 9px; border-radius: 16px 0 0 16px; color: inherit; text-decoration: none; cursor: pointer; }
.rank-place-link:focus-visible { outline: 3px solid rgba(244, 87, 57, .28); outline-offset: 2px; }
.rank-place-copy { display: block; min-width: 0; }
.rank-title-line { display: flex; min-width: 0; align-items: baseline; gap: 5px; }
.rank-name { font-family: var(--serif); font-size: 21px; line-height: 1.05; }
.rank-owner { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.rank-neighborhood { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.rank-place-link:hover .rank-name { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rank-buttons { display: flex; gap: 4px; }
.rank-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--paper); cursor: pointer; }
.rank-button:disabled { opacity: .3; cursor: default; }

.winner-stage { overflow: hidden; border-radius: 24px; color: var(--white); background: var(--ink); }
.winner-heading { padding: 26px 24px 8px; }
.winner-heading p { margin: 13px 0 0; color: rgba(255,255,255,.65); font-size: 13px; }
.winner-title { margin: 3px 0 0; font-family: var(--serif); font-size: 44px; line-height: 1; }
.winner-title-link { display: block; width: fit-content; color: inherit; text-decoration-line: underline; text-decoration-color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.winner-title-link:hover { text-decoration-thickness: 2px; }
.winner-copy { padding: 12px 24px 25px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.score-item { display: flex; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.09); font-size: 12px; }

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1.18fr .82fr;
  overflow: hidden;
}

.landing-art {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 6vw, 80px);
  overflow: hidden;
  background: var(--tomato);
  color: var(--white);
}
.landing-art::before { position: absolute; top: 12%; right: -12%; width: 430px; height: 430px; border: 78px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; }
.landing-brand { position: relative; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 29px; font-weight: 700; }
.landing-title { position: relative; max-width: 720px; font-size: clamp(52px, 7vw, 100px); }
.landing-quote { position: relative; max-width: 580px; color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.45; }

.landing-panel { display: grid; min-height: 100vh; place-items: center; padding: 34px; background: var(--paper); }
.auth-card { width: min(440px, 100%); }
.auth-title { margin: 0 0 7px; font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -.04em; }
.auth-copy { margin: 0 0 25px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: var(--border); content: ""; }
.auth-switch { display: flex; gap: 5px; margin-bottom: 20px; padding: 5px; border-radius: 15px; background: var(--paper-deep); }
.auth-switch button { flex: 1; padding: 9px; border: 0; border-radius: 11px; background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-switch button.active { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.privacy-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.session-shelf { display: grid; gap: 8px; }
.session-row {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}
.session-row:hover { border-color: rgba(34,33,30,.32); }
.session-row.active { border-color: var(--tomato); background: rgba(239,90,60,.06); }
.session-row strong, .session-row small { display: block; }
.session-row strong { font-size: 13px; }
.session-row small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.invite-page { display: grid; min-height: 100vh; place-items: center; padding: clamp(16px, 4vw, 30px); }
.invite-card { width: min(600px, 100%); padding: clamp(26px, 6vw, 42px); overflow: hidden; border: 1px solid var(--border); border-radius: 30px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.invite-brand { margin: 0 auto 30px; }
.invite-eyebrow { justify-content: center; }
.invite-title { font-size: clamp(40px, 9vw, 58px); }
.invite-copy { max-width: 480px; margin: 14px auto 25px; }
.invite-link-preview { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin: 24px 0; padding: 15px 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); text-align: left; }
.invite-link-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--tomato-dark); background: rgba(239, 90, 60, .12); }
.invite-link-details { display: grid; min-width: 0; gap: 2px; }
.invite-link-details strong { font-size: 13px; }
.invite-link-details code { display: block; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.invite-ready { padding: 5px 8px; border-radius: 999px; color: #416016; background: rgba(188, 217, 109, .35); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.invite-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.invite-hint { margin-top: 18px; }
.invite-signout { margin-top: 18px; }

.toast-region { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 380px; padding: 13px 17px; border-radius: 15px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); animation: toast-in 220ms ease-out; }
.toast.error { background: #9d3020; }

.skeleton { position: relative; overflow: hidden; background: var(--paper-deep); }
.skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); content: ""; animation: shimmer 1.2s infinite; }
.loading-page { display: grid; min-height: 100vh; place-items: center; font-family: var(--serif); font-size: 27px; }
.danger-link { border: 0; color: #a13724; background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(30px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes breathe { 50% { transform: scale(1.06) rotate(3deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-tabs { max-width: 44vw; }
}

@media (max-width: 820px) {
  .date-panel { align-items: flex-start; flex-direction: column; }
  .date-panel-actions { justify-content: flex-start; }
  .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing { grid-template-columns: 1fr; }
  .landing-art { min-height: 46vh; }
  .landing-panel { min-height: 54vh; }
  .landing-title { max-width: 540px; font-size: clamp(48px, 11vw, 82px); }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
    grid-template-areas: "brand cities account";
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px 16px;
  }
  .brand { font-size: 24px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { display: none; }
  .city-tabs { display: none; }
  .mobile-city-picker {
    position: relative;
    grid-area: cities;
    display: block;
    width: min(100%, 190px);
    min-width: 0;
    justify-self: center;
  }
  .mobile-city-picker select {
    width: 100%;
    min-height: 42px;
    padding: 9px 35px 9px 15px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    appearance: none;
    color: var(--white);
    background: var(--ink);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-city-picker select:disabled { color: rgba(255,255,255,.6); cursor: default; }
  .mobile-city-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    color: var(--white);
    pointer-events: none;
    transform: translateY(-50%);
  }
  .page { padding: 22px 16px 80px; }
  .date-panel { min-height: 0; margin-bottom: 34px; padding: 23px; border-radius: 22px; }
  .date-panel-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .date-panel-actions .button { width: 100%; }
  .board-header { align-items: flex-start; flex-direction: column; }
  .board-tools { width: 100%; justify-content: stretch; }
  .search { flex: 1; width: auto; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .restaurant-card { display: flex; min-height: 0; }
  .card-body { min-height: 205px; }
  .card-title { font-size: 24px; }
  .card-note { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .overlay { padding: 0; }
  .modal, .modal.wide { max-height: 94vh; border-radius: 28px 28px 0 0; }
  .modal-head { padding: 20px 18px 15px; }
  .modal-body { padding: 3px 18px 24px; }
  .modal-title { font-size: 38px; }
  .pick-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .rank-place-link { grid-template-columns: 36px minmax(0, 1fr); }
  .rank-name { font-size: 18px; }
  .rank-owner { font-size: 12px; }
  .landing-art { min-height: 46vh; padding: 28px 24px; }
  .landing-panel { min-height: 54vh; padding: 28px 20px; }
  .landing-quote { font-size: 16px; }
  .landing-title { font-size: clamp(40px, 11vw, 48px); }
  .maps-resolve-row { grid-template-columns: 1fr; }
  .resolve-button { width: 100%; }
  .restaurant-details { padding: 17px; }
  .restaurant-details-head { align-items: flex-start; flex-direction: column; }
  .invite-card { border-radius: 24px; }
  .invite-brand { margin-bottom: 24px; }
  .invite-title { font-size: clamp(40px, 13vw, 52px); }
  .invite-link-preview { grid-template-columns: auto minmax(0, 1fr); }
  .invite-ready { display: none; }
  .invite-actions { display: grid; grid-template-columns: 1fr; }
  .invite-actions .button { width: 100%; }
}

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