/* 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);
}
#heroCity {
  color: var(--ember);
  border-bottom: 2px solid var(--ember-border);
  white-space: nowrap;
}

.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; }
#platformChips,
#vibeChips {
  flex-wrap: wrap;
  overflow: visible;
}

.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;
}
.mini-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--border);
  color: var(--ink-muted);
}

.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;
}
.row-lead { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }

.logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--night-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.logo-ph {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #f0c27e;
  border: none;
}
.logo-ph.resy { background: var(--resy-tint); }
.logo-ph.opentable { background: var(--opentable-tint); }
.logo-ph.sevenrooms { background: var(--sevenrooms-tint); }
.logo-ph.doordash { background: var(--doordash-tint); }

.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); }

.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); }

.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; }
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-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.watch-title strong { font-size: 16px; }

.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; }

.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; }
.side-note { margin-top: 0.35rem; }
.text-link {
  background: none;
  border: none;
  color: var(--ember);
  font: 600 14px var(--font-body);
  cursor: pointer;
  min-height: 44px;
  padding: 0;
}

.disclaimer {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.disclaimer strong { color: var(--paused); }

.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 input[type="time"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--night);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  color-scheme: dark;
}
.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;
}

.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 .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;
}

.time-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.time-presets .chip { width: 100%; border-radius: 999px; padding: 0 8px; font-size: 13px; }

.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; }
}

