:root{color:#111;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none}html,body,#root{min-height:100%;margin:0}html[data-boot-theme=home],html[data-boot-theme=home] body{background:#020405}html[data-boot-theme=console],html[data-boot-theme=console] body{background:#fff}body{min-width:320px}.layered-boot{--boot-background: #ffffff;--boot-foreground: #111111;--boot-muted: rgba(17, 17, 17, .5);--boot-ring: rgba(17, 17, 17, .16);display:grid;width:100%;min-height:100vh;min-height:100dvh;place-items:center;overflow:hidden;background:var(--boot-background);color:var(--boot-foreground)}.layered-boot-home{--boot-background: #020405;--boot-foreground: #f7f8f8;--boot-muted: rgba(247, 248, 248, .56);--boot-ring: rgba(247, 248, 248, .18)}.layered-boot-redirect{display:flex;width:min(100% - 40px,360px);min-height:164px;align-items:center;justify-content:center;flex-direction:column;opacity:1;filter:blur(0);transform:translateY(-2vh) scale(1);animation:layered-boot-soft-enter .42s cubic-bezier(.22,1,.36,1);transition:opacity .36s cubic-bezier(.4,0,.2,1),filter .36s cubic-bezier(.4,0,.2,1),transform .36s cubic-bezier(.4,0,.2,1);will-change:opacity,filter,transform}html[data-boot-phase=leaving] .layered-boot-redirect,.layered-boot-leaving .layered-boot-redirect{opacity:0;filter:blur(2px);transform:translateY(calc(-2vh - 2px)) scale(.99);animation:none}.layered-boot-spinner{position:relative;display:block;width:20px;height:20px;flex:0 0 20px;border:1px solid var(--boot-ring);border-radius:50%;animation:layered-boot-spin 1s linear infinite}.layered-boot-spinner:before{position:absolute;top:-1.5px;left:50%;width:3px;height:3px;border-radius:50%;background:var(--boot-foreground);transform:translate(-50%);content:""}.layered-boot-message{display:flex;align-items:center;justify-content:center;margin:0;color:var(--boot-muted);font-size:13px;font-weight:400;letter-spacing:0;line-height:1.5;text-align:center}.layered-boot-prompt{margin-right:8px}.layered-boot-wordmark{margin-right:15px;color:var(--boot-foreground);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"system-ui",PingFang SC,Microsoft YaHei,sans-serif;font-size:15px;font-weight:400;letter-spacing:5.25px;line-height:normal;text-transform:uppercase}@keyframes layered-boot-spin{to{transform:rotate(360deg)}}@keyframes layered-boot-soft-enter{0%{opacity:0;filter:blur(2px);transform:translateY(calc(-2vh + 4px)) scale(.985)}to{opacity:1;filter:blur(0);transform:translateY(-2vh) scale(1)}}@media(max-width:520px){.layered-boot-redirect{width:calc(100% - 32px)}.layered-boot-prompt{margin-right:7px}.layered-boot-wordmark{margin-right:12px}}@media(prefers-reduced-motion:reduce){.layered-boot-redirect{opacity:1;filter:none;transform:translateY(-2vh);transition:none}.layered-boot-redirect,.layered-boot-spinner{animation:none}}:root{color-scheme:light;--bg: #f3f6f7;--surface: #ffffff;--surface-muted: #eef3f4;--surface-raised: rgba(255, 255, 255, .92);--sidebar-bg: #f7faf9;--sidebar-line: rgba(17, 24, 39, .09);--ink: #111111;--text: #2f3a3a;--muted: #697473;--line: rgba(17, 24, 39, .1);--line-strong: rgba(17, 24, 39, .18);--accent: #111111;--accent-soft: #eeeeee;--accent-dark: #000000;--accent-ink: #ffffff;--violet: #4c4c4c;--amber: #0f766e;--green: #0f766e;--teal: #0f766e;--teal-strong: #0a625b;--teal-bright: #14b8a6;--teal-soft: rgba(20, 184, 166, .1);--teal-line: rgba(15, 118, 110, .24);--brand-green: #0f9d6e;--action-orange: #ff5a1f;--save-red: #e5484d;--shadow: 0 22px 60px rgba(15, 23, 42, .08);--shadow-soft: 0 8px 22px rgba(15, 23, 42, .06);--shadow-card: 0 18px 46px rgba(15, 23, 42, .08);--shadow-hover: 0 24px 58px rgba(15, 23, 42, .11);--inner-highlight: inset 0 1px 0 rgba(255, 255, 255, .86);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(rgba(17,24,39,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(17,24,39,.022) 1px,transparent 1px),radial-gradient(circle at 30% 6%,rgba(20,184,166,.08),transparent 31rem),linear-gradient(180deg,#fbfdfd 0,#f3f7f7 34rem,var(--bg) 100%),var(--bg);background-size:72px 72px,72px 72px,auto,auto,auto}button,input{font:inherit}button{cursor:pointer}

/* A single available payment option has no alternate channel to switch to. */
.payment-channel-selector:has(.payment-channel-options > button:only-child)
  .payment-channel-selector-head > p {
  display: none;
}

/* Keep the theme switch restrained in the existing account toolbar. */
.app-shell.agy-console-shell.agy-board-shell .console-theme-toggle {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 !important;
  margin-right: 6px;
  border: 0 !important;
  background: transparent !important;
  color: #727773 !important;
  box-shadow: none !important;
  border-radius: 4px;
  --hover-sweep-color: currentColor !important;
}
/* The shared hover sweep recolors nested icons white; this transparent control
   must keep its icon tied to the theme-aware button color in every state. */
.app-shell.agy-console-shell.agy-board-shell .console-theme-toggle:is(:hover, :focus-visible) { color: #343b37 !important; }
.console-theme-toggle :is(span, svg) { color: inherit !important; }
.console-theme-toggle-icon { grid-area: 1 / 1; display: grid; opacity: 0; filter: blur(3px); transition: opacity 180ms ease, filter 220ms ease; }
.console-theme-toggle-icon[data-visible="true"] { opacity: 1; filter: none; }
.console-theme-toggle::before, .console-theme-toggle::after { display: none !important; }
.console-theme-toggle:focus-visible { outline: 2px solid #648e87 !important; outline-offset: 3px; }

/* Important declarations in this named layer override the legacy console's
   unlayered !important light palette without changing its layout or images.
   The attribute exists only while a customer console route is mounted. */
@layer console-night {
  html[data-console-theme="dark"],
  html[data-console-theme="dark"] .agy-console-shell {
    color-scheme: dark;
    --night-bg: #191919;
    --night-card: #242424;
    --night-raised: #2b2b2b;
    --night-input: #303030;
    --night-text: #d5d5d5;
    --night-heading: #e6e6e6;
    --night-muted: #a0a0a0;
    --night-line: #393939;
    --night-green: #76b9a2;
    --bg: var(--night-bg) !important;
    --surface: var(--night-card) !important;
    --surface-muted: var(--night-raised) !important;
    --surface-raised: var(--night-raised) !important;
    --ink: var(--night-heading) !important;
    --text: var(--night-text) !important;
    --muted: var(--night-muted) !important;
    --line: var(--night-line) !important;
    --line-strong: #505050 !important;
    --accent: #d4d4d4 !important;
    --accent-ink: #232323 !important;
    --teal: var(--night-green) !important;
    --teal-strong: #8bcab4 !important;
    --teal-soft: #293732 !important;
    --brand-green: #81bfaa !important;
    --agy-page-bg: var(--night-bg) !important;
    --agy-card-bg: var(--night-card) !important;
    --agy-card-soft: var(--night-raised) !important;
    --agy-text: var(--night-heading) !important;
    --agy-muted: var(--night-muted) !important;
    --agy-faint: #8e8e8e !important;
    --agy-teal: var(--night-green) !important;
    --agy-board-bg: var(--night-bg) !important;
    --agy-board-card: var(--night-card) !important;
    --agy-board-ink: var(--night-heading) !important;
    --agy-board-muted: var(--night-muted) !important;
    --agy-board-teal: var(--night-green) !important;
    --agy-board-card-shadow: 0 8px 24px #00000018 !important;
    --agy-shadow: 0 8px 24px #00000018 !important;
    --shadow: 0 12px 32px #00000024 !important;
    --shadow-card: 0 8px 24px #00000018 !important;
    --shadow-soft: 0 4px 16px #00000018 !important;
    --inner-highlight: inset 0 1px 0 #ffffff04 !important;
    background: var(--night-bg) !important;
    color: var(--night-text) !important;
  }
  html[data-console-theme="dark"] :is(body, #root, .app-shell, .layered-boot, .layered-boot-console) {
    background: var(--night-bg) !important;
    color: var(--night-text) !important;
  }
  html[data-console-theme="dark"] :is(.main-area, .workspace-page, .page-header, .agy-board-main, .model-price-table, .model-price-matrix, .keys-console-page, .keys-topbar) {
    background: transparent !important;
  }
  html[data-console-theme="dark"] .agy-board-topbar {
    background: rgba(25, 25, 25, 0.94) !important;
    box-shadow: none !important;
  }
  html[data-console-theme="dark"] :is(h1, h2, h3, h4, strong, b, th, .agy-board-brand, .layered-boot-wordmark) { color: var(--night-heading) !important; }
  html[data-console-theme="dark"] :is(p, label, td, li, dt, dd, small, time, code, .empty-state, .field-row, .agy-board-user, .layered-boot-prompt) { color: var(--night-muted) !important; }
  html[data-console-theme="dark"] :is(span, a) { color: inherit !important; }
  html[data-console-theme="dark"] :is([class*="-card"], [class$="-panel"], [class$="-modal"], [class*="-popover"], [class$="-menu"], .billing-mode-explainer, .keys-line-item, .usage-table-wrap, .tutorial-installation, .tutorial-faq, .tutorial-support-band, .model-price-cell, td, th) {
    background-color: var(--night-card) !important;
    background-image: none !important;
    border-color: var(--night-line) !important;
    box-shadow: 0 8px 24px #00000018 !important;
  }
  html[data-console-theme="dark"] :is(table, tr, td, th, hr, input, select, textarea, fieldset, details, pre, [class*="-header"], [class*="-footer"], [class*="-row"], [class*="-item"], [class*="-head"], [class*="-line"], [class*="-cell"]) {
    border-color: var(--night-line) !important;
  }
  html[data-console-theme="dark"] :where(button, a.secondary-button) {
    color: var(--night-text) !important;
    border-color: var(--night-line) !important;
    box-shadow: none !important;
    --hover-sweep-color: var(--night-text) !important;
  }
  html[data-console-theme="dark"] :is(button, a.secondary-button) :is(span, small, strong, svg) { color: inherit !important; }
  html[data-console-theme="dark"] :is(.agy-board-brand, .agy-board-user-button, .agy-board-help-button, .console-preview-billing, .console-preview-billing-trigger, .console-theme-toggle, .model-price-model-trigger, .model-price-compare-toggle, .wallet-policy-trigger) {
    background: transparent !important;
    color: var(--night-muted) !important;
  }
  html[data-console-theme="dark"] .agy-board-brand { color: var(--night-heading) !important; }
  html[data-console-theme="dark"] .agy-board-navlinks button { background: transparent !important; color: var(--night-muted) !important; }
  html[data-console-theme="dark"] .agy-board-navlinks button::before { background: #393939 !important; }
  html[data-console-theme="dark"] .agy-board-navlinks :is(button.active, button:hover, button:focus-visible) { background: #393939 !important; color: #ededed !important; }
  html[data-console-theme="dark"] :is(.console-preview-billing-option, .agy-board-account-menu-item) { background: transparent !important; color: var(--night-muted) !important; }
  html[data-console-theme="dark"] :is(.console-preview-billing-option:hover, .console-preview-billing-option:focus-visible, .console-preview-billing-option[aria-checked="true"], .agy-board-account-menu-item:hover, .agy-board-account-menu-item:focus-visible) {
    background: #343434 !important; color: var(--night-heading) !important;
  }
  html[data-console-theme="dark"] .console-preview-billing-option[aria-checked="true"] { color: var(--night-green) !important; }
  html[data-console-theme="dark"] :is(input, select, textarea, .setup-row, .keys-use-info, .keys-use-code, pre, .tutorial-code-block, .tutorial-code-block > header, .tutorial-code-block > header > button) {
    background: var(--night-input) !important; color: var(--night-text) !important; border-color: #414141 !important;
  }
  html[data-console-theme="dark"] input::placeholder,
  html[data-console-theme="dark"] textarea::placeholder { color: #929292 !important; opacity: 1; }
  html[data-console-theme="dark"] :is(input[type="checkbox"], input[type="radio"]) { accent-color: #87b8a7 !important; }
  html[data-console-theme="dark"] :is(button, input, select, textarea, a):focus-visible { outline-color: #8bb9aa !important; }
  html[data-console-theme="dark"] :is(.primary-button, .keys-create-button) {
    background: #d2d2d2 !important; color: #222 !important;
  }
  html[data-console-theme="dark"] :is(.primary-button, .keys-create-button)::before { background: #e3e3e3 !important; }
  html[data-console-theme="dark"] :is(.primary-button, .keys-create-button):hover { background: #e3e3e3 !important; color: #191919 !important; }
  html[data-console-theme="dark"] :is(button:disabled, input:disabled) { background: #303030 !important; color: #808080 !important; opacity: 0.7 !important; }
  html[data-console-theme="dark"] :is(.secondary-button, .payment-channel-option, .keys-use-tabs button, .usage-range-tabs button, .usage-range-slider button) { background: #303030 !important; color: #b8b8b8 !important; }
  html[data-console-theme="dark"] :is(.payment-channel-option.selected, .payment-channel-option[aria-checked="true"], .keys-use-tabs button.active, .usage-range-tabs button.active, .usage-range-slider button.active) { background: #494949 !important; color: #eee !important; }
  html[data-console-theme="dark"] .recharge-amount-card { background: #2e2e2e !important; color: #d7d7d7 !important; }
  html[data-console-theme="dark"] .recharge-amount-card.selected { background: #434343 !important; color: #f1f1f1 !important; box-shadow: inset 0 0 0 1px #686868 !important; }
  html[data-console-theme="dark"] .recharge-amount-card :is(span, small) { color: #aaa !important; }
  html[data-console-theme="dark"] .recharge-amount-card strong { color: #e6e6e6 !important; }
  html[data-console-theme="dark"] .recharge-amount-card input { background: transparent !important; }
  html[data-console-theme="dark"] :is(.coupon-option, .coupon-selector-item, .recharge-summary, .recharge-settlement, .redeem-preview-box, .inline-status, .tutorial-start-band) { background: #2b3430 !important; color: #a9c5b8 !important; }
  html[data-console-theme="dark"] :is(.wallet-balance-only strong, .model-price-metric-label, .model-price-rate-tag, .model-price-discount, .success, .status-ok, .is-healthy) { color: var(--night-green) !important; }
  html[data-console-theme="dark"] :is(.model-price-table th, .model-price-head, .usage-table thead, .keys-table thead) { background: #2a2a2a !important; color: #aaa !important; }
  html[data-console-theme="dark"] :is(.model-price-cell, .model-price-row td, .model-price-model-menu, .model-price-model-option, .model-claude-notice-panel, .model-claude-notice-header, .model-claude-notice-toggle) { background: var(--night-card) !important; }
  html[data-console-theme="dark"] :is(.model-price-rate-tag, .keys-channel-badge) { background: #303b35 !important; color: #a3c8b5 !important; }
  html[data-console-theme="dark"] :is(.model-price-official, .model-price-official-label, .model-price-metric small, .model-claude-notice-rule p) { color: #aaa !important; }
  html[data-console-theme="dark"] :is(.keys-modal-backdrop, .staff-contact-modal-backdrop, .modal-backdrop, .dialog-backdrop) { background: #111111b8 !important; }
  html[data-console-theme="dark"] :is(.keys-modal, .keys-modal-body, .keys-modal-header, .keys-modal-footer, .staff-contact-modal, .staff-contact-modal-header, .staff-contact-modal-body, .staff-contact-method, .keys-settings-modal, .keys-use-modal, .keys-channel-select-trigger, .keys-channel-select-option) {
    background: var(--night-card) !important; color: var(--night-text) !important;
  }
  html[data-console-theme="dark"] :is(.keys-channel-select-option:hover, .keys-channel-select-option.is-selected) { background: #363636 !important; color: #ddd !important; }
  html[data-console-theme="dark"] :is(.tutorial-directory, .tutorial-facts, .tutorial-tabs, .tutorial-directory-toggle) { background: var(--night-card) !important; }
  html[data-console-theme="dark"] :is(.upstream-status-card, .upstream-status-timeline, .usage-chart, .usage-table-card, .dashboard-section-summary, .dashboard-section-detail, .dashboard-notification-item) { background: var(--night-card) !important; color: var(--night-text) !important; }
  html[data-console-theme="dark"] .console-local-preview-badge { background: #2b2b2b !important; color: #a6c8bb !important; border-color: #414c46 !important; }
  html[data-console-theme="dark"] :is(.model-provider-logo, .model-price-provider-logo) { color: var(--night-heading) !important; }
  html[data-console-theme="dark"] :is(.usage-bar-tooltip, .model-price-tooltip) { background: #363636 !important; color: #e2e2e2 !important; }
  html[data-console-theme="dark"] .dashboard-card-wall-hero { background: transparent !important; box-shadow: none !important; }
  html[data-console-theme="dark"] .dashboard-notification-center { background: var(--night-card) !important; box-shadow: 0 8px 24px #00000018 !important; }
  html[data-console-theme="dark"] :is(.dashboard-section-status, .dashboard-section-eyebrow, .dashboard-status-label, .dashboard-section-token-stat span, .dashboard-section-summary small) { color: #a6a6a6 !important; }
  html[data-console-theme="dark"] :is(div, section, article, header, footer, main, aside) { color: var(--night-text) !important; }
  html[data-console-theme="dark"] .dashboard-agy-page::before { background: var(--night-bg) !important; }
  html[data-console-theme="dark"] .dashboard-section-card::before { background: none !important; }
  html[data-console-theme="dark"] :is(.wallet-payment-strip, .payment-channel-switch button, .dashboard-status-loading, .model-price-table-header, .model-price-table-head, .model-price-channel, .model-price-cost-cell, .model-price-discount-cell, .model-price-channel-cell) { background: var(--night-card) !important; color: var(--night-text) !important; }
  html[data-console-theme="dark"] .payment-channel-switch button.active { background: #484848 !important; color: #ededed !important; }
  html[data-console-theme="dark"] .model-price-table :is([role="cell"], [role="columnheader"], [role="row"]) { background: var(--night-card) !important; }
  html[data-console-theme="dark"] :is(.model-price-provider, .model-price-provider-logo, .model-price-provider-name, .model-price-provider svg) { color: var(--night-heading) !important; }
  html[data-console-theme="dark"] .console-theme-toggle { color: #b8b8b8 !important; background: transparent !important; }
  html[data-console-theme="dark"] :is(.dashboard-sidebar-toggle, .dashboard-sidebar-drawer) { background: var(--night-card) !important; color: var(--night-text) !important; border-color: var(--night-line) !important; }
  html[data-console-theme="dark"] .dashboard-sidebar-drawer-links button { background: transparent !important; color: var(--night-muted) !important; }
  html[data-console-theme="dark"] .dashboard-sidebar-drawer-links button:is(:hover, :focus-visible, .active, [aria-current="page"]) { background: var(--night-input) !important; color: var(--night-heading) !important; }
  html[data-console-theme="dark"] :is(em, s, del) { color: #a3a3a3 !important; }
  html[data-console-theme="dark"] :is(.dashboard-channel-stability-loading, .channel-price-comparison-head, .channel-price-comparison-row > span, .model-price-model-select-option) { background: #2b2b2b !important; color: var(--night-text) !important; }
  html[data-console-theme="dark"] .model-price-model-select-option.is-selected { background: #3a3a3a !important; color: #b1d2c4 !important; }
  html[data-console-theme="dark"] :is(button, a.secondary-button, a.primary-button) {
    -webkit-text-fill-color: currentColor !important;
    background-image: none !important;
  }
  html[data-console-theme="dark"] :is(.keys-icon-button, .keys-table button, .keys-table-scroll button, .keys-search-box, .tutorial-intro-band, .tutorial-requirements) { background: #2e2e2e !important; color: var(--night-text) !important; }
  html[data-console-theme="dark"] .keys-table-scroll { background: transparent !important; }
  html[data-console-theme="dark"] .tutorial-directory {
    border-color: var(--night-line) !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-group svg {
    color: var(--night-green) !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-nav section > a {
    color: var(--night-muted) !important;
    box-shadow: none !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-nav section > a:is(:hover, :focus-visible) {
    background: var(--night-raised) !important;
    color: var(--night-heading) !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-nav section > a[aria-current="page"] {
    background: #293732 !important;
    color: #b2d5c6 !important;
    border-left-color: var(--night-green) !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-foot {
    border-color: var(--night-line) !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-foot span {
    color: var(--night-muted) !important;
  }
  html[data-console-theme="dark"] .tutorial-directory-foot code {
    background: transparent !important;
    color: var(--night-muted) !important;
  }
  @media (min-width: 981px) {
    html[data-console-theme="dark"] .tutorial-directory { background: transparent !important; }
  }
  html[data-console-theme="dark"] code { background-color: #2e2e2e !important; }
  html[data-console-theme="dark"] :is(.primary-button, .keys-create-button) { color: #222 !important; }
  html[data-console-theme="dark"] :is(.primary-button, .keys-create-button) :is(span, strong, small, svg) { color: #222 !important; }
  html[data-console-theme="dark"] :is(.status-layered-line, .status-layered-bars i, .model-price-loading-line, .model-price-loading-bar) { background: #3c3c3c !important; }
  html[data-console-theme="dark"] :is(.error, .inline-error, .is-error, .is-failed) { color: #e6a3a3 !important; }
  html[data-console-theme="dark"] :is(.warning, .is-warning, .is-degraded) { color: #dac396 !important; }

  /* Secondary controls and step markers use a muted surface, not the CTA fill. */
  html[data-console-theme="dark"] :is(.staff-contact-modal-close, .tutorial-step-number) {
    background: var(--night-input) !important;
    color: var(--night-heading) !important;
  }
  html[data-console-theme="dark"] :is(.staff-contact-modal-close, .keys-icon-button):is(:hover, :focus-visible):not(:disabled) {
    background: #3b3b3b !important;
    color: var(--night-heading) !important;
  }
  html[data-console-theme="dark"] .keys-icon-button:disabled {
    background: var(--night-input) !important;
    color: #808080 !important;
  }

  /* The separated table exposes its wrapper in the existing 8px row gaps. */
  html[data-console-theme="dark"] :is(.gateway-usage-table-wrap, .gateway-usage-table) {
    background: var(--night-card) !important;
  }
  html[data-console-theme="dark"] .gateway-usage-table :is(tr, th, td) {
    box-shadow: none !important;
  }
  html[data-console-theme="dark"] .gateway-usage-table tbody tr {
    background: var(--night-card) !important;
  }
  html[data-console-theme="dark"] .gateway-usage-table tbody tr:hover td {
    background: var(--night-raised) !important;
  }
  html[data-console-theme="dark"] :is(.usage-type-pill, .usage-billing-pill, .usage-group-pill) {
    background: var(--night-input) !important;
    color: var(--night-text) !important;
    border-color: var(--night-line) !important;
  }
  html[data-console-theme="dark"] .gateway-usage-table .status-pill {
    background: #293732 !important;
    color: #a3c8b5 !important;
  }
  html[data-console-theme="dark"] .gateway-usage-table .status-pill.danger {
    background: #3b2b2b !important;
    color: #e6a3a3 !important;
  }

  /* Every contact tab shares the same stage, including channels without a QR. */
  html[data-console-theme="dark"] .staff-contact-channel-detail {
    background: var(--night-card) !important;
    border-color: var(--night-line) !important;
    box-shadow: none !important;
  }
  html[data-console-theme="dark"] .staff-contact-channel-detail-icon {
    background: var(--night-input) !important;
    color: var(--night-green) !important;
  }
  html[data-console-theme="dark"] :is(.staff-contact-method-label, .staff-contact-method-meta) {
    color: var(--night-muted) !important;
  }
  html[data-console-theme="dark"] .staff-contact-picker {
    background: transparent !important;
    color: var(--night-muted) !important;
  }
  html[data-console-theme="dark"] .staff-contact-picker:is(:hover, :focus-visible, .is-selected) {
    color: var(--night-green) !important;
  }
  html[data-console-theme="dark"] .staff-contact-zinox {
    border-color: var(--night-line) !important;
  }

  html[data-console-theme="dark"] .payment-channel-options {
    background: transparent !important;
  }
  html[data-console-theme="dark"] .payment-channel-options button {
    background: var(--night-input) !important;
    color: var(--night-text) !important;
    box-shadow: inset 0 0 0 1px var(--night-line) !important;
  }
  html[data-console-theme="dark"] .payment-channel-options button:hover:not(:disabled) {
    background: #383838 !important;
  }
  html[data-console-theme="dark"] .payment-channel-options button.active {
    background: #434343 !important;
    color: #f1f1f1 !important;
    box-shadow: inset 0 0 0 1px #686868 !important;
  }
  html[data-console-theme="dark"] .payment-channel-options button.active:hover:not(:disabled) {
    background: #494949 !important;
  }
  html[data-console-theme="dark"] .payment-channel-options button:disabled {
    background: var(--night-raised) !important;
    color: #808080 !important;
    box-shadow: none !important;
  }

  /* Keep the notification heading on the card surface rather than a table strip. */
  html[data-console-theme="dark"] .dashboard-notification-head {
    background: transparent !important;
  }
  html[data-console-theme="dark"] .dashboard-notification-icon {
    background: var(--night-input) !important;
    color: var(--night-green) !important;
    border-radius: 4px;
  }
  html[data-console-theme="dark"] .dashboard-notification-head div > span {
    color: var(--night-muted) !important;
  }
  html[data-console-theme="dark"] .dashboard-notification-head > strong {
    background: var(--night-raised) !important;
    color: var(--night-muted) !important;
    padding-inline: 10px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px var(--night-line) !important;
    font-variant-numeric: tabular-nums;
  }
}

@media (prefers-reduced-motion: reduce) {
  .console-theme-toggle-icon { transition: none; filter: none; }
}

.console-blur-swap{display:inline-grid;min-width:0;max-width:100%;vertical-align:middle}.console-blur-swap-block{display:grid;width:100%}.console-blur-swap>.console-blur-swap-layer{grid-area:1 / 1;min-width:0;align-self:center;opacity:0;filter:blur(3px);visibility:hidden;pointer-events:none;transition:opacity .15s ease,filter .2s ease,visibility 0s .2s}.console-blur-swap>.console-blur-swap-layer[data-active=true]{opacity:1;filter:blur(0);visibility:visible;pointer-events:auto;transition-delay:55ms,55ms,0s}@starting-style{.console-blur-swap>.console-blur-swap-layer[data-active=true]{opacity:0;filter:blur(3px)}}.console-blur-swap-layer[aria-hidden=true] .dashboard-loading-spinner svg{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.console-blur-swap>.console-blur-swap-layer,.console-blur-swap>.console-blur-swap-layer[data-active=true]{transition:none;filter:none}}

@layer model-rate-help{.model-rate-help{display:inline-grid!important;place-items:center;width:24px;height:24px;min-width:24px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#818984!important;vertical-align:middle;cursor:help}.model-rate-help svg{color:inherit!important;transform:none!important}.model-rate-help:is(:hover,:focus-visible){color:#0f766e!important}.model-rate-help:focus-visible{outline:2px solid #648e87!important;outline-offset:2px}.model-rate-help:before,.model-rate-help:after{display:none!important}.model-price-rates-toggle .model-rate-toggle-button{display:inline-flex;align-items:center;gap:6px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font:inherit;letter-spacing:inherit}.model-rate-toggle-button :is(span,svg){color:inherit!important}.model-rate-toggle-button:focus-visible{outline:2px solid #648e87!important;outline-offset:4px}.model-rate-help-card{position:fixed;z-index:140;box-sizing:border-box;width:min(300px,calc(100vw - 24px));padding:18px;background:#fff!important;color:#171b1a!important;box-shadow:0 24px 64px -16px #1c2e422e,0 4px 14px #1c2e420a!important;opacity:0;filter:blur(3px);visibility:hidden;pointer-events:none;transition:opacity .15s ease,filter .2s ease,visibility 0s .2s}.model-rate-help-card[data-open=true]{opacity:1;filter:blur(0);visibility:visible;pointer-events:auto;transition-delay:55ms,55ms,0s}.model-rate-help-card strong{display:block;color:#171b1a!important;font-size:14px;font-weight:620;line-height:1.4}.model-rate-help-card p{margin:9px 0 0;color:#59645e!important;font-size:12px;line-height:1.8}}.model-price-rate-label{display:inline-flex;align-items:center;gap:2px}.model-price-rate-tag[data-comparison=true]{opacity:1;transform:none}@media(prefers-reduced-motion:reduce){.model-rate-help-card,.model-rate-help-card[data-open=true]{transition:none;filter:none}}@layer console-night{html[data-console-theme=dark] .model-rate-help-card{background:var(--night-raised)!important;color:var(--night-text)!important}html[data-console-theme=dark] .model-rate-help-card strong{color:var(--night-heading)!important}html[data-console-theme=dark] .model-rate-help-card p,html[data-console-theme=dark] .model-rate-help{color:var(--night-muted)!important}html[data-console-theme=dark] .model-rate-help:is(:hover,:focus-visible){color:var(--night-green)!important}html[data-console-theme=dark] .model-price-rate-drawer{background:var(--night-card)!important;color:var(--night-text)!important}}

.console-preview-billing{position:relative;flex:0 0 auto;width:96px;margin-right:10px;border:0;border-radius:0;background:transparent;transition:background-color .16s ease}.console-preview-billing:hover{background:#f4f7f5}.console-preview-billing:focus-within{background:#f4f7f5}.console-preview-billing-trigger{display:flex;width:100%;min-height:32px;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 0 10px!important;border:0!important;border-radius:0;background:transparent!important;color:#111111a3!important;font:inherit;font-size:12px!important;font-weight:600!important;line-height:1;cursor:pointer}.console-preview-billing-trigger:hover,.console-preview-billing-trigger:focus-visible{color:#111!important;background:transparent!important;outline:0;box-shadow:none!important}.console-preview-billing-trigger svg{flex:0 0 auto;opacity:.55;transition:transform .16s ease}.console-preview-billing-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.console-preview-billing-menu{position:fixed;z-index:110;display:grid;width:176px;box-sizing:border-box;padding:6px;border:0;border-radius:0;background:#fffffff5;box-shadow:0 18px 42px #1118271f,0 2px 8px #1118270a;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transform-origin:top right;animation:billing-menu-enter .28s cubic-bezier(.22,1,.36,1) both}.console-preview-billing-menu[data-state=closing]{pointer-events:none;animation:billing-menu-exit .2s cubic-bezier(.4,0,1,1) both}@keyframes billing-menu-enter{0%{opacity:0;transform:translateY(-7px) scale(.975);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes billing-menu-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px) scale(.985);filter:blur(2px)}}.console-preview-billing-option{min-height:34px;padding:0 10px;border:0;border-radius:0;background:transparent;color:#111111a6;font:inherit;font-size:13px;font-weight:560;text-align:left;cursor:pointer;transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}.console-preview-billing-option:hover,.console-preview-billing-option:focus-visible,.console-preview-billing-option[aria-checked=true]{position:relative;background:#fff;color:#111;box-shadow:0 8px 18px #11182712;outline:0}.console-preview-billing-option[aria-checked=true]{color:#0f766e}.billing-mode-explainer{position:fixed;z-index:111;display:grid;box-sizing:border-box;overflow-y:auto;margin:0;padding:18px;border:1px solid rgba(17,24,39,.035);background:#fff;color:#171b1a;box-shadow:0 24px 64px -16px #1c2e2a2e,0 4px 14px #1c2e2a0a;pointer-events:none;opacity:0;filter:blur(4px);transition:opacity .18s ease,filter .18s ease}.billing-mode-explainer[data-visible=true]{opacity:1;pointer-events:auto;filter:blur(0);transition:opacity .22s ease,filter .28s ease}.billing-mode-explainer-panel{grid-area:1 / 1;min-width:0;pointer-events:none;opacity:0;filter:blur(3px);transition:opacity .15s ease,filter .2s ease}.billing-mode-explainer-panel[data-active=true]{opacity:1;filter:blur(0);transition-delay:55ms}.billing-mode-explainer h3{margin:0 0 9px;font-size:14px;line-height:1.4;font-weight:620;letter-spacing:-.02em}.billing-mode-explainer-usage{margin:0;color:#59645e;font-size:12px;line-height:1.8}@media(prefers-reduced-motion:reduce){.console-preview-billing-menu,.console-preview-billing-menu[data-state=closing]{animation:none}.console-preview-billing-option,.console-preview-billing{transition:none}.console-preview-billing-trigger svg{transition:none}.billing-mode-explainer,.billing-mode-explainer[data-visible=true],.billing-mode-explainer-panel,.billing-mode-explainer-panel[data-active=true]{transition:none;transform:none;filter:none}}

.claude-ccswitch-notice{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow-y:auto;border:0;border-radius:0;background:#fff;color:#182220;box-shadow:0 24px 80px #0f23302e;font-family:inherit}.claude-ccswitch-notice::backdrop{background:#e8efeeb8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.claude-ccswitch-notice-header{display:flex;align-items:center;gap:12px;padding:24px 24px 20px}.claude-ccswitch-notice-icon{display:flex;color:#d97757}.claude-ccswitch-notice-header h2{flex:1;margin:0;font-size:20px;font-weight:600}.claude-ccswitch-notice button{font:inherit;cursor:pointer}.claude-ccswitch-notice-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:0;background:transparent;color:#63706d}.claude-ccswitch-notice-close:hover{background:#f1f5f4}.claude-ccswitch-notice-body{display:grid;gap:16px;padding:24px;font-size:14px;line-height:1.8;color:#5b6663}.claude-ccswitch-notice-body p{margin:0}.claude-ccswitch-notice-summary{color:#182220;font-weight:600;font-size:15px}.claude-ccswitch-notice-risk{padding:14px 16px;border:0;border-radius:0;background:#f3f7f5;color:#334740}.claude-ccswitch-notice-body a{display:inline-flex;align-items:center;gap:6px;width:fit-content;color:#0f766e;font-size:12px;text-underline-offset:4px}.claude-ccswitch-notice-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;padding:20px 24px}.claude-ccswitch-notice-footer button{min-height:42px;padding:10px 16px;border:0;border-radius:0;background:#fff;color:#182220;font-size:13px;box-shadow:0 4px 14px #0f233017,0 1px 4px #0f23300d;transition:box-shadow .16s ease}.claude-ccswitch-notice-footer button:hover{background:#fff;box-shadow:0 6px 18px #0f233021,0 2px 5px #0f23300f}.claude-ccswitch-notice-footer button:active{box-shadow:0 2px 7px #0f23301a}.claude-ccswitch-notice :focus-visible{outline:2px solid #0f766e;outline-offset:3px}@media(max-width:480px){.claude-ccswitch-notice-header{padding:20px 20px 16px}.claude-ccswitch-notice-body{padding:20px}.claude-ccswitch-notice-footer{padding:16px 20px}}

.wallet-methods { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; }
.wallet-methods-heading { display: grid; gap: 4px; font-size: 14px; }
.wallet-methods-heading > span { color: #778080; font-size: 11px; }
.wallet-method-grid { display: flex; gap: 8px; }
.agy-console-shell .wallet-method-grid .wallet-method-option {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  position: relative;
  width: auto; min-width: 44px; height: 50px; min-height: 50px; padding: 0 6px 10px;
  border: 0 !important; border-radius: 0; box-shadow: none !important;
  background: transparent !important; color: #171d1d !important; cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}
.agy-console-shell .wallet-method-grid .wallet-method-option:hover { color: #197361 !important; }
.agy-console-shell .wallet-method-grid .wallet-method-option.is-selected { color: #161b1b !important; opacity: 1; }
.agy-console-shell .wallet-method-grid .wallet-method-option > .wallet-logo { opacity: .65; transition: opacity 160ms ease; }
.agy-console-shell .wallet-method-grid .wallet-method-option:is(:hover, :focus-visible) > .wallet-logo { opacity: .85; }
.agy-console-shell .wallet-method-grid .wallet-method-option.is-selected > .wallet-logo { opacity: 1; }
.agy-console-shell .wallet-method-grid .wallet-method-indicator {
  position: absolute !important; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px;
  background: #171d1d !important; background-clip: border-box !important;
  opacity: 0; transition: opacity 160ms ease;
}
.agy-console-shell .wallet-method-grid .is-selected .wallet-method-indicator { opacity: 1; }
.agy-console-shell .wallet-method-grid .wallet-method-option::before,
.agy-console-shell .wallet-method-grid .wallet-method-option::after { display: none !important; }
.wallet-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.wallet-logo-alipay { width: 38px; height: 30px; border-radius: 0; background: transparent; object-fit: contain; }
.wallet-logo-ethereum { width: 21px; height: 34px; object-fit: contain; }
.wallet-logo-cards { gap: 10px; width: 86px; height: 30px; }
.wallet-logo-cards b { color: #1a4da1; font-size: 12px; font-style: italic; font-weight: 900; letter-spacing: -.5px; }
.wallet-logo-mastercard { display: block; width: 42px; height: 26px; object-fit: contain; }
.wallet-method-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-payment-settings { min-width: 0; }
.wallet-payment-settings > .card-title { margin-bottom: 18px; }
.wallet-payment-settings .wallet-method-detail { margin: 0; border: 0; padding: 0; background: transparent; }
.wallet-payment-settings .wallet-crypto-fields { grid-template-columns: 1fr; }
.wallet-payment-settings .payment-channel-selector-head p { display: none; }
.wallet-payment-settings .payment-channel-options { flex-direction: column; }
.wallet-method-detail { padding: 18px; margin-top: 12px; border: 1px solid #dfe6e4; background: #f4f7f6; color: #1b2925; }
.wallet-method-detail-head strong { font-size: 14px; }
.wallet-method-detail-head > span { color: #49746a; font-size: 11px; }
.wallet-method-detail p { margin: 7px 0 0; color: #6a7773; font-size: 12px; line-height: 1.7; }
.wallet-crypto-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.wallet-crypto-fields label { display: grid; gap: 7px; min-width: 0; font-size: 12px; }
.agy-console-shell .wallet-crypto-fields select { width: 100%; min-height: 42px; border: 1px solid #dce3e0; border-radius: 0; padding: 0 10px; background: #fff; color: #20342c; font: inherit; }
.wallet-method-placeholder { display: flex; align-items: center; gap: 12px; margin-top: 16px; border-top: 1px solid #dfe6e4; padding-top: 16px; }
.wallet-method-placeholder > svg, .wallet-method-placeholder > .wallet-logo { flex-shrink: 0; color: #4e7469; }
.wallet-method-placeholder strong { font-size: 12px; font-weight: 500; }
.wallet-card-brands { display: flex; gap: 8px; margin-top: 16px; }
.wallet-card-brands span { padding: 7px 12px; border: 1px solid #dce3e0; background: #fff; color: #303b38; font-size: 13px; font-weight: 650; }
.agy-console-shell .wallet-method-option:focus-visible, .agy-console-shell .wallet-crypto-fields select:focus-visible { outline: 2px solid #197361; outline-offset: 3px; }
.agy-console-shell .wallet-pay-button:disabled { opacity: .5; cursor: not-allowed; }

/* Payment marks are brand colors, so the shell-wide hover sweep must not repaint them. */
.agy-console-shell .wallet-method-grid .wallet-method-option,
.agy-console-shell .wallet-method-grid .wallet-method-option:hover,
.agy-console-shell .wallet-method-grid .wallet-method-option:focus-visible {
  --hover-sweep-bg: transparent !important;
  --hover-sweep-color: #171d1d !important;
  background-color: transparent !important;
  background-image: none !important;
  background-size: auto !important;
}
.agy-console-shell .wallet-method-grid .wallet-method-option:hover .wallet-logo-alipay,
.agy-console-shell .wallet-method-grid .wallet-method-option:focus-visible .wallet-logo-alipay { color: #fff !important; }
.agy-console-shell .wallet-method-grid .wallet-method-option:hover .wallet-logo-cards b,
.agy-console-shell .wallet-method-grid .wallet-method-option:focus-visible .wallet-logo-cards b { color: #1a4da1 !important; }

@media (max-width: 980px) {
  .wallet-tools .wallet-payment-settings { grid-row: 2; }
  .wallet-tools .wallet-policy-card { grid-row: 3; }
  .wallet-tools .wallet-exchange-policy-slot { grid-row: 4; }
  .wallet-tools .wallet-secondary-stack { grid-row: 5; }
}
html[data-console-theme="dark"] .agy-console-shell .wallet-method-grid .wallet-method-indicator { background: #e1e9e6 !important; }
@media(prefers-reduced-motion:reduce){.agy-console-shell .wallet-method-grid .wallet-method-option>.wallet-logo{transition:none}}
html[data-console-theme="dark"] .agy-console-shell .wallet-method-grid .wallet-logo-alipay { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
html[data-console-theme="dark"] .stripe-preview-bar { background: #242a28ed; border-color: #48534e; }
html[data-console-theme="dark"] .stripe-preview-bar :is(strong,label,select) { color: #e1e9e6 !important; }
html[data-console-theme="dark"] .stripe-preview-bar span { color: #a4b3ad !important; }
html[data-console-theme="dark"] .stripe-preview-bar select { background: #303a35 !important; border-color: #53665c; }

.wallet-test-notice { display: grid; gap: 5px; margin: 10px 0 14px; padding: 10px 12px; background: #eff4f2; color: #49665a; font-size: 12px; line-height: 1.6; border-radius: 4px; }
.wallet-test-notice strong { font-size: 12px; font-weight: 600; }
.wallet-test-message { font-size: 12px; line-height: 1.6; margin: 12px 0; color: #526b62; }
.wallet-test-balance { border-top: 1px solid #e1e7e3; margin-top: 18px; padding-top: 16px; font-size: 12px; }
.wallet-test-balance > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wallet-test-balance strong { font-size: 18px; font-weight: 600; }
.wallet-test-balance small { display: block; margin-top: 6px; color: #7b8781; line-height: 1.6; }
.wallet-test-balance details { margin-top: 12px; }
.wallet-test-balance summary { cursor: pointer; }
.wallet-test-balance ul { list-style: none; padding: 0; margin: 10px 0 0; }
.wallet-test-balance li { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e1e7e3; }
.wallet-test-balance time { color: #7b8781; }
html[data-console-theme="dark"] .wallet-test-notice { background: #27342e; color: #b3ccbf; }
html[data-console-theme="dark"] .wallet-test-balance,html[data-console-theme="dark"] .wallet-test-balance li { border-color: #3b4741; }
html[data-console-theme="dark"] .wallet-test-message { color: #aec7bc; }

@media (max-width: 1499px) {
  .model-price-discount-cell .model-price-rate-tag {
    display: none !important;
  }
}

.wallet-two-balances > .wallet-balance-only + .wallet-balance-only { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #e4e7eb); }

.console-account-billing{border-bottom:1px solid rgba(17,17,17,.07)}.app-shell.agy-console-shell.agy-board-shell .console-account-billing .agy-board-account-menu-item :is(span,svg){color:inherit!important}.console-account-billing-chevron{margin-left:auto;transition:transform .16s ease}.console-account-billing-trigger[aria-expanded=true] .console-account-billing-chevron{transform:rotate(180deg)}.console-account-billing-options{padding:0 0 6px 22px}.app-shell.agy-console-shell.agy-board-shell .console-account-billing-option{justify-content:space-between}.app-shell.agy-console-shell.agy-board-shell .console-account-billing-option[aria-pressed=true]{color:#0f766e!important}.keys-channel-card-shell{position:relative;min-width:0}.keys-channel-card-shell .keys-channel-card{width:100%;height:100%}.keys-channel-description-card{position:absolute;bottom:calc(100% + 8px);left:0;width:100%;z-index:10;padding:16px;border:1px solid #e1e3e2;border-radius:8px;background:#fff;color:#222;box-shadow:0 12px 30px #0002;opacity:0;visibility:hidden;pointer-events:none}.keys-channel-description-card strong{color:#0f766e;font-size:13px}.keys-channel-description-card p{margin:8px 0 0;line-height:1.6;font-size:14px}.keys-channel-card-shell:not(.is-tooltip-dismissed):is(:hover,:focus-within) .keys-channel-description-card{opacity:1;visibility:visible}.keys-edit-backdrop :is(.keys-channel-select-trigger,.keys-channel-select-option){color:#111!important;--hover-sweep-color:#111 !important;grid-template-columns:minmax(0,1fr) 20px}.keys-edit-backdrop .keys-channel-select-option.is-selected{color:#fff!important;--hover-sweep-color:#fff !important}.app-shell.agy-console-shell.agy-board-shell .agy-board-main :is(.keys-channel-select-trigger,.keys-channel-select-option){grid-template-columns:minmax(0,1fr) 20px}[data-console-theme=dark] .keys-channel-description-card{background:#252b2a;color:#f1f5f3;border-color:#495450}@media(prefers-reduced-motion:reduce){.console-account-billing-chevron{transition:none}}

.model-price-rate-tag[hidden]{display:none!important}

.contact-qr-paste {
  padding: 14px 16px;
  border: 1px dashed #b6c4c1;
  border-radius: 8px;
  background: #f5f8f7;
  color: #465653;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
}
.contact-qr-paste:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}
.contact-qr-paste[aria-disabled="true"] { opacity: .55; cursor: wait; }
.network-management .contact-qr-editor > img { height: auto; max-height: 280px; object-fit: contain; }
html[data-console-theme="dark"] .contact-qr-paste { background: #202827; color: #d6e0de; border-color: #63716e; }

/* The icon has its own legacy color. Keep its configuration state independent
   of the teal selection underline, hover and keyboard focus. */
.staff-contact-modal .staff-contact-picker.is-configured .staff-contact-method-icon {
  color: #111 !important;
}
.staff-contact-modal .staff-contact-picker.is-pending .staff-contact-method-icon {
  color: rgba(17, 17, 17, .28) !important;
}
.staff-contact-modal .staff-contact-picker .staff-contact-method-icon svg {
  color: inherit !important;
}
.staff-contact-whatsapp-card .staff-contact-group-image,
.staff-contact-whatsapp-card .staff-contact-group-image img {
  background: #fff !important;
  filter: none !important;
}

@layer console-night {
  html[data-console-theme="dark"] .staff-contact-modal .staff-contact-picker.is-configured .staff-contact-method-icon {
    color: var(--night-heading, #e6e6e6) !important;
  }
  html[data-console-theme="dark"] .staff-contact-modal .staff-contact-picker.is-pending .staff-contact-method-icon {
    color: #676767 !important;
  }
  html[data-console-theme="dark"] .staff-contact-modal .staff-contact-picker .staff-contact-method-icon svg {
    color: inherit !important;
  }
}

.conpera-language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:65px;height:34px;padding:0 4px;font:500 12px/1 system-ui,-apple-system,sans-serif;white-space:nowrap;cursor:pointer;transition:opacity .15s}
/* Isolate the trigger from global button backgrounds and white sweep labels. */
html[data-language] .conpera-language-toggle,
.app-shell.agy-console-shell.agy-board-shell .agy-board-actions .conpera-language-toggle{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:#243435!important;letter-spacing:0!important}
.conpera-language-toggle::before,.conpera-language-toggle::after{display:none!important}
.conpera-language-toggle:hover{opacity:.75}
.conpera-language-toggle>svg,.conpera-language-toggle>span{color:inherit!important}
.conpera-language-toggle:focus-visible{outline:2px solid #0f766e!important;outline-offset:3px}
html[data-language] .home-board-agy-nav>.conpera-language-toggle,
html[data-console-theme="dark"] .app-shell.agy-console-shell.agy-board-shell .agy-board-actions .conpera-language-toggle{color:#edf8fa!important}
.conpera-language-toggle.is-floating{position:fixed;right:24px;top:18px;z-index:1000}
.home-board-agy-nav>.conpera-language-toggle{margin-left:0}
.home-board-agy-nav>.cn-home-navlinks{margin-left:auto}
.agy-board-topbar>.conpera-language-toggle,.seo-public-header>.conpera-language-toggle{margin-left:12px}
/* Match the BFF account dropdown, including its neutral night palette. */
#conpera-language-menu{--language-menu-text:rgba(17,17,17,.65);--language-menu-heading:#111;--language-menu-hover:#fff;--language-menu-row-shadow:0 8px 18px #11182712;position:fixed;z-index:1100;box-sizing:border-box;min-width:176px;max-width:calc(100vw - 16px);padding:6px;border:0;border-radius:0;background:#fffffff5;color:var(--language-menu-text);box-shadow:0 18px 42px #1118271f,0 2px 8px #1118270a;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#conpera-language-menu[hidden]{display:none!important}
#conpera-language-menu.is-dark{--language-menu-text:var(--night-muted,#a0a0a0);--language-menu-heading:var(--night-heading,#e6e6e6);--language-menu-hover:#343434;--language-menu-row-shadow:none;background:var(--night-card,#242424);box-shadow:0 8px 24px #00000018}
#conpera-language-menu>button{display:flex!important;align-items:center;justify-content:space-between;gap:20px;box-sizing:border-box;width:100%;height:30px;padding:0 12px!important;border:0!important;border-radius:0;font:inherit;font-size:13px!important;font-weight:500!important;line-height:1;letter-spacing:0!important;text-align:left;cursor:pointer;transition:background-color .12s ease,color .12s ease,box-shadow .12s ease}
#conpera-language-menu>button::before{display:none!important}
#conpera-language-menu>button::after{content:"";display:block;width:12px;color:inherit}
#conpera-language-menu>button[aria-checked="true"]::after{content:"✓"}
/* Join the existing layer so its important dark button rules stay consistent. */
@layer console-night{
 #conpera-language-menu>button{background:transparent!important;color:var(--language-menu-text)!important;box-shadow:none!important}
 #conpera-language-menu>button:is(:hover,:focus-visible,[aria-checked="true"]){background:var(--language-menu-hover)!important;color:var(--language-menu-heading)!important;box-shadow:var(--language-menu-row-shadow)!important;outline:0}
}
@media(prefers-reduced-motion:reduce){#conpera-language-menu>button{transition:none}}
.dashboard-card-wall-actions{display:flex;align-items:center;gap:14px}
html[lang="en"] .agy-board-navlinks{min-width:0;overflow-x:auto;scrollbar-width:thin}
html[lang="en"] .agy-board-navlinks button{white-space:nowrap;flex-shrink:0}
html[lang="en"] .keys-channel-card-description{overflow-wrap:anywhere}
@media(max-width:720px){.conpera-language-toggle{min-width:57px;height:32px;padding:0 8px;gap:5px}.conpera-language-toggle.is-floating{top:12px;right:14px}.agy-board-topbar>.conpera-language-toggle,.seo-public-header>.conpera-language-toggle{margin-left:6px}.agy-board-topbar{flex-wrap:wrap}.agy-board-topbar>.conpera-language-toggle{margin-left:auto}}
@media(max-width:860px){
 .home-board-agy-nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;padding:18px 0}
 .home-board-agy-nav>button:first-child{grid-column:1/-1;grid-row:1;justify-self:start;width:auto}
 .home-board-agy-nav>.cn-home-navlinks{grid-column:1;grid-row:2;min-width:0;width:100%;margin-left:0;overflow-x:auto;justify-content:flex-start;justify-content:safe flex-end}
 .home-board-agy-nav>.conpera-language-toggle{grid-column:2;grid-row:2;justify-self:end;margin-left:0}
}
@media(max-width:720px){
 html[data-language] .app-shell.agy-console-shell.agy-board-shell .agy-board-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important}
 .app-shell.agy-console-shell.agy-board-shell .agy-board-actions{grid-column:2;grid-row:1;width:auto}
 html[data-language] .app-shell.agy-console-shell.agy-board-shell .agy-board-navlinks{grid-area:2/1/3/3!important;justify-self:stretch;min-width:100%!important;width:100%!important;max-width:none!important}
 html[lang="en"] .app-shell.agy-console-shell.agy-board-shell .dashboard-card-wall-page .dashboard-card-wall-hero h1{margin-left:64px!important;width:calc(100% - 64px)}
}

.operator-coupon-wallet-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.operator-coupon-wallet-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 16px;text-decoration:none;border:1px solid var(--border-color,#dce5df);border-radius:8px;color:inherit;background:transparent;font:inherit;font-size:13px;font-weight:500}.operator-coupon-wallet-actions>a:hover{background:var(--surface-hover,#f0f6f2)}.operator-coupon-wallet-actions>a:focus-visible{outline:3px solid #88cdb2;outline-offset:3px}

/* Keep the wallet summary focused on the existing total available balance. */
.wallet-policy-card .wallet-two-balances > .wallet-balance-only ~ .wallet-balance-only,
.wallet-policy-card .wallet-two-balances > .inline-status {
  display: none !important;
}

/* Login and registration already provide account switching below the form. */
.auth-landing:has(.auth-account-links) > .auth-landing-nav > nav {
  display: none !important;
}

.usage-type-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.usage-type-tags .usage-fast-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: 0 0 5px rgb(0 0 0 / 16%);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.usage-fast-tag svg { flex: none; }

@layer console-night {
  html[data-console-theme="dark"] .usage-type-tags .usage-fast-tag {
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 0 5px rgb(0 0 0 / 16%) !important;
  }
}

.dashboard-card-wall-page .dashboard-help-carousel {
  position: relative;
  --help-text: #111;
  --help-muted: rgb(17 17 17 / 42%);
  --help-accent: rgb(15 118 110 / 82%);
}

.dashboard-card-wall-page .dashboard-help-slide {
  height: 100%;
  /* The console's generic anchor sweep has multiple :not() selectors. */
  background-image: none !important;
  text-decoration: none;
  cursor: pointer;
  animation: dashboard-help-enter 260ms ease-out both;
}

.dashboard-help-carousel a.dashboard-help-slide,
.dashboard-help-carousel a.dashboard-help-slide :is(strong, b, .dashboard-section-icon, .dashboard-section-icon svg) {
  color: var(--help-text) !important;
}

.dashboard-help-carousel a.dashboard-help-slide .dashboard-section-eyebrow {
  color: var(--help-accent) !important;
}

.dashboard-help-carousel a.dashboard-help-slide :is(.dashboard-section-status, .dashboard-section-cue) {
  color: var(--help-muted) !important;
}

.dashboard-help-carousel a.dashboard-help-slide:is(:hover, :focus-visible) .dashboard-section-cue {
  color: #fff !important;
}

.dashboard-card-wall-page .dashboard-help-slide > .dashboard-section-cue {
  position: absolute !important;
  inset: auto clamp(20px, 2.5vw, 30px) clamp(18px, 2.2vw, 26px) auto;
}

.dashboard-card-wall-page .dashboard-help-carousel > .dashboard-help-controls {
  position: absolute;
  top: clamp(18px, 2.2vw, 26px);
  right: clamp(20px, 2.5vw, 30px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
}

.dashboard-help-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  background-image: none !important;
  color: #999;
  cursor: pointer;
}

.dashboard-help-controls button:hover,
.dashboard-help-controls button:focus-visible {
  color: #111;
  background: rgb(17 17 17 / 5%);
}

.dashboard-help-controls button:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.dashboard-help-track {
  position: relative;
  display: block;
  overflow: hidden;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: #d7dedc;
}

.dashboard-help-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
  transform: scaleX(0);
  transform-origin: left center;
  animation: dashboard-help-progress linear both;
}

@keyframes dashboard-help-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes dashboard-help-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-console-theme="dark"] .dashboard-help-carousel {
  --help-text: #ecf0ef;
  --help-muted: #a1aaa8;
  --help-accent: #77bdb0;
}

html[data-console-theme="dark"] .dashboard-help-controls button { color: #a1aaa8; }
html[data-console-theme="dark"] .dashboard-help-controls button:hover,
html[data-console-theme="dark"] .dashboard-help-controls button:focus-visible { color: #fff; background: rgb(255 255 255 / 8%); }
html[data-console-theme="dark"] .dashboard-help-track { background: #424c49; }
html[data-console-theme="dark"] .dashboard-help-progress { background: #77bdb0; }

@media (prefers-reduced-motion: reduce) {
  .dashboard-card-wall-page .dashboard-help-slide { animation: none; }
  .dashboard-help-progress { animation: none; transform: scaleX(1); }
}

@media (max-width: 720px) {
  .dashboard-card-wall-page .dashboard-help-slide > .dashboard-section-cue {
    position: static !important;
    inset: auto;
  }
}

/* Keep the same entrance animation attached while an exit is cancelled by a
   late startup stage. Toggling animation:none would start the entrance again. */
html .unified-initial-boot .layered-boot-redirect {
  animation: layered-boot-soft-enter .42s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html .unified-initial-boot .layered-boot-redirect {
    animation: none;
  }
}
