/* TableJump web — D3 slate (Schibsted Grotesk). Mirrors iOS DesignSystem tokens. */
@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&display=swap");

:root {
  --night: #151b24;
  --night-elevated: #1f2733;
  --night-soft: #263040;
  --border: #2a3443;
  --border-strong: #2e3949;
  --ink: #eef1f5;
  --ink-secondary: #c4cbd5;
  --ink-muted: #a9b2bf;
  --ink-faint: #8c96a4;
  --ember: #dba351;
  --ember-soft: #33291b;
  --ember-tint: #33291b;
  --ember-border: #6b5230;
  --ember-deep: #6b5230;
  --on-accent: #151b24;
  --live: #73b88c;
  --live-tint: #17271f;
  --live-ink: #10201a;
  --watching: #a9c8e0;
  --watching-tint: #1d3247;
  --paused: #e8b47a;
  --paused-tint: #3a2e1c;
  --danger: #db6157;
  --resy: #f08a80;
  --resy-tint: #3b2529;
  --opentable: #e8b47a;
  --opentable-tint: #3a2e1c;
  --sevenrooms: #a9c8e0;
  --sevenrooms-tint: #1d3247;
  --doordash: #f08a80;
  --doordash-tint: #3a221f;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-brand: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --header-h: 72px;
  --tabbar-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body.tablejump {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--night);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
}
body.tablejump:has(.tabs-bottom) {
  padding-bottom: var(--tabbar-h);
}

button, input, select, textarea { font-family: inherit; }

.brand,
h1, h2, h3,
.hero-title,
.section-head h2,
.sheet h3 {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tablejump-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 42% at 0% 0%, rgba(219, 163, 81, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(29, 50, 71, 0.45), transparent 52%),
    var(--night);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(21, 27, 36, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

a.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 32px;
  line-height: 1;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 2.5rem;
}

.brand {
  font-size: clamp(2rem, 6vw, 2.4rem);
  color: var(--ink);
  line-height: 1.05;
}

.tagline, .hero-lead { color: var(--ink-secondary); font-size: 16px; margin-top: 0.45rem; }
.hint { color: var(--ink-faint); font-size: 13px; margin-top: 0.35rem; line-height: 1.5; }
.hint:empty { display: none; }

.hero { margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
}
#heroCity { color: var(--ember); white-space: nowrap; }

/* City + Vibes row (collapsed = Open/Watch-sized pills), search underneath. */
.discover-filters { margin: 0 0 1rem; }
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.filter-pills-row > .city-cards,
.filter-pills-row > #vibeChipsWrap {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
.filter-pills-row .city-cards { margin: 0; }
.filter-pills-row .city-cards[data-expanded="false"] {
  width: max-content;
  max-width: 100%;
}
.filter-pills-row .city-cards[data-expanded="false"] .city-card {
  width: auto;
  max-width: 100%;
}
.filter-pills-row > .city-cards[data-expanded="true"],
.filter-pills-row > #vibeChipsWrap:has(.city-cards[data-expanded="true"]) {
  flex: 1 1 100%;
}
.filter-pills-row .city-cards[data-expanded="true"] {
  width: 100%;
}

/* City + Vibes: one selected card. Click opens the same card grid as the month picker. */
.city-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 1rem;
}
.city-cards[data-expanded="true"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.city-card {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--night-elevated);
  color: var(--ink);
  font: 700 14px inherit;
  letter-spacing: -0.01em;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}
.city-cards[data-expanded="false"] .city-card {
  justify-content: space-between;
  text-align: left;
}
.city-cards[data-expanded="true"] .city-card {
  min-height: 44px;
  border-radius: 999px;
  white-space: normal;
  padding: 8px 14px;
}
.city-card:hover { background: var(--night-soft); }
.city-card:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.city-card.on,
.city-card.on:hover {
  background: #fff;
  color: #151b24;
}
.city-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-left: 8px;
}
@media (min-width: 720px) {
  .city-cards[data-expanded="true"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#vibeChipsWrap[hidden] { display: none !important; }
.discover-filters .search { margin: 0; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-muted);
}

.topbar-meta a { color: var(--ember); text-decoration: none; font-weight: 600; }
.topbar-meta a:hover { color: #f0c27e; }
.topbar-meta a.header-account,
.topbar-meta a.btn { color: var(--ink); }
.quiet-link { color: var(--ink-faint) !important; font-size: 13px; font-weight: 600; }

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
}
.live-dot i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
}
.live-dot.on i {
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(115, 184, 140, 0.2);
}
.live-dot.on { color: #8fcca4; }

.tabs-inline { display: none; gap: 4px; align-items: center; }
.tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: #18202b;
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}

