/* Usability refinements; existing palette, rhythm and system fonts remain intact. */
[hidden]{display:none!important}
.segmented{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:4px;min-width:280px}
.segmented .segment-thumb{position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/4);border-radius:9px;background:var(--surface,#fff);box-shadow:0 1px 5px #00000012;transform:translateX(calc(var(--active-index,1)*100%));transition:transform 220ms cubic-bezier(.2,.7,.2,1);pointer-events:none}
.segmented button,.segmented button.active{position:relative;z-index:1;background:transparent!important;box-shadow:none!important;min-height:36px}
.segmented button.active{color:var(--text);font-weight:650}
.content{position:relative}.content.is-updating:before{content:"";position:absolute;left:24px;right:24px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--blue),transparent);opacity:.65;animation:refresh-glide 1s ease-in-out infinite;pointer-events:none}
@keyframes refresh-glide{50%{opacity:.2}}
.source-restriction{padding:12px 14px;margin-top:14px;border-radius:12px;background:#fff7ea;color:#80511f;font-size:12px;line-height:1.6}.source-restriction p{margin:5px 0}.source-restriction small{font-size:11px}
.connection-saved{display:flex;gap:12px;align-items:center;padding:16px;background:#f5f7f9;border:1px solid var(--line);border-radius:14px;margin:16px 0}.connection-saved svg{color:#21734e;flex:0 0 auto}.connection-saved b{display:block;font-size:14px}.connection-saved small{display:block;margin-top:5px;color:var(--muted);line-height:1.5}.connection-actions{display:flex;flex-wrap:wrap;gap:8px}.keys-form:not([hidden]){margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.status-dot.warning{background:#b27621}
.origin-button{display:inline-flex;align-items:center;gap:6px;min-height:40px;white-space:nowrap;border:0;background:transparent}.origin-definitions p{font-size:14px;line-height:1.65;margin:0 0 14px}#originDialog{width:min(820px,calc(100% - 24px))}
.catalog-panel .table-wrap{overflow-x:visible}.catalog-table{table-layout:fixed;width:100%}.catalog-table th{white-space:normal;word-break:normal;line-height:1.45;font-size:10px;padding:0 6px 14px;vertical-align:bottom}.catalog-table th span{font-size:10px;letter-spacing:0;font-weight:500;text-transform:none}.catalog-table th.col-product{width:20%}.catalog-table th.col-price{width:14%}.catalog-table td{padding:16px 6px;vertical-align:middle;font-size:12px;white-space:normal!important}.catalog-table .product-cell{gap:10px;min-width:0}.catalog-table .product-cell>span{min-width:0}.catalog-table .product-cell b{font-size:13px;line-height:1.45}.catalog-table .product-cell small{font-size:12px}.catalog-table .product-thumb{width:38px;height:48px;flex:0 0 38px}.catalog-table .cost-button{padding:8px;gap:4px;font-size:12px;white-space:nowrap;min-height:38px}.catalog-table .cost-button svg{width:12px;height:12px}.catalog-table .money{white-space:nowrap!important}.catalog-table td small.subtle{display:block;font-size:10px;white-space:normal}
.price-stack{display:grid;gap:7px;min-width:0;font-variant-numeric:tabular-nums}.price-market{display:flex;gap:6px;align-items:center;font-weight:600;font-size:11px}.price-market .market-logo{width:22px;height:22px;font-size:7px;border-radius:7px}.price-pair{display:flex;flex-wrap:wrap;gap:3px 8px;justify-content:space-between;align-items:baseline;font-size:11px}.price-pair>span{color:var(--muted)}.price-pair>b{white-space:nowrap;font-size:12px}.price-pair.customer{border-top:1px solid var(--line);padding-top:7px}.quote-date{font-size:10px;line-height:1.4;color:var(--muted)}.transit-pair{display:grid;gap:6px;font-size:11px}.transit-pair>span{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px}.promo-line{display:block;font-size:11px;line-height:1.5}
.stock-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.stock-summary-strip>div{display:grid;gap:6px}.stock-summary-strip span{font-size:12px;color:var(--muted)}.stock-summary-strip b{font-size:22px;font-variant-numeric:tabular-nums}.stock-product{border-top:1px solid var(--line)}.stock-product>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:16px;align-items:center;padding:16px 0;cursor:pointer;list-style:none}.stock-product>summary::-webkit-details-marker{display:none}.stock-summary-product{display:flex;gap:12px;align-items:center;min-width:0}.stock-summary-product .product-thumb{width:36px;height:44px;flex:0 0 36px}.stock-summary-product b{display:block;font-size:14px;line-height:1.45}.stock-summary-product small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.stock-summary-number{text-align:right;font-variant-numeric:tabular-nums}.stock-summary-number b{display:block;font-size:15px}.stock-summary-number small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.stock-product[open]>summary>svg{transform:rotate(90deg)}
.stock-product-body{padding:0 0 16px 48px}.stock-market,.demand-market{margin-bottom:8px;border:1px solid var(--line);border-radius:12px}.stock-market>summary,.demand-market>summary{display:flex;align-items:center;gap:10px;padding:12px;list-style:none;cursor:pointer;min-height:52px}.stock-market>summary::-webkit-details-marker,.demand-market>summary::-webkit-details-marker{display:none}.stock-market>summary>b,.demand-market>summary>b{font-size:13px}.stock-market>summary>span:last-child,.demand-market>summary>span:last-child{margin-left:auto;font-size:12px;color:var(--muted);text-align:right}.stock-market-body,.demand-body{padding:0 14px 16px}.stock-market .market-logo,.demand-market .market-logo{width:26px;height:26px;font-size:8px}.stock-market th,.demand-market th{white-space:normal;line-height:1.5;font-size:10px}.stock-groups .panel-head{margin-bottom:8px}.demand-panel>.demand-market{margin-top:12px}.stock-market summary:hover,.stock-product>summary:hover,.demand-market summary:hover{background:#0071e305}
.cohort-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 18px;align-items:center}.cohort-legend>span{display:flex;gap:6px;align-items:center;font-size:12px;font-weight:600}.cohort-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--ozon)}.cohort-legend i.wb{background:var(--wb)}.cohort-legend small{font-size:11px;color:var(--muted)}.bar-ordered.wb{fill:#efd9f0}.bar-redeemed.wb{fill:var(--wb)}.bar-ordered.ozon{fill:#dbe7f9}.bar-redeemed.ozon{fill:var(--ozon)}.cohort-readout{display:grid!important;grid-template-columns:90px minmax(0,1fr);gap:10px 16px;align-items:center}.cohort-market-readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cohort-readout>small{grid-column:1/-1}.cohort-market-line{display:flex;align-items:center;gap:8px}.cohort-market-line>span{min-width:0}.cohort-market-line .market-logo{width:24px;height:24px;font-size:8px}.cohort-market-line b{font-size:12px}.cohort-market-line small{display:block;font-size:12px;margin-top:4px;line-height:1.4}.cohort-product{display:flex;align-items:center;gap:8px;font-size:12px}.cohort-product .product-thumb{width:32px;height:40px}.cohort-panel,.pulse-panel{min-width:0}.content>.pulse-panel.section-gap{margin-top:24px!important}.content>.event-panel{margin-top:24px!important}.content>.stock-groups,.content>.demand-panel{min-width:0}
.product-hero{display:flex;gap:16px;align-items:center;min-width:0}.product-hero>.product-thumb{width:64px;height:80px;flex:0 0 64px;border-radius:12px}.product-hero>div{min-width:0}.product-hero h1{font-size:25px;line-height:1.25;margin:5px 0}.product-hero p{font-size:13px;color:var(--muted);margin:6px 0}.product-hero small{color:var(--muted);font-size:12px}.product-page-head{align-items:flex-start}.product-overview-strip{display:grid;grid-template-columns:1fr 1fr 1.2fr 1.2fr;gap:24px;align-items:center}.product-overview-strip>div:not(.price-stack){display:grid;gap:8px}.product-overview-strip small,.product-overview-strip .product-cost-inline>span{font-size:12px;color:var(--muted)}.product-overview-strip .cost-button{justify-self:start}.product-overview-strip .price-stack .price-market{display:none}.product-overview-strip .price-stack:has(.market-logo.wb):before{content:'Wildberries';font-size:13px;font-weight:650}.product-overview-strip .price-stack:has(.market-logo.ozon):before{content:'Ozon';font-size:13px;font-weight:650}
.pulse-panel .metric-choice{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0 0 18px}.metric-choice>label{border:1px solid var(--line);border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:7px;min-height:36px;font-size:12px;cursor:pointer}.metric-choice>label:has(input:checked){background:#eef5ff;border-color:#0879df65}.comparison-chart{min-width:0}.comparison-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.comparison-toolbar label{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}.market-strokes{font-size:13px}.comparison-readout{padding:14px;border:1px solid var(--line);border-radius:12px;margin:14px 0}.comparison-readout>b{display:block;font-size:12px;margin-bottom:10px}.comparison-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 20px}.comparison-values>span{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;font-size:11px}.comparison-values strong{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.series-key{width:17px;height:0;border-top:2px solid var(--series-color);display:inline-block}.series-key.ozon{border-top-style:dashed}.comparison-chart>svg{width:100%;display:block;height:auto;touch-action:pan-y}.comparison-crosshair{stroke:#707888;stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.comparison-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:14px 0}.comparison-legend>span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.pulse-line{transition:opacity 180ms ease}.pulse-line path{vector-effect:non-scaling-stroke}.event pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.event-date small{display:block;margin-top:5px}.event-panel>details>summary{min-height:36px;cursor:pointer}.attention-item em{font-style:normal;font-size:10px;color:var(--muted)}
@media(min-width:1600px){.catalog-table .product-cell b{font-size:14px}.catalog-table td{font-size:13px}.price-pair{font-size:12px}.price-pair>b{font-size:13px}.catalog-table th{font-size:11px}}
@media(max-width:1200px) and (min-width:851px){.catalog-panel{padding:16px}.catalog-table th{font-size:9px;padding:0 4px 12px}.catalog-table td{padding:14px 4px;font-size:11px}.catalog-table th.col-product{width:21%}.catalog-table th.col-price{width:15%}.catalog-table .product-cell .product-thumb{width:28px;height:36px;flex-basis:28px}.catalog-table .product-cell b{font-size:12px}.catalog-table .cost-button{font-size:11px;padding:6px}.catalog-table .cost-button svg{display:none}.price-pair{font-size:10px}.price-pair>b{font-size:11px}.comparison-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.product-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.product-page-head{gap:16px}.product-hero h1{font-size:22px}.stock-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-values{grid-template-columns:repeat(2,minmax(0,1fr))}.segmented{min-width:0;width:100%}}
@media(max-width:600px){.catalog-panel .table-wrap{overflow:visible}.catalog-table,.catalog-table tbody{display:block}.catalog-table thead{display:none}.catalog-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px 0}.catalog-table td{display:block;padding:0!important;font-size:14px}.catalog-table td:first-child{grid-column:1/-1}.catalog-table .product-cell b{font-size:15px}.catalog-table .product-cell .product-thumb{width:40px;height:52px;flex-basis:40px}.catalog-table .cost-button{font-size:14px;padding:10px;min-height:44px}.catalog-table td.money{white-space:normal!important}.price-pair{font-size:12px}.price-pair>b{font-size:14px}.price-market{display:none}.quote-date{font-size:11px}.transit-pair{font-size:13px}.stock-product-body{padding-left:0}.stock-product>summary{gap:10px;grid-template-columns:minmax(0,1fr) auto 14px}.stock-summary-product{gap:8px}.stock-summary-product b{font-size:13px}.stock-summary-number b{font-size:14px}.stock-summary-number small{font-size:11px}.stock-market>summary,.demand-market>summary{flex-wrap:wrap}.stock-market>summary>span:last-child,.demand-market>summary>span:last-child{flex-basis:100%;text-align:left;padding-left:36px}.stock-market td:before,.demand-market td:before{font-size:11px}.cohort-readout{grid-template-columns:1fr!important}.cohort-market-readouts{grid-template-columns:1fr}.cohort-panel .panel-head{flex-wrap:wrap}.cohort-legend small{flex-basis:100%;line-height:1.5}.cohort-market-line small{font-size:12px}.product-hero>.product-thumb{width:44px;height:56px;flex-basis:44px}.product-hero h1{font-size:20px}.comparison-values{grid-template-columns:1fr}.comparison-values>span{font-size:12px}.comparison-values strong{font-size:13px}.comparison-toolbar label{flex-wrap:wrap}.comparison-toolbar select{max-width:100%;font-size:13px;min-height:40px}.comparison-readout{padding:12px}.comparison-legend>span{font-size:11px}.metric-choice>label{min-height:40px;font-size:12px;padding:8px}.connection-actions .button{flex:1}.source-row{flex-wrap:wrap}.origin-button{font-size:12px}.content>.pulse-panel.section-gap{margin-top:20px!important}}
@media(prefers-reduced-motion:reduce){.segment-thumb,.pulse-line{transition:none!important}.content.is-updating:before{animation:none!important}}
