/* Glitch World operator instrument panel
   Shared by Algo, system health, account controls, and scanner terminals. */
:root {
    --gw-op-bg: var(--gw-bg, #0E1116);
    --gw-op-panel: #12191F;
    --gw-op-panel-raised: #172128;
    --gw-op-line: rgba(190, 211, 205, .14);
    --gw-op-line-strong: rgba(72, 217, 238, .42);
    --gw-op-control-line: rgba(231, 239, 236, .24);
    --gw-op-control-line-hover: rgba(231, 239, 236, .42);
    --gw-op-text: #E7EFEC;
    --gw-op-muted: #A5B3B0;
    --gw-op-dim: #82908E;
    --gw-op-green: var(--gw-accent, #00C805);
    --gw-op-cyan: #48d9ee;
    --gw-op-warn: #F2C56E;
    --gw-op-red: #FF8585;
    --gw-op-radius: 10px;
    --gw-op-mono: var(--gw-font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
    --gw-op-sans: var(--gw-font-sans, ui-sans-serif, system-ui, sans-serif);
}

body.operator-surface,
body.desktop-algo,
body.mobile-algo,
body.operator-account,
body.mobile-account,
body.terminal-live,
.gw-terminal__page {
    background-color: var(--gw-op-bg);
    color: var(--gw-op-text);
    font-family: var(--gw-op-sans);
}

body.operator-surface,
body.desktop-algo,
body.mobile-algo,
body.operator-account,
body.mobile-account,
body.terminal-live {
    /* Keep page backgrounds flat; brand accents belong to the controls. */
    background-image: none !important;
}

body.operator-surface .op-wrap {
    color: var(--gw-op-text);
}
body.operator-surface .op-eyebrow { color: var(--gw-op-cyan); }
body.operator-surface .op-kicker { color: var(--gw-op-green); }
body.operator-surface .op-title {
    color: #F2F6F4;
    letter-spacing: -.035em;
    text-shadow: none;
}
body.operator-surface .op-eyebrow {
    color: var(--gw-op-cyan);
}
body.operator-surface .op-subtitle {
    color: var(--gw-op-muted);
}
body.operator-surface .op-card,
body.operator-surface .op-metric {
    border-color: var(--gw-op-line);
    border-radius: var(--gw-op-radius);
    background: var(--gw-op-panel);
    box-shadow: none;
}
body.operator-surface .op-value {
    color: var(--gw-op-cyan);
    font-variant-numeric: tabular-nums;
}
body.operator-surface .op-row-value {
    color: var(--gw-op-text);
    font-variant-numeric: tabular-nums;
}
body.operator-surface .op-row-label,
body.operator-surface .op-nav a,
body.operator-surface .op-label {
    color: var(--gw-op-muted);
}
body.operator-surface .op-metric-label { color: var(--gw-op-cyan); }
body.operator-surface .op-green { color: var(--gw-op-green) !important; }
body.operator-surface .op-warn { color: var(--gw-op-warn) !important; }
body.operator-surface .op-red { color: var(--gw-op-red) !important; }
body.operator-surface .op-value--green { color: var(--gw-op-green) !important; }
body.operator-surface .op-value--warn { color: var(--gw-op-warn) !important; }
body.operator-surface .op-value--red { color: var(--gw-op-red) !important; }
body.operator-surface .op-badge--green { color: var(--gw-op-green); }
body.operator-surface .op-badge--warn { color: var(--gw-op-warn); }
body.operator-surface .op-nav a.active,
body.operator-surface .op-nav a:hover {
    border-color: rgba(0,200,5,.48);
    color: var(--gw-op-green);
    background: rgba(0,200,5,.065);
}
body.operator-surface .op-nav a:hover {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.55);
    background: rgba(72,217,238,.055);
}
body.operator-surface .op-health__quick-link {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.32);
}
body.operator-surface .op-health__quick-link:hover,
body.operator-surface .op-health__quick-link:focus-visible {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.65);
    background: rgba(0,200,5,.07);
}
body.operator-surface .op-input,
body.operator-surface .op-select {
    color: var(--gw-op-text);
    border-color: var(--gw-op-line);
    background: rgba(5,10,13,.4);
}
body.operator-surface .op-input:focus,
body.operator-surface .op-select:focus {
    border-color: rgba(72,217,238,.6);
    box-shadow: 0 0 0 3px rgba(72,217,238,.08);
}
body.operator-surface .op-btn {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.4);
}
body.operator-surface .op-btn:hover { background: rgba(0,200,5,.08); }
body.operator-surface .op-table thead th {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.34);
}
body.operator-surface .op-table tbody td { color: #cbd6d2; }
body.operator-surface .op-table tbody tr:hover td { background: rgba(0,200,5,.035); }
body.operator-surface .op-health-controls,
body.operator-surface .op-rpc-lane-row,
body.operator-surface .op-health-solana-priority,
body.operator-surface .op-health-fast__solana {
    border-color: var(--gw-op-line-strong);
    border-radius: var(--gw-op-radius);
    background: var(--gw-op-panel);
}
body.operator-surface .op-health-section__toggle {
    color: var(--gw-op-muted);
    border-color: var(--gw-op-line);
}
body.operator-surface .op-health-section__toggle:hover,
body.operator-surface .op-health-section__toggle:focus-visible {
    color: var(--gw-op-cyan);
    border-color: var(--gw-op-cyan);
}
body.operator-surface .op-health-fast__details {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.32);
    border-radius: 7px;
    background: rgba(0,200,5,.035);
}
body.operator-surface .op-health-fast__details:hover,
body.operator-surface .op-health-fast__details:focus-visible {
    background: rgba(0,200,5,.09);
}
body.operator-surface .op-health-fast__warning { color: var(--gw-op-warn); }

/* Algo controls are authored in a shared legacy template; higher-specificity
   presentation overrides synchronize both its mobile and desktop shell. */
body.desktop-algo .ga-wrap,
body.mobile-algo .ga-wrap { color: var(--gw-op-text); }
body.desktop-algo .ga-eyebrow,
body.mobile-algo .ga-eyebrow,
body.desktop-algo .ga-activity-title,
body.mobile-algo .ga-activity-title { color: var(--gw-op-cyan); }
body.desktop-algo .ga-eyebrow,
body.mobile-algo .ga-eyebrow { color: var(--gw-op-green); }
body.desktop-algo .ga-status-card,
body.mobile-algo .ga-status-card,
body.desktop-algo .ga-readiness-card,
body.mobile-algo .ga-readiness-card,
body.desktop-algo .ga-activity-card,
body.mobile-algo .ga-activity-card {
    border-color: var(--gw-op-line);
    border-radius: var(--gw-op-radius);
    background: var(--gw-op-panel);
}
body.desktop-algo .ga-wallet-row,
body.mobile-algo .ga-wallet-row { border-color: rgba(72,217,238,.24); }
body.desktop-algo .ga-status-label,
body.mobile-algo .ga-status-label,
body.desktop-algo .ga-token-name,
body.mobile-algo .ga-token-name { color: var(--gw-op-text); }
body.desktop-algo .ga-toggle,
body.mobile-algo .ga-toggle { accent-color: var(--gw-op-green); }
body.desktop-algo .ga-entry-choice,
body.mobile-algo .ga-entry-choice { color: var(--gw-op-green) !important; }
body.desktop-algo .ga-launch-btn--safe,
body.mobile-algo .ga-launch-btn--safe {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.42);
}
body.desktop-algo .ga-profile-con .ga-profile-indicator,
body.mobile-algo .ga-profile-con .ga-profile-indicator { background: var(--gw-op-green) !important; }
body.desktop-algo .ga-adv-save:hover,
body.mobile-algo .ga-adv-save:hover {
    border-color: rgba(0,200,5,.45);
    color: var(--gw-op-green);
}
body.desktop-algo .gw-algo-area-nav,
body.mobile-algo .gw-algo-area-nav {
    border-color: rgba(72,217,238,.24);
    background: var(--gw-op-panel);
}
body.desktop-algo .gw-algo-area-nav a.is-active,
body.mobile-algo .gw-algo-area-nav a.is-active {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.42);
    background: rgba(0,200,5,.075);
}
body.desktop-algo .ga-wallet-select,
body.mobile-algo .ga-wallet-select,
body.desktop-algo .ga-funding-input,
body.mobile-algo .ga-funding-input {
    color: var(--gw-op-text);
    border-color: var(--gw-op-line);
    background-color: #11191e;
}
body.desktop-algo .ga-secondary-button,
body.mobile-algo .ga-secondary-button {
    color: var(--gw-op-warn);
    border-color: rgba(242,197,110,.38);
    background: rgba(242,197,110,.055);
}
body.desktop-algo .ga-trade-warning,
body.mobile-algo .ga-trade-warning { color: var(--gw-op-warn); }

/* Account/profile: same card geometry and operator action semantics on both
   shells, while preserving the existing auth forms and control states. */
