/* The commerce workspace keeps its dark theme while using a clearer, modular dashboard. */
:root{--bg:#0b1018;--panel:#151d29;--line:#2b3948;--text:#edf4f4;--muted:#9aabb7;--gold:#a7c9ea;--purple:#a7c9ea;--green:#84d5b8;--red:#ff9d92;--accent:#ffac83}
body{background:radial-gradient(ellipse 80% 48% at 77% -15%,#17415255,transparent),#0b1018;color:#edf4f4}
.sidebar{background:#101722;border-right:1px solid #2b3948;padding:24px 14px}
.shell{background:transparent}
.brand{letter-spacing:-.8px}.hq{color:#9dd7db}
.workspace{background:#182432;border:1px solid #345163;box-shadow:0 12px 28px #06101a33}
.workspace .avatar,.avatar,.avatar.small{background:#253b4b;border-color:#45677a;color:#bde8e3}
.workspace small,.profile small,.nav-label{color:#90a7b3}
nav button{color:#a7b8c4;border:1px solid transparent;border-radius:13px;transition:background .2s,border-color .2s,transform .2s}
nav button:hover{background:#1d2b38;border-color:#385367;color:#f4fbfb;transform:translateX(2px)}
nav button>span{color:#96b0bf}
nav button.active{background:linear-gradient(105deg,#244355,#1a2c3b);border:1px solid #54809a;color:#eef8f8;box-shadow:inset 3px 0 #86d7d0,0 8px 24px #07121b50}
nav button.active>span{color:#9fe4d8}
nav i,.sidebar-bottom .demo-note{background:#1d2c38;border-color:#344b5b;color:#bed0d9}
.sidebar-plan{color:#a8c7d2}.sidebar-plan:hover{color:#f8c19d}
.topbar{background:#111a25dc;border-bottom:1px solid #2c4050;backdrop-filter:blur(16px)}
.crumb,.header-date{color:#9eb4c1}.crumb strong,.account-menu{color:#e0edf2}
main{max-width:1800px;padding:34px clamp(20px,3vw,54px) 48px}
.page-heading{background:linear-gradient(115deg,#152434,#182b38 60%,#173744);border:1px solid #365567;border-radius:24px;padding:28px 32px;margin:0 0 22px;box-shadow:0 24px 60px #05101845}
.page-heading .eyebrow,.overline{color:#9bc4d1}.page-heading h1{font-size:clamp(30px,3vw,46px);color:#f5fbfa}.page-heading h1>span{color:#94dacd}.page-heading p{color:#b4c7d0}
.heading-controls #refresh{background:#a9e0d5;border-color:#c3f0e9;color:#102933;box-shadow:0 5px 20px #80dec53b}
select,.button,#data-mode{background:#1b2a39;border-color:#40596a;color:#e8f3f6}
.button:hover{background:#254056;border-color:#78b5c5}
.mode-label,.pill,.status,.signal.unknown{background:#243849;border:1px solid #456377;color:#bbd7e4}
.demo-banner{background:#1c2a35;border-color:#445667;color:#c5d3d9}.demo-banner strong{color:#edf5f5}.demo-banner button{color:#a9e2dd}
.card,.profit-kpis article,.marketplace-price-row,.competition-grid article{background:linear-gradient(145deg,#1b2734,#141d29);border:1px solid #344454;border-radius:19px;box-shadow:inset 0 1px #ffffff0a,0 12px 28px #050e1840}
.card:hover,.profit-kpis article:hover{border-color:#567084}
.section-head h2,h2{color:#f0f6f7}
.profit-kpis{gap:16px}.profit-kpis article{min-height:157px;padding:23px}.profit-kpis article.featured,.kpi.primary{background:linear-gradient(130deg,#23566b,#193847);border-color:#5791a0}.profit-kpis article>span,.profit-kpis article>small{color:#b2c7d0}.profit-kpis article>strong{color:#f1fbfa;font-variant-numeric:tabular-nums}.metric-glyph{color:#8ad6d1}
.kpis{gap:16px}.kpi{min-height:158px;padding:23px;background:linear-gradient(145deg,#1b2a39,#17222f);border:1px solid #3b5264;border-radius:19px;box-shadow:0 14px 30px #07111b45}.kpi:nth-child(1){background:linear-gradient(125deg,#254d64,#1c3649);border-color:#51839b}.kpi:nth-child(2){background:linear-gradient(125deg,#235148,#183a3a);border-color:#4e8878}.kpi:nth-child(3){background:linear-gradient(125deg,#313e5a,#1d2b42);border-color:#5b718e}.kpi-title,.kpi-bottom{color:#bad0d9}.kpi-value{color:#f3fbfa;font-variant-numeric:tabular-nums}.kpi-title>span{color:#96c5d2}.change{background:#1c4b40;color:#a4ead2}.change.down{background:#4a3538;color:#ffbbad}
.chart-card,.two-col>.card{background:linear-gradient(145deg,#192b3a,#141f2d);border-color:#375165}.bar{background:linear-gradient(0deg,#32798c,#8bd7d4)}.bar.secondary{background:#efa982}.legend span:before{background:#8bd7d4}.legend span:nth-child(2):before{background:#efa982}.gridline{border-color:#344b5b}.gridline>span,.chart-labels{color:#9eb7c5}.chart-summary{border-color:#344b5b;color:#aabdc9}.chart-summary strong{color:#e5f3f4}.channel-row{border-color:#344b5b}.mini-track{background:#304756}.mini-track span{background:#8ed5d1}.service-stat:first-child strong{color:#91ded0}.service-bottom{background:#193a35;border-color:#447865;color:#b5e9d5}
.overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-kpis article:first-child{grid-column:span 2}.overview-kpis article:first-child>strong{font-size:clamp(30px,3vw,45px)}
.overview-products-link{display:block;text-align:left;border-radius:19px}.overview-products-link article{height:100%}
.overview-grid{gap:18px}.overview-panel{min-height:260px}.overview-next{background:radial-gradient(circle at 90% 0,#237b775c,transparent 45%),linear-gradient(135deg,#1d3342,#15232e)}
.overview-channel,.overview-attention button,.overview-source-list button{border-color:#314657}.overview-channel small,.overview-note,.overview-attention small,.overview-message{color:#9fb4c1}
.attention-count{background:#263b4b;color:#b5d9e4}.attention-count.warning{background:#4a3530;color:#ffbc9f}.coverage-track{background:#2f4653}.coverage-track span{background:#8fd9cd}
.profit-table th,th{background:#22303e;color:#b2cbd7}.profit-table td,td{border-color:#314250;color:#edf5f6}.profit-table .selected-product{background:#1c3c4c}.profit-table .selected-product td:first-child{box-shadow:inset 3px 0 #8ad7d3}tbody tr:hover{background:#223747}
.search,.segmented{background:#111e2b;border-color:#395065;color:#f1f7f8}.segmented button.active,.multiplier-options button.active{background:#a4dfd6;color:#112c36}.signal.good{background:#173d36;color:#a8efd3}.signal.danger{background:#4c302e;color:#ffb9a9}
.price-panel{background:linear-gradient(145deg,#223d50,#172635);border-color:#46768d}.recommended-price{background:linear-gradient(135deg,#b8e5e1,#93c8d8);border-color:#b3e8e0}.recommended-price>strong,.recommended-price>span,.recommended-price>p{color:#153240}
.product-cost-track,.cost-stack{background:#202d3a}.product-cost-note,.product-cost-key small,.price-disclaimer{color:#a9bbc6}
.marketplace-prices .primary-price-note{background:#183b34;color:#b6e8d2;border-color:#477d6c}.marketplace-price-row:focus-within{border-color:#91d9ce}
.auto-repricing{margin:22px 24px 0;padding:22px;border:1px solid #426174;border-radius:18px;background:#142432;display:grid;gap:18px}.auto-repricing h3{font-size:20px;margin:8px 0}.auto-repricing p{color:#a9bec9;font-size:12px;line-height:1.6;max-width:770px}.auto-repricing-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.auto-repricing-fields label{display:grid;gap:7px;color:#b9cbd4;font-size:11px}.auto-repricing-fields input,.auto-repricing-fields select{width:100%;min-width:0;background:#0d1b27;color:#ecf7f7;border:1px solid #3e5969;border-radius:10px;padding:10px}.auto-repricing-switch{display:flex;align-items:center;gap:10px;color:#deeff0;font-size:12px}.auto-repricing-switch input{accent-color:#8ad7d0}.auto-repricing-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.auto-repricing-actions span{font-size:11px;color:#a9bec9}
.section-link,.row-open{color:#a8dce2}.positive{color:#8cdbb7}.negative{color:#ffa69b}
.shell footer{color:#91a8b5}
@media(max-width:1150px){.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){main{padding:18px 12px 32px}.page-heading{padding:22px 18px;border-radius:18px}.overview-kpis{gap:10px}.overview-kpis article:first-child{grid-column:span 2}.overview-kpis article{min-height:135px;padding:16px}.overview-kpis article>strong{font-size:23px}}
@media(max-width:900px){.auto-repricing-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.auto-repricing{margin:16px;padding:16px}.auto-repricing-fields{grid-template-columns:1fr}}
.auto-repricing-preview{display:block;padding:12px 14px;border:1px solid #4b443d;border-radius:10px;background:#191816;color:#d8cabd;font-size:12px;line-height:1.6}
@media(prefers-reduced-motion:reduce){nav button{transition:none}}
/* site-shell intentionally normalizes cards; the workspace has its own dark surfaces. */
html:not([data-theme=light]) body:has(.shell) .card,html:not([data-theme=light]) body:has(.shell) .profit-kpis article{background:linear-gradient(145deg,#1b2937,#14212e);border-color:#3a5264;box-shadow:inset 0 1px #ffffff0a,0 12px 28px #050e1840}
html:not([data-theme=light]) body:has(.shell) .kpi.primary{background:linear-gradient(125deg,#254d64,#1c3649);border-color:#51839b}
html:not([data-theme=light]) body:has(.shell) .kpi:nth-child(2){background:linear-gradient(125deg,#235148,#183a3a);border-color:#4e8878}
html:not([data-theme=light]) body:has(.shell) .kpi:nth-child(3){background:linear-gradient(125deg,#313e5a,#1d2b42);border-color:#5b718e}
html:not([data-theme=light]) body:has(.shell) .chart-card,html:not([data-theme=light]) body:has(.shell) .two-col>.card{background:linear-gradient(145deg,#192b3a,#141f2d);border-color:#375165}
html:not([data-theme=light]) body:has(.shell) .profit-kpis article.featured{background:linear-gradient(130deg,#23566b,#193847);border-color:#5791a0}
html:not([data-theme=light]) body:has(.shell) .overview-next,html:not([data-theme=light]) body:has(.shell) .price-panel{background:linear-gradient(145deg,#223d50,#172635);border-color:#46768d}
html:not([data-theme=light]) body:has(.shell) .recommended-price{background:linear-gradient(135deg,#b8e5e1,#93c8d8);border-color:#b3e8e0}
html:not([data-theme=light]) body:has(.shell) .kpi-title,html:not([data-theme=light]) body:has(.shell) .profit-kpis article>span{color:#bad0d9}
