/* Dashboard layout */
.cloud-page--narrow {
  max-width: 42rem;
}

.cloud-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .cloud-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.cloud-card--full {
  grid-column: 1 / -1;
}

/* Credits card - activity chart fades in from the right so balance stays readable */
.credits-card {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.credits-card__fullscreen {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.35rem;
  background: rgba(10, 14, 20, 0.55);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.credits-card__fullscreen:hover,
.credits-card__fullscreen:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(10, 14, 20, 0.78);
  outline: none;
}

.credits-card__fullscreen svg {
  display: block;
}

body.credits-card-expand-open {
  overflow: hidden;
}

.credits-card-expand-placeholder {
  width: 100%;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Live card hosted inside the expand modal */
.credits-card.credits-card--expanded {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  grid-column: auto;
}

.credits-card--expanded .credits-card__fullscreen {
  display: none;
}

.credits-card--expanded .credits-card__main {
  flex: 1 1 auto;
  min-height: 18rem;
  overflow: hidden;
}

/* Table present + open: chart ~2/3, table ~1/3. Collapsed / no data: chart fills. */
.credits-card--expanded.credits-card--requests-open .credits-card__main {
  flex: 2 1 0%;
  min-height: 0;
}

.credits-card--expanded .credits-card__chart {
  display: block !important;
  position: absolute;
  inset: 0;
  height: auto !important;
  margin: 0 !important;
  opacity: 1;
}

.credits-card--expanded .credits-chart__plot {
  min-height: 100%;
  height: 100%;
}

/* Expanded modal: light wash only (chart is large; copy already sits on the left). */
.credits-card--expanded .credits-card__body {
  position: relative;
  z-index: 5;
  max-width: min(26rem, 48%);
  padding: 0.2rem 1.25rem 0.85rem 0;
  background: linear-gradient(
    90deg,
    rgba(23, 23, 23, 0.92) 0%,
    rgba(23, 23, 23, 0.78) 55%,
    rgba(23, 23, 23, 0.35) 82%,
    rgba(23, 23, 23, 0) 100%
  );
}

.credits-card--expanded .activity-chart-controls-host {
  position: relative;
  z-index: 6;
}

.credits-card--expanded .credits-card__content {
  max-width: 100%;
}

.credits-card--expanded .credits-card__requests[hidden] {
  display: none !important;
}

.credits-card--expanded.credits-card--requests-open .credits-card__requests:not([hidden]) {
  flex: 1 1 0%;
  min-height: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.35rem;
}

.credits-card--expanded .activity-requests.is-open {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.credits-card--expanded .activity-requests.is-open .activity-requests__expand {
  display: none !important;
}

.credits-card--expanded .activity-requests.is-open .activity-requests__panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1;
  filter: none;
}

.credits-card--expanded .activity-requests.is-open .activity-requests__panel::after {
  display: none;
}

.credits-card__main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.credits-card__chart {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  /* Fade under the balance copy — muted on the left, full on the right. */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.1) 22%,
    rgba(0, 0, 0, 0.28) 38%,
    rgba(0, 0, 0, 0.72) 52%,
    #000 64%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.1) 22%,
    rgba(0, 0, 0, 0.28) 38%,
    rgba(0, 0, 0, 0.72) 52%,
    #000 64%
  );
}

.credits-card__chart .credits-chart__svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0.94;
}

.credits-chart__plot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 9rem;
}

.credits-chart__canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  cursor: crosshair;
}

.credits-chart__canvas .credits-chart__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.credits-chart__hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.credits-chart__crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.credits-chart__hover-dot {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border-radius: 999px;
  border: 1.5px solid rgba(8, 12, 18, 0.85);
}

.credits-chart__tooltip {
  position: absolute;
  z-index: 3;
  min-width: 9.5rem;
  max-width: 16rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 20, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.75rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
}

