* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f2eb;
  color: #243126;
}
body { margin: 0; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: #243126;
  color: #fff;
}
h1, h2, h3, p { margin-top: 0; }
main { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 3rem; }
footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 2rem; color: #69756c; }
.card {
  background: #fff;
  border: 1px solid #ded8cc;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(36,49,38,.07);
}
.grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: .35rem; margin-bottom: .8rem; font-weight: 650; }
input, textarea, button {
  font: inherit;
  border-radius: 10px;
}
input, textarea {
  width: 100%;
  border: 1px solid #cbc3b5;
  padding: .7rem .75rem;
  background: #fffdf9;
}
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
button {
  border: 0;
  padding: .72rem .95rem;
  background: #406a45;
  color: white;
  cursor: pointer;
  font-weight: 700;
}
button.secondary { background: #e8e2d6; color: #243126; }
button.small { padding: .45rem .65rem; font-size: .9rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hidden { display: none !important; }
.muted { color: #69756c; }
.message { min-height: 1.4rem; color: #8a4b21; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-list { display: grid; gap: .6rem; margin: .8rem 0 1rem; max-height: 410px; overflow: auto; padding-right: .25rem; }
.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: .75rem;
  align-items: center;
  border: 1px solid #e3ddcf;
  border-radius: 12px;
  padding: .7rem;
  background: #fbf9f3;
}
.product-row input { text-align: right; }
.product-title { font-weight: 750; }
.product-meta { color: #69756c; font-size: .92rem; margin-top: .15rem; }
.record-list { display: grid; gap: .65rem; margin-top: .75rem; }
.record-card {
  border: 1px solid #e3ddcf;
  background: #fbf9f3;
  border-radius: 12px;
  padding: .8rem;
}
.record-card header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .15rem .5rem;
  background: #e8e2d6;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status.accepted { background: #d9ead7; }
.status.rejected { background: #f2d6cf; }
.status.published { background: #dbe7f6; }
pre { white-space: pre-wrap; background: #fff; border-radius: 8px; padding: .6rem; overflow: auto; }
@media (max-width: 850px) { .grid.two { grid-template-columns: 1fr; } .site-header { align-items: flex-start; flex-direction: column; } }

.header-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.docs-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: .72rem .95rem;
  background: #e8e2d6;
  color: #243126;
  text-decoration: none;
  font-weight: 700;
}
.docs-link:hover { background: #f4eee2; }
.build-version { margin-top: .25rem; color: #69756c; font-size: .85rem; font-weight: 700; }
