:root {
  --color-bg: #f3efe6;
  --color-surface: #fffdf8;
  --color-ink: #1c2421;
  --color-ink-muted: #4a5651;
  --color-brand: #2f5d50;
  --color-brand-dark: #1f3f36;
  --color-border: #d5cdc0;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --radius: 6px;
}
body.embed-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-bg);
  padding: 0.75rem;
}
.embed-header textarea { width: 100%; font: inherit; }
.embed-brand { font-weight: 700; margin: 0 0 0.75rem; }
.embed-brand a { color: var(--color-brand); }
.calculator-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
}
.calculator-shell form { display: grid; gap: 0.75rem; }
@media (min-width: 640px) {
  .calculator-shell form { grid-template-columns: repeat(2, 1fr); }
  .calculator-shell .full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 700; }
.field input, .field select {
  min-height: 48px; padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font: inherit; font-size: max(1rem, 16px); width: 100%;
}
.field[hidden], [data-mode-show][hidden] { display: none !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.btn--primary { background: var(--color-brand); color: #fff; }
.btn--secondary { background: transparent; border-color: var(--color-brand); color: var(--color-brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.15rem; border-radius: var(--radius);
  border: 0; font-weight: 700; cursor: pointer; font-size: 1rem;
}
.btn--primary { background: var(--color-brand); color: #fff; }
.results {
  margin-top: 1rem; padding: 1rem;
  background: #eef5f1; border: 1px solid #c5d8cf; border-radius: var(--radius);
}
.results dl { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; margin: 0; }
.results dd { margin: 0; font-weight: 700; text-align: right; }
