:root {
  color-scheme: light;
  --bg: #eef2f4;
  --panel: #ffffff;
  --panel-soft: #f7f9fa;
  --text: #12181f;
  --muted: #65717d;
  --line: #d9e1e6;
  --line-strong: #c3ccd4;
  --accent: #087c73;
  --accent-dark: #055b55;
  --accent-soft: #e2f4f1;
  --ink-text: #2c3c4b;
  --warn-soft: #fff7df;
  --warn-line: #e5c96f;
  --warn-text: #463b12;
  --shadow: 0 18px 45px rgba(18, 24, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #e8edf1 0, var(--bg) 260px), var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid #f4c430;
  outline-offset: 3px;
}

.site-header,
.site-footer,
main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #14212b;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
}

nav a:hover {
  background: var(--panel);
  color: var(--text);
}

.board-shell,
.category-card,
.deal-card,
.board-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.board-shell {
  margin: 26px 0 18px;
  padding: 22px;
}

.category-board-shell {
  margin-bottom: 22px;
}

.eyebrow,
.muted,
.panel-label,
.card-kicker {
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-label,
.card-kicker {
  margin: 0 0 10px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 2rem;
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.18rem;
}

.board-shell p {
  max-width: 720px;
}

.board-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}

.board-topline .eyebrow {
  margin: 0 0 8px;
}

.board-topline h1 + p {
  margin: 10px 0 0;
  color: var(--muted);
}

.board-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.board-stats div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.board-stats div:last-child {
  border-bottom: 0;
}

.board-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.board-stats dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.board-stats .is-preview {
  color: #7a5a00;
}

.notice {
  max-width: 780px;
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: 0.94rem;
}

.notice.compact {
  font-size: 0.9rem;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-decoration: none;
}

.category-chip:hover {
  border-color: var(--accent);
}

.category-chip span {
  color: var(--ink-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.category-chip strong {
  display: inline-grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 44px;
}

.category-card {
  padding: 18px;
}

.category-card h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.category-card a {
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.category-card p {
  margin: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 14px;
}

.section-head .muted {
  max-width: 420px;
  margin: 0;
  text-align: right;
}

.deal-board {
  padding-bottom: 54px;
}

.board-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-table-head,
.board-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 160px 150px;
  gap: 14px;
  align-items: center;
}

.board-table-head {
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f1f5f7;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.board-row {
  min-height: 76px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

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

.board-product h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.board-product p,
.board-condition,
.board-price span {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-price {
  text-align: right;
}

.board-price strong,
.total {
  color: var(--accent-dark);
  font-weight: 900;
}

.board-price span {
  display: block;
  font-size: 0.82rem;
}

.criteria-strip {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.criteria-strip ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
}

.criteria-strip li {
  color: var(--ink-text);
}

.deal-list {
  display: grid;
  gap: 10px;
}

.deal-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
  padding: 16px;
}

.deal-card h3 {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.score-meter {
  display: inline-grid;
  width: 68px;
  min-height: 44px;
  place-items: center;
  margin: 0;
  padding: 6px;
  border: 1px solid #b8dbd6;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.score-meter.large {
  width: 74px;
  min-height: 60px;
  font-size: 1.35rem;
}

.score-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-meter small {
  font-size: 0.78rem;
  font-weight: 800;
}

.deal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.deal-facts div,
.deal-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.deal-facts div {
  padding: 9px;
}

.deal-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.deal-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.deal-facts dd span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.deal-notes {
  margin: 0;
  color: var(--muted);
}

.deal-meta {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
}

.deal-meta p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.deal-meta span {
  color: var(--muted);
}

.total {
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
}

.total span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.button:hover {
  background: var(--accent-dark);
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.site-footer {
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .board-topline,
  .category-grid,
  .deal-card,
  .board-row,
  .board-table-head {
    grid-template-columns: 1fr;
  }

  .board-table-head {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head .muted,
  .board-price {
    text-align: left;
  }

  .criteria-strip ul {
    grid-template-columns: 1fr;
  }
}

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

  .board-shell {
    margin-top: 18px;
    padding: 14px;
  }

  .category-card,
  .deal-card,
  .board-row {
    padding: 14px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .board-stats div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .deal-facts {
    grid-template-columns: 1fr;
  }

  .deal-meta p {
    align-items: flex-start;
  }
}
