/* Operations-only theme. Light is the default; customer checkout stays unchanged. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #dce5f3;border-radius:11px;background:#fff;color:#57729a;transition:background .18s,color .18s,border-color .18s}
.theme-toggle:hover{background:#eef3ff;color:#285fe9;border-color:#adc2f4}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.access-language{display:flex;align-items:center;justify-content:flex-end;gap:10px}
html[data-ops-theme=dark]{color-scheme:dark;--bg:#0e1522;--ink:#e2eaf6;--muted:#9eafc6;--border:#2b3a50;--blue:#85adff;--blue-dark:#a5c2ff;--teal:#65d1b9;--shadow:0 8px 35px #00000020;--ops-surface:#162132;--ops-raised:#1c2a3e;--ops-hover:#243753;--ops-accent-bg:#21395c;background:var(--bg);color:var(--ink)}
html[data-ops-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-ops-theme=dark] :is(*,::before,::after){border-color:var(--border)}
html[data-ops-theme=dark] :is(.workspace,.access-shell){background:var(--bg);color:var(--ink)}
html[data-ops-theme=dark] :is(.sidebar,.topbar){background:#111b2a}
html[data-ops-theme=dark] :is(.panel,.stat-card,.order-metrics,.merchant-metrics,.order-tools,.table-footer,.order-pagination,.drawer,.drawer.editor-dialog,.editor-dialog .drawer-header,.drawer-footer,.access-card,.language-menu,.account-menu,.utility-dialog,.assistant-footer,#assistant-form,.assistant-source,.guide-card,.order-account-box,.verification-step,.code-request-history,.list-loading,.page-load-error,.skeleton-table,.app-tooltip,.launcher-options button){background:var(--ops-surface);color:var(--ink)}
html[data-ops-theme=dark] :is(.drawer-body,.utility-body){color:var(--ink)}
html[data-ops-theme=dark] :is(th,.editor-dialog .drawer-footer,.detail-hero,.account-card,.merchant-fees,.fee-breakdown,.allocation-card,.merchant-icon-editor,.case-order-summary,.order-review,.order-notification,.verification-panel,.fixed-role,.staff-permissions,.operations-guide,.client-details[open],.account-registration,.guide-intro dl,.guide-code,.recovery-codes,.chat-bubble,.reuse-intro,.order-summary-band){background:var(--ops-raised);color:#becce0}
html[data-ops-theme=dark] :is(td,.table-footer,.server-pagination,.order-pagination){color:#bac9de}
html[data-ops-theme=dark] tr[data-details-row]>td,html[data-ops-theme=dark] .queue-item{background:var(--ops-surface)}
html[data-ops-theme=dark] :is(tr[data-details-row]:hover,tr[data-details-row]:focus-visible)>td,html[data-ops-theme=dark] :is(.queue-item:hover,.queue-item:focus-visible){background:var(--ops-hover)}
html[data-ops-theme=dark] tr[data-details-row]:active>td{background:var(--ops-accent-bg)}
html[data-ops-theme=dark] :is(.page-heading p,.eyebrow,.nav-section,.breadcrumbs,.profile>span,.profile small,.person-sub,.person small,td small,.rich-list td small,.detail-item>span,.helper,.muted,.stat-label,.stat-foot,.order-metric>span,.order-metric>small,.order-metric>strong>em,.merchant-metrics span,.queue-copy small,.activity-copy,.page-footnote,.section-label,.field label,.consent,.timeline-item small,.panel-header p,.server-pagination,.list-merchant-label,.processor-time,.select-description,.select-empty,.language-menu-title,.language-option-copy small,.profile .account-identity small,.profile .account-menu-heading small,.sidebar-footer,.sidebar-footer>small,.notification-meta small,.notification-status small,.notification-help,.verification-status,.verification-retry,.code-submission-times,.assistant-move-hint,#assistant-keyboard-hint,.assistant-source>small,.integration-guide p,.guide-intro dt,.fee-preview,.fee-preview>div,.fee-breakdown>div,.fee-breakdown>small,.allocation-totals,.allocation-totals small,.fee-example,.editor-dialog .helper,.editor-dialog #editor-description,.order-tools .result-count,.security-choices small,.passkey-prompt p){color:var(--muted)}
html[data-ops-theme=dark] :is(h1,h2,h3,h4,.stat-value,.order-metric>strong,.merchant-metrics strong,.amount,.person-name,.detail-item>strong,.receiving-bank strong,.account-line strong,.fee-preview strong,.fee-breakdown strong,.fee-example strong,.allocation-card legend,.fixed-role strong,.queue-copy strong,.rich-list .list-primary,.profile .account-identity strong,.profile .account-menu-heading strong,.breadcrumbs strong,.assistant-markdown strong,.assistant-markdown h3,.assistant-markdown h4,.guide-section h3,.guide-intro dd,.guide-intro>p:first-child){color:#e2eaf6}
html[data-ops-theme=dark] :is(.table-link,.rich-list .list-identifier,.gateway-registration-link,.assistant-source>strong,.assistant-source summary,.assistant-source-row,.assistant-source-totals,.code-request-history>summary,.assistant-faq summary,.recovery-option>summary,.financial-orders .order-net,.fee-breakdown .fee-net strong,.allocation-totals strong,.order-metric .metric-accent,.merchant-context,.processor-name,.rich-list .list-timestamp,.fee-rate-pair){color:#99bbfa}
html[data-ops-theme=dark] :is(.nav-item,.account-menu button,.language-switcher .language-option,.order-tabs button,.tabs button,.integration-guide>nav button,.date-pill,.date-pill span){color:#aebfd7}
html[data-ops-theme=dark] .nav-selection{background:var(--ops-accent-bg)}
html[data-ops-theme=dark] .sidebar nav .nav-item::before{background:var(--ops-hover)}
html[data-ops-theme=dark] .sidebar nav .nav-item.active::before{background:#294367}
html[data-ops-theme=dark] :is(.nav-item.active,.nav-item:hover,.order-tabs button.active,.tabs button.active){color:#9bbdff}
html[data-ops-theme=dark] :is(.nav-count,.nav-item .nav-count,.avatar,td .avatar,.workspace-icon,.select-symbol,.account-action-icon,.order-tabs button>span,.order-tabs button>small,.receiving-bank>.ui-icon,.stat-icon,.queue-icon){background:#25364f;color:#a7c1e8}
html[data-ops-theme=dark] :is(.nav-item.active .nav-count,.order-tabs button.active>span,.order-tabs button.active>small){background:#2d4770;color:#b2ccff}
html[data-ops-theme=dark] :is(.field input,.field select,.field textarea,.utility-dialog input:not([type=checkbox]):not([type=radio]),.utility-dialog textarea,.search,.merchant-filter,.order-tools input[type=date],.code-request-config input,#verify-totp .otp-digit,.code-digit){background:#101b2b;color:#dfebfa;border-color:#354860}
html[data-ops-theme=dark] :is(input,textarea)::placeholder{color:#8194af}
html[data-ops-theme=dark] .search input{background:transparent;color:#dfebfa}
html[data-ops-theme=dark] :is(input,textarea,select):focus{border-color:#85adff;outline-color:#85adff}
html[data-ops-theme=dark] :is(.btn,.btn.secondary,.icon-btn,.theme-toggle,.utility-launch,.chip,.date-pill,.product-controls button,.product-controls .refresh-control,.language-switcher .language-trigger,.drawer-header>button,.table-footer button,.account-menu [data-utility]){background:var(--ops-raised);color:#c5d5eb;border-color:#354860}
html[data-ops-theme=dark] .btn.primary{background:#3064e8;border-color:#4778ef;color:#fff}
html[data-ops-theme=dark] .btn.primary:not(:disabled):hover{background:#3b70f0;border-color:#85adff;color:#fff}
html[data-ops-theme=dark] .btn.ghost{background:transparent;color:#acc6ed}
html[data-ops-theme=dark] :is(.btn.secondary,.btn.ghost,.icon-btn,.theme-toggle,.utility-launch,.chip,.product-controls button,.language-switcher .language-trigger,.guide-card,.account-menu button,.account-menu [data-utility],.language-switcher .language-option,.code-request-history>summary,.assistant-faq summary,.recovery-option>summary):hover,
html[data-ops-theme=dark] :is(.account-trigger:hover,.account-trigger[aria-expanded=true],.language-switcher .language-trigger[aria-expanded=true],.language-switcher .language-option:focus-visible,.account-menu button:focus-visible,.integration-guide>nav button:hover,.assistant-source-row:hover){background:var(--ops-hover);color:#b7d0ff;border-color:#526e96}
html[data-ops-theme=dark] :is(.chip.active,.language-switcher .language-option[aria-checked=true],.review-btn,.chat-bubble.user,.security-choices label:has(:checked),.passkey-symbol,.guide-flow,.guide-note,.notice,.verification-code){background:var(--ops-accent-bg);color:#b4ccf3}
html[data-ops-theme=dark] .verification-code code{color:#b1cbff}
html[data-ops-theme=dark] :is(.badge.review,.badge.processing){background:#233a60;color:#a9c5ff}
html[data-ops-theme=dark] :is(.badge.paid,.notice.success,.issued-secret,.entry-in,.success-mark){background:#153c35;color:#83dfc5}
html[data-ops-theme=dark] :is(.badge.pending,.badge.warning,.notice.warning,.entry-out,.editor-dialog .discard-prompt){background:#3d3020;color:#edc17c}
html[data-ops-theme=dark] :is(.badge.rejected,.inline-error,.connection-error){background:#422b31;color:#f4a6a4}
html[data-ops-theme=dark] :is(.badge.awaiting,.entry-fee){background:#2b394d;color:#bac9dc}
html[data-ops-theme=dark] :is(.btn.danger,.account-signout .account-action-icon){color:#f1a19d;background:#30242d;border-color:#62424c}
html[data-ops-theme=dark] :is(.btn.danger:hover,.account-menu .account-signout:hover){background:#472c34;color:#ffc0ba}
html[data-ops-theme=dark] :is(.positive,.service-dot,.verification-status.verified){color:#78ceb6}
html[data-ops-theme=dark] :is(.code-error,.verification-error,.utility-error){color:#f4a6a4}
html[data-ops-theme=dark] :is(.account-menu-divider,.divider,.timeline-item:not(:last-child)::after,.activity-item:not(:last-child)::before){background:var(--border)}
html[data-ops-theme=dark] :is(.drawer-backdrop,.editor-backdrop,.utility-backdrop):not(.assistant-floating){background:#050a14a8}
html[data-ops-theme=dark] :is(.assistant-markdown blockquote,.assistant-markdown code,.assistant-markdown pre,.assistant-markdown th,.guide-code>div){background:#263751;color:#c4d5ef}
html[data-ops-theme=dark] :is(.guide-code pre,.guide-fields code){color:#b4c9e7}
html[data-ops-theme=dark] .assistant-markdown pre code{background:none}
html[data-ops-theme=dark] .sp-select .ts-control{background:#101b2b!important;color:#dfebfa;border-color:#354860}
html[data-ops-theme=dark] .ts-dropdown.sp-select-menu{background:var(--ops-surface);color:var(--ink);border-color:#354860}
html[data-ops-theme=dark] .sp-select-menu .option{background:var(--ops-surface);color:#c5d5eb}
html[data-ops-theme=dark] .sp-select-menu .option.active{background:var(--ops-hover);color:#c4d9ff}
html[data-ops-theme=dark] .sp-select-menu .option.selected{background:var(--ops-accent-bg);color:#b6d0ff}
html[data-ops-theme=dark] :is(.sp-select-menu .option.selected .select-symbol,.sp-select-menu .option.active .select-symbol,.sp-select .ts-control>.item .select-symbol){background:#2b4162;color:#aec9f2}
html[data-ops-theme=dark] :is(.select-amount,.sp-select-menu .option.selected .select-amount){color:#b7cef3}
html[data-ops-theme=dark] .sp-select-menu input.dropdown-input{background:#101b2b;color:#dfebfa;border-color:#354860!important}
html[data-ops-theme=dark] .sp-select-menu .highlight{background:#3b5680;color:#edf4ff}
html[data-ops-theme=dark] :is(.table-wrap,.workspace,.code-request-history-body,.ts-dropdown-content){scrollbar-color:#415572 transparent}
html[data-ops-theme=dark] :is(.skeleton-title,.skeleton-metrics i,.skeleton-table i){background:linear-gradient(100deg,#1c293d 25%,#2b3e59 45%,#1c293d 65%);background-size:250% 100%}
html[data-ops-theme=dark] .demo-bar{background:#1b293c;color:#afbed3}
html[data-ops-theme=dark] .demo-disclaimer{color:#a0b0c7}
html[data-ops-theme=dark] .demo-tabs{background:#26364e}
html[data-ops-theme=dark] .demo-tabs button{color:#c5d5eb}
html[data-ops-theme=dark] .product-controls .refresh-control[data-status=success]{background:#153c35;color:#83dfc5}
html[data-ops-theme=dark] .product-controls .refresh-control[data-status=error]{background:#422b31;color:#f4a6a4}
html[data-ops-theme=dark] :is(.fee-example,.issued-secret code){background:var(--ops-surface)}
html[data-ops-theme=dark] .brand-lockup{filter:brightness(1.35)}
html[data-ops-theme=dark] .totp-setup img{background:white;padding:8px;border-radius:10px}
@media(forced-colors:active){.theme-toggle{border:1px solid ButtonText}}
/* Raised overlays need their own borders, including native dialog defaults. */
html[data-ops-theme=dark] :is(.drawer,.editor-dialog .drawer-header,.editor-dialog .drawer-footer,.utility-dialog,.utility-dialog header,.assistant-footer,.language-switcher .language-menu,.account-menu,.ts-dropdown.sp-select-menu,.app-tooltip){border-color:#354860;box-shadow:0 16px 48px #00000030}
html[data-ops-theme=dark] :is(.drawer-header,.drawer-footer,.utility-dialog header,.assistant-footer){box-shadow:none}
html[data-ops-theme=dark] .environment-badge{background:#382f20;color:#ebc582;border-color:#655031}
html[data-ops-theme=dark] .sp-select .ts-control .select-title{color:#c5d5eb}
html[data-ops-theme=dark] .access-card p{color:var(--muted)}

/* Compact operations toolbar; account menu is always the rightmost control. */
.topbar .profile{gap:10px;flex-shrink:0}
.topbar .product-controls{gap:8px}
.topbar .profile>span{font-size:11px;white-space:nowrap;margin-right:4px}
.topbar :is(.utility-launch,.theme-toggle){width:36px;height:36px;flex:0 0 36px;padding:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center}
.topbar .utility-launch .assistant-avatar{width:24px;height:24px}
.topbar .language-switcher .language-trigger{min-width:84px;height:36px;gap:7px;padding:0 9px}
.topbar .language-trigger .language-flag{width:22px;height:16px}
.topbar .product-controls .refresh-control{min-width:88px;height:36px;padding:0 10px;font-size:12px}
.topbar .account-switcher{padding-left:10px;border-left:1px solid var(--border)}
.topbar .account-trigger{min-height:40px;padding:2px 5px;gap:8px}
.topbar .account-trigger .avatar{width:32px;height:32px;font-size:12px;flex:0 0 32px}
.topbar .account-identity strong{max-width:150px;font-size:12px}
.topbar .account-identity small{font-size:10px;margin-top:0}
@media(max-width:1350px){.topbar .profile>span{display:none}.topbar .profile{gap:8px}.topbar .account-identity{display:none}.topbar .account-switcher{padding-left:8px}}
@media(max-width:700px){.topbar .profile{gap:8px}.topbar .account-trigger{min-height:36px}.topbar .product-controls .refresh-control{width:36px;min-width:36px;padding:0}.topbar .refresh-control>span{display:none}}

/* Status stays beside the primary identity even when later columns are off-screen. */
tr[data-row-status]{--row-status:#64758c;--row-status-bg:#edf1f6}
tr[data-row-status=pending]{--row-status:#956312;--row-status-bg:#fff2d9}
tr[data-row-status=review]{--row-status:#315fce;--row-status-bg:#eaf0ff}
tr[data-row-status=paid],tr[data-row-status=assigned]{--row-status:#167862;--row-status-bg:#e3f4ed}
tr[data-row-status=rejected]{--row-status:#b24740;--row-status-bg:#ffebe8}
html[data-ops-theme=dark] tr[data-row-status]{--row-status:#afbed2;--row-status-bg:#29384c}
html[data-ops-theme=dark] tr[data-row-status=pending]{--row-status:#efc477;--row-status-bg:#453720}
html[data-ops-theme=dark] tr[data-row-status=review]{--row-status:#9bbdff;--row-status-bg:#283e68}
html[data-ops-theme=dark] tr[data-row-status=paid],html[data-ops-theme=dark] tr[data-row-status=assigned]{--row-status:#7edabe;--row-status-bg:#183f36}
html[data-ops-theme=dark] tr[data-row-status=rejected]{--row-status:#f3aaa1;--row-status-bg:#492c31}
html[data-ops-theme] tr[data-row-status] td .avatar{background:var(--row-status-bg);color:var(--row-status);transition:background-color .25s,color .25s}
.row-status-line{display:flex;align-items:center;gap:8px;margin-top:5px;min-height:18px;font-size:10px;font-weight:500;line-height:1.5;white-space:nowrap}
.row-status-text{display:inline-flex;align-items:center;gap:5px;color:var(--row-status)}
.row-status-text i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.row-new-indicator{visibility:hidden;opacity:0;background:#e8f0ff;color:#315fce;border-radius:4px;padding:1px 5px;font-size:9px;transition:opacity .35s,visibility .35s}
.row-arrived .row-new-indicator{visibility:visible;opacity:1}
html[data-ops-theme=dark] .row-new-indicator{background:#29456f;color:#bbd2ff}
@media(prefers-reduced-motion:reduce){.row-new-indicator{transition:none}.row-arrived td:first-child{background-color:#edf3ff}html[data-ops-theme=dark] .row-arrived td:first-child{background-color:#213451}}
