/* Shared light-mode finish. Keep the canvas white; use color to identify data and actions. */
html[data-theme=light]{
 color-scheme:light; background:#fff;
 --bg:#fff;--panel:#fff;--surface:#fff;--text:#17233b;--muted:#53647c;--line:#dce5f1;
 --sx-surface:#fff;--sx-raised:#fff;--sx-border:#dce5f1;--sx-copy:#17233b;--sx-secondary:#53647c;
 --light-ink:#17233b;--light-copy:#53647c;--light-border:#dce5f1;--light-hover:#f1f6ff;--light-accent:#6546bd;
 --light-shadow:0 4px 24px #263f6c08;--light-focus:0 0 0 4px #7c63d91f;
 --result-good:#147449;--result-bad:#b62e46;--result-good-bg:#edfbf3;--result-bad-bg:#fff0f3;
}
html[data-theme=light] body,
html[data-theme=light] body:has(.shell){
 background:#fff!important;color:var(--light-ink);
 --bg:#fff;--panel:#fff;--surface:#fff;--surface-raised:#fff;--text:#17233b;--muted:#53647c;--line:#dce5f1;
 --sx-panel:#fff;--sx-line:#dce5f1;--sx-copy:#53647c;--sx-ink:#17233b;--sx-accent:#6546bd;--sx-soft:#f4efff;
 --dash-panel-base:#fff;--dash-panel-line:#dce5f1;
 --dash-blue:#2363b4;--dash-pink:#a03677;--dash-violet:#6546bd;--dash-orange:#a64e17;
 --dash-blue-panel:linear-gradient(135deg,#edf6ff,#f8fcff);--dash-pink-panel:linear-gradient(135deg,#fff0f8,#fff9fc);
 --dash-violet-panel:linear-gradient(135deg,#f3edff,#fcfaff);--dash-orange-panel:linear-gradient(135deg,#fff2e5,#fffbf6);
 --dash-panel-blue-line:#bad8f7;--dash-panel-pink-line:#edc4dd;--dash-panel-violet-line:#d6c8f5;--dash-panel-orange-line:#efd2b5;
 --dash-color-label:#263550;--dash-color-note:#53647c;
 --nav-bg:#fff;--nav-line:#e4eaf4;--nav-copy:#53647c;--nav-text:#17233b;--nav-hover:#f1f6ff;--nav-selected:#eee8ff;
 --hub-panel:#fff;--hub-line:#dce5f1;--hub-text:#17233b;--hub-muted:#53647c;
}
html[data-theme=light] body :is(.shell,main,.topbar,.organized-sidebar,.dashboard-search,.setup-rail,.setup-panel,.setup-footer){background:#fff!important}
html[data-theme=light] body>header.sx-header,
html[data-theme=light] body.marketing-page>header.sx-header,
html[data-theme=light] body:has(.shell) :is(.sidebar,.topbar){background:#fff!important;border-color:var(--light-border)!important}
html[data-theme=light] body>header.sx-header .brand :is(b,span),
html[data-theme=light] body.marketing-page>header.sx-header .brand :is(b,span){color:var(--light-ink)!important}
html[data-theme=light] body>header .site-brand-icon{filter:brightness(0);opacity:.9}
html[data-theme=light] .sx-menu-pill{background:#fff;border-color:var(--light-border);box-shadow:0 3px 18px #263f6c0a}
html[data-theme=light] .sx-menu-pill :is(select,.sx-progress){background:#fff!important;border:1px solid var(--light-border)!important;color:var(--light-ink)!important}
html[data-theme=light] :is(.sx-menu,.sidebar-flyout){background:#fff!important;color:var(--light-ink);border-color:var(--light-border);box-shadow:0 20px 70px #21375424}
html[data-theme=light] .sx-menu::backdrop{background:#17233b33}
html[data-theme=light] body:has(.shell) .organized-sidebar :is(.workspace,.demo-note,.sidebar-themes){background:#fff!important;border-color:var(--light-border)!important;color:var(--light-ink)!important}
html[data-theme=light] body:has(.shell) .organized-sidebar nav .nav-children button.active,
html[data-theme=light] body:has(.shell) .sidebar nav button.active{background:#eee8ff!important;color:#503393!important;box-shadow:inset 3px 0 #8260d2!important}
html[data-theme=light] body:has(.shell) .organized-sidebar nav .nav-children button.active>span{color:#503393!important}
html[data-theme=light] body:has(.shell) .sidebar nav button:hover{background:#f1f6ff!important;color:var(--light-ink)!important}
html[data-theme=light] .organized-sidebar .sidebar-themes button[aria-pressed=true]{background:#eee8ff!important;color:#503393!important}
/* White working surfaces, including dialogs and less frequently visited workflows. */
html[data-theme=light] body :is(.account-card,.platform-card,.calculator,.preview,.price-plan,.features article,.integration-grid a,.product-disclosure,.stock-dialog,.stock-plan-dialog,.inventory-dialog,.targets-dialog,.workspace-guide-dialog,.channel-sync-confirm,.connection-api-dialog,.data-editor,.workflow-grid article,.workflow-coverage,.workflow-imports,.pick-task,.setup-scan,.setup-summary,.manual-marketplaces,.manual-marketplace-row){
 background:#fff!important;border-color:var(--light-border)!important;color:var(--light-ink);box-shadow:var(--light-shadow);
}
html[data-theme=light] body.auth-ready:has(.shell) #content :is(.operations-table,.delivery-queue,.profit-table,.ops-jobs,.ops-archive,.catalog-table,.margin-product-section,.overview-panel,.overview-next,.price-panel,.product-disclosure,.auto-repricing,.custom-costs,.pick-workspace>.card){background:#fff!important;border-color:var(--light-border)!important;box-shadow:var(--light-shadow)}
html[data-theme=light] body.auth-ready:has(.shell) #content :where(.card,.hub-card,.ops-platform){box-shadow:var(--light-shadow)}
html[data-theme=light] body.auth-ready:has(.shell) #content .profit-kpis article.margin-positive-estimate{background:#fff!important;border-color:var(--light-border)!important}
html[data-theme=light] body.auth-ready:has(.shell) #content .profit-kpis article.margin-positive-estimate>strong{color:var(--light-ink)!important}
html[data-theme=light] body:has(.shell) :is(.marketplace-price-row,.competition-grid article,.pricing-rule,.cost-calculator,.chart-summary,.workspace-tabs,.workspace-primary-tabs,.segmented,.multiplier-options,.scenario-editor){background:#fff!important;border-color:var(--light-border)!important;color:var(--light-ink)!important}
html[data-theme=light] body :is(h1,h2,h3,h4,.brand,.brand b,.kpi-value,.price-selected strong,.price-range strong,.product-select strong){color:var(--light-ink)!important}
html[data-theme=light] body :is(.sub,.eyebrow,.overline,.account-footnote,.form-status,.platform-card>p,.account-card>p,.price-disclaimer,.price-footnote,.price-facts span,.price-range small,.cost-explanation,.own-product-heading p,.operations-intro p,.overview-note){color:var(--light-copy)!important}
html[data-theme=light] body :is(label,.text-link,.account-menu a,.auth-tabs a){color:var(--light-copy)!important}
html[data-theme=light] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea,.search){background:#fff!important;color:var(--light-ink)!important;border-color:#bccde2!important;box-shadow:none}
html[data-theme=light] body :is(input,textarea)::placeholder{color:#657992;opacity:1}
html[data-theme=light] body :is(input,select,textarea):focus{border-color:#9477dc!important;outline:2px solid #9477dc;outline-offset:2px;box-shadow:var(--light-focus)}
html[data-theme=light] body :is(input[type=checkbox],input[type=radio]){accent-color:#7451c5}
html[data-theme=light] body :is(button,a,input,select,textarea):focus-visible{outline:2px solid #7451c5;outline-offset:3px}
html[data-theme=light] body :is(.button:not(.orange):not(.overview-primary):not(#refresh),.profile-secondary,.social-auth button,.connect-steps button,.delivery-portal .button:not(.orange)){
 background:#fff!important;border-color:#cbd8ea!important;color:#344968!important;box-shadow:0 2px 5px #263f6c06;
}
html[data-theme=light] body :is(.button:not(.orange):not(#refresh),.profile-secondary,.social-auth button):hover{background:#f4efff!important;border-color:#b6a1e6!important;color:#503393!important}
html[data-theme=light] body :is(.button.orange,#refresh,.overview-primary){background:linear-gradient(115deg,#ffb57d,#ff945d)!important;color:#362015!important;border-color:#eea36f!important;box-shadow:0 3px 12px #e8864520}
html[data-theme=light] body .profile-delete-button{background:#a82f45!important;color:#fff!important;border-color:#a82f45!important}
html[data-theme=light] body :is(.pill,.status,.pricing-rule,.attention-count,.signal.unknown){background:#f3efff!important;border-color:#ddd1f5!important;color:#624992!important}
/* Tables keep clean white headers; hover and selection use a blue tint instead of grey. */
html[data-theme=light] body:has(.shell) :is(th,.profit-table th),html[data-theme=light] .delivery-queue thead{background:#fff!important;color:#53647c!important;border-color:var(--light-border)!important}
html[data-theme=light] body :is(td,.table-footer,.section-head){border-color:#e4eaf4!important}
html[data-theme=light] body:has(.shell) td{color:#263550}
html[data-theme=light] body :is(tbody tr:hover,tbody tr.selected-product){background:#f1f7ff!important}
html[data-theme=light] body :is(.segmented button.active,.multiplier-options button.active,.data-tabs [aria-current=page],.inventory-page-tabs [aria-current=page],.connection-hub-tabs [aria-selected=true]){background:#eee8ff!important;color:#503393!important;border-color:#c7b6ec!important}
html[data-theme=light] body :is(.positive,.signal.good,.operations-badge.ready,.delivery-ready,.delivery-accepted,.delivery-resolved){color:#147449!important}
html[data-theme=light] body :is(.negative,.signal.danger,.form-status.error,.delivery-failed,.delivery-revoked){color:#b62e46!important}
html[data-theme=light] body :is(.signal.good,.operations-badge.ready,.delivery-ready,.delivery-accepted,.delivery-resolved){background:#edfbf3!important;border-color:#b4ddc7!important}
html[data-theme=light] body :is(.signal.danger,.delivery-failed,.delivery-revoked){background:#fff0f3!important;border-color:#eebac6!important}
html[data-theme=light] body :is(.signal.warning,.operations-stale,.workflow-notice,.stock-notice,.inventory-notice,.delivery-warning){background:#fff7ec!important;border-color:#ecd1a8!important;color:#865117!important}
/* Analytics and task colors remain recognizable without large dark panels. */
html[data-theme=light] body.auth-ready:has(.shell) .dashboard-insights .insight-layout>.card.insight-trend{background:#fff!important;border-color:#bad8f7!important}
html[data-theme=light] body.auth-ready:has(.shell) .dashboard-insights .insight-layout>.card.insight-activity{background:var(--dash-violet-panel)!important;border-color:#d6c8f5!important}
html[data-theme=light] body.auth-ready:has(.shell) .dashboard-insights .insight-layout>.card.insight-action{background:linear-gradient(135deg,#f1e9ff,#fff3ee)!important;border-color:#d6c8f5!important}
html[data-theme=light] body.auth-ready .insight-action :is(h3,p,button,.insight-tag){color:#503393!important}
html[data-theme=light] body.auth-ready :is(.insight-note,.insight-heat-labels,.insight-heat-key){color:#5f5378!important}
html[data-theme=light] .workflow-task{background:var(--dash-blue-panel)!important;color:var(--light-ink)!important;border-color:#bad8f7!important}
html[data-theme=light] .workflow-task:nth-child(2){background:var(--dash-pink-panel)!important;border-color:#edc4dd!important}
html[data-theme=light] .workflow-task:nth-child(3){background:var(--dash-violet-panel)!important;border-color:#d6c8f5!important}
html[data-theme=light] .workflow-task small{color:var(--light-copy)}
html[data-theme=light] .work-center :is(.good,.workflow-task.good>b){color:#147449!important}
html[data-theme=light] .work-center :is(.bad,.workflow-task.bad>b){color:#b62e46!important}
html[data-theme=light] .work-center :is(.warn,.workflow-task.warn>b){color:#865117!important}
html[data-theme=light] .inventory-summary article{background:var(--dash-blue-panel);color:var(--light-ink);border-color:#bad8f7}
html[data-theme=light] .inventory-summary article:nth-child(2){background:var(--dash-violet-panel);border-color:#d6c8f5}
html[data-theme=light] .inventory-summary article:nth-child(3){background:linear-gradient(135deg,#edfbf3,#fafffc);border-color:#b4ddc7}
html[data-theme=light] .inventory-summary article:nth-child(4){background:var(--dash-pink-panel);border-color:#edc4dd}
html[data-theme=light] .inventory-summary :is(strong,span,small){color:var(--light-ink)}
html[data-theme=light] .delivery-loading{background:linear-gradient(100deg,#fff,#f1eaff,#fff)}
/* Assistant, profile and onboarding are part of the same light workspace. */
html[data-theme=light] body:has(.shell) .ask-dialog{--ask-bg:#fff;--ask-panel:#f5f0ff;--ask-line:#dce5f1;--ask-text:#17233b;--ask-muted:#53647c;background:#fff!important;border-color:#cdbfe9!important;box-shadow:0 18px 65px #21375426!important}
html[data-theme=light] .ask-heading{background:linear-gradient(110deg,#e4f6fa,#f1e8ff)!important}
html[data-theme=light] body:has(.shell) .ask-fab{background:#fff!important;color:#263550!important;border-color:#d5c6ef!important;box-shadow:0 8px 30px #6546bd1c!important}
html[data-theme=light] .ask-fab small{color:#53647c}
html[data-theme=light] .profile-branding-preview{background:linear-gradient(135deg,#f3edff,#fff7f0);border-color:#d6c8f5;color:#17233b}
html[data-theme=light] .profile-branding-preview :is(strong,b,span,small){color:#503d70!important}
html[data-theme=light] .profile-page :is(.profile-mfa,.profile-signout,.password-strength,.reset-reauth){background:#fff;border-color:var(--light-border);color:var(--light-ink)}
html[data-theme=light] .profile-page :is(.password-strength-head strong,.password-strength-head span,.password-strength li,.profile-email-note,.profile-recovery){color:var(--light-copy)}
html[data-theme=light] .auth-journey .auth-layout{background:#fff;border-color:var(--light-border);box-shadow:0 12px 60px #263f6c0a}
html[data-theme=light] .auth-journey .auth-copy{background:radial-gradient(ellipse at 0 90%,#e7dcff66,transparent 65%),#fff!important;border-color:var(--light-border)!important}
html[data-theme=light] .auth-journey .auth-intro-title{color:var(--light-ink)!important}
html[data-theme=light] .auth-journey :is(.auth-intro-description,.auth-intro-label,.auth-intro-steps li,.social-separator){color:var(--light-copy)!important}
html[data-theme=light] .auth-journey .auth-intro-steps b{color:#6546bd;border-color:#d6c8f5;background:#f3edff}
html[data-theme=light] .auth-journey #auth-submit{background:linear-gradient(115deg,#ffb57d,#ff945d)!important;color:#362015!important;border-color:#eea36f!important}
html[data-theme=light] .auth-journey .auth-tabs a.active{color:#6546bd!important;border-color:#9477dc!important}
html[data-theme=light] .auth-journey .signup-plan{background:#f5f0ff;border-color:#d6c8f5}
html[data-theme=light] .auth-journey .signup-plan :is(strong,span){color:#503d70}
html[data-theme=light] .setup-page :is(.setup-steps li,.setup-help,.setup-identity,.setup-top,.setup-footer){border-color:var(--light-border);color:var(--light-copy)}
html[data-theme=light] .setup-page .setup-steps li>span{background:#fff;border-color:#cbd8ea;color:var(--light-copy)}
html[data-theme=light] .setup-page .setup-steps li.current>span{background:#f3edff;border-color:#9477dc;color:#6546bd}
html[data-theme=light] .setup-page :is(.setup-help,.welcome-choice,.setup-team-list,.setup-scan-card){background:#fff;border-color:var(--light-border)}
/* Public pages: white canvas and footer, with the same pastel blue / violet accents. */
html[data-theme=light] body.marketing-page :is(.hero,.growth-story,.growth-intro,.growth-layout,.pricing,.compact-offer,.quick-answers,.editorial-footer,.ecosystem){background:#fff!important;border-color:var(--light-border)}
html[data-theme=light] body.marketing-page :is(.preview,.strategy-console,.calculator,.price-plan,.offer-card,.proof-grid>div){background:#fff!important;border-color:var(--light-border)!important;box-shadow:var(--light-shadow)}
html[data-theme=light] body.marketing-page .hero .preview-grid>:is(.product,.stats){background:#f0f7ff!important;border-color:#bad8f7!important;color:var(--light-ink)!important}
html[data-theme=light] body.marketing-page .hero .preview-grid>:is(.product,.stats) :is(strong,b,small,span){color:var(--light-ink)!important}
html[data-theme=light] body.marketing-page .hero .preview .advice{background:linear-gradient(135deg,#f1e8ff,#fcfaff)!important;color:#503393!important}
html[data-theme=light] body.marketing-page :is(.preview-head,.preview-bottom,.stats small,.product>small,.growth-benefits p,.flow-note,.story-scope,.editorial-footer p,.editorial-footer small,.footer-bottom,.price-plan p,.price-plan ul,.price-plan>small){color:var(--light-copy)!important;border-color:var(--light-border)!important}
html[data-theme=light] body.marketing-page :is(.editorial-footer a,.price-plan strong,.price-plan p b,.strategy-console strong,.offer-card h3){color:var(--light-ink)!important}
html[data-theme=light] body.marketing-page .price-plan>span{color:#6546bd}
html[data-theme=light] body.marketing-page .market-tile{background:#fff;border-color:var(--light-border)}
html[data-theme=light] body.marketing-page .floating-rule{background:#f3edff;color:#503393;border-color:#d6c8f5}
html[data-theme=light] body.marketing-page .calculator .result{background:linear-gradient(135deg,#edf6ff,#f3edff)!important;color:var(--light-ink)}
html[data-theme=light] body.marketing-page .calculator .result :is(strong,b,span,small){color:var(--light-ink)!important}
html[data-theme=light] body.marketing-page .preview-grid>.stats .negative{color:#b62e46!important}
@media(prefers-reduced-motion:reduce){html[data-theme=light] *{scroll-behavior:auto}}
html[data-theme=light] body.auth-ready:has(.shell) .workspace-guide-summary{background:#fff!important;border-color:#d6c8f5!important;box-shadow:0 4px 22px #6546bd08}
html[data-theme=light] body.auth-ready:has(.shell) :is(.section-link:not(.stock-negative),.demo-banner .section-link){color:#6546bd!important}
html[data-theme=light] body .demo-banner{background:#f5f0ff!important;border-color:#ded0f5!important;color:#503d70!important}
html[data-theme=light] body .demo-banner :is(p,strong){color:#503d70!important}
html[data-theme=light] body .data-entry-grid>button{background:var(--dash-blue-panel)!important;color:var(--light-ink)!important;border-color:#bad8f7!important;box-shadow:var(--light-shadow)}
html[data-theme=light] body .data-entry-grid>button:nth-child(2){background:var(--dash-pink-panel)!important;border-color:#edc4dd!important}
html[data-theme=light] body .data-entry-grid>button:nth-child(3){background:var(--dash-violet-panel)!important;border-color:#d6c8f5!important}
html[data-theme=light] body .data-entry-grid>button:nth-child(4){background:linear-gradient(135deg,#edfbf3,#fafffc)!important;border-color:#b4ddc7!important}
html[data-theme=light] body .data-entry-grid>button :is(p,span,b){color:var(--light-ink)!important}
html[data-theme=light] body .data-entry-grid>button:hover{transform:translateY(-3px);box-shadow:0 8px 26px #6546bd16}
html[data-theme=light] body.marketing-page .hero .preview .preview-grid>.stats strong.negative{color:#b62e46!important}
html[data-theme=light] body.marketing-page .hero .preview .product .loss{background:#fff0f3;border-color:#eebac6;color:#b62e46!important}
html[data-theme=light] body.marketing-page .hero .preview .advice .success{color:#147449!important}
html[data-theme=light] body:has(.shell) .demo-banner{background:#f5f0ff!important;border-color:#ded0f5!important;color:#503d70!important}
html[data-theme=light] body:has(.shell) .demo-banner :is(p,strong){color:#503d70!important}
html[data-theme=light] body:has(.shell) .workspace-primary-tabs button:is(.active,[aria-current=page]){background:#eee8ff!important;color:#503393!important}
html[data-theme=light] body:has(.shell) .own-product-back{background:#fff;color:#53647c;border-color:#cbd8ea;box-shadow:0 2px 5px #263f6c06}
html[data-theme=light] body:has(.shell) .recommended-price{background:linear-gradient(135deg,#e9f5ff,#f5faff)!important;border-color:#bad8f7!important}
html[data-theme=light] body:has(.shell) .recommended-price :is(strong,span,p,small){color:#214564!important}
html[data-theme=light] body:has(.shell) .recommended-price .pill{background:#fff!important;border-color:#cbdcf0!important;color:#33567a!important}
html[data-theme=light] body:has(.shell) :is(.pricing-advice-bridge,.pricing-test-result,.auto-repricing-advice){background:linear-gradient(125deg,#f3edff,#edf6ff)!important;border-color:#d6c8f5!important;color:#503393!important}
html[data-theme=light] body:has(.shell) :is(.pricing-advice-bridge,.pricing-test-result,.auto-repricing-advice) :is(strong,p,small,span){color:#503393!important}
html[data-theme=light] .auth-journey .journey-progress i{background:#e7dff5!important}
html[data-theme=light] .auth-journey .journey-progress i.done{background:#9477dc!important}
html[data-theme=light] .password-eye{color:#65738b}
html[data-theme=light] .password-eye:hover{color:#6546bd;background:#f3edff}
html[data-theme=light] body.auth-ready .insight-gauge line:not(.filled){stroke:#e6dff3}
html[data-theme=light] body.setup-page .setup-note{background:#fff}
html[data-theme=light] .setup-page .setup-steps .complete>span{background:#edfbf3;border-color:#b4ddc7;color:#147449}
html[data-theme=light] .setup-page .setup-steps .complete{color:#147449}
html[data-theme=light] dialog::backdrop{background:#27204426;backdrop-filter:blur(5px)}
html[data-theme=light] body :is(.targets-save,.setup-primary){background:linear-gradient(115deg,#ffb57d,#ff945d)!important;color:#362015!important;border-color:#eea36f!important}