.tab {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.tabs-bottom .tab { min-height: 52px; border-radius: 12px; font-size: 12px; }
.tab.active { color: var(--ember); background: transparent; }
.tabs-inline .tab.active { background: var(--ember-tint); color: var(--ember); }
.nav-link { color: var(--ink-secondary); text-decoration: none; font-weight: 600; }
.tabs-inline .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
}
.tabs-bottom .nav-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.alerts-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.alerts-badge[hidden] { display: none; }

.panel { display: none; }
.panel.active { display: block; }

.label-caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}

.chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.15rem 0 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-secondary);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.chip.on {
  background: var(--ember-tint);
  border-color: var(--ember-border);
  color: var(--ember);
}
.chip:disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
  opacity: 1;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--night-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  min-height: 48px;
  padding: 0 16px;
  margin: 0.35rem 0 1rem;
}
.search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  min-height: 44px;
}
.search input::placeholder { color: var(--ink-faint); }
.search .icon { color: var(--ink-faint); display: inline-flex; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0.85rem;
}
.section-head h2 { font-size: 1.6rem; color: var(--ink); }
.section-head .count { color: var(--ink-faint); font-size: 15px; font-weight: 500; }

.discover-layout { display: block; }
.discover-side { display: none; }

.row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 12px;
  background: var(--night-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 0.65rem;
}
#discoverList > .row { cursor: pointer; }
#discoverList > .row:hover { border-color: var(--border-strong); }
#discoverList > .row:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.review-kicker {
  margin: 1.1rem 0 0.4rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.review-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.review-copy.lead { font-weight: 600; margin-bottom: 0.65rem; }
.review-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-highlights li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.review-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ember);
}
.review-status { margin: 0.35rem 0 0; font-size: 14px; color: var(--ink-muted); }
.review-status.err { color: var(--danger); }
.review-address {
  margin: 0.2rem 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-muted);
}
.review-address.is-empty { display: none; }
.row-lead { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }

.logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, #2a3342 0%, var(--night-soft) 100%);
  border: 1px solid var(--border);
  flex-shrink: 0;
  padding: 5px;
  box-sizing: border-box;
}
.logo-ph {
  display: flex; align-items: center; justify-content: center;
  font-family: "Schibsted Grotesk", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #f3d7a5;
  border: 1px solid rgba(240, 194, 126, 0.28);
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(243, 215, 165, 0.22), transparent 55%),
    linear-gradient(160deg, #3a2f24 0%, #241c16 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.logo-ph.resy {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(240, 138, 128, 0.28), transparent 55%),
    linear-gradient(160deg, #4a2a30 0%, #2a181c 100%);
  border-color: rgba(240, 138, 128, 0.35);
  color: #f6c4bf;
}
.logo-ph.opentable {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(218, 122, 74, 0.28), transparent 55%),
    linear-gradient(160deg, #4a3224 0%, #261910 100%);
  border-color: rgba(218, 122, 74, 0.35);
  color: #f0c7a8;
}
.logo-ph.sevenrooms {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(110, 168, 230, 0.28), transparent 55%),
    linear-gradient(160deg, #243648 0%, #15212c 100%);
  border-color: rgba(110, 168, 230, 0.35);
  color: #c5ddf5;
}
.logo-ph.doordash {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(240, 138, 128, 0.3), transparent 55%),
    linear-gradient(160deg, #4a2824 0%, #261614 100%);
  border-color: rgba(240, 138, 128, 0.4);
  color: #f6c4bf;
}
.logo-ph.unlisted { background: #2a2a2a; }

.row-body { min-width: 0; flex: 1; }
.row-body strong,
.watch-title strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.row-body > strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-meta a { color: var(--ember); }
.watch-error { color: var(--danger); white-space: normal; }
.plat-name { font-size: 12px; font-weight: 700; margin-top: 2px; }
.plat-name.resy, .plat-name.doordash { color: var(--resy); }
.plat-name.sevenrooms { color: var(--sevenrooms); }
.plat-name.opentable { color: var(--opentable); }
.plat-name.unlisted { color: var(--ink-faint, #8a8a8a); }

.vibe-tags { display: none; flex-wrap: wrap; gap: 6px; margin-top: 0.45rem; }
.vibe-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--night-soft);
  color: var(--ink-muted);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.platform-badge.resy { background: var(--resy-tint); color: var(--resy); }
.platform-badge.opentable { background: var(--opentable-tint); color: var(--opentable); }
.platform-badge.sevenrooms { background: var(--sevenrooms-tint); color: var(--sevenrooms); }
.platform-badge.doordash { background: var(--doordash-tint); color: var(--doordash); }
.platform-badge.unlisted { background: #2a2a2a; color: #b0b0b0; }

.row-actions {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  flex-shrink: 0;
}
.btn {
  border: none;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 6px;
}
.btn:active { opacity: 0.88; }
.btn-primary { background: var(--ember); color: var(--on-accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #3a4658;
  font-weight: 600;
}
.btn-danger { background: transparent; color: var(--danger); }
.btn-live { background: var(--live); color: var(--live-ink); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Platform “coming soon” Watch CTA — muted, not a faded primary gold. */
.btn-primary:disabled {
  background: #2a3340;
  color: var(--ink-faint, #8c96a4);
  opacity: 1;
  border: 1px solid #3a4658;
}
a.btn { color: inherit; }

.header-account { min-height: 44px; padding: 0 18px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.status-pill.watching { background: var(--watching-tint); color: var(--watching); }
.status-pill.notified { background: #1d3226; color: #8fcca4; }
.status-pill.paused { background: var(--paused-tint); color: var(--paused); }
.status-pill.expired,
.status-pill.cancelled { background: var(--night-soft); color: var(--ink-faint); }

.watch-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.watch-row.clickable { cursor: pointer; }
.sheet .snip {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.sheet .snip-head { margin-bottom: 8px; }
.sheet .snip-grid {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 6px 10px;
  margin: 0 0 10px;
  font-size: 14px;
}
.sheet .snip-grid dt { margin: 0; color: var(--ink-faint); }
.sheet .snip-grid dd { margin: 0; color: var(--ink); }
.sheet .snip-error { color: var(--danger); font-size: 13px; margin-bottom: 8px; }
.sheet .snip-link { font-size: 14px; margin-bottom: 8px; }
.sheet .snip-link a { color: var(--ember); }
.sheet .snip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.watch-title strong { font-size: 16px; }
.watch-row .watch-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.watch-row .watch-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-danger.btn-sm {
  background: var(--danger);
  color: #fff;
  border: none;
}

.more { position: relative; flex-shrink: 0; }
.more-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.more-menu {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 5;
  min-width: 148px;
  padding: 6px;
  background: var(--night-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.more-menu[hidden] { display: none; }
.more-menu button {
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
  border-radius: 8px;
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.more-menu button[data-act="delete"] { color: var(--danger); }

.expired-toggle {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px dashed #3a4658;
  background: transparent;
  color: var(--ink-secondary);
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.expired-list[hidden] { display: none; }

.opening-card {
  background: var(--live-tint);
  border: 1px solid #2d4a38;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 0.65rem;
  align-items: flex-start;
}
.opening-card strong { color: #8fcca4; font-size: 18px; }
.opening-card .row-actions { margin-left: auto; }

.empty {
  padding: 1.1rem 1rem;
  background: var(--night-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
  font-size: 15px;
}
.empty strong { color: var(--ink); display: block; margin-bottom: 0.3rem; }

.notif-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 1rem;
  padding: 14px 16px;
  background: var(--ember-soft);
  border: 1px solid var(--ember-border);
  border-radius: var(--radius-md);
}
.notif-prompt[hidden] { display: none; }
.notif-prompt p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.45;
}
.notif-prompt.denied {
  background: var(--night-elevated);
  border-color: var(--border-strong);
}
.notif-prompt .btn { flex: 0 0 auto; }

.side-card {
  background: var(--night-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.side-card h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.side-card .empty { background: transparent; border: none; padding: 0.25rem 0; }
.text-link {
  background: none;
  border: none;
  color: var(--ember);
  font: 600 14px var(--font-body);
  cursor: pointer;
  min-height: 44px;
  padding: 0;
}

.site-legal {
  margin-top: 0.75rem;
  text-align: right;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.45;
}
.site-legal nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-legal a {
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-legal a:hover { color: var(--ember); }
.site-legal p { margin: 0; }
.site-legal-page { margin-top: 1.25rem; }
@media (min-width: 960px) {
  body[data-tab="discover"] .site-legal-page { display: none; }
}
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1000;
}
.sheet {
  background: var(--night-elevated);
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  padding: 20px 20px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  overflow-y: auto;
  color: var(--ink);
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet h3 { font-size: 2rem; line-height: 1.05; margin-bottom: 0.2rem; }
.sheet .sub { color: var(--ink-muted); font-size: 14px; margin-bottom: 0.25rem; }
.icon-btn {
  width: 44px; height: 44px;
  margin: -6px -8px 0 0;
  border: none; border-radius: 999px;
  background: transparent; color: var(--ink-muted);
  font-size: 26px; line-height: 1; cursor: pointer; font-family: inherit;
}
.sheet label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 0.25rem;
}
.sheet-backdrop.picker-backdrop { z-index: 1100; }
.sheet-backdrop[data-edit-watch] { z-index: 1050; }
.sheet.picker-sheet h3 { font-size: 1.5rem; }
.sheet.month-sheet { max-width: 480px; }
.picker-sheet .sheet-head { align-items: center; }
.sheet-done {
  border: none;
  background: transparent;
  color: var(--ember);
  font: 700 16px var(--font-brand);
  cursor: pointer;
  min-height: 44px;
  padding: 8px 2px;
}
.sheet-done:hover { color: #f0c27e; }
.sheet-done:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: 8px;
}
.sheet .sheet-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.sheet .sheet-actions .btn { flex: 1; }
.sheet #wGo { width: 100%; min-height: 52px; font-size: 16px; margin-top: 4px; }
.sheet .msg { font-size: 14px; margin-top: 0.65rem; min-height: 1.1em; }
.sheet .msg.ok { color: var(--live); }
.sheet .msg.err { color: var(--danger); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .section-label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 1rem 0 0.5rem;
  font-size: 14px;
  color: var(--ink-secondary);
  font-weight: 600;
}
.sheet .section-label strong { color: var(--ink-faint); font-weight: 500; font-size: 13px; }

.sheet .party-chips {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  overflow-x: auto;
}
.sheet .party-chips .chip {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: var(--night-soft);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
}
.sheet .party-chips .chip.on {
  background: var(--ember-tint);
  border-color: var(--ember);
  color: #f0c27e;
}

.sheet .mode-chips {
  display: flex;
  gap: 0;
  padding: 3px;
  margin: 0 0 4px;
  border-radius: 12px;
  background: var(--night-soft);
  border: 1px solid var(--border-strong);
}
.sheet .mode-chips .chip {
  flex: 1;
  border: none;
  border-radius: 10px;
  min-height: 36px;
  padding: 0.45rem 0.65rem;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.sheet .mode-chips .chip.on {
  background: var(--ember-tint);
  border: 1px solid var(--ember);
  color: #f0c27e;
}

.dow-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  margin-bottom: 4px;
}
.dow-head span { font-size: 12px; font-weight: 600; color: var(--ink-faint); }

.sheet .dow-chips {
  display: flex;
  gap: 6px;
  width: 100%;
}
.sheet .dow-chips .chip,
.sheet .dow-chips .dow-chip {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--night-soft);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.sheet .dow-chips .chip.on,
.sheet .dow-chips .dow-chip.on {
  background: var(--ember-tint);
  border-color: var(--ember);
  color: #f0c27e;
}

.sheet .date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
}
.sheet .date-pad { min-height: 44px; }
.sheet .date-card {
  width: auto;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--night-soft);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
}
.sheet .date-card .d-num { font-size: 14px; font-weight: 600; }
.sheet .date-card.on {
  background: var(--ember-tint);
  border-color: var(--ember);
  color: #f0c27e;
}
.sheet .date-card.is-today .d-num { font-size: 11px; letter-spacing: -0.03em; }

.month-jump {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  margin: 0 0 10px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: var(--night);
  color: var(--ink);
  font: 700 17px var(--font-brand);
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: left;
}
.month-jump:hover { background: var(--night-soft); }
.month-jump:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.month-chevron {
  width: 18px;
  height: 18px;
  color: var(--ember);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.month-jump[aria-expanded="true"] .month-chevron { transform: rotate(180deg); }

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.month-card {
  min-height: 72px;
  border: none;
  border-radius: 14px;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-brand);
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.month-card-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.month-card-year { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.month-card:hover { background: var(--night-soft); }
.month-card:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.month-card.on,
.month-card.on:hover { background: #fff; color: #151b24; }
.month-card.on .month-card-year { color: #3d4754; }

.time-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.time-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--night-soft);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.time-value:hover { background: #2e3a4c; }
.time-value:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
.time-value-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.time-value-read {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sheet.time-sheet { overflow: hidden; }
.wheel-readout {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}
.time-wheels {
  --wheel-h: 220px;
  --wheel-item: 44px;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr auto 1.15fr 1fr;
  align-items: stretch;
  height: var(--wheel-h);
  margin-top: 8px;
  user-select: none;
}
.wheel-shade {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--wheel-item);
  transform: translateY(-50%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  pointer-events: none;
  z-index: 0;
}
.wheel-colon {
  align-self: center;
  z-index: 2;
  font: 700 22px var(--font-brand);
  color: var(--ink);
  padding: 0 2px;
}
.wheel-col {
  position: relative;
  z-index: 1;
  height: var(--wheel-h);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
}
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-col:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: -2px;
  border-radius: 8px;
}
.wheel-pad { height: calc((var(--wheel-h) - var(--wheel-item)) / 2); }
.wheel-item {
  height: var(--wheel-item);
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font: 600 20px var(--font-brand);
  font-variant-numeric: tabular-nums;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.wheel-item:focus { outline: none; }
.wheel-item.on {
  color: var(--ink);
  font-weight: 700;
  font-size: 24px;
}

.watch-summary {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.watch-summary strong { color: var(--ink); font-weight: 700; }

.checkout-note {
  background: var(--night-elevated);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0.75rem 0 1rem;
}
.plan-card {
  border: 1px solid var(--border-strong);
  background: var(--night-elevated);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.plan-card.featured { border: 2px solid var(--ember); background: #221f19; }
.plan-card strong { font-size: 17px; }
.plan-price { font-weight: 800; letter-spacing: -0.02em; font-size: 28px; }
.plan-price span { font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0.75rem 0 1rem; }
.feature-list li { font-size: 15px; color: var(--ink); }
.feature-list li::before { content: "✓  "; color: var(--ember); font-weight: 700; }

@media (max-width: 959px) {
  .header-account { display: none; }
  .row-actions { flex-direction: row; }
  .row-actions .btn { padding: 0 12px; }
}

@media (min-width: 960px) {
  body.tablejump { padding-bottom: 0; }
  .tabs-bottom { display: none; }
  .tabs-inline { display: flex; }
  .wrap { padding: 28px 40px 64px; }
  .site-header-inner { padding: 16px 40px; }
  .discover-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }
  .discover-main { flex: 1 1 560px; min-width: 0; }
  .discover-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 360px;
    max-width: 400px;
    position: sticky;
    top: 96px;
  }
  #discoverList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  #discoverList > .empty { grid-column: 1 / -1; }
  #discoverList > .row {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 18px;
    margin: 0;
    min-height: 100%;
  }
  #discoverList .row-lead { align-items: flex-start; }
  #discoverList .logo,
  #discoverList .logo-ph { width: 56px; height: 56px; border-radius: 14px; font-size: 28px; }
  #discoverList .row-body > strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: normal; }
  #discoverList .plat-name { display: none; }
  #discoverList .vibe-tags { display: flex; }
  #discoverList .row-actions { margin-top: auto; }
  #discoverList .row-actions .btn { flex: 1; }
  .sheet-backdrop { align-items: center; padding: 1.5rem; }
  .sheet { border-radius: 18px; }
}

