/* Shared components. Elevation tiers: panels shadow-1, menus and popovers
   shadow-2, drawers and dialogs shadow-3. */
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
}
@keyframes pop-out {
  to {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(32px);
    opacity: 0;
  }
}
@keyframes drawer-out {
  to {
    transform: translateX(32px);
    opacity: 0;
  }
}
@keyframes drawer-left-in {
  from {
    transform: translateX(-100%);
  }
}
@keyframes drawer-left-out {
  to {
    transform: translateX(-100%);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
  }
}
@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 6px)) scale(0.98);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes progress-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page header */
.page-header {
  margin-bottom: 16px;
}
.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.page-header-text {
  min-width: 0;
}
.page-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
}
.page-description {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.8125rem;
  max-width: 72ch;
}
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
}
.scope-chip.is-scoped {
  background: var(--cobalt-soft);
  color: var(--cobalt-text);
}
.scope-chip button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  border-radius: 3px;
}

/* KPI strip: one row of real counts. The first metric is the focal one. */
.kpi-strip {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.kpi-strip > * {
  flex: 1 1 140px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 16px 12px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.kpi:last-child {
  border-right: 0;
}
.kpi-value {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.kpi-hint {
  font-size: 0.6875rem;
  color: var(--text-3);
}
.kpi-teal .kpi-value {
  color: var(--teal-text);
}
.kpi-amber .kpi-value {
  color: var(--amber-text);
}
.kpi-group-label {
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-3);
  writing-mode: horizontal-tb;
}

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.panel + .panel {
  margin-top: 16px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
}
.panel-description {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-body {
  padding: 16px;
}

/* Badges and tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--text-2);
}
.badge-cobalt {
  background: var(--cobalt-soft);
  color: var(--cobalt-text);
}
.badge-teal {
  background: var(--teal-soft);
  color: var(--teal-text);
}
.badge-amber {
  background: var(--amber-soft);
  color: var(--amber-text);
}
.badge-red {
  background: var(--red-soft);
  color: var(--red-text);
}
.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
}
.tag.mono {
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.tag-more {
  color: var(--text-3);
  cursor: help;
}
.state-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.state-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
}
.state-dot.is-on {
  color: var(--teal-text);
}
.state-dot.is-on::before {
  border-color: var(--teal);
  background: var(--teal);
}

/* Lifecycle track motif */
.stage-track {
  display: inline-flex;
  gap: 2px;
  flex: none;
}
.stage-track .seg {
  width: 9px;
  height: 4px;
  border-radius: 2px;
  background: var(--stage-empty);
  transition: background-color var(--dur-2) var(--ease);
}
.stage-track .seg.done,
.stage-track .seg.current {
  background: var(--stage-fill);
}
.stage-track .seg.current {
  height: 6px;
  margin-top: -1px;
}
.stage-track.is-live .seg.done,
.stage-track.is-live .seg.current {
  background: var(--stage-live);
}
.stage-track.is-retired .seg,
.stage-track.is-retired .seg.done,
.stage-track.is-retired .seg.current {
  background: var(--stage-empty);
}
.stage-track.is-retired .seg.current {
  background: var(--stage-retired);
}
.stage-track-sm .seg {
  width: 6px;
  height: 3px;
}
.stage-track-sm .seg.current {
  height: 5px;
}
.stage-track-lg {
  gap: 3px;
}
.stage-track-lg .seg {
  width: 26px;
  height: 5px;
}
.stage-track-lg .seg.current {
  height: 7px;
}
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.stage-badge.is-live {
  color: var(--teal-text);
}
.stage-badge.is-retired {
  color: var(--text-3);
}
.stage-mix {
  display: flex;
  gap: 1px;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--stage-empty);
}
.stage-mix.is-empty {
  opacity: 0.6;
}
.mix-seg {
  min-width: 3px;
  background: var(--stage-fill);
}
.mix-seg.is-planned {
  background: color-mix(in srgb, var(--stage-fill) 35%, var(--stage-empty));
}
.mix-seg.is-review {
  background: color-mix(in srgb, var(--stage-fill) 65%, var(--stage-empty));
}
.mix-seg.is-approved {
  background: var(--stage-fill);
}
.mix-seg.is-live {
  background: var(--stage-live);
}
.mix-seg.is-tuning {
  background: var(--amber-line);
}
.mix-seg.is-retired {
  background: var(--stage-retired);
}

/* States */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 24px;
  text-align: center;
}
.empty-state.compact {
  padding: 26px 16px;
}
.empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.empty-body {
  max-width: 54ch;
  color: var(--text-2);
  font-size: 0.8125rem;
}
.empty-action {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.inline-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--red-line);
  border-radius: var(--r-sm);
  background: var(--red-soft);
  color: var(--red-text);
  font-size: 0.8125rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  animation: rise-in var(--dur-2) var(--ease);
}
.inline-error svg {
  flex: none;
  margin-top: 2px;
}
.callout {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.8125rem;
}
.callout svg {
  flex: none;
  margin-top: 2px;
  color: var(--cobalt-text);
}
.callout-warning {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber-text);
}
.callout-warning svg {
  color: var(--amber-text);
}
.callout-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.callout-warning .callout-title {
  color: var(--amber-text);
}
.spinner-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.8125rem;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--cobalt);
  animation: spin 700ms linear infinite;
}

