#marketProductsPanel,.mp-dialog{--mp-muted:#52627a}
:root[data-desktop-theme-effective=dark] #marketProductsPanel,:root[data-desktop-theme-effective=dark] .mp-dialog{--mp-muted:#a8b6cc}
/* Market product opportunity: follows the shared workbench theme and motion. */
#marketProductsPanel{color:var(--wb-text);min-width:0}#marketProductsPanel [hidden]{display:none!important}
.mp-form,.mp-empty,.mp-summary article,.mp-price-card,.mp-report-card,.mp-context-card{background:var(--wb-surface);border:1px solid var(--wb-line);border-radius:16px}
.mp-form{display:flex;align-items:flex-end;gap:20px;padding:22px;flex-wrap:wrap}.mp-category{flex:1;min-width:250px;max-width:640px}.mp-form label,.mp-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.mp-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.mp-period{font-size:13px;line-height:1.8;margin:0}.mp-period span,.mp-status,.mp-meta,.mp-heading p,.mp-section-heading p,.mp-price-card p,.mp-report-card p,.mp-context-card p,.mp-notes,.mp-dialog>p{color:var(--mp-muted)}
#marketProductsPanel button,#marketProductsPanel select,#marketProductsPanel input{min-height:44px}#marketProductsPanel select,#marketProductsPanel input{background:var(--wb-surface);color:var(--wb-text);border:1px solid var(--wb-line);border-radius:9px;padding:9px 12px;min-width:0}#marketProductsPanel button:focus-visible,#marketProductsPanel a:focus-visible,#marketProductsPanel input:focus-visible,#marketProductsPanel select:focus-visible{outline:2px solid var(--wb-blue);outline-offset:3px}
.mp-status{display:flex;justify-content:space-between;gap:16px;margin:16px 2px;font-size:13px}.mp-status>span:last-child{font-variant-numeric:tabular-nums}#mpProgress{width:100%;height:6px;accent-color:var(--wb-blue);display:block;margin:0 0 16px}.mp-notice{background:var(--wb-active);border:1px solid var(--wb-line);color:var(--wb-text);padding:13px 16px;border-radius:10px;font-size:13px;line-height:1.7}.mp-notice[data-error=true]{border-color:var(--mp-muted)}
.mp-empty{padding:56px 28px;text-align:center}.mp-empty h2{font-size:24px;margin:16px 0}.mp-empty p{color:var(--mp-muted);line-height:1.8}.mp-empty-points{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:28px}.mp-empty-points span,.mp-chip,.mp-badge{background:var(--wb-active);border:1px solid var(--wb-line);border-radius:7px;padding:6px 10px;font-size:12px;color:var(--wb-text)}.mp-eyebrow{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--wb-blue)}
.mp-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:28px 0 20px}.mp-heading h2{font-size:24px;line-height:1.4;margin:8px 0}.mp-heading p{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:0}.mp-heading .mp-chip{white-space:nowrap}.mp-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.mp-summary article{padding:18px 20px}.mp-summary span{font-size:12px;color:var(--mp-muted)}.mp-summary strong{display:block;font-size:29px;font-variant-numeric:tabular-nums;margin:10px 0 5px}.mp-summary small{font-size:12px;color:var(--mp-muted)}
.mp-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.mp-tabs button{border:1px solid var(--wb-line);background:var(--wb-surface);color:var(--wb-text);padding:9px 18px;border-radius:9px}.mp-tabs button[aria-selected=true]{background:var(--wb-active);border-color:var(--wb-blue);color:var(--wb-blue);font-weight:700}.mp-subtabs{margin-top:14px}.mp-subtabs button{font-size:13px}.mp-filters{display:grid;grid-template-columns:2fr 1.4fr 1fr;gap:12px;margin:20px 0}.mp-filters input,.mp-filters select{width:100%}.mp-listbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}.mp-listbar>div{display:flex;gap:8px;flex-wrap:wrap}.mp-listbar strong{font-size:14px}.mp-table-wrap{width:100%;max-height:720px;overflow:auto;border:1px solid var(--wb-line);border-radius:12px;background:var(--wb-surface)}
#mpTable{width:100%;min-width:960px;border-collapse:collapse;font-size:13px}#mpTable th,.mp-comparison th{background:var(--wb-canvas);position:sticky;top:0;z-index:1;color:var(--wb-text);font-size:12px;text-align:left;font-weight:600}#mpTable th,#mpTable td,.mp-comparison th,.mp-comparison td{padding:14px 12px;border-bottom:1px solid var(--wb-line);vertical-align:middle}#mpTable td:first-child,#mpTable th:first-child{text-align:center}#mpTable tbody tr:hover{background:var(--wb-hover)}#mpTable input[type=checkbox]{width:18px;height:18px;min-height:18px;cursor:pointer;accent-color:var(--wb-blue)}#mpTable td:first-child label{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}#mpTable tr[data-selected=true]{background:var(--wb-active)}
.mp-product{display:flex;align-items:center;gap:12px;color:var(--wb-text);text-decoration:none;width:360px;max-width:100%;text-align:left}.mp-product:hover .mp-product-title{text-decoration:underline}.mp-product img,.mp-image-empty{width:64px;height:64px;flex:none;object-fit:contain;background:var(--wb-canvas);border:1px solid var(--wb-line);border-radius:8px}.mp-image-empty{display:grid;place-items:center;font-size:11px;color:var(--mp-muted)}.mp-product>span:last-child{min-width:0}.mp-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6;font-weight:500}.mp-product small,.mp-variant{display:block;font-size:11px;color:var(--mp-muted);margin-top:5px}.mp-badges{min-width:150px}.mp-badge{display:inline-block;padding:4px 7px;margin:3px 3px 3px 0}.mp-rank{font-weight:700;font-variant-numeric:tabular-nums}.mp-pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:15px;font-size:13px}.mp-no-match{text-align:center;padding:30px;color:var(--mp-muted)}
.mp-section-heading h3{font-size:19px;margin:26px 0 8px}.mp-section-heading p{font-size:13px;line-height:1.7;margin:0 0 20px}.mp-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mp-price-card{padding:24px}.mp-price-card h3{font-size:17px;margin:0}.mp-price-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:20px 0}.mp-price-main strong{font-size:32px}.mp-price-main span{font-size:12px;color:var(--mp-muted)}.mp-price-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mp-price-stats span{font-size:12px;color:var(--mp-muted)}.mp-price-stats b{display:block;font-size:18px;color:var(--wb-text);margin-top:6px}.mp-price-card p{font-size:12px;line-height:1.7}.mp-band{display:grid;grid-template-columns:80px 1fr 45px;gap:8px;align-items:center;font-size:12px;margin-top:12px}.mp-band>i{background:var(--wb-active);height:6px;border-radius:5px;overflow:hidden}.mp-band>i>b{display:block;height:100%;background:var(--wb-blue);border-radius:5px}.mp-band>strong{text-align:right;font-weight:500}
.mp-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mp-report-card{padding:24px}.mp-report-card h3{font-size:17px;margin:10px 0 12px}.mp-report-card p{font-size:13px;line-height:1.9;margin:0 0 14px}.mp-action{border-left:3px solid var(--wb-blue);padding:10px 14px;background:var(--wb-active);border-radius:0 8px 8px 0;font-size:13px;line-height:1.9}.mp-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.mp-context-card{padding:24px;min-width:0}.mp-context-card h3{font-size:16px;margin:0 0 15px}.mp-context-card p{font-size:12px;line-height:1.8}.mp-context-list{list-style:none;padding:0;margin:0}.mp-context-list li{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--wb-line);padding:11px 0;font-size:13px;overflow-wrap:anywhere}.mp-context-list li strong{white-space:nowrap}.mp-context-list li span{min-width:0}.mp-notes{margin:24px 0;font-size:12px;line-height:1.9}.mp-notes summary{cursor:pointer;padding:12px 0;min-height:44px}.mp-notes li{margin:5px 0}
.mp-dialog{background:var(--wb-surface);color:var(--wb-text);border:1px solid var(--wb-line);border-radius:18px;padding:26px;width:min(1200px,94vw);max-width:94vw;max-height:90vh;box-shadow:0 20px 80px #0004}.mp-dialog::backdrop{background:#0007}.mp-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.mp-dialog h2{font-size:22px;margin:10px 0}.mp-dialog>p{font-size:13px;line-height:1.8}.mp-comparison{border-collapse:collapse;font-size:13px;min-width:100%;}.mp-comparison th{min-width:110px}.mp-comparison td{min-width:240px;max-width:300px}.mp-comparison .mp-product{width:250px;flex-direction:column;align-items:flex-start}.mp-comparison .mp-product img{width:100px;height:100px}.mp-comparison .mp-product-title{display:block;overflow:visible}.mp-comparison th{position:sticky;left:0}
@media(max-width:900px){.mp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-price-grid,.mp-report-grid,.mp-context-grid{grid-template-columns:1fr}.mp-form{gap:14px}.mp-period{display:none}.mp-category{max-width:none}.mp-actions{margin-left:0}.mp-listbar{flex-wrap:wrap}}
@media(max-width:480px){.mp-form{padding:16px}.mp-category{min-width:0;width:100%;flex:auto}.mp-actions{width:100%}.mp-actions button{flex:1}.mp-summary{gap:8px}.mp-summary article{padding:14px}.mp-summary strong{font-size:25px}.mp-heading{align-items:flex-start;flex-direction:column}.mp-empty{padding:32px 18px}.mp-empty h2{font-size:21px}.mp-filters{gap:10px}.mp-filters label:first-child{grid-column:1/-1}.mp-tabs button{flex:1;padding:9px}.mp-dialog{padding:16px}.mp-price-card,.mp-report-card,.mp-context-card{padding:18px}}
@media(prefers-reduced-motion:reduce){#marketProductsPanel *,#mpCompareDialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#marketProductsPanel .mp-period{color:var(--mp-muted)}
