.px-dialog{border:1px solid var(--border-subtle);border-radius:18px;width:min(620px,calc(100vw - 32px));max-height:90dvh;padding:0;color:var(--text-primary);box-shadow:0 25px 90px #143b3033}.px-dialog.px-wide{width:min(1180px,calc(100vw - 48px))}.px-dialog::backdrop{background:#183f3866;backdrop-filter:blur(3px)}.px-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--border-subtle)}.px-dialog h2{font-size:22px;margin:5px 0 0}.px-dialog header small{color:var(--text-secondary);font-size:10px;letter-spacing:.08em}.px-body{padding:24px;max-height:calc(90dvh - 180px);overflow:auto}.px-body h3{font-size:18px;margin:0 0 10px}.px-body p{font-size:13px;line-height:1.65}.px-dialog>footer{padding:16px 24px;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--border-subtle);background:var(--surface);flex-wrap:wrap}.px-error{color:var(--danger-text);font-size:12px;margin:0;padding:0 24px 8px}.px-error:empty{display:none}.px-steps{display:flex;list-style:none;padding:0;margin:0 0 26px;gap:24px;flex-wrap:wrap}.px-steps li{font-size:12px;display:flex;align-items:center;gap:8px;color:var(--text-secondary)}.px-steps b{display:grid;place-items:center;border-radius:50%;width:24px;height:24px;background:var(--surface-muted)}.px-steps .current{color:var(--success-text);font-weight:600}.px-steps .current b{background:var(--surface-muted)}.px-start{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;padding:12px 0}.px-file-icon{display:grid;place-items:center;width:58px;height:64px;border:1px solid var(--border-subtle);border-radius:13px;background:var(--surface-muted);color:var(--success-text);font-weight:700;font-size:13px;margin-bottom:20px}.px-note{font-size:12px!important;color:var(--text-secondary)}.px-drop{border:2px dashed var(--border-subtle);border-radius:16px;min-height:240px;background:var(--surface);display:flex;justify-content:center;align-items:center;flex-direction:column;gap:14px;padding:25px;text-align:center;cursor:pointer}.px-drop strong{font-size:15px}.px-drop span,.px-drop small{font-size:12px;color:var(--text-secondary)}.px-drop input{width:100%;font-size:12px}.px-drop.dragging{background:var(--surface-muted);border-color:var(--border-subtle)}.px-stats{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:12px;margin:16px 0}.px-stats>div{border:1px solid var(--border-subtle);border-radius:12px;padding:16px;background:var(--surface)}.px-stats strong{display:block;font-size:26px}.px-stats span{font-size:12px;color:var(--text-secondary)}.px-review-title{display:flex;justify-content:space-between;align-items:center}.px-review-title p{margin:0;color:var(--text-secondary);overflow-wrap:anywhere}.px-preview{overflow:auto;border:1px solid var(--border-subtle);border-radius:12px;max-height:360px}.px-preview table{border-collapse:collapse;min-width:100%;font-size:12px}.px-preview th{position:sticky;top:0;background:var(--surface-muted);color:var(--text-secondary);font-weight:600;text-align:left;white-space:nowrap;z-index:1}.px-preview td,.px-preview th{padding:12px;border-bottom:1px solid var(--border-subtle);vertical-align:top}.px-preview td:nth-child(2){min-width:160px}.px-preview td:nth-child(8){min-width:240px;max-width:400px}.px-preview ul{margin:7px 0 0;padding-left:15px;color:var(--warning-text);font-size:11px;line-height:1.6}.px-status{border-radius:6px;padding:4px 6px;white-space:nowrap;font-size:11px;background:var(--warning-bg);color:var(--warning-text)}.px-status.ready{background:var(--surface-muted);color:var(--success-text)}.px-status.blocked{background:var(--danger-bg);color:var(--danger-text)}.px-preview .text-btn{white-space:nowrap}.px-pagination{display:flex;justify-content:space-between;align-items:center;margin:12px 0 20px;gap:12px}.px-pagination small{color:var(--text-secondary)}.px-pagination>div{display:flex;gap:8px}.px-pagination .btn{font-size:11px}.px-barcode,.px-export-options{border:1px solid var(--border-subtle);border-radius:12px;padding:16px;margin:16px 0}.px-barcode legend,.px-export-options legend{font-size:13px;font-weight:600;padding:0 8px}.px-barcode label,.px-export-options label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;margin:8px 0}.px-dialog input[type=radio]{accent-color:#1b8862;width:16px;height:16px}.px-barcode small,.px-export-options small{display:block;font-size:11px;color:var(--text-secondary)}.px-finished{text-align:center;padding:16px}.px-success{display:grid;place-items:center;border-radius:50%;width:48px;height:48px;background:var(--surface-muted);color:var(--success-text);margin:0 auto 16px;font-size:24px}.px-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.px-dialog label input:not([type=radio]):not([type=file]),.px-dialog select,.px-dialog textarea{border:1px solid var(--control-border);border-radius:9px;padding:11px;min-width:0;width:100%;font:inherit;font-size:13px;background:var(--surface);color:var(--text-primary)}.px-edit-form label{font-size:12px;display:flex;flex-direction:column;gap:7px}.px-master-actions{display:flex;gap:9px;margin-top:18px}.px-bulk{display:flex;align-items:center;gap:12px;padding:8px 22px}.px-bulk small{font-size:11px;color:var(--text-secondary)}.catalog-toolbar [data-px-barcode-filter]{height:38px;max-width:170px;border:1px solid var(--control-border);border-radius:9px;color:var(--text-secondary);background:var(--surface);font:inherit;font-size:12px;padding:0 10px}
@media(max-width:640px){.px-dialog,.px-dialog.px-wide{width:100vw;max-width:none;max-height:100dvh;height:100dvh;border:0;border-radius:0;margin:0;display:flex;flex-direction:column}.px-dialog:not([open]){display:none}.px-dialog>header{padding:18px}.px-body{max-height:none;flex:1;padding:18px}.px-dialog>footer{padding:14px 18px}.px-start{grid-template-columns:1fr;gap:15px}.px-start>div .px-file-icon{display:none}.px-drop{min-height:170px}.px-steps{gap:10px}.px-steps li{font-size:10px;gap:5px}.px-steps b{width:20px;height:20px}.px-stats{grid-auto-flow:row;grid-template-columns:1fr 1fr;gap:8px}.px-stats>div{padding:12px}.px-stats strong{font-size:23px}.px-stats span{font-size:10px}.px-edit-form{grid-template-columns:1fr}.px-dialog h2{font-size:19px}.px-pagination{align-items:flex-start;flex-direction:column}.px-bulk{flex-wrap:wrap;padding:10px 14px}.catalog-toolbar [data-px-barcode-filter]{max-width:100%;width:100%}}

.px-drop{position:relative}.px-drop input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.px-drop:focus-within{outline:2px solid var(--focus-ring);outline-offset:3px}.px-drop .px-file-pick{font-size:12px;color:var(--success-text);background:var(--surface)}
/* Compact import entry; review and commit retain their existing workspace. */
.px-dialog.px-import-start{width:min(800px,calc(100vw - 40px))}.px-import>header{padding:20px 24px}.px-subtitle{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--text-secondary)}.px-import .px-steps{gap:22px;margin:0 0 20px;flex-wrap:nowrap}.px-import .px-steps li{font-size:11px;gap:7px}.px-import .px-steps b{width:22px;height:22px;flex-shrink:0}.px-import-start .px-body{padding:20px 24px}.px-import-start .px-start{gap:16px;padding:0;align-items:stretch}.px-start-card{border:1px solid var(--border-subtle);border-radius:16px;padding:18px;min-width:0;background:var(--surface);box-shadow:0 2px 8px #1e4c3810}.px-card-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}.px-start-card h3{font-size:15px;margin:0}.px-start-card p{font-size:12px;margin:10px 0 14px;color:var(--text-secondary);line-height:1.6}.px-start-card .px-file-icon{width:34px;height:38px;border-radius:8px;font-size:9px;margin:0;flex-shrink:0}.px-start-card .btn{font-size:12px;min-height:36px;padding:8px 12px}.px-template-tips{padding-left:17px;margin:16px 0 12px;font-size:11px;line-height:1.65;color:var(--text-secondary)}.px-template-tips li+li{margin-top:5px}.px-guide-link{font-size:11px;padding:0;min-height:28px}.px-start-card .px-drop{border-width:1px;min-height:196px;padding:18px 12px;margin-top:14px;gap:10px}.px-start-card .px-drop strong{font-size:13px;max-width:100%;overflow-wrap:anywhere}.px-start-card .px-drop span,.px-start-card .px-drop small{font-size:11px}.px-drop.has-file{border-style:solid;background:var(--surface-muted)}.px-selected-label{color:var(--success-text)!important;font-weight:600}.px-guide{margin:0;display:grid;gap:17px}.px-guide dt{font-size:13px;font-weight:650;margin-bottom:5px}.px-guide dd{margin:0;font-size:12px;line-height:1.65;color:var(--text-secondary)}.px-import>footer{padding:14px 24px}.px-import>footer .btn{font-size:12px}
@media(max-width:700px){.px-import-start .px-start{grid-template-columns:1fr}.px-start-card .px-drop{min-height:164px}.px-import .px-steps{gap:12px;justify-content:space-between}.px-import .px-steps li{font-size:10px;gap:5px}}
@media(max-width:640px){.px-dialog.px-import-start{width:100vw}.px-import>header{padding:18px}.px-import-start .px-body{padding:18px}.px-import>footer{padding:14px 18px}.px-start-card{padding:16px}.px-import .px-steps b{width:20px;height:20px}.px-import .px-steps li{align-items:flex-start;line-height:1.5}.px-import .px-steps{gap:8px}.px-import .px-subtitle{max-width:280px}.px-import>header .icon-btn{flex-shrink:0}}
/* Review step: a compact product list, with secondary fields kept in details. */
.px-dialog.px-reviewing{display:flex;flex-direction:column;width:min(1180px,calc(100vw - 40px));height:min(900px,94dvh);max-height:94dvh}.px-reviewing>header,.px-reviewing>footer{flex-shrink:0}.px-reviewing .px-body{flex:1;min-height:0;max-height:none;padding:20px 24px}.px-reviewing .px-steps{margin-bottom:16px}.px-review-stats{margin:0 0 14px;gap:10px}.px-review-stats>div{padding:12px 15px;background:var(--surface);border-radius:10px}.px-review-stats strong{font-size:24px;margin-top:5px}.px-review-stats .ready{background:var(--surface-muted);color:var(--success-text)}.px-review-stats .invalid{background:var(--surface);color:var(--warning-text)}.px-review-stats .missing{background:var(--info-bg);color:var(--info-text)}.px-file-status{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;margin-bottom:14px}.px-file-status strong{font-weight:500;overflow-wrap:anywhere}.px-file-status small{display:block;font-size:11px;color:var(--text-secondary);margin-top:4px}.px-warning{color:var(--warning-text)}.px-good{color:var(--success-text)}.px-reviewing .px-barcode{margin:0 0 16px;padding:9px 14px 12px;background:var(--surface)}.px-reviewing .px-barcode p{margin:2px 0 6px;font-size:12px}.px-barcode-choices{display:flex;flex-wrap:wrap;gap:8px 24px}.px-reviewing .px-barcode label{font-size:12px;margin:4px 0 8px}.px-review-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 12px}.px-quick-filters{display:flex;gap:6px;flex-wrap:wrap}.px-quick-filters .btn{font-size:11px;min-height:34px;padding:7px 10px;font-weight:500;gap:7px}.px-quick-filters .btn b{font-size:10px;border-radius:4px;background:var(--surface-muted);padding:2px 5px}.px-quick-filters .btn.active{border-color:var(--border-subtle);background:var(--surface-muted);color:var(--success-text)}.px-review-tools input{min-width:220px;flex:1;max-width:350px;font-size:12px;padding:10px 12px;border:1px solid var(--control-border);border-radius:8px}.px-review-table{max-height:none;overflow:visible;border-radius:10px}.px-review-table table{width:100%;table-layout:fixed}.px-review-table th:first-child{width:24%}.px-review-table th:nth-child(2){width:13%}.px-review-table th:nth-child(3){width:12%}.px-review-table th:nth-child(4){width:10%}.px-review-table th:nth-child(5){width:17%}.px-review-table th:nth-child(6){width:16%}.px-review-table th:last-child{width:8%}.px-review-table td,.px-review-table th{padding:11px 10px;font-size:11px;overflow-wrap:anywhere;min-width:0!important}.px-review-table th{position:static}.px-review-table td strong{font-size:12px;font-weight:600}.px-review-table small,.px-review-cards small{display:block;font-size:10px;color:var(--text-secondary);margin-top:5px;line-height:1.5}.px-review-table .px-status{white-space:normal;display:inline-block;line-height:1.4}.px-code{font-size:11px;overflow-wrap:anywhere}.px-auto{font-size:10px;background:var(--surface-muted);color:var(--success-text);border-radius:5px;padding:4px 7px;display:inline-block}.px-muted{color:var(--text-secondary)}.px-row-details{margin-top:7px;font-size:11px}.px-row-details summary{cursor:pointer;color:var(--success-text);font-size:10px}.px-row-details dl{display:grid;gap:8px;margin:10px 0 0}.px-row-details dt{font-size:10px;color:var(--text-secondary)}.px-row-details dd{font-size:11px;margin:3px 0 0;overflow-wrap:anywhere}.px-review-table .px-problem-row td{padding:0 10px 10px;background:var(--surface)}.px-row-problems{font-size:11px;color:var(--warning-text);padding:9px 10px;border-left:2px solid var(--warning-border);background:var(--surface);border-radius:0 5px 5px 0}.px-row-problems strong{font-size:11px!important}.px-row-problems ul{padding-left:17px;margin:4px 0 0;font-size:11px;line-height:1.6}.px-reviewing .text-btn{font-size:11px}.px-import-summary{width:100%;display:flex;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--border-subtle);margin-bottom:3px}.px-import-summary span{font-size:11px;color:var(--text-secondary)}.px-import-summary strong{display:block;font-size:13px;color:var(--text-primary);margin-top:4px}.px-reviewing>footer{padding:12px 24px;box-shadow:0 -4px 15px #234b3510}.px-reviewing [data-px-back]{margin-right:auto}.px-reviewing .px-pagination{margin-bottom:0}.px-preview-empty{text-align:center;padding:24px;color:var(--text-secondary)}.px-mapping{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--warning-border);background:var(--surface);padding:10px 12px;border-radius:8px;margin:8px 0;font-size:12px}.px-mapping button{flex-shrink:0}.px-edit-issues{font-size:12px;line-height:1.7;color:var(--warning-text);padding-left:18px}.px-edit-identity{color:var(--text-secondary);margin-top:0}.px-repair-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.px-repair-actions .btn{font-size:11px}.px-review-cards{display:none}
@media(max-width:900px){.px-review-tools input{max-width:none;width:100%}.px-review-table td,.px-review-table th{padding:9px 6px;font-size:10px}.px-review-table td strong{font-size:11px}.px-review-table .px-status{font-size:10px}.px-review-table .text-btn{white-space:normal}.px-file-status{align-items:flex-start}.px-mapping{flex-wrap:wrap}}
@media(max-width:640px){.px-dialog.px-reviewing{width:100vw;height:100dvh;max-height:100dvh}.px-reviewing .px-body{padding:16px}.px-reviewing .px-review-stats{grid-template-columns:1fr 1fr}.px-review-stats>div{padding:10px 12px}.px-review-stats strong{font-size:22px}.px-file-status{flex-direction:column;gap:7px}.px-barcode-choices{display:block}.px-reviewing .px-barcode label{align-items:flex-start;line-height:1.5;flex-wrap:nowrap}.px-barcode input{flex-shrink:0}.px-review-table{display:none}.px-review-cards{display:grid;gap:10px}.px-review-cards article{border:1px solid var(--border-subtle);border-radius:10px;padding:13px;min-width:0}.px-mobile-title{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.px-mobile-title strong{font-size:13px;overflow-wrap:anywhere}.px-mobile-title .px-status{white-space:normal;max-width:105px;flex-shrink:0;font-size:10px}.px-review-cards article p{font-size:11px;margin:10px 0}.px-mobile-barcode{margin:9px 0}.px-mobile-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.px-mobile-actions .px-row-details{flex:1}.px-mobile-actions>button{margin-top:7px}.px-import-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-bottom:9px}.px-import-summary span{font-size:10px}.px-import-summary strong{font-size:12px;margin-top:2px}.px-reviewing>footer{padding:10px 16px;gap:6px}.px-reviewing>footer .btn{font-size:10px;padding:8px 9px}.px-reviewing .px-pagination{flex-direction:row;align-items:center}.px-reviewing .px-pagination .btn{padding:7px;font-size:10px}.px-reviewing .px-pagination small{font-size:10px}.px-review-tools{margin-top:14px}.px-quick-filters{gap:5px}.px-quick-filters .btn{font-size:10px;padding:6px 8px}.px-review-tools input{min-width:0}.px-reviewing .px-row-details dl{grid-template-columns:1fr 1fr}.px-master-actions{flex-wrap:wrap}}
.px-reviewing .px-barcode label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:9px;line-height:1.5}.px-reviewing .px-barcode input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;margin:1px 0 0;align-self:start}
