/* Collection Planner keeps the established compact comparison workspace. */
body[data-tile="collections"]{--collection-ink:#172033;--collection-soft:#8a97aa;--collection-good:#15803d;--collection-bad:#b91c1c;--line:#d6dee9;--muted:#5f6f86;background:#eef2f6;color:var(--collection-ink)}
body[data-tile="collections"] main{position:relative;max-width:1800px;padding:22px 24px 48px}
body[data-tile="collections"] .panel{border:1px solid var(--line);border-radius:4px;padding:14px;box-shadow:none;margin:0}
body[data-tile="collections"] h1{font-size:26px;letter-spacing:-.4px;margin:0 0 7px;line-height:1.2}
body[data-tile="collections"] h2{font-size:15px;letter-spacing:0;font-weight:650;margin:0 0 10px}
body[data-tile="collections"] button{min-height:35px;padding:7px 10px;border:1px solid #aebccc;border-radius:4px;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap}
body[data-tile="collections"] button:disabled{cursor:not-allowed}
body[data-tile="collections"] button.primary{background:#2563eb;border-color:#2563eb;color:#fff}
body[data-tile="collections"] button.primary:hover{background:#1d4ed8}
body[data-tile="collections"] input,body[data-tile="collections"] select,body[data-tile="collections"] textarea{font:inherit;font-size:12px;color:var(--collection-ink);border:1px solid #aebccc;border-radius:4px;background:#fff;min-width:0;max-width:100%;box-sizing:border-box}
body[data-tile="collections"] input,body[data-tile="collections"] select{min-height:35px;height:35px;padding:6px 8px;margin:0;width:100%}
body[data-tile="collections"] input[type="checkbox"]{min-height:0;height:15px;width:15px;padding:0;accent-color:#2563eb}
body[data-tile="collections"] label{display:grid;gap:4px;margin:0;font-size:11px;line-height:1.35;font-weight:500;color:var(--muted)}
body[data-tile="collections"] .filters{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
body[data-tile="collections"] .filters label{min-width:0}
body[data-tile="collections"] a{color:#1d4ed8}
body[data-tile="collections"] .collection-heading{padding-right:57%;min-height:82px;margin-bottom:8px}
body[data-tile="collections"] .collection-subtitle{font-size:12px;line-height:1.5;color:var(--muted);max-width:660px;margin:0 0 6px}
body[data-tile="collections"] .collection-store{font-size:11px;color:var(--muted);margin:0;overflow-wrap:anywhere}
body[data-tile="collections"] .collection-head-actions{position:absolute;top:24px;right:24px;max-width:57%;display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;align-items:center}
body[data-tile="collections"] .collection-notice{font-size:12px;line-height:1.5;margin:0 0 12px;color:var(--muted);min-height:18px}
body[data-tile="collections"] .collection-connect{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;margin-bottom:12px;background:#fff}
body[data-tile="collections"] .connection-note{margin:0 0 7px;font-size:12px;line-height:1.45;color:var(--muted)}
body[data-tile="collections"] .connection-note b{color:var(--collection-ink);font-weight:650}
body[data-tile="collections"] .collection-membership-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body[data-tile="collections"] #membership-progress{font-size:11px;line-height:1.45;color:var(--muted)}
body[data-tile="collections"] .collection-membership-status button{min-height:29px;padding:5px 8px;font-size:11px}
body[data-tile="collections"] .collection-refresh-host .filters{align-items:center;gap:7px}
body[data-tile="collections"] .collection-refresh-host .filters button{font-size:11px;min-height:31px;padding:6px 8px}
body[data-tile="collections"] .collection-refresh-host .filters p{flex-basis:100%;margin:1px 0 0;font-size:11px;line-height:1.45;color:var(--muted)}
body[data-tile="collections"] .collection-toolbar-panel{margin-bottom:12px}
body[data-tile="collections"] .collection-toolbar{display:grid;grid-template-columns:minmax(200px,1.6fr) minmax(120px,1fr) minmax(150px,1.2fr) minmax(180px,1.4fr) minmax(125px,1fr) minmax(120px,1fr);gap:10px;align-items:end}
body[data-tile="collections"] .collection-image-tools{border-top:1px solid #e7ecf3;padding-top:10px;margin-top:12px;gap:8px}
body[data-tile="collections"] .collection-image-tools label{width:135px}
body[data-tile="collections"] .collection-image-tools .collection-position-field{width:115px}
body[data-tile="collections"] .collection-tool-note{font-size:11px;line-height:1.4;color:var(--muted);padding-bottom:8px}
body[data-tile="collections"] .collection-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px}
body[data-tile="collections"] .collection-metric{background:#fff;border:1px solid var(--line);border-radius:4px;padding:12px 14px;display:grid;gap:4px;min-width:0}
body[data-tile="collections"] .collection-metric>span{font-size:11px;color:var(--muted)}
body[data-tile="collections"] .collection-metric>strong{font-size:20px;font-weight:650;line-height:1.2;min-height:24px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body[data-tile="collections"] .collection-metric>small{display:block;font-size:10px;min-height:14px;color:var(--muted);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-tile="collections"] .collection-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start}
body[data-tile="collections"] .collection-workspace.visual-active{grid-template-columns:minmax(0,1fr)}
body[data-tile="collections"] .collection-workspace.visual-active .collection-side{display:grid;grid-template-columns:minmax(0,1fr)}
body[data-tile="collections"] .collection-workspace.visual-active .collection-side>section:not(.collection-approval){display:none}
body[data-tile="collections"] .collection-workspace.visual-active .collection-approval{grid-column:1/-1}
body[data-tile="collections"] .collection-workspace.visual-active .collection-review-actions{display:flex;flex-wrap:wrap}
body[data-tile="collections"] .collection-workspace.visual-active .collection-review-actions button{width:auto}
body[data-tile="collections"] .collection-main{padding:0;min-width:0;overflow:hidden}
body[data-tile="collections"] .collection-view-head{padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}
body[data-tile="collections"] .collection-view-head h2{font-size:14px;margin:0 0 5px}
body[data-tile="collections"] #count{font-size:11px;line-height:1.45;color:var(--muted);margin:0}
body[data-tile="collections"] .table-wrap{max-width:100%;overflow-x:auto}
body[data-tile="collections"] table{width:100%;min-width:1000px;border-collapse:collapse;table-layout:auto}
body[data-tile="collections"] th,body[data-tile="collections"] td{font-variant-numeric:tabular-nums;font-size:11px;padding:8px 9px;border-bottom:1px solid #e3e9f1;vertical-align:middle;text-align:right;min-width:0}
body[data-tile="collections"] th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:600;background:#f6f8fb;color:#7b8ba0;white-space:nowrap}
body[data-tile="collections"] th:first-child,body[data-tile="collections"] td:first-child{min-width:0;width:45px;text-align:center}
body[data-tile="collections"] th:nth-child(2),body[data-tile="collections"] td:nth-child(2),body[data-tile="collections"] th:nth-child(3),body[data-tile="collections"] td:nth-child(3){width:54px;text-align:center;min-width:0}
body[data-tile="collections"] th:nth-child(4),body[data-tile="collections"] td:nth-child(4){width:25%;min-width:190px;text-align:left}
body[data-tile="collections"] th:nth-child(9),body[data-tile="collections"] td:nth-child(9){width:22%;min-width:155px;max-width:260px;text-align:left;line-height:1.4}
body[data-tile="collections"] th:nth-child(10),body[data-tile="collections"] td:nth-child(10){width:134px;min-width:134px;text-align:left}
body[data-tile="collections"] tbody tr:nth-child(even){background:#f8fafc}
body[data-tile="collections"] tbody tr:hover{background:#eff5ff}
body[data-tile="collections"] tfoot td{background:#f1f5fa;font-weight:650;font-size:10px;border-top:1px solid var(--line);line-height:1.4}
body[data-tile="collections"] .collection-image{position:relative;background:#f0f3f7;display:flex;align-items:center;justify-content:center;color:var(--muted);overflow:hidden;font-size:9px;border-radius:4px}
body[data-tile="collections"] .collection-image img{display:block;width:100%;height:100%;object-fit:contain}
body[data-tile="collections"] #table-panel td:nth-child(4)>.collection-image{float:left;width:44px;height:58px;margin-right:9px}
body[data-tile="collections"] #table-panel td:nth-child(4)>button{display:block;min-height:0;white-space:normal;padding:0;border:0;background:transparent;text-align:left;color:var(--collection-ink);font-size:12px;font-weight:650;line-height:1.35;margin:0 0 5px}
body[data-tile="collections"] #table-panel td:nth-child(4)>small{display:block;color:var(--muted);font-size:10px;line-height:1.35}
body[data-tile="collections"] .collection-product-cell{display:grid;grid-template-columns:44px minmax(0,1fr);gap:9px;align-items:center}
body[data-tile="collections"] .collection-product-cell .collection-image{width:44px;height:58px}
body[data-tile="collections"] .collection-product-copy{min-width:0}
body[data-tile="collections"] .collection-product-name{display:block;min-height:0;white-space:normal;padding:0;border:0;background:transparent;text-align:left;font-size:12px;font-weight:650;color:var(--collection-ink);line-height:1.35}
body[data-tile="collections"] .collection-product-copy small,body[data-tile="collections"] .collection-meta{display:block;color:var(--muted);font-size:10px;line-height:1.35;margin-top:4px}
body[data-tile="collections"] .collection-reason{line-height:1.4}
body[data-tile="collections"] .collection-card-body .collection-reason{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body[data-tile="collections"] .collection-move{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:24px;border-radius:4px;background:#eef2f6;color:var(--muted);font-size:11px;font-weight:700;padding:0 5px}
body[data-tile="collections"] .collection-move.up{background:#e7f5eb;color:var(--collection-good)}
body[data-tile="collections"] .collection-move.down{background:#fdebe9;color:var(--collection-bad)}
body[data-tile="collections"] .collection-actions{display:flex;gap:4px;flex-wrap:nowrap;align-items:center}
body[data-tile="collections"] .collection-actions button{font-size:10px;font-weight:600;min-height:26px;height:26px;padding:0 6px}
body[data-tile="collections"] .collection-pager{justify-content:space-between;padding:10px 12px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
body[data-tile="collections"] .collection-pager button{min-height:30px;padding:5px 9px;font-size:11px}
body[data-tile="collections"] .collection-side{display:grid;gap:14px;min-width:0}
body[data-tile="collections"] .collection-summary{display:grid;gap:8px}
body[data-tile="collections"] .collection-summary>div{display:flex;align-items:start;justify-content:space-between;gap:12px;border-bottom:1px solid #e6ebf1;padding-bottom:8px;font-size:11px;color:var(--muted);line-height:1.4}
body[data-tile="collections"] .collection-summary>div:last-child{border-bottom:0;padding-bottom:0}
body[data-tile="collections"] .collection-summary b,body[data-tile="collections"] .collection-summary strong{color:var(--collection-ink);font-weight:600;text-align:right;max-width:62%;overflow-wrap:anywhere}
body[data-tile="collections"] .collection-approval{border-color:#b8cbeb;background:#f8fbff}
body[data-tile="collections"] .collection-approval p{font-size:11px;line-height:1.55;overflow-wrap:anywhere;margin:8px 0;color:var(--muted)}
body[data-tile="collections"] .collection-review-actions{display:grid;gap:7px}
body[data-tile="collections"] .collection-review-actions button{white-space:normal;width:100%;min-height:35px}
body[data-tile="collections"] #approval{display:grid;gap:8px;border-top:1px solid #d7e2f2;padding-top:10px;margin-top:10px}
body[data-tile="collections"] #approval p{margin:0}
body[data-tile="collections"] #approval label{font-size:11px;color:var(--collection-ink)}
body[data-tile="collections"] #apply-confirm{width:100%;max-width:100%;margin:0}
body[data-tile="collections"] #apply-status{font-weight:600;color:var(--collection-ink)}
body[data-tile="collections"] .collection-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body[data-tile="collections"] .collection-preview-card{padding:0;min-height:0;white-space:normal;text-align:left;border:1px solid var(--line);border-radius:4px;background:#f6f8fb;overflow:hidden;min-width:0}
body[data-tile="collections"] .collection-preview-photo{position:relative;aspect-ratio:3/4;background:#eef2f6}
body[data-tile="collections"] .collection-preview-photo .collection-image{height:100%;width:100%;border-radius:0}
body[data-tile="collections"] .collection-preview-rank{position:absolute;top:6px;left:6px;min-width:24px;height:24px;border-radius:999px;background:#172033bf;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;padding:0 5px}
body[data-tile="collections"] .collection-preview-name{display:block;white-space:normal;padding:8px;font-size:11px;line-height:1.3;font-weight:600;color:var(--collection-ink);min-height:45px;margin:0}
body[data-tile="collections"] #visual-panel{padding:14px}
body[data-tile="collections"] .collection-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0}
body[data-tile="collections"] .collection-card{border:1px solid var(--line);border-radius:4px;background:#fff;overflow:hidden;content-visibility:auto;contain-intrinsic-size:320px}
body[data-tile="collections"] .collection-card>.collection-image,body[data-tile="collections"] .collection-card-photo{position:relative;aspect-ratio:3/4;height:auto;background:#eef2f6}
body[data-tile="collections"] .collection-card-photo>.collection-image{height:100%;width:100%;border-radius:0}
body[data-tile="collections"] .collection-card-rank{position:absolute;top:7px;left:7px;min-width:26px;height:26px;border-radius:999px;background:#172033bf;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;padding:0 7px}
body[data-tile="collections"] .collection-card-move{position:absolute;top:7px;right:7px}
body[data-tile="collections"] .collection-card-body{padding:9px;display:grid;gap:6px}
body[data-tile="collections"] .collection-card-body>strong{color:#1d4ed8;font-size:11px}
body[data-tile="collections"] .collection-card-title{padding:0;border:0;background:transparent;text-align:left;font-size:12px;font-weight:650;line-height:1.3;min-height:32px;white-space:normal;color:var(--collection-ink)}
body[data-tile="collections"] .collection-card-body small{color:var(--muted);font-size:10px;line-height:1.4}
body[data-tile="collections"] .collection-card-body p{font-size:10px;line-height:1.4;margin:0;color:var(--muted)}
body[data-tile="collections"] .collection-card-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;border-top:1px solid var(--line);padding-top:7px}
body[data-tile="collections"] .collection-card-stats label{font-size:9px;text-transform:uppercase;letter-spacing:.03em;gap:3px}
body[data-tile="collections"] .collection-card-stats span,body[data-tile="collections"] .collection-card-stats strong{font-size:11px;font-weight:600;color:var(--collection-ink);overflow-wrap:anywhere}
body[data-tile="collections"] .collection-card .collection-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
body[data-tile="collections"] .collection-card .collection-actions button{width:100%;padding:0 3px}
body[data-tile="collections"] .collection-visual-more{margin-top:12px}
body[data-tile="collections"] .collection-empty{padding:24px 14px;text-align:center;color:var(--muted);font-size:12px;line-height:1.5;margin:0}
body[data-tile="collections"] #csv-panel{margin:14px;padding:12px;background:#f6f8fb;border:1px solid var(--line);border-radius:4px;font-size:12px}
body[data-tile="collections"] #csv-text{display:block;width:100%;margin:10px 0 0;padding:10px;box-sizing:border-box;font-family:ui-monospace,monospace;font-size:11px}
body[data-tile="collections"] .collection-data-checks{margin-top:16px;font-size:12px}
body[data-tile="collections"] .collection-data-checks>summary{font-size:12px;font-weight:650;color:var(--collection-ink);cursor:pointer}
body[data-tile="collections"] .collection-data-note{font-size:11px;line-height:1.5;color:var(--muted);margin:10px 0}
body[data-tile="collections"] .collection-date-form{gap:8px;align-items:end;margin:10px 0}
body[data-tile="collections"] .collection-date-form>label{width:145px}
body[data-tile="collections"] .collection-window-shortcuts{display:flex;gap:6px;align-items:center;padding-left:8px;font-size:11px;color:var(--muted)}
body[data-tile="collections"] .collection-window-shortcuts button{font-size:11px}
body[data-tile="collections"] .collection-saved-form{margin:12px 0;align-items:center;gap:12px}
body[data-tile="collections"] .collection-saved-form label{width:310px;max-width:100%}
body[data-tile="collections"] .collection-saved-form a,body[data-tile="collections"] .collection-ga-controls a{font-size:11px}
body[data-tile="collections"] .collection-data-source{border-top:1px solid #e3e9f1;margin:12px 0;padding-top:8px}
body[data-tile="collections"] .collection-evidence{font-size:11px;color:var(--muted);line-height:1.55;margin:5px 0;overflow-wrap:anywhere}
body[data-tile="collections"] .collection-ga-controls{align-items:center;margin:12px 0 7px}
body[data-tile="collections"] .boundary{color:var(--muted);font-size:11px;line-height:1.55;margin:12px 0 0}
body[data-tile="collections"] .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body[data-tile="collections"] dialog{border:1px solid #c9d5e6;border-radius:8px;padding:18px 20px;max-height:calc(100vh - 32px);max-width:min(960px,calc(100vw - 24px));width:90%;overflow:auto;color:var(--collection-ink);box-shadow:0 22px 65px #17203345}
body[data-tile="collections"] dialog::backdrop{background:#13213d83}
body[data-tile="collections"] .collection-dialog-head{display:flex;gap:16px;align-items:start;justify-content:space-between;margin-bottom:10px}
body[data-tile="collections"] .collection-dialog-head h2{font-size:18px;margin:0 0 5px}
body[data-tile="collections"] .collection-dialog-head p{font-size:12px;color:var(--muted);margin:0}
body[data-tile="collections"] #ranking-editor{border:0;padding:0;margin:0;display:block}
body[data-tile="collections"] #ranking-editor>summary{display:none}
body[data-tile="collections"] #ranking-editor p{font-size:12px;line-height:1.55;color:var(--muted)}
body[data-tile="collections"] #ranking-editor fieldset{border:1px solid var(--line);border-radius:4px;margin:14px 0;padding:12px}
body[data-tile="collections"] #ranking-editor legend{font-size:12px;font-weight:650;color:var(--collection-ink);padding:0 5px}
body[data-tile="collections"] #ranking-editor .filters label{flex:1;min-width:120px}
body[data-tile="collections"] #ranking-editor .filters input,body[data-tile="collections"] #ranking-editor .filters select{max-width:100%}
body[data-tile="collections"] #ranking-editor textarea{width:100%;max-width:100%;padding:8px;resize:vertical;margin-top:4px}
body[data-tile="collections"] #ranking-editor label:has(input[type="checkbox"]){display:flex;align-items:center;gap:6px}
body[data-tile="collections"] .collection-dialog-actions{display:flex;justify-content:flex-end;margin-bottom:8px}
body[data-tile="collections"] #details{max-width:640px}
body[data-tile="collections"] #details #position{max-width:180px;margin:5px 0 10px}

body[data-tile="collections"] .collection-product-title{display:block;min-height:0;white-space:normal;padding:0;border:0;background:transparent;text-align:left;font-size:12px;font-weight:650;line-height:1.3;color:var(--collection-ink)}
body[data-tile="collections"] .collection-product-info{overflow:hidden;min-width:0}
body[data-tile="collections"] .collection-product-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;color:var(--muted);font-size:9px;line-height:1.3}
body[data-tile="collections"] .collection-product-meta>span{padding:2px 4px;background:#edf2f7;border-radius:3px}
body[data-tile="collections"] .collection-product-meta>span.image-evidence{background:#e1edff;color:#1d4ed8}
body[data-tile="collections"] .collection-rank{position:absolute;top:6px;left:6px;min-width:24px;height:24px;border-radius:999px;background:#172033bf;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;padding:0 5px}
body[data-tile="collections"] .collection-preview-card>.collection-image{width:100%;aspect-ratio:3/4;border-radius:0}
body[data-tile="collections"] .collection-card>.collection-image>.collection-move{position:absolute;top:7px;right:7px}
body[data-tile="collections"] .collection-card-stats>div{min-width:0}
body[data-tile="collections"] .collection-card-stats>div>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
body[data-tile="collections"] .collection-card-stats>div>b{display:block;font-size:11px;margin-top:3px;font-weight:600;color:var(--collection-ink);overflow-wrap:anywhere}
body[data-tile="collections"] .collection-date-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:end;border-top:1px solid #e7ecf3;padding-top:10px;margin-top:12px}
body[data-tile="collections"] .collection-toolbar-panel .collection-date-form{flex:1 1 auto;margin:0}
body[data-tile="collections"] .collection-image-disclosure{flex:0 0 auto;min-width:0;margin:0}
body[data-tile="collections"] .collection-image-disclosure[open]{flex-basis:100%}
body[data-tile="collections"] .collection-image-disclosure>summary{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;min-height:35px;padding:7px 10px;border:1px solid #aebccc;border-radius:4px;background:#fff;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;list-style:none}
body[data-tile="collections"] .collection-image-disclosure>summary::-webkit-details-marker{display:none}
body[data-tile="collections"] .collection-image-disclosure>summary::before{content:"▸"}
body[data-tile="collections"] .collection-image-disclosure[open]>summary::before{content:"▾"}
body[data-tile="collections"] .collection-image-disclosure>summary:hover{background:#f6f8fb}
body[data-tile="collections"] .collection-image-disclosure>summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

@media(max-width:1450px){
 body[data-tile="collections"] .collection-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-tile="collections"] .collection-metric>strong{font-size:18px}
}
@media(max-width:1180px){
 body[data-tile="collections"] .collection-workspace{grid-template-columns:minmax(0,1fr)}
 body[data-tile="collections"] .collection-side{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-tile="collections"] .collection-side>section:last-child{grid-column:1/-1}
 body[data-tile="collections"] .collection-preview{grid-template-columns:repeat(5,minmax(0,1fr))}
 body[data-tile="collections"] .collection-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-tile="collections"] .collection-heading{padding-right:54%}
 body[data-tile="collections"] .collection-head-actions{max-width:52%}
}
@media(max-width:900px){
 body[data-tile="collections"] main{padding:18px 16px 36px}
 body[data-tile="collections"] .collection-heading{padding-right:0;min-height:0;margin-bottom:12px}
 body[data-tile="collections"] .collection-head-actions{position:static;max-width:none;justify-content:flex-start;margin:0 0 12px}
 body[data-tile="collections"] .collection-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-tile="collections"] .collection-connect{grid-template-columns:minmax(0,1fr);gap:10px}
 body[data-tile="collections"] .collection-preview{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:620px){
 body[data-tile="collections"] main{padding:18px 10px 36px}
 body[data-tile="collections"] h1{font-size:22px}
 body[data-tile="collections"] .collection-side{grid-template-columns:minmax(0,1fr)}
 body[data-tile="collections"] .collection-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-tile="collections"] .collection-preview{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-tile="collections"] .collection-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-tile="collections"] .collection-image-tools .collection-tool-note{flex-basis:100%;padding-bottom:0}
 body[data-tile="collections"] .collection-window-shortcuts{padding-left:0;flex-wrap:wrap}
 body[data-tile="collections"] .collection-date-form>label{width:calc(50% - 4px)}
 body[data-tile="collections"] #ranking-editor .filters label{flex-basis:100%}
 body[data-tile="collections"] dialog{padding:14px}
}
@media print{
 body[data-tile="collections"]{background:#fff}
 body[data-tile="collections"] #controls,body[data-tile="collections"] .collection-heading{display:block!important}
 body[data-tile="collections"] main{max-width:none;padding:0}
 body[data-tile="collections"] .topbar,body[data-tile="collections"] .collection-head-actions,body[data-tile="collections"] .collection-connect,body[data-tile="collections"] .collection-toolbar-panel,body[data-tile="collections"] .collection-side,body[data-tile="collections"] .collection-pager,body[data-tile="collections"] .collection-data-checks,body[data-tile="collections"] .collection-actions,body[data-tile="collections"] .collection-visual-more,body[data-tile="collections"] #csv-panel{display:none!important}
 body[data-tile="collections"] .collection-heading{padding:0;min-height:0}
 body[data-tile="collections"] .collection-workspace{display:block}
 body[data-tile="collections"] .collection-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
 body[data-tile="collections"] .collection-metric{padding:7px}
 body[data-tile="collections"] .collection-metric>strong{font-size:14px}
 body[data-tile="collections"] .table-wrap{overflow:visible}
 body[data-tile="collections"] table{min-width:0}
 body[data-tile="collections"] th,body[data-tile="collections"] td{font-size:9px;padding:6px 5px}
 body[data-tile="collections"] th:nth-child(4),body[data-tile="collections"] td:nth-child(4){min-width:120px}
 body[data-tile="collections"] th:nth-child(9),body[data-tile="collections"] td:nth-child(9){min-width:110px}
 body[data-tile="collections"] th:nth-child(10),body[data-tile="collections"] td:nth-child(10){display:none}
 body[data-tile="collections"] .collection-card{break-inside:avoid}
}

/* Reset more-specific shared report controls and avoid placing actions over preview notices. */
body[data-tile="collections"] .collection-heading{padding:0;min-height:0}
body[data-tile="collections"] .collection-head-actions{position:static;max-width:none;margin:0 0 12px;justify-content:flex-end}
body[data-tile="collections"] .filters label{flex:0 1 auto;font-size:11px;line-height:1.35;margin:0}
body[data-tile="collections"] .filters input,body[data-tile="collections"] .filters select{height:35px;min-height:35px;padding:6px 8px;margin:0;font-size:12px}
body[data-tile="collections"] .collection-date-form>label{width:145px}
body[data-tile="collections"] .collection-date-form>.collection-quick-field{width:160px}
body[data-tile="collections"] .collection-card-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-tile="collections"] .collection-card-body{align-content:start}
body[data-tile="collections"] .collection-card-title{align-self:start;min-height:32px}
body[data-tile="collections"] .collection-card .collection-product-meta{align-content:start;align-items:start;min-height:17px;margin-top:0}
body[data-tile="collections"] .collection-card-stats>div{min-width:0}
body[data-tile="collections"] .collection-card-stats b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-tile="collections"] .collection-product-margin{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
/* Shared tracks preserve full titles/tags while lining up each card in a row. */
@supports(grid-template-rows:subgrid){
 body[data-tile="collections"] .collection-card{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;content-visibility:visible}
 body[data-tile="collections"] .collection-card-body{grid-row:span 5;grid-template-rows:subgrid;row-gap:6px}
}
@media(min-width:900px) and (max-width:1450px){body[data-tile="collections"] .collection-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){body[data-tile="collections"] .collection-head-actions{justify-content:flex-start}body[data-tile="collections"] .collection-date-form>label{width:calc(50% - 4px)}}

@media(min-width:1181px) and (max-width:1450px){body[data-tile="collections"] .collection-toolbar{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1350px){
 body[data-tile="collections"] .collection-workspace{grid-template-columns:minmax(0,1fr)}
 body[data-tile="collections"] .collection-side{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-tile="collections"] .collection-side>section:last-child{grid-column:1/-1}
 body[data-tile="collections"] .collection-preview{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:620px){body[data-tile="collections"] .collection-side{grid-template-columns:minmax(0,1fr)}body[data-tile="collections"] .collection-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}

body[data-tile="collections"] .collection-preview-card>.collection-image{position:relative}