/* Startup */
.startup {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--rail-bg);
}
.startup-card {
  width: min(440px, 100%);
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  display: grid;
  gap: 18px;
}
.startup-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.8125rem;
}
.startup-brand .wordmark-text {
  color: var(--text);
  font-size: 1.25rem;
}
.startup-title {
  font-weight: 600;
  margin-bottom: 10px;
}
.startup-error p {
  margin-bottom: 12px;
  color: var(--text-2);
}
.startup-error .startup-title {
  color: var(--red-text);
  margin-bottom: 4px;
}
.startup-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.startup-progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--cobalt);
  animation: progress-slide 1.1s var(--ease) infinite;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay);
  animation: fade-in var(--dur-2) var(--ease);
}
.overlay[data-state='closed'] {
  animation: fade-out var(--dur-2) var(--ease-in) forwards;
}
.overlay-drawer {
  background: color-mix(in srgb, var(--overlay) 70%, transparent);
}
.overlay-confirm {
  z-index: 110;
}

.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 24px));
  max-height: min(88dvh, 900px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translate(-50%, -50%);
  animation: dialog-in var(--dur-3) var(--ease);
}
.dialog[data-state='closed'] {
  animation: dialog-out var(--dur-2) var(--ease-in) forwards;
}
.dialog-sm {
  width: min(440px, calc(100vw - 24px));
}
.dialog-lg {
  width: min(820px, calc(100vw - 24px));
}
.dialog.confirm {
  z-index: 120;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.dialog-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.dialog-description {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.dialog-footer,
.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.dialog-footer-status {
  min-width: 0;
  font-size: 0.78rem;
  color: var(--text-3);
}
.dialog-footer-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 16px));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  animation: drawer-in var(--dur-3) var(--ease);
}
.drawer[data-state='closed'] {
  animation: drawer-out var(--dur-2) var(--ease-in) forwards;
}
.drawer-md {
  width: min(560px, calc(100vw - 16px));
}
.drawer-xl {
  width: min(1100px, calc(100vw - 16px));
}
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--header-glow), var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.drawer-heading {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.drawer-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-3);
}
.drawer-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.drawer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.75rem;
  color: var(--text-2);
}
.drawer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.drawer-footer {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Tabs */
.tabs {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.tab-list {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex: none;
}
.tab-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: color var(--dur-1) var(--ease);
}
.tab-trigger:hover {
  color: var(--text);
}
.tab-trigger[data-state='active'] {
  color: var(--cobalt-text);
}
.tab-trigger:focus-visible {
  outline-offset: -3px;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.6875rem;
}
.tab-trigger[data-state='active'] .tab-badge {
  background: var(--cobalt-soft);
  color: var(--cobalt-text);
}
.tab-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--cobalt);
  transition:
    transform var(--dur-3) var(--ease),
    width var(--dur-3) var(--ease);
}
.tab-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  animation: fade-in var(--dur-2) var(--ease);
}
.tab-panel:focus-visible {
  outline-offset: -3px;
}
.tab-panel[hidden] {
  display: none !important;
}

