.price-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-cell--muted {
  color: var(--color-muted);
}

.ladder {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ladder__table {
  min-width: 0;
}

.ladder__table td,
.ladder__table th[scope="row"] {
  padding: 5px var(--space-2);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ladder__table th.ladder__price {
  font-weight: 600;
  text-align: right;
}

.ladder__ask .ladder__price {
  color: var(--tone-danger-fg);
}

.ladder__bid .ladder__price {
  color: var(--tone-success-fg);
}

.ladder__middle td {
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink);
}

.ladder__depth-head,
.ladder__depth {
  width: 28%;
  min-width: 72px;
}

.ladder__depth .meter {
  height: 12px;
}

.ladder__empty {
  padding: var(--space-4) 0;
}

.scenario {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scenario__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.scenario__table {
  min-width: 0;
}

.scenario__table th,
.scenario__table td {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  white-space: nowrap;
}

.scenario__table th.scenario__label {
  max-width: 200px;
  overflow: hidden;
  font-weight: 400;
  color: var(--color-ink);
  text-align: left;
  text-overflow: ellipsis;
}

.scenario__row--alt th,
.scenario__row--alt td {
  color: var(--color-body);
  background: var(--color-surface);
}

.check-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.check-line__mark {
  font-weight: 700;
}

.check-line--ok .check-line__mark {
  color: var(--tone-success-fg);
}

.check-line--failed {
  color: var(--tone-danger-fg);
}

.check-line__sep {
  color: var(--color-muted);
}

.freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  background: var(--color-page);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-body);
  white-space: nowrap;
  cursor: pointer;
}

.freshness:hover {
  border-color: var(--color-chip-border);
  color: var(--color-ink);
}

.freshness:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.freshness__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-faint);
}

.freshness--success .freshness__dot {
  background: var(--tone-success-dot);
}

.freshness--warning .freshness__dot {
  background: var(--chart-second);
}

.freshness--danger .freshness__dot {
  background: var(--tone-danger-fg);
}

.freshness--danger {
  border-color: var(--tone-danger-border);
  color: var(--tone-danger-fg);
}

.freshness__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.freshness__failing {
  color: var(--tone-warning-fg);
}

.sync-drawer__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sync-drawer__title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
}

.sync-page {
  max-width: 880px;
}

.sync-drawer__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
}

@media (max-width: 719.98px) {
  .ladder__optional,
  .scenario__optional {
    display: none;
  }

  .scenario__table th.scenario__label {
    max-width: 150px;
  }
}