.credits-chart__tooltip-date {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.credits-chart__tooltip-row {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.credits-chart__tooltip-swatch {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.credits-chart__tooltip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
}

.credits-chart__tooltip-value {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.credits-chart__y-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.credits-chart__y-label {
  position: absolute;
  right: 0.4rem;
  transform: translateY(-50%);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
}

.credits-chart__y-label .credits-chart__axis-balance {
  color: rgba(143, 232, 178, 0.9);
}

.credits-chart__y-label .credits-chart__axis-sep {
  color: rgba(255, 255, 255, 0.28);
}

.credits-chart__y-label .credits-chart__axis-tokens {
  color: rgba(143, 211, 255, 0.9);
}

.credits-chart__y-label--usd {
  color: rgba(143, 232, 178, 0.9);
}

.credits-chart__footer {
  position: relative;
  flex: 0 0 auto;
  margin: 0 4.5rem 0.15rem 0.35rem;
  min-height: 1.1rem;
}

.credits-chart__dates {
  position: relative;
  min-height: 1.1rem;
}

.credits-chart__date {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.credits-card__chart-toggle {
  display: none;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  color: rgba(143, 211, 255, 0.82);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.credits-card__chart-toggle:hover {
  color: rgba(180, 225, 255, 0.95);
}

.credits-card__chart-toggle:focus-visible {
  outline: 2px solid rgba(143, 211, 255, 0.55);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.credits-chart__grid--x {
  stroke-dasharray: 3 5;
  stroke-opacity: 0.45;
}

.credits-chart__grid {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1px;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
}

.credits-chart__axis-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.credits-chart__balance-line,
.credits-chart__series-line,
.provider-chart__series-line {
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(95, 214, 138, 0.28));
}

.credits-chart__tokens-line {
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(99, 179, 237, 0.28));
}

/*
 * Expanded modal stretches the SVG (preserveAspectRatio=none). Drop-shadow
 * scales with the element bounds and reads as thick lines — drop it there and
 * lock stroke to screen pixels via vector-effect.
 */
.credits-card--expanded .credits-chart__balance-line,
.credits-card--expanded .credits-chart__series-line,
.credits-card--expanded .provider-chart__series-line,
.credits-card--expanded .credits-chart__tokens-line {
  stroke-width: 2px;
  filter: none;
}

.credits-card--expanded .credits-chart__grid,
.credits-card--expanded .credits-chart__axis-line {
  stroke-width: 1px;
}

.credits-chart__y-label--tokens {
  color: rgba(143, 211, 255, 0.9);
}

/* Cumulative + color-coded multi-select (providers / developers charts). */
.activity-chart-controls-host {
  margin: 0.15rem 0 0.65rem;
  pointer-events: auto;
}

.credits-card__tabs + .activity-chart-controls-host {
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}

.activity-chart-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.activity-chart-controls__cum {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.activity-chart-controls__cum input {
  width: 0.7rem;
  height: 0.7rem;
  margin: 0;
  accent-color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.activity-chart-controls__cum:hover {
  color: rgba(255, 255, 255, 0.7);
}

.activity-chart-ms {
  position: relative;
  display: inline-flex;
}

.activity-chart-ms__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 14rem;
  min-height: 1.35rem;
  margin: 0;
  padding: 0.15rem 1.15rem 0.15rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.2rem;
  background: rgba(12, 14, 18, 0.88)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='rgba(255,255,255,0.55)' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E")
    no-repeat right 0.4rem center;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
}

.activity-chart-ms__trigger:hover,
.activity-chart-ms__trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.activity-chart-controls--empty {
  opacity: 0.85;
}

.activity-chart-ms__empty-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.15rem 0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 0.2rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.activity-chart-controls__cum:has(input:disabled) {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.activity-chart-ms__chips {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.activity-chart-ms__chip-swatch {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.activity-chart-ms__summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-chart-ms__panel {
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(17rem, 55vh);
  overflow: auto;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.3rem;
  background: rgba(12, 14, 18, 0.97);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.activity-chart-ms__panel[hidden] {
  display: none;
}

.activity-chart-ms__empty {
  margin: 0;
  padding: 0.35rem 0.45rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.activity-chart-ms__all {
  margin: 0;
  padding: 0.3rem 0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 0.2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.activity-chart-ms__all:hover,
.activity-chart-ms__all.is-on {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.activity-chart-ms__group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.activity-chart-ms__group-label {
  margin: 0.2rem 0 0.05rem;
  padding: 0 0.35rem;
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.activity-chart-ms__option {
  display: grid;
  grid-template-columns: 0.85rem 0.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.28rem 0.4rem;
  border-radius: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.72rem;
  line-height: 1.2;
  cursor: pointer;
}

.activity-chart-ms__option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-chart-ms__option.is-off {
  opacity: 0.55;
}

.activity-chart-ms__option input {
  width: 0.75rem;
  height: 0.75rem;
  margin: 0;
  accent-color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.activity-chart-ms__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.activity-chart-ms__option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credits-card__main > .cloud-skeleton-stack {
  position: relative;
  z-index: 1;
}

.credits-card__body {
  position: relative;
  z-index: 1;
  /* Let empty body space pass hover through to the chart underneath. */
  pointer-events: none;
}

.credits-card__body > *,
.credits-card__body a,
.credits-card__body button,
.credits-card__body input,
.credits-card__body label,
.credits-card__body select,
.credits-card__body textarea,
.credits-card__requests,
.credits-card__requests * {
  pointer-events: auto;
}

/*
 * Block children default to width:100%, which creates invisible hit-boxes over
 * the chart even where there's no text. Shrink-wrap so only the real content
 * captures pointer events (developer dual-metric cards were worst for this).
 */
.credits-card__body > .caption,
.credits-card__body > h1,
.credits-card__body > h2,
.credits-card__body > h3,
.credits-card__body > p,
.credits-card__body > .cloud-stat,
.credits-card__body > .cloud-card__hint,
.credits-card__body > .credits-card__tabs,
.credits-card__body > .activity-chart-controls-host,
.credits-card__body > .credits-card__panel,
.credits-card__body > .credits-card__content,
.credits-card__body > .cloud-actions {
  width: fit-content;
  max-width: 100%;
}

.credits-card__tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.credits-card__tab {
  appearance: none;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

button.credits-card__tab:hover {
  color: rgba(255, 255, 255, 0.82);
}

span.credits-card__tab {
  cursor: default;
}

.credits-card__tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.credits-card__tab-count {
  min-width: 1.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(72, 187, 120, 0.18);
  color: rgba(143, 232, 178, 0.95);
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
}

.credits-card__content {
  max-width: min(22rem, 58%);
}

.model-credits-table-wrap,
.cloud-table-wrap,
.slt-payout-manage__table-wrap {
  position: relative;
}

.model-credits-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.35rem;
  background: rgba(8, 10, 14, 0.55);
}

.model-credits-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
}

.model-credits-table th,
.model-credits-table td {
  padding: 0.32rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.25;
}

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

.model-credits-table th {
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.02);
}

.model-credits-table td {
  color: rgba(255, 255, 255, 0.88);
}

.model-credits-table__model {
  width: 42%;
}

.model-credits-table__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}

.model-credits-table__id {
  display: block;
  margin-top: 0.08rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-credits-table__mono,
.model-credits-table__source {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.model-credits-table th:nth-child(2),
.model-credits-table td:nth-child(2) {
  width: 22%;
}

.model-credits-table th:nth-child(3),
.model-credits-table td:nth-child(3) {
  width: 18%;
}

.model-credits-table th:nth-child(4),
.model-credits-table td:nth-child(4) {
  width: 18%;
}

.cloud-row__note {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  /* Keep the desktop chart overlay; never promote the show/hide toggle. */
  .credits-card__chart-toggle {
    display: none !important;
  }

  .credits-card__content {
    max-width: 100%;
  }
}

/* Request / job history peek beneath the chart, same card */
.credits-card__requests.activity-requests {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  padding-top: 0;
  pointer-events: auto;
}

.activity-requests__expand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.activity-requests__expand:hover,
.activity-requests__expand:focus-visible {
  color: #fff;
  outline: none;
}

.activity-requests__expand[hidden] {
  display: none;
}

.activity-requests__chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
  margin-top: -0.05rem;
}

.activity-requests:not(.is-open) {
  cursor: pointer;
}

.activity-requests:not(.is-open) .activity-requests__panel {
  cursor: pointer;
}

.activity-requests__panel {
  position: relative;
  max-height: 4.85rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: transparent;
  opacity: 0.4;
  filter: grayscale(0.25);
  transition: max-height 0.22s ease, opacity 0.18s ease, filter 0.18s ease;
}

.activity-requests__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 14, 0.1) 0%,
    rgba(8, 10, 14, 0.55) 55%,
    rgba(8, 10, 14, 0.88) 100%
  );
}

.activity-requests.is-open .activity-requests__panel {
  max-height: min(26rem, 58vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1;
  filter: none;
}

.activity-requests.is-open .activity-requests__panel::after {
  display: none;
}

.activity-requests__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.35rem 0.25rem;
  background: transparent;
  border: 0;
}

.activity-requests.is-open .activity-requests__head {
  display: flex;
  flex: 0 0 auto;
  z-index: 5;
  background: rgba(12, 14, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
}

.activity-requests__titles {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.activity-requests__count {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
}

.activity-requests__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.activity-requests__tools > * {
  align-self: center;
}

.activity-requests__search {
  width: min(13.5rem, 44vw);
  height: 1.55rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.78rem;
  outline: none;
}

.activity-requests__search:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.activity-requests__collapse {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.activity-requests__collapse:hover,
.activity-requests__collapse:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.activity-requests__table-wrap {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
}

/* Shared: dim + shimmer while sort/filter/search replaces table rows */
.admin-table-wrap.is-table-loading,
.activity-requests__table-wrap.is-table-loading,
.cloud-table-wrap.is-table-loading,
.model-credits-table-wrap.is-table-loading,
.slt-payout-manage__table-wrap.is-table-loading {
  pointer-events: none;
}

.admin-table-wrap.is-table-loading > table,
.activity-requests__table-wrap.is-table-loading > table,
.cloud-table-wrap.is-table-loading > table,
.model-credits-table-wrap.is-table-loading > table,
.slt-payout-manage__table-wrap.is-table-loading > table {
  opacity: 0.42;
  transition: opacity 0.12s ease;
}

.admin-table-wrap.is-table-loading::after,
.activity-requests__table-wrap.is-table-loading::after,
.cloud-table-wrap.is-table-loading::after,
.model-credits-table-wrap.is-table-loading::after,
.slt-payout-manage__table-wrap.is-table-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 14, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(8, 10, 14, 0.15) 100%
  );
  background-size: 220% 100%;
  animation: table-loading-shimmer 1.15s ease-in-out infinite;
}

@keyframes table-loading-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.activity-requests.is-open .activity-requests__table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.activity-requests:not(.is-open) .activity-requests__head,
.activity-requests:not(.is-open) .activity-requests__sentinel,
.activity-requests:not(.is-open) .activity-requests__table thead {
  display: none;
}

.activity-requests__table {
  width: 100%;
  /* separate — sticky thead is unreliable with collapse */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.8rem;
}

.activity-requests__table th,
.activity-requests__table td {
  padding: 0.28rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
}

.activity-requests__table tbody tr:last-child td {
  border-bottom: 0;
}

.activity-requests__table th {
  font-family: var(--font-meta, ui-sans-serif, system-ui, sans-serif);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.activity-requests__th-sortable,
.activity-requests__table th.admin-th-sortable {
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.activity-requests__th-sortable:hover,
.activity-requests__th-sortable:focus-visible,
.activity-requests__table th.admin-th-sortable:hover,
.activity-requests__table th.admin-th-sortable:focus-visible {
  color: rgba(255, 255, 255, 0.78);
  outline: none;
}

.activity-requests__th-sortable::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  margin-left: 0.25em;
  opacity: 0.35;
  font-size: 0.85em;
  vertical-align: middle;
}

.activity-requests__th-sortable.is-sorted::after {
  content: '▲';
  opacity: 0.85;
}

.activity-requests__th-sortable.is-sorted-desc::after {
  content: '▼';
}

.activity-requests.is-open .activity-requests__table thead {
  display: table-header-group;
}

.activity-requests.is-open .activity-requests__table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(12, 14, 18, 0.98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

.activity-requests__table tbody tr {
  position: relative;
}

.activity-requests__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
  z-index: 2;
}

.activity-requests__table tbody tr:has(.activity-requests__menu.is-open) {
  z-index: 6;
}

.activity-requests__mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
}

.activity-requests__empty {
  color: rgba(255, 255, 255, 0.42);
  text-align: center !important;
  padding: 0.85rem 0.35rem !important;
  white-space: normal !important;
}

.activity-requests__table td.admin-inference-status-cell {
  overflow: visible;
  white-space: normal;
  vertical-align: middle;
}

.activity-requests__table [data-tone='ok'] {
  color: #5cb8a4;
  font-weight: 600;
}

.activity-requests__table [data-tone='warn'] {
  color: #d4a05a;
  font-weight: 600;
}

.activity-requests__table [data-tone='error'] {
  color: #dc6464;
  font-weight: 600;
}

.activity-requests__model-swatch.cloud-machine-tile__model-swatch {
  width: 0.95rem;
  height: 0.95rem;
  padding: 0.05rem;
}

.activity-requests__model-swatch .cloud-machine-tile__model-icon {
  width: 0.78rem;
  height: 0.78rem;
}

.activity-requests__machine-chip {
  white-space: nowrap;
}

.activity-requests__machine-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* Shared speedo (inference jobs, machine P50/P90, provider records). */
.admin-speedo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
}

.admin-speedo__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 1.05rem;
  flex: 0 0 auto;
}

.admin-speedo--compact .admin-speedo__bars {
  height: 0.9rem;
  gap: 1.5px;
}

.admin-speedo__bar {
  display: block;
  width: 3px;
  height: var(--h, 40%);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-speedo--compact .admin-speedo__bar {
  width: 2.5px;
}

.admin-speedo__bar.is-on {
  background: rgba(255, 255, 255, 0.35);
}

.admin-speedo[data-tone='green'] .admin-speedo__bar.is-on {
  background: #3dba6e;
}

.admin-speedo[data-tone='amber'] .admin-speedo__bar.is-on {
  background: #d69e2e;
}

.admin-speedo[data-tone='red'] .admin-speedo__bar.is-on {
  background: #c44848;
}

.admin-speedo__meta {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.admin-speedo__val {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
}

.admin-speedo--compact .admin-speedo__val {
  font-size: 0.68rem;
  letter-spacing: -0.01em;
}

.admin-speedo-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.admin-speedo-pair__sep {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
}

.admin-speedo--bars-only {
  gap: 0;
}

.mi-record__value .admin-speedo {
  margin-top: 0.1rem;
}

.activity-requests__table th.activity-requests__actions-col,
.activity-requests__table td.activity-requests__actions {
  width: 2rem;
  text-align: right;
  overflow: visible;
}

.activity-requests__row--openable {
  cursor: pointer;
}

.activity-requests__row--openable:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.activity-requests__id-btn {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 0.15em;
}

.activity-requests__id-btn:hover,
.activity-requests__id-btn:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.activity-requests__menu {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.activity-requests__table tbody tr:hover .activity-requests__menu,
.activity-requests__table tbody tr:focus-within .activity-requests__menu,
.activity-requests__menu.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 7;
}

.activity-requests__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.activity-requests__menu-toggle:hover,
.activity-requests__menu.is-open .activity-requests__menu-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.activity-requests__menu-dots {
  width: 0.85rem;
  height: 0.2rem;
  background:
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) left center / 0.28rem 100% no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) center / 0.28rem 100% no-repeat,
    radial-gradient(circle, currentColor 1.2px, transparent 1.3px) right center / 0.28rem 100% no-repeat;
}

.activity-requests__menu-panel {
  position: absolute;
  top: calc(100% + 0.15rem);
  right: 0;
  z-index: 8;
  min-width: 7.5rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.25rem;
  background: #121317;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.activity-requests__menu-panel[data-menu-portaled='1'] {
  position: fixed;
  right: auto;
}

.activity-requests__menu-panel[hidden] {
  display: none !important;
}

.activity-requests__menu-panel button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.32rem 0.45rem;
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.activity-requests__menu-panel button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.activity-requests__sentinel {
  display: none;
  min-height: 0.5rem;
  padding: 0.35rem 0.35rem 0.55rem;
}

.activity-requests.is-open .activity-requests__sentinel:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-requests__skel {
  display: inline-block;
  height: 0.65rem;
  max-width: 100%;
  border-radius: 0.2rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: activity-requests-shimmer 1.4s ease-in-out infinite;
  vertical-align: middle;
}

.activity-requests__skel--footer {
  width: 5.5rem;
  height: 0.55rem;
}

.activity-requests__skeleton-row td {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

@keyframes activity-requests-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.activity-requests__machine-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 0.12em;
}

.activity-requests__machine-link:hover,
.activity-requests__machine-link:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.activity-requests__report-category {
  margin-bottom: 0.45rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Fleet-style multi-select filters (dashboard tables) */
.activity-requests__tools {
  flex-wrap: nowrap;
  overflow: visible;
}

.activity-requests__tools .table-filters {
  flex: 0 0 auto;
}

/* Clear sits with the filter icon buttons — match their height/chrome */
.table-filter-clear,
.table-filters > .table-filter-clear,
.table-filters ~ .table-filter-clear,
.activity-requests__clear {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  min-width: 1.55rem;
  height: 1.55rem;
  min-height: 1.55rem;
  margin: 0;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  text-decoration: none;
  vertical-align: middle;
}

.table-filter-clear::before,
.activity-requests__clear::before {
  content: none !important;
  display: none !important;
}

.table-filter-clear:hover,
.table-filter-clear:focus-visible,
.activity-requests__clear:hover,
.activity-requests__clear:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.table-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  overflow: visible;
  line-height: 0;
}

.table-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  width: 1.55rem;
  height: 1.55rem;
  z-index: 2;
}

.table-filters > .table-filter-clear {
  align-self: center;
}

.table-filter[data-open='true'] {
  z-index: 40;
}

.table-filter-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  line-height: 0;
}

.table-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.table-filter[data-open='true'] .table-filter-btn,
.table-filter-btn[aria-expanded='true'] {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.table-filter-btn__icon {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.table-filter-btn__count {
  position: absolute;
  top: -0.28rem;
  right: -0.28rem;
  min-width: 0.85rem;
  height: 0.85rem;
  padding: 0 0.18rem;
  border-radius: 999px;
  background: var(--accent, #4f8cff);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 0.85rem;
  text-align: center;
  pointer-events: none;
}

.table-filter__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.3rem);
  left: 0;
  right: auto;
  box-sizing: border-box;
  width: max-content;
  min-width: 10.5rem;
  max-width: min(15rem, 70vw);
  max-height: 12rem;
  overflow: auto;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.25rem;
  background: #121317;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.table-filter__panel .table-filter__heading {
  margin: 0.45rem 0.35rem 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.table-filter__panel .table-filter__option {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.28rem 0.4rem;
  border-radius: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.table-filter__panel .table-filter__option[hidden] {
  display: none;
}

.table-filter__panel .table-filter__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.table-filter__panel .table-filter__option input {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.table-filter__panel .table-filter__search {
  margin: 0 0 0.25rem;
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  min-height: 1.55rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.78rem;
  box-sizing: border-box;
}

.table-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
  margin-bottom: 0.55rem;
}

.table-toolbar > * {
  align-self: center;
}

.table-toolbar .cloud-input[type='search'],
.table-toolbar > input.cloud-input {
  flex: 1 1 12rem;
  min-width: 8rem;
  max-width: 18rem;
}

.table-toolbar .table-filters {
  flex: 0 0 auto;
}

.table-toolbar .btn,
.table-toolbar > button,
.table-toolbar .table-filter-clear {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Shared across Account, Developers, Offers, and Providers.
   These used to live in the providers stylesheet, which only loads on /providers. */

.cloud-rows {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
}

.cloud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cloud-row:last-child {
  border-bottom: 0;
}

.cloud-row--empty {
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
}

.cloud-row--static {
  background: rgba(255, 255, 255, 0.02);
}

.cloud-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cloud-row__title {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
}

.cloud-row__meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cloud-row__meta--status {
  font-family: inherit;
  font-weight: 500;
}

.cloud-row__meta--status[data-tone='active'] {
  color: rgba(134, 239, 172, 0.95);
}

.cloud-row__meta--status[data-tone='pending'] {
  color: rgba(255, 255, 255, 0.55);
}

.cloud-row__meta--status[data-tone='suspended'] {
  color: rgba(252, 165, 165, 0.95);
}

.cloud-row__action {
  flex-shrink: 0;
  font-size: 0.8125rem;
}

.cloud-snippet-panel {
  margin-top: 1rem;
}

.cloud-snippet-label {
  margin-bottom: 0.5rem;
}

.cloud-snippet-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.cloud-snippet {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.cloud-snippet code {
  display: block;
  padding: 0;
  background: none;
  border: none;
  font-size: inherit;
  color: inherit;
}

@media (max-width: 768px) {
  .cloud-snippet-wrap {
    grid-template-columns: 1fr;
  }

  .cloud-snippet-wrap .btn-sm {
    width: 100%;
    justify-content: center;
  }
}

.cloud-key-item--new {
  border-color: rgba(99, 179, 237, 0.35);
  background: rgba(99, 179, 237, 0.06);
}

.cloud-key-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.cloud-key-item__head {
  width: 100%;
}

.cloud-key-item__limits {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.72;
}

.cloud-key-token-row,
.cloud-machine__token-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cloud-key-token-row:not(.cloud-key-token-row--revealed) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cloud-key-token-value,
.cloud-key-token-body,
.cloud-machine__token-body {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.cloud-key-token-snippet {
  margin: 0.35rem 0 0;
  max-height: 6.5rem;
  overflow: auto;
}

.cloud-key-token-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cloud-key-token-masked {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.cloud-key-token-masked__track {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.cloud-key-token-masked__track code {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

.cloud-key-token-masked__track::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.cloud-key-token-masked-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cloud-key-token-id,
.cloud-machine__token-id {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.cloud-machine-tile__model-swatch .cloud-machine-tile__model-icon {
  width: 0.78rem;
  height: 0.78rem;
}

.cloud-machine-tile__model-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--swatch, #5fd68a);
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid var(--swatch-frame, rgba(255, 255, 255, 0.28));
  border-radius: 2px;
  padding: 0.08rem;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.cloud-machine-tile__model-swatch.is-ready {
  --swatch-frame: #5fd68a;
}

.cloud-machine-tile__model-swatch.is-error {
  --swatch-frame: #f07178;
}

.cloud-machine-tile__model-swatch.is-partial {
  --swatch-frame: #e8a54b;
}

.cloud-machine-tile__model-swatch.is-busy {
  --swatch-frame: #5b9cff;
}

.cloud-machine-tile__model-swatch.is-install {
  --swatch-frame: #b57cff;
}

.cloud-machine-tile__model-swatch.is-off {
  --swatch-frame: rgba(255, 255, 255, 0.22);
  opacity: 0.42;
}

.cloud-machine-tile:hover .cloud-machine-tile__model-swatch:hover,
.cloud-machine-tile__model-swatch:hover {
  transform: scale(1.22);
  filter: brightness(1.15);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cloud-machine-tile__model-swatch {
    transition: none;
  }
}
