:root{color-scheme:dark;--bg:#0e1420;--panel:#171f2e;--line:#28364b;--text:#e9eff9;--muted:#91a1bb;--blue:#5586ff;--green:#32d9a1;--red:#f47787}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 system-ui,Segoe UI,sans-serif}body.light{color-scheme:light;--bg:#edf2f8;--panel:#fff;--line:#d7e1ef;--text:#14243b;--muted:#64748b;--blue:#245ad7;--green:#09885d;--red:#b83043}button,input,select,textarea{font:inherit;color:inherit}button{border:1px solid var(--line);background:var(--panel);padding:9px 14px;border-radius:8px;cursor:pointer}button:hover{border-color:var(--blue)}button:disabled{opacity:.55;cursor:wait}.primary{background:#315ddc;color:#fff;border-color:#416fe8}.muted{color:var(--muted)}small{font-size:12px}.good{color:var(--green)}.bad{color:var(--red)}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.7px}h2{font-size:17px}h3{font-size:15px}p{margin-top:5px}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100vh}aside{position:sticky;top:0;height:100vh;background:var(--panel);border-right:1px solid var(--line);padding:20px 12px;display:flex;flex-direction:column;gap:6px}.logo{font-size:23px;font-weight:800;letter-spacing:-1px;margin:0 10px 24px}.logo b{color:var(--blue)}nav{display:grid;gap:5px}nav button{text-align:left;border:0;background:transparent;color:var(--muted)}nav button.active{background:#315ddc;color:white}aside .bottom{margin-top:auto;display:grid;gap:8px;padding:8px}main{padding:22px;min-width:0}.topbar,.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.topbar{justify-content:space-between;margin-bottom:24px}.grow{flex:1}.head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:18px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:13px;margin:13px 0}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.span12{grid-column:span 12}.span8{grid-column:span 8}.span7{grid-column:span 7}.span6{grid-column:span 6}.span5{grid-column:span 5}.span4{grid-column:span 4}.span3{grid-column:span 3}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:15px 0}.kpi .value{font-size:29px;font-weight:750;margin:7px 0;letter-spacing:-.7px}.tag{display:inline-block;padding:3px 8px;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--muted)}.tag.demo{color:#e5a84c}.tag.own{color:var(--green)}.tablewrap{overflow:auto;margin-top:12px}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{text-align:left;border-bottom:1px solid var(--line);padding:11px 9px}th{font-size:12px;color:var(--muted);font-weight:600}td:first-child{white-space:normal}tbody tr[data-sku]{cursor:pointer}tbody tr[data-sku]:hover{background:#5686ff15}input,select,textarea{width:100%;background:var(--bg);border:1px solid var(--line);padding:10px 11px;border-radius:8px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue)}label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:13px;margin:14px 0}.fields .wide{grid-column:1/-1}.fieldline{max-width:320px}form{margin:0}.tabs{display:flex;gap:6px;overflow:auto;margin:15px 0;padding-bottom:5px}.tabs button{white-space:nowrap}.tabs button.active{border-color:var(--blue);color:var(--blue)}.empty{text-align:center;padding:35px 15px;color:var(--muted)}.notice{padding:12px 14px;border-left:3px solid var(--blue);background:#5586ff12;border-radius:6px;margin:12px 0;color:var(--muted)}.auth{max-width:420px;margin:9vh auto;padding:24px}.auth h1{margin-bottom:10px}.auth form{display:grid;gap:14px;margin:22px 0}.chart{width:100%;height:auto;display:block;margin-top:10px}.chart text{fill:var(--muted);font-size:11px}.chart .gridline{stroke:var(--line)}.chart .series{stroke:var(--blue);fill:none;stroke-width:3}.chart .dot{fill:var(--blue)}.barline{display:grid;grid-template-columns:100px 1fr 70px;gap:8px;align-items:center;margin:15px 0}.bartrack{height:13px;background:var(--bg);border-radius:5px;overflow:hidden}.bartrack svg{width:100%;height:100%;display:block}.listline{padding:12px 0;border-bottom:1px solid var(--line)}.listline:last-child{border-bottom:0}.thumb{width:44px;height:44px;object-fit:contain;background:white;border-radius:7px;vertical-align:middle}.productname{display:flex;align-items:center;gap:10px;min-width:220px}.mini{font-size:12px}.link{color:var(--blue);text-decoration:none}.link:hover{text-decoration:underline}#toast{position:fixed;bottom:20px;right:20px;max-width:min(440px,90vw);background:var(--panel);padding:14px 20px;border:1px solid var(--blue);box-shadow:0 10px 30px #0005;border-radius:10px;z-index:10}.busy{cursor:progress}dialog{border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);width:min(650px,95vw);padding:22px}dialog::backdrop{background:#0009}a{color:var(--blue)}@media(max-width:1100px){.shell{grid-template-columns:175px minmax(0,1fr)}main{padding:14px}.span3,.span4{grid-column:span 6}.span7,.span8{grid-column:span 12}.span5{grid-column:span 6}}@media(max-width:720px){.shell{display:block}aside{position:static;height:auto;padding:12px}.logo{margin:0 0 8px}nav{display:flex;overflow:auto}nav button{white-space:nowrap}aside .bottom{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.span3,.span4,.span5,.span6,.span7,.span8{grid-column:span 12}main{padding:12px}.topbar{margin-bottom:12px}.auth{margin:3vh auto}h1{font-size:23px}.card{padding:12px}} 
.topbar select{width:auto;max-width:230px}.topbar .row{max-width:100%}.topbar{align-items:flex-start}button:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* V1.1 navigation and compact product layout */
nav a,.tabs a,.button{display:block;text-decoration:none;color:inherit;border:1px solid var(--line);border-radius:8px;padding:9px 13px;background:var(--panel);cursor:pointer}nav a{border:0;background:transparent;color:var(--muted)}nav a.active{background:#315ddc;color:#fff}nav a:hover,.tabs a:hover,.button:hover{border-color:var(--blue);color:var(--blue)}nav a.active:hover{color:#fff}.tabs a{white-space:nowrap}.tabs a.active,.button.current{border-color:var(--blue);color:var(--blue)}.productname{min-width:0;gap:12px}.producttext{min-width:0;max-width:520px}.producttext small{display:block;margin-top:4px}.product-link{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--text);text-decoration:none;line-height:1.45;font-weight:650}.product-link:hover{text-decoration:underline;color:var(--blue)}.photo-button,.photo-placeholder{width:64px;height:64px;flex:0 0 64px;border-radius:8px;overflow:hidden;padding:0;display:grid;place-content:center;background:var(--bg);border:1px solid var(--line);color:var(--muted)}.photo-placeholder{text-align:center;font-size:22px}.photo-placeholder small{font-size:9px;line-height:1.2}.photo-button .thumb{width:62px;height:62px;object-fit:contain;background:#fff}.photo-button.large,.photo-placeholder.large{width:112px;height:112px;flex-basis:112px}.photo-button.large .thumb{width:110px;height:110px}.producthero{display:flex;align-items:center;gap:18px;margin:12px 0}.producthero .row{margin-top:12px}.producthero>div{min-width:0}.fullphoto{display:block;width:100%;max-height:70vh;object-fit:contain;background:#fff;border-radius:8px;margin-top:14px}.skulinks{display:grid;gap:5px;font-size:12px}.skulinks a{text-decoration:none}.skulinks a:hover{text-decoration:underline}.actionable .row{justify-content:center;margin-top:14px}.actionable p{max-width:650px;margin:auto;line-height:1.6}.filters{margin-bottom:8px}.tablewrap{max-height:65vh;overflow:auto;scrollbar-width:thin}table thead th{position:sticky;top:0;background:var(--panel);z-index:1}table th:first-child{min-width:260px}table td:first-child{width:38%;min-width:260px}table td{font-variant-numeric:tabular-nums}.chart{max-height:280px}.topbar{margin-bottom:17px}.kpi{padding:15px;min-height:100px}.kpi .value{font-size:clamp(20px,2vw,29px)}.topbar .row{gap:7px}.notice a{color:var(--blue)}.notice button{margin-left:5px}main{overflow-anchor:none}.row>.fieldline{flex:1 1 180px;max-width:320px}.head h1{overflow-wrap:anywhere}.head>div:first-child{min-width:0;max-width:100%}.notice{line-height:1.6}@media(max-width:1100px){.producttext{max-width:320px}.photo-button,.photo-placeholder{width:52px;height:52px;flex-basis:52px}.photo-button .thumb{width:50px;height:50px}table td:first-child,table th:first-child{min-width:220px}.kpis{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}@media(max-width:720px){nav a{white-space:nowrap}.producthero{align-items:flex-start}.photo-button.large,.photo-placeholder.large{width:76px;height:76px;flex-basis:76px}.photo-button.large .thumb{width:74px;height:74px}.tablewrap{max-height:none}.topbar select{max-width:100%}}
/* V1.5: compact controls, readable tables and responsive product cards */
.controlstrip{margin:0 0 14px;padding:10px 14px}.controlstrip .row{flex-wrap:wrap;gap:10px}.controlstrip label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:13px}.controlstrip #refresh-progress{display:block;margin-top:7px}.tablewrap td small{display:block;margin-top:4px;font-size:11px}.tablewrap td{vertical-align:middle}.tablewrap th{white-space:normal;min-width:75px}.tablewrap td:first-child{min-width:215px}.producthero{overflow-wrap:anywhere}.producthero .row{flex-wrap:wrap}.head .row{flex-wrap:wrap}.filters{flex-wrap:wrap;margin-bottom:10px}.filters input{min-width:180px;flex:1}.card{min-width:0}.tablewrap{max-width:100%;overflow:auto}.controlstrip button:disabled{opacity:.55;cursor:wait}
@media(max-width:1200px){.topbar{flex-wrap:wrap}.head{flex-wrap:wrap}.kpis{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.producthero{align-items:flex-start}.controlstrip .row{align-items:center}}
.guard-check,.guardoption input{width:18px;height:18px;flex:0 0 18px}.guardselect{flex-wrap:nowrap}.guardactions{min-width:180px;max-width:290px;gap:5px}.guardactions button{padding:6px 9px}.guardoption{display:flex;align-items:center;gap:8px;margin:12px 0}.guardpreview{max-height:220px;overflow:auto;margin:12px 0}.guardpreview small{display:block;color:var(--muted)}.guardproblem{white-space:normal;max-width:240px}aside nav{overflow-y:auto;min-height:0}aside .bottom{flex-shrink:0}
/* V1.6.2: bounded columns, sticky actions, clickable status summaries. */
.guard-card{min-width:0;overflow:hidden}.guard-toolbar{gap:8px;margin-bottom:10px}.guard-kpi{text-align:left;cursor:pointer;min-width:0}.guard-kpi.chosen{outline:2px solid var(--blue);outline-offset:-2px}.guard-kpi.active .value,.guard-status.active{color:var(--green)}.guard-kpi.soon .value,.guard-status.soon{color:#d6a13b}.guard-kpi.off .value,.guard-status.off{color:var(--red)}.guard-status.unknown,.guard-kpi.unknown .value{color:var(--muted)}.guard-tablewrap{max-width:100%;overflow:auto;max-height:65vh;isolation:isolate}.guard-table{table-layout:fixed;min-width:1249px;width:100%;border-collapse:separate;border-spacing:0;white-space:normal}.guard-table th,.guard-table td{width:auto;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;padding:10px 8px;vertical-align:top}.guard-table td:first-child,.guard-table th:first-child{min-width:0;width:auto}.guard-table .productname,.guard-table .producttext{min-width:0;max-width:100%}.guard-table .productname{flex:1;gap:8px}.guard-table .product-link{-webkit-line-clamp:3}.guard-table .guardselect{align-items:center;gap:8px}.guard-table .guard-check{padding:0;flex:0 0 16px;width:16px;height:16px}.guard-table .photo-button,.guard-table .photo-placeholder{width:48px;height:48px;flex-basis:48px}.guard-table .photo-button .thumb{width:46px;height:46px}.guard-table td:last-child,.guard-table th:last-child{position:sticky;right:0;background:var(--panel);box-shadow:-7px 0 12px -9px #0009;z-index:2;border-left:1px solid var(--line)}.guard-table th:last-child{z-index:3}.guard-table th{z-index:1}.guard-table .guardactions{display:grid;min-width:0;max-width:100%;gap:5px}.guard-table .guardactions button{width:100%;white-space:normal;font-size:12px;padding:6px}.guard-promos{max-width:100%;white-space:normal}.guard-promos summary{cursor:pointer;color:var(--blue);list-style:none;padding:5px 2px}.guard-promos summary::-webkit-details-marker{display:none}.guard-promos ul{padding-left:14px;margin:5px 0;max-height:180px;overflow:auto;font-size:12px;overflow-wrap:anywhere}.guard-promos li{margin:5px 0}.guard-meter{height:5px;margin:7px 0;background:var(--bg);border-radius:5px;overflow:hidden}.guard-meter span{display:block;height:100%;background:var(--green)}.guard-meter.soon span{background:#d6a13b}.guard-detail-promos{margin:10px 0}.guard-detail-promos .guard-promos{max-width:600px}.guard-detail-promos .guard-promos ul{max-height:240px}@media(max-width:720px){.guard-tablewrap{max-height:60vh}.guard-table{min-width:1249px}.guard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.guard-col-0{width:290px}.guard-col-1{width:110px}.guard-col-2{width:135px}.guard-col-3{width:110px}.guard-col-4{width:175px}.guard-col-5{width:165px}.guard-col-6{width:112px}.guard-col-7{width:152px}.guard-meter svg{display:block;width:100%;height:100%}.guard-meter rect{fill:var(--green)}.guard-meter.soon rect{fill:#d6a13b}
/* V1.6.3: sortable headers, keyboard accessible, sticky headers in both themes. */
.tablewrap th .table-sort{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;padding:4px 0;border:0;background:transparent;border-radius:3px;color:inherit;font:inherit;text-align:left;line-height:1.3;white-space:normal;cursor:pointer;min-width:0}.tablewrap th .table-sort:hover,.tablewrap th .table-sort.sorted{color:var(--blue)}.tablewrap th .sort-arrow{flex-shrink:0;opacity:.42;font-size:13px;line-height:1}.tablewrap th .table-sort.sorted .sort-arrow{opacity:1;font-weight:800}.tablewrap th .table-sort:focus-visible{outline-offset:2px}.tablewrap th[aria-sort=ascending],.tablewrap th[aria-sort=descending]{box-shadow:inset 0 -2px var(--blue)}
/* V1.7 · SPP workspace */
.spp-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.spp-segment{text-align:left;display:grid;gap:4px;padding:12px 16px}.spp-segment b{font-size:23px;font-variant-numeric:tabular-nums}.spp-segment small{color:var(--muted)}.spp-segment.active{border-color:var(--blue);box-shadow:inset 0 -3px var(--blue);background:#5586ff12}.spp-tabs{flex-wrap:wrap}.spp-tablink{display:inline-flex;align-items:center;padding:9px 12px;text-decoration:none;border:1px solid var(--line);border-radius:8px}.spp-filtercard{margin-bottom:12px}.spp-filter-row{gap:8px}.spp-filter-row .fieldline{width:auto;min-width:145px;max-width:220px}.spp-value{display:inline-block;border-radius:6px;padding:3px 7px;white-space:nowrap;font-variant-numeric:tabular-nums}.spp-high{color:var(--green);background:#159d6518}.spp-mid{color:#c28b27;background:#ca8a0415}.spp-low{color:var(--red);background:#d54a5215}.spp-unknown{opacity:.75}.spp-col-list{max-height:55vh;overflow:auto;margin:14px 0}.spp-col-row{display:grid;grid-template-columns:1fr 38px 38px;align-items:center;gap:6px;border-bottom:1px solid var(--line);padding:5px 0}.spp-col-row label{display:flex;align-items:center;gap:8px;color:var(--text)}.spp-col-row input{width:auto}.spp-col-row button{padding:5px}.spp-section-title{margin-top:18px}#spp-body .tablewrap{max-width:100%}#spp-body table td:first-child .productname{min-width:240px;max-width:360px}#spp-body table td{font-variant-numeric:tabular-nums}#spp-body .grid .tablewrap{max-height:380px}@media(max-width:950px){.spp-segments{grid-template-columns:repeat(2,minmax(0,1fr))}#spp-body .span6{grid-column:span 12}}
/* Keep the monitor dense on laptop screens. */
.spp-status-compact .notice{margin:8px 0;padding:9px 12px}.spp-status-compact .notice p{font-size:11px;margin-top:5px}.spp-status-compact .notice .row{gap:8px}.spp-status-compact label{display:flex;align-items:center;gap:6px}.spp-status-compact select{width:86px;padding:7px}.spp-status-compact button{padding:8px 11px}.spp-segments{margin:9px 0}.spp-segment{padding:8px 12px;gap:1px}.spp-segment b{font-size:20px}#spp-kpis .kpis{margin:9px 0}#spp-kpis .kpi{padding:9px 12px}#spp-kpis .value{font-size:24px;margin:3px 0}.spp-tabs{margin:9px 0;gap:5px;padding-bottom:2px}.spp-tabs button,.spp-tabs a{padding:7px 10px;font-size:13px}.spp-filtercard{padding:10px;margin-bottom:9px}.spp-filtercard .filters{margin:0 0 6px;gap:6px}.spp-filtercard .filters:last-child{margin-bottom:0}.spp-filtercard .filters input,.spp-filtercard .filters select,.spp-filtercard .filters button{padding:7px 9px;font-size:12px}.spp-filter-row .fieldline{min-width:110px;max-width:180px}.spp-table-card{padding:0;overflow:hidden}.spp-table-card .tablewrap{margin:0}.spp-table-card .tablewrap td{padding:9px 8px}.spp-table-card .tablewrap th{padding:7px 6px}.spp-table-card .productname{font-size:13px}.spp-table-card .tablewrap td:first-child,.spp-table-card .tablewrap th:first-child{position:sticky;left:0;background:var(--panel);z-index:1}.spp-table-card .tablewrap th:first-child{z-index:4}

/* V1.7.1 — shared accessible chart tooltips */
.chart-shell{position:relative;min-width:0}.chart-point{cursor:crosshair;outline:none}.chart-hit{fill:transparent;pointer-events:all}.chart-point .dot{pointer-events:none}.chart-point.is-active .dot,.chart-point:focus-visible .dot{r:5px;stroke:var(--text);stroke-width:1.5px}.chart-tooltip{position:absolute;z-index:5;pointer-events:none;max-width:100%;width:max-content;min-width:155px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);box-shadow:0 5px 20px #0004;font-size:12px;line-height:1.45}.chart-tooltip[hidden]{display:none}.chart-tip-date{font-size:11px;color:var(--muted)}.chart-tip-label{margin-top:5px}.chart-tooltip strong{font-size:20px;color:var(--blue);font-variant-numeric:tabular-nums}.chart-tip-delta{margin-top:4px}
/* V1.8 operational radar */
.radar-alerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.radar-alert{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:12px;white-space:normal;min-height:70px}.radar-alert span{min-width:0}.radar-alert small{display:block;line-height:1.4;margin-top:5px;font-weight:400;color:var(--muted)}.radar-alert strong{font-size:23px;font-variant-numeric:tabular-nums}.radar-tag{display:inline-block;margin:2px 2px;white-space:normal}.card>summary{cursor:pointer;font-weight:600}.card>summary+*{margin-top:12px}.listline small{display:block}.radar-alert.current{outline:1px solid #5586ff}select[hidden]{display:none!important}
/* V1.9: dense layout, readable signals and user-adjustable tables */
main{padding:15px 18px}.topbar{margin-bottom:12px}.head{margin-bottom:10px}.head h1{font-size:25px}.grid{gap:9px;margin:9px 0;align-items:start}.card{padding:12px;border-radius:9px}.kpis{gap:8px;margin:9px 0}.kpi{padding:11px 12px}.kpi .value{font-size:25px;margin:4px 0}.controlstrip{margin-bottom:9px;padding:8px 12px}.radar-alerts{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:6px}.radar-alert{padding:8px;min-height:67px;gap:7px}.radar-alert small{font-size:11px;margin-top:3px}.radar-alert strong{font-size:21px}.tablewrap td{padding:7px 8px}.tablewrap th{padding:6px 8px}.tablewrap td:last-child{white-space:normal;min-width:95px}.radar-tag{white-space:normal;max-width:180px;overflow-wrap:anywhere}.tablewrap td:has(.radar-tag){white-space:normal;min-width:145px;max-width:230px}.tablewrap td:has(details){white-space:normal;max-width:260px}.tablewrap td details small{white-space:normal;overflow-wrap:anywhere}.tablewrap .productname{gap:8px}.tablewrap .thumb,.tablewrap .photo-button,.tablewrap .photo-placeholder{width:45px;height:45px;flex-basis:45px}.v19-warn{color:#d6a13b}.v19-settings{margin:10px 0}.v19-settings form{margin:8px 0}.v19-settings label{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.v19-settings input[type=number]{width:88px;padding:6px}.v19-settings input[type=checkbox]{width:auto}.v19-schedule{border-bottom:1px solid var(--line);padding:6px 0}.v19-column-tools{display:flex;justify-content:flex-end;margin:3px 0}.v19-column-tools button{font-size:11px;padding:4px 7px}.v19-column-list{max-height:55vh;overflow:auto}.v19-column-list label{display:flex;gap:8px;padding:5px;align-items:center}.v19-column-list input{width:auto}td[hidden],th[hidden]{display:none!important}
.guard-table .photo-button .thumb{width:44px;height:44px}.guard-table td:last-child{min-width:0;max-width:none}

.chart-point.v20-linked .dot{r:6;stroke:var(--text,#fff);stroke-width:2}.chart-point.v20-linked .chart-hit{fill:rgba(85,134,255,.16)}

/* V2.1 diagnostic evidence cards */
.diagnostic-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;margin-top:12px}.diagnostic-item{border:1px solid var(--line,#344155);border-radius:9px;padding:14px;min-width:0;overflow-wrap:anywhere}.diagnostic-item h3,.diagnostic-fact h3{font-size:15px;margin:0 0 8px}.diagnostic-item p{margin:7px 0;line-height:1.5}.diagnostic-item .button{display:inline-flex;margin-top:5px}.diagnostic-fact{margin:8px 0 16px;overflow-wrap:anywhere}.diagnostic-fact>small{display:block;margin:6px 0}.diagnostic-fact .listline{white-space:normal}
.v22-priority{font-size:12px;font-weight:700;white-space:nowrap}.v22-priority.danger{color:var(--red)}.v22-priority.warn{color:#e8b65a}body.light .v22-priority.warn{color:#8a5700}.diagnostic-item .row h3{margin:0}.diagnostic-item .row{gap:8px}.diagnostic-item [data-v22-review]{font-size:12px;padding:7px 10px}.diagnostic-item .button{margin-top:0}

/* V2.3 — unified visual system; no data or API changes. */
:root{--bg:#0b1120;--panel:#121c2e;--line:#27364e;--text:#edf3ff;--muted:#a0afc5;--blue:#77a5ff;--green:#48d6ac;--red:#ff8296;--surface:#17243a;--sidebar:#10192a;--hover:#1c2b43;--warn:#f4c16c;--shadow:0 3px 12px #0002}
body.light{--bg:#f2f5fa;--panel:#fff;--line:#dce4ee;--text:#182840;--muted:#52657f;--blue:#245bc9;--green:#087d5d;--red:#b92d47;--surface:#f3f6fb;--sidebar:#fff;--hover:#eaf1fc;--warn:#895100;--shadow:0 3px 12px #16325808}
body{font:14px/1.5 system-ui,'Segoe UI',sans-serif}.shell{grid-template-columns:216px minmax(0,1fr)}aside{background:var(--sidebar);padding:20px 12px;gap:10px;overflow-y:auto;scrollbar-width:thin}.logo{display:flex;align-items:center;gap:9px;font-size:22px;margin:0 8px 22px;letter-spacing:-.8px}.logo b{display:inline-grid;place-items:center;border-radius:9px;width:32px;height:32px;background:#2e63d8;color:white;font-size:22px}nav{gap:4px}nav a{display:flex;align-items:center;gap:10px;min-height:40px;font-weight:550;padding:10px;border-radius:8px}nav a:hover{background:var(--hover)}nav a.active{background:#2d5ed3;box-shadow:0 3px 10px #1b4ac536;color:#fff}.nav-icon{width:19px;text-align:center;flex:none;font-size:16px}aside .bottom{border-top:1px solid var(--line);padding:12px 4px 0}
main{padding:18px 22px 36px}.topbar{margin-bottom:10px}.topbar .tag{background:var(--surface);border-radius:6px}.head{margin:16px 0 12px;align-items:center}.head>div:first-child{min-width:0;flex:1 1 340px}.head h1{font-size:25px;font-weight:720;letter-spacing:-.65px;overflow-wrap:anywhere}.head p{font-size:12px;margin-top:3px}.card{border-radius:12px;padding:14px;box-shadow:var(--shadow)}.card h2{font-size:16px;font-weight:700;margin-bottom:9px;letter-spacing:-.15px}.grid{gap:12px;margin:12px 0}.kpis{gap:10px;margin:12px 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}.kpi{position:relative;overflow:hidden;padding:13px 14px;min-height:96px;background:linear-gradient(150deg,var(--panel) 45%,var(--surface))}.kpi:before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 4px 4px 0;background:var(--blue);opacity:.8}.kpi .value{font-size:clamp(20px,1.65vw,29px);line-height:1.25;margin:6px 0 2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.kpi small{font-size:12px}.kpi small:empty{display:none}
button,input,select,textarea,.button,.tabs a{border-radius:8px}button,.button{font-weight:550;background:var(--surface)}button:hover,.button:hover{background:var(--hover)}.primary,.button.primary{background:#2f61d8;color:#fff;border-color:#4476ea}.primary:hover,.button.primary:hover{background:#3b70e5;color:white}input,select,textarea{background:var(--bg);padding:8px 10px}.controlstrip{padding:10px 13px;background:var(--panel)}.controlstrip .row{gap:8px}.controlstrip #refresh-progress{margin-top:5px;font-size:11px}.notice{border-radius:8px;background:color-mix(in srgb,var(--blue) 8%,var(--panel));padding:10px 12px}.tabs{gap:5px;border-bottom:1px solid var(--line);padding:0 0 6px;margin:10px 0}.tabs a,.tabs button{background:transparent;padding:8px 11px;font-weight:550}.tabs a.active,.tabs button.active{background:color-mix(in srgb,var(--blue) 13%,var(--panel));border-color:var(--blue);color:var(--blue)}
.radar-alerts{grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr));gap:8px}.radar-alert{min-height:77px;padding:10px;align-items:flex-start;background:var(--surface)}.radar-alert strong{font-size:23px;line-height:1.2;align-self:center}.radar-alert small{font-size:11px;line-height:1.35}.radar-alert.v23-urgent strong{color:var(--red)}.radar-alert.v23-attention strong{color:var(--warn)}.radar-alert.v23-opportunity strong{color:var(--blue)}.radar-alert.v23-quiet strong{color:var(--muted)}.radar-alert.current{background:color-mix(in srgb,var(--blue) 11%,var(--panel));outline:1px solid var(--blue)}
.tablewrap{margin-top:6px;border:1px solid var(--line);border-radius:8px;max-height:65vh;scrollbar-color:var(--line) transparent}.tablewrap table{font-variant-numeric:tabular-nums}.tablewrap th{background:var(--surface);position:sticky;top:0;z-index:2;padding:7px 9px;color:var(--muted)}.tablewrap td{padding:8px 9px;border-bottom:1px solid var(--line);font-size:13px}.tablewrap tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface) 36%,var(--panel))}.tablewrap tbody tr:hover{background:var(--hover)}.tablewrap tr:last-child td{border-bottom:0}.tablewrap .producttext{max-width:390px}.tablewrap .product-link{font-size:13px;font-weight:650}.tablewrap .producttext small{margin-top:2px}.tablewrap .productname{min-width:205px}.tablewrap .photo-button,.tablewrap .photo-placeholder,.tablewrap .thumb{width:42px;height:42px;flex-basis:42px}.v19-column-tools{margin:3px 0 5px}.v19-column-tools button{background:var(--surface);color:var(--muted);font-size:11px}.guard-table th:last-child{z-index:4}.spp-table-card .tablewrap{border:0;border-radius:0}.v23-delta{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.v23-neutral{color:var(--blue)}
.producthero{gap:14px;padding:12px;margin:8px 0}.producthero .photo-button.large,.producthero .photo-placeholder.large,.producthero .photo-button.large .thumb{width:86px;height:86px;flex-basis:86px}.producthero>div{flex:1}.producthero p:first-child{margin-top:0}.producthero .row{margin-top:7px;gap:5px}.producthero .button{font-size:12px;padding:6px 9px}.shell[data-view=detail] .head h1{font-size:22px}.product-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;justify-content:space-between;margin:8px 0}.product-tools .row{gap:6px}.product-tools button,.product-tools .button{font-size:12px;padding:7px 10px}.diagnostic-list{gap:10px;margin-top:10px}.diagnostic-item{background:var(--surface);padding:13px;border-radius:9px}.diagnostic-item p{font-size:13px;margin:6px 0}.diagnostic-fact .listline{padding:8px 0;font-size:13px}.quality-details summary{cursor:pointer;color:var(--blue);font-weight:650}.quality-details .listline{font-size:13px}.empty{padding:22px 12px}.v23-timeline{display:grid;gap:6px;margin-top:8px}.v23-track{border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:var(--surface);--series-color:var(--blue)}.v23-track.ads{--series-color:var(--warn)}.v23-track.spp{--series-color:var(--green)}.v23-track-head{display:flex;align-items:center;gap:7px;font-size:13px}.v23-track-head small{margin-left:auto}.v23-dot{width:9px;height:9px;background:var(--series-color);border-radius:50%}.v23-track .chart .series{stroke:var(--series-color)}.v23-track .chart .dot{fill:var(--series-color)}.chart{margin-top:7px;max-height:280px}.chart .gridline{stroke-dasharray:3 4}.chart .series{stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.chart text{font-size:11px}.chart-tooltip{border-color:var(--blue);background:var(--panel);box-shadow:0 6px 24px #0005}.v23-track .chart{max-height:none;margin:0;aspect-ratio:650/132}.v23-track .chart-shell{max-width:100%}.v23-track .chart-tooltip{z-index:6}.v23-track .empty{padding:15px}.spp-segment{background:var(--panel)}.spp-segment.active{background:color-mix(in srgb,var(--blue) 10%,var(--panel))}.spp-value{font-weight:650}dialog{box-shadow:0 16px 60px #0005;max-height:90vh;overflow:auto}
@media(max-width:1440px){.shell{grid-template-columns:190px minmax(0,1fr)}main{padding:14px 16px 28px}.kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}.kpi{min-height:86px;padding:11px 12px}.kpi .value{font-size:23px}.tablewrap .producttext{max-width:310px}.radar-alerts{grid-template-columns:repeat(auto-fit,minmax(min(100%,158px),1fr))}.card{padding:12px}.shell[data-view=detail] .head h1{font-size:21px}}
@media(max-width:1100px){.shell{grid-template-columns:166px minmax(0,1fr)}aside{padding:14px 8px}.logo{font-size:19px;margin:0 2px 16px}.logo b{width:27px;height:27px}nav a{font-size:13px;padding:8px 6px;gap:5px}.kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}.head h1{font-size:23px}.span4,.span5,.span6,.span7,.span8{grid-column:span 12}.product-tools{align-items:flex-start;justify-content:flex-start}}
@media(max-width:720px){.shell{display:block}aside{position:static;height:auto;padding:10px}.logo{margin:0 0 4px}nav{display:flex;overflow:auto}nav a{flex:none;padding:8px}.bottom{display:flex!important;flex-wrap:wrap;align-items:center;margin:0!important}.topbar select{max-width:100%}main{padding:10px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi .value{font-size:20px}.head>div:first-child{flex-basis:100%}.head h1,.shell[data-view=detail] .head h1{font-size:20px}.grid{gap:8px}.span3,.span4,.span5,.span6,.span7,.span8{grid-column:span 12}.card{padding:10px}.producthero .photo-button.large,.producthero .photo-placeholder.large,.producthero .photo-button.large .thumb{width:60px;height:60px;flex-basis:60px}.radar-alerts{grid-template-columns:repeat(2,minmax(0,1fr))}.radar-alert{padding:7px;gap:4px}.radar-alert strong{font-size:19px}.radar-alert small{font-size:10px}.v23-track{padding:6px}.spp-segments{grid-template-columns:repeat(2,minmax(0,1fr))}.tabs{overflow:auto}.product-tools .row{flex-wrap:wrap}}
/* Keep the nine operational signals in a predictable three-column matrix. */
.shell[data-view=overview] .radar-alerts{grid-template-columns:repeat(3,minmax(0,1fr))}.shell[data-view=overview] .radar-alert{min-height:76px;padding:8px;gap:6px}.radar-alert b{font-size:13px;line-height:1.3;display:block}.radar-alert small{line-height:1.25}.shell[data-view=overview] .grid>.span4 .chart{min-height:160px}.shell[data-view=overview] .grid>.span4{align-self:stretch}.shell[data-view=overview] .grid>.span4 .chart-shell{margin:12px 0}.shell[data-view=overview] .grid>.span4 .chart{height:auto;min-height:0;aspect-ratio:650/220}.shell[data-view=overview] .grid>.span4 .chart text{font-size:14px}
@media(min-width:1101px) and (max-width:1440px){nav a{font-size:12px;gap:6px;min-height:36px;padding:8px}.nav-icon{font-size:14px;width:17px}.shell[data-view=overview] .grid>.span8{grid-column:span 7}.shell[data-view=overview] .grid>.span4{grid-column:span 5}.shell[data-view=overview] .radar-alert small{font-size:10px}.shell[data-view=overview] .radar-alert strong{font-size:20px}}
@media(max-width:720px){.shell[data-view=overview] .radar-alerts{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* V2.4 — compact operational workspace */
.kpis{gap:8px;margin:10px 0}.kpi{min-height:82px;padding:10px 12px}.kpi .value{margin:4px 0;font-size:25px}.v24-kpi-trend{font-size:11px;line-height:1.35;margin-top:4px}.v24-kpi-trend small{display:block;font-size:10px;overflow-wrap:anywhere}.v24-kpi-trend .v23-delta{font-weight:750}.shell[data-view=overview] .radar-alert{min-height:64px;padding:7px 9px}.shell[data-view=overview] .radar-alerts{gap:6px}.shell[data-view=overview] .grid>.span4 .chart-shell{margin:5px 0}.shell[data-view=detail] .producthero{padding:9px 12px;margin:8px 0}.shell[data-view=detail] .producthero p{margin:2px 0}.shell[data-view=detail] .product-tools{padding:7px 10px;margin:6px 0}.shell[data-view=detail] .tabs{margin:8px 0}.v24-diagnosis-preview .v24-check{border-bottom:1px solid var(--line);padding:6px 0}.v24-check p{margin:2px 0}.v24-diagnosis-preview>.row{margin-top:7px}.v24-diagnosis-preview .button{padding:5px 9px;font-size:12px}.v24-stock-skus{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.v24-data{margin-top:7px;border-top:1px solid var(--line);padding-top:6px}.v24-data summary{cursor:pointer;color:var(--muted)}.v24-chart-toolbar{margin:6px 0;gap:5px}.v24-chart-toolbar button,.v24-query-filters button{padding:5px 8px;font-size:12px}.v24-chart-toolbar .current,.v24-query-filters .current{border-color:var(--blue);color:var(--blue);background:var(--surface)}.v24-series{display:flex;flex-direction:row;align-items:center;gap:4px;font-weight:650;font-size:12px;cursor:pointer}.v24-series input{width:14px;height:14px;accent-color:var(--series-color)}.v24-series small{font-weight:400;font-size:10px;color:var(--muted)}.v24-series.orders,.v24-chart-series.orders{--series-color:var(--blue)}.v24-series.ads,.v24-chart-series.ads{--series-color:var(--warn)}.v24-series.spp,.v24-chart-series.spp{--series-color:var(--green)}.v24-series{color:var(--series-color)}.v24-chart-series .series{stroke:var(--series-color)}.v24-chart-series .dot,.v24-chart-series .v24-axis{fill:var(--series-color)}.v24-combined .chart{display:block;width:100%;height:clamp(210px,25vw,310px);max-height:310px}.v24-combined .chart text{font-size:12px}.v24-combined .chart .v24-axis{font-size:11px}.v24-chart-body .v23-track .chart{height:145px;max-height:145px;width:100%;aspect-ratio:auto}.v24-query-top{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:8px 10px;margin:7px 0}.v24-query-top>small{margin-left:10px}.v24-query-list{margin-top:3px}.v24-query-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,auto) 75px;gap:8px;align-items:center;border-top:1px solid var(--line);padding:5px 0;font-size:12px}.v24-query-line a{overflow-wrap:anywhere;color:var(--blue)}.v24-query-line b{text-align:right}.v24-query-filters{margin:8px 0;gap:5px}.v24-spp-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:6px 0}.v24-spp-summary .kpi{min-height:58px;padding:7px 10px}.v24-spp-summary .value{font-size:18px;margin:2px 0}.v24-spp-summary .kpi:before{display:none}.spp-segment{min-height:64px}.v24-spp-summary .kpi small:empty{display:none}
@media(max-width:720px){.v24-query-line{grid-template-columns:minmax(0,1fr) auto}.v24-query-line span{grid-row:2;grid-column:1}.v24-query-line b{grid-column:2;grid-row:1/3}.v24-spp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.v24-combined .chart{height:auto;min-height:0;aspect-ratio:900/242}.v24-chart-body .v23-track .chart{height:auto;aspect-ratio:650/132}.v24-chart-toolbar>.row{flex-basis:100%}.kpi .value{font-size:21px}}
.v24-spp-summary:not(.filtered){display:flex;margin:3px 0}.v24-spp-summary:not(.filtered) .kpi{display:flex;align-items:center;gap:10px;min-height:0;padding:5px 10px}.v24-spp-summary:not(.filtered) .value{font-size:14px}.v24-spp-summary:not(.filtered) .kpi:before{display:none}.v24-spp-summary:not(.filtered) .kpi small{font-size:11px}
/* V2.5 – compact shell, centralized synchronization, accessible disclosure menus */
.shell{grid-template-columns:190px minmax(0,1fr)}.shell.nav-small{grid-template-columns:62px minmax(0,1fr)}.logo{display:flex;align-items:center;gap:7px;margin:0 0 14px;font-size:20px;white-space:nowrap}.v25-nav-toggle{margin-left:auto;padding:3px 6px;font-size:14px;background:transparent}.v25-bottom-icon{display:none}.nav-small aside{padding:10px 6px}.nav-small .logo{flex-wrap:wrap;justify-content:center}.nav-small .logo>span,.nav-small nav a>span:last-child,.nav-small .bottom>small,.nav-small .v25-bottom-label{display:none}.nav-small .v25-nav-toggle{margin:0}.nav-small nav a{justify-content:center;padding:9px 4px}.nav-small .bottom{padding:0}.nav-small .v25-bottom-icon{display:inline}.nav-small .bottom button{padding:7px 4px}main{padding:12px 18px 24px}.topbar{align-items:center;margin:0 0 14px;padding:7px 0;border-bottom:1px solid var(--line);gap:7px}.topbar>.row{gap:6px}.topbar select{font-size:12px;padding:6px 8px;max-width:175px}.v25-controls{gap:6px;min-width:0;flex-wrap:wrap}.v25-count{white-space:nowrap}.v25-sync-status{font-size:11px;color:var(--green);max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v25-sync-status.running{color:var(--blue)}.v25-sync-status.warning{color:var(--warn)}.v25-menu{position:relative;display:inline-block;flex:none}.v25-menu>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:5px 9px;font-size:12px;white-space:nowrap;background:var(--surface)}.v25-menu>summary::-webkit-details-marker{display:none}.v25-menu>summary:focus-visible{outline:2px solid var(--blue)}.v25-refresh-icon{display:inline-block;font-size:20px;line-height:20px;vertical-align:middle}.v25-refresh-icon.spin{animation:v25spin 1.6s linear infinite}@keyframes v25spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.v25-refresh-icon.spin{animation:none}}.v25-menu-panel{position:absolute;z-index:50;top:calc(100% + 5px);right:0;width:min(280px,85vw);padding:9px;display:grid;gap:3px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px #0005}.v25-menu-panel>b{padding:5px 8px;font-size:13px}.v25-menu-panel button,.v25-menu-panel .button{text-align:left;border:0;background:transparent;padding:8px;font-size:12px;white-space:normal}.v25-menu-panel button:hover,.v25-menu-panel .button:hover{background:var(--surface);color:var(--blue)}.v25-menu-panel hr{border:0;border-top:1px solid var(--line);width:100%;margin:4px 0}.v25-icon{padding:5px 9px;font-size:17px;line-height:20px}.v25-detail-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:5px 0 8px}.shell[data-view=detail] .tabs{position:sticky;top:0;z-index:12;background:var(--bg);padding:6px 0}.shell[data-view=detail] .producthero{padding:7px 10px;margin:5px 0}.shell[data-view=detail] .producthero .photo-button.large,.shell[data-view=detail] .producthero .photo-placeholder.large{width:72px;height:72px;flex-basis:72px}.shell[data-view=detail] .producthero .photo-button.large .thumb{width:70px;height:70px}.head{margin-bottom:8px}.head h1{font-size:24px}.grid{gap:9px;margin:9px 0;align-items:start}.card{padding:12px}.kpis{margin:8px 0;gap:7px}.kpi{min-height:75px;padding:8px 10px}.kpi .value{font-size:clamp(18px,1.7vw,25px)}.v25-source-note{font-size:12px;color:var(--muted);margin:4px 0 8px}.v25-source-note summary{cursor:pointer}.v25-source-note p{padding:5px 0}.spp-status-compact{margin:0}.v25-peer{padding:5px 0;border-top:1px solid var(--line);white-space:normal;max-width:310px}.v25-peer small{display:block}.v25-peers summary{cursor:pointer;color:var(--blue)}.v25-ad-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}.v25-ad-stats>div{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:8px}.v25-ad-stats small,.v25-ad-stats b{display:block}.v25-ad-stats small{color:var(--muted);font-size:11px}.v25-ad-stats b{font-size:19px;margin-top:3px}.v25-ad-filter button{font-size:12px;padding:5px 8px}.v25-ad-filter .current{color:var(--blue);border-color:var(--blue)}.v24-series.price,.v24-chart-series.price,.v23-track.price{--series-color:#c38af0}.v24-chart-series.price .series{stroke:var(--series-color)}.v24-chart-series.price .dot,.v24-chart-series.price .v24-axis{fill:var(--series-color)}.v24-series.price{color:var(--series-color)}.dense .tablewrap td{padding-top:5px;padding-bottom:5px}.dense .tablewrap .photo-button,.dense .tablewrap .photo-placeholder{width:38px;height:38px;flex-basis:38px}.dense .tablewrap .photo-button .thumb{width:36px;height:36px}.dense .tablewrap .producttext small{margin-top:2px}.dense .tablewrap .productname{gap:7px}.tablewrap table:has(.productname) th:first-child,.tablewrap table:has(.productname) td:first-child{position:sticky;left:0;background:var(--panel);z-index:2;box-shadow:1px 0 var(--line)}.tablewrap table:has(.productname) thead th:first-child{z-index:4}.tablewrap table:has(.productname) tbody tr:hover td:first-child{background:var(--surface)}.diagnostic-item p{margin:4px 0}.diagnostic-fact .listline{padding:6px 0}.quality-details .listline{padding:6px 0}.empty{padding:19px 10px}.radar-alert strong{font-size:20px}.shell[data-view=overview] .radar-alert{min-height:60px}.shell[data-view=overview] .grid>.span4{align-self:stretch}.shell[data-view=detail] .grid>.card{align-self:start}.shell[data-view=detail] .v24-chart-toolbar{margin:4px 0}
@media(max-width:1440px){.shell{grid-template-columns:175px minmax(0,1fr)}.logo{font-size:18px;gap:5px}main{padding:10px 13px 22px}.topbar{gap:5px}.v25-count{display:none}.v25-sync-status{max-width:190px}.tablewrap table:has(.productname) td:first-child,.tablewrap table:has(.productname) th:first-child{min-width:215px;max-width:330px}.shell[data-view=detail] .head h1{font-size:20px}}
@media(max-width:1100px){.shell{grid-template-columns:160px minmax(0,1fr)}.logo{font-size:16px}.topbar>.row{max-width:100%}.v25-controls{flex-wrap:wrap}.v25-sync-status{max-width:170px}.shell[data-view=overview] .grid>.span4,.shell[data-view=overview] .grid>.span8{grid-column:span 12}}
@media(max-width:720px){.shell,.shell.nav-small{display:block}.nav-small aside{padding:8px}.nav-small .logo{justify-content:flex-start;flex-wrap:nowrap}.nav-small .logo>span{display:block}.nav-small nav a>span:last-child{display:none}.nav-small .bottom{display:none!important}.v25-nav-toggle{margin-left:auto}.topbar select{max-width:145px}.topbar>.row{flex-wrap:wrap}.v25-menu-panel{position:fixed;top:65px;right:12px}.v25-detail-tools{align-items:flex-start}.v25-detail-tools small{font-size:10px}.tablewrap table:has(.productname) th:first-child,.tablewrap table:has(.productname) td:first-child{min-width:160px;max-width:200px}.shell[data-view=detail] .tabs{top:0}.v25-ad-stats b{font-size:16px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi .value{font-size:20px}.spp-segments{grid-template-columns:repeat(2,minmax(0,1fr))}}
.v25-first-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px;align-items:center}.v25-first-actions a{font-size:11px;border:1px solid var(--line);padding:4px 6px;border-radius:5px}.v25-stock-split{font-size:12px;gap:8px}.v25-query-analyze{font-size:10px;padding:3px 6px;margin-left:3px;color:var(--blue)}.v25-event-line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;opacity:.65}.v25-event-dot{fill:var(--warn);stroke:var(--panel);stroke-width:1}.shell[data-view=positions] [data-radar-filter].current{color:var(--blue);border-color:var(--blue)}.shell[data-view=spp] #spp-kpis:has(.v24-spp-summary:not(.filtered)){margin-top:0}.v25-source-note .listline{padding:5px 0}.v25-source-note small{display:block}.shell[data-view=ads] .grid>.span6{align-self:stretch}

.v25-sync-status.unknown{color:var(--muted)}aside .bottom button{font-size:12px}.shell[data-view=spp] .spp-segments{margin:5px 0;gap:6px}.shell[data-view=spp] .spp-segment{padding:7px 10px;min-height:55px}.shell[data-view=spp] .spp-segment b{font-size:20px}
/* V2.6: denser analytics; preserve existing light/dark tokens and table controls. */
.v26-drr{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;max-width:100%;font-variant-numeric:tabular-nums}.v26-drr>b{white-space:nowrap}.v26-drr .v26-total{display:inline!important;margin:0!important;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}.kpi .v26-total{font-size:13px}.kpi .value:has(.v26-drr){line-height:1.18}.v24-query-filters{flex-wrap:wrap;gap:5px}.v24-query-filters button{font-size:11px;padding:5px 8px}.v25-stock-split{flex-wrap:wrap}.diagnostic-item p{line-height:1.4}.diagnostic-item .row{flex-wrap:wrap}.diagnostic-item h3{line-height:1.25}.tablewrap table:has(thead th:first-child [data-heading="Дата"]) th:first-child,.tablewrap table:has(thead th:first-child [data-heading="Дата"]) td:first-child{width:145px;min-width:112px;max-width:165px;position:static;white-space:nowrap;box-shadow:none}.tablewrap table:has(thead th:first-child [data-heading="Дата"]) thead th:first-child{position:sticky;top:0}.tablewrap table:has(thead th:first-child [data-heading="Дата"]):has(.productname) td:nth-child(2){min-width:210px}.shell[data-view=ads] .grid>.card{align-self:start}.shell[data-view=ads] .v25-ad-stats{gap:6px}.shell[data-view=detail] .grid>.card{min-width:0}.shell.dense .tablewrap td{padding:5px 7px}.shell.dense .tablewrap th{padding:5px 7px}.shell.dense .tablewrap .producttext small{margin-top:2px}.shell.dense .diagnostic-item{padding:10px}.shell.dense .radar-alert{min-height:52px}.shell.dense .v24-query-list .v24-query-line{padding:5px 8px}.v26-relevance{white-space:normal}.v26-relevance.bad{font-weight:600}
@media(max-width:1366px){.kpi .value{font-size:21px}.kpi .v26-total{font-size:11px}.shell[data-view=detail] .tabs a{padding:6px 8px}.tablewrap .producttext{max-width:265px}.v25-sync-status{max-width:145px}.diagnostic-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}.shell[data-view=overview] .radar-alerts{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}}

/* V2.7: keep estimated ratios and source coverage visible without adding a column. */
.v26-drr .v27-partial,.v27-partial{color:#d7a34e;font-size:11px;font-weight:600;line-height:1.3}
.v26-drr .v27-partial{display:block!important;flex-basis:100%;margin:0!important;white-space:normal}
body.light .v27-partial{color:#8c570a}
.v27-drr-kpi .v27-range{font-variant-numeric:tabular-nums;font-size:11px;line-height:1.3;white-space:normal}
.v27-drr-details{font-size:11px;line-height:1.4;margin-top:2px;min-width:0;overflow-wrap:anywhere}
.v27-drr-details summary{color:var(--muted);cursor:pointer}
.v27-drr-details small{display:block;white-space:normal;margin-top:3px}
.v26-drr:focus-visible{outline:1px solid #7ca5ff;outline-offset:2px;border-radius:3px}
/* V2.8: formula opens without stretching KPI row; custom range uses existing modal. */
.v28-drr-info{display:block;width:max-content;max-width:100%;font-size:11px;padding:2px 0;background:none;border:0;color:var(--blue);text-align:left;line-height:1.3}.v28-drr-info:hover{text-decoration:underline;background:none}.v28-drr-explanation{font-size:13px;line-height:1.55;overflow-wrap:anywhere}.v28-drr-explanation p{margin:7px 0;padding-bottom:6px;border-bottom:1px solid var(--line)}.v28-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.v28-date-fields input{width:100%;min-width:0}.v28-range-button{font-size:11px;padding:5px 7px;white-space:nowrap}.v28-period-note{margin:0 0 8px}.v27-drr-kpi .v27-range{white-space:normal;display:block}.v27-drr-kpi>.muted{margin-top:3px}.v28-drr-info:focus-visible{outline:2px solid var(--blue)}
@media(max-width:460px){.v28-date-fields{grid-template-columns:1fr}}
/* V2.9, workspace-only layout */
.aw-tabs{justify-content:space-between;align-items:center;margin-bottom:8px;flex-wrap:wrap}.aw-tabs .tabs{margin:0;gap:6px;flex-wrap:wrap}.aw-toolbar{align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.aw-toolbar select{max-width:min(100%,520px);min-width:0}.aw-toolbar input{max-width:260px;min-width:0}.aw-id{display:block;font-size:11px;margin-top:3px}.aw-kpis{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.aw-link{white-space:nowrap}.aw-toolbar .mini{overflow-wrap:anywhere}.aw-tabs button{font-size:13px}
.aw-reconcile{margin:8px 0;color:var(--muted);font-size:12px}.aw-reconcile summary{cursor:pointer}
/* V3.0 advertising workspace: responsive compact panels, inherited theme. */
.ad30-rec-grid,.ad30-groups,.ad30-mini-grid,.ad30-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:7px;min-width:0;margin:8px 0}.ad30-rec-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))}.ad30-rec,.ad30-mini-grid>div{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:10px;min-width:0;overflow-wrap:anywhere}.ad30-rec b,.ad30-rec small,.ad30-mini-grid b,.ad30-mini-grid small,.ad30-reason{display:block}.ad30-rec p{font-size:12px;line-height:1.45;margin:7px 0}.ad30-rec button{margin-top:7px;font-size:12px}.ad30-mini-grid small{color:var(--muted);font-size:11px}.ad30-mini-grid b{font-size:18px;margin-top:3px}.ad30-groups button{text-align:left;white-space:normal;min-width:0;display:grid;gap:4px}.ad30-groups button b{font-size:20px}.ad30-groups button.current{border-color:var(--blue);color:var(--blue)}.ad30-reason{max-width:320px;white-space:normal;line-height:1.4;margin-top:4px}.ad30-fields label{min-width:0;display:flex;flex-direction:column;gap:4px}.ad30-fields input,#ad30-product,#ad30-template,#ad30-sched-cid,#ad30-sched-window,#ad30-hypothesis{max-width:100%;min-width:0}.ad30-heatwrap{overflow-x:auto}.ad30-heat{display:grid;grid-template-columns:30px repeat(24,minmax(15px,1fr));gap:3px;min-width:500px;align-items:center;text-align:center}.ad30-heat small{font-size:9px;color:var(--muted)}.ad30-nodata{border:1px dashed var(--line);color:var(--muted);border-radius:3px;line-height:20px}.ad30-grid .card{min-width:0}.ad30-passport .productname{max-width:100%;white-space:normal}.ad30-passport .producttext{min-width:0}.ad30-passport .product-link{white-space:normal}.ad30-passport p{margin:8px 0}#ad30-tax-result{margin-top:9px}.ad30-fields button{align-self:end}.ad30-grid .tablewrap{max-height:300px}@media(max-width:1100px){.shell[data-view=ads] .ad30-grid>.span4,.shell[data-view=ads] .ad30-grid>.span8{grid-column:span 12}}@media(max-width:720px){.ad30-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.ad30-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aw-tabs .tabs{gap:4px}.aw-tabs button{font-size:12px;padding:5px 7px}}
.ad30-dashboard{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:9px;margin:9px 0;align-items:start}.ad30-stack{display:grid;gap:9px;min-width:0}.ad30-stack>.card{min-width:0;max-width:100%}.ad30-stack .tablewrap{max-height:300px}@media(max-width:1050px){.ad30-dashboard{grid-template-columns:minmax(0,1fr)}}

/* V3.1: advertising dashboard visual refresh, scoped to Ads Radar. */
.ad31-icon{display:inline-block;width:19px;height:19px;flex:0 0 19px;vertical-align:middle}.ad31-chevron{margin-left:auto;color:inherit;font-size:15px}.ad31-subnav.aw-tabs{display:grid;gap:3px;margin:0 0 5px 8px;padding:2px 0 2px 9px;border-left:1px solid var(--line);min-width:0}.ad31-subnav button{display:flex;align-items:center;gap:8px;min-width:0;width:100%;padding:6px 8px;text-align:left;border:1px solid transparent;background:transparent;color:var(--muted);font-size:12px;border-radius:6px;line-height:1.35}.ad31-subnav button .ad31-icon{width:15px;height:15px;flex-basis:15px}.ad31-subnav button.current{background:#3267db26;color:var(--blue);border-color:#3267db40;font-weight:650}.ad31-subnav button:hover{background:var(--hover);color:var(--text)}body:not(.light) .ad31-subnav button.current{color:#c4d7ff;background:#234584}.nav-small .ad31-chevron{display:none}.nav-small .ad31-subnav{margin:0;padding:0;border:0}.nav-small .ad31-subnav button{justify-content:center;padding:6px 3px}.nav-small .ad31-subnav button span{display:none}.nav-small nav a[data-page=ads]>span:nth-child(2){display:none}.ad31-mode{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;color:var(--muted);margin:2px 0 5px}.ad31-dot{width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block;flex:none}.ad31-dashboard{--ad31-blue:#78a7ff;--ad31-green:#4ad7a2;--ad31-amber:#f2bb61;--ad31-purple:#b0a0ff;--ad31-red:#f48d95;min-width:0}.light .ad31-dashboard{--ad31-blue:#245ad7;--ad31-green:#09885d;--ad31-amber:#986000;--ad31-purple:#6949bd;--ad31-red:#b83043}.ad31-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 12px}.ad31-heading h1{font-size:26px;letter-spacing:-.7px;line-height:1.16}.ad31-heading p{font-size:12px;margin:3px 0 0}.ad31-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.ad31-dashboard .card{padding:12px;border-radius:10px;background:linear-gradient(145deg,var(--panel),var(--surface));box-shadow:none}.ad31-dashboard .ad31-kpi{padding:11px 12px 9px;min-width:0;min-height:103px;overflow:hidden}.ad31-kpi.blue{--accent:var(--ad31-blue)}.ad31-kpi.green{--accent:var(--ad31-green)}.ad31-kpi.amber{--accent:var(--ad31-amber)}.ad31-kpi-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;line-height:1.25;min-height:21px}.ad31-kpi-label .ad31-icon{color:var(--accent);width:18px;height:18px;flex-basis:18px}.ad31-info{padding:0!important;margin-left:auto;border:0;background:transparent;font-size:13px;color:var(--muted);flex:none}.ad31-kpi-value{font-size:clamp(17px,1.55vw,25px);font-weight:750;letter-spacing:-.6px;font-variant-numeric:tabular-nums;white-space:nowrap;margin:5px 0 2px}.ad31-kpi-foot{display:flex;align-items:center;justify-content:space-between;gap:3px;min-height:28px}.ad31-kpi-foot small{font-size:10px;line-height:1.2}.ad31-warn{color:var(--ad31-amber)}.ad31-spark{width:66px;max-width:45%;height:28px;flex:none;color:var(--accent)}.ad31-sparkline polyline,.ad31-labseries polyline{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.ad31-sparkline circle,.ad31-labseries circle{fill:currentColor}.ad31-spark-empty{font-size:12px;color:var(--muted)}.ad31-period{font-size:10px;margin:5px 2px 9px}.ad31-main-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);gap:10px;align-items:start}.ad31-left{display:grid;gap:10px;min-width:0}.ad31-panel{min-width:0;overflow:hidden}.ad31-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}.ad31-panel-head h2{display:flex;gap:7px;align-items:center;font-size:15px;margin:0;font-weight:700;line-height:1.25}.ad31-panel-head h2 .ad31-icon{color:var(--ad31-blue)}.ad31-textlink{padding:3px 0!important;border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:650;white-space:nowrap}.ad31-textlink:hover{background:transparent;text-decoration:underline}.ad31-rec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ad31-rec{--rec:var(--ad31-blue);display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--rec) 35%,var(--line));border-radius:8px;background:linear-gradient(135deg,color-mix(in srgb,var(--rec) 9%,var(--panel)),var(--surface));padding:10px;min-width:0;min-height:152px}.ad31-rec.scale,.ad31-rec.minimum{--rec:var(--ad31-green)}.ad31-rec.schedule,.ad31-rec.spp{--rec:var(--ad31-purple)}.ad31-rec.waste{--rec:var(--ad31-red)}.ad31-rec.stock,.ad31-rec.excess{--rec:var(--ad31-amber)}.ad31-rec.data{--rec:var(--muted)}.ad31-rec-title{display:flex;align-items:center;gap:6px;color:var(--rec);font-size:12px;line-height:1.25}.ad31-rec-title b{color:var(--text);overflow-wrap:anywhere}.ad31-rec-title .ad31-icon{width:18px;height:18px;flex-basis:18px}.ad31-rec-meta{display:flex;align-items:center;justify-content:space-between;gap:3px;flex-wrap:wrap;margin:5px 0}.ad31-rec-meta small{font-size:11px}.ad31-pill{display:inline-block;border:1px solid color-mix(in srgb,var(--rec,var(--muted)) 30%,var(--line));background:color-mix(in srgb,var(--rec,var(--muted)) 12%,transparent);color:var(--rec,var(--muted));border-radius:20px;padding:2px 6px;font-size:9px;white-space:nowrap}.ad31-rec p{font-size:11px;line-height:1.4;margin:3px 0 6px;overflow-wrap:anywhere}.ad31-rec-flag{font-size:10px;line-height:1.3;margin-bottom:8px}.ad31-rec-foot{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:auto}.ad31-rec-foot span{font-size:10px;padding:3px 5px;background:color-mix(in srgb,var(--rec) 12%,var(--surface));color:var(--rec);border-radius:5px;white-space:nowrap}.ad31-rec-foot button,.ad31-pass-actions button{margin-left:auto;padding:3px 7px;font-size:14px;line-height:1.25;background:var(--surface);color:var(--blue)}.ad31-passport .productname{gap:9px;margin:0 0 9px}.ad31-passport .producttext{min-width:0;max-width:100%}.ad31-passport .product-link{font-size:12px;white-space:normal}.ad31-passport .producttext small{font-size:10px}.ad31-passport .photo-button,.ad31-passport .photo-placeholder{width:54px;height:54px;flex:0 0 54px}.ad31-passport .thumb{width:54px;height:54px}.ad31-pass-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:6px}.ad31-pass-metrics>div{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:7px;min-width:0}.ad31-pass-metrics small{font-size:10px;color:var(--muted);display:block;line-height:1.2}.ad31-pass-metrics b{display:block;font-size:15px;margin-top:3px;overflow-wrap:anywhere;line-height:1.2}.ad31-passport>small{font-size:10px;display:block;line-height:1.3}.ad31-hint{display:flex;gap:7px;align-items:start;padding:8px;margin:8px 0;background:#467bea10;border:1px solid #467bea48;border-radius:7px;font-size:11px;line-height:1.35}.ad31-hint .ad31-icon{color:var(--ad31-blue)}.ad31-pass-actions{display:flex;gap:5px;align-items:center}.ad31-pass-actions select{font-size:11px;padding:5px 6px;min-width:0;flex:1}.ad31-table-scroll{overflow:auto;max-height:210px;border:1px solid var(--line);border-radius:6px}.ad31-table{font-size:11px;white-space:nowrap;width:100%;border-collapse:collapse}.ad31-table th{font-size:10px;padding:6px 7px;color:var(--muted);background:var(--surface);position:sticky;top:0;z-index:1}.ad31-table td{padding:6px 7px;line-height:1.3;border-bottom:1px solid var(--line)}.ad31-table td:first-child{min-width:130px;max-width:210px;white-space:normal}.ad31-table tr:last-child td{border-bottom:0}.ad31-status-dot{width:6px;height:6px;background:var(--muted);display:inline-block;border-radius:50%;margin-right:5px}.ad31-status-dot.on{background:var(--green)}.ad31-status{font-size:10px;color:var(--muted);border-radius:10px;padding:2px 6px;background:var(--surface)}.ad31-status.on{color:var(--green);background:#16a08515}.ad31-note{display:block;font-size:10px;line-height:1.35;margin-top:7px}.ad31-empty{min-height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px dashed var(--line);border-radius:7px;color:var(--muted);text-align:center;padding:10px;font-size:12px}.ad31-empty .ad31-icon{color:var(--ad31-blue)}.ad31-bottom-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;align-items:stretch;margin-top:10px}.ad31-heatlayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,.45fr);gap:10px}.ad31-heatmain{min-width:0}.ad31-heatcaption{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:5px}.ad31-heatcaption small{font-size:10px;color:var(--muted)}.ad31-heat{display:grid;grid-template-columns:21px repeat(24,minmax(8px,1fr));gap:2px;min-width:280px;align-items:center;text-align:center}.ad31-heat small{font-size:9px;color:var(--muted);line-height:1.5}.ad31-heat-cell{height:13px;border:1px solid var(--line);border-radius:3px;background:repeating-linear-gradient(135deg,var(--surface) 0,var(--surface) 3px,var(--panel) 3px,var(--panel) 6px)}.ad31-heatmain>small{display:block;margin-top:7px;font-size:10px;line-height:1.3}.ad31-scenarios{border-left:1px solid var(--line);padding-left:9px;display:flex;flex-direction:column;gap:5px;min-width:0}.ad31-scenarios>b{font-size:11px;margin-bottom:2px}.ad31-scenarios button{display:flex;align-items:center;gap:5px;text-align:left;padding:6px;background:var(--surface);font-size:11px;min-width:0}.ad31-scenarios button .ad31-icon{color:var(--ad31-blue);width:15px;height:15px;flex-basis:15px}.ad31-scenarios button span{min-width:0;flex:1}.ad31-scenarios button small{display:block;font-size:9px;color:var(--muted)}.ad31-scenarios button i{font-style:normal;color:var(--muted)}.ad31-lab-legend{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:10px;color:var(--muted)}.ad31-lab-legend span{display:flex;align-items:center;gap:4px}.ad31-lab-legend i{width:7px;height:7px;border-radius:50%;background:var(--c)}.ad31-labseries.ads,.ad31-lab-legend .ads{--c:var(--ad31-amber);color:var(--c)}.ad31-labseries.spp,.ad31-lab-legend .spp{--c:var(--ad31-blue);color:var(--c)}.ad31-labseries.price,.ad31-lab-legend .price{--c:var(--ad31-green);color:var(--c)}.ad31-labchart{display:block;width:100%;height:auto;max-height:184px;margin-top:4px}.ad31-labchart text{font-size:10px;fill:var(--muted)}.ad31-gridline{stroke:var(--line);stroke-dasharray:3 3}.ad31-dashboard .empty{padding:15px;font-size:12px}.ad31-dashboard .ad31-main-grid .ad31-pass-panel{align-self:stretch}
@media(max-width:1440px){.ad31-dashboard .card{padding:10px}.ad31-kpis{gap:7px}.ad31-kpi-label{font-size:10px}.ad31-kpi-label .ad31-icon{width:15px;height:15px;flex-basis:15px}.ad31-kpi-value{font-size:20px}.ad31-panel-head h2{font-size:14px}.ad31-main-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.ad31-rec{padding:8px}.ad31-pass-metrics>div{padding:6px}.ad31-pass-metrics b{font-size:13px}.ad31-heatlayout{grid-template-columns:minmax(0,1fr) minmax(105px,.48fr)}}
@media(max-width:1150px){.ad31-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.ad31-main-grid{grid-template-columns:minmax(0,1fr)}.ad31-pass-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.ad31-bottom-grid{grid-template-columns:minmax(0,1fr)}.ad31-kpi-value{font-size:22px}.ad31-rec{min-height:140px}}
@media(max-width:720px){.ad31-subnav.aw-tabs{flex:0 0 100%;display:flex;flex-wrap:wrap;gap:3px;margin:2px 0;padding:4px;border:1px solid var(--line);border-radius:7px;order:5}.ad31-subnav button{width:auto;flex:0 0 auto;padding:5px 7px;font-size:11px}.nav-small .ad31-subnav button span{display:inline}.shell[data-view=ads] nav{flex-wrap:wrap}.ad31-heading{align-items:flex-start;flex-wrap:wrap}.ad31-heading h1{font-size:22px}.ad31-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ad31-kpi-value{font-size:20px}.ad31-rec-grid{grid-template-columns:minmax(0,1fr)}.ad31-rec{min-height:0}.ad31-pass-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ad31-heatlayout{grid-template-columns:minmax(0,1fr)}.ad31-scenarios{border-left:0;padding-left:0}.ad31-table-scroll{max-height:250px}}
.ad31-dashboard .ad31-main-grid .ad31-pass-panel{align-self:start}.ad31-dashboard .ad31-rec-grid>.empty{grid-column:1/-1}
/* Keep the expanded navigation usable on a laptop without changing other pages. */
@media(min-width:721px){.shell[data-view=ads] aside{padding-top:10px;padding-bottom:8px;gap:6px}.shell[data-view=ads] aside .logo{margin-bottom:7px}.shell[data-view=ads] aside nav{gap:2px}.shell[data-view=ads] aside nav>a{min-height:31px;padding-top:5px;padding-bottom:5px;font-size:12px;line-height:1.3}.shell[data-view=ads] .ad31-subnav{gap:2px}.shell[data-view=ads] .ad31-subnav button{padding-top:4px;padding-bottom:4px;line-height:1.25}.shell[data-view=ads] aside .bottom{gap:4px;padding:5px 3px}.shell[data-view=ads] aside .bottom button{padding:5px 8px;font-size:12px}.shell[data-view=ads] aside .bottom>small{font-size:11px}}
@media(min-width:1151px) and (max-width:1440px){.ad31-heading{margin:2px 0 8px}.ad31-dashboard .ad31-kpi{min-height:89px;padding:8px 10px 6px}.ad31-kpi-foot{min-height:23px}.ad31-spark{height:23px}.ad31-pass-metrics>div{padding:5px 6px}.ad31-pass-metrics{gap:4px}.ad31-passport .productname{margin-bottom:6px}.ad31-hint{margin:6px 0;padding:6px}.ad31-rec{min-height:140px}.ad31-labchart{max-height:160px}}

/* V3.2 | MP Radar unified design system — shared by all workspaces. */
:root{--bg:#0b1322;--panel:#131e30;--surface:#18263c;--sidebar:#101b2c;--line:#2b3c55;--text:#edf3ff;--muted:#a5b4cb;--blue:#77a7ff;--hover:#20324c;--shadow:0 2px 8px #0002;--v32-panel-end:#101a2b;--v32-table-head:#1a293f}
body.light{--bg:#edf2f8;--panel:#fff;--surface:#f0f5fc;--sidebar:#f8faff;--line:#d5e0ee;--text:#172940;--muted:#526580;--blue:#245bc9;--hover:#e6eefb;--v32-panel-end:#f8faff;--v32-table-head:#edf3fc}
.shell main{background:var(--bg)}.shell aside{background:linear-gradient(180deg,var(--sidebar),var(--bg));border-color:var(--line)}
.shell aside .logo b{border-radius:8px;box-shadow:0 2px 7px #315ddc30}.shell nav>a{border-radius:8px;transition:background .12s,border-color .12s}.shell nav>a:hover{background:var(--hover)}.shell nav>a.active{background:linear-gradient(105deg,#2558ce,#3267df);color:white;box-shadow:0 2px 9px #2054b52a}.shell .nav-icon .ad31-icon{width:17px;height:17px;flex-basis:17px}.shell aside .bottom{border-top:1px solid var(--line);padding-top:10px}
.topbar{padding:7px 0 10px;margin-bottom:12px}.topbar select,.topbar .tag,.topbar .v25-icon,.topbar .v25-menu>summary{border-radius:7px;background:var(--panel)}.topbar>.row:first-child>.tag:first-child{border-color:var(--blue);color:var(--blue);background:color-mix(in srgb,var(--blue) 12%,var(--panel))}
.head{margin:4px 0 10px;align-items:center}.head h1,.ad31-heading h1{font-size:clamp(20px,1.8vw,26px);font-weight:760;letter-spacing:-.55px}.head p{font-size:12px;line-height:1.4;margin-top:3px}
.card{background:linear-gradient(145deg,var(--panel),var(--v32-panel-end));border-color:var(--line);border-radius:10px;box-shadow:var(--shadow)}.card>h2{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:720;line-height:1.4;margin-bottom:6px}.card>h2>.ad31-icon{color:var(--blue);width:18px;height:18px;flex-basis:18px}.card>h2:first-child{min-width:0}.grid{gap:10px;margin:10px 0}
.kpi{min-height:84px;position:relative;padding:11px 12px}.kpi:before{display:none}.kpi .value{font-weight:760;font-variant-numeric:tabular-nums;letter-spacing:-.5px;margin:6px 0 3px}.v32-kpi-label{display:flex;gap:6px;align-items:center;line-height:1.3}.v32-kpi-label .ad31-icon{color:var(--blue);width:16px;height:16px;flex-basis:16px}.v32-spark-kpi{padding-bottom:10px}.v32-kpi-spark{display:flex;justify-content:flex-end;margin-top:3px;height:24px;color:var(--blue)}.v32-kpi-spark svg{width:84px;height:24px}.v32-spark-kpi.green .v32-kpi-spark{color:var(--green)}.v32-spark-kpi.amber .v32-kpi-spark{color:var(--warn)}.v32-kpi-spark polyline{stroke:currentColor;fill:none;stroke-width:1.8}.v32-kpi-spark circle{fill:currentColor}.v24-spp-summary:not(.filtered) .kpi{min-height:0}
.tablewrap{border:1px solid var(--line);border-radius:8px;margin-top:9px;scrollbar-color:var(--line) var(--bg)}.tablewrap table thead th{background:var(--v32-table-head);font-weight:650}.tablewrap table:has(.productname) thead th:first-child{background:var(--v32-table-head)}.tablewrap tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface) 30%,transparent)}.tablewrap tbody tr:hover{background:var(--hover)}.tablewrap tbody tr:last-child td{border-bottom:0}.tablewrap td,.tablewrap th{border-color:var(--line)}.tablewrap td{line-height:1.4}.photo-button,.photo-placeholder{border-radius:7px}.product-link{font-weight:650}.tabs a,.tabs button{border-radius:7px}.tabs a.active,.tabs button.active,.button.current,button.current{background:color-mix(in srgb,var(--blue) 13%,var(--panel));color:var(--blue);border-color:var(--blue)}.filters{gap:7px}.filters input,.filters select{background:var(--panel)}button,input,select,textarea{border-radius:7px}button:hover{background:var(--hover)}button.primary:hover{background:#356ae1}.notice{border-radius:7px;background:color-mix(in srgb,var(--blue) 8%,var(--panel))}.chart .gridline{stroke-dasharray:3 4}.chart .series{stroke-width:2.2}.chart .dot{stroke:var(--panel);stroke-width:1}.v32-chart-area{fill:var(--blue);fill-opacity:.13;pointer-events:none}.tag{border-radius:6px}.diagnostic-item,.listline,.spp-segment{border-color:var(--line)}.producthero{border-radius:10px;background:linear-gradient(145deg,var(--panel),var(--v32-panel-end))}
/* Reference composition: attention and chart, followed by existing sortable tables. */
.v32-alert-panel,.v32-chart-panel{align-self:stretch}.shell[data-view=overview] .v32-alert-panel .radar-alerts{display:flex;flex-direction:column;gap:4px;max-height:242px;overflow:auto;padding:1px 3px 1px 1px;scrollbar-width:thin}.shell[data-view=overview] .v32-alert-panel .radar-alert{flex:0 0 auto;min-height:48px;display:flex;align-items:center;padding:6px 9px;gap:9px;border-radius:7px;text-align:left}.v32-alert-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.v32-alert-title>span{min-width:0}.v32-alert-title>.ad31-icon{color:var(--blue);width:20px;height:20px;flex-basis:20px}.v23-urgent .v32-alert-title>.ad31-icon{color:var(--red)}.v23-attention .v32-alert-title>.ad31-icon{color:var(--warn)}.shell[data-view=overview] .v32-alert-panel .radar-alert strong{font-size:17px;background:var(--panel);border-radius:6px;padding:3px 8px;min-width:30px;text-align:center}.v32-alert-panel .v25-first-actions{margin-top:7px}.v32-chart-panel .ad31-panel-head{flex-wrap:wrap;gap:6px}.v32-chart-switch{display:flex;flex-wrap:wrap;gap:3px}.v32-chart-switch button{font-size:11px;padding:5px 8px}.v32-chart-panel .chart{max-height:235px;min-height:0}.v32-chart-summary{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0}.v32-chart-summary span{font-size:11px;padding:4px 7px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}.v32-chart-summary b{color:var(--text)}.v32-chart-summary span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--blue);margin-right:5px}.v32-chart-summary span:nth-child(2):before{background:var(--warn)}.v32-chart-summary span:nth-child(3):before{background:var(--green)}.v32-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.v32-shortcut{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--text);min-width:0;padding:12px}.v32-shortcut:hover{border-color:var(--blue)}.v32-shortcut>.ad31-icon{color:var(--blue);width:22px;height:22px;flex-basis:22px}.v32-shortcut.green>.ad31-icon{color:var(--green)}.v32-shortcut.amber>.ad31-icon{color:var(--warn)}.v32-shortcut>div{flex:1;min-width:0}.v32-shortcut small{display:block;color:var(--muted);font-size:10px}.v32-shortcut strong{font-size:15px;overflow-wrap:anywhere;line-height:1.2}.v32-shortcut>span{color:var(--muted)}
@media(min-width:721px){.shell aside{padding-top:12px;padding-bottom:8px}.shell aside nav{gap:3px}.shell:not([data-view=ads]) nav>a{min-height:35px;padding-top:7px;padding-bottom:7px}.shell aside .logo{margin-bottom:10px}.shell aside .bottom button{padding:6px 8px}}
@media(min-width:1151px){.shell[data-view=overview] .kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.shell[data-view=overview] .v32-alert-panel{grid-column:span 5}.shell[data-view=overview] .v32-chart-panel{grid-column:span 7}.shell[data-view=overview] .kpi .value{font-size:clamp(17px,1.48vw,25px);overflow-wrap:anywhere}.shell[data-view=overview] .kpis>.kpi{min-height:116px}}
@media(max-width:1150px){.shell[data-view=overview] .v32-alert-panel,.shell[data-view=overview] .v32-chart-panel{grid-column:span 12}.v32-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v32-shortcuts{grid-template-columns:minmax(0,1fr)}.v32-chart-switch{max-width:100%}.v32-chart-panel .chart{max-height:200px}.v32-kpi-label{font-size:11px}.v32-kpi-spark{height:20px}.v32-kpi-spark svg{height:20px}.card>h2{font-size:14px}.shell nav>a{white-space:nowrap}.shell aside .bottom{padding-top:5px}.head h1{font-size:21px}}
/* Compact main dashboard: preserve the entire signal list in a scrollable panel. */
@media(min-width:1151px){.shell[data-view=overview] .head{margin-bottom:7px}.shell[data-view=overview] .kpis>.kpi{min-height:105px;padding:9px 10px}.shell[data-view=overview] .v32-kpi-spark{height:20px;margin-top:1px}.shell[data-view=overview] .v32-kpi-spark svg{height:20px}.shell[data-view=overview] .v32-alert-panel .radar-alerts{max-height:191px}.shell[data-view=overview] .v32-alert-panel .radar-alert{min-height:43px;padding:5px 8px}.shell[data-view=overview] .v32-alert-panel .radar-alert small{font-size:10px}.shell[data-view=overview] .v32-chart-panel .chart{max-height:180px}.v32-alert-panel .v25-first-actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}.v32-alert-panel .v25-first-actions>*{flex:0 0 auto}.shell[data-view=overview] .v32-chart-panel .ad31-panel-head{margin-bottom:2px}.shell[data-view=overview] .grid>.card{padding:10px}}
@media(min-width:1151px){.shell[data-view=overview] .v32-chart-panel .chart{max-height:190px}.shell[data-view=overview] .grid>.card .tablewrap table:has(.productname) td:first-child{width:30%}.shell[data-view=overview] .grid>.card .tablewrap table:has(.productname) th:first-child{width:30%}.shell[data-view=overview] .v32-chart-panel .chart text{font-size:12px}.shell[data-view=overview] .v32-alert-panel .radar-alerts{max-height:224px}.shell[data-view=overview] .v32-alert-panel .radar-alert{min-height:44px}}
.v32-spark-kpi.green .v32-kpi-label .ad31-icon{color:var(--green)}.v32-spark-kpi.amber .v32-kpi-label .ad31-icon{color:var(--warn)}
/* V3.3: compact operational views */
.v32-alert-panel .v25-first-actions{flex-wrap:wrap;overflow-x:hidden;white-space:normal}.v32-alert-panel .v25-first-actions>*{max-width:100%;white-space:normal;overflow-wrap:anywhere}.v32-alert-panel{overflow:hidden}
.tablewrap table:has([data-ad30-check]) th:first-child,.tablewrap table:has([data-ad30-check]) td:first-child{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center;padding:5px}
.tablewrap table:has([data-ad30-check]) th:nth-child(2),.tablewrap table:has([data-ad30-check]) td:nth-child(2){width:24%;min-width:200px}.tablewrap table:has([data-ad30-check]) td{padding-block:6px}.ad30-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:260px}
.aw-toolbar #ad30-template{flex:0 1 280px;min-width:180px;width:auto}.aw-toolbar #ad30-segment,.aw-toolbar #aw-segment{flex:0 1 180px;min-width:125px;width:auto}.aw-toolbar #ad30-product{flex:1;min-width:180px}.aw-toolbar #aw-product-search{flex:0 1 200px}
@media(min-width:1151px){.shell[data-view=detail] .kpis>.kpi{min-height:105px}.shell[data-view=products] .tablewrap table:has(.productname) td:first-child,.shell[data-view=products] .tablewrap table:has(.productname) th:first-child{width:30%;min-width:260px}}
.aw-hour-cell{display:flex;align-items:center;justify-content:center;font-size:10px;min-height:22px;border-radius:4px;border:1px solid var(--line)}
/* V3.4: single-line main navigation and compact heatmap */
@media(min-width:721px){.shell:not(.nav-small){grid-template-columns:218px minmax(0,1fr)}.shell:not(.nav-small) aside nav>a{white-space:nowrap;min-height:35px;padding:6px 9px;gap:8px;font-size:13px}.shell:not(.nav-small) aside nav>a>span:not(.nav-icon){white-space:nowrap;overflow:visible}.shell[data-view=ads]:not(.nav-small) aside nav>a{min-height:31px;padding-block:5px}}
.v34-heat{grid-template-columns:26px repeat(24,minmax(23px,1fr));gap:3px}.v34-heat .aw-hour-cell{font-variant-numeric:tabular-nums;min-height:23px;font-size:10px}.v34-heat .v34-hour-total{text-align:center;color:var(--text);font-weight:650}.v34-legend{display:flex;gap:4px;align-items:center;margin:6px 0;flex-wrap:wrap}.v34-legend i{width:13px;height:13px;border-radius:3px}.ad31-heatmain .v34-heat{grid-template-columns:20px repeat(24,minmax(15px,1fr));gap:2px}.ad31-heatmain .v34-heat .aw-hour-cell{font-size:8px;min-height:17px}.v34-bid-marker{cursor:help}.ad30-reason+small{display:block;color:var(--muted);font-size:10px}
/* V3.5 — fixed navigation geometry, heat colors compatible with strict CSP. */
@media(min-width:721px){.shell aside,.shell[data-view=ads] aside{padding:12px 10px 8px;gap:6px;overflow:hidden}.shell aside .logo,.shell[data-view=ads] aside .logo{margin-bottom:10px;flex:none}.shell aside nav,.shell[data-view=ads] aside nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:3px;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;scrollbar-width:thin}.shell:not(.nav-small) aside nav>a,.shell[data-view=ads]:not(.nav-small) aside nav>a{flex:0 0 38px;height:38px;min-height:38px;box-sizing:border-box;padding:6px 9px;font-size:13px;line-height:1.3;gap:8px;white-space:nowrap}.shell aside .bottom,.shell[data-view=ads] aside .bottom{flex:none;gap:4px;padding:5px 3px}.shell aside .bottom button,.shell[data-view=ads] aside .bottom button{padding:6px 8px;font-size:12px}.shell aside .bottom>small,.shell[data-view=ads] aside .bottom>small{font-size:11px}.shell aside .ad31-subnav{flex:none;gap:2px}.shell aside .ad31-subnav button{min-height:27px;flex:none;padding:4px 8px;line-height:1.25}.shell:not(.nav-small){grid-template-columns:218px minmax(0,1fr)}}
.v34-heat .aw-hour-cell[class*="v35-heat-"],.v34-legend i[class*="v35-heat-"]{color:#fff}.v35-heat-0{background:#23314a!important}.v35-heat-1{background:#244b7b!important}.v35-heat-2{background:#206b8d!important}.v35-heat-3{background:#158b8b!important}.v35-heat-4{background:#179b77!important}.v35-heat-5{background:#32b66d!important}.v34-legend i{display:inline-block;flex:none}.v35-source-form{display:grid;grid-template-columns:minmax(125px,1.2fr) 75px 100px minmax(145px,1.2fr) auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.v35-source-form label{margin:0}.v35-source-form input[type=number]{width:100%;min-width:0}.v35-auto-check{display:flex;align-items:center;gap:5px;white-space:nowrap}.v35-auto-check input{width:16px;height:16px}.v35-refresh-all{white-space:nowrap}.row[hidden]{display:none!important}@media(max-width:850px){.v35-source-form{grid-template-columns:1fr 1fr;gap:5px}.v35-source-form small{grid-column:span 2}}
/* V3.6 manual control; no inline styles. */
.v36-skus{max-height:260px;overflow:auto;border:1px solid var(--border,#304158);border-radius:8px;margin:8px 0}.v36-sku{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid var(--border,#304158);font-size:12px}.v36-sku[hidden]{display:none}.v36-sku input,.v36-check input{width:auto;flex:none}.v36-sku span{min-width:0}.v36-sku small{display:block;color:var(--muted,#90a2b9)}.v36-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.v36-check{display:flex;align-items:center;gap:8px;margin:10px 0}.v36-source-menu{margin-left:-5px}.v36-source-menu summary{min-width:24px!important;width:24px!important;padding:0!important}.v36-source-menu .v25-refresh-icon{animation:none!important}#v36-form,#v36-confirm{max-width:100%;overflow:auto}#v36-confirm .table-wrap{max-height:260px}@media(max-width:600px){.v36-fields{grid-template-columns:1fr}}
.v36-days label{display:flex;gap:6px;align-items:center}.v36-days input{width:auto}#v36-confirm .tablewrap{max-height:260px}

/* V3.7: concise, consistent scope and safety controls */
.v37-scope{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding:8px 12px;margin:0 0 10px;border:1px solid var(--line,#334155);border-radius:7px;font-size:12px}.v37-scope small{flex-basis:100%}.v37-stock{display:block;font-size:11px;line-height:1.5}.v37-stop-banner{padding:10px 12px;margin-bottom:12px;border:1px solid #b85a64;border-radius:7px}.v37-stop-button{border-color:#b85a64!important}.v36-source-menu summary{min-width:30px;display:grid;place-items:center}.v36-source-menu .v25-refresh-icon{font-size:16px;line-height:1}.v37-scope b{font-weight:600}
/* V3.8: compact workspace, consistent navigation, catalog presets. */
.v38-nav-group{color:var(--muted);text-transform:uppercase;font-size:9px;letter-spacing:.075em;font-weight:650;padding:8px 9px 1px;flex:none;white-space:nowrap}.nav-small .v38-nav-group{font-size:0;height:1px;padding:0;background:var(--line);margin:5px 5px}.v38-refresh{display:inline-flex;align-items:stretch;gap:0;position:relative;flex:none}.v38-refresh>.v35-refresh-all{border-radius:7px 0 0 7px;margin:0}.v38-refresh>.v36-source-menu{margin:0}.v38-refresh>.v36-source-menu summary{height:100%;min-height:34px;border-radius:0 7px 7px 0;border-left:0;width:28px!important;min-width:28px!important;display:flex;align-items:center;justify-content:center}.v38-refresh .v25-refresh-icon{font-size:15px}.v38-views{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line)}.v38-views button{font-size:12px;padding:7px 13px;background:transparent;border-color:transparent;color:var(--muted)}.v38-views button.current{background:var(--surface,var(--panel));border-color:var(--blue);color:var(--text)}.v38-filters{gap:6px;margin:6px 0}.v38-filters select{width:auto;min-width:128px;max-width:100%;font-size:12px}.v38-filters button{font-size:12px}.v38-catalog-count{margin:6px 0}.v38-skus{font-size:11px;margin-top:3px;color:var(--muted)}.v38-skus summary{cursor:pointer;color:var(--blue)}.v38-skus .skulinks{padding:3px 0}.v38-stock{font-size:10px}.v38-fold{border:1px solid var(--line);border-radius:8px;margin:6px 0;background:var(--panel);min-width:0}.v38-fold>summary{padding:9px 12px;font-size:12px;font-weight:600;cursor:pointer;color:var(--text)}.v38-fold>div{padding:0 12px 8px}.v38-fold .tablewrap{margin-bottom:4px}.v38-priority{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 10px}.v38-priority>div{display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);min-width:0;flex-wrap:wrap}.v38-priority strong{font-size:19px;color:var(--blue)}.v38-priority small{color:var(--muted);font-size:11px}.v38-priority button,.v38-priority a{font-size:11px;margin-left:auto;padding:4px 7px}.v38-source-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.v38-source-strip small{display:block;font-size:11px}.v38-journal{display:grid;gap:8px}.v38-journal .empty{min-height:0;padding:12px 8px;font-size:12px}.v38-journal .empty+.empty{padding-top:0}.v38-journal .card{margin:0}.v38-journal .card p{margin:5px 0}.shell .card .empty{min-height:0;padding:14px 8px}.shell[data-view=products] #producttable .tablewrap th:first-child,.shell[data-view=products] #producttable .tablewrap td:first-child,.shell[data-view=ads] .tablewrap table:has(.productname):not(:has([data-ad30-check])) th:first-child,.shell[data-view=ads] .tablewrap table:has(.productname):not(:has([data-ad30-check])) td:first-child{position:sticky;left:0;background:var(--panel);z-index:1;box-shadow:1px 0 var(--line)}.shell[data-view=products] #producttable .tablewrap th:first-child,.shell[data-view=ads] .tablewrap table:has(.productname):not(:has([data-ad30-check])) th:first-child{z-index:3;background:var(--surface,var(--panel))}.shell[data-view=products] #producttable .tablewrap td:first-child,.shell[data-view=products] #producttable .tablewrap th:first-child{width:30%;min-width:230px}.v37-scope{padding:6px 10px;font-size:11px;margin-bottom:8px}.v36-fields{gap:6px}.v36-skus{max-height:195px}.v36-sku{padding:6px 8px}.shell[data-view=ads] .aw-toolbar{margin-bottom:5px}.shell[data-view=ads] .aw-toolbar select{max-width:100%}.shell[data-view=overview] .v32-alert-panel .radar-alerts{max-height:210px}
@media(min-width:721px){.shell aside nav,.shell[data-view=ads] aside nav{gap:2px}.shell:not(.nav-small) aside nav>a,.shell[data-view=ads]:not(.nav-small) aside nav>a{height:34px;min-height:34px;flex-basis:34px}.shell aside .ad31-subnav button{min-height:25px}}
@media(max-width:720px){.v38-nav-group{display:none}.v38-priority{grid-template-columns:1fr}.v38-priority>div{padding:6px 9px}.v38-refresh>.v36-source-menu summary{min-height:31px}.shell[data-view=products] #producttable .tablewrap td:first-child,.shell[data-view=products] #producttable .tablewrap th:first-child{min-width:160px;max-width:180px}.v38-filters select{flex:1 1 130px}.v38-views button{padding:6px 8px}}

/* V3.9 — product workspace, compact catalog and source evidence. */
.v39-passport{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:5px 0}
.v39-passport>div{border:1px solid var(--line);border-radius:7px;padding:7px 9px;min-width:0;display:flex;flex-direction:column;gap:3px}
.v39-passport b{font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.v39-passport-foot{align-items:center;flex-wrap:wrap}.v39-passport-foot button,.v39-copy{font-size:11px;padding:3px 6px}
.v39-more{margin-left:auto;position:relative;align-self:center}.v39-more summary{padding:6px 9px;cursor:pointer;color:var(--muted)}.v39-more .v25-menu-panel{min-width:170px}
.v39-stock-value{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.v39-warning,.v39-drr-high b{color:#efaa73}.light .v39-warning,.light .v39-drr-high b{color:#9d3b20}
.v39-event-list{display:grid;gap:5px;max-height:480px;overflow:auto;margin-top:10px}.v39-event-list article{border-left:2px solid var(--blue);padding:7px 10px;background:var(--panel);display:flex;flex-direction:column;gap:4px}.v39-event-list article[hidden],#content tr[hidden]{display:none!important}
.v39-extra-charts{margin-top:12px}.v39-extra-charts summary{cursor:pointer;margin-bottom:8px;color:var(--blue)}
.v39-query-search{display:flex;align-items:center;gap:8px;margin:0 0 9px}.v39-query-search input{max-width:340px}
.v39-source{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:3px;white-space:normal;text-align:left!important}.v39-source small{font-size:10px;line-height:1.3}.v39-control-stop{color:#e99292!important}.light .v39-control-stop{color:#9d3030!important}.v36-source-menu .v25-menu-panel{min-width:260px}
.dense #producttable .producttext{min-width:0}.dense #producttable .producttext .product-link{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.25}.dense #producttable td{padding:4px 6px;font-size:12px}.dense #producttable .photo-button,.dense #producttable .photo-placeholder{width:32px;height:32px;flex-basis:32px}.dense #producttable .photo-button .thumb{width:30px;height:30px}.dense #producttable .v37-stock{display:none}.dense #producttable .v38-skus{margin-top:1px}.dense #producttable .v27-partial{font-size:10px;line-height:1.15}.dense #producttable .producttext small{font-size:10px}.dense #producttable .v38-skus[open] .skulinks{padding:4px 0}
@media(max-width:950px){.v39-passport{grid-template-columns:repeat(2,minmax(0,1fr))}.v39-more{margin-left:0}}

/* V4.0 evidence-focused details */
.v40-recommendation{margin:8px 0 12px}.v40-recommendation h2{margin:0}.v40-rec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}.v40-rec-grid>div{border-left:2px solid var(--blue);padding:4px 10px}.v40-rec-grid p{margin:5px 0}.v40-recommendation>.row{flex-wrap:wrap}.v40-note{border-left:3px solid var(--warn);padding:7px 10px;background:var(--surface)}.v40-report-scope{margin-top:12px}.shell[data-view=detail] .v39-passport{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.shell[data-view=detail] .v39-passport>div{padding:5px 8px;gap:1px}.shell[data-view=detail] .v39-passport-foot{gap:5px}.shell[data-view=detail] .kpi{min-height:82px}.shell[data-view=detail] .producthero{margin:5px 0}.shell[data-view=detail] .v25-detail-tools{padding:4px 0}@media(max-width:950px){.shell[data-view=detail] .v39-passport{grid-template-columns:repeat(2,minmax(0,1fr))}.v40-rec-grid{grid-template-columns:1fr}}

/* V4.2 local experiment workspace */
.v42-plan{padding:14px 0;border-bottom:1px solid var(--line,#334155)}
.v42-plan details{margin:10px 0;padding:8px;border:1px solid var(--line,#334155);border-radius:7px}
.v42-close{margin-top:10px;display:grid;gap:8px}
#v42-create select[multiple]{min-height:155px;width:100%;font-size:13px}
/* V4.3 */
.v43-control-list{max-height:310px;overflow:auto;border:1px solid var(--line,#34445b);border-radius:8px;margin:8px 0}.v43-control-item{display:flex!important;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line,#34445b);cursor:pointer}.v43-control-item[hidden]{display:none!important}.v43-control-item span:last-child{display:grid;gap:3px;min-width:0}.v43-control-item input{width:18px;height:18px;flex:none}.v43-control-item .thumb,.v43-no-photo{width:36px;height:36px;flex:none;object-fit:contain}.v43-picker>select[hidden]{display:none!important}#v43-schedule .row{flex-wrap:wrap;align-items:end;margin-bottom:10px}#v43-schedule label{min-width:110px}#v43-sim-result{margin:12px 0}#v43-saved{margin-top:12px}
/* V5.0: responsive strategy workbench */
.v50-tabs{margin-bottom:12px;flex-wrap:wrap}.v50-form{display:grid;gap:10px;margin:12px 0}.v50-form label{display:grid;gap:5px}.v50-condition{display:grid;grid-template-columns:minmax(160px,2fr) minmax(65px,.5fr) minmax(90px,1fr) 40px;gap:8px;max-width:800px}.v50-condition input,.v50-condition select{width:100%;min-width:0}.v50-form input[name=priority]{width:85px}.v50-form input[name=enabled]{width:auto}.v50-form input[name=title]{min-width:220px}@media(max-width:680px){.v50-condition{grid-template-columns:1fr 60px 95px 35px}.v50-form input[name=title]{min-width:130px}}

/* V5.1 — strategy workspace */
.v51-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;margin:10px 0 14px}.v51-template-grid button{text-align:left;white-space:normal;min-height:38px;padding:7px 9px}.v51-template-grid button small{opacity:.65;margin-right:4px}.v51-template-grid button.current{border-color:#5689db;background:#25456b;color:#fff}.v51-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0}.v51-summary>div{border:1px solid var(--border,#2d3d52);border-radius:8px;padding:10px;display:grid;gap:6px}.v51-summary b{font-size:22px}.v50-tabs button{white-space:normal}.v50-form label:has(input[name=enabled]){display:flex;align-items:center;gap:6px;flex-wrap:wrap}.v50-form select[name=action]{width:auto;max-width:100%}
/* V5.2 */
.v52-intro{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.v52-intro>div{flex:1;min-width:240px}.v52-intro p{margin:6px 0}.v52-modegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-bottom:12px}.v52-modegrid button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;white-space:normal;padding:10px;min-height:60px}.v52-modegrid button small{opacity:.8;font-weight:400}.v52-modegrid button.current{border-color:#5689db;background:#25456b;color:#fff}.v52-research-controls label{display:grid;gap:5px}.v52-research-controls input{max-width:130px}.v52-check{display:flex;align-items:center;gap:8px;margin:10px 0}.v52-check input{width:auto}.v52-scatter{margin:8px auto;max-width:900px}.v52-intro button{white-space:normal}
/* V5.3 compact plan selection and research coverage */
.v53-plan-table table td:first-child,.v53-plan-table table th:first-child{width:54px;min-width:54px;max-width:54px;text-align:center;padding:6px}.v53-plan-table table td:first-child input{width:16px;height:16px;margin:0}.v53-plan-table table td:nth-child(2){width:29%;min-width:240px;max-width:440px}.v53-plan-table .productname{min-width:0;max-width:100%}.v53-plan-table table td:nth-child(4){white-space:normal;min-width:120px}.v53-scope-hints,.v53-relative{border:1px solid var(--line);border-radius:8px;padding:12px;margin:10px 0}.v53-scope-hints small{display:block;margin:5px 0 8px}.v53-scope-hints .row{flex-wrap:wrap}.v53-relative h3{margin:0 0 6px}.v53-relative .tablewrap table td:first-child{width:28%;min-width:160px}

/* V6.0 — brand refresh. Presentation only; preserve all workspace and table behavior. */
:root{--bg:#0b1426;--panel:#12213a;--surface:#172b45;--sidebar:#101e34;--line:#2a4260;--text:#eff5ff;--muted:#a8b9d1;--blue:#63c8ff;--green:#36d6b5;--red:#ff8296;--hover:#203953;--warn:#f4c16c;--v32-panel-end:#101b30;--v32-table-head:#192e48;--shadow:0 3px 12px #02081330;--brand-start:#1e3fa8;--brand-end:#1765bd;--brand-cyan:#25c7ff;--brand-teal:#16b99a}
body.light{--bg:#eff4fa;--panel:#fff;--surface:#f3f7fc;--sidebar:#f8fbff;--line:#d3dfed;--text:#14283e;--muted:#506580;--blue:#175eb5;--green:#087c64;--red:#b92d47;--hover:#e5effb;--warn:#895100;--v32-panel-end:#f9fbfe;--v32-table-head:#eaf2fc;--shadow:0 3px 12px #133e6710}
.shell aside{background:linear-gradient(165deg,var(--sidebar) 0%,var(--bg) 72%)}
.shell aside .logo{gap:7px;padding:2px 0 10px;border-bottom:1px solid var(--line);margin:0 0 8px;min-width:0}
.brand-mark{display:block;flex:none;object-fit:contain;filter:drop-shadow(0 3px 6px #0d62b838)}
.brand-word{display:block;min-width:0;font-size:20px;font-weight:800;line-height:1.12;letter-spacing:-.8px;color:var(--text)}
.brand-word small{display:block;font-size:9px;line-height:1.4;letter-spacing:.05px;color:var(--muted);font-weight:500;margin-top:4px;white-space:nowrap}
.shell aside .brand-mark{width:36px;height:36px}.shell aside .v25-nav-toggle{flex:none;margin-left:auto;padding:3px 5px}
.shell nav>a.active,.shell .ad31-subnav button.active{background:linear-gradient(105deg,#1e3fa8,#1765bd);color:#fff;box-shadow:0 3px 9px #143d8a36}
.shell nav>a.active{box-shadow:inset 2px 0 0 var(--brand-cyan),0 3px 9px #143d8a36}
.primary,.button.primary,button.primary:hover,.button.primary:hover{background:linear-gradient(110deg,#244eae,#1765bd);border-color:#377bc9;color:#fff}
.primary:hover,.button.primary:hover{filter:brightness(1.12)}
.shell .topbar{border-bottom:1px solid var(--line)}
.card{border-radius:11px}.kpi{overflow:hidden}.kpi .value{letter-spacing:-.55px}
body:not(.light) .shell[data-view=overview] .kpis>.kpi,body:not(.light) .shell[data-view=ads] .kpis>.kpi{background:radial-gradient(ellipse at 100% 0%,#1b4f7829,transparent 65%),linear-gradient(145deg,var(--panel),var(--v32-panel-end))}
body:not(.light) .shell[data-view=overview] .kpis>.kpi:hover{border-color:#417da7}
body:not(.light) .chart .series{stroke-width:2.4}body:not(.light) .v32-chart-area{fill-opacity:.16}
.auth.card{position:relative;max-width:460px;margin:clamp(24px,10vh,100px) auto 24px;padding:32px;border-radius:18px;box-shadow:0 14px 55px #0003}
body:has(.auth){min-height:100vh;background:radial-gradient(ellipse at 18% 12%,#16498b50,transparent 43%),radial-gradient(ellipse at 85% 85%,#117b8b28,transparent 44%),var(--bg)}
body.light:has(.auth){background:radial-gradient(ellipse at 18% 12%,#c8dfff,transparent 48%),radial-gradient(ellipse at 85% 85%,#c7f0e9,transparent 44%),var(--bg)}
.auth .brand-auth{gap:13px;margin:0 0 28px}.auth .brand-mark{width:72px;height:72px}.auth .brand-word{font-size:30px;letter-spacing:-1px}.auth .brand-word small{font-size:12px;letter-spacing:.1px}.auth form .primary{min-height:44px}.auth input{min-height:42px}.auth>button[data-action=authmode]{width:100%}.auth>.mini{margin-top:16px;line-height:1.5}
@media(min-width:721px){.shell.nav-small aside .logo{justify-content:center;gap:6px}.shell.nav-small aside .brand-mark{width:34px;height:34px}.shell.nav-small aside .brand-word{display:none}.shell.nav-small aside .v25-nav-toggle{margin:0}}
@media(max-width:720px){.shell aside .logo{padding:0 0 6px;margin-bottom:4px}.shell aside .brand-word{display:block;font-size:19px}.auth.card{margin:24px 12px;padding:22px}.auth .brand-mark{width:56px;height:56px}.auth .brand-word{font-size:25px}.auth .brand-word small{font-size:11px}}
/* V6.1 separate price workspace */
.mp61-connections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mp61-connect{border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:9px;align-content:start}.mp61-market{font-size:17px;letter-spacing:-.3px}.mp61-market.ozon{color:#438bff}.mp61-market.wb{color:#c368e9}.mp61-market.ym{color:#e6b646}.mp61-fields{display:grid;gap:8px;margin:8px 0}.mp61-fields input{width:100%}.mp61-toolbar{flex-wrap:wrap;margin-bottom:10px}.mp61-tablewrap{overflow:auto;max-height:65vh;margin-top:12px}.mp61-table{width:100%;min-width:850px;table-layout:fixed}.mp61-table th:first-child{width:42px}.mp61-table th:nth-child(2){width:32%}.mp61-table th:nth-child(3){width:17%}.mp61-table th:nth-child(4),.mp61-table th:nth-child(5){width:24%}.mp61-table td{vertical-align:middle}.mp61-table small,#mp61-plan small{display:block;white-space:normal}.mp61-product{flex-wrap:nowrap;align-items:center}.mp61-product img{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:6px;flex-shrink:0}.mp61-price{width:125px;max-width:100%;margin-top:6px}.mp61-different{color:#e1ac57}.mp61-table th{position:sticky;top:0;z-index:1;background:var(--panel)}.mp61-table input[type=checkbox],.mp61-toolbar input[type=checkbox]{width:auto;min-width:0}.mp61-connect details{margin:0}.mp61-connect summary{cursor:pointer;color:var(--blue)}@media(max-width:900px){.mp61-connections{grid-template-columns:1fr}.mp61-tablewrap{max-height:none}}

/* V6.3: market readback */
.mp63-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:10px 0}.mp63-status-grid>div{border:1px solid var(--border,#35445a);padding:12px;border-radius:8px}.mp63-status-grid small{display:block;margin-top:5px;white-space:normal}.mp63-results details{padding:8px 0}.mp63-results summary{cursor:pointer}

/* V7.0 Online: small-screen price workspace and input layout */
@media(max-width:720px){.shell[data-view=marketprices] .mp61-connections{grid-template-columns:1fr}.shell[data-view=marketprices] .head .row,.shell[data-view=marketprices] .card>.row{flex-wrap:wrap}.shell[data-view=marketprices] .tablewrap{max-width:100%;overflow-x:auto}.shell[data-view=marketprices] .mp61-connect{min-width:0}.shell[data-view=marketprices] .mp61-connect input{max-width:100%}.shell .head{min-width:0}.shell .head h1{overflow-wrap:anywhere}.auth.card input{font-size:16px}}
