/**
 * Widget board layouts (EIA + shared metric cells)
 */
.widget-board {
  width: min(100% - (var(--gutter) * 2), var(--evidence-max));
  margin: 0 auto var(--space-7);
  display: grid;
  gap: var(--space-5);
}

.metric-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Single-metric boards (e.g. natural gas storage): one wide card, no voids. */
.metric-grid--single {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .metric-grid--single {
    grid-template-columns: 1fr;
  }
}

.metric-cell {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.metric-cell__label {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.metric-cell__value {
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.metric-cell__unit {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  font-weight: 500;
}

.metric-cell__change {
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--text-small);
}

.metric-cell__change[data-direction="up"] {
  color: var(--color-positive);
}

.metric-cell__change[data-direction="down"] {
  color: var(--color-negative);
}

.metric-cell__change[data-direction="flat"] {
  color: var(--color-text-muted);
}

.metric-cell__context {
  margin: 0.25rem 0 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.metric-cell__severity {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.metric-cell__battery {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.metric-cell__battery::after {
  content: "";
  width: 2px;
  height: 5px;
  margin-left: 1px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.metric-cell__battery-shell {
  position: relative;
  width: 20px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  overflow: hidden;
}

.metric-cell__battery-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: currentColor;
}

.metric-cell__ring {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.metric-cell__ring-track {
  stroke: currentColor;
  opacity: 0.25;
}

.metric-cell__ring-fill {
  stroke: currentColor;
  stroke-linecap: round;
}

.metric-cell__severity[data-level="low"],
.metric-cell__severity[data-level="high"] {
  color: var(--color-warning);
}

.metric-cell__severity[data-level="extreme-low"],
.metric-cell__severity[data-level="extreme-high"] {
  color: var(--color-negative);
}

.widget-chart-panel {
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}

.widget-chart-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.widget-chart-panel__head h2 {
  margin: 0;
  font-size: var(--text-h3);
}

.widget-chart-frame {
  width: 100%;
  height: clamp(220px, 36vw, 300px);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgb(24 34 45 / 0.9), rgb(18 25 34 / 0.95));
  border: var(--border);
  overflow: hidden;
}

.widget-chart-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.widget-notes {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 800px) {
  .widget-notes {
    grid-template-columns: 1fr 1fr;
  }
}

.noscript-note {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-faint);
}

/* Hard-asset regime board (v0) */
.regime-verdict {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
}

.regime-verdict h2,
.regime-verdict h3 {
  margin: 0;
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.regime-analysis {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-2);
  border-top: var(--border);
}

.score-stack__subhead {
  margin: 0 0 var(--space-3);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.regime-verdict__eli15 {
  margin: 0;
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: 1.55;
}

.widget-section-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h3);
}

.score-stack {
  display: grid;
  gap: var(--space-4);
}

.score-stack__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: baseline;
}

.score-stack__head h2 {
  margin: 0;
  font-size: var(--text-h3);
}

.score-stack__rows {
  display: grid;
  gap: var(--space-3);
}

.score-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "status main score"
    "bar bar bar";
  gap: var(--space-2) var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.score-row__status {
  grid-area: status;
  margin: 0;
  line-height: 1.4;
}

.score-row__main {
  grid-area: main;
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.score-row__label {
  margin: 0;
  font-weight: 600;
}

.score-row__action {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.score-row__score {
  grid-area: score;
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.score-row__max {
  font-size: var(--text-small);
  color: var(--color-text-faint);
  font-weight: 500;
}

.score-row__bar {
  grid-area: bar;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-line-soft);
  overflow: hidden;
}

.score-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-info);
}

.score-row[data-status="good"] .score-row__fill {
  background: var(--color-positive);
}

.score-row[data-status="mixed"] .score-row__fill {
  background: var(--color-warning);
}

.score-row[data-status="bad"] .score-row__fill {
  background: var(--color-negative);
}

.score-row[data-status="nv"] .score-row__fill {
  background: var(--color-text-faint);
}

.metric-cell[data-fresh="nv"] .metric-cell__value,
.metric-cell[data-fresh="nv"] .metric-cell__change {
  color: var(--color-text-faint);
}

.regime-board-nav {
  margin: var(--space-3) 0 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.regime-board-nav a {
  color: var(--color-text);
  text-underline-offset: 0.15em;
}

.regime-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}

/* Relationship Lab source ledger — compact single-column list with
   separator rows (mirrors regime-archive-list__item density, tighter). */
.relab-ledger h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
}

.relab-ledger__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.relab-ledger__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: var(--border);
  font-family: var(--font-data);
  font-size: var(--text-meta);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.relab-ledger__item:last-child {
  border-bottom: 0;
}

.relab-ledger__item a {
  color: var(--color-text);
  text-underline-offset: 0.15em;
}

.relab-ledger__series {
  color: var(--color-text);
  font-weight: 600;
}

.regime-archive-list__item {
  padding-bottom: var(--space-5);
  border-bottom: var(--border);
}

.regime-archive-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.regime-archive-list__title {
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.regime-archive-list__title a {
  color: inherit;
  text-decoration: none;
}

.regime-archive-list__title a:hover,
.regime-archive-list__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Yen carry Money child board */
.yen-carry-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
}

.yen-carry-panel__head h2 {
  margin: 0;
  font-size: var(--text-h3);
}

/* Yen carry stress gauge (derived composite dial) */
.yen-carry-gauge {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
}

.yen-carry-gauge__body {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .yen-carry-gauge__body {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: center;
    gap: var(--space-5);
  }
}

.yen-carry-gauge__dial {
  display: grid;
  place-items: center;
}

.yen-carry-gauge__svg {
  width: 15rem;
  max-width: 100%;
  height: auto;
}

.yen-carry-gauge__needle {
  transition: transform 0.6s ease;
}

.yen-carry-gauge__score {
  display: grid;
  gap: var(--space-1);
  text-align: center;
}

.yen-carry-gauge__value {
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.yen-carry-gauge__band {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.yen-carry-gauge__band[data-band="calm"] {
  color: var(--color-positive);
}

.yen-carry-gauge__band[data-band="elevated"] {
  color: var(--color-warning);
}

.yen-carry-gauge__band[data-band="stressed"] {
  color: var(--color-negative);
}

.yen-carry-gauge__legs {
  display: grid;
  gap: var(--space-2);
}

.yen-carry-gauge__leg {
  display: grid;
  gap: var(--space-1);
}

.yen-carry-gauge__leg-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.yen-carry-gauge__leg-bar {
  height: 0.3rem;
  border-radius: 999px;
  background: var(--color-line-soft);
  overflow: hidden;
}

.yen-carry-gauge__leg-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-info);
}

.yen-carry-gauge__leg-fill[data-band="calm"] {
  background: var(--color-positive);
}

.yen-carry-gauge__leg-fill[data-band="elevated"] {
  background: var(--color-warning);
}

.yen-carry-gauge__leg-fill[data-band="stressed"] {
  background: var(--color-negative);
}

.yen-carry-gauge__note {
  margin: 0;
  max-width: 72ch;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.45;
}

/* Compact "How this is scored" disclosure — details on demand, no clutter. */
.yen-carry-gauge__note summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: var(--text-meta);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  user-select: none;
}

