body #app dialog#productEditor{box-sizing:border-box!important;padding:0!important;width:min(740px,calc(100vw - 32px))!important;max-width:740px!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important;border:1px solid var(--line)!important;border-radius:18px!important;background:#fff!important}
body #app #productEditor:not([open]){display:none!important}
body #app #productEditor #productFormCard:not(.hidden-form){display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;max-height:calc(100dvh - 34px)!important;overflow:hidden!important;margin:0!important;padding:0!important}
body #app #productEditor .pe-header{display:flex!important;position:static!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:22px 26px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:#fff!important;width:auto!important;height:auto!important;min-height:0!important}
body #app #productEditor .pe-eyebrow{font-size:9px!important;font-weight:600!important;letter-spacing:1.4px!important;color:var(--muted)!important}
body #app #productEditor h3{font-size:21px!important;line-height:1.4!important;letter-spacing:-.5px!important;font-weight:700!important;margin:5px 0 0!important}
body #app #productEditor .pe-close{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:25px!important;font-weight:400!important;background:#f5f5f1!important;color:var(--ink)!important;border:0!important;border-radius:50%!important}
body #app #productEditor .pe-body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:0 26px!important}
body #app #productEditor .pe-section{margin:0!important;padding:20px 0!important;border:0!important;border-bottom:1px solid var(--line)!important}
body #app #productEditor .pe-section:last-child{border:0!important}
body #app #productEditor h4{font-size:13px!important;font-weight:700!important;margin:0 0 16px!important;line-height:1.4!important}
body #app #productEditor .field{display:flex!important;flex-direction:column!important;gap:7px!important;margin:0!important;min-width:0!important}
body #app #productEditor .field>label{font-size:12px!important;font-weight:600!important;color:var(--ink)!important;line-height:1.5!important;margin:0!important}
body #app #productEditor input:not([type=checkbox]):not([type=radio]),body #app #productEditor select{width:100%!important;box-sizing:border-box!important;margin:0!important;min-height:42px!important;border:1px solid #d9dfd4!important;border-radius:9px!important;padding:10px 12px!important;background:#fff!important;color:var(--ink)!important;font-size:13px!important;line-height:1.5!important;box-shadow:none!important}
body #app #productEditor small,body #app #productEditor .pe-note,body #app #productEditor .pe-photo-help{display:block!important;font-size:11px!important;line-height:1.6!important;color:var(--muted)!important;margin:0!important}
body #app #productEditor .pe-note{margin-top:10px!important}
body #app #productEditor .pe-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important}
body #app #productEditor .pe-product-top{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:20px!important}
body #app #productEditor .pe-product-fields{display:grid!important;gap:14px!important}
body #app #productEditor .pe-photo-pick{display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;width:112px!important;padding:0!important;background:none!important;border:0!important;color:var(--module-strong)!important;font-size:11px!important;font-weight:600!important}
body #app #productEditor .photo-editor-preview{display:grid!important;place-items:center!important;box-sizing:border-box!important;width:112px!important;height:112px!important;background:var(--module-soft)!important;border:1px dashed #d3d9ca!important;border-radius:12px!important;overflow:hidden!important;font-size:11px!important;font-weight:400!important}
body #app #productEditor .photo-editor-preview img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
body #app #productEditor .pe-photo-help{margin-top:8px!important}
body #app #productEditor .pe-text-button{padding:5px 0!important;font-size:10px!important;background:none!important;border:0!important;color:var(--muted)!important}
body #app #productEditor .pe-kind{display:flex!important;flex-wrap:wrap!important;gap:10px!important;border:0!important;padding:0!important;margin:16px 0 0!important}
body #app #productEditor .pe-kind legend{font-size:12px!important;font-weight:600!important;margin-bottom:8px!important}
body #app #productEditor .pe-kind label{display:flex!important;align-items:center!important;gap:8px!important;padding:10px 13px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:9px!important;font-size:12px!important;color:var(--ink)!important;cursor:pointer!important}
body #app #productEditor .pe-kind label:has(input:checked){background:var(--module-soft)!important;border-color:var(--module-strong)!important}
body #app #productEditor input[type=radio]{accent-color:var(--module-strong)!important;width:15px!important;height:15px!important;margin:0!important;min-height:0!important}
body #app #productEditor .pe-margin{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;padding:14px 16px!important;border-radius:11px!important;background:var(--module-soft)!important;margin-top:16px!important}
body #app #productEditor .pe-margin span{display:block!important;font-size:10px!important;color:var(--muted)!important;line-height:1.5!important}
body #app #productEditor .pe-margin strong{display:block!important;font-size:20px!important;font-weight:600!important;line-height:1.4!important;margin-top:4px!important;color:var(--ink)!important}
body #app #productEditor .pe-switch-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin:0!important;padding:12px 0!important}
body #app #productEditor .pe-switch-row label{display:block!important;margin:0!important;color:var(--ink)!important;font-size:12px!important;cursor:pointer!important}
body #app #productEditor .pe-switch-row strong{font-size:12px!important;font-weight:600!important}
body #app #productEditor .pe-switch-row small{margin-top:4px!important}
body #app #productEditor input[role=switch]{appearance:none!important;flex:none!important;box-sizing:border-box!important;position:relative!important;width:40px!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0!important;border:1px solid #cbd1c6!important;border-radius:30px!important;background:#dce1d6!important;cursor:pointer!important}
body #app #productEditor input[role=switch]:checked{background:var(--module-strong)!important;border-color:var(--module-strong)!important}
body #app #productEditor input[role=switch]::after{content:''!important;position:absolute!important;width:16px!important;height:16px!important;top:3px!important;left:3px!important;border-radius:50%!important;background:#fff!important}
body #app #productEditor input[role=switch]:checked::after{left:19px!important}
body #app #productEditor #peStockFields{margin:10px 0!important}
body #app #productEditor .pe-combo-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;margin:18px 0 12px!important}
body #app #productEditor h5{font-size:12px!important;font-weight:600!important;margin:0 0 4px!important}
body #app #productEditor .pe-combo-heading p{font-size:11px!important;color:var(--muted)!important;line-height:1.6!important;margin:0!important}
body #app #productEditor .pe-component-row{display:grid!important;grid-template-columns:minmax(0,1fr) 75px 32px!important;align-items:center!important;gap:8px!important;margin-top:8px!important}
body #app #productEditor .pe-component-remove{font-size:20px!important;width:32px!important;height:32px!important;padding:0!important;background:#f6f5f1!important;border:0!important;border-radius:8px!important;color:#9c3732!important}
body #app #productEditor .pe-footer{display:block!important;position:static!important;padding:16px 26px!important;background:#fff!important;border-top:1px solid var(--line)!important;margin:0!important;font-size:12px!important}
body #app #productEditor .pe-footer>div{display:flex!important;justify-content:flex-end!important;gap:10px!important}
body #app #productEditor button.primary,body #app #productEditor button.secondary{width:auto!important;min-height:40px!important;margin:0!important;padding:10px 16px!important;border-radius:9px!important;font-size:12px!important;font-weight:600!important}
body #app #productEditor #productEditorError{color:#a3352d!important;font-size:12px!important;line-height:1.6!important;margin:0 0 12px!important}
body #app #productEditor [hidden]{display:none!important}
body #app #productEditor :focus-visible{outline:3px solid #d9c596!important;outline-offset:2px!important}
@media(max-width:520px){body #app dialog#productEditor{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}body #app #productEditor #productFormCard:not(.hidden-form){max-height:calc(100dvh - 18px)!important}body #app #productEditor .pe-header{padding:18px!important}body #app #productEditor .pe-body{padding:0 18px!important}body #app #productEditor .pe-footer{padding:14px 18px!important}body #app #productEditor .pe-grid{grid-template-columns:1fr!important;gap:14px!important}body #app #productEditor .pe-product-top{grid-template-columns:1fr!important;gap:16px!important}body #app #productEditor .pe-photo{display:flex!important;align-items:center!important;gap:14px!important}body #app #productEditor .pe-footer>div button{flex:1!important}body #app #productEditor h3{font-size:19px!important}}
/* v137: small inline category creator, inside the existing product dialog. */
body #app #productEditor .pe-category-create{display:grid!important;gap:9px!important;margin-top:5px!important;padding:13px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fafbf7!important}
body #app #productEditor .pe-category-create>label{font-size:11px!important;line-height:1.5!important;font-weight:600!important;color:var(--ink)!important;margin:0!important}
body #app #productEditor .pe-category-create>div{display:flex!important;justify-content:flex-end!important;gap:8px!important}
body #app #productEditor .pe-category-create button{min-height:34px!important;font-size:11px!important;padding:8px 12px!important}
body #app #productEditor .pe-category-notice{font-size:11px!important;line-height:1.6!important;margin:4px 0 0!important;color:var(--module-strong)!important}
body #app #productEditor .pe-category-notice.is-error{color:#a3352d!important}
body #app #productEditor .pe-category-create[hidden],body #app #productEditor .pe-category-notice[hidden]{display:none!important}
body #app #productEditor #pCategoryManage{margin-top:8px!important;font-size:12px!important;min-height:32px!important;padding:5px 10px!important}
body #app #productEditor #pCategoryManager[hidden],body #app #productEditor #pcmNameField[hidden],body #app #productEditor #pcmTargetField[hidden]{display:none!important}
body #app #productEditor #pCategoryManager p{font-size:12px!important;line-height:1.5!important;white-space:normal!important;margin:6px 0!important}
body #app #productEditor #pCategoryManager select,body #app #productEditor #pCategoryManager input{width:100%!important;min-width:0!important}

body #app #productEditor #pCategoryManage[hidden]{display:none!important}