body.operator-account .container.py-5,
body.mobile-account .account-wrapper { color: var(--gw-op-text); }
body.operator-account .account-card,
body.mobile-account .account-card-mobile {
    border: 1px solid var(--gw-op-control-line) !important;
    border-radius: var(--gw-op-radius) !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    transition: border-color .16s ease;
}
body.operator-account .account-card:hover,
body.mobile-account .account-card-mobile:hover {
    border-color: var(--gw-op-control-line-hover) !important;
}
body.operator-account .operator-controls-card,
body.mobile-account .operator-controls-card {
    background: transparent !important;
}
body.operator-account .operator-controls-card > .card-body,
body.mobile-account .operator-controls-card > .card-body {
    background: transparent !important;
}
body.operator-account .operator-controls-card h5,
body.mobile-account .operator-controls-card .section-title-mobile {
    color: var(--gw-op-text) !important;
}
body.operator-account .operator-controls-card h5 .text-warning {
    color: var(--gw-op-text) !important;
}
body.operator-account .operator-action-btn,
body.mobile-account .operator-action-btn {
    min-height: 44px;
    border-radius: 8px !important;
    font-family: var(--gw-op-mono);
    letter-spacing: .8px !important;
    transition: color .16s, border-color .16s, background-color .16s, transform .16s;
    text-decoration: none;
}
body.operator-account .operator-action-btn--primary,
body.mobile-account .operator-action-btn--primary {
    color: #07110a !important;
    background: var(--gw-op-green) !important;
    border: 1.5px solid var(--gw-op-green) !important;
}
body.operator-account .operator-action-btn--secondary:not(#xAutomationToggleBtn),
body.mobile-account .operator-action-btn--secondary:not(#xAutomationToggleBtnMobile) {
    color: #FFFFFF !important;
    background: transparent !important;
    border: 1px solid var(--gw-op-control-line) !important;
}
body.operator-account .operator-action-btn--success,
body.mobile-account .operator-action-btn--success {
    color: #FFFFFF !important;
    border: 1px solid rgba(0,200,5,.58) !important;
    background: transparent !important;
}
body.operator-account .operator-action-btn--primary:hover,
body.mobile-account .operator-action-btn--primary:hover {
    color: #07110a !important;
    background: #14E51A !important;
    border-color: #14E51A !important;
}
body.operator-account .operator-action-btn--secondary:not(#xAutomationToggleBtn):hover,
body.mobile-account .operator-action-btn--secondary:not(#xAutomationToggleBtnMobile):hover {
    color: #FFFFFF !important;
    border-color: var(--gw-op-control-line-hover) !important;
    background: transparent !important;
}
body.operator-account .operator-action-btn--success:hover,
body.mobile-account .operator-action-btn--success:hover {
    color: #FFFFFF !important;
    border-color: rgba(0,200,5,.78) !important;
    background: transparent !important;
}
body.operator-account input.form-control,
body.mobile-account input.form-control {
    min-height: 44px;
    border-color: var(--gw-op-line) !important;
    border-radius: 7px;
    background: rgba(5,10,13,.45) !important;
    color: var(--gw-op-text) !important;
}
body.operator-account #xAutomationControl,
body.mobile-account #xAutomationControlMobile {
    border-color: var(--gw-op-control-line) !important;
    border-radius: 10px !important;
    background: transparent !important;
}
body.operator-account #xAutomationControl > div:first-child > div:first-child > div:first-child,
body.mobile-account #xAutomationControlMobile > div:first-child > div:first-child > div:first-child,
body.operator-account #xPublicationAudit > div:first-child,
body.mobile-account #xPublicationAuditMobile > div:first-child {
    color: var(--gw-op-text) !important;
}
body.operator-account #xPublicationAudit,
body.mobile-account #xPublicationAuditMobile {
    border-color: var(--gw-op-line) !important;
    background: transparent !important;
}
body.operator-account #xPublicationAuditBody > div,
body.mobile-account #xPublicationAuditBodyMobile > div {
    border-color: var(--gw-op-line) !important;
    background: transparent !important;
}
/* Button variant contract: filled = green primary/status; outlined = clear
   surface with readable text. The live ON toggle is intentionally excluded. */
body.mobile-account .account-wrapper {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    padding: 1.25rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
    background: transparent;
}
body.mobile-account .account-wrapper > div[style*="max-width: 360px"] { max-width: 560px !important; }

/* Live radar cards, retaining the existing token metrics and diagnostics links. */
body.terminal-live .container { max-width: 1440px; padding: clamp(18px, 3vw, 36px); }
body.terminal-live .glitch-title {
    color: #f2f6f4;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
}
body.terminal-live .row > [class*="col-"] { display: flex; }
body.terminal-live .card.bg-dark {
    width: 100%;
    border: 1px solid rgba(72,217,238,.28) !important;
    border-radius: 11px;
    background: var(--gw-op-panel) !important;
    box-shadow: none;
}
body.terminal-live .card-body { padding: clamp(16px, 2vw, 22px); }
body.terminal-live .card-title { color: var(--gw-op-text); font-weight: 800; }
body.terminal-live .card-text { color: var(--gw-op-muted); line-height: 1.8; }
body.terminal-live .card-text strong { color: var(--gw-op-cyan); }
body.terminal-live .btn-outline-purple {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.4);
    border-radius: 6px;
}
body.terminal-live .btn-outline-purple:hover {
    color: #101710;
    background: var(--gw-op-green);
    border-color: var(--gw-op-green);
}
body.terminal-live .badge.bg-purple {
    color: var(--gw-op-cyan);
    border: 1px solid rgba(72,217,238,.35);
    background: rgba(72,217,238,.07);
}

.gw-terminal__page {
    background-image: none;
}
.gw-terminal__panel {
    border-color: rgba(72,217,238,.24);
    background: var(--gw-op-panel);
    box-shadow: none;
}
.gw-terminal__panel-heading h2 { color: var(--gw-op-cyan); }
.gw-terminal__count { color: var(--gw-op-green); }
.gw-terminal__th {
    color: var(--gw-op-cyan);
    border-bottom-color: rgba(72,217,238,.38);
    font-family: var(--gw-op-sans);
}
.gw-terminal__td { color: #d0dad6; }
.gw-terminal__row .gw-terminal__td:first-child { color: var(--gw-op-green); }
.gw-terminal__row:hover .gw-terminal__td { background: rgba(0,200,5,.035); }
.gw-terminal__empty { border-top: 1px solid rgba(72,217,238,.2); color: var(--gw-op-cyan); }

/* Green means active/success; cyan carries information; amber and red remain
   reserved for warnings and failures. */
body.operator-surface .op-badge { border-color: rgba(72,217,238,.32); color: var(--gw-op-cyan); }
body.operator-surface .op-badge--green { border-color: rgba(0,200,5,.48); color: var(--gw-op-green); }
body.operator-surface .op-badge--warn { border-color: rgba(242,197,110,.45); color: var(--gw-op-warn); }
body.operator-surface .op-badge--red { border-color: rgba(255,133,133,.45); color: var(--gw-op-red); }
body.operator-surface .op-badge--cyan { border-color: rgba(72,217,238,.4); color: var(--gw-op-cyan); }
body.operator-surface .op-badge--solid-green { background: var(--gw-op-green); border-color: var(--gw-op-green); color: #07110a; }
body.operator-surface .op-badge--solid-cyan { background: var(--gw-op-cyan); border-color: var(--gw-op-cyan); color: #061014; }
body.operator-surface .op-badge--solid-red { background: var(--gw-op-red); border-color: var(--gw-op-red); color: #180809; }
body.operator-surface .op-btn--muted {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.34);
}
body.operator-surface .op-btn--muted:hover {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.62);
    background: rgba(72,217,238,.06);
}
body.operator-surface .op-empty-state { border-color: rgba(0,200,5,.28); background: rgba(0,200,5,.018); }
body.operator-surface .op-empty-state .op-empty-title { color: var(--gw-op-green); }
body.operator-surface .op-nav__mobile summary {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.3);
    background: var(--gw-op-panel);
}
body.operator-surface .op-nav__mobile summary strong { color: var(--gw-op-green); }
body.operator-surface .op-nav__chevron { color: var(--gw-op-cyan); }
body.operator-surface .op-nav__mobile-links {
    border-color: rgba(72,217,238,.22);
    background: rgba(8,14,18,.97);
}
body.operator-surface .op-nav__mobile-links a.active {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.46);
    background: rgba(0,200,5,.07);
}
body.operator-surface .op-nav__mobile-links a:hover { color: var(--gw-op-cyan); border-color: rgba(72,217,238,.4); }
body.operator-surface .op-cyan { color: var(--gw-op-cyan) !important; }
body.operator-surface .op-accent--green { color: var(--gw-op-green) !important; }
body.operator-surface .op-accent--cyan { color: var(--gw-op-cyan) !important; }
body.operator-surface .op-input:focus,
body.operator-surface .op-select:focus { border-color: rgba(72,217,238,.62); box-shadow: 0 0 0 3px rgba(72,217,238,.09); }

/* Shared operator theme: one title hierarchy, flat surfaces, and stable
   semantic accents across the research and diagnostics terminals. */