.yen-carry-gauge__note summary::-webkit-details-marker {
  display: none;
}

.yen-carry-gauge__note summary::before {
  content: "＋";
  font-size: var(--text-meta);
  line-height: 1;
  transition: transform 0.15s ease;
}

.yen-carry-gauge__note[open] summary::before {
  transform: rotate(45deg);
}

.yen-carry-gauge__note summary:hover {
  color: var(--color-text-muted);
}

.yen-carry-gauge__note > p {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: var(--border);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.45;
}

.yen-carry-gauge__unavailable {
  margin: 0;
  color: var(--color-text-faint);
  font-size: var(--text-small);
}

.yen-carry-note {
  margin: 0;
  max-width: 72ch;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: 1.55;
}

.yen-carry-note--tight {
  margin: 0 0 var(--space-4);
  font-size: var(--text-small);
  line-height: 1.45;
}

.yen-carry-note strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Board panel note disclosures — quiet meta toggle, prose on demand. */
.yen-carry-note summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: var(--text-meta);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  user-select: none;
}

.yen-carry-note summary::-webkit-details-marker {
  display: none;
}

.yen-carry-note summary::before {
  content: "＋";
  font-size: var(--text-meta);
  line-height: 1;
  transition: transform 0.15s ease;
}

.yen-carry-note[open] summary::before {
  transform: rotate(45deg);
}

.yen-carry-note summary:hover {
  color: var(--color-text-muted);
}

