:root {
  color-scheme: light;
  font: 1rem/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
  color: #11111f;
  background: #f7fbfc;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #075b70; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #6b4fd8;
  outline-offset: 3px;
}
.site-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1rem, calc((100% - 52rem) / 2));
  background: #11111f;
}
.site-bar a { color: #fff; font-weight: 700; }
main, footer { width: min(52rem, calc(100% - 2rem)); margin: 1.8rem auto; }
h1 { margin: 0 0 0.45rem; font-size: clamp(1.8rem, 5.5vw, 2.7rem); line-height: 1.15; }
h2 { margin: 0; font-size: 1.2rem; }
.merchant, .muted { color: #42445a; }
.merchant { margin: 0 0 1.5rem; }
fieldset, .receipt, .follow-up {
  min-width: 0;
  margin: 1rem 0;
  padding: clamp(0.8rem, 3vw, 1.4rem);
  border: 1px solid #b9dce6;
  border-radius: 0.75rem;
  background: #fff;
}
legend { padding: 0 0.4rem; font-weight: 750; }
.field { margin: 0.5rem 0 0.85rem; }
.field label { display: block; margin-bottom: 0.28rem; font-weight: 650; }
.field label .muted { font-weight: 400; }
input:not([type="checkbox"]), textarea, select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #718895;
  border-radius: 0.4rem;
  background: #fff;
  color: inherit;
  font: inherit;
}
textarea { resize: vertical; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; }
.checkbox input { width: 1.2rem; height: 1.2rem; }
.field-error, .error { color: #8d2821; }
[aria-invalid="true"] { border-color: #8d2821 !important; }
.notice { padding: 0.75rem; border: 1px solid currentColor; border-radius: 0.4rem; }
button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.45rem;
  background: #075b70;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #064453; }
.kicker { margin-top: 0; font-weight: 650; }
.receipt-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid #d7e5e9;
  break-inside: avoid;
}
.receipt-rows dt { font-weight: 700; }
.receipt-rows dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 34rem) {
  .two-columns, .receipt-rows > div { grid-template-columns: 1fr; }
}
@media print {
  .site-bar, footer, .receipt-actions, .follow-up { display: none; }
  :root, .receipt { background: #fff; color: #000; }
  main, .receipt { width: 100%; margin: 0; padding: 0; border: 0; }
  h1 { font-size: 20pt; }
  .receipt-rows > div { grid-template-columns: 10rem 1fr; }
}
