/* oaiteams available-channels alignment */
table[data-testid="desktop-channels"] th,
table[data-testid="desktop-channels"] td {
  vertical-align: middle !important;
}
table[data-testid="desktop-channels"] td {
  font-variant-numeric: tabular-nums;
}

/* pricing popover rows: grid so values line up */
[role="tooltip"] .flex.justify-between {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
}
[role="tooltip"] .flex.justify-between > span:last-child {
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  justify-self: end !important;
}
[role="tooltip"] .flex.justify-between > span:first-child {
  text-align: left !important;
}

/* upstream balance embed inside custom md page */

/* Make embed shell fill content area (less jump) */

/* 上游余额: same SPA custom-page path as buy/usage; size iframe without jump */
.markdown-page-content iframe[src*="upstream-balance"] {
  width: 100% !important;
  height: calc(100vh - 150px) !important;
  min-height: 640px !important;
  border: 0 !important;
  border-radius: 12px;
  display: block;
  background: #0b1220;
  margin: 0 !important;
}
/* reduce title flash: hide huge h1 spacing for this page only if alone */
.markdown-page-content:has(iframe[src*="upstream-balance"]) h1 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

/* 渠道邮件监控 embed */
.markdown-page-content iframe[src*="channel-alerts"] {
  width: 100% !important;
  height: calc(100vh - 140px) !important;
  min-height: 760px !important;
  border: 0 !important;
  border-radius: 12px;
  display: block;
  background: transparent !important;
  margin: 0 !important;
}
.markdown-page-content:has(iframe[src*="channel-alerts"]) h1 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.markdown-page-content iframe[src*="/status"] {
  width: 100% !important;
  height: calc(100vh - 150px) !important;
  min-height: 640px !important;
  border: 0 !important;
  border-radius: 12px;
  display: block;
  background: #0a101c;
}