.yen-carry-note > p {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-2);
  border-top: var(--border);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .metric-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.yen-carry-headlines {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .yen-carry-headlines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.yen-carry-headlines__column {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.yen-carry-headlines__source {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.yen-carry-headlines__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.yen-carry-headlines__item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) 0;
  border-top: var(--border);
}

.yen-carry-headlines__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.yen-carry-headlines__date {
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.yen-carry-headlines__date--empty {
  opacity: 0.5;
}

.yen-carry-headlines__title {
  color: inherit;
  text-decoration: none;
  font-size: var(--text-body);
  line-height: 1.35;
  font-weight: 500;
}

.yen-carry-headlines__title:hover,
.yen-carry-headlines__title:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 520px) {
  .yen-carry-headlines__item {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

.yen-carry-x-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .yen-carry-x-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.yen-carry-x-link {
  display: grid;
  gap: var(--space-1);
  min-height: 100%;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.yen-carry-x-link:hover,
.yen-carry-x-link:focus-visible {
  border-color: var(--color-line-strong, var(--color-line));
  background: var(--color-surface-raised);
  text-decoration: none;
}

.yen-carry-x-link__label {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.yen-carry-x-link__handle {
  font-family: var(--font-data);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text);
}

.yen-carry-x-link__why {
  font-size: var(--text-small);
  color: var(--color-text-faint);
  line-height: 1.4;
}

/* --- Rates & Inflation board (markethoundlab#293) -----------------------
 * U.S. Treasury par yields table + curve spreads — styled to the shared
 * card/token system so the board matches the energy boards' polish.
 */

/* The MHL read — the board's interpretation of the curve shape.
 * Headline sits outside (section title, like the other widgets); the card
 * holds only the regime kicker + interpretation prose. */
.widget--read {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.widget__kicker {
  margin: 0;
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.widget__prose {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Plain-language explainer under a data widget (e.g. what a spread means). */
.widget__hint {
  margin: var(--space-3) 0 0;
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--color-text-faint);
}

.widget__hint strong {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Dynamic-data indicator: sits between the panel content and the explainer.
 * The dot marks what is live/auto-refreshed (green = dynamic data). */
.widget__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  font-size: var(--text-meta);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}

.widget__meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgb(184 242 74 / 0.5);
  animation: widget-meta-pulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes widget-meta-pulse {
  0% { box-shadow: 0 0 0 0 rgb(184 242 74 / 0.5); }
  70% { box-shadow: 0 0 0 6px rgb(184 242 74 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(184 242 74 / 0); }
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: var(--text-small);
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Yield-curve chart — the shared landing-chart card anatomy (matches the
 * energy board exactly: meta → title → stat → canvas frame → note). */
.rates-curve {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.rates-table th,
.rates-table td {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  border-bottom: var(--border);
}

.rates-table thead th {
  font-family: var(--font-ui);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface-raised);
  padding-block: var(--space-3);
}

.rates-table tbody tr:last-child td {
  border-bottom: 0;
}

.rates-table tbody tr {
  transition: background-color 120ms ease;
}

.rates-table tbody tr:hover td {
  background: var(--color-surface-raised);
}

.rates-table td:last-child,
.rates-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.rates-table__maturity {
  font-family: var(--font-ui);
  color: var(--color-text);
}

.rates-table__value {
  font-family: var(--font-data);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
  white-space: nowrap;
}

.rates-table__date {
  color: var(--color-text-muted);
}

.rates-spreads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.rates-spread {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.rates-spread__name {
  font-family: var(--font-data);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text);
}

.rates-spread__value {
  font-family: var(--font-data);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-accent);
  margin-left: auto;
}

.rates-spread__date {
  font-size: var(--text-meta);
  color: var(--color-text-faint);
  white-space: nowrap;
}

/* Dollar index companion (kept from the prior money surface). */
.rates-dollar {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.rates-dollar__label {
  margin: 0;
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.rates-dollar__value {
  margin: 0;
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--color-text);
}

.rates-dollar__unit {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.rates-dollar__change[data-direction="up"] {
  color: var(--color-positive);
}

.rates-dollar__change[data-direction="down"] {
  color: var(--color-negative);
}

.rates-dollar__source {
  margin: 0;
  font-size: var(--text-meta);
  color: var(--color-text-faint);
}


/* Revision trail (#295 slice C) — shared money-board theme. */
.revision-trail {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.revision-trail__row {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) auto auto;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-line-soft);
  font-family: var(--font-data);
  font-size: var(--text-small);
}

.revision-trail__row:last-child {
  border-bottom: 0;
}

.revision-trail__vintage {
  color: var(--color-text-muted);
}

.revision-trail__value {
  color: var(--color-text);
}

.revision-trail__change {
  color: var(--color-text-faint);
  min-width: 4.5rem;
  text-align: right;
}

.revision-trail__change[data-direction="up"] {
  color: var(--color-positive);
}

.revision-trail__change[data-direction="down"] {
  color: var(--color-negative);
}

/* Board section wrapper (#290/#359 theme): title → responsive metric grid. */
.widget {
  display: grid;
  gap: var(--space-4);
}

.widget .metric-grid {
  gap: var(--space-4);
}
