:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #151a1e;
  --muted: #5d6875;
  --line: #d9dee6;
  --accent: #007a5e;
  --accent-dark: #045743;
  --soft: #eef7f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-dark);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.status {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: right;
}

.search {
  margin-top: 28px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
button {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
}

button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 28px;
}

.summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.summary-grid span,
.card-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#result-count {
  color: var(--muted);
}

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

.product-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.product-card p {
  color: var(--muted);
  line-height: 1.45;
}

.card-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.header-chip {
  display: inline-block;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.proof {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.proof ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 820px) {
  .masthead,
  .section-head {
    display: block;
  }

  .status {
    margin-top: 14px;
    text-align: left;
  }

  .search-row,
  .summary-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
  }
}
