.theme-control{position:relative;display:flex;align-items:center;color:#555770}.theme-toggle{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.theme-toggle:hover{background:#f0f1f5}.theme-toggle:focus-visible,.theme-panel button:focus-visible{outline:2px solid #f46823;outline-offset:3px}.theme-panel{position:absolute;right:0;top:calc(100% + 12px);width:264px;padding:16px;border:1px solid #e4e4eb;border-radius:12px;background:#fff;color:#1c1c28;box-shadow:0 8px 28px #15162124;z-index:2100}.theme-title{display:block;font-size:13px;font-weight:600;margin-bottom:12px}.theme-panel [role=radiogroup]{display:flex;gap:4px;background:#f1f2f6;padding:4px;border-radius:8px}.theme-panel [role=radio]{flex:1;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:#555770;font:500 12px Inter,Arial,sans-serif;cursor:pointer}.theme-panel [aria-checked=true]{background:#fff;color:#c44e13;box-shadow:0 1px 4px #24243218}.theme-panel p{font-size:11px!important;line-height:1.5!important;color:#77798a;margin:12px 0 0}.theme-login{position:fixed;right:24px;top:58px;z-index:100}.theme-login .theme-toggle{background:#fff;border:1px solid #e4e4eb}.theme-panel[hidden]{display:none!important}
html[data-theme=dark]{--bg:#12141b;--ink:#f0f0f5;--muted:#a5a7ba;--line:#343744;--text-primary:#f0f0f5;--text-secondary:#b9bbcc;--text-muted:#999caf;--input-border:#484b5d;--elevation-2:0 2px 4px #0003;background:#12141b;color-scheme:dark}
html[data-theme=dark] body{background:#12141b;color:#f0f0f5}
html[data-theme=dark] :is(header,aside,.card,.metric,.drawer,.login-card,.account-dropdown,.hub-select-list,.theme-panel){background:#1d202a;color:#f0f0f5;border-color:#343744;box-shadow:0 4px 16px #0002}
html[data-theme=dark] :is(h1,h2,h3,.metric-value,.health-identity h2,.service,.person,.category-name,.breadcrumbs b,.account-dropdown button,.account-profile-link,.profile-fields dd){color:#f0f0f5}
html[data-theme=dark] :is(p,.muted,.metric-top,.metric-bottom,.workspace small,.profile small,.sidebar-account-details small,.nav-label,.category-number,.table-footer,.chart-footer,.y-axis,.bar-label,.health-controls small,.health-details summary,.health-details p,.theme-panel p,.field,.kyc-toolbar label,.form-column>p,.support,.message,.preview-note){color:#aeb1c4}
html[data-theme=dark] :is(nav button,.sidebar-bottom>button,.theme-control){color:#c2c4d3}
html[data-theme=dark] :is(nav button:hover,.sidebar-bottom>button:hover,.account-dropdown button:hover,.account-dropdown a:hover,.hub-select-list [role=option]:hover,.hub-select-list .is-focused,.theme-toggle:hover){background:#303440}
html[data-theme=dark] :is(.btn,.hub-select-button,.theme-login .theme-toggle){background:#262a36;color:#ececf3;border-color:#646879;box-shadow:none}
html[data-theme=dark] :is(.btn.primary,.microsoft-signin){background:#f46823;color:#fff;border-color:#f46823}
html[data-theme=dark] :is(.theme-panel [role=radiogroup],.progress,.workspace-icon,.avatar,.queue-icon){background:#2c303e;color:#d8d9e4}
html[data-theme=dark] .theme-panel [role=radio]{color:#b9bbcc}html[data-theme=dark] .theme-panel [aria-checked=true]{background:#454b5d;color:#fff}
html[data-theme=dark] :is(th,.toolbar,.table-head,.tabs,.chart-footer,.queue-bottom,.table-footer,.card-head,.profile,.sidebar-account-menu,.queue-item,td,.activity-row,.profile-fields>div,.detail-grid>div){border-color:#343744}
html[data-theme=dark] :is(th,.notice,.preview-banner,.empty){background:#252936;color:#bfc2d4;border-color:#414657}
html[data-theme=dark] :is(.tabs button,.text-link,.health-refresh){color:#c5c7d5}html[data-theme=dark] .tabs .active{color:#ff9a68}
html[data-theme=dark] body :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]){background-color:#191c25;color:#e6e7ef;border-color:#505469;box-shadow:none}
html[data-theme=dark] body :is(input,textarea):disabled{background-color:#292d39;color:#9295a8}html[data-theme=dark] body :is(input,textarea):focus{border-color:#f46823}
html[data-theme=dark] .health-status{border-color:#414554;color:#c1c3d2}html[data-theme=dark] .marketplace-health[data-status=available] .health-status{color:#7cdb9e}html[data-theme=dark] .marketplace-health[data-status=available] .health-signal{background:#66d294;box-shadow:0 0 0 4px #223c31}
html[data-theme=dark] .health-refresh:hover{background:#303440;color:#fff}
html[data-theme=dark] .hub-select-list [aria-selected=true]{background:#9c4c24;color:#fff}
html[data-theme=dark] .chart{background-color:transparent}html[data-theme=dark] .chart-legend{color:#bfc2d4}
html[data-theme=dark] :is(.pill,.mode){background:#333746;color:#d9dbe6;border-color:#4a4f61}
html[data-theme=dark] .pill.green{background:#203d30;color:#8be3ab}html[data-theme=dark] .pill.red{background:#4a252e;color:#ffa6ae}html[data-theme=dark] .pill.orange{background:#493324;color:#ffba8a}
html[data-theme=dark] .theme-login{color:#e6e7ef}
@media(max-width:600px){.theme-login{right:16px;top:78px}.theme-panel{width:250px}}
html[data-theme=dark] .sidebar-fixed-top{background:#1d202a}html[data-theme=dark] .workspace{color:#f0f0f5}html[data-theme=dark] .ds-icon{filter:brightness(0) invert(.8)}html[data-theme=dark] nav button.active .ds-icon{filter:brightness(0) invert(1)}html[data-theme=dark] #notifications{background:transparent}html[data-theme=dark] #notifications .ds-icon{filter:brightness(0) invert(.9)}html[data-theme=dark] .notification-count{border-color:#1d202a}html[data-theme=dark] .chart{background:transparent}html[data-theme=dark] .bars{background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#343744 45px,#343744 46px)}html[data-theme=dark] .notification-item{background:#1d202a;color:#f0f0f5}html[data-theme=dark] .notification-item:hover{background:#303440}html[data-theme=dark] .chart-footer b{color:#bfc2d4}
/* Match the navigation ID specificity so dark icons override the base reset. */
html[data-theme=dark] #nav .ds-icon,
html[data-theme=dark] #sidebar .sidebar-bottom>button>.ds-icon{filter:brightness(0) invert(.88)}
html[data-theme=dark] #nav button.active .ds-icon{filter:brightness(0) invert(1)}
/* Preserve dark form surfaces against the more specific shared input rules. */
html[data-theme=dark] body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=file]),
html[data-theme=dark] body textarea{background-color:#191c25;color:#e6e7ef;border-color:#505469;box-shadow:none}
html[data-theme=dark] body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=file]):focus,
html[data-theme=dark] body textarea:focus{border-color:#f46823}
html[data-theme=dark] tbody tr:hover,
html[data-theme=dark] tbody tr:focus-visible{background:#2b303e}
/* Shared dark interaction states across all Hub pages. */
html[data-theme=dark] :is(.btn:not(.primary):not(.danger):hover,.hub-select-button:hover,.queue-arrow:hover,.drawer-close:hover,.icon-button:hover){background:#353a49;color:#f0f0f5}
html[data-theme=dark] :is(.queue-arrow,.drawer-close,.queue-bottom,.hub-preview-bar,.donut:after){background:#252936;color:#c5c7d5;border-color:#414657}
html[data-theme=dark] :is(.detail-grid span,.id-text,.notification-item small,.queue-copy small,.profile-fields dt,.source-list){color:#aeb1c4}
html[data-theme=dark] .btn.danger{background:#b92f40;border-color:#b92f40;color:#fff}
html[data-theme=dark] .btn.danger:hover{background:#d23b4c;border-color:#d23b4c}
html[data-theme=dark] .trend{background:#203d30;color:#8be3ab}
html[data-theme=dark] .queue-icon.red{background:#4a252e;color:#ffa6ae}
html[data-theme=dark] .hub-select-list{scrollbar-color:#74798f #252936}
html[data-theme=dark] input[type=checkbox],html[data-theme=dark] input[type=radio]{accent-color:#f46823}
html[data-theme=dark] body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=file]):disabled,
html[data-theme=dark] body textarea:disabled{background-color:#292d39;color:#9295a8;border-color:#414657}
html[data-theme=dark] body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=file])[readonly],
html[data-theme=dark] body textarea[readonly]{background-color:#232733;color:#b9bbcc}
html[data-theme=dark] body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=file])[aria-invalid=true],
html[data-theme=dark] body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=file]):user-invalid,
html[data-theme=dark] body textarea[aria-invalid=true],html[data-theme=dark] body textarea:user-invalid{border-color:#ff7787}

.session-warning{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:3000;max-width:calc(100% - 32px);width:650px;display:flex;align-items:center;gap:16px;padding:16px 20px;border:1px solid #e5b45c;border-radius:12px;background:#fff7e5;color:#533b0b;box-shadow:0 8px 30px #0003;font:500 12px/1.6 Inter,Arial,sans-serif}.session-warning[hidden]{display:none}.session-warning button{flex-shrink:0;border:0;border-radius:8px;background:#f46823;color:white;padding:10px 12px;font:inherit;cursor:pointer}html[data-theme=dark] .session-warning{background:#342c1d;color:#ffe1a1;border-color:#80612d}@media(max-width:600px){.session-warning{flex-direction:column;align-items:stretch}}
.hub-auth-required:not(.hub-authenticated)>.session-warning:not([hidden]){display:flex!important}

html[data-theme=dark] .avatar,html[data-theme=dark] .avatar.peach,html[data-theme=dark] .avatar.sage,html[data-theme=dark] .avatar.lilac,html[data-theme=dark] .avatar.blue{background:#2c303e;color:#d8d9e4}
html[data-theme=dark] .queue-item .queue-icon{background:#f46823;color:#fff}
html[data-theme=dark] .queue-item .queue-icon .ds-icon{filter:brightness(0) invert(1)}
html[data-theme=dark] .queue-item .queue-icon{background:#493324;color:#ffba8a}
html[data-theme=dark] .queue-item .queue-icon .ds-icon{filter:brightness(0) invert(.85)}