/* Tooltip and menu */
.tooltip {
  z-index: 200;
  max-width: 260px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  background: #0f1729;
  color: #f1f4fb;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--shadow-2);
  animation: fade-in var(--dur-1) var(--ease);
}
:root[data-theme='dark'] .tooltip {
  background: #e7ebf6;
  color: #0f1729;
}
.menu {
  z-index: 130;
  min-width: 220px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
  animation: pop-in var(--dur-2) var(--ease);
}
.menu-label {
  padding: 6px 9px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-3);
}
.menu-separator {
  height: 1px;
  margin: 4px 2px;
  background: var(--border);
}
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.menu-item[data-highlighted] {
  background: var(--cobalt-soft);
  color: var(--cobalt-text);
}
.menu-item[data-disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.menu-item.is-danger {
  color: var(--red-text);
}
.menu-item-icon {
  display: inline-flex;
  width: 16px;
  margin-top: 2px;
  flex: none;
}
.menu-item-text {
  display: grid;
  gap: 1px;
}
.menu-item-text small {
  font-size: 0.72rem;
}

/* Toasts */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
  font-family: var(--font-sans);
}
.toast [data-icon] {
  display: inline-flex;
  margin-top: 1px;
  color: var(--cobalt-text);
}
.toast-success [data-icon] {
  color: var(--teal-text);
}
.toast-error {
  border-color: var(--red-line);
}
.toast-error [data-icon] {
  color: var(--red-text);
}
.toast-warning [data-icon] {
  color: var(--amber-text);
}
.toast-title {
  font-size: 0.8125rem;
  font-weight: 600;
}
.toast-description {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-2);
}
.toast [data-button] {
  margin-left: auto;
  align-self: center;
}
.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  color: var(--text-3) !important;
  transform: none !important;
  cursor: pointer;
}
.toast-close:hover {
  background: var(--surface-3) !important;
  color: var(--text) !important;
}

/* Code editor */
.code-frame {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--code-bg);
  transition:
    border-color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}
.code-frame:focus-within:not(.is-readonly) {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 22%, transparent);
}
.code-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 6px 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.code-lang {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--cobalt-soft);
  color: var(--cobalt-text);
}
.code-stats {
  font-size: 0.72rem;
  color: var(--text-3);
}
.code-toolbar-spacer {
  flex: 1;
}
.code-host {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.code-host .cm-editor {
  flex: 1;
  min-height: inherit;
  max-height: inherit;
}
.code-host .cm-scroller {
  overflow: auto;
}
.code-fallback {
  margin: 0;
  padding: 10px 14px 10px 58px;
  overflow: auto;
  color: var(--code-fg);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.btn.is-pressed {
  --btn-bg: var(--cobalt-soft);
  --btn-fg: var(--cobalt-text);
}

/* Segmented control */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}
.segmented button:hover {
  color: var(--text);
}
.segmented button[aria-pressed='true'],
.segmented button[aria-checked='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    var(--shadow-1),
    0 0 0 1px var(--border);
}

/* Definition lists in drawers */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  margin: 0;
}
/* Each cell draws its own right and bottom rule, so a short last row leaves no grey gap. */
.fact {
  padding: 10px 12px;
  min-width: 0;
  box-shadow:
    1px 0 0 var(--border),
    0 1px 0 var(--border);
}
.fact dt {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 3px;
}
.fact dd {
  margin: 0;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.section-block + .section-block {
  margin-top: 18px;
}