body.operator-surface .op-wrap,
body.operator-surface .op-health-fast,
body.operator-surface .op-solana-focus,
body.operator-surface .rsi-wrap,
body.operator-surface .trace,
body.operator-surface .elysium-research-wrap {
    background: transparent;
}
body.operator-surface .trace {
    --trace-bg: var(--gw-op-panel);
    --trace-panel: var(--gw-op-panel);
    --trace-panel-2: var(--gw-op-panel-raised);
    --trace-line: var(--gw-op-line);
    --trace-text: var(--gw-op-text);
    --trace-muted: var(--gw-op-muted);
    --trace-dim: var(--gw-op-dim);
    --trace-green: var(--gw-op-green);
    --trace-cyan: var(--gw-op-cyan);
    --trace-amber: var(--gw-op-warn);
    --trace-red: var(--gw-op-red);
}
body.operator-surface .op-title,
body.operator-surface .trace .op-title {
    color: var(--gw-op-text);
    text-shadow: none;
}
body.operator-surface .op-subtitle,
body.operator-surface .rsi-note,
body.operator-surface .elysium-research-note {
    color: var(--gw-op-muted);
}
body.operator-surface .rsi-card,
body.operator-surface .trace-cycle,
body.operator-surface .trace-workspace,
body.operator-surface .trace-count,
body.operator-surface .trace-item,
body.operator-surface .trace-fact,
body.operator-surface .trace-event,
body.operator-surface .op-solana-focus__card,
body.operator-surface .op-solana-focus__metric,
body.operator-surface .elysium-observations,
body.operator-surface .elysium-observation {
    border-color: var(--gw-op-line);
    background: var(--gw-op-panel);
    box-shadow: none;
}
body.operator-surface .rsi-metric,
body.operator-surface .rsi-table tbody tr,
body.operator-surface .rsi-table tbody td,
body.operator-surface .trace-search,
body.operator-surface .trace-filter,
body.operator-surface .trace-skeleton span {
    background: var(--gw-op-panel-raised);
}
body.operator-surface .rsi-card h2,
body.operator-surface .trace-workspace__title,
body.operator-surface .trace-detail h3,
body.operator-surface .op-solana-focus__group h3,
body.operator-surface .elysium-observations__title {
    color: var(--gw-op-cyan);
}
body.operator-surface .rsi-card--scope h2::before {
    background: var(--gw-op-cyan);
}
body.operator-surface .op-solana-focus__link[aria-current="page"] {
    color: var(--gw-op-green);
    background: rgba(0,200,5,.07);
    border-color: rgba(0,200,5,.46);
}
body.operator-surface .op-solana-focus__full {
    color: var(--gw-op-cyan);
}
body.operator-surface .elysium-observations__title,
body.operator-surface .elysium-observations__toggle,
body.operator-surface .elysium-observations__refresh,
body.operator-surface .elysium-observation__action {
    color: var(--gw-op-cyan);
}
body.operator-surface .elysium-observations__toggle,
body.operator-surface .elysium-observations__refresh,
body.operator-surface .elysium-observation__action {
    border-color: rgba(72,217,238,.34);
    background: rgba(72,217,238,.045);
}
body.operator-surface .elysium-observations__body {
    border-top-color: var(--gw-op-line);
}
body.operator-surface .trace .trace-count--scanning .trace-count__value,
body.operator-surface .trace .trace-status--scanning,
body.operator-surface .trace .trace-chain,
body.operator-surface .trace .trace-detail h3 {
    color: var(--gw-op-cyan);
}
body.operator-surface .trace .trace-count--accepted .trace-count__value,
body.operator-surface .trace .trace-status--accepted,
body.operator-surface .trace .trace-step--complete .trace-step__mark,
body.operator-surface .trace .trace-step--complete .trace-step__label {
    color: var(--gw-op-green);
}
body.operator-surface .trace .trace-count--rejected .trace-count__value,
body.operator-surface .trace .trace-status--rejected,
body.operator-surface .trace .trace-step--blocked .trace-step__label {
    color: var(--gw-op-red);
}
body.operator-surface .trace .trace-count--unresolved .trace-count__value,
body.operator-surface .trace .trace-status--unresolved,
body.operator-surface .trace .trace-step--unknown .trace-step__label {
    color: var(--gw-op-warn);
}

/* Normalize legacy inline status colors without changing the status meanings. */
body.operator-surface [style*="color:#fbbf24"],
body.operator-surface [style*="color: #fbbf24"],
body.operator-surface [style*="color:#f59e0b"],
body.operator-surface [style*="color: #f59e0b"],
body.operator-surface [style*="color:#f2c56e"],
body.operator-surface [style*="color: #f2c56e"] {
    color: var(--gw-op-warn) !important;
}
body.operator-surface [style*="color:#f87171"],
body.operator-surface [style*="color: #f87171"],
body.operator-surface [style*="color:#fca5a5"],
body.operator-surface [style*="color: #fca5a5"],
body.operator-surface [style*="color:#ef4444"],
body.operator-surface [style*="color: #ef4444"] {
    color: var(--gw-op-red) !important;
}
body.operator-surface [style*="color:#00C805"],
body.operator-surface [style*="color: #00C805"],
body.operator-surface [style*="color:#00c805"],
body.operator-surface [style*="color: #00c805"],
body.operator-surface [style*="color:#22c55e"],
body.operator-surface [style*="color: #22c55e"],
body.operator-surface [style*="color:#86efac"],
body.operator-surface [style*="color: #86efac"] {
    color: var(--gw-op-green) !important;
}
body.operator-surface [style*="color:#00E5FF"],
body.operator-surface [style*="color: #00E5FF"],
body.operator-surface [style*="color:#93c5fd"],
body.operator-surface [style*="color: #93c5fd"],
body.operator-surface [style*="color:#60a5fa"],
body.operator-surface [style*="color: #60a5fa"],
body.operator-surface [style*="color:#c7b8ff"],
body.operator-surface [style*="color: #c7b8ff"],
body.operator-surface [style*="color:#a78bfa"],
body.operator-surface [style*="color: #a78bfa"] {
    color: var(--gw-op-cyan) !important;
}

@media (max-width: 760px) {
    body.operator-surface .op-wrap { padding-left: 14px; padding-right: 14px; }
    body.operator-surface .op-health table { font-size: .76rem !important; }
    body.operator-surface .op-health [style*="font-size:10px"] { font-size: .66rem !important; }
    body.operator-surface .op-health [style*="font-size:11px"] { font-size: .7rem !important; }
    body.operator-surface .op-health [style*="font-size:12px"] { font-size: .76rem !important; }
    body.operator-surface .op-health [style*="font-size:13px"] { font-size: .82rem !important; }
    body.operator-surface .op-health-summary .op-metric-label { font-size: .62rem; }
    body.operator-surface .op-health-summary .op-value { font-size: 1.08rem; }
    body.mobile-algo .ga-trade-evidence,
    body.mobile-algo .ga-trade-detail,
    body.mobile-algo .ga-trade-time,
    body.mobile-algo .ga-position-economics,
    body.mobile-algo .ga-wallet-check-evidence,
    body.mobile-algo .ga-v4-lock-row,
    body.mobile-algo .ga-v4-lock-note,
    body.mobile-algo .ga-moonbag-meta {
        font-size: .62rem;
    }
    body.operator-account .container.py-5 { padding: 1rem !important; }
    body.operator-account .card-body { padding: 1.1rem !important; }
    body.operator-account .operator-controls-actions { gap: 9px; }
    body.operator-account .account-card .d-flex { min-width: 0; }
    body.terminal-live .container { padding: 18px 14px; }
    body.terminal-live .row { margin-left: 0; margin-right: 0; }
    body.terminal-live .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.operator-account .operator-action-btn,
    body.mobile-account .operator-action-btn { transition: none; }
}

/* Operator page-family normalization.
   Deliberately limited to /operator/* surfaces: account and Algo/trading
   templates keep their separately approved presentation. */
