:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211d;
  background: #f3f6f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(1.25rem, calc((100vw - 1000px) / 2));
  color: #fff;
  background: #145a43;
}

.topbar h1 { margin: 0; font-size: 1.6rem; }
.eyebrow { margin: 0 0 .25rem; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }

main {
  display: grid;
  gap: 1rem;
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

.panel {
  padding: 1.25rem;
  border: 1px solid #dce5df;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 8px #183e2a0a;
}

h2 { margin: 0 0 1rem; font-size: 1.15rem; }
h3 { margin: 0 0 .4rem; font-size: 1rem; }
p { line-height: 1.5; }

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: .65rem .7rem;
  border: 1px solid #b9c9bf;
  border-radius: .4rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

textarea { resize: vertical; }
small { font-weight: 400; color: #586860; }
.wide { grid-column: 1 / -1; }
.hidden { display: none; }

button {
  padding: .65rem .9rem;
  border: 0;
  border-radius: .4rem;
  color: #fff;
  background: #17684c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover { background: #0e4e38; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { color: #145a43; background: #e3f2e9; }
button.secondary:hover { background: #d3eadc; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.promotion-card { padding: .9rem; border: 1px solid #dce5df; border-radius: .5rem; }
.promotion-card p { color: #586860; font-size: .9rem; }
.empty { color: #586860; }
.error { color: #9c2525; }

@media (max-width: 640px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  form { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
}
