/* Local console theme. Loaded after the captured styles; media keeps its original colors. */
html { color-scheme: light; }
html[data-preview-theme="dark"] { color-scheme: dark; background: #0b0b0c; }
.p-console .preview-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 7px 10px; border: 1px solid #e7e7e7;
  border-radius: 6px; background: #fff; color: #686868; cursor: pointer;
  font-size: 12px; line-height: 18px; white-space: nowrap;
}
.p-console .preview-theme-toggle:hover { background: #f6f6f6; color: #262626; }
.p-console .preview-theme-toggle:focus-visible { outline: 2px solid #8d8d8d; outline-offset: 3px; }
.preview-theme-toggle svg { flex: none; width: 16px; height: 16px; }

html[data-preview-theme="dark"] #root .p-console.p-customer {
  --night-canvas: #0b0b0c; --night-surface: #171719; --night-raised: #202023;
  --night-inset: #111113; --night-border: #2b2b30; --night-line: #252529;
  --night-text: #ededf0; --night-muted: #a5a5ae; --night-subtle: #85858f;
  --night-selected: #2a2a2f;
  --analytics-tone-1: #dddde5; --analytics-tone-2: #a4a4b3; --analytics-tone-3: #777789;
  --analytics-tone-4: #555566; --analytics-tone-5: #bcbcc9; --analytics-tone-6: #9090a1; --analytics-tone-7: #68687a;
  --bg: var(--night-canvas); --page: var(--night-canvas); --paper: var(--night-surface);
  --surface: var(--night-surface); --ink: var(--night-text); --text: var(--night-text);
  --muted: var(--night-muted); --border: var(--night-border); --line: var(--night-border);
  --accent: #ededf0; --accent-dark: #fff; --customer-card-line: var(--night-border);
  --cv3-border: var(--night-border); --cv3-muted: var(--night-muted); --cv3-text: var(--night-text);
  --sd-line: var(--night-border); --sd-muted: var(--night-muted); --sd-text: var(--night-text);
  background: var(--night-canvas) !important; color: var(--night-text) !important;
}
html[data-preview-theme="dark"] body { background: #0b0b0c; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.p-console-main,.p-console-content,main) { background: var(--night-canvas) !important; color: var(--night-text); }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(h1,h2,h3,h4) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.page-heading p,.pa-page-heading p,.pv-api-heading p) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(hr,.divider) { border-color: var(--night-border) !important; }

/* Shell and all global menus. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-sidebar,.p-console-topbar) { background: #111113 !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry > button { color: #c9c9d0 !important; background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry > button > svg { color: #b1b1bb !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry > button:hover { background: #1c1c20 !important; color: #fff !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry > button.active { background: #29292e !important; color: #fff !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry > button.active > svg { color: #e8e8ec !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry > button .shell-nav-label { color: inherit !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-collapse-control { background: var(--night-raised) !important; border-color: #3b3b43 !important; color: #b5b5c0 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-section { color: var(--night-subtle) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar.is-collapsed .shell-nav-section { background: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-nav-divider,.shell-sidebar-footer) { border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-sidebar .shell-nav-entry { border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-sidebar-brand,.p-brand) img { filter: brightness(0) invert(1); }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.p-wordmark,.p-console-topbar strong,.p-console-topbar > div > span) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-collapse,.shell-collapse-button,.preview-theme-toggle) { background: var(--night-surface) !important; color: var(--night-muted) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .preview-theme-toggle:hover { background: var(--night-raised) !important; color: #fff !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-account-menu,.fleet-menu-popover,.shell-notification-panel,.notification-panel,.popover,.dropdown-menu) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; box-shadow: 0 12px 38px #0006; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-account-menu,.fleet-menu-popover) :is(button,strong,span,a) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.shell-account-menu,.fleet-menu-popover) button:hover { background: var(--night-raised) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-account-menu button { background: transparent !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-menu-separator { background: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .shell-account-menu-head { border-bottom-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .notification-popover { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; box-shadow: 0 14px 38px #0006; }
html[data-preview-theme="dark"] #root .p-console.p-customer .notification-popover :is(header,article) { border-color: var(--night-border) !important; color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .notification-popover :is(p,time,small) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .notification-item-icon { background: var(--night-raised) !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.modal,dialog) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .modal :is(p,dt,label) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .modal :is(dd,strong) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .modal-backdrop { background: #0009 !important; }

/* Shared controls. Disabled states remain distinct from enabled white actions. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color: var(--night-raised) !important; color: var(--night-text) !important; border-color: #36363d !important; box-shadow: none !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(input,textarea)::placeholder { color: var(--night-subtle) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(input,select,textarea):focus { border-color: #85858f !important; outline-color: #85858f; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(input[type="checkbox"],input[type="radio"]) { accent-color: #b9b9c3; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-button,.button,.cm-actions button,.cm-actions a) { color: var(--night-text) !important; background: var(--night-raised) !important; border-color: #38383e !important; box-shadow: none; }
html[data-preview-theme="dark"] #root .p-console.p-customer .st-button { color: #d1d1da !important; background: var(--night-raised) !important; border-color: #3b3b43 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .st-button:hover { color: #fff !important; background: #2d2d34 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-button,.button,.cm-actions button,.cm-actions a):hover:not(:disabled) { background: #2b2b30 !important; border-color: #55555e !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-primary,.button.primary) { color: #171719 !important; background: #efeff1 !important; border-color: #efeff1 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-primary,.button.primary):hover:not(:disabled) { color: #111 !important; background: #fff !important; border-color: #fff !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-button,.button):disabled { color: #73737e !important; background: #252529 !important; border-color: #303036 !important; opacity: 1; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-link-button,.pa-member-count,.pa-action,.pa-icon-button) { color: var(--night-muted) !important; background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-action,.pa-icon-button):hover { color: #fff !important; background: var(--night-selected) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-muted,.pa-table-hint,.pa-section-subtitle,.pa-field-help,.pa-ip-description,.pa-modal-header p,.pa-card-heading p) { color: var(--night-muted) !important; }

/* Homepage: near-black canvas, charcoal cards, restrained neutral edges. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.hm-explore,.hm-welcome,.st-summary-row > article,.st-feature-card,.st-feature-info,.st-feature-link) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; box-shadow: 0 3px 14px #00000012; }
html[data-preview-theme="dark"] #root .p-console.p-customer .st-feature-card:hover { border-color: #4b4b53 !important; box-shadow: 0 8px 25px #0003; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.hm-explore-heading p,.hm-welcome-copy p,.hm-model-row small,.st-summary-row > article > span,.hm-card-category,.hm-card-price > span) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.hm-model-row,.hm-view-all) { color: #e2e2e7 !important; background: transparent !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .hm-model-row:is(.is-preview,:hover) { background: #232327 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.hm-welcome-step,.hm-card-price > strong,.st-summary-row strong) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .hm-step-dot { border-color: #58585f; background: #3b3b42; }
html[data-preview-theme="dark"] #root .p-console.p-customer .hm-welcome-step.is-complete { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .hm-welcome-step.is-complete .hm-step-dot { background: #309459; border-color: #309459; }

/* Analytics charts, segmented controls and data tables. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-card,.av-panel,.av-demo-badge,.av-select,.av-chart-tooltip) { background: var(--night-surface) !important; color: var(--night-muted) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pv-analytics-card,.preview-analytics) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .preview-analytics { background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pv-analytics-card > strong { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pv-analytics-card > span,.pv-analytics-card > small,.pv-analytics-heading p) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-tabs,.av-period) { background: var(--night-inset) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-tabs > button,.av-period > button) { color: var(--night-muted) !important; background: transparent !important; border-color: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-tabs > button[aria-selected=true],.av-period > button[aria-pressed=true]) { background: #303036 !important; color: #fff !important; border-color: #44444c !important; box-shadow: 0 1px 2px #0003; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-panel-heading p,.av-total > small,.av-total > span,.av-chart-footer,.av-timezone,.av-type-head,.av-type-row > span,.av-latency-meta,.av-percentile-note,.av-latency-table td small) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-total > strong,.av-chart-tooltip strong,.av-type-row > strong,.av-type-row > div > span,.av-latency-table td > strong) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-type-row,.av-type-head,.av-latency-table td,.av-latency-table th) { border-color: var(--night-line) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-grid-line { stroke: #29292e !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-axis-text { fill: #92929e !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-time-svg rect[rx="3"] { transition: fill .15s; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-share-track,.av-range) { background: #2a2a30 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-range-line { background: #696976 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-latency-legend .p50,.av-range .p50) { background: #f1f1f4 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-latency-legend .p90,.av-range .p90) { background: #a5a5b3 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.av-latency-legend .p95,.av-range .p95) { background: #171719 !important; border-color: #b5b5c2 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-latency-table th { background: var(--night-inset) !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-latency-table td { color: #c6c6cf !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-latency-table tbody tr:hover { background: #202024 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-donut circle:first-child { stroke: #2b2b32 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-donut-value { fill: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .av-donut-label { fill: var(--night-muted) !important; }

/* Settings, keys, local dialogs and account management. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.preview-account,.pv-api-workspace) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-credit-callout,.pa-key-panel,.pa-settings-card,.pa-members-table,.pa-modal,.pa-toast) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-settings .pa-page-heading,.pa-account-list,.pa-account-row,.pa-team-details,.pa-key-toolbar,.pa-key-table td,.pa-key-table th,.pa-members-head,.pa-members-row,.pa-notification-row,.pa-card-footnote,.pa-modal-footer) { border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-card-footnote,.pa-modal-footer,.pa-members-head,.pa-key-table th) { background: var(--night-inset) !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-card-footnote > div { background: var(--night-raised) !important; border-color: #34343b !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-profile-field > div,.pa-account-title strong,.pa-key-name,.pa-field,.pa-ip-heading strong) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-profile-field > span,.pa-account-title small,.pa-key-value code,.pa-credit-callout p,.pa-key-toolbar > span,.pa-delete-card p,.pa-member-user small) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-key-table tbody tr:hover { background: var(--night-raised) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-badge,.pa-account-active) { background: #2d2d33 !important; color: #bdbdc8 !important; border-color: #42424a !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-green { background: #1b3327 !important; color: #94cda9 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-permission-banner { background: #2b291e !important; color: #c1b994 !important; border-color: #3d3929 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-profile-avatar,.pa-account-avatar) { background: #363025 !important; color: #dbc9a5 !important; border-color: #4b4232 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-team-avatar,.pa-account-team-avatar) { background: #303036 !important; color: #d0d0d8 !important; border-color: #44444d !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-modal-overlay { background: #0009; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-modal { box-shadow: 0 24px 90px #0009; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-switch { background: #41414a; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-switch[aria-checked=true] { background: #a4a4b2; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-danger-text,.pa-error) { color: #e69b9b !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pa-danger-button,.pa-delete-request) { background: #3f222b !important; color: #f0a9bb !important; border-color: #66313f !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pa-delete-card { border-color: #5f303e !important; }

/* API workspace and native logs. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pv-api-tabs,.pv-api-step-nav,.qs4-step,.qs4-base,.qs4-code,.pv-api-logs .panel) { border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.qs4-step,.qs4-base,.pv-api-logs .panel) { background: var(--night-surface) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .qs4-trial { background: var(--night-raised) !important; border-color: #38383f !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pv-api-tabs > button,.pv-api-step-nav > button,.pv-api-step-label,.qs4-body,.qs4-note,.qs4-base,.qs4-base code,.qs4-controls label,.qs4-callback-url) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pv-api-tabs > button[aria-selected=true] { color: #fff !important; border-bottom-color: #e0e0e6 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pv-api-step-nav > button[aria-selected=true] { color: #fff !important; background: var(--night-selected) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pv-api-step-nav > button:hover { background: var(--night-raised) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .qs4-code-heading { background: var(--night-raised) !important; color: var(--night-muted) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.qs4-code pre,.qs4-code pre code) { color: #c9c9d2 !important; background: #111113 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .qs4-language { background: #111113 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .qs4-language > button { color: var(--night-muted) !important; background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .qs4-language > button[aria-pressed=true] { color: #fff !important; background: #303036 !important; border-color: #44444d !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .data-table th { background: var(--night-inset) !important; color: var(--night-muted) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .data-table td { color: #c6c6cf !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.data-table,.data-table tbody tr,.tasks-toolbar,.search-field) { background: var(--night-surface) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .data-table td strong { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .data-table td :is(code,.stack > span,.status,.phase-label) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .data-table tbody tr:hover { background: var(--night-raised) !important; }

/* Model catalog and the ordinary billing overview share the same surfaces. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-card,.cm-body,.cm-actions,.cm-detail,.cm-detail-panel,.panel,.ib-card,.ib-bill-summary,.ib-account-overview) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; box-shadow: none; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-card-link,.cm-card h3,.cm-title,.cm-price,.ib-overview-balance-line > strong,.ib-section-heading) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .cm-card-link { background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .cm-body strong { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .cm-capabilities { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-detail-arrow,.cm-state,.model-detail-state) { background: #25252bd9 !important; color: #c9c9d3 !important; border-color: #484850 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .customer-model-detail :is(p,dt,.model-detail-id,.model-detail-price-note) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .customer-model-detail :is(dd,strong,.model-detail-start-price) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.model-detail-information,.model-detail-capabilities,.model-detail-pricing,.model-detail-examples,.model-example-text) { background: var(--night-surface) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .customer-model-detail :is(.model-detail-back,li,dd,dt) { border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.ib-account-overview,.ib-overview-sections) { background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ib-donut > div { background: var(--night-surface) !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .customer-integrated-billing :is(th,.ib-table-head) { background: var(--night-inset) !important; color: var(--night-muted) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .customer-integrated-billing :is(td,tr,table,.ib-funding-details,.ib-funding-details > div) { border-color: var(--night-border) !important; color: #b8b8c4 !important; background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .customer-integrated-billing :is(.ib-funding-details summary,.ib-bar-amount,.ib-bar-month) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.ip-surface,.ip-quote,.od-panel) { background: var(--night-surface) !important; border-color: var(--night-border) !important; color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-image-product :is(p,label,.ip-eyebrow,.ip-funding,.ot-help,.ip-table-empty) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-image-product :is(strong,.ip-section-heading,.ip-empty) { color: var(--night-text) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-mode-tabs { background: var(--night-inset) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.ip-mode-tabs button,.ip-text-button) { background: transparent !important; color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-mode-tabs button[aria-pressed=true] { background: var(--night-selected) !important; color: #fff !important; border-color: #484850 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-primary { background: #efeff1 !important; color: #171719 !important; border-color: #efeff1 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-primary:disabled { background: #303036 !important; color: #7f7f8b !important; border-color: #303036 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .ip-fixture-note { background: #2b291e !important; border-color: #3d3929 !important; color: #c1b994 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-description,.cm-meta,.cm-card small,.ib-overview-balance-detail,.ib-overview-balance-line small,.ib-card p) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-card:hover,.cm-actions,.ib-card-header,.ib-overview-tabs) { border-color: #414149 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-filter button,.ib-overview-tabs button) { color: var(--night-muted) !important; background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.cm-filter button.active,.ib-overview-tabs button.active) { color: #fff !important; background: var(--night-selected) !important; }

/* Playground: charcoal editor, darker output surround, original media colors. */
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-workspace,.pg-input,.pg-generation-form,.generation-main,.generation-settings) { background: var(--night-surface) !important; color: var(--night-text) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-input::before { background: var(--night-surface) !important; color: #d1d1d9 !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-input::after { background: #d0d0da !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-panel-heading,.pg-model-info dl,.pg-advanced,.pg-output-facts,.pg-task-reference) { background: var(--night-surface) !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-output,.pg-result-body) { background: #101012 !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-page .field,.pg-result-label > strong,.pg-advanced summary,.pg-page .image-input-heading > strong) { color: #c7c7d0 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page .field > :is(label,span) { color: #b6b6c1 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page .field label > span { color: #b6b6c1 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-model-info,.pg-model-info summary,.pg-page .text-count,.pg-prompt-examples,.pg-compress-option,.pg-output-facts,.pg-wait-line,.pg-task-reference,.pg-page .generation-summary > span:last-child) { color: var(--night-muted) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page :is(.pg-mode-tabs,.mini-tabs,.pg-result-tabs) { background: #111113 !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page :is(.pg-mode-tabs,.mini-tabs,.pg-result-tabs) > button { color: var(--night-muted) !important; background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page :is(.pg-mode-tabs,.mini-tabs,.pg-result-tabs) > button.active { color: #fff !important; background: #303036 !important; border-color: #44444d !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page .generation-settings .segmented { background: transparent !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page .generation-settings .segmented > button { color: var(--night-muted) !important; background: #202023 !important; border-color: #3c3c44 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page .generation-settings .segmented > button.selected { color: #fff !important; background: #36363e !important; border-color: #797986 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-prompt-examples button,.pg-page .upload-area,.pg-page .image-preview) { background: var(--night-raised) !important; color: var(--night-muted) !important; border-color: #3d3d45 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-page .upload-area > span { background: #303036 !important; color: #c7c7d1 !important; border-color: #45454e !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-generation-form .generation-settings > .button { color: #171719 !important; background: #efeff2 !important; border-color: #efeff2 !important; box-shadow: 0 -7px 0 6px #171719 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-generation-form .generation-settings > .button:hover:not(:disabled) { color: #111 !important; background: #fff !important; border-color: #fff !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-generation-form .generation-settings > .button:disabled { background: #303036 !important; color: #7f7f8b !important; border-color: #303036 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-video-stage { border-color: #303036 !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-video-stage.is-working,.pg-output:has(.pg-result-body) .pg-video-stage) { background: radial-gradient(ellipse at 50% 35%,#232328,#111113) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-json { color: #c4c4ce !important; background: #151517 !important; border-color: var(--night-border) !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer .pg-json pre { background: transparent !important; color: inherit !important; }
html[data-preview-theme="dark"] #root .p-console.p-customer :is(.pg-output-facts strong,.pg-output-facts code,.pg-wait-line strong) { color: var(--night-text) !important; }
@media (max-width: 600px) { .preview-theme-toggle > span { display: none; } .p-console .preview-theme-toggle { padding: 7px; } }
