/* pkpd-graph-builder — tool CSS. Chunk 5a retired the layout rules
   (controls accordion, view segmented, chart sizing, radio/check
   lines, range and checkbox sizing) onto the design system (§28
   simulator layout). What is left here is tool-specific: the legend,
   the error banner and error slots, the paused placeholder, the NCA
   and Prism data tables, and the kinetics badge and self-check lines. */
.tool-body .leg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0;
  font-size: 14px;
}
.tool-body .leg span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-body .leg svg {
  width: 30px;
  height: 12px;
}
.tool-body .errbox {
  background: var(--lg-surface);
  border: 1px solid var(--lg-err);
  border-left: 6px solid var(--lg-err);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--lg-err);
  font-size: 14px;
  margin: 8px 0;
}
.tool-body .errbox ul {
  margin: 4px 0 0;
  padding-left: 1.2rem;
}
.tool-body .err {
  display: block;
  color: var(--lg-err);
  font-size: 13px;
  margin-top: 4px;
}
/* CHUNK 5A (layout): the display:block above beat the hidden
   attribute, so a field's error text stayed visible after the value
   was fixed (stale "Dose must be greater than 0." next to the input).
   Pre-existing in the original tool; the hidden attribute now wins. */
.tool-body .err[hidden] { display: none; }
.tool-body .canvas-wrap .paused, .tool-body .chartbox .paused {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 150px;
  background: var(--soft);
  color: var(--lg-muted);
  text-align: center;
  padding: 12px;
}
.tool-body .scroll {
  overflow-x: auto;
}
.tool-body table.dt {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}
.tool-body .dt th, .tool-body .dt td {
  border-bottom: 1px solid var(--lg-line);
  padding: 8px 8px;
  text-align: right;
  white-space: nowrap;
}
.tool-body .dt th:first-child, .tool-body .dt td:first-child {
  text-align: left;
}
.tool-body table.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tool-body .tbl th, .tool-body .tbl td {
  padding: 4px;
  text-align: left;
}
.tool-body .tbl input {
  min-height: 40px;
}
.tool-body .badge-note {
  font-size: 14px;
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 16px;
}
.tool-body .selfcheck {
  font-size: 14px;
  color: var(--lg-muted);
  margin: 8px 0;
}
.tool-body .selfcheck b {
  color: var(--lg-primary);
}
