.basket-insights {
 display:grid; gap:18px; color:var(--text); padding-bottom:12px; min-width:0;
 font-variant-numeric:tabular-nums;
}
.basket-insights h2 {margin:0; font-size:1.05rem; letter-spacing:-.025em; line-height:1.3}
.basket-section-head p,.basket-analysis section>p,.basket-empty {
 margin:4px 0 0; font-size:.8rem; line-height:1.5; color:var(--muted);
}
.basket-kpis {
 display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
}
.basket-kpis>div {display:grid; align-content:start; gap:6px; padding:clamp(12px,1.5vw,20px); border:1px solid var(--line); border-radius:14px; background:var(--panel)}
.basket-kpis>div:first-child {background:var(--accent);border-color:var(--accent);color:white}
.basket-kpis>div:first-child small {color:inherit}
.basket-kpis span {font-size:.79rem; font-weight:600}
.basket-kpis strong {font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.15; letter-spacing:-.04em}
.basket-kpis small,.basket-depth-row small,.basket-leaders td small {font-size:.73rem; color:var(--muted)}
.basket-group-section {display:grid; min-width:0; gap:12px}
.basket-section-head {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px}
.basket-size-control {display:inline-flex; gap:2px; padding:3px; background:var(--soft); border:1px solid var(--line); border-radius:10px}
.basket-size-control button {
 min-height:32px; padding:4px 10px; line-height:1.2; font:inherit; font-size:.77rem; font-weight:600;
 border:1px solid transparent; border-radius:7px; color:var(--muted); background:transparent; cursor:pointer;
}
.basket-size-control button[aria-pressed=true] {color:var(--text); background:var(--panel); border-color:var(--line-strong); box-shadow:var(--shadow)}
.basket-size-control button:focus-visible,.basket-more:focus-visible {outline:2px solid var(--accent); outline-offset:2px}
.basket-pairs {display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr)); gap:12px}
.basket-pair,.basket-analysis section,.basket-pairs>.basket-empty {
 box-sizing:border-box; min-width:0; margin:0; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--panel);
}
.basket-pairs>.basket-empty {grid-column:1/-1}
.basket-pair {container-type:inline-size}
@container (max-width:355px) {
 .basket-products:is([data-product-count="3"],[data-product-count="4"]) {grid-template-columns:repeat(2,minmax(0,1fr))}
}
.basket-pair-summary {display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 8px; margin-bottom:10px}
.basket-pair-summary strong {font-size:.9rem}
.basket-pair-summary span {font-size:.74rem; color:var(--muted)}
.basket-products {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; align-items:stretch}
.basket-products[data-product-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr))}
.basket-products[data-product-count="4"] {grid-template-columns:repeat(4,minmax(0,1fr))}
#live-main .basket-products .product-select-card {
 display:flex; flex-direction:column; align-items:stretch; gap:0; overflow:hidden; min-width:0; min-height:0;
 border:1px solid var(--line); background:var(--panel); text-align:start;
}
.basket-products .product-card-cover {
 display:grid; place-items:center; overflow:hidden; width:100%; aspect-ratio:1; max-height:126px; background:var(--soft);
}
.basket-products .product-card-cover img {display:block; width:100%; height:100%; object-fit:cover; border-radius:0}
.basket-products .product-card-placeholder {font-size:1.6rem; color:var(--muted)}
.basket-products .product-card-name {
 display:block; flex:none; min-width:0; min-height:0;
 margin:6px 3px 8px; font-size:.76rem; line-height:1.45;
 white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.basket-pair>p {margin:10px 0 0; color:var(--muted); font-size:.77rem; line-height:1.45; overflow-wrap:anywhere}
.basket-pair>p strong {color:var(--text)}
.basket-pair>p b {font-weight:500}
.basket-more {justify-self:center; cursor:pointer}
.basket-more[hidden] {display:none}
.basket-analysis {display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:12px; align-items:start}
.basket-analysis section {padding:16px}
.basket-depth-rows,.basket-leaders {margin-top:12px}
.basket-depth-row {display:grid; grid-template-columns:5.7em minmax(10px,1fr) auto 4em; align-items:center; gap:8px; margin:10px 0; font-size:.78rem}
.basket-depth-row strong,.basket-depth-row small {text-align:end}
.basket-depth-row progress {width:100%; height:6px; border:0; border-radius:6px; overflow:hidden; background:var(--soft); color:var(--accent); appearance:none}
.basket-depth-row progress::-webkit-progress-bar {background:var(--soft)}
.basket-depth-row progress::-webkit-progress-value {border-radius:6px; background:var(--accent)}
.basket-depth-row progress::-moz-progress-bar {border-radius:6px; background:var(--accent)}
.basket-leaders table {width:100%; min-width:0; border-collapse:collapse; font-size:.78rem}
.basket-leaders :is(th,td) {padding:6px; border-bottom:1px solid var(--line); text-align:end; vertical-align:middle}
.basket-leaders th:first-child {padding-inline-start:0; text-align:start; overflow-wrap:anywhere}
.basket-leaders thead th {color:var(--muted); font-size:.74rem; font-weight:500}
.basket-leaders tbody th {font-weight:550}
.basket-leaders tbody tr:last-child>* {border-bottom:0}
.basket-leaders td {white-space:nowrap}
.basket-leaders td small {display:block}
@media (max-width:850px) {
 .basket-analysis {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:520px) {
 .basket-kpis {gap:5px}
 .basket-kpis>div {padding:10px 8px}
 .basket-kpis small {font-size:.68rem}
 .basket-kpis span {font-size:.74rem}
 .basket-products[data-product-count="4"] {grid-template-columns:repeat(2,minmax(0,1fr))}
 .basket-products[data-product-count="4"] .product-card-cover {max-height:100px}
}
.basket-demand {display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:12px; align-items:start}
.basket-demand>section {min-width:0; padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:14px}
.basket-demand p {margin:4px 0 0; font-size:.78rem; line-height:1.45; color:var(--muted)}
.weekday-chart {display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; margin:14px 0 10px}
.weekday-column {display:grid; justify-items:center; gap:4px; text-align:center; min-width:0}
.weekday-column strong,.basket-channel strong {font-size:.8rem}
.weekday-column small,.basket-channel small {color:var(--muted); font-size:.73rem}
.weekday-track {display:flex; align-items:end; justify-content:center; height:46px; width:min(65%,32px); border-bottom:1px solid var(--line)}
.weekday-track i {display:block; width:100%; border-radius:4px 4px 0 0; background:var(--accent); opacity:.5}
.weekday-column[data-peak=true] i {opacity:1}
.basket-demand .demand-summary strong {color:var(--text)}
.basket-channel-list {display:grid; gap:4px; margin-top:12px}
.basket-channel {display:grid; grid-template-columns:minmax(0,1fr) auto 4em; align-items:center; gap:8px; padding:3px 0; font-size:.82rem}
.basket-channel>span:first-child {display:flex; align-items:center; gap:8px}
.basket-channel .marketplace-mark {width:23px; height:23px; min-width:23px; flex:0 0 23px}
.basket-channel small {text-align:end}
@media (max-width:760px) {.basket-demand {grid-template-columns:minmax(0,1fr)}}

.basket-store-scope {display:flex;align-items:baseline;gap:10px 14px;min-width:0}
.analytics-toolbar + .basket-store-scope {padding:9px 14px; margin-block:8px; background:var(--panel); border:1px solid var(--line); border-radius:12px}
.basket-store-scope>span {font-size:.78rem;font-weight:650;color:var(--muted)}
.basket-store-scope [data-insight-store-filter] {display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
#live-main .basket-store-scope button {
 display:inline-flex;align-items:center;gap:6px;min-height:34px;max-width:100%;padding:5px 10px;
 border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:.8rem;font-weight:550;
}
.basket-store-scope button>span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#live-main .basket-store-scope button[aria-pressed=true] {border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.basket-store-scope button:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
.basket-store-scope .marketplace-mark {width:20px;height:20px;flex:0 0 20px;min-width:20px}
@media (max-width:520px) {.basket-store-scope {flex-direction:column;align-items:stretch;gap:4px}}

#live-main .basket-leaders table {width:100%; min-width:0; table-layout:fixed; white-space:normal; font-variant-numeric:tabular-nums}
#live-main .basket-leaders :is(th,td) {display:table-cell; text-align:end; vertical-align:middle; white-space:normal}
#live-main .basket-leaders tr > :first-child {width:52%; text-align:start}
#live-main .basket-leaders tbody th {background:transparent; text-transform:none; letter-spacing:normal}
#live-main .basket-leader-product {display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:8px}
.basket-leader-product > span:last-child {display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere}
.basket-leader-cover {flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; overflow:hidden; background:var(--soft); color:var(--muted); border-radius:8px}
.basket-leader-cover img {display:block; width:100%; height:100%; object-fit:cover}

.basket-insights > :is(.basket-demand,.basket-group-section,.basket-analysis) {
 border-block-start:1px solid var(--line);
 padding-block-start:16px;
}

#reports-stores:not(:empty),[data-cost-browse]>.basket-store-scope {margin-bottom:18px}
#live-main .returns-toolbar:has([data-manual-return]){display:flex;align-items:center;gap:12px;margin-bottom:18px}
#live-main .returns-toolbar>.basket-store-scope{flex:1 1 0;align-items:center;min-width:0}
#live-main .returns-toolbar>[data-manual-return]{flex:none;margin-inline-start:auto}
@media(max-width:760px){
 #live-main .returns-toolbar>.basket-store-scope{display:flex;flex-direction:row;gap:6px}
 #live-main .returns-toolbar [data-insight-store-filter]{flex:1;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 #live-main .returns-toolbar [data-insight-store-filter]>button{flex:none}
}


/* One continuous row; navigation reveals more groups without growing the page. */
.basket-carousel{position:relative;min-width:0;padding-inline:24px}
.basket-pairs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;scrollbar-width:none;padding-block:2px 6px}
.basket-pairs::-webkit-scrollbar{display:none}
.basket-pairs>.basket-pair{flex:0 0 calc((100% - 36px)/4);scroll-snap-align:start}
.basket-pairs>.basket-empty{flex:1 0 100%}
#live-main .basket-arrow{position:absolute;top:50%;z-index:2;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--accent);box-shadow:var(--shadow);cursor:pointer}
#live-main .basket-prev{left:0}
#live-main .basket-more{right:0}
#live-main .basket-arrow:disabled{opacity:.35;cursor:default;box-shadow:none}
.basket-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.basket-arrow:focus-visible,.basket-pairs:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1600px){.basket-pairs>.basket-pair{flex-basis:calc((100% - 24px)/3)}}
@media(max-width:1150px){.basket-pairs>.basket-pair{flex-basis:calc((100% - 12px)/2)}}
@media(max-width:650px){.basket-pairs>.basket-pair{flex-basis:100%}.basket-carousel{padding-inline:16px}}
.basket-carousel .basket-products[data-product-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.basket-carousel .basket-products[data-product-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.basket-section-head{flex-wrap:wrap}
.basket-section-head>div:first-child{margin-right:auto}
.basket-navigation{display:flex;gap:6px;flex:none}
#live-main .basket-navigation .basket-arrow{position:static;transform:none;width:42px;height:42px;min-height:42px;padding:11px;border-radius:15px;box-shadow:none;background:var(--panel);color:var(--muted)}
#live-main .basket-navigation .basket-arrow:hover:not(:disabled){background:var(--soft);color:var(--accent);border-color:var(--accent)}
#live-main .basket-navigation .basket-arrow:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.basket-carousel{padding-inline:0}