body.operator-surface {
    color: var(--gw-op-text);
    background: var(--gw-op-bg) !important;
    background-image: none !important;
}
body.operator-surface .op-wrap,
body.operator-surface main,
body.operator-surface .rsi-wrap,
body.operator-surface .eq-wrap,
body.operator-surface .inv-wrap,
body.operator-surface .liq-case-wrap {
    color: var(--gw-op-text);
}
body.operator-surface .op-title,
body.operator-surface .op-title *,
body.operator-surface .inv-page-title,
body.operator-surface h1:not(.text-success):not(.text-warning),
body.operator-surface h2:not(.op-eyebrow),
body.operator-surface h3:not(.op-eyebrow),
body.operator-surface .an-symbol,
body.operator-surface .an-learning-value,
body.operator-surface .op-attn__echo-title,
body.operator-surface .eq-table td,
body.operator-surface .live-value,
body.operator-surface .inv-title,
body.operator-surface .u-user-name,
body.operator-surface .t-user-name {
    color: #F2F6F4;
}
body.operator-surface .op-subtitle,
body.operator-surface .op-note,
body.operator-surface .op-hint,
body.operator-surface .op-muted,
body.operator-surface .rsi-note,
body.operator-surface .rsi-muted,
body.operator-surface .eq-note,
body.operator-surface .eq-muted,
body.operator-surface .liq-case-muted,
body.operator-surface .op-attn__note,
body.operator-surface .op-attn__muted,
body.operator-surface .op-attn__echo-meta,
body.operator-surface .elysium-research-note,
body.operator-surface .elysium-observations__hint,
body.operator-surface .elysium-observations__intro,
body.operator-surface .elysium-observations__status,
body.operator-surface .trace-foot,
body.operator-surface .trace-cycle__item,
body.operator-surface .trace-workspace__meta {
    color: var(--gw-op-muted);
}
body.operator-surface .op-card,
body.operator-surface .op-metric,
body.operator-surface .an-learning-metric,
body.operator-surface .rsi-card,
body.operator-surface .rsi-metric,
body.operator-surface .op-solana-focus__card,
body.operator-surface .op-solana-focus__metric,
body.operator-surface .op-health-controls,
body.operator-surface .op-rpc-lane-row,
body.operator-surface .op-health-solana-priority,
body.operator-surface .op-health-fast__solana,
body.operator-surface .trace-cycle,
body.operator-surface .trace-count,
body.operator-surface .trace-workspace,
body.operator-surface .trace-item,
body.operator-surface .trace-fact,
body.operator-surface .trace-event,
body.operator-surface .elysium-observations,
body.operator-surface .elysium-observation,
body.operator-surface .elysium-observation__metric,
body.operator-surface .eq-card,
body.operator-surface .op-attn__echo-card,
body.operator-surface .log-breakdown,
body.operator-surface .live-status-card,
body.operator-surface .live-source-breakdown,
body.operator-surface .live-market-ledger,
body.operator-surface .inv-card,
body.operator-surface .inv-code-card,
body.operator-surface .inv-code,
body.operator-surface .inv-empty,
body.operator-surface .t-card,
body.operator-surface .u-card {
    /* Do not mask inline status borders used by health/evidence panels. */
    border-color: var(--gw-op-line);
    border-radius: var(--gw-op-radius);
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
body.operator-surface .op-metric,
body.operator-surface .an-learning-metric,
body.operator-surface .rsi-metric,
body.operator-surface .op-solana-focus__metric,
body.operator-surface .trace-count,
body.operator-surface .trace-fact,
body.operator-surface .trace-event,
body.operator-surface .elysium-observation__metric,
body.operator-surface .live-status-card,
body.operator-surface .inv-card,
body.operator-surface .t-card,
body.operator-surface .u-card {
    border-radius: 7px;
}
body.operator-surface .op-eyebrow,
body.operator-surface .op-metric-label,
body.operator-surface .op-table thead th,
body.operator-surface .rsi-table th,
body.operator-surface .eq-table th,
body.operator-surface .liq-case-table th,
body.operator-surface .op-attn th,
body.operator-surface .live-source-breakdown th,
body.operator-surface .live-market-ledger th,
body.operator-surface .op-solana-focus th,
body.operator-surface .trace-workspace__title,
body.operator-surface .elysium-observations__title {
    color: var(--gw-op-cyan);
}
body.operator-surface .op-table tbody td,
body.operator-surface .rsi-table tbody td,
body.operator-surface .eq-table tbody td,
body.operator-surface .liq-case-table tbody td,
body.operator-surface .op-attn td,
body.operator-surface .live-source-breakdown td,
body.operator-surface .live-market-ledger td,
body.operator-surface .op-solana-focus td {
    color: #CBD6D2;
}
body.operator-surface .op-table tbody tr:hover td,
body.operator-surface .rsi-table tbody tr:hover,
body.operator-surface .trace-item__toggle:hover,
body.operator-surface .trace-item__toggle:focus-visible {
    background: rgba(72,217,238,.035) !important;
}
body.operator-surface .rsi-table tbody tr,
body.operator-surface .rsi-table tbody td {
    background: transparent !important;
}
body.operator-surface .op-input,
body.operator-surface .op-select,
body.operator-surface .inv-input,
body.operator-surface .trace-search,
body.operator-surface .trace-filter,
body.operator-surface .liq-case-input,
body.operator-surface input:not([type="checkbox"]):not([type="radio"]),
body.operator-surface select,
body.operator-surface textarea {
    color: var(--gw-op-text);
    border-color: var(--gw-op-control-line);
    background: rgba(7,12,16,.58) !important;
}
body.operator-surface .op-input::placeholder,
body.operator-surface .inv-input::placeholder,
body.operator-surface input::placeholder,
body.operator-surface textarea::placeholder {
    color: var(--gw-op-dim);
}
body.operator-surface .op-input:focus,
body.operator-surface .op-select:focus,
body.operator-surface .inv-input:focus,
body.operator-surface .trace-search:focus,
body.operator-surface .trace-filter:focus,
body.operator-surface input:focus,
body.operator-surface select:focus,
body.operator-surface textarea:focus {
    border-color: rgba(72,217,238,.62);
    outline-color: rgba(72,217,238,.62);
}
body.operator-surface a:not(.op-btn):not(.op-health-fast__details):not(.op-health__quick-link):not(.op-solana-focus__link):not(.elysium-observation__action),
body.operator-surface .op-solana-focus__full,
body.operator-surface .op-attn__research a,
body.operator-surface .liq-case-link,
body.operator-surface .trace-chain {
    color: var(--gw-op-cyan);
}
body.operator-surface .op-btn,
body.operator-surface .op-health__quick-link,
body.operator-surface .op-health-fast__details,
body.operator-surface .op-solana-focus__link,
body.operator-surface .trace-refresh,
body.operator-surface .elysium-observations__toggle,
body.operator-surface .elysium-observations__refresh,
body.operator-surface .elysium-observation__action,
body.operator-surface .op-attn__refresh,
body.operator-surface .inv-generate,
body.operator-surface .inv-share {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.36);
    background: transparent !important;
    text-decoration: none;
}
body.operator-surface .op-btn:hover,
body.operator-surface .op-health__quick-link:hover,
body.operator-surface .op-health-fast__details:hover,
body.operator-surface .op-solana-focus__link:hover,
body.operator-surface .trace-refresh:hover,
body.operator-surface .elysium-observations__refresh:hover,
body.operator-surface .elysium-observation__action:hover,
body.operator-surface .op-attn__refresh:hover,
body.operator-surface .inv-generate:hover,
body.operator-surface .inv-share:hover {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.72);
    background: rgba(72,217,238,.045) !important;
}
body.operator-surface .op-nav a.active,
body.operator-surface .op-nav__mobile-links a.active,
body.operator-surface .op-solana-focus__link[aria-current="page"],
body.operator-surface .live-status-card.is-active {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.56) !important;
    background: transparent !important;
}
body.operator-surface .op-btn--danger {
    color: var(--gw-op-red) !important;
    border-color: rgba(255,133,133,.48) !important;
    background: transparent !important;
}
body.operator-surface .op-btn--danger:hover {
    border-color: rgba(255,133,133,.76) !important;
    background: rgba(255,133,133,.035) !important;
}
body.operator-surface .inv-generate {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.operator-surface .inv-generate:hover {
    color: #07110A !important;
    border-color: #14E51A !important;
    background: #14E51A !important;
}
body.operator-surface .op-health-fast__warning,
body.operator-surface .op-solana-focus__warning,
body.operator-surface .op-warn,
body.operator-surface .eq-warn,
body.operator-surface .liq-case-status--unverified,
body.operator-surface .rsi-warning,
body.operator-surface .rsi-state--gap,
body.operator-surface .rsi-phase--risk,
body.operator-surface .trace-status--unresolved,
body.operator-surface .inv-alert.warning {
    color: var(--gw-op-warn) !important;
}
body.operator-surface .op-red,
body.operator-surface .op-solana-focus__bad,
body.operator-surface .eq-error,
body.operator-surface .rsi-error,
body.operator-surface .rsi-state--error,
body.operator-surface .rsi-phase--weak,
body.operator-surface .trace-status--rejected,
body.operator-surface .inv-alert.error {
    color: var(--gw-op-red) !important;
}
body.operator-surface .op-green,
body.operator-surface .eq-good,
body.operator-surface .liq-case-status--verified,
body.operator-surface .rsi-highlight,
body.operator-surface .rsi-badge--armed,
body.operator-surface .trace-status--accepted,
body.operator-surface .inv-alert.success {
    color: var(--gw-op-green) !important;
}
body.operator-surface .op-badge:not(.op-badge--solid-green):not(.op-badge--solid-cyan):not(.op-badge--solid-red),
body.operator-surface .rsi-reading,
body.operator-surface .rsi-state,
body.operator-surface .rsi-badge,
body.operator-surface .rsi-phase,
body.operator-surface .trace-status,
body.operator-surface .gw-chain-badge,
body.operator-surface .an-chain-badge {
    background: transparent !important;
}
body.operator-surface .op-badge--green,
body.operator-surface .op-badge--warn,
body.operator-surface .op-badge--red,
body.operator-surface .op-badge--cyan,
body.operator-surface .rsi-reading--hot,
body.operator-surface .rsi-badge--hot,
body.operator-surface .rsi-state--gap,
body.operator-surface .rsi-state--error,
body.operator-surface .rsi-badge--armed,
body.operator-surface .rsi-phase--build,
body.operator-surface .rsi-phase--range,
body.operator-surface .rsi-phase--risk,
body.operator-surface .rsi-phase--weak,
body.operator-surface .trace-status--accepted,
body.operator-surface .trace-status--rejected,
body.operator-surface .trace-status--unresolved,
body.operator-surface .inv-alert.success,
body.operator-surface .inv-alert.error {
    background: transparent !important;
}
body.operator-surface .op-flash--error,
body.operator-surface .op-flash--warn,
body.operator-surface .trace-error,
body.operator-surface [role="alert"].eq-error {
    background: transparent !important;
    box-shadow: none !important;
}
body.operator-surface .trace-counts,
body.operator-surface .trace-list,
body.operator-surface .trace-skeleton {
    background: transparent !important;
}
body.operator-surface .trace-skeleton span {
    background: var(--gw-op-panel);
}
body.operator-surface .trace-step__mark {
    background-color: var(--gw-op-bg);
}
body.operator-surface .trace-step--complete .trace-step__mark {
    background: var(--gw-op-green);
}
body.operator-surface .trace-step--blocked .trace-step__mark {
    background: var(--gw-op-red);
}
body.operator-surface .op-empty-state {
    border-color: var(--gw-op-line);
    background: transparent !important;
}
body.operator-surface .op-empty-state .op-empty-title { color: var(--gw-op-cyan); }
body.operator-surface .inv-alert.success,
body.operator-surface .inv-alert.error {
    border-color: currentColor;
}
@media (max-width: 760px) {
    body.operator-surface .op-wrap,
    body.operator-surface .rsi-wrap,
    body.operator-surface .inv-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }
    body.operator-surface .op-card,
    body.operator-surface .eq-card,
    body.operator-surface .rsi-card { padding: 14px; }
}
/* The two operator mobile templates use base_mobile.html, whose body does not
   add the /operator path class. Scope their shared operator primitives here. */
