.page {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100dvh;
  overflow: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.headerInner,
.pushPanel {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.headerInner {
  flex: 0 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logoMark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-fg);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.siteTitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.siteSubtitle {
  font-size: 12px;
  color: var(--text-2);
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.iconBtn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: background 120ms, color 120ms;
}

.iconBtn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.iconBtn.active {
  color: var(--accent);
}

.iconBtn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pushPanel {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px calc(18px + env(safe-area-inset-bottom, 0px));
}

.pushPanelHeader,
.pushPanelActions,
.pushPrimaryActions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pushPanelTitle {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
}

.pushPanelMeta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
}

.pushGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pushGroup {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pushGroup {
  padding: 12px;
}

.pushGroup h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pushGroup .chipRow {
  margin-top: 10px;
}

.pushPanelActions {
  margin-top: 20px;
}

.pushSecondaryAction,
.pushPrimaryAction {
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--border);
  transition: background 120ms, border-color 120ms, color 120ms;
}

.pushSecondaryAction {
  color: var(--text-2);
  background: var(--surface);
}

.pushSecondaryAction:hover {
  color: var(--text);
  background: var(--surface-2);
}

.pushPrimaryAction {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.pushPrimaryAction:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  overflow: hidden;
}

.panels {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.panel {
  min-height: 0;
}

.panel:not([hidden]) {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}

.panel.diagramSection:not([hidden]) {
  overflow: hidden;
}

.tabsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: calc(var(--radius) + 2px);
  width: fit-content;
}

.tabsClock {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.tabsClock svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 120ms, color 120ms, box-shadow 120ms;
}

.tab:hover {
  color: var(--text);
  text-decoration: none;
}

.tab.tabActive {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.tab svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
}

.eventsSection,
.diagramSection {
  display: none;
}

.page:has(#events:target) .restaurantsSection,
.page:has(#diagram:target) .restaurantsSection {
  display: none;
}

.page:has(#events:target) .eventsSection {
  display: grid;
}

.diagramSection:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.diagramFrameWrap {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
}

.diagramFrame {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

.page:has(.diagramSection:not([hidden])) .main {
  max-width: 1500px;
  overflow: auto;
}

.page:has(.diagramSection:not([hidden])) .panel.diagramSection:not([hidden]) {
  overflow: visible;
}

.sectionHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sectionTitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.sectionMeta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

.liveDot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.filter {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  width: min(100%, 360px);
  outline: none;
  transition: border-color 120ms;
  margin-bottom: 14px;
}

.filter::placeholder {
  color: var(--text-2);
}

.filter:focus {
  border-color: var(--accent);
}

.chipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-2);
  background: var(--surface);
  transition: background 120ms, border-color 120ms, color 120ms;
}

.chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.chip.active {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
}

.tableCard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 50vh;
}

.timelineScroll {
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  min-height: 50vh;
  height: 100%;
  padding-bottom: 12px;
}

.todayRow {
  pointer-events: none;
}

.todayCell {
  padding: 0 !important;
  border-bottom: none !important;
  background: none !important;
}

.michelinOpened {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b42318;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.michelinIcon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.todayLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
}

.todayLabel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

thead th {
  position: sticky;
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 80ms;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--surface-2);
}

td {
  padding: 12px 14px;
  vertical-align: top;
}

.cellPrimary {
  font-weight: 500;
  color: var(--text);
}

.detailLink {
  color: var(--text);
}

.detailLink:hover {
  color: var(--accent);
}

.cellSub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

.eventDescription {
  max-width: 60ch;
}

.eventDescriptionText {
  display: block;
  overflow: hidden;
  line-height: 1.35;
  transition: max-height 150ms ease;
}

.eventDescription[data-clamp-ready="true"] .eventDescriptionText {
  max-height: var(--event-description-expanded-height);
}

.eventDescription[data-clamp-ready="true"][data-expanded="false"] .eventDescriptionText {
  max-height: var(--event-description-collapsed-height);
}

.eventDescription[data-expanded="false"]:not([data-animating="true"]) .eventDescriptionText {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.eventDescriptionToggle {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
}

.eventDescriptionToggle:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .eventDescriptionText {
    transition: none;
  }
}

.cellAddress {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cellMeta {
  margin-top: 6px;
}

.cellSource {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cellSource:hover,
.menuLink:hover {
  text-decoration: underline;
}

.cellSource svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}

.tableMuted {
  color: var(--text-2);
}

.tableDate {
  white-space: nowrap;
  font-size: 12px;
}

.colNeighborhood,
.colCuisine,
.colTime,
.colDiet {
  display: table-cell;
}

.colDiet {
  white-space: nowrap;
}

.menuLink {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.8;
  transition: opacity 0.15s;
}

.menuLink:hover {
  opacity: 1;
}

.dietaryBadges {
  display: inline-flex;
  gap: 4px;
}

.dietaryBadge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border: 1px solid;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.dietaryInferred {
  opacity: 0.45;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}

.footer {
  margin-top: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}

.pushBanner {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}

.pushBanner strong {
  color: var(--text);
}

.toastRegion {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: slideIn 200ms ease-out;
  pointer-events: auto;
  max-width: 360px;
}

.toastTitle {
  font-weight: 600;
}

.toastBody {
  color: var(--text-2);
  margin-top: 2px;
}

@keyframes slideIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .pushGrid {
    grid-template-columns: 1fr;
  }

  .colCuisine,
  .colTime {
    display: none;
  }
}

@media (max-width: 560px) {
  .siteSubtitle {
    display: none;
  }

  .tabsClock {
    width: 100%;
    justify-content: flex-end;
  }

  .filter {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .colNeighborhood {
    display: none;
  }

  .toastRegion {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: none;
  }
}
