:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --card: #fffaf0;
  --ink: #1f2a22;
  --muted: #647067;
  --line: #ded7c8;
  --accent: #2f6f4f;
  --accent-strong: #214d37;
  --wash: #e7f0e7;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top left, #e5efdf, var(--bg) 36rem); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, .ghost { border: 0; border-radius: 999px; background: var(--accent); color: white; padding: .75rem 1rem; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap; }
button:disabled, .disabled { opacity: .45; pointer-events: none; }
.ghost { background: var(--wash); color: var(--accent-strong); border: 1px solid #c8ddca; }
input { width: 100%; border: 1px solid var(--line); border-radius: .9rem; background: white; padding: .8rem .9rem; color: var(--ink); }
label { font-weight: 800; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 48rem; margin-bottom: .7rem; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.05em; }
h2 { margin-bottom: .25rem; }
small, .meta { color: var(--muted); }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0; }
.hero { margin-bottom: 1rem; }
.intro { max-width: 48rem; color: var(--muted); font-size: 1.08rem; }
.eyebrow { margin-bottom: .45rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card { background: color-mix(in srgb, var(--card) 92%, white); border: 1px solid var(--line); border-radius: 1.4rem; box-shadow: 0 20px 70px rgba(60, 45, 20, .08); padding: 1rem; }
.api-card { display: grid; gap: .75rem; margin-bottom: 1rem; }
.api-row, .paste-row { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; }
.paste-row { grid-template-columns: 1fr auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.stack { display: grid; gap: .75rem; align-content: start; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pill { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--accent-strong); color: white; font-weight: 800; }
.selected-list, .search-list { display: grid; gap: .55rem; }
.selected-list { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.selected-row, .result-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; border: 1px solid var(--line); border-radius: 1rem; background: white; color: var(--ink); padding: .7rem; text-align: left; }
.result-row:hover { border-color: #9fceb2; }
.product-row { grid-template-columns: 52px 1fr auto; }
.product-row img { width: 52px; height: 52px; object-fit: contain; border-radius: .8rem; background: #f3f3ef; }
.empty { margin: 0; color: var(--muted); }
.message { min-height: 1.4rem; color: var(--accent-strong); }

@media (max-width: 820px) {
  .grid, .api-row, .paste-row { grid-template-columns: 1fr; }
}
