/* UI closeout: scoped to the Ozon collection, publish, and library surfaces. */
.ozon-execution-summary{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:8px;margin:14px 0;padding:10px;border:1px solid #d7e3f2;border-radius:10px;background:#f7faff}
.ozon-execution-metric{display:grid;gap:3px;padding:8px 10px;border-left:3px solid #93c5fd;background:#fff}
.ozon-execution-metric strong{font-size:20px;color:#19324d;line-height:1}
.ozon-execution-metric span{font-size:12px;color:#64748b}
.ozon-execution-card{margin-top:12px;border:1px solid #d7dfeb;border-radius:10px;background:#fff}
.ozon-execution-card>summary{background:#f8fafc}
.status-chip{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#334155;font-size:11px}
.status-chip:last-child{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.ozon-operational-state{display:flex;flex-wrap:wrap;gap:6px}
.ozon-task-summary{background:#fff}
.ozon-task-actions{flex-wrap:wrap}
.ozon-task-actions .ozon-start-all{box-shadow:0 2px 6px #9a341233}
/* Keep the floating helper clear of the primary Ozon action without changing ERP pages. */
body:has(.ozon-page:not([hidden])) .erp-assistant-launcher{bottom:74px}
@media(max-width:1150px){.ozon-execution-summary{grid-template-columns:repeat(3,minmax(100px,1fr))}.ozon-task-table{overflow-x:auto}.ozon-task-header,.ozon-task-row{min-width:930px}}
@media(max-width:600px){.ozon-execution-summary{grid-template-columns:repeat(2,minmax(100px,1fr))}.ozon-execution-metric:last-child{grid-column:1/-1}body:has(.ozon-page:not([hidden])) .erp-assistant-launcher{bottom:62px}}


/* Ozon product library (ozon-library-page.js): metric strip, batch cards, product rows. */
.ozon-library-content{gap:12px}
#ozon-library-status.olib-updated{margin:0 0 10px;font-size:12px;text-align:right}
.olib-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.olib-metric{display:grid;gap:4px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.olib-metric strong{color:#0f172a;font-size:22px;line-height:1.1;font-variant-numeric:tabular-nums}
.olib-metric span{color:#64748b;font-size:12px}
.olib-metric-info{border-top:3px solid #3b82f6}.olib-metric-ok{border-top:3px solid #16a34a}.olib-metric-done{border-top:3px solid #7c3aed}.olib-metric-plain{border-top:3px solid #94a3b8}
.ozon-library-content .ozon-library-filter{grid-template-columns:minmax(220px,2fr) repeat(4,minmax(110px,1fr)) auto;margin:0;padding:12px 14px;border:1px solid #e2e8f0;border-left:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.ozon-library-content .ozon-library-filter label{min-width:0}
.ozon-library-content .ozon-library-filter select,.ozon-library-content .ozon-library-filter input{width:100%;min-width:0}
.olib-filter-actions{display:flex;gap:8px;align-items:end}
.olib-filter-actions button{min-height:36px;padding:0 16px;white-space:nowrap}
.ozon-library-content .olib-filter-actions .secondary{border:1px solid #cbd5e1;background:#fff;color:#475569}
.ozon-library-content .ozon-collection-count{margin:0;color:#64748b;font-size:12px}
.olib-batches{display:grid;gap:10px}
.ozon-library-batch{overflow:hidden;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 1px 2px #0f172a0a}
.ozon-library-batch[open]{border-color:#cbd5e1;box-shadow:0 4px 14px #0f172a12}
.ozon-library-batch>summary{display:grid;grid-template-columns:16px minmax(0,1fr) auto 170px 104px;gap:14px;align-items:center;padding:14px 16px;cursor:pointer;list-style:none}
.ozon-library-batch>summary::-webkit-details-marker,.ozon-library-group>summary::-webkit-details-marker,.olib-product>summary::-webkit-details-marker{display:none}
.ozon-library-batch>summary:hover{background:#f8fafc}
.olib-batch-title{display:flex;align-items:center;gap:10px;min-width:0}
.olib-batch-title strong{overflow:hidden;color:#0f172a;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.olib-batch-counts{display:flex;gap:6px}
.olib-progress{display:grid;gap:4px}
.olib-progress small{color:#64748b;font-size:11px;font-variant-numeric:tabular-nums}
.olib-progress-bar{height:6px;overflow:hidden;border-radius:999px;background:#e2e8f0}
.olib-progress-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#16a34a)}
.olib-chevron{width:8px;height:8px;border-right:2px solid #94a3b8;border-bottom:2px solid #94a3b8;transform:rotate(-45deg);transition:transform .15s}
details[open]>summary>.olib-chevron,details[open]>summary .olib-group-title>.olib-chevron{transform:rotate(45deg)}
.olib-chip{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#475569;font-size:11px;white-space:nowrap}
.olib-chip-store{border-color:#fed7aa;background:#fff7ed;color:#c2410c;font-weight:650}
.olib-badge{display:inline-flex;align-items:center;justify-self:start;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.olib-badge-done{background:#f3e8ff;color:#6d28d9}.olib-badge-ok{background:#dcfce7;color:#15803d}.olib-badge-info{background:#dbeafe;color:#1d4ed8}.olib-badge-warn{background:#fef3c7;color:#b45309}
.ozon-library-batch>summary>.olib-badge{justify-self:end}
.olib-batch-body{display:grid;gap:8px;padding:0 14px 14px;border-top:1px solid #f1f5f9;background:#fbfcfe}
.ozon-library-content .ozon-library-group{margin-top:8px;border:1px solid #e8edf3;border-radius:10px;background:#fff}
.ozon-library-content .ozon-library-group>summary{padding:10px 14px}
.olib-group-title{display:flex;align-items:center;gap:10px;min-width:0}
.olib-group-title strong{overflow:hidden;color:#334155;font-size:13px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}
.ozon-library-content .ozon-library-cards{gap:0;padding:0 8px 8px}
.ozon-library-content .olib-product{margin:0;padding:0;border:0;border-top:1px solid #f1f5f9;border-radius:0;background:transparent}
.ozon-library-content .olib-product:first-child{border-top:0}
.ozon-library-content .olib-product[open]{padding:0;border-radius:8px;background:#f8fafc}
.olib-product-summary{display:grid;grid-template-columns:60px minmax(0,1fr) 96px 104px 150px 16px;gap:14px;align-items:center;padding:10px 8px;list-style:none;cursor:pointer;border-radius:8px}
.olib-product-summary:hover{background:#f8fafc}
.olib-cover{position:relative;display:grid;place-items:center;width:60px;height:60px;overflow:hidden;border:1px solid #e2e8f0;border-radius:8px;background:#f1f5f9}
.olib-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.olib-cover-empty{color:#94a3b8;font-size:11px}
.olib-product-info{display:grid;gap:5px;min-width:0}
.olib-product-title{display:-webkit-box;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.olib-product-ids{display:flex;flex-wrap:wrap;gap:5px}
.olib-product-media{color:#94a3b8;font-size:11px}
.olib-price{display:grid;gap:2px;text-align:right}
.olib-price small{color:#94a3b8;font-size:11px}
.olib-price strong{color:#334155;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.olib-price-main strong{color:#c2410c;font-size:15px}
.olib-product-state{display:grid;gap:3px;justify-items:start}
.olib-product-state small{color:#94a3b8;font-size:11px}
.olib-product-state small.olib-stock-ok{color:#15803d}
.olib-product-body{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:4px 12px 12px 82px}
.olib-fields{display:grid;flex:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px;margin:0}
.olib-fields div{min-width:0}
.olib-fields dt{color:#94a3b8;font-size:11px}
.olib-fields dd{margin:2px 0 0;overflow:hidden;color:#334155;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.olib-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:4px}
.olib-pager button{min-width:88px}
@media(max-width:1150px){.ozon-library-content .ozon-library-filter{grid-template-columns:repeat(4,minmax(0,1fr))}.olib-filter-search{grid-column:1/4}.olib-filter-actions{grid-column:4;grid-row:1;justify-content:flex-end}.ozon-library-batch>summary{grid-template-columns:16px minmax(0,1fr) 150px 104px}.olib-batch-counts{display:none}.olib-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#ozon-library-status.olib-updated{text-align:left}.olib-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.olib-metric{padding:8px 10px}.olib-metric strong{font-size:17px}.olib-metric span{font-size:11px}.ozon-library-batch>summary>.olib-badge{grid-row:1;grid-column:3}.ozon-library-content .ozon-library-filter{grid-template-columns:1fr 1fr}.olib-filter-search,.olib-filter-actions{grid-column:1/-1;grid-row:auto}.olib-filter-actions button{flex:1}.ozon-library-batch>summary{grid-template-columns:16px minmax(0,1fr) auto;row-gap:8px}.olib-progress{grid-column:2/-1}.olib-batch-title{flex-wrap:wrap}.olib-product-summary{grid-template-columns:52px minmax(0,1fr);gap:6px 10px;align-items:start}.olib-price-main{grid-column:2;display:flex;gap:6px;align-items:baseline;text-align:left}.olib-cover{width:52px;height:52px}.olib-price:not(.olib-price-main),.olib-product-summary>.olib-chevron{display:none}.olib-product-state{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.olib-product-body{flex-direction:column;align-items:stretch;padding:4px 10px 12px}.olib-fields{grid-template-columns:1fr 1fr}}

/* UI polish 2026-10-14: one-row run summary, four-stage bars, wrapping row actions. */
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-summary{grid-template-columns:repeat(8,minmax(0,1fr))}
.ozon-execution-summary>p{grid-column:1/-1;margin:0}
.ozon-execution-metric:last-child{grid-column:auto}
@media(max-width:1100px){:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ozon-stage-bars{display:grid;gap:5px;margin:2px 0}
.ozon-stage-bar{display:grid;grid-template-columns:28px minmax(40px,1fr) auto;align-items:center;gap:6px;font-size:12px;color:#64748b}
.ozon-stage-track{height:6px;border-radius:3px;background:#e2e8f0;overflow:hidden}
.ozon-stage-fill{display:block;height:100%;border-radius:3px;background:#16a34a}
.ozon-stage-count{color:#19324d;font-variant-numeric:tabular-nums}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-actions button{white-space:normal;line-height:1.3}
@media(min-width:1101px){:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-progress{grid-template-columns:minmax(120px,.8fr) minmax(300px,2.4fr) minmax(170px,1.2fr) 112px}}
#ozon-status:empty{display:none}
.ozon-category-lookup:not([open]){display:inline-block;margin:6px 0 0;padding:0;border:0;background:none}
.ozon-category-lookup:not([open])>summary{padding:4px 0;color:#2563eb;font-size:13px;font-weight:500;cursor:pointer}
