.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;width:36px;height:36px;min-height:36px;padding:8px;border:1px solid #d1dedc;border-radius:10px;background:#ffffffb8;color:#3b6260;cursor:pointer}
.theme-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.theme-toggle .theme-toggle-label{display:none}
.theme-toggle:focus-visible{outline:2px solid #5798dd;outline-offset:3px}
.sidebar-bottom>.theme-toggle{width:100%;height:36px;margin:0 0 10px;justify-content:flex-start;padding-inline:12px}
.sidebar-bottom>.theme-toggle .theme-toggle-label{display:inline}
.language-control .theme-toggle{border:0;background:transparent;padding:7px;width:34px;height:34px;min-height:34px}
.language-control{gap:3px}
.site-header>.language-control{display:flex;align-items:center}
.login-theme-toggle{position:absolute;right:20px;top:20px}
@media(max-width:760px){.sidebar-bottom>.theme-toggle{width:32px;height:34px;min-height:34px;padding:6px;margin:0;justify-content:center}.sidebar-bottom>.theme-toggle .theme-toggle-label{display:none}.sidebar .sidebar-bottom{gap:4px}.sidebar .sidebar-brand strong{font-size:11px}.sidebar .sidebar-bottom .notice-nav{padding-inline:6px;gap:3px}.sidebar .sidebar-bottom .owner button{padding-inline:6px}.language-control .theme-toggle{width:30px;padding:6px}}
@media(max-width:359px){.sidebar .sidebar-brand strong{font-size:9px}.sidebar .sidebar-bottom{gap:3px}.sidebar .mobile-nav-toggle{padding-inline:6px}.sidebar-bottom>.theme-toggle{width:28px;padding:4px}.sidebar .sidebar-bottom .notice-nav{font-size:10px}.sidebar .notice-nav #notice-unread{min-width:12px}}
@media(max-width:760px){.site-header .language-trigger{min-width:0;padding:7px 8px;gap:5px}.site-header .language-current-label{max-width:72px}.site-header .language-current-flag{width:18px;height:13px}}

html[data-color-mode=dark]{color-scheme:dark;--text:#deebe8;--muted:#9bb2ac;--ink:#d6e2f0;--secondary-ink:#aebfd4;--line:#2d3e54;--blue:#80aaff;--panel:#192536;--panel-inset:#152131;--panel-selected:#263a53;--border:#30463f;--wash:#20362e;--glow:#193e32;background:#101923;color:var(--ink);scrollbar-color:#50627a #152131}
html[data-color-mode=dark] body{color:#dce7f5;background:radial-gradient(ellipse at 85% 0,#183344,transparent 55%),#101923;background-attachment:fixed}
html[data-color-mode=dark] body[data-theme]{--text:#d9e8e3;--muted:#b0c5be;--border:#304b42;--accent:#65cdb0;--accent-dark:#a1e4d1;--wash:#203c32;--glow:#193e32;color:var(--text);background:radial-gradient(ellipse at 85% 0,var(--glow),transparent 55%),#111e1a}
html[data-color-mode=dark] body[data-theme=Claude]{--accent:#e4aa88;--accent-dark:#f6c6a8;--wash:#423026;--glow:#3c2b22;--border:#564239;--text:#efe2d9;--muted:#c4ada0;background-color:#201a17}
html[data-color-mode=dark] body[data-theme=Grok]{--accent:#a3bfec;--accent-dark:#c4d6f1;--wash:#27364b;--glow:#253449;--border:#394b65;--text:#e0e9f6;--muted:#a7b7cf;background-color:#131d2b}
html[data-color-mode=dark] body[data-theme=Gemini]{
    --accent:#8bbaff;--accent-dark:#bad6ff;--wash:#233757;--glow:#243d64;--border:#3b5274;--text:#e4eeff;--muted:#aabedc;
    --gemini-title:linear-gradient(110deg,#ff9394,#ffd16c 43%,#94beff 83%);
    background:radial-gradient(ellipse at 5% 5%,#492833,transparent 50%),radial-gradient(ellipse at 45% 3%,#392e23,transparent 44%),linear-gradient(130deg,#191c2c,#142744) #131d2f;
}
html[data-color-mode=dark] :is(h1,h2,h3,h4){color:inherit}
html[data-color-mode=dark] :is(.sidebar,.panel,.login-card,dialog,.card-menu-floating,.manual-delivery-panel,.inventory-record td,.orders-panel td,.notice-dialog,.manual-card-group,.manual-product-group){background:#192536!important;border-color:#304159!important;color:#dce7f5;box-shadow:none}
html[data-color-mode=dark] :is(.main-content,.shell,.inventory-table,.inventory-table tbody,.inventory-record,.inventory-spacer td,.orders-panel .table-scroll,.table-scroll){background:transparent!important}
html[data-color-mode=dark] :is(.sidebar-brand strong,.side-nav a,.side-nav button,.card-subnav a,.owner strong,.orders-heading h2,.inventory-code,.inventory-code code,.customer-name,.customer-email,.card-cell code,.order-cell code,.date-value,.inventory-specs dd,.detail-row strong,.inventory-batch-note,.inline-card-title,.inventory-log code){color:#dce7f5}
html[data-color-mode=dark] :is(.muted,.nav-group,.sidebar-brand small,.breadcrumb,.owner small,.metric-label,.metric-scope,.inventory-metric-scope,.inventory-timestamp,.manual-claim-meta,.inventory-specs dt,.card-status-label,.detail-row>span,.timeline time,.timeline p,.system-facts,.device,.log-row,.settings-description,.notice-record small,.inventory-log,.inventory-empty){color:#a6b9d2}
html[data-color-mode=dark] :is(input:not([type=checkbox]),textarea,select){color:#e2eaf6!important;background:#111d2c!important;border-color:#425570!important;color-scheme:dark}
html[data-color-mode=dark] :is(input,textarea)::placeholder{color:#9aadc5!important}
html[data-color-mode=dark] :is(button,summary){color:inherit}
html[data-color-mode=dark] :is(.main-content,.sidebar,.login-view,dialog) button:not(.primary):not(.manual-confirm-claim):not(.inline-delete-confirm):not(.batch-delete-confirm):not(.nav-current):not(.inventory-selected){background-color:#24344a;border-color:#3c5270;color:#c5dafa}
html[data-color-mode=dark] :is(.side-nav,.card-subnav) :is(a,button):hover{background:#263b56}
html[data-color-mode=dark] .sidebar .side-nav .nav-current{background:linear-gradient(120deg,#326df2,#4160e7)!important;color:#fff!important}
html[data-color-mode=dark] :is(.primary,.manual-confirm-claim,.batch-delete-confirm,.inline-delete-confirm){color:#fff!important}
html[data-color-mode=dark] :is(.metrics button,.metrics article,.stock-counts article,.inventory-metrics button){background:#192536!important;border-color:#354860;color:#dce7f5}
html[data-color-mode=dark] .metrics :is(button,article)::after{opacity:.07}
html[data-color-mode=dark] :is(.metrics strong,.stock-counts strong){color:#9fbeff}
html[data-color-mode=dark] :is(.period,.system-facts,.workspace-nav,.inventory-batch,.batch-confirm,.inventory-editor-row form,.admin-account-form,.health-grid article,.notice-tools,.notice-record,.submission-panel,.manual-section,.source-query-result,.source-release-note,.manual-group-toggle,.manual-product-toggle,.manual-batches,.stock-item,.stock-category,.inventory-audit,.stock-summary,.trend svg){background:#1d2e43!important;border-color:#344963;color:#c6d7ed}
html[data-color-mode=dark] :is(th,.trend-table th,.card-more summary){background:#213047!important;border-color:#344963;color:#b4c8e3}
html[data-color-mode=dark] :is(td,.detail-row,.inventory-log,.device,.log-row,.admin-account-row){border-color:#304159}
html[data-color-mode=dark] :is(.manual-summary-state,.manual-card-summary){color:#b4c8e3}
html[data-color-mode=dark] .manual-claim-meta strong{color:#c6adff}
html[data-color-mode=dark] :is(.badge.success,.badge.succeeded,.notice-success){background:#164736!important;color:#9ce7be!important;border-color:#276951!important}
html[data-color-mode=dark] :is(.badge.failed,.card-access-state,.notice-urgent){background:#4b2735!important;color:#ffb5c2!important;border-color:#704152!important}
html[data-color-mode=dark] :is(.badge.active,.badge.releasing){background:#4b3a1e!important;color:#f5d089!important;border-color:#6b542d!important}
html[data-color-mode=dark] :is(.badge.unknown,.badge.bound,.inventory-type,.badge.unbound,.live-update,.notice-nav,.badge){background:#263d5e;border-color:#405f88;color:#b7d1fb}
html[data-color-mode=dark] :is(.error,.danger){color:#ff9ca9}
html[data-color-mode=dark] .theme-toggle{background:#26384a;border-color:#47617a;color:#e8d298}
html[data-color-mode=dark] .sidebar .theme-toggle{color:#e8d298!important}
html[data-color-mode=dark] :is(.trend text,.traffic-chart text){fill:var(--secondary-ink)}
html[data-color-mode=dark] .trend :is(.guide,.trend-grid){stroke:#3b4d64}
html[data-color-mode=dark] .trend .trend-bar-value{fill:var(--ink)}
html[data-color-mode=dark] .trend .trend-tooltip>rect{fill:var(--panel-inset);stroke:#516680;filter:drop-shadow(0 5px 9px #0004)}
html[data-color-mode=dark] .trend .trend-tooltip text{fill:var(--ink)}
html[data-color-mode=dark] :is(dialog::backdrop,.mobile-nav-backdrop){background:#030a13b3}

/* Customer cards retain their product accent across both sides of the workspace. */
html[data-color-mode=dark] body[data-theme] :is(.workspace,.service-card,.operation,#product-panel,.query-workspace,.auto-detect){background:linear-gradient(125deg,color-mix(in srgb,var(--wash) 85%,#10191a),color-mix(in srgb,var(--wash) 36%,#10191a))!important;color:var(--text);border-color:var(--border)!important;box-shadow:none}
html[data-color-mode=dark] body[data-theme=Gemini] :is(.query-workspace, .query-workspace #operation-panel) { background: transparent !important; }
html[data-color-mode=dark] body[data-theme] :is(.product-info,.product-summary,.review,.info-box,.help-link,.instruction,.query-result,.result-card,.task-tray,.task-item,.notice,.credential-guide,.notice-box,.language-menu,.page-switch,.product-switch){background:var(--wash)!important;border-color:var(--border)!important;color:var(--text)}
html[data-color-mode=dark] body[data-theme] :is(.language-trigger,.language-control,.language-option,.nav-item,.product-tab,.back,.secondary,.detail-row strong,.field-heading,.credential-note,.product-subtitle,.support-area,.service-intro>p,.product-label){color:var(--muted)}
html[data-color-mode=dark] body[data-theme] :is(.language-option:hover,.language-option.selected,.nav-item.active){background:var(--wash)!important;color:var(--accent-dark)}
html[data-color-mode=dark] body[data-theme] :is(.product-tab.active,.primary){background:linear-gradient(110deg,#078b70,#086953)!important;color:#fff!important}
html[data-color-mode=dark] body[data-theme=Claude] :is(.product-tab.active,.primary){background:linear-gradient(110deg,#a65632,#7b3c22)!important}
html[data-color-mode=dark] body[data-theme=Grok] :is(.product-tab.active,.primary){background:linear-gradient(110deg,#3d5878,#2c405a)!important}
html[data-color-mode=dark] body[data-theme=Gemini] :is(.product-tab.active,.primary){background:var(--gemini-action)!important;color:var(--gemini-label)!important}
html[data-color-mode=dark] body[data-theme] :is(.credential-links a,.help-links a,.guide-link,.session-link,.session-guide a,.info-note,.product-notice){background:var(--wash)!important;border-color:var(--border);color:var(--accent-dark)}
html[data-color-mode=dark] body[data-theme] :is(input,textarea,select){color:var(--text)!important;border-color:var(--border)!important;background:color-mix(in srgb,var(--wash) 24%,#10191a)!important}
html[data-color-mode=dark] body[data-theme] .theme-toggle{color:var(--accent-dark)}
html[data-color-mode=dark] body[data-theme] :is(.session-help a,.claude-instructions>a,.claude-instructions>button,.claude-requirements,.compact-summary,.info-box){background:var(--wash)!important;border-color:var(--border)!important;color:var(--text)}
html[data-color-mode=dark] body[data-theme] :is(.session-help .help-number,.claude-instructions .help-number){background:color-mix(in srgb,var(--wash) 50%,#10191a);color:var(--accent)}
html[data-color-mode=dark] body[data-theme] :is(.info-box p,.info-box .info-symbol,.summary-name,.summary-plan,.review strong,.form-label,.detail-row strong,.card-code){color:var(--text)}
html[data-color-mode=dark] body[data-theme] .status-pill{background:#263d5e;color:#b7d1fb;border-color:#405f88}
html[data-color-mode=dark] :is(.workspace-overview,.pagination,.inventory-more-filters>summary,.inventory-filter-panel,.inventory-advanced-filters,.inventory-batch-context,.inventory-empty){background:#192536!important;border-color:#344963!important;color:#b8cbe4!important}
html[data-color-mode=dark] :is(.inventory-batch-note span,.inventory-timestamp time,.inventory-timestamp span,.manual-card-summary,.manual-summary-state,.overview-brief,.pagination,.source-detail summary){color:#b8cbe4!important}
html[data-color-mode=dark] .workspace-overview>summary{color:#b8cbe4}
html[data-color-mode=dark] .manual-feedback{color:#8fd5b9}
html[data-color-mode=dark] .sidebar #card-menu-toggle:not(.nav-current),html[data-color-mode=dark] .sidebar #internal-card-nav:not(.nav-current){color:#dce7f5}
html[data-color-mode=dark] body[data-theme] .compact-summary{background:transparent!important}
html[data-color-mode=dark] :is(.business-metric,.business-summary>a,.stock-ai-group,.stock-plan-tile,.interface-worker,.interface-provider,.logs-table td,.log-table td){background:#192536!important;border-color:#344963!important;color:#c5d7ee}
html[data-color-mode=dark] :is(.business-metric>span,.business-metric>small,.stock-ai-group h3,.stock-ai-group h3 span,.stock-plan-tile h4,.stock-count-grid,.interface-worker p,.interface-probe small,.interface-endpoints small){color:#b1c4dd}
html[data-color-mode=dark] :is(.business-metric>strong,.business-metric.rate>strong,.traffic-table strong){color:#a8c6fa}
html[data-color-mode=dark] .business-metric.succeeded>strong{color:#7ed9b4}
html[data-color-mode=dark] .business-metric.failed>strong{color:#f19aab}
html[data-color-mode=dark] :is(.business-metric.active>strong,.business-summary strong){color:#e9c17e}
html[data-color-mode=dark] .interface-state{background:#263d5e;color:#b7d1fb}
html[data-color-mode=dark] .interface-state.ok{background:#164736;color:#9ce7be}
html[data-color-mode=dark] :is(.interface-state.error,.interface-state.unavailable){background:#4b2735;color:#ffb5c2}
html[data-color-mode=dark] :is(.interface-worker.needs-setup,.business-alert-reasons>span,.interface-state.limited,.interface-state.degraded,.interface-state.reachable,.interface-state.rejected){background:#403522!important;color:#ecd09f;border-color:#665333!important}
html[data-color-mode=dark] .main-content table td{background:#192536!important;color:#c5d7ee}
html[data-color-mode=dark] :is(.stock-total-count,.stock-filter-panel){background:#1d2e43!important;border-color:#344963!important;color:#b8cbe4!important}
html[data-color-mode=dark] .inventory-record{border-color:#344963!important}
html[data-color-mode=dark] .workspace-overview>summary{border-radius:inherit}
html[data-color-mode=dark] :is(.manual-claim-meta dt,.manual-claim-meta time,.order-origin-note,.inventory-detail-heading){color:#a6b9d2!important}
html[data-color-mode=dark] .internal-cards .inventory-table .inventory-record.is-expanded>td:nth-child(2),
html[data-color-mode=dark] .internal-cards .inventory-table .inventory-record.is-expanded>td:nth-child(3),
html[data-color-mode=dark] :is(.manual-claim-meta,.orders-panel #rows>tr>.order-attribution){border-color:#344963!important}
html[data-color-mode=dark] .sidebar-bottom .sidebar-tools{background:#152337;border-color:#344963}
html[data-color-mode=dark] .sidebar-bottom .sidebar-tools>button,html[data-color-mode=dark] .sidebar-bottom .sidebar-tools>a{background:transparent;color:#c4d5eb;border-color:#344963}
html[data-color-mode=dark] .sidebar-bottom .owner{border-color:var(--line)}
html[data-color-mode=dark] .manual-sell-button{background:#3268ea;border-color:#3268ea;color:#fff}
html[data-color-mode=dark] .manual-sell-button.is-sold,html[data-color-mode=dark] .manual-sell-button:disabled{background:#17392e;border-color:#315b48;color:#a9dfc4}

html[data-color-mode=dark] .workspace-overview .metrics>button:hover{background:#22334a!important}
html[data-color-mode=dark] .workspace-overview .metrics>button[aria-pressed="true"],
html[data-color-mode=dark] .inventory-metrics>button.inventory-selected{background:var(--panel-selected)!important;border-color:#4e6a8c;box-shadow:none}
html[data-color-mode=dark] .inventory-metrics>button[aria-pressed="true"] .metric-label{color:var(--ink)}
html[data-color-mode=dark] .period button.selected{background:var(--panel-selected)!important;border-color:#5c7799;color:var(--ink)}
html[data-color-mode=dark] :is(.workspace-overview .metrics small,.metrics small,.recycle-metrics small,.result-count,.inventory-no-order,.active-filters,.bar-legend,.legend,.business-legend,.business-footnote,.footnote,.footnote>span:not(.live-dot),.trend-no-data,.trend-empty){color:var(--secondary-ink)}
html[data-color-mode=dark] .inventory-search #clear-inventory{color:var(--secondary-ink)}
html[data-color-mode=dark] .inventory-row-actions button[data-release-countdown]{opacity:1;cursor:default;color:var(--secondary-ink)}
html[data-color-mode=dark] .filter-popover>summary:focus-visible{outline:2px solid #82a7dc}
html[data-color-mode=dark] .inventory-list .table-scroll{background:var(--panel)!important}
html[data-color-mode=dark] .inventory-table :is(.inventory-spacer,.inventory-spacer td){background:transparent!important;border:0!important;box-shadow:none}
html[data-color-mode=dark] :is(.side-nav,.trend-plot,.table-scroll){scrollbar-color:#50627a transparent}
html[data-color-mode=dark] .sidebar.nav-open>.side-nav{background:var(--panel);border-color:var(--line);box-shadow:12px 0 45px #0005}
html[data-color-mode=dark] .sidebar .notice-nav #notice-unread{background:var(--panel-selected);color:var(--ink)}
html[data-color-mode=dark] body[data-page=trends] :is(#count-active,#count-failed).has-value::before,
html[data-color-mode=dark] body[data-page=trends] :is(#count-active,#count-failed).has-value::after,
html[data-color-mode=dark] .trend-table .trend-value-doodle::before{content:none}
html[data-color-mode=dark] .trend-table .trend-value-doodle{font-variant-numeric:tabular-nums}
html[data-color-mode=dark] :is(.trend-table .trend-total .trend-value-doodle,.metrics #count-total){color:#a9c5f8}
html[data-color-mode=dark] :is(.trend-table .trend-success .trend-value-doodle,.metrics #count-success){color:#92d6bb}
html[data-color-mode=dark] :is(.trend-table .trend-active .trend-value-doodle,.metrics #count-active){color:#e4c289}
html[data-color-mode=dark] :is(.trend-table .trend-failed .trend-value-doodle,.metrics #count-failed){color:#eba9b7}

html[data-color-mode=dark] body[data-theme] .service-intro{background:transparent;color:var(--text)}
html[data-color-mode=dark] body[data-theme] :is(.page-switch,.page-switch .nav-item.active){box-shadow:none}
html[data-color-mode=dark] body[data-theme] :is(.service-features>span,.intro-steps li>span,.page-switch .nav-item.active){
 background:color-mix(in srgb,var(--accent) 12%,var(--wash))!important;
 border-color:color-mix(in srgb,var(--accent) 24%,var(--border));
 color:var(--accent-dark)
}
html[data-color-mode=dark] body[data-theme] :is(input,textarea)::placeholder{color:var(--muted)!important}

@media(max-width:760px){
 html[data-color-mode=light] .sidebar{background:linear-gradient(115deg,#e7edf4,#f2f5f9)!important;border-color:#c9d4e0!important;box-shadow:0 4px 12px #263d581c}
 html[data-color-mode=light] .sidebar>.sidebar-brand strong{color:#2b405b}
 html[data-color-mode=light] .sidebar>.mobile-nav-toggle,
 html[data-color-mode=light] .sidebar .sidebar-tools>button,
 html[data-color-mode=light] .sidebar .sidebar-tools>a,
 html[data-color-mode=light] .sidebar .owner>button{background:#fafcfe;border-color:#d1dbe6;color:#465b74}
 html[data-color-mode=light] .sidebar .notice-nav #notice-unread{background:#e3eaf3;color:#4c627d}
 html[data-color-mode=dark] .shell>.sidebar{background:linear-gradient(115deg,#25303d,#303b4a)!important;border-color:#4b5869!important;box-shadow:0 4px 12px #0004}
 html[data-color-mode=dark] .sidebar>.sidebar-brand strong{color:#f0f5ff}
 html[data-color-mode=dark] .sidebar>.mobile-nav-toggle,
 html[data-color-mode=dark] .sidebar .sidebar-tools>button,
 html[data-color-mode=dark] .sidebar .sidebar-tools>a,
 html[data-color-mode=dark] .sidebar .owner>button{background:#263342;border-color:#506075;color:#dfe7ef}
 html[data-color-mode=light] .sidebar .sidebar-tools>.notice-nav.has-urgent{background:#ffe0e5!important;color:#af2040!important}
 html[data-color-mode=dark] .sidebar .sidebar-tools>.notice-nav.has-urgent{background:#5a2838!important;color:#ffd0df!important}
}
