:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: #0f766e;
  --brand-strong: #115e59;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
}

button,
input {
  font: inherit;
}

input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.panel {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 650;
  color: #09090b;
}

.section-copy {
  margin-top: 0.25rem;
  color: #52525b;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.field {
  display: grid;
  gap: 0.375rem;
  color: #3f3f46;
  font-size: 0.875rem;
  font-weight: 600;
}

.input {
  width: 100%;
  height: 2.75rem;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 0.75rem;
  color: #09090b;
  font-size: 1rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.button-primary,
.button-secondary,
.button-danger {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.button-primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-secondary {
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #27272a;
}

.button-secondary:hover {
  border-color: #a1a1aa;
  background: #f4f4f5;
}

.button-danger {
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #b91c1c;
}

.button-danger:hover {
  background: #fef2f2;
}

.button-primary:focus,
.button-secondary:focus,
.button-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e4e4e7;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.breakdown-row:last-child {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .panel {
    padding: 1.25rem;
  }
}

@media print {
  body {
    background: white !important;
  }

  button,
  input {
    display: none !important;
  }

  .panel {
    box-shadow: none !important;
  }
}
