/*
 * Graphite Knowledge Workbench — complex admin pages.
 * This layer intentionally scopes every selector to the graphite theme and a
 * complex-page root so feature pages cannot restyle neighbouring admin views.
 */

html[data-admin-theme="graphite"] .rd-complex-page {
  --rdc-surface: var(--g-surface-1, #111827);
  --rdc-surface-subtle: var(--g-surface-2, #182235);
  --rdc-surface-quiet: var(--g-surface-3, #202c42);
  --rdc-line: var(--g-line, rgba(145, 163, 195, 0.16));
  --rdc-divider: var(--g-line-soft, rgba(145, 163, 195, 0.10));
  --rdc-text: var(--g-text-1, #f1f5fb);
  --rdc-text-secondary: var(--g-text-2, #a7b3c7);
  --rdc-text-muted: var(--g-text-3, #6f7e97);
  --rdc-accent: var(--g-accent, #4c8dff);
  --rdc-accent-soft: var(--g-accent-soft, rgba(76, 141, 255, 0.14));
  --rdc-success: var(--g-success, #2fb344);
  --rdc-warning: var(--g-warning, #d7af5b);
  --rdc-danger: var(--g-danger, #ff6d7e);
  --rdc-radius: var(--g-radius-panel, 18px);
  min-width: 0;
  color: var(--g-text-2, #a9b2ad);
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* Dashboard ------------------------------------------------------------- */

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .page-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .page-header h2 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .page-header p {
  margin: 2px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-workspace {
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-panel, 18px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-metrics.stats-grid {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting {
  display: grid;
  min-width: 0;
  gap: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-metrics .stat-card {
  min-width: 0;
  min-height: 92px;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card {
  min-height: 108px;
  padding-block: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:first-child {
  background:
    radial-gradient(circle at 88% 82%, rgba(76, 141, 255, 0.22), transparent 50%),
    var(--g-surface-2, #182235);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:last-child {
  background:
    radial-gradient(circle at 12% 18%, rgba(121, 80, 242, 0.18), transparent 50%),
    var(--g-surface-2, #182235);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:is(:first-child, :last-child) .label,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:is(:first-child, :last-child) .sub {
  color: var(--g-text-2, #a7b3c7);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:is(:first-child, :last-child) .value {
  color: var(--g-text-1, #f1f5fb) !important;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:last-child,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting .stat-card:nth-child(3n) {
  border-right: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting .stat-card:nth-child(n + 4) {
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-metrics .stat-card .label {
  margin-bottom: 6px;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-metrics .stat-card .value {
  color: var(--g-text-1, #f1f4f2);
  font-size: 22px;
  font-weight: 720;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card .value {
  font-size: 30px;
  line-height: 34px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-actions.card {
  margin: 0;
  padding: 14px 18px 16px;
  border: 0;
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-actions.card h3 {
  margin: 0 0 10px;
  color: var(--g-text-1, #f1f4f2);
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-actions.card > div {
  gap: 8px !important;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-actions .btn {
  min-height: 36px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-analytics {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics {
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-panel, 18px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .ops-data-alert {
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-2, #a9b2ad);
  font-size: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid:last-child {
  border-bottom: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card {
  min-width: 0;
  min-height: 92px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card:nth-child(4n) {
  border-right: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card:nth-child(n + 5) {
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics .stat-card .label,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics .stat-card .sub {
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics .stat-card .value {
  color: var(--g-text-1, #f1f4f2);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections > .grid-2 {
  gap: 12px;
  margin: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections > .card,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections > .grid-2 > .card {
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-card, 16px);
  background: var(--g-surface-1, #111614);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections .card > h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  color: var(--g-text-1, #f1f4f2);
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections .chart-box {
  min-height: 210px;
  height: 240px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections .table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections table {
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

/* Billing: all three views and all six domains remain inside this page. -- */

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-console {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command {
  border: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-page-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-page-head h2 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-page-head p,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-eyebrow,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-connected-chip {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-primary-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--rdc-line, rgba(145, 163, 195, 0.16));
  border-radius: 10px;
  background: var(--rdc-surface, #111827);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-primary-tabs button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--rdc-text-secondary, #a7b3c7);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-primary-tabs button:hover {
  background: rgba(76, 141, 255, 0.08);
  color: var(--rdc-text, #f1f5fb);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-primary-tabs button.active {
  border-color: rgba(104, 160, 255, 0.34);
  background: rgba(76, 141, 255, 0.16);
  color: #f2f6ff;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-primary-tabs button:focus-visible,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-rail-item, .billing-route-button, .billing-project-route-button, .billing-inline-link):focus-visible {
  outline: 2px solid #76a8ff;
  outline-offset: 2px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-data-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--g-warning, #d7af5b) 28%, transparent);
  border-radius: var(--g-radius-control, 10px);
  background: color-mix(in srgb, var(--g-warning, #d7af5b) 9%, transparent);
  color: var(--g-text-2, #a9b2ad);
  font-size: 12px;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-data-warning strong {
  color: var(--g-warning, #d7af5b);
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-workspace, .billing-pricing-workspace, .billing-platform-panel.rd-billing-platform-view) {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-panel, 18px);
  background: var(--g-surface-1, #111614);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace > .billing-panel-head {
  grid-column: 1 / -1;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail {
  position: static;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-label {
  padding: 0 14px 10px;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 30px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--g-text-2, #a9b2ad);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item:hover {
  background: var(--g-surface-3, #1d2521);
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item.active {
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-text-1, #f1f4f2);
  box-shadow: inset 1px 0 var(--g-accent, #00c978);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: var(--g-radius-sm, 8px);
  background: var(--g-surface-1, #111614);
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  font-weight: 650;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item.active .billing-rail-mark {
  border-color: color-mix(in srgb, var(--g-accent, #00c978) 28%, transparent);
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-accent-hover, #19db8a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item :is(strong, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item strong {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item small {
  margin-top: 2px;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item > i {
  color: var(--g-text-3, #7c8781);
  font-style: normal;
  text-align: right;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-note {
  margin: 12px 14px 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
  color: var(--g-text-3, #7c8781);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-note strong {
  color: var(--g-text-2, #a9b2ad);
  font-size: 11px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-note p {
  margin: 4px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-panel, .billing-price-panel, .billing-platform-panel) {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace > .billing-panel-head,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-panel > .billing-panel-head,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace > .billing-panel-head h3 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-panel > .billing-panel-head h3 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head h3 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-panel > .billing-panel-head > div:first-child > span,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head > div:first-child > span {
  color: var(--g-accent-hover, #19db8a);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-panel > .billing-panel-head p,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head p {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-panel-count {
  min-width: 70px;
  padding: 7px 10px;
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-2, #171d1a);
  text-align: right;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-panel-count :is(span, strong) {
  display: block;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-panel-count span {
  color: var(--g-text-3, #7c8781);
  font-size: 10px;
  line-height: 14px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-panel-count strong {
  color: var(--g-text-1, #f1f4f2);
  font-size: 18px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-panel-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-point-rate {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--g-accent, #00c978) 22%, transparent);
  border-radius: 999px;
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-accent-hover, #19db8a);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-table-wrap, .billing-price-table-wrap, .billing-drama-table-wrap) {
  overflow: auto;
  border: 0;
  border-radius: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-table-wrap {
  max-height: 680px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-table, .billing-price-table-v2, .billing-drama-fixed-table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-table, .billing-price-table-v2, .billing-drama-fixed-table) thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-table, .billing-price-table-v2, .billing-drama-fixed-table) th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-table, .billing-price-table-v2, .billing-drama-fixed-table) td {
  padding: 12px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  color: var(--g-text-2, #a9b2ad) !important;
  text-align: left;
  vertical-align: top;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-audit-table, .billing-price-table-v2, .billing-drama-fixed-table) tbody tr:hover {
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state, .billing-usage-state, .billing-strategy-state, .billing-provider-state, .billing-kind) {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state, .billing-usage-state, .billing-provider-state) > i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state.connected, .billing-usage-state.in-use, .billing-provider-state.healthy) {
  background: var(--g-success-soft, rgba(47, 179, 68, 0.14));
  color: #7ee28c;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state.connected, .billing-usage-state.in-use, .billing-provider-state.healthy) > i {
  background: var(--g-success, #2fb344);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state.missing, .billing-provider-state.warning, .billing-strategy-state.independent) {
  background: color-mix(in srgb, var(--g-warning, #d7af5b) 10%, transparent);
  color: var(--g-warning, #d7af5b);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state.missing, .billing-provider-state.warning) > i {
  background: var(--g-warning, #d7af5b);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-state.engine, .billing-usage-state.callable, .billing-strategy-state, .billing-provider-state.missing, .billing-kind) {
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-2, #a9b2ad);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-button, .billing-project-route-button) {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-sm, 8px);
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-1, #f1f4f2);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-button, .billing-project-route-button):hover {
  border-color: var(--g-line-strong, rgba(232, 242, 237, 0.22));
  background: var(--g-surface-3, #1d2521);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-button.primary, .billing-project-route-button.primary) {
  border-color: var(--g-accent, #00c978);
  background: var(--g-accent, #00c978);
  color: var(--g-accent-ink, #04130c);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-route-button, .billing-project-route-button):disabled {
  border-color: var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-1, #111614);
  color: var(--g-text-3, #7c8781);
  cursor: not-allowed;
  opacity: 0.58;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary > span {
  padding: 8px 10px;
  border-left: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary > span:first-child {
  border-left: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary :is(strong, small) {
  display: block;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary strong {
  color: var(--g-text-1, #f1f4f2);
  font-size: 16px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary small {
  margin-top: 2px;
  color: var(--g-text-3, #7c8781);
  font-size: 10px;
  line-height: 14px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-stack {
  display: grid;
  gap: 18px;
  padding: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-block + .billing-drama-block {
  padding-top: 18px;
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-block-head span {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-block-head h4 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-block-head p {
  margin: 3px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-block-head > strong {
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: var(--g-radius-card, 16px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection {
  min-width: 0;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection > header {
  display: block;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection:last-child {
  border-right: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-default {
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-engine {
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-engine summary:focus-visible {
  outline: 2px solid var(--g-focus, #66f0b5);
  outline-offset: -2px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-bar > div:first-child > span,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-bar > div:first-child > p {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-bar > div:first-child > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-status {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--g-warning, #d7af5b) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--g-warning, #d7af5b) 9%, transparent);
  color: var(--g-warning, #d7af5b);
  font-size: 12px;
  font-style: normal;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-status.enabled {
  border-color: color-mix(in srgb, var(--g-success, #2fb344) 22%, transparent);
  background: var(--g-success-soft, rgba(47, 179, 68, 0.14));
  color: #7ee28c;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor {
  display: grid;
  grid-template-columns: 136px auto;
  align-items: end;
  gap: 6px 8px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor label {
  grid-column: 1 / -1;
  color: var(--g-text-2, #a9b2ad);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor > div {
  display: flex;
  width: 136px;
  min-height: 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-sm, 8px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor input {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--g-text-1, #f1f4f2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor > div span {
  font-size: 13px;
  font-weight: 600;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor > .billing-route-button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 680px) {
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor {
    grid-template-columns: 1fr;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor label {
    grid-column: auto;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor > div,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor > .billing-route-button {
    width: 100%;
    min-height: 44px;
  }
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-wrap {
  margin: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 {
  min-width: 1180px;
  table-layout: fixed;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 .billing-col-model {
  width: 16%;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 .billing-col-status {
  width: 10%;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 .billing-col-price {
  width: 22%;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 .billing-col-strategy {
  width: 12%;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 .billing-col-actions {
  width: 18%;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 td:first-child > :is(strong, small) {
  display: block;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 td:first-child > strong {
  color: var(--g-text-1, #f1f4f2);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-table-v2 td:first-child > small {
  margin-top: 3px;
  color: var(--g-text-3, #7c8781);
  font-size: 10px;
  line-height: 14px;
  overflow-wrap: anywhere;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-lines {
  display: grid;
  min-width: 0;
  gap: 6px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-line {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-line b {
  color: var(--g-text-3, #7c8781);
  font-size: 10px;
  font-weight: 550;
  line-height: 14px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-line strong {
  max-width: 100%;
  color: var(--g-text-1, #f1f4f2);
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  overflow-wrap: anywhere;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-lines.retail .billing-price-line strong {
  color: var(--g-accent-hover, #19db8a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-inline-link {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--g-accent-hover, #19db8a);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-table {
  overflow-x: auto;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head p {
  display: block;
  margin: 3px 0 0;
  color: var(--g-text-2, #a9b2ad);
  font-size: 13px;
  line-height: 19px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view :is(.billing-provider-table-head, .billing-provider-row) {
  display: grid;
  min-width: 1240px;
  grid-template-columns: minmax(300px, 1.6fr) 140px 120px 145px minmax(230px, 1fr) 145px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-table-head {
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-table-head > span {
  padding: 12px 14px;
  color: var(--g-text-2, #a9b2ad);
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row {
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row:hover {
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row > [role="cell"] {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 16px 14px;
  color: var(--g-text-2, #a9b2ad);
  font-size: 14px;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view :is(.billing-provider-table-head > span, .billing-provider-row > [role="cell"]):is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(6)) {
  align-items: center;
  text-align: center;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-identity h4 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 16px;
  font-weight: 680;
  line-height: 22px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-identity p,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row small {
  margin: 4px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 13px;
  line-height: 19px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-technical summary,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-technical code {
  font-size: 13px;
  line-height: 19px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-main-pool strong {
  color: var(--g-text-1, #f1f4f2);
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-number {
  display: block;
  color: var(--g-text-1, #f1f4f2);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-action .billing-route-button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head .billing-panel-count span {
  font-size: 12px;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head .billing-panel-count strong {
  font-size: 22px;
  line-height: 26px;
}

@media (max-width: 760px) {
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-table {
    overflow: visible;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-table-head {
    display: none;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row {
    display: block;
    min-width: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row > [role="cell"] {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
    text-align: left !important;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row > [role="cell"]::before {
    content: attr(data-label);
    grid-row: 1 / span 5;
    align-self: center;
    color: var(--g-text-3, #7c8781);
    font-size: 13px;
    font-weight: 650;
    line-height: 19px;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row > [role="cell"] > * {
    grid-column: 2;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-row > [role="cell"]:last-child {
    border-bottom: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view .billing-provider-action .billing-route-button {
    width: 100%;
  }
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-empty-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-empty-state > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-empty-state strong {
  color: var(--g-text-1, #f1f4f2);
  font-size: 13px;
  font-weight: 650;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-empty-state p {
  margin: 3px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

/* Model control --------------------------------------------------------- */

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command {
  margin: 0 0 12px;
  border: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-page-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-page-copy h2 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command :is(.mc-page-copy p, .mc-eyebrow) {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-range {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-range button {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-range button.active {
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-accent-hover, #19db8a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: 12px;
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab:last-child {
  border-right: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab:hover {
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab.active {
  background: var(--g-surface-3, #1d2521);
  color: var(--g-text-1, #f1f4f2);
  box-shadow: inset 0 -1px var(--g-accent, #00c978);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command :is(.mc-range button, .mc-tabs .sys-tab):focus-visible {
  outline: 2px solid var(--g-focus, #66f0b5);
  outline-offset: -2px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace > :is(.mc-partial-alert, .mc-compat-note, .mc-semantics-note, .mc-economic-warning) {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-2, #a9b2ad);
  font-size: 12px;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-panel, 18px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens {
  min-width: 0;
  min-height: 178px;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-1, #111614);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens:last-child {
  border-right: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens::after {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-usage {
  background:
    radial-gradient(circle at 92% 82%, rgba(76, 141, 255, 0.22), transparent 50%),
    var(--g-surface-2, #182235);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-points {
  background:
    radial-gradient(circle at 14% 18%, rgba(121, 80, 242, 0.18), transparent 50%),
    var(--g-surface-2, #182235);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(.mc-lens-usage, .mc-lens-points) :is(.mc-lens-label, .mc-lens-value, .mc-lens-value small, .mc-lens-kpis, .mc-lens-kpis b, p, small) {
  color: var(--g-text-1, #f1f5fb);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(.mc-lens-usage, .mc-lens-points) :is(.mc-lens-kpis, p, small) {
  color: var(--g-text-2, #a7b3c7);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-index {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-label {
  color: var(--g-text-2, #a9b2ad);
  font-weight: 650;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g-success, #2fb344);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-value {
  margin: 18px 0 12px;
  color: var(--g-text-1, #f1f4f2);
  font-size: 28px;
  font-weight: 720;
  line-height: 34px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-value small {
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  font-weight: 550;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens p {
  margin: 12px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-card, 16px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip > div:last-child {
  border-right: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip b {
  display: block;
  margin: 3px 0 1px;
  color: var(--g-text-1, #f1f4f2);
  font-size: 16px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip :is(.mc-health-label, small) {
  display: block;
  overflow: hidden;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip .is-healthy b {
  color: #7ee28c;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip .is-alert b {
  color: var(--g-warning, #d7af5b);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(.mc-data-card, .mc-ledger-shell, .mc-ledger-table, .card) {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-card, 16px);
  background: var(--g-surface-1, #111614);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(.mc-card-head, .mc-ledger-title) {
  padding: 13px 16px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(.mc-card-head h3, .mc-ledger-title h3) {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(.mc-card-head span, .mc-ledger-title span:first-child) {
  color: var(--g-accent-hover, #19db8a);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-ledger-filters {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace table {
  width: 100%;
  border-collapse: collapse;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace :is(th, td) {
  padding: 10px 12px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  color: var(--g-text-2, #a9b2ad);
  font-size: 12px;
  line-height: 18px;
  text-align: left;
  vertical-align: top;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace th {
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace tbody tr:hover {
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-ledger-empty {
  padding: 28px;
  color: var(--g-text-3, #7c8781);
  text-align: center;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-ledger-empty h3 {
  color: var(--g-text-1, #f1f4f2);
  font-size: 14px;
}

/* Harness --------------------------------------------------------------- */

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .page-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .page-header h2 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .page-header p {
  margin: 2px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  line-height: 18px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation {
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-card, 16px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 10px;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-tab:hover {
  background: var(--g-surface-2, #171d1a);
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-tab.active {
  border-bottom-color: var(--g-accent, #00c978);
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-sub {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px 10px;
  overflow-x: auto;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--g-radius-sm, 8px);
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
  cursor: pointer;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-pill:hover {
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation .hn-pill.active {
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-accent-hover, #19db8a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-navigation :is(.hn-tab, .hn-pill):focus-visible {
  outline: 2px solid var(--g-focus, #66f0b5);
  outline-offset: -2px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace {
  overflow: hidden;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-panel, 18px);
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-list {
  display: block;
  margin: 0;
  padding: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card:last-child {
  border-bottom: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card:hover {
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card.editing {
  background: var(--g-surface-2, #171d1a);
  box-shadow: inset 1px 0 var(--g-accent, #00c978);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card-head {
  display: grid;
  min-height: 56px;
  grid-template-columns: minmax(150px, 0.7fr) minmax(130px, 0.55fr) minmax(220px, 1.6fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-name {
  overflow: hidden;
  color: var(--g-text-1, #f1f4f2);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-key {
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-preview {
  overflow: hidden;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-arrow {
  color: var(--g-text-3, #7c8781);
  font-size: 10px;
  transition: transform 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card.editing .hn-arrow {
  transform: rotate(90deg);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-editor {
  padding: 0 16px;
  border-top: 1px solid transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card.editing .hn-editor {
  padding-block: 16px;
  border-top-color: var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--g-text-2, #a9b2ad);
  font-size: 12px;
  font-weight: 600;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-prompt-textarea {
  width: 100%;
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-1, #111614);
  color: var(--g-text-1, #f1f4f2);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-prompt-textarea:focus-visible {
  outline: 2px solid var(--g-focus, #66f0b5);
  outline-offset: 1px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* System configuration ------------------------------------------------- */

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console.card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto auto;
  margin: 0;
  padding: 0;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-panel, 18px);
  background: var(--g-surface-1, #111614);
  box-shadow: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs {
  display: flex !important;
  min-width: 0;
  min-height: 620px;
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
  flex-wrap: nowrap !important;
  gap: 2px;
  margin: 0;
  padding: 10px 0;
  overflow: visible;
  border: 0;
  border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab {
  display: flex;
  width: 100%;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab:hover {
  background: var(--g-surface-3, #1d2521);
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab.active {
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-text-1, #f1f4f2);
  box-shadow: inset 1px 0 var(--g-accent, #00c978);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab:focus-visible,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console .sys-credential-tab:focus-visible {
  outline: 2px solid var(--g-focus, #66f0b5);
  outline-offset: -2px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .rd-settings-panel {
  min-width: 0;
  max-width: none;
  grid-column: 2;
  grid-row: 1;
  padding: 20px 22px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > h4,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > div:first-child h4,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel .sys-credential-head h4 {
  margin: 0;
  color: var(--g-text-1, #f1f4f2) !important;
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > h4,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > .sys-credential-head {
  margin-bottom: 4px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel .sys-credential-head p {
  margin: 3px 0 0;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > h4 + .rd-settings-field-group,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > .sys-credential-head + .rd-settings-field-group {
  border-top: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-field-group .form-row {
  gap: 14px 16px;
  margin: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-field-group .form-group {
  margin: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel :is(label, .sys-credential-field, .sys-credential-input-label) {
  color: var(--g-text-2, #a9b2ad);
  font-size: 12px;
  font-weight: 550;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > div[style*="background:rgba"] {
  margin-top: 14px !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-block: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08)) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--g-text-3, #7c8781) !important;
  font-size: 11px !important;
  line-height: 16px !important;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .rd-settings-savebar {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 13px 22px;
  border: 0;
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-savebar span {
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-workspace .sys-credential-tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 14px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--g-line, rgba(232, 242, 237, 0.14));
  border-radius: var(--g-radius-control, 10px);
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-workspace .sys-credential-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--g-radius-sm, 8px);
  background: transparent;
  color: var(--g-text-3, #7c8781);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-workspace .sys-credential-tab.active {
  background: var(--g-accent-soft, rgba(0, 201, 120, 0.14));
  color: var(--g-accent-hover, #19db8a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-workspace .sys-credential-panels {
  max-width: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item.sys-credential-item {
  padding: 14px;
  border: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: var(--g-radius-card, 16px);
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-item-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-item-head strong {
  color: var(--g-text-1, #f1f4f2);
  font-size: 13px;
  font-weight: 650;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-meta {
  margin: 12px 0;
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-fields {
  gap: 12px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-item-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item :is(.sys-credential-hint, .sys-credential-item-actions span) {
  color: var(--g-text-3, #7c8781);
  font-size: 11px;
  line-height: 16px;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1280px) {
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card:nth-child(2n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card:nth-child(n + 3) {
    border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab:nth-child(4n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab:nth-child(n + 5) {
    border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }
}

@media (max-width: 900px) {
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .page-header,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .page-header,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-page-head,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-page-head {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding-block: 8px;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting .stat-card:nth-child(3n) {
    border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting .stat-card:nth-child(2n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting .stat-card:nth-child(n + 3) {
    border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-sections > .grid-2 {
    grid-template-columns: 1fr;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-workspace {
    grid-template-columns: 1fr;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail {
    padding: 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage :is(.billing-rail-label, .billing-rail-note) {
    display: none;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-list {
    flex-direction: row;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item {
    min-width: 172px;
    flex: 0 0 auto;
    border-right: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-rail-item.active {
    box-shadow: inset 0 -1px var(--g-accent, #00c978);
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-bar {
    grid-template-columns: 1fr;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor {
    align-items: stretch;
    flex-wrap: wrap;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection-grid {
    grid-template-columns: 1fr;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection {
    border-right: 0;
    border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-selection:last-child {
    border-bottom: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-data-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card-head {
    grid-template-columns: minmax(130px, 1fr) minmax(110px, 0.7fr) auto auto;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-preview {
    display: none;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console.card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs {
    min-height: 0;
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab {
    width: auto;
    min-width: 128px;
    text-align: center;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab.active {
    box-shadow: inset 0 -1px var(--g-accent, #00c978);
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .rd-settings-panel {
    grid-column: 1;
    grid-row: 2;
    padding: 18px 16px 6px;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .rd-settings-savebar {
    grid-column: 1;
    grid-row: 3;
    padding-inline: 16px;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-field-group .form-row,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-supporting,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid {
    grid-template-columns: 1fr !important;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-metrics .stat-card,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card {
    border-right: 0;
    border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-dashboard-primary .stat-card:first-child,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--dashboard .rd-analytics-metrics > .stats-grid > .stat-card:first-child {
    border-top: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-command .billing-primary-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace > .billing-panel-head,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-panel > .billing-panel-head,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-platform-panel.rd-billing-platform-view > .billing-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-panel-tools {
    width: 100%;
    justify-content: space-between;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-audit-workspace .billing-drama-head-summary {
    width: 100%;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-policy-editor > div {
    flex: 1 1 120px;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-head-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs {
    display: flex;
    overflow-x: auto;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-command .mc-tabs .sys-tab {
    min-width: 120px;
    flex: 0 0 auto;
    border-top: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens-grid {
    grid-template-columns: 1fr;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens {
    border-right: 0;
    border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-lens:last-child {
    grid-column: auto;
    border-top: 0;
    border-bottom: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip > div:nth-child(2n) {
    border-right: 0;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--modelControl .rd-model-workspace .mc-health-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .page-header p {
    display: none;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace .hn-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--harness .rd-harness-workspace :is(.hn-key, .hn-preview, .hn-status) {
    display: none;
  }

  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .rd-settings-panel {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-admin-theme="graphite"] .rd-complex-page *,
  html[data-admin-theme="graphite"] .rd-complex-page *::before,
  html[data-admin-theme="graphite"] .rd-complex-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* System settings readability corrections ----------------------------- */

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .sys-tabs > .sys-tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  font-size: 13px;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > h4,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > div:first-child h4,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel .sys-credential-head h4 {
  font-size: 16px;
  line-height: 24px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > div:first-child:has(h4) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel .sys-credential-head p,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel > div[style*="background:rgba"],
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item .sys-credential-meta,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-item :is(.sys-credential-hint, .sys-credential-item-actions span) {
  font-size: 12px !important;
  line-height: 18px !important;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-field-group {
  gap: 14px;
  padding: 14px 0;
  border-top: 0;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-panel :is(label, .sys-credential-field, .sys-credential-input-label) {
  font-size: 13px;
  line-height: 19px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-credential-workspace .sys-credential-tab {
  min-height: 38px;
  font-size: 13px;
  line-height: 20px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-console > .rd-settings-savebar {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-savebar span {
  display: none;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--sysConfig .rd-settings-savebar .btn {
  min-height: 40px;
  font-size: 14px;
}

/* Official price synchronization follows the existing graphite billing stage. */
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--g-line-soft, rgba(232, 242, 237, 0.08));
  border-radius: 0;
  background: var(--g-surface-2, #171d1a);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-head {
  padding: 14px 16px;
  border-bottom-color: var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-head > div:first-child > span,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-head p {
  color: var(--g-text-2, #a9b2ad);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-head h4,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-config legend,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-actions > strong,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-result strong {
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-config fieldset,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-actions,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-result,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-differences > summary {
  padding-inline: 16px;
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync .form-control {
  border-color: var(--g-line, rgba(232, 242, 237, 0.14));
  background: var(--g-surface-1, #111614);
  color: var(--g-text-1, #f1f4f2);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync .form-control:focus {
  border-color: var(--g-focus, #66f0b5);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--g-focus, #66f0b5) 22%, transparent);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-actions,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-result,
html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-table-wrap th {
  background: var(--g-surface-1, #111614);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync :is(.billing-price-sync-actions, .billing-price-sync-result, .billing-price-sync-differences, .billing-price-sync-table-wrap) {
  border-color: var(--g-line-soft, rgba(232, 242, 237, 0.08));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync :is(.billing-price-sync-head p, .billing-price-sync-actions > p, .billing-price-sync-result p, .billing-price-sync-config-foot small, .billing-price-sync-empty) {
  color: var(--g-text-2, #a9b2ad);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync :is(.billing-price-sync-state.success, .billing-price-sync-record.success) {
  color: #8ce7a0;
  background: var(--g-success-soft, rgba(47, 179, 68, 0.14));
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync :is(.billing-price-sync-state.info, .billing-price-sync-record.info) {
  color: var(--g-focus, #66f0b5);
  background: color-mix(in srgb, var(--g-focus, #66f0b5) 11%, transparent);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync :is(.billing-price-sync-state.danger, .billing-price-sync-record.danger) {
  color: #f2aa9f;
  background: color-mix(in srgb, #df7d70 12%, transparent);
}

html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync :is(button, input, select):focus-visible {
  outline-color: var(--g-focus, #66f0b5);
}

@media (max-width: 560px) {
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-head,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-config fieldset,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-actions,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-result,
  html[data-admin-theme="graphite"] .rd-complex-page.rd-complex-page--billing .rd-billing-stage .billing-pricing-workspace .billing-price-sync-differences > summary {
    padding-inline: 14px;
  }
}