body.mobile-app .mobile-main .op-kicker { color: var(--gw-op-green); }
body.mobile-app .mobile-main .op-title { color: #F2F6F4; text-shadow: none; }
body.mobile-app .mobile-main .op-subtitle,
body.mobile-app .mobile-main .op-hint { color: var(--gw-op-muted); }
body.mobile-app .mobile-main .op-eyebrow,
body.mobile-app .mobile-main .op-metric-label { color: var(--gw-op-cyan); }
body.mobile-app .mobile-main .op-card {
    border: 1px solid var(--gw-op-line) !important;
    border-radius: var(--gw-op-radius);
    background: transparent !important;
    box-shadow: none !important;
}
body.mobile-app .mobile-main .op-btn,
body.mobile-app .mobile-main .op-select {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.36);
}
body.mobile-app .mobile-main .op-select {
    background-color: rgba(7,12,16,.58) !important;
}
body.mobile-app .mobile-main .op-btn--danger {
    color: var(--gw-op-red);
    border-color: rgba(255,133,133,.48);
}
body.mobile-app .inv-wrap {
    color: var(--gw-op-text);
}
body.mobile-app .inv-page-kicker { color: var(--gw-op-green); }
body.mobile-app .inv-page-title,
body.mobile-app .inv-code-value { color: #F2F6F4; }
body.mobile-app .inv-eyebrow,
body.mobile-app .inv-stat-k { color: var(--gw-op-cyan); }
body.mobile-app .inv-card,
body.mobile-app .inv-code-card,
body.mobile-app .inv-link-row,
body.mobile-app .inv-empty {
    border-color: var(--gw-op-line) !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.mobile-app .inv-input {
    color: var(--gw-op-text) !important;
    border-color: var(--gw-op-control-line) !important;
    background: rgba(7,12,16,.58) !important;
}
body.mobile-app .inv-input:focus {
    border-color: rgba(72,217,238,.62) !important;
    outline-color: rgba(72,217,238,.62);
}
body.mobile-app .inv-field-label,
body.mobile-app .inv-status,
body.mobile-app .inv-link { color: var(--gw-op-muted); }
body.mobile-app .inv-generate,
body.mobile-app .inv-share,
body.mobile-app .inv-copy-btn,
body.mobile-app .inv-delete-btn {
    color: var(--gw-op-cyan);
    border-color: rgba(72,217,238,.36);
    background: transparent !important;
}
body.mobile-app .inv-status-dot.active { background: var(--gw-op-green); }
body.mobile-app .inv-status-dot.revoked { background: var(--gw-op-red); }
body.mobile-app .inv-alert.success {
    color: var(--gw-op-green);
    border-color: rgba(0,200,5,.48);
    background: transparent !important;
}
body.mobile-app .inv-alert.error {
    color: var(--gw-op-red);
    border-color: rgba(255,133,133,.48);
    background: transparent !important;
}

/* Algo owner console: the same clear surfaces and restrained edges as the
   rest of the backend. Trading state and safety behavior remain untouched. */
body.desktop-algo .ga-page-title,
body.mobile-algo .ga-page-title,
body.desktop-algo .ga-activity-title,
body.mobile-algo .ga-activity-title,
body.desktop-algo .ga-readiness-chain,
body.mobile-algo .ga-readiness-chain,
body.desktop-algo .ga-profile-name,
body.mobile-algo .ga-profile-name,
body.desktop-algo .ga-daily-loss-title,
body.mobile-algo .ga-daily-loss-title,
body.desktop-algo .ga-shadow-entry__title,
body.mobile-algo .ga-shadow-entry__title,
body.desktop-algo .gw-daily-scan h2,
body.mobile-algo .gw-daily-scan h2,
body.desktop-algo .gw-daily-scan__chain h3,
body.mobile-algo .gw-daily-scan__chain h3,
body.desktop-algo .gw-kalshi h2,
body.mobile-algo .gw-kalshi h2,
body.desktop-algo .gw-kalshi h3,
body.mobile-algo .gw-kalshi h3,
body.desktop-algo .gw-kalshi h4,
body.mobile-algo .gw-kalshi h4,
body.desktop-algo .ga-shadow-report h3,
body.mobile-algo .ga-shadow-report h3 {
    color: var(--gw-op-text) !important;
    text-shadow: none;
}
body.desktop-algo .ga-eyebrow,
body.mobile-algo .ga-eyebrow,
body.desktop-algo .gw-daily-scan__eyebrow,
body.mobile-algo .gw-daily-scan__eyebrow,
body.desktop-algo .gw-kalshi__eyebrow,
body.mobile-algo .gw-kalshi__eyebrow {
    color: var(--gw-op-green);
}
body.desktop-algo .ga-profile-tagline,
body.mobile-algo .ga-profile-tagline,
body.desktop-algo .ga-stat-k,
body.mobile-algo .ga-stat-k,
body.desktop-algo .ga-empty-note,
body.mobile-algo .ga-empty-note,
body.desktop-algo .ga-adv-label,
body.mobile-algo .ga-adv-label,
body.desktop-algo .ga-adv-note,
body.mobile-algo .ga-adv-note,
body.desktop-algo .ga-adv-field-label,
body.mobile-algo .ga-adv-field-label,
body.desktop-algo .ga-adv-hint,
body.mobile-algo .ga-adv-hint,
body.desktop-algo .ga-token-meta,
body.mobile-algo .ga-token-meta,
body.desktop-algo .ga-trade-detail,
body.mobile-algo .ga-trade-detail,
body.desktop-algo .ga-trade-time,
body.mobile-algo .ga-trade-time,
body.desktop-algo .ga-trade-evidence,
body.mobile-algo .ga-trade-evidence,
body.desktop-algo .ga-v4-lock-note,
body.mobile-algo .ga-v4-lock-note,
body.desktop-algo .ga-moonbag-meta,
body.mobile-algo .ga-moonbag-meta,
body.desktop-algo .ga-shadow-entry__hint,
body.mobile-algo .ga-shadow-entry__hint,
body.desktop-algo .ga-shadow-refreshed,
body.mobile-algo .ga-shadow-refreshed,
body.desktop-algo .ga-shadow-report p,
body.mobile-algo .ga-shadow-report p,
body.desktop-algo .gw-daily-scan__intro,
body.mobile-algo .gw-daily-scan__intro,
body.desktop-algo .gw-daily-scan__note,
body.mobile-algo .gw-daily-scan__note,
body.desktop-algo .gw-kalshi__intro,
body.mobile-algo .gw-kalshi__intro,
body.desktop-algo .gw-kalshi__footnote,
body.mobile-algo .gw-kalshi__footnote {
    color: var(--gw-op-muted);
}
body.desktop-algo .ga-status-card,
body.mobile-algo .ga-status-card,
body.desktop-algo .ga-readiness-card,
body.mobile-algo .ga-readiness-card,
body.desktop-algo .ga-activity-card,
body.mobile-algo .ga-activity-card,
body.desktop-algo .ga-profile-card,
body.mobile-algo .ga-profile-card,
body.desktop-algo .ga-adv-card,
body.mobile-algo .ga-adv-card,
body.desktop-algo .ga-daily-loss,
body.mobile-algo .ga-daily-loss,
body.desktop-algo .ga-shadow-entry,
body.mobile-algo .ga-shadow-entry,
body.desktop-algo .ga-shadow-report,
body.mobile-algo .ga-shadow-report,
body.desktop-algo .ga-shadow-metrics span,
body.mobile-algo .ga-shadow-metrics span,
body.desktop-algo .gw-daily-scan,
body.mobile-algo .gw-daily-scan,
body.desktop-algo .gw-daily-scan__chain,
body.mobile-algo .gw-daily-scan__chain,
body.desktop-algo .gw-daily-scan__metric,
body.mobile-algo .gw-daily-scan__metric,
body.desktop-algo .gw-daily-scan__status,
body.mobile-algo .gw-daily-scan__status,
body.desktop-algo .gw-kalshi,
body.mobile-algo .gw-kalshi,
body.desktop-algo .gw-kalshi__algo-summary,
body.mobile-algo .gw-kalshi__algo-summary,
body.desktop-algo .gw-kalshi__category-card,
body.mobile-algo .gw-kalshi__category-card,
body.desktop-algo .gw-kalshi__market-card,
body.mobile-algo .gw-kalshi__market-card,
body.desktop-algo .gw-kalshi__forecast-card,
body.mobile-algo .gw-kalshi__forecast-card,
body.desktop-algo .gw-kalshi__forecast,
body.mobile-algo .gw-kalshi__forecast {
    border-color: var(--gw-op-line) !important;
    border-radius: var(--gw-op-radius);
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
body.desktop-algo .gw-algo-area-nav,
body.mobile-algo .gw-algo-area-nav {
    border-color: var(--gw-op-line) !important;
    background: transparent !important;
}
body.desktop-algo .gw-algo-area-nav a.is-active,
body.mobile-algo .gw-algo-area-nav a.is-active {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.56) !important;
    background: transparent !important;
}
body.desktop-algo .ga-profiles .ga-profile-card.ga-selected.ga-profile-con,
body.mobile-algo .ga-profiles .ga-profile-card.ga-selected.ga-profile-con {
    border-color: rgba(0,200,5,.62) !important;
    background: transparent !important;
}
body.desktop-algo .ga-profiles .ga-profile-card.ga-selected.ga-profile-std,
body.mobile-algo .ga-profiles .ga-profile-card.ga-selected.ga-profile-std {
    border-color: rgba(242,197,110,.64) !important;
    background: transparent !important;
}
body.desktop-algo .ga-profiles .ga-profile-card.ga-selected.ga-profile-agg,
body.mobile-algo .ga-profiles .ga-profile-card.ga-selected.ga-profile-agg {
    border-color: rgba(255,133,133,.62) !important;
    background: transparent !important;
}
body.desktop-algo .ga-entry-trial,
body.mobile-algo .ga-entry-trial,
body.desktop-algo .ga-rsi-entry,
body.mobile-algo .ga-rsi-entry,
body.desktop-algo .ga-trade-row--unknown,
body.mobile-algo .ga-trade-row--unknown,
body.desktop-algo .gw-kalshi__algo-forecast,
body.mobile-algo .gw-kalshi__algo-forecast {
    background: transparent !important;
}
body.desktop-algo .ga-entry-trial--passed,
body.mobile-algo .ga-entry-trial--passed,
body.desktop-algo .ga-rsi-entry--passed,
body.mobile-algo .ga-rsi-entry--passed {
    color: var(--gw-op-green);
    border: 1px solid rgba(0,200,5,.42);
}
body.desktop-algo .ga-entry-trial--blocked,
body.mobile-algo .ga-entry-trial--blocked,
body.desktop-algo .ga-rsi-entry--blocked,
body.mobile-algo .ga-rsi-entry--blocked {
    color: var(--gw-op-red);
    border: 1px solid rgba(255,133,133,.42);
}
body.desktop-algo .ga-entry-trial--unknown,
body.mobile-algo .ga-entry-trial--unknown,
body.desktop-algo .ga-rsi-entry--unknown,
body.mobile-algo .ga-rsi-entry--unknown,
body.desktop-algo .ga-trade-row--unknown,
body.mobile-algo .ga-trade-row--unknown,
body.desktop-algo .gw-kalshi__algo-forecast.is-abstain,
body.mobile-algo .gw-kalshi__algo-forecast.is-abstain {
    color: var(--gw-op-warn);
    border-color: rgba(242,197,110,.5);
}
body.desktop-algo .ga-entry-trial--unknown,
body.mobile-algo .ga-entry-trial--unknown,
body.desktop-algo .ga-rsi-entry--unknown,
body.mobile-algo .ga-rsi-entry--unknown {
    border: 1px solid rgba(242,197,110,.5);
}
body.desktop-algo .ga-solana-entry-action,
body.mobile-algo .ga-solana-entry-action,
body.desktop-algo .ga-apply,
body.mobile-algo .ga-apply {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.58) !important;
    background: transparent !important;
}
body.desktop-algo .ga-apply,
body.mobile-algo .ga-apply,
body.desktop-algo .gw-kalshi__button--primary,
body.mobile-algo .gw-kalshi__button--primary {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.desktop-algo .ga-toggle[aria-pressed="false"],
body.mobile-algo .ga-toggle[aria-pressed="false"] {
    border-color: rgba(0,200,5,.72) !important;
    background: transparent !important;
}
body.desktop-algo .ga-launch-btn,
body.mobile-algo .ga-launch-btn,
body.desktop-algo .ga-secondary-button,
body.mobile-algo .ga-secondary-button,
body.desktop-algo .ga-section-toggle,
body.mobile-algo .ga-section-toggle,
body.desktop-algo .ga-adv-save,
body.mobile-algo .ga-adv-save,
body.desktop-algo .ga-moonbag-pager button,
body.mobile-algo .ga-moonbag-pager button,
body.desktop-algo .ga-v4-replay-button,
body.mobile-algo .ga-v4-replay-button,
body.desktop-algo .ga-shadow-refresh,
body.mobile-algo .ga-shadow-refresh,
body.desktop-algo .gw-daily-scan__refresh,
body.mobile-algo .gw-daily-scan__refresh,
body.desktop-algo .gw-kalshi__button:not(.gw-kalshi__button--primary),
body.mobile-algo .gw-kalshi__button:not(.gw-kalshi__button--primary),
body.desktop-algo .gw-kalshi__text-button,
body.mobile-algo .gw-kalshi__text-button {
    color: #FFFFFF;
    border-color: var(--gw-op-control-line);
    background: transparent !important;
    box-shadow: none;
}
body.desktop-algo .ga-launch-btn--danger,
body.mobile-algo .ga-launch-btn--danger,
body.desktop-algo .ga-action-btn,
body.mobile-algo .ga-action-btn {
    color: var(--gw-op-red) !important;
    border-color: rgba(255,133,133,.52) !important;
    background: transparent !important;
}
body.desktop-algo .ga-launch-btn--safe,
body.mobile-algo .ga-launch-btn--safe {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.52) !important;
    background: transparent !important;
}
body.desktop-algo .ga-solana-entry-action.is-selected,
body.mobile-algo .ga-solana-entry-action.is-selected {
    color: var(--gw-op-text) !important;
    border-color: var(--gw-op-control-line) !important;
}
body.desktop-algo .gw-kalshi__button--primary,
body.mobile-algo .gw-kalshi__button--primary {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.desktop-algo .ga-toggle:focus-visible,
body.mobile-algo .ga-toggle:focus-visible,
body.desktop-algo .ga-launch-btn:focus-visible,
body.mobile-algo .ga-launch-btn:focus-visible,
body.desktop-algo .ga-secondary-button:focus-visible,
body.mobile-algo .ga-secondary-button:focus-visible,
body.desktop-algo .ga-adv-save:focus-visible,
body.mobile-algo .ga-adv-save:focus-visible {
    outline-color: var(--gw-op-cyan);
}
body.desktop-algo .ga-secondary-button:hover,
body.mobile-algo .ga-secondary-button:hover,
body.desktop-algo .ga-solana-entry-action:hover:not(:disabled),
body.mobile-algo .ga-solana-entry-action:hover:not(:disabled),
body.desktop-algo .ga-section-toggle:hover,
body.mobile-algo .ga-section-toggle:hover {
    color: var(--gw-op-text) !important;
    border-color: var(--gw-op-control-line-hover) !important;
    background: transparent !important;
}
body.desktop-algo .gw-daily-scan__metric strong,
body.mobile-algo .gw-daily-scan__metric strong,
body.desktop-algo .gw-daily-scan__chain--elysium h3,
body.mobile-algo .gw-daily-scan__chain--elysium h3 {
    color: var(--gw-op-cyan);
}
body.desktop-algo .gw-daily-scan__chain--elysium,
body.mobile-algo .gw-daily-scan__chain--elysium {
    border-color: rgba(72,217,238,.42) !important;
}
body.desktop-algo .gw-kalshi__category-metrics span,
body.mobile-algo .gw-kalshi__category-metrics span,
body.desktop-algo .gw-kalshi__status,
body.mobile-algo .gw-kalshi__status,
body.desktop-algo .gw-kalshi__algo-summary,
body.mobile-algo .gw-kalshi__algo-summary {
    color: var(--gw-op-muted);
}
body.desktop-algo .ga-wallet-select,
body.mobile-algo .ga-wallet-select,
body.desktop-algo .ga-funding-input,
body.mobile-algo .ga-funding-input,
body.desktop-algo .ga-adv-input,
body.mobile-algo .ga-adv-input,
body.desktop-algo .gw-daily-scan__date-label input,
body.mobile-algo .gw-daily-scan__date-label input,
body.desktop-algo .gw-kalshi__field input,
body.mobile-algo .gw-kalshi__field input,
body.desktop-algo .gw-kalshi__field select,
body.mobile-algo .gw-kalshi__field select,
body.desktop-algo .gw-kalshi__field textarea,
body.mobile-algo .gw-kalshi__field textarea {
    color: var(--gw-op-text);
    border-color: var(--gw-op-control-line);
    background: rgba(7,12,16,.58);
}
body.desktop-algo .ga-activity-card,
body.mobile-algo .ga-activity-card,
body.desktop-algo .ga-readiness-card,
body.mobile-algo .ga-readiness-card,
body.desktop-algo .ga-status-card,
body.mobile-algo .ga-status-card {
    box-shadow: none;
}

/* One shared hierarchy across account, Algo, and operator pages:
   white headings, muted labels, clear panels, neutral outlines. */
body.operator-surface .op-card,
body.operator-surface .op-metric,
body.operator-surface .an-learning-metric,
body.operator-surface .rsi-card,
body.operator-surface .rsi-metric,
body.operator-surface .op-solana-focus__card,
body.operator-surface .op-solana-focus__metric,
body.operator-surface .op-health-controls,
body.operator-surface .op-rpc-lane-row,
body.operator-surface .op-health-solana-priority,
body.operator-surface .op-health-fast__solana,
body.operator-surface .trace-cycle,
body.operator-surface .trace-count,
body.operator-surface .trace-workspace,
body.operator-surface .trace-item,
body.operator-surface .trace-fact,
body.operator-surface .trace-event,
body.operator-surface .elysium-observations,
body.operator-surface .elysium-observation,
body.operator-surface .elysium-observation__metric,
body.operator-surface .eq-card,
body.operator-surface .op-attn__echo-card,
body.operator-surface .log-breakdown,
body.operator-surface .live-status-card,
body.operator-surface .live-source-breakdown,
body.operator-surface .live-market-ledger,
body.operator-surface .inv-card,
body.operator-surface .inv-code-card,
body.operator-surface .inv-code,
body.operator-surface .inv-empty,
body.operator-surface .t-card,
body.operator-surface .u-card {
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
body.operator-surface .op-title,
body.operator-surface .op-eyebrow,
body.operator-surface .trace-workspace__title,
body.operator-surface .elysium-observations__title,
body.operator-surface .op-empty-state .op-empty-title {
    color: var(--gw-op-text) !important;
}
body.operator-surface .op-kicker,
body.operator-surface .op-subtitle,
body.operator-surface .op-note,
body.operator-surface .op-hint,
body.operator-surface .op-muted,
body.operator-surface .op-metric-label,
body.operator-surface .op-label,
body.operator-surface .op-row-label,
body.operator-surface .op-table thead th,
body.operator-surface .rsi-table th,
body.operator-surface .eq-table th,
body.operator-surface .liq-case-table th,
body.operator-surface .op-attn th,
body.operator-surface .live-source-breakdown th,
body.operator-surface .live-market-ledger th,
body.operator-surface .op-solana-focus th {
    color: var(--gw-op-muted) !important;
}
body.operator-surface .op-value:not(.op-green):not(.op-warn):not(.op-red):not(.op-value--green):not(.op-value--warn):not(.op-value--red) {
    color: var(--gw-op-text) !important;
}
body.operator-surface .op-btn:not(.op-btn--danger):not(.op-btn--primary),
body.operator-surface .op-health__quick-link,
body.operator-surface .op-health-fast__details,
body.operator-surface .op-solana-focus__link,
body.operator-surface .trace-refresh,
body.operator-surface .elysium-observations__toggle,
body.operator-surface .elysium-observations__refresh,
body.operator-surface .elysium-observation__action,
body.operator-surface .op-attn__refresh,
body.operator-surface .inv-share {
    color: #FFFFFF !important;
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
}
body.operator-surface .op-btn--primary {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.operator-surface .op-btn:not(.op-btn--danger):not(.op-btn--primary):hover,
body.operator-surface .op-health__quick-link:hover,
body.operator-surface .op-health-fast__details:hover,
body.operator-surface .op-solana-focus__link:hover,
body.operator-surface .trace-refresh:hover,
body.operator-surface .elysium-observations__refresh:hover,
body.operator-surface .elysium-observation__action:hover,
body.operator-surface .op-attn__refresh:hover,
body.operator-surface .inv-share:hover {
    color: #FFFFFF !important;
    border-color: var(--gw-op-control-line-hover) !important;
    background: transparent !important;
}
body.operator-surface .op-eyebrow,
body.operator-surface .op-metric-label,
body.operator-surface .op-table thead th,
body.operator-surface .rsi-table th,
body.operator-surface .eq-table th,
body.operator-surface .liq-case-table th,
body.operator-surface .op-attn th,
body.operator-surface .live-source-breakdown th,
body.operator-surface .live-market-ledger th,
body.operator-surface .op-solana-focus th,
body.operator-surface .trace-workspace__title,
body.operator-surface .elysium-observations__title {
    text-shadow: none;
}
body.mobile-app .mobile-main .op-card,
body.mobile-app .mobile-main .op-metric {
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.mobile-app .mobile-main .op-title,
body.mobile-app .mobile-main .op-eyebrow {
    color: var(--gw-op-text) !important;
    text-shadow: none;
}
body.mobile-app .mobile-main .op-kicker,
body.mobile-app .mobile-main .op-subtitle,
body.mobile-app .mobile-main .op-metric-label {
    color: var(--gw-op-muted) !important;
}
body.mobile-app .mobile-main .op-value:not(.op-green):not(.op-warn):not(.op-red):not(.op-value--green):not(.op-value--warn):not(.op-value--red) {
    color: var(--gw-op-text) !important;
}
body.mobile-app .mobile-main .op-btn:not(.op-btn--danger):not(.op-btn--primary),
body.mobile-app .inv-share,
body.mobile-app .inv-copy-btn {
    color: #FFFFFF !important;
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
}
body.mobile-app .mobile-main .op-btn--primary {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.mobile-app .inv-generate {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.mobile-app .inv-page-kicker,
body.mobile-app .inv-eyebrow,
body.mobile-app .inv-stat-k {
    color: var(--gw-op-muted) !important;
}

body.desktop-algo .ga-eyebrow,
body.mobile-algo .ga-eyebrow,
body.desktop-algo .ga-activity-title,
body.mobile-algo .ga-activity-title,
body.desktop-algo .gw-daily-scan__eyebrow,
body.mobile-algo .gw-daily-scan__eyebrow,
body.desktop-algo .gw-kalshi__eyebrow,
body.mobile-algo .gw-kalshi__eyebrow {
    color: var(--gw-op-text) !important;
}
body.desktop-algo .ga-status-card,
body.mobile-algo .ga-status-card,
body.desktop-algo .ga-readiness-card,
body.mobile-algo .ga-readiness-card,
body.desktop-algo .ga-activity-card,
body.mobile-algo .ga-activity-card,
body.desktop-algo .ga-profile-card,
body.mobile-algo .ga-profile-card,
body.desktop-algo .ga-adv-card,
body.mobile-algo .ga-adv-card,
body.desktop-algo .ga-daily-loss,
body.mobile-algo .ga-daily-loss,
body.desktop-algo .ga-shadow-entry,
body.mobile-algo .ga-shadow-entry,
body.desktop-algo .ga-shadow-report,
body.mobile-algo .ga-shadow-report,
body.desktop-algo .ga-shadow-metrics span,
body.mobile-algo .ga-shadow-metrics span,
body.desktop-algo .gw-daily-scan,
body.mobile-algo .gw-daily-scan,
body.desktop-algo .gw-daily-scan__chain,
body.mobile-algo .gw-daily-scan__chain,
body.desktop-algo .gw-daily-scan__metric,
body.mobile-algo .gw-daily-scan__metric,
body.desktop-algo .gw-kalshi,
body.mobile-algo .gw-kalshi,
body.desktop-algo .gw-kalshi__category-card,
body.mobile-algo .gw-kalshi__category-card,
body.desktop-algo .gw-kalshi__market-card,
body.mobile-algo .gw-kalshi__market-card,
body.desktop-algo .gw-kalshi__forecast-card,
body.mobile-algo .gw-kalshi__forecast-card {
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
body.desktop-algo .ga-stat-k,
body.mobile-algo .ga-stat-k,
body.desktop-algo .ga-adv-label,
body.mobile-algo .ga-adv-label,
body.desktop-algo .gw-daily-scan__metric span,
body.mobile-algo .gw-daily-scan__metric span,
body.desktop-algo .gw-kalshi__category-metrics span,
body.mobile-algo .gw-kalshi__category-metrics span {
    color: var(--gw-op-muted) !important;
}
body.desktop-algo .gw-daily-scan__metric strong,
body.mobile-algo .gw-daily-scan__metric strong,
body.desktop-algo .gw-daily-scan__chain--elysium h3,
body.mobile-algo .gw-daily-scan__chain--elysium h3,
body.desktop-algo .gw-kalshi__category-metrics strong,
body.mobile-algo .gw-kalshi__category-metrics strong {
    color: var(--gw-op-text) !important;
}
body.desktop-algo .gw-daily-scan__chain--elysium,
body.mobile-algo .gw-daily-scan__chain--elysium {
    border-color: var(--gw-op-control-line) !important;
}

/* Chain identity stays on the card edge and title; card surfaces remain clear. */
body.desktop-algo .gw-daily-scan__chain,
body.mobile-algo .gw-daily-scan__chain {
    border-left: 2px solid var(--gw-daily-chain-accent, var(--gw-op-line)) !important;
}
body.desktop-algo .gw-daily-scan__chain--robinhood,
body.mobile-algo .gw-daily-scan__chain--robinhood {
    --gw-daily-chain-accent: #00C805;
}
body.desktop-algo .gw-daily-scan__chain--solana,
body.mobile-algo .gw-daily-scan__chain--solana {
    --gw-daily-chain-accent: #C084FC;
}
body.desktop-algo .gw-daily-scan__chain--ethereum,
body.mobile-algo .gw-daily-scan__chain--ethereum {
    --gw-daily-chain-accent: #8CA5FF;
}
body.desktop-algo .gw-daily-scan__chain--bsc,
body.mobile-algo .gw-daily-scan__chain--bsc {
    --gw-daily-chain-accent: #F3BA2F;
}
body.desktop-algo .gw-daily-scan__chain--base,
body.mobile-algo .gw-daily-scan__chain--base {
    --gw-daily-chain-accent: #79A5FF;
}
body.desktop-algo .gw-daily-scan__chain--elysium,
body.mobile-algo .gw-daily-scan__chain--elysium {
    --gw-daily-chain-accent: var(--gw-op-cyan);
}
body.desktop-algo .gw-daily-scan__chain h3,
body.mobile-algo .gw-daily-scan__chain h3 {
    color: var(--gw-daily-chain-accent, var(--gw-op-text)) !important;
}

/* Color outcomes, not neutral counts: milestones positive, actual gaps negative. */
body.desktop-algo .gw-daily-scan__metric--positive strong,
body.mobile-algo .gw-daily-scan__metric--positive strong {
    color: var(--gw-op-green) !important;
}
body.desktop-algo .gw-daily-scan__metric--warning strong,
body.mobile-algo .gw-daily-scan__metric--warning strong {
    color: var(--gw-op-warn) !important;
}
body.desktop-algo .gw-daily-scan__metric--negative strong,
body.mobile-algo .gw-daily-scan__metric--negative strong {
    color: var(--gw-op-red) !important;
}

/* Final operator-terminal contract.
   Keep one flat page, clear panels, white headings, and color on edges/status.
   This intentionally overrides legacy page-local fills without touching form
   controls, enabled toggles, or deliberate primary actions. */
body.operator-surface main :is(
    .op-card, .op-metric, .an-learning-metric, .an-grid-card, .shadow-work__metric,
    .rsi-card, .rsi-metric, .op-solana-focus__card, .op-solana-focus__metric,
    .op-health-summary, .op-health-provider-summary, .op-health-controls,
    .op-rpc-lane-row, .op-health-solana-priority, .op-health-fast__solana,
    .trace-cycle, .trace-count, .trace-workspace, .trace-item, .trace-fact,
    .trace-event, .elysium-observations, .elysium-observation,
    .elysium-observation__metric, .eq-card, .op-attn__echo-card,
    .log-breakdown, .live-status-card, .live-safety-summary,
    .live-source-breakdown, .live-market-ledger, .live-reconciliation,
    .inv-card, .inv-code-card, .inv-code, .inv-link-row, .inv-empty,
    .t-card, .u-card, .gs-panel, .gs-meta-cell, .gs-empty,
    .gs-empty-stream, .gs-alert, .gs-audit-row, .gs-operator-instructions,
    .liq-case-details pre
) {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
body.operator-surface main :is(
    .op-card, .op-metric, .an-learning-metric, .an-grid-card, .shadow-work__metric,
    .rsi-card, .rsi-metric, .op-solana-focus__card, .op-solana-focus__metric,
    .op-health-summary, .op-health-provider-summary, .op-health-controls,
    .op-rpc-lane-row, .op-health-solana-priority, .op-health-fast__solana,
    .trace-cycle, .trace-count, .trace-workspace, .trace-item, .trace-fact,
    .trace-event, .elysium-observations, .elysium-observation,
    .elysium-observation__metric, .eq-card, .op-attn__echo-card,
    .log-breakdown, .live-status-card, .live-safety-summary,
    .live-source-breakdown, .live-market-ledger, .live-reconciliation,
    .inv-card, .inv-code-card, .inv-code, .inv-link-row, .inv-empty,
    .t-card, .u-card, .gs-panel, .gs-meta-cell, .gs-empty,
    .gs-empty-stream, .gs-alert, .gs-audit-row
) {
    border-color: var(--gw-op-control-line) !important;
}

/* The Signals operator page uses a separate product stylesheet; normalize its
   operator-only view while leaving the public Glitch Signals pages untouched. */
body.operator-surface .gs-page {
    color: var(--gw-op-text);
    font-family: var(--gw-op-sans);
}
body.operator-surface .gs-title,
body.operator-surface .gs-heading,
body.operator-surface .gs-panel h2,
body.operator-surface .gs-panel h3 {
    color: var(--gw-op-text) !important;
    text-shadow: none;
}
body.operator-surface .gs-kicker,
body.operator-surface .gs-eyebrow,
body.operator-surface .gs-copy,
body.operator-surface .gs-panel p,
body.operator-surface .gs-empty,
body.operator-surface .gs-audit-row {
    color: var(--gw-op-muted);
}
body.operator-surface .gs-operator-instructions {
    border-color: rgba(242,197,110,.42) !important;
    color: var(--gw-op-muted);
}
body.operator-surface .gs-operator-instructions strong,
body.operator-surface .gs-status--warn { color: var(--gw-op-warn) !important; }
body.operator-surface .gs-status--good { color: var(--gw-op-green) !important; }
body.operator-surface .gs-status--bad,
body.operator-surface .gs-alert { color: var(--gw-op-red) !important; }
body.operator-surface .gs-button:not(.gs-button--quiet):not(.gs-button--danger) {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.operator-surface .gs-button--quiet {
    color: #FFFFFF !important;
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
}
body.operator-surface .gs-button--danger {
    color: var(--gw-op-red) !important;
    border-color: rgba(255,133,133,.52) !important;
    background: transparent !important;
}
body.operator-surface .gs-checkbox { accent-color: var(--gw-op-green); }

/* Chain identity is an outline and label, never a tinted tile. */
body.operator-surface .gw-chain-badge,
body.operator-surface .an-chain-badge {
    background: transparent !important;
    border-style: solid;
}
body.operator-surface :is(.gw-chain-badge[data-chain="solana"], .an-chain-badge--solana) {
    color: var(--gw-solana, #A855F7) !important;
    border-color: rgba(168,85,247,.58) !important;
}
body.operator-surface :is(.gw-chain-badge[data-chain="bsc"], .gw-chain-badge[data-chain="bnb"], .an-chain-badge--bsc) {
    color: var(--gw-bnb, #F3BA2F) !important;
    border-color: rgba(243,186,47,.58) !important;
}
body.operator-surface :is(.gw-chain-badge[data-chain="base"], .an-chain-badge--base) {
    color: #79A5FF !important;
    border-color: rgba(121,165,255,.58) !important;
}
body.operator-surface :is(.gw-chain-badge[data-chain="ethereum"], .gw-chain-badge[data-chain="eth"], .an-chain-badge--ethereum) {
    color: #A6B4FF !important;
    border-color: rgba(166,180,255,.58) !important;
}
body.operator-surface :is(.gw-chain-badge[data-chain="robinhood"], .an-chain-badge--robinhood) {
    color: var(--gw-robinhood, #00C805) !important;
    border-color: rgba(0,200,5,.55) !important;
}
body.operator-surface :is(.gw-chain-badge[data-chain="elysium"], .an-chain-badge--elysium) {
    color: var(--gw-elysium, #00E5FF) !important;
    border-color: rgba(0,229,255,.56) !important;
}
body.operator-surface .gw-chain-badge[data-chain="arbitrum"] {
    color: #96BEDC !important;
    border-color: rgba(150,190,220,.58) !important;
}
body.operator-surface .gw-chain-badge[data-chain="ton"] {
    color: #55BDEB !important;
    border-color: rgba(85,189,235,.58) !important;
}
body.operator-surface .an-chain-badge--unknown {
    color: var(--gw-op-muted) !important;
    border-color: var(--gw-op-control-line) !important;
}

/* Operator color hierarchy: white for headings and secondary controls,
   Glitch green for the active section and primary/success states, cyan for
   informational values and links only. Keep the controls from competing. */
body.operator-surface .rsi-card h2,
body.operator-surface .trace-workspace__title,
body.operator-surface .trace-detail h3,
body.operator-surface .op-solana-focus__group h3,
body.operator-surface .elysium-observations__title,
body.operator-surface .op-section-title {
    color: var(--gw-op-text) !important;
}
body.operator-surface .rsi-card h2::before,
body.operator-surface .rsi-card--scope h2::before,
body.operator-surface .rsi-card--readings h2::before {
    background: var(--gw-op-green) !important;
}
body.operator-surface .op-nav a:not(.active),
body.operator-surface .op-nav__mobile-links a:not(.active) {
    color: var(--gw-op-muted) !important;
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
}
body.operator-surface .op-nav a:hover,
body.operator-surface .op-nav__mobile-links a:hover {
    color: var(--gw-op-text) !important;
    border-color: rgba(0,200,5,.58) !important;
    background: rgba(0,200,5,.035) !important;
}
body.operator-surface .op-nav a.active,
body.operator-surface .op-nav__mobile-links a.active {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.58) !important;
    background: transparent !important;
}
body.operator-surface .op-btn:not(.op-btn--danger):not(.op-btn--primary),
body.operator-surface .op-health__quick-link,
body.operator-surface .op-health-fast__details,
body.operator-surface .op-solana-focus__link,
body.operator-surface .trace-refresh,
body.operator-surface .elysium-observations__toggle,
body.operator-surface .elysium-observations__refresh,
body.operator-surface .elysium-observation__action,
body.operator-surface .op-attn__refresh,
body.operator-surface .inv-share {
    color: var(--gw-op-text) !important;
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
}
body.operator-surface .op-btn:not(.op-btn--danger):not(.op-btn--primary):hover,
body.operator-surface .op-btn:not(.op-btn--danger):not(.op-btn--primary):focus-visible,
body.operator-surface .op-health__quick-link:hover,
body.operator-surface .op-health__quick-link:focus-visible,
body.operator-surface .op-health-fast__details:hover,
body.operator-surface .op-health-fast__details:focus-visible,
body.operator-surface .op-solana-focus__link:hover,
body.operator-surface .op-solana-focus__link:focus-visible,
body.operator-surface .trace-refresh:hover,
body.operator-surface .trace-refresh:focus-visible,
body.operator-surface .elysium-observations__toggle:hover,
body.operator-surface .elysium-observations__refresh:hover,
body.operator-surface .elysium-observation__action:hover,
body.operator-surface .op-attn__refresh:hover,
body.operator-surface .inv-share:hover {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.62) !important;
    background: rgba(0,200,5,.035) !important;
}
body.operator-surface .op-input:focus,
body.operator-surface .op-select:focus,
body.operator-surface input:focus,
body.operator-surface select:focus,
body.operator-surface textarea:focus {
    border-color: rgba(0,200,5,.62);
    outline-color: rgba(0,200,5,.62);
    box-shadow: 0 0 0 3px rgba(0,200,5,.08);
}
body.operator-surface .op-btn--primary {
    color: #07110A !important;
    border-color: var(--gw-op-green) !important;
    background: var(--gw-op-green) !important;
}
body.operator-surface .op-nav__mobile summary {
    color: var(--gw-op-muted) !important;
    border-color: var(--gw-op-control-line) !important;
    background: transparent !important;
}
body.operator-surface .op-nav__mobile summary strong,
body.operator-surface .op-nav__chevron {
    color: var(--gw-op-green) !important;
}
body.operator-surface .rsi-table th,
body.operator-surface .op-table thead th,
body.operator-surface .eq-table th,
body.operator-surface .liq-case-table th,
body.operator-surface .op-attn th,
body.operator-surface .live-source-breakdown th,
body.operator-surface .live-market-ledger th,
body.operator-surface .op-solana-focus th {
    color: var(--gw-op-muted) !important;
}

/* Semantic colors remain legible, with no colored wash behind status text. */
body.operator-surface :is(
    .op-green, .op-value--green, .eq-good, .liq-case-status--verified,
    .gs-status--good, .trace-status--accepted, .rsi-highlight,
    .op-flash:not(.op-flash--error):not(.op-flash--warn)
) {
    color: var(--gw-op-green) !important;
    border-color: rgba(0,200,5,.5);
}
body.operator-surface :is(
    .op-warn, .op-value--warn, .eq-warn, .liq-case-status--unverified,
    .gs-status--warn, .trace-status--unresolved, .rsi-warning
) {
    color: var(--gw-op-warn) !important;
    border-color: rgba(242,197,110,.5);
}
body.operator-surface :is(
    .op-red, .op-value--red, .eq-error, .gs-status--bad,
    .trace-status--rejected, .op-flash--error
) {
    color: var(--gw-op-red) !important;
    border-color: rgba(255,133,133,.5);
}
body.operator-surface .rsi-metric--ready { border-color: rgba(0,200,5,.5) !important; }
body.operator-surface .rsi-metric--gap { border-color: rgba(242,197,110,.5) !important; }
body.operator-surface .gs-alert { border-color: rgba(255,133,133,.5) !important; }
body.operator-surface :is(
    .op-flash, .op-flash--error, .op-flash--warn,
    .gs-alert, .trace-error, .inv-alert
) {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
body.operator-surface .op-health-solana-priority,
body.operator-surface .op-health-fast__solana,
body.operator-surface .op-solana-focus__link[aria-current="page"] {
    border-color: rgba(168,85,247,.56) !important;
}
body.operator-surface .op-solana-focus__link[aria-current="page"] {
    color: var(--gw-solana, #A855F7) !important;
    background: transparent !important;
}
