/* Assessment page — the few rules agents.css does not already cover.
 *
 * Deliberately small: the cards, panels, empty states, status pills and the
 * decisions list are all reused from agents.css, so the two pages read as one
 * product rather than two that happened to be built in the same week.
 */

.dt-buckets {
  margin: 0;
  display: grid;
  gap: 2px;
}

.dt-buckets__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.dt-buckets__name {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}

.dt-buckets__basis {
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 3px;
  max-width: 62ch;
}

.dt-buckets__amount {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.dt-buckets__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--axis);
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--text);
}

.dt-buckets__total .dt-buckets__amount {
  font-size: 20px;
  color: var(--mint);
}

/* The rationale line under a policy rule. Indented and unmarked so it reads as
 * a continuation of the rule above rather than another rule. */
.dt-rule-why {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  padding-top: 0 !important;
  padding-left: 32px !important;
}

.dt-download {
  display: inline-block;
  margin: 18px 0 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--mint);
  /* Ink, not white: --mint is far too light to carry white text. */
  color: var(--on-mint);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dt-download:hover {
  filter: brightness(1.08);
}

/* The rendered change request, shown as it will be read by a change-control
 * board: fixed width, nothing reflowed. */
.dt-record {
  margin: 14px 0 0;
  padding: 16px;
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  max-height: 420px;
}

.dt-scope__head {
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.dt-scope__row {
  padding: 4px 0;
  line-height: 1.6;
}

.dt-scope__grant {
  display: block;
  margin-top: 3px;
  color: var(--text-2);
  word-break: break-all;
}

@media (max-width: 640px) {
  .dt-buckets__row { flex-direction: column; gap: 6px; }
  .dt-record { font-size: 11px; }
}
