/* Catalog-only layouts. Shared chrome, buttons and table typography live in ui.css. */
.cat-search{display:block;min-width:170px;flex:0 1 310px}.cat-search input{width:100%;height:34px;border:1px solid var(--line,#dde2e8);border-radius:5px;padding:0 11px;background:var(--surface);color:inherit;font:inherit}.cat-type-icon{width:22px;height:22px;flex:none;color:var(--muted)}.cat-type{display:grid;place-items:center;width:37px;height:42px;flex:none;color:var(--muted);background:var(--subtle);border:1px solid var(--line);border-radius:5px}.cat-product{gap:12px;min-width:210px}.cat-product-text{min-width:0}.cat-product-text>strong{font-size:13px;font-weight:650;display:block}.cat-product .sub{font-size:12px;line-height:1.45;margin-top:5px;max-width:275px}.cat-barcode{font-size:11px;letter-spacing:.4px;color:var(--muted);display:block;margin-top:5px}.cat-type-name{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.cat-connected{color:var(--good)!important}.cat-connected:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--good);vertical-align:middle;margin-right:5px}.cat-table-meta,.cat-table-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 17px;font-size:12px;border-bottom:1px solid var(--line,#e5e8ec)}.cat-table-meta{font-weight:550}.cat-table-meta .muted{font-weight:400;font-size:11px}.cat-count{display:inline-grid;place-items:center;border-radius:4px;padding:2px 6px;background:var(--neutral-soft);color:var(--muted);font-size:11px;margin-left:6px}.cat-table-foot{font-size:11px;color:var(--muted);border-bottom:0;border-top:1px solid var(--line,#e5e8ec);padding-top:11px;padding-bottom:11px}.cat-page{padding:0!important;overflow:hidden}.cat-page td{vertical-align:middle}.cat-page table{min-width:1060px}.cat-page td:first-child{width:27%}.cat-page td:last-child{min-width:126px}.cat-pack{display:grid;gap:6px;white-space:nowrap;font-size:12px}.cat-pack>span{display:flex;gap:7px;align-items:baseline}.cat-pack strong{font-size:16px;font-weight:600;min-width:20px;font-variant-numeric:tabular-nums}.cat-pack>span>span{color:var(--muted)}.cat-pack>span>.muted{font-size:12px;color:var(--warn)}.cat-dimensions{display:grid;gap:9px;font-size:12px;white-space:nowrap}.cat-dimensions>span{display:flex;gap:8px}.cat-dimensions small{min-width:31px;color:var(--muted);font-size:10px;font-weight:650;letter-spacing:.3px}.cat-link{display:grid;grid-template-rows:minmax(23px,auto) 26px;justify-items:start;align-content:center;gap:5px}.cat-link .sub{margin-top:-4px;font-size:10px}.cat-link .badge{font-size:11px}.cat-link .btn,.cat-page .btn{font-size:11px;min-height:26px;padding:3px 7px;white-space:nowrap}.cat-connect{background:var(--accent-soft)!important;color:var(--accent)!important;border-color:var(--accent-line)!important}.cat-connect:hover{background:var(--row-hover)!important}.cat-edit{color:var(--warn)!important;background:var(--warn-soft)!important;border-color:var(--warn-line)!important}.cat-edit:hover{background:var(--warn-soft)!important}.cat-nowrap{white-space:nowrap}.cat-empty{padding:52px 24px;text-align:center;color:var(--muted)}.cat-empty h2{font-size:17px}.cat-empty p{line-height:1.6}.cat-photo-trigger{border:0;background:none;padding:0;flex:none;cursor:zoom-in;border-radius:4px;display:block}.cat-art{width:40px;height:50px;border:1px solid #e5e5df;background:#f3f3ee;border-radius:4px;display:grid;place-items:center;padding:6px;flex:none}.cat-art-frame{display:block;width:27px;height:36px;border:4px solid var(--cat-frame,#bda180);padding:2px;background:var(--surface);box-shadow:0 1px 3px #17212b24}.cat-art-print{display:block;width:100%;height:100%;position:relative;background:linear-gradient(145deg,#ebece3,#d6dfd4 66%,#c3cbbd)}.cat-art-print:after{content:'';position:absolute;width:7px;height:7px;right:2px;top:3px;border-radius:50%;background:#f5f0d3;opacity:.9}.cat-art-large{width:214px;height:262px;padding:25px}.cat-art-large .cat-art-frame{width:135px;height:184px;border-width:15px;padding:8px}.cat-art-large .cat-art-print:after{width:31px;height:31px;top:17px;right:11px}.cat-photo-pop{position:fixed;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:7px;box-shadow:0 10px 35px #21344626;z-index:1000;pointer-events:none}.cat-photo-dialog{display:flex;align-items:center;flex-direction:column;padding:12px}.cat-photo-dialog .cat-art-large{width:250px;height:310px}.cat-photo-dialog p{font-size:11px;margin:16px 0 0}.cat-definitions{display:grid;grid-template-columns:140px 1fr;gap:14px 18px;font-size:13px;line-height:1.5;margin:22px 0}.cat-definitions dt{color:var(--muted)}.cat-definitions dd{margin:0;min-width:0;overflow-wrap:anywhere}.cat-detail-product{padding-bottom:18px;border-bottom:1px solid var(--line)}.cat-reconcile{display:grid;grid-template-columns:minmax(270px,360px) minmax(0,1fr);gap:18px}.cat-queue,.cat-reconcile-detail{padding:0!important;overflow:hidden;align-self:start}.cat-queue-row{display:flex;gap:12px;align-items:center;min-height:105px;width:100%;padding:17px 16px;border:0;border-bottom:1px solid var(--line);background:var(--surface);text-align:left;font:inherit;cursor:pointer;color:inherit}.cat-queue-row>span:nth-child(2){flex:1;min-width:0}.cat-queue-row strong{font-size:12px;font-weight:650;display:block}.cat-queue-row .sub{font-size:11px;margin-top:4px;line-height:1.45}.cat-queue-row>span:last-child{font-size:22px;color:var(--muted)}.cat-queue-row:hover{background:var(--row-hover)}.cat-queue-row.selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}.cat-queue-state{display:block;font-size:10px;color:var(--warn);margin-top:8px}.cat-queue-bottom{padding:14px 16px;font-size:10px;color:var(--muted)}.cat-recon-head{display:flex;justify-content:space-between;align-items:center;padding:19px 22px 0}.cat-step-label{font-size:10px;font-weight:600;letter-spacing:1.2px;color:var(--muted)}.cat-recon-product{padding:21px 22px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.cat-recon-product .cat-product{min-width:0}.cat-recon-product .cat-product-text>strong{font-size:15px}.cat-recon-size{font-size:12px;white-space:nowrap}.cat-recon-size .sub{margin-bottom:6px;font-size:10px}.cat-recon-main{padding:23px 22px 0}.cat-target-label>span{font-size:12px;font-weight:600;display:block;margin-bottom:9px}.cat-target-label select{width:100%;min-height:40px;font-size:12px;border:1px solid var(--control-line);background:var(--surface);border-radius:5px;padding:0 11px;color:inherit}.cat-target-card{border:1px solid var(--line);border-radius:6px;background:var(--subtle);padding:18px;margin:16px 0}.cat-target-title{display:flex;align-items:center;gap:9px}.cat-target-title>strong{font-size:13px}.cat-target-title>.badge{margin-left:auto;font-size:10px}.cat-target-card>p{font-size:12px;color:var(--muted);margin:11px 0 18px}.cat-target-bottom{display:flex;justify-content:space-between;gap:25px}.cat-target-bottom>div:last-child{font-size:12px}.cat-target-bottom .sub{font-size:11px;margin-bottom:7px}.cat-choice-placeholder{margin:16px 0;border:1px dashed var(--line);border-radius:6px;padding:35px 20px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:10px;color:var(--muted)}.cat-choice-placeholder .cat-type-icon{width:29px;height:29px;opacity:.8}.cat-choice-placeholder strong{font-size:13px;font-weight:500}.cat-choice-placeholder p{font-size:12px;margin:0;line-height:1.6}.cat-new-fields{margin:18px 0}.cat-new-fields .field{display:block;margin-bottom:14px}.cat-new-fields .field>span{display:block;font-size:11px;margin-bottom:7px;color:var(--muted)}.cat-new-fields input{border:1px solid var(--control-line);border-radius:5px;min-height:39px;padding:8px 10px;font:inherit;width:100%;color:inherit}.cat-source{margin-top:21px;border-top:1px solid var(--line);padding:17px 0;color:var(--muted);font-size:12px}.cat-source summary{cursor:pointer;min-height:25px;line-height:25px}.cat-source .cat-definitions{font-size:12px;margin-bottom:8px}.cat-recon-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin:0 -22px;padding:18px 22px}.cat-recon-actions>.muted{font-size:11px}.cat-recon-actions>.btn{min-height:37px}.cat-form-error{color:var(--bad);font-size:12px}.cat-form-error:not(:empty){padding-bottom:18px}.cat-review-flow{display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:14px;padding:15px 0 23px}.cat-review-flow strong{display:block;margin:9px 0;font-size:14px;overflow-wrap:anywhere}.cat-review-flow .sub{font-size:12px;line-height:1.5}.cat-review-arrow{font-size:22px;color:var(--muted)}.cat-impact{padding:18px;border:1px solid var(--line);background:var(--subtle);border-radius:5px;font-size:13px;line-height:1.6}.cat-impact p{margin:7px 0 0}.cat-demo-note{font-size:11px;color:var(--muted);line-height:1.5;margin-top:17px}.cat-reconcile .notice{margin-bottom:19px;font-size:12px}
@media(max-width:1000px){.cat-reconcile{grid-template-columns:270px minmax(0,1fr);gap:12px}.cat-recon-product{align-items:flex-start;flex-direction:column}.cat-recon-size{padding-left:52px}.cat-target-title{flex-wrap:wrap}.cat-target-title>.badge{margin-left:31px}.cat-target-bottom{gap:12px;flex-wrap:wrap}.cat-recon-actions{flex-wrap:wrap}.cat-table-meta>.muted{max-width:40%;text-align:right;line-height:1.5}}
@media(max-width:700px){.cat-search{flex:none;width:190px;min-width:190px}.cat-table-meta{padding:13px 12px}.cat-table-meta>.muted{display:none}.cat-table-foot{padding:11px 12px;align-items:flex-start;line-height:1.5}.cat-table-foot>span:first-child{max-width:65%}.cat-table-foot>span:last-child{white-space:nowrap}.cat-page .table-wrap{overflow-x:auto}.cat-reconcile{grid-template-columns:minmax(0,1fr);gap:12px}.cat-queue{max-height:270px;overflow:auto}.cat-queue>.cat-table-meta{position:sticky;top:0;background:var(--surface);z-index:1}.cat-queue-row{min-height:95px;padding:12px 15px}.cat-queue-bottom{display:none}.cat-recon-head{padding:16px 16px 0}.cat-recon-product{padding:17px 16px}.cat-recon-main{padding:19px 16px 0}.cat-recon-actions{margin:0 -16px;padding:17px 16px}.cat-recon-actions .btn{width:100%;justify-content:center}.cat-target-card{padding:14px}.cat-target-bottom{display:block}.cat-target-bottom>div:last-child{margin-top:14px}.cat-recon-size{padding-left:0}.cat-review-flow{grid-template-columns:1fr;gap:4px}.cat-review-arrow{transform:rotate(90deg);width:25px}.cat-definitions{grid-template-columns:100px minmax(0,1fr);gap:12px 10px}.cat-photo-pop{display:none}.cat-art-large{max-width:100%}.cat-recon-main>.cat-target-label{width:100%}.cat-new-fields .form-grid{grid-template-columns:1fr 1fr}.cat-target-title>.badge{margin-left:0}.cat-photo-trigger{min-width:44px;min-height:44px}}

.cat-action-space{height:26px}.cat-type-icon{width:29px;height:32px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.cat-article-check{display:table;margin-top:7px;font-size:11px}.cat-dimensions .cat-dimension-row{display:grid;grid-template-columns:35px 1fr;align-items:start;gap:6px}.cat-dimension-row .sub{font-size:10px;margin-top:2px;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.cat-type-filter{position:relative;font-weight:500}.cat-type-filter>summary{cursor:pointer;display:flex;align-items:center;gap:7px;list-style:none;white-space:nowrap}.cat-type-filter>summary::-webkit-details-marker{display:none}.cat-type-filter>summary>.icon{width:14px;height:14px;color:var(--accent)}
.cat-type-filter .control-popover{margin:0;padding:14px;border:1px solid var(--control-line);border-radius:7px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);overflow:auto;font:400 13px/1.5 inherit}
.cat-type-filter .control-popover>label{display:flex;align-items:center;gap:9px;padding:8px 0;cursor:pointer}.cat-type-filter .control-popover .inline{margin-bottom:6px}.cat-type-filter .control-popover strong{font-size:13px}.cat-profile{cursor:zoom-in;border-radius:4px;width:42px;height:50px;padding:4px;background:var(--photo-mat);border:1px solid var(--photo-line);display:grid;place-items:center;flex:none}.cat-profile>svg{width:100%;height:100%}.cat-profile-detail{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center}.cat-profile-large{padding:15px;background:var(--photo-mat);border-radius:6px;height:200px}.cat-profile-large>svg{width:100%;height:100%}.cat-profile-reference{display:block;margin:18px auto 0;max-width:100%;max-height:400px;object-fit:contain}
@media(pointer:coarse){.cat-link{grid-template-rows:minmax(23px,auto) 36px}.cat-action-space{height:36px}.cat-link .btn,.cat-page .btn{min-height:36px}}
