/* Catalog Studio: dense browsing, with full editing tools in a modal. */
.content:has(.compact-studio){padding:18px 22px}.content:has(.compact-studio)>.top{margin-bottom:10px}.content:has(.compact-studio)>.top h1{font-size:25px;margin:0}.content:has(.compact-studio)>.top .muted{font-size:12px}
.compact-studio{min-width:0}.cs-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.cs-heading h2{margin:0;font-size:18px}.compact-studio button{min-height:32px;padding:6px 10px;white-space:nowrap}.compact-studio input,.compact-studio select{min-height:32px;padding:6px 9px}.compact-studio [data-workspace-filters]{grid-template-columns:2fr 1fr 1fr;gap:12px}.compact-studio [data-workspace-filters] label{font-size:11px;margin:0 0 3px}.compact-studio [data-workspace-filters]+p{margin:5px 0;display:inline-block}.compact-studio #catalog-search-count{display:inline-block;margin:5px 0 5px 12px;font-size:12px}.compact-studio #studio-filter-empty{display:none}.cs-filter-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 0 8px}.cs-tabs{display:flex;flex-wrap:wrap;gap:6px}.cs-tabs button{border-radius:18px;font-size:12px}.cs-tabs span{margin-left:6px;opacity:.9}.cs-sort{display:flex;align-items:center;gap:6px;font-size:11px;margin:0}.cs-sort select{font-size:12px;max-width:200px}.cs-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eaf2fc;border:1px solid #cbdcf1;padding:8px 10px;border-radius:8px;margin-bottom:8px;font-size:12px}.cs-select-page{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}.cs-select-page input,.cs-checkbox input{width:17px;height:17px;min-height:0;accent-color:#285b96}.cs-bulk-price{display:flex;align-items:center;gap:6px;margin:0 0 0 auto;white-space:nowrap}.cs-bulk-price input{width:85px}.cs-bulk select{max-width:190px;font-size:12px}#cs-error{margin:0 0 5px;font-size:12px;min-height:0}#cs-error:empty{display:none}.cs-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.studio-group.cs-product{position:relative;border:1px solid var(--line);border-radius:9px;background:white;margin:0;padding:8px 10px 5px;min-width:0;height:158px;overflow:hidden}.cs-checkbox{position:absolute;left:8px;top:8px;margin:0;z-index:1}.cs-photo-state{position:absolute;right:7px;top:6px;font-size:9px;color:#395c57;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cs-photo{height:63px;margin:2px auto 3px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:11px;background:#f8fafc;border-radius:5px}.cs-photo img{height:100%;max-width:100%;object-fit:contain}.cs-product h3{font-size:12px;line-height:17px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cs-code{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:15px}.cs-price-row{display:flex;align-items:center;gap:5px;margin-top:4px;min-width:0}.cs-price-row input{width:0;flex:1;min-width:0;font-size:12px;min-height:28px;height:28px;padding:3px 5px}.cs-price-row button{min-height:28px;height:28px;font-size:12px;padding:3px 8px}.cs-price-row>span{font-size:12px}.cs-dirty{display:block;min-height:10px;font-size:9px;color:#87550e;line-height:11px}.cs-footer{position:sticky;bottom:0;z-index:2;background:#f3f6faf5;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;padding:9px 0 4px;margin-top:9px;font-size:11px}.cs-footer .row{gap:6px}.cs-footer select{max-width:120px;font-size:11px}.cs-footer button{font-size:11px}.cs-footer #cs-draft-count{width:100%;font-size:11px}.cs-empty{padding:20px;background:white}.cs-edit-dialog{width:min(900px,96vw)}.cs-edit-dialog .studio-editor{min-width:0}.cs-edit-dialog .studio-preview{width:88px;height:88px;object-fit:contain}.cs-edit-dialog textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:8px;padding:10px}.cs-edit-dialog details{padding:10px 0;border-top:1px solid var(--line)}.cs-edit-dialog h2{font-size:20px;margin:0}.cs-edit-dialog h3{margin:14px 0 4px}.cs-edit-dialog summary{cursor:pointer}.cs-review-dialog{width:min(850px,96vw)}.cs-review-dialog h2{font-size:20px}.cs-review-table{max-height:55vh;overflow:auto}.cs-review-table article{border-bottom:1px solid var(--line);padding:10px 0}.cs-review-table h3{margin:0;font-size:15px}.cs-review-table ul{padding-left:20px;margin:7px 0}.cs-review-dialog button{min-height:40px}
@media(max-width:1200px){.cs-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cs-bulk-price{margin-left:0}.cs-bulk{gap:6px}.cs-bulk button,.cs-bulk select{font-size:11px}}
@media(min-width:1250px) and (max-height:850px){.studio-group.cs-product{height:142px}.cs-photo{height:47px}.content:has(.compact-studio){padding-top:12px}.compact-studio #catalog-search-count{margin-top:2px;margin-bottom:2px}}
@media(max-width:900px){.cs-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cs-filter-row{align-items:flex-start;flex-direction:column}.cs-bulk-price input{width:90px}}
@media(max-width:600px){.content:has(.compact-studio){padding:12px}.cs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-studio [data-workspace-filters]{grid-template-columns:1fr}.cs-heading{align-items:flex-start}.cs-heading .row{gap:5px;flex-wrap:wrap;justify-content:flex-end}.cs-heading button{font-size:11px}.cs-tabs button{font-size:11px}.cs-bulk{align-items:center}.cs-bulk-price{width:100%;margin:0}.cs-bulk select{flex:1;max-width:100%;min-width:0}.cs-footer{position:static}.cs-footer>.row{flex-wrap:wrap}.studio-group.cs-product{height:174px}.cs-photo{height:72px}.cs-price-row input,.cs-price-row button{min-height:34px;height:34px}.cs-checkbox{padding:4px;left:5px;top:5px}.cs-photo-state{font-size:8px}.cs-edit-dialog{padding:12px}.cs-edit-dialog .studio-head{align-items:flex-start}}
.cs-mobile-tools{display:none}@media(max-width:600px){.cs-mobile-tools{display:block;margin:8px 0 12px;width:100%;text-align:left;min-height:40px!important}.cs-mobile-tools::after{content:' ▾';float:right}.cs-tools:not(.expanded){display:none}.cs-tools.expanded{padding-bottom:8px}.cs-grid{margin-top:8px}}
.cs-review-dialog,.cs-edit-dialog{overflow-wrap:anywhere}

.compact-studio [data-workspace-filters]+p{display:none}.compact-studio #catalog-search-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.cs-bulk button{font-size:11px;padding:6px 8px}
@media(min-width:1000px) and (max-height:850px){.compact-studio [data-workspace-filters] label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
