/* Reuse the maintained public helper palette, type and controls. */
.decision-panel {
  border-left: 4px solid var(--brand);
  padding: 0.5rem 1.5rem;
  background: var(--tint);
}
.decision-panel h2 {
  margin-top: 0.5rem;
}
#decision {
  font-weight: 650;
}
form {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
legend {
  float: none;
}
.worksheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
}
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
textarea {
  resize: vertical;
}
input {
  font-family: inherit;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}
#error {
  color: var(--error);
}
#feedback:empty,
#error:empty {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
main {
  overflow-wrap: anywhere;
}
.print-only {
  display: none;
}
@media (max-width: 640px) {
  .worksheet-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .actions button {
    flex: 1 1 auto;
  }
  fieldset {
    padding: 1rem;
  }
}
@media print {
  :root {
    color-scheme: light;
    --bg: white;
    --text: black;
    --surface: white;
    --brand: black;
    --tint: white;
    --muted: black;
    --line: gray;
  }
  .site-nav,
  .skip,
  form,
  noscript {
    display: none;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .print-only {
    display: block;
    white-space: pre-wrap;
  }
  .print-only p {
    min-height: 3rem;
    max-width: none;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  .decision-panel {
    border: 1px solid;
  }
}
