:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f4ef;
  color: #1d1d1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #1b6b5f;
  color: white;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
}

button:hover {
  background: #14554b;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dfddd6;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 48px);
}

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

h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 6px;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

p {
  color: #66625c;
  margin-bottom: 0;
}

.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px clamp(16px, 4vw, 48px) 48px;
}

.panel,
.card,
.table-wrap,
.capture-shell {
  background: #ffffff;
  border: 1px solid #dfddd6;
  border-radius: 8px;
}

.panel {
  padding: 20px;
}

.wide {
  grid-column: 1 / -1;
}

.setup-band {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfddd6;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px;
}

.setup-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

code {
  background: #f0eee7;
  border-radius: 6px;
  color: #2f394d;
  display: inline-block;
  max-width: 520px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  color: #4c4944;
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 6px;
}

input,
textarea,
select {
  border: 1px solid #c9c5bb;
  border-radius: 6px;
  min-height: 40px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

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

.section-head span {
  background: #2f394d;
  border-radius: 999px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 32px;
  padding: 4px 10px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 16px;
}

dl {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

dt {
  color: #77726a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e8e5dd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #5f5b54;
  font-size: 0.82rem;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 9px;
}

.status.sent {
  background: #dcf7ed;
  color: #12644f;
}

.status.pending {
  background: #fff2c8;
  color: #725411;
}

.status.failed {
  background: #ffe2df;
  color: #8a1f17;
}

pre {
  background: #20232a;
  border-radius: 8px;
  color: #f6f4ef;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
}

.capture-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.capture-shell {
  display: grid;
  gap: 18px;
  max-width: 460px;
  padding: 28px;
  width: 100%;
}

.primary-link {
  background: #2f394d;
  border-radius: 6px;
  color: white;
  display: block;
  font-weight: 800;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.checkbox-row {
  align-items: center;
  display: flex;
  font-weight: 600;
}

@media (max-width: 760px) {
  .topbar,
  .layout,
  .setup-band,
  .setup-actions {
    grid-template-columns: 1fr;
  }

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

  .setup-band,
  .setup-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
