/* Charts keep their readable height; the page scrolls while both filter groups stay in view. */
.market-workspace{--plot-text:#dce6f2;--plot-axis:#496078;--plot-grid:#284057;--plot-tooltip:#0b1c2e;--plot-border:#536d88;--plot-0:#72b7ff;--plot-1:#93d7aa;--plot-2:#ffbc70;--plot-3:#bea6fa;--plot-4:#73d7d0;--plot-5:#ee9cb9;--plot-6:#d4cf84;--plot-7:#b7c8df}
[data-site-theme=light] .market-workspace{--plot-text:#314b64;--plot-axis:#91a3b5;--plot-grid:#e0e6ed;--plot-tooltip:#fff;--plot-border:#91a3b5;--plot-0:#226ac2;--plot-1:#297849;--plot-2:#a6550b;--plot-3:#7953b4;--plot-4:#137a78;--plot-5:#b34271;--plot-6:#79721f;--plot-7:#526b89}
.market-dashboard [hidden]{display:none!important}
.market-tooltip-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.market-palette-0{background:var(--plot-0)}.market-palette-1{background:var(--plot-1)}.market-palette-2{background:var(--plot-2)}.market-palette-3{background:var(--plot-3)}.market-palette-4{background:var(--plot-4)}.market-palette-5{background:var(--plot-5)}.market-palette-6{background:var(--plot-6)}.market-palette-7{background:var(--plot-7)}

.market-workspace main{max-width:none}
.market-dashboard{display:flex;flex-direction:column;gap:12px;min-height:calc(100dvh - 84px);font-size:13px}
.market-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.market-heading h1{font-size:25px;letter-spacing:-.4px;line-height:1.15}.market-back{font-size:11px;color:var(--muted)}.market-back:hover{color:var(--accent)}.market-heading-actions{display:flex;align-items:center;gap:14px}
.market-note{font-size:11px;line-height:1.4;color:var(--muted)}.market-status{font-size:12px;color:#b9cce0;min-height:0}.market-status:empty{display:none}.market-status[data-error=true]{color:#ffd1bb;padding:8px 12px;background:#472b2b;border-radius:6px}.market-dashboard[data-loading=true] .market-grid{opacity:.65;pointer-events:none}
.market-dashboard button,.market-dashboard select,.market-dashboard input,.market-dialog button{font:inherit}.market-dashboard button,.market-dialog button{cursor:pointer}.market-dashboard button:focus-visible,.market-dashboard input:focus-visible,.market-dashboard select:focus-visible,.market-dashboard summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.market-dashboard select,.market-dashboard input[type=number],.market-search{background:#0c1a2b;border:1px solid #3d5269;border-radius:6px;color:var(--text);padding:5px 7px;min-width:0;width:100%;height:31px;font-size:12px}.market-dashboard select{cursor:pointer}.market-dashboard input::placeholder{color:#98abc0}
.market-button{border:1px solid #3d5269;background:#182e44;color:var(--text);border-radius:7px;padding:6px 12px}.market-button:hover{border-color:var(--accent)}.market-segmented,.market-tabs{display:flex;align-items:center;gap:3px;padding:3px;border-radius:7px;background:#0c1a2b}.market-segmented button,.market-tabs button{background:none;color:#b9c8da;border:0;border-radius:5px;padding:5px 11px;white-space:nowrap}.market-segmented button[aria-pressed=true]{background:var(--accent);color:#141c28;font-weight:700}.market-tabs button[aria-pressed=true]{background:#28415c;color:white;font-weight:700}.market-tabs button:hover{color:white}
.market-filters{display:grid;grid-template-columns:290px minmax(0,1fr);gap:10px}.market-filters fieldset{margin:0;min-width:0;border:1px solid var(--border);border-radius:10px;padding:9px 11px;background:var(--surface)}.market-range{display:grid;grid-template-columns:1fr 1fr;gap:5px 9px}.market-range label,.market-matrix-controls label{display:flex;flex-direction:column;gap:2px;font-size:11px;color:#c2cfdf}.market-reset{background:none;border:0;color:#b3c6dd;text-decoration:underline;text-underline-offset:3px;padding:2px 0;font-size:11px!important;text-align:left;width:fit-content}.market-reset:hover{color:var(--accent)}.market-range .market-reset{grid-column:1/-1}.market-dimensions{display:flex;flex-direction:column;gap:6px}.market-main-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 10px}
.market-filter{position:relative;min-width:0}.market-filter-label{display:block;font-size:11px;color:#c2cfdf;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.market-filter>summary,.market-more>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:4px;cursor:pointer;background:#0c1a2b;border:1px solid #3d5269;border-radius:6px;padding:5px 8px;font-size:12px;min-height:31px;color:var(--text)}.market-filter>summary:after,.market-more>summary:after{content:'⌄';color:#98abc0}.market-filter>summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.market-filter[data-active=true]>summary{border-color:#a8662c}.market-filter-popover{position:absolute;top:100%;left:0;min-width:240px;width:100%;z-index:30;background:#162b42;border:1px solid #56708b;border-radius:8px;padding:9px;box-shadow:0 12px 35px #0007}.market-filter-values{max-height:210px;overflow:auto;display:flex;flex-direction:column;margin-top:5px}.market-filter-values label{display:flex;gap:7px;align-items:center;padding:5px 2px;cursor:pointer;overflow-wrap:anywhere;font-size:12px}.market-filter input[type=checkbox],.market-trend-legend input{accent-color:#ff8e35}.market-filter-values label:hover{background:#263e56}.market-filter-popover .market-reset{margin-top:4px}.market-more{position:relative;align-self:end}.market-extra-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:660px;right:0;left:auto;padding:14px}.market-extra-filters .market-filter-popover{z-index:40}.market-more[open]{z-index:31}
.market-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:310px 350px 440px;gap:12px}.market-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:8px;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.market-card h2{font-size:14px;letter-spacing:0;font-weight:600;line-height:1.3;color:var(--text)}.market-card-heading{display:flex;align-items:center;gap:8px;justify-content:space-between;min-height:28px;flex-shrink:0}.market-card-heading select{width:auto;max-width:180px}.market-data{background:none;border:0;color:var(--muted);padding:5px;font-size:11px!important;white-space:nowrap}.market-data:hover{color:var(--text);text-decoration:underline}.market-chart{width:100%;min-height:0;flex:1}
.market-kpis{grid-column:1/4;grid-row:1/3;padding:18px}.market-price{grid-column:4/10;grid-row:1}.market-skus{grid-column:10/13;grid-row:1;padding:12px}.market-parameters{grid-column:4/7;grid-row:2}.market-models{grid-column:7/10;grid-row:2}.market-entities{grid-column:10/13;grid-row:2}.market-trends{grid-column:1/7;grid-row:3}.market-matrix{grid-column:7/13;grid-row:3}
.market-kpis dl{margin:12px 0;display:flex;flex:1;flex-direction:column;justify-content:space-around;gap:7px}.market-kpis dt{font-size:10px;color:#b2c3d8;text-transform:uppercase;letter-spacing:.3px}.market-kpis dd{font-size:clamp(20px,1.65vw,32px);line-height:1.15;color:#85c5ff;margin:3px 0 0;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.market-kpis [data-metric=revenue]{font-size:clamp(18px,1.45vw,28px)}
.market-matrix-controls{display:flex;gap:9px;margin:3px 0 7px}.market-matrix-controls label{flex:1;min-width:0}.market-inline-label{display:flex;gap:5px;align-items:center;font-size:11px;color:var(--muted)}.market-matrix-scroll{overflow:auto;flex:1;min-height:0}.market-matrix table,.market-dialog table{border-collapse:separate;border-spacing:2px;width:100%;font-size:11px;font-variant-numeric:tabular-nums}.market-matrix th{font-weight:400;color:#cad8e7;position:sticky;top:0;background:var(--surface);padding:4px;max-width:100px;overflow:hidden;text-overflow:ellipsis}.market-matrix th[scope=row]{text-align:left;left:0;z-index:1;white-space:nowrap}.market-matrix td{text-align:center;padding:6px;min-width:55px;color:white;border-radius:3px;white-space:nowrap}.market-matrix .heat-1{background:#2b665d}.market-matrix .heat-2{background:#24594f}.market-matrix .heat-3{background:#1c4b43}.market-matrix .heat-4{background:#143d37}.market-matrix .heat-5{background:#0c302b}.market-matrix td:not([class]){color:#7890a8}.market-matrix>.market-note{margin-top:5px}
.market-trend-legend{display:flex;gap:4px 10px;flex-wrap:wrap;max-height:44px;overflow:auto;flex-shrink:0;font-size:10px}.market-trend-legend label{display:flex;align-items:center;gap:3px;cursor:pointer;max-width:180px}.market-trend-legend .legend-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.market-trends>.market-note{font-size:10px;margin-top:3px}.market-empty{display:flex;align-items:center;justify-content:center;color:var(--muted);height:100%;padding:16px;font-size:12px;text-align:center}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.market-dialog{width:min(1000px,94vw);max-height:85dvh;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:16px}.market-dialog::backdrop{background:#050e19bb}.market-dialog #market-data-content{overflow:auto;max-height:65dvh;margin-top:10px}.market-dialog td,.market-dialog th{padding:8px;border-bottom:1px solid var(--border);text-align:left}.market-dialog th{position:sticky;top:0;background:var(--surface)}.market-dialog table{font-size:13px}.market-dialog h2{font-size:18px}.market-dialog-actions{display:flex;gap:8px;flex-shrink:0}.market-dialog-actions button{display:flex;gap:7px;align-items:center}.market-dialog #market-copy-status:not(:empty){margin-top:8px}
/* Sticky filters use an opaque surface so passing chart labels never bleed through. */
.market-filters{position:sticky;top:0;z-index:50;background:var(--bg);padding:8px 0;margin:-8px 0;box-shadow:0 5px 8px -7px #0008}
.market-segmented button[aria-pressed=true]{background:#28415c;color:white;font-weight:700}.market-tabs button,.market-segmented button{padding:4px 9px}
.market-kpis dt{font-size:12px}.market-kpis dd{font-size:32px}.market-kpis [data-metric=revenue]{font-size:30px}
.market-matrix-scroll{min-height:240px}.market-matrix table{font-size:12px}.market-matrix td{height:36px;min-width:54px;padding:5px}.market-matrix th{padding:7px 5px}.market-matrix th[scope=row]{max-width:140px;min-width:85px;white-space:normal;overflow-wrap:anywhere}
.market-trend-legend{max-height:66px;gap:6px 10px;font-size:11px}
#market-skus{margin-top:8px;overflow:auto}#market-skus table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px}#market-skus th{font-size:11px;color:var(--muted);font-weight:400;text-align:left}#market-skus td{padding:12px 0;border-bottom:1px solid var(--border)}#market-skus td:first-child{overflow-wrap:anywhere}#market-skus th:last-child,#market-skus td:last-child{text-align:right;white-space:nowrap;padding-left:8px}
/* Light colors cover controls, surrounding cabinet chrome, tables and canvas labels together. */
[data-site-theme=light] .market-status,[data-site-theme=light] .market-filter-label,[data-site-theme=light] .market-range label,[data-site-theme=light] .market-matrix-controls label,[data-site-theme=light] .market-kpis dt,[data-site-theme=light] .market-matrix th{color:var(--muted)}

[data-site-theme=light] .market-dashboard select,[data-site-theme=light] .market-dashboard input[type=number],[data-site-theme=light] .market-search,[data-site-theme=light] .market-filter>summary,[data-site-theme=light] .market-more>summary{background:#f8fafc;border-color:#bdcad8;color:var(--text)}
[data-site-theme=light] .market-filter-popover{background:white;border-color:#bdcad8;box-shadow:0 8px 24px #233b5526}[data-site-theme=light] .market-filter-values label:hover{background:#eaf0f6}
[data-site-theme=light] .market-button,[data-site-theme=light] .market-tabs,[data-site-theme=light] .market-segmented{background:#e8edf3;color:var(--text);border-color:#bdcad8}[data-site-theme=light] .market-tabs button,[data-site-theme=light] .market-segmented button,[data-site-theme=light] .market-reset{color:#405c77}
[data-site-theme=light] .market-tabs button[aria-pressed=true],[data-site-theme=light] .market-segmented button[aria-pressed=true]{background:#c7d9ee;color:#183a60}[data-site-theme=light] .market-kpis dd{color:#2262a9}
[data-site-theme=light] .market-matrix .heat-1{background:#e1f1e9;color:#214d37}[data-site-theme=light] .market-matrix .heat-2{background:#b5dcc8;color:#214d37}[data-site-theme=light] .market-matrix .heat-3{background:#80bea1;color:#173e2a}[data-site-theme=light] .market-matrix .heat-4{background:#407f61;color:white}[data-site-theme=light] .market-matrix .heat-5{background:#20563c;color:white}
[data-site-theme=light] .market-status[data-error=true]{color:#8b3415;background:#fff0e7}
/* Laptop width trades another row for readable bars and a full-width matrix row label. */
@media(max-width:1500px){.market-main-filters{grid-template-columns:repeat(5,minmax(0,1fr))}.market-heading-actions>.market-note{display:none}.market-grid{grid-template-rows:290px 300px 330px 440px}.market-kpis{grid-column:1/5;grid-row:1/3}.market-price{grid-column:5/13;grid-row:1}.market-skus{grid-column:5/9;grid-row:2}.market-entities{grid-column:9/13;grid-row:2}.market-parameters{grid-column:1/7;grid-row:3}.market-models{grid-column:7/13;grid-row:3}.market-trends{grid-column:1/7;grid-row:4}.market-matrix{grid-column:7/13;grid-row:4}}
@media(max-width:1000px){.market-filters{grid-template-columns:240px minmax(0,1fr)}.market-main-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.market-grid{grid-template-columns:1fr 1fr;grid-template-rows:none}.market-card{grid-column:auto;grid-row:auto;min-height:330px}.market-price,.market-trends,.market-matrix{grid-column:1/-1}.market-kpis dl{display:grid;grid-template-columns:1fr 1fr;gap:18px}.market-extra-filters{width:min(660px,85vw);grid-template-columns:1fr 1fr}.market-heading h1{font-size:21px}.market-heading-actions{gap:7px}.market-trends,.market-matrix{min-height:440px}.market-kpis dd,.market-kpis [data-metric=revenue]{font-size:24px}}
@media(max-width:650px){.market-heading{align-items:flex-start;flex-direction:column}.market-heading-actions{flex-wrap:wrap}.market-filters{position:static;grid-template-columns:1fr}.market-grid{display:flex;flex-direction:column}.market-card{min-height:330px}.market-chart{min-height:270px}.market-matrix-scroll{max-height:350px}.market-trends{order:9}.market-matrix{order:10}.market-extra-filters{width:85vw;grid-template-columns:1fr 1fr}.market-dialog .market-card-heading{align-items:flex-start;flex-direction:column}.market-kpis dl{grid-template-columns:1fr 1fr}}

[data-site-theme=light] .market-dashboard input::placeholder{color:#64798f}

/* Units remain reachable together with the pinned product filters. */
.market-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}.market-filter-actions .market-segmented{flex-shrink:0}.market-tabs button:disabled{opacity:.45;cursor:default}
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.category-grid .panel{display:flex;flex-direction:column;gap:12px}.category-grid .button{margin-top:auto;align-self:flex-start}

/* The public report uses the full dashboard canvas, not the centered login-page grid. */
.market-workspace .public-frame main{display:block;max-width:none}.market-dashboard{min-width:0;width:100%}

/* Gender shares the same stacked layout and first grid position as the other filters. */
.market-gender-control{display:block;min-width:0}.market-gender-control select{width:100%}
