:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --primary: #0f62fe;
  --primary-hover: #0b4fd1;
  --border: #d1d5db;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

h1 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.container {
  width: 100%;
  padding: 0 0.75rem;
  margin: 0 auto;
}

.content {
  padding: 1.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 0;
}

.button {
  display: inline-block;
  border: none;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

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

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 1rem;
  min-width: 0;
}

.treatment-label {
  font-size: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.full-width {
  grid-column: 1 / -1;
}

.alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 8px;
  padding: 0.65rem;
  margin-bottom: 1rem;
}

.details {
  margin: 1rem 0;
}

.details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}

.details dt {
  font-weight: 600;
  color: var(--muted);
}

.details dd {
  margin: 0;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
