:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --border: #d0d7de;
  --text: #24292f;
  --muted: #57606a;
  --green: #dafbe1;
  --green-highlight: #aceebb;
  --red: #ffebe9;
  --red-highlight: #ffcecb;
  --yellow: #fff8c5;
  --grey: #f6f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

a {
  color: #0969da;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
}

.topbar nav {
  display: flex;
  gap: 14px;
  flex: 1;
}

button,
.button-link {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f6f8fa;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px;
}

.section {
  margin-bottom: 24px;
}

h1,
h2 {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.menu-section-spacer td {
  height: 18px;
  padding: 0;
  background: var(--grey);
}

.diff-table {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.diff-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 170px;
  border-bottom: 1px solid var(--border);
  min-height: 38px;
}

.diff-row:last-child {
  border-bottom: 0;
}

.diff-section-spacer {
  height: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.diff-row > span {
  padding: 9px 12px;
}

.marker {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.price {
  text-align: right;
}

.added {
  background: var(--green);
}

.removed {
  background: var(--red);
}

.unchanged {
  background: var(--grey);
}

.diff-highlight {
  padding: 1px 3px;
  border-radius: 3px;
  color: inherit;
}

.diff-highlight-delete {
  background: var(--red-highlight);
}

.diff-highlight-add {
  background: var(--green-highlight);
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .diff-row {
    grid-template-columns: 36px minmax(0, 1fr) max-content;
  }

  .price {
    text-align: right;
  }
}
