*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f5f7fa;color:#1a202c}.centered{text-align:center;margin-top:4rem}.login-card{max-width:360px;margin:12vh auto 0;background:#fff;padding:2rem;border-radius:8px;box-shadow:0 1px 4px #0000001a}.login-logo{display:block;width:140px;height:140px;margin:0 auto 1.25rem;border-radius:8px}.login-card h1{font-size:1.25rem;margin:0 0 1rem}.login-card form{display:flex;flex-direction:column;gap:.75rem}.login-card input{padding:.6rem;border:1px solid #cbd5e0;border-radius:4px;font-size:1rem}.login-card button{padding:.6rem;background:#2b6cb0;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer}.login-card button:disabled{opacity:.6}.error{color:#c53030;font-size:.9rem}.shell{display:flex;flex-direction:column;height:100%}.shell header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:.6rem 1.25rem;border-bottom:1px solid #e2e8f0;font-weight:600;flex:0 0 auto}.shell header nav{display:flex;align-items:center;gap:1rem}.shell header .app-logo{height:32px;width:32px;border-radius:4px;flex:0 0 auto}.shell header .app-name{margin-right:.5rem}.shell header nav button{padding:.4rem .8rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer;font-weight:500}.shell header nav button.nav-active{background:#2b6cb0;color:#fff;border-color:#2b6cb0}.shell header>span>button{margin-left:.5rem;padding:.3rem .7rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer}.shell main{flex:1 1 auto;min-height:0;display:flex}.shell main>*{flex:1 1 auto;min-width:0}.data-grid{display:flex;flex-direction:column;height:100%;width:100%}.data-grid-toolbar{display:flex;align-items:center;gap:1rem;padding:.5rem .75rem;background:#fff;border-bottom:1px solid #e2e8f0;flex:0 0 auto}.data-grid-toolbar button{padding:.35rem .8rem;border:1px solid #2b6cb0;background:#2b6cb0;color:#fff;border-radius:4px;cursor:pointer}.data-grid-toolbar input[type=text]{padding:.35rem .6rem;border:1px solid #cbd5e0;border-radius:4px;font-size:.9rem}.search-input{position:relative;display:inline-flex;align-items:center;max-width:100%}.search-input input[type=text]{box-sizing:border-box;width:100%;padding:.35rem 1.75rem .35rem .6rem;border:1px solid #cbd5e0;border-radius:4px;font-size:.9rem}.search-input .search-input-clear{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;padding:0;border:none;border-radius:50%;background:transparent;color:#718096;cursor:pointer}.search-input .search-input-clear:hover{background:#e2e8f0;color:#2d3748}.data-grid-toolbar .jump-to-row{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:#718096}.data-grid-toolbar .jump-to-row input[type=number]{width:6.5rem;padding:.35rem .6rem;border:1px solid #cbd5e0;border-radius:4px;font-size:.9rem}.data-grid-toolbar button.filter-toggle,.data-grid-toolbar button.undo-btn{background:#fff;color:#2b6cb0}.data-grid-toolbar button.undo-btn:disabled{opacity:.5;cursor:default}.undo-notice{color:#92400e;background:#fef3c7;border:1px solid #fcd34d;border-radius:4px;padding:.15rem .5rem;font-size:.85rem}@keyframes cell-undone-flash{0%,40%{background-color:#fcd34d;box-shadow:inset 0 0 0 2px #d97706}to{box-shadow:inset 0 0 0 2px transparent}}.data-grid .ag-cell.cell-undone{animation:cell-undone-flash 3s ease-out}.data-grid-toolbar button.filter-toggle.filter-active{background:#2b6cb0;color:#fff}.delete-row-btn{width:100%;height:100%;border:none;background:transparent;cursor:pointer;font-size:1rem;line-height:1;padding:0}.delete-row-btn:hover{background:#fed7d7}.data-grid-count{color:#718096;font-size:.85rem}.data-grid-message{color:#2f855a;font-size:.85rem}.cell-tooltip-count{font-weight:600;color:#9ae6b4;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.2);white-space:normal}.cell-tooltip-count-over{color:#feb2b2}.vertical-editor-charcount{font-size:.8rem;color:#718096;margin-top:4px}.vertical-editor-charcount-over{color:#c53030;font-weight:600}.cell-tooltip{max-width:420px;max-height:300px;overflow-y:auto;white-space:pre-wrap;word-break:break-word;background:#2d3748;color:#fff;padding:8px 12px;border-radius:4px;font-size:.85rem;line-height:1.4;box-shadow:0 2px 10px #00000040}.header-tooltip-trigger{position:relative;cursor:help}.header-tooltip-popup{position:fixed;z-index:20;background:#2d3748;color:#fff;padding:14px 16px;border-radius:8px;font-size:.95rem;font-weight:400;line-height:1.55;white-space:normal;box-shadow:0 8px 28px #00000052}.data-grid-error{color:#c53030;font-size:.85rem}.data-grid-wrapper{flex:1 1 auto;min-height:0}.data-grid-letter-header{background:#f5f7fa;color:#718096;font-size:.75rem;font-weight:700;justify-content:center}.data-grid .ag-row.primary-row-highlight{background-color:#eef4f9}.data-grid .ag-row.primary-row-highlight.ag-row-selected{background-color:#bee3f8}.data-grid .ag-row.option1-shade{background-color:#eef4f9}.data-grid .ag-row.option1-shade.ag-row-selected{background-color:#bee3f8}.data-grid .ag-cell.cell-readonly{background-color:#f4f4f5}.data-grid .ag-cell.cell-over-limit{background-color:#fed7d7;color:#9b2c2c;box-shadow:inset 3px 0 #e53e3e}.notes-cell{display:flex;align-items:stretch;height:100%;width:100%}.notes-cell-excerpt{flex:1 1 auto;min-width:0;text-align:left;border:none;background:transparent;cursor:pointer;padding:0 6px;font:inherit;color:inherit;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}.notes-cell-excerpt:hover{text-decoration:underline}.notes-cell-empty{color:#a0aec0;font-style:italic}.notes-cell-count{flex:0 0 auto;background:#ecc94b;color:#744210;border-radius:999px;font-size:.7rem;font-weight:600;padding:0 6px;line-height:1.5}.notes-cell-add{flex:0 0 auto;width:26px;border:none;border-left:1px solid rgba(0,0,0,.08);background:transparent;cursor:pointer;font-size:1rem;line-height:1;color:#975a16}.notes-cell-add:hover{background:#faf089}.photos-cell-button{width:100%;height:100%;border:none;background:transparent;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;gap:4px}.photos-cell-button:hover{background:#ebf8ff}.photos-cell-count{background:#2b6cb0;color:#fff;border-radius:999px;font-size:.7rem;font-weight:600;padding:0 6px;line-height:1.5}.photo-upload-modal{display:flex;flex-direction:column;gap:.9rem}.photo-upload-help{margin:0;font-size:.8rem;color:#718096;line-height:1.4}.photo-upload-empty{color:#a0aec0;font-style:italic;margin:0}.photo-upload-list-header{display:flex;align-items:center;justify-content:space-between;font-size:.85rem;color:#4a5568}.photo-upload-list-header button{padding:.3rem .7rem;border:1px solid #2b6cb0;background:#fff;color:#2b6cb0;border-radius:4px;cursor:pointer;font-size:.8rem}.photo-upload-list-header button:disabled{opacity:.6;cursor:default}.photo-upload-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;max-height:320px;overflow-y:auto}.photo-upload-item{display:flex;align-items:center;gap:.6rem}.photo-upload-thumb{width:48px;height:48px;object-fit:cover;border-radius:4px;border:1px solid #e2e8f0;flex:0 0 auto}.photo-upload-item input[type=text]{flex:1 1 auto;min-width:0;padding:.35rem .5rem;border:1px solid #cbd5e0;border-radius:4px;font-size:.8rem;color:#4a5568;background:#f7fafc}.photo-upload-item button{flex:0 0 auto;width:28px;height:28px;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer;color:#c53030;font-size:1rem;line-height:1}.photo-upload-item button:hover{background:#fff5f5}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-box{background:#fff;border-radius:8px;width:420px;max-width:calc(100vw - 2rem);max-height:calc(100vh - 4rem);display:flex;flex-direction:column;box-shadow:0 8px 30px #0000004d}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;border-bottom:1px solid #e2e8f0;flex:0 0 auto}.modal-header h3{margin:0;font-size:1rem}.modal-close{border:none;background:transparent;font-size:1.3rem;line-height:1;cursor:pointer;color:#718096;padding:0 .25rem}.modal-close:hover{color:#1a202c}.modal-content{padding:1rem;overflow-y:auto}.modal-footer{flex:0 0 auto;padding:.75rem 1rem;border-top:1px solid #e2e8f0}.rte{display:flex;flex-direction:column;gap:.6rem}.rte-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.rte-sep{width:1px;align-self:stretch;background:#e2e8f0;margin:0 4px}.rte-btn{min-width:32px;padding:4px 8px;border:1px solid #cbd5e0;border-radius:4px;background:#fff;cursor:pointer;font-size:.85rem;line-height:1.2}.rte-btn:hover:not(:disabled){background:#edf2f7}.rte-btn:disabled{opacity:.4;cursor:default}.rte-btn-active{background:#bee3f8;border-color:#2b6cb0;color:#1a4971}.rte-btn-active:hover:not(:disabled){background:#bee3f8}.rte-bold{font-weight:700}.rte-italic{font-style:italic}.rte-underline{text-decoration:underline}.rte-strike{text-decoration:line-through}.rte-mode-toggle{display:inline-flex;border:1px solid #cbd5e0;border-radius:4px;overflow:hidden}.rte-mode-toggle button{border:none;background:#fff;padding:4px 12px;cursor:pointer;font-size:.85rem}.rte-mode-toggle button+button{border-left:1px solid #cbd5e0}.rte-mode-toggle .rte-mode-active{background:#2b6cb0;color:#fff}.rte-notice{background:#fffbea;border:1px solid #fbd38d;border-radius:4px;padding:.5rem .75rem;font-size:.85rem}.rte-body{border:1px solid #cbd5e0;border-radius:4px}.rte-content .tiptap{min-height:360px;max-height:calc(100vh - 20rem);overflow-y:auto;padding:.75rem 1rem;outline:none;line-height:1.5}.rte-content .tiptap:focus-visible{box-shadow:inset 0 0 0 2px #90cdf4}.rte-content .tiptap>:first-child{margin-top:0}.rte-content .tiptap a{color:#2b6cb0;text-decoration:underline}.rte-content .tiptap ul,.rte-content .tiptap ol{padding-left:1.5rem}.rte-content .tiptap li>p{margin:.15rem 0}.rte-content .tiptap div{min-height:1.5em}.rte-content .tiptap .rte-embed{display:inline-block;position:relative;max-width:100%}.rte-content .tiptap .rte-embed iframe{display:block;max-width:100%;pointer-events:none}.rte-content .tiptap .rte-embed.ProseMirror-selectednode{outline:3px solid #4299e1;outline-offset:2px}.rte-source{min-height:360px;height:calc(100vh - 20rem);resize:vertical;font-family:monospace;font-size:.85rem;padding:.75rem;border:1px solid #cbd5e0;border-radius:4px}.rte-footer{display:flex;align-items:center;justify-content:flex-end;gap:.6rem}.rte-footer-hint{margin-right:auto;color:#718096;font-size:.85rem}.rte-save{background:#2b6cb0;color:#fff;border:1px solid #2b6cb0}.rte-save:disabled{opacity:.5}.notes-thread{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.75rem}.notes-thread-entry{background:#fffbea;border:1px solid #fbd38d;border-radius:6px;padding:.6rem .75rem}.notes-thread-meta{display:flex;justify-content:space-between;gap:.75rem;font-size:.75rem;color:#975a16;margin-bottom:.3rem}.notes-thread-author{font-weight:600}.notes-thread-body{margin:0;font-size:.9rem;white-space:pre-wrap;word-break:break-word}.notes-thread-empty{color:#718096;font-size:.9rem;text-align:center;padding:1rem 0}.add-note-form{display:flex;flex-direction:column;gap:.6rem}.add-note-form textarea{width:100%;padding:.5rem;border:1px solid #cbd5e0;border-radius:4px;font:inherit;resize:vertical}.add-note-actions{display:flex;justify-content:flex-end;gap:.5rem}.add-note-actions button{padding:.4rem .9rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer}.add-note-actions button[type=submit]{border-color:#2b6cb0;background:#2b6cb0;color:#fff}.add-note-actions button:disabled{opacity:.6;cursor:default}.brand-upc-import-form{display:flex;flex-direction:column;gap:.9rem}.brand-upc-paste-instructions{background:#f5f7fa;border:1px solid #e2e8f0;border-radius:4px;padding:.6rem .75rem;font-size:.85rem;color:#4a5568}.brand-upc-paste-instructions p{margin:0 0 .4rem}.brand-upc-paste-instructions p:last-child{margin-bottom:0}.brand-upc-paste-instructions pre{margin:0 0 .4rem;padding:.4rem .6rem;background:#fff;border:1px solid #e2e8f0;border-radius:4px;font-family:monospace;font-size:.82rem;overflow-x:auto}.brand-upc-import-field{display:flex;flex-direction:column;gap:.3rem}.brand-upc-import-field span{font-size:.8rem;font-weight:600;color:#4a5568}.brand-upc-import-field select,.brand-upc-import-field input[type=text],.brand-upc-import-field textarea{padding:.5rem .6rem;border:1px solid #cbd5e0;border-radius:4px;font:inherit;font-size:.9rem}.brand-upc-import-field textarea{resize:vertical;font-family:monospace}.brand-picker-other-row{display:flex;gap:.5rem}.brand-picker-other-row input[type=text]{flex:1 1 auto;min-width:0}.brand-picker-other-row button{flex:0 0 auto;padding:.5rem .8rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer;font-size:.85rem}.brand-picker-other-row button:disabled{opacity:.6;cursor:default}.brand-picker-hint{color:#718096;font-size:.75rem;font-weight:400}.dropzone{position:relative;border:2px dashed #cbd5e0;border-radius:6px;padding:1.75rem 1rem;text-align:center;color:#718096;background:#f5f7fa}.dropzone-active{border-color:#2b6cb0;background:#ebf8ff;color:#2b6cb0}.dropzone input[type=file]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.brand-upc-import-actions{display:flex;justify-content:flex-end;gap:.5rem}.brand-upc-import-actions button{padding:.4rem .9rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer}.brand-upc-import-actions button:last-child{border-color:#2b6cb0;background:#2b6cb0;color:#fff}.brand-upc-import-actions button:disabled{opacity:.6;cursor:default}.brand-upc-import-summary ul{margin:.4rem 0;padding-left:1.25rem}.brand-upc-import-summary-list{max-height:200px;overflow-y:auto;font-size:.85rem}.brand-upc-paste-preview{display:flex;flex-direction:column;gap:.75rem}.brand-upc-paste-preview-table-wrap{max-height:320px;overflow:auto;border:1px solid #e2e8f0;border-radius:4px}.brand-upc-paste-preview-table{width:100%;border-collapse:collapse;background:#fff;font-size:.85rem}.brand-upc-paste-preview-table th,.brand-upc-paste-preview-table td{text-align:left;padding:.4rem .6rem;border-bottom:1px solid #e2e8f0;white-space:nowrap}.brand-upc-paste-preview-table thead th{position:sticky;top:0;background:#f5f7fa;color:#4a5568}.brand-upc-import-mapping-note{color:#4a5568;font-size:.85rem}.brand-upc-import-alert{background:#fffbeb;border:1px solid #f6e05e;border-radius:4px;padding:.6rem .75rem;font-size:.85rem;color:#744210;display:flex;flex-direction:column;gap:.5rem}.brand-upc-import-alert p{margin:0}.brand-upc-mapping-table{width:100%;border-collapse:collapse;background:#fff;font-size:.82rem}.brand-upc-mapping-table th,.brand-upc-mapping-table td{text-align:left;padding:.3rem .5rem;border-bottom:1px solid #f6e05e;color:#1a202c}.brand-upc-mapping-table thead th{color:#744210;font-weight:600}.log-viewer{padding:1rem;overflow:auto;height:100%}.log-viewer table{width:100%;border-collapse:collapse;background:#fff;font-size:.85rem}.log-viewer th,.log-viewer td{text-align:left;padding:.5rem .75rem;border-bottom:1px solid #e2e8f0;vertical-align:top}.log-viewer th{background:#f5f7fa;position:sticky;top:0}.log-empty{text-align:center;color:#718096;padding:2rem!important}.log-test-badge{display:inline-block;margin-left:.5rem;padding:.1rem .4rem;background:#fffbeb;color:#b7791f;border-radius:3px;font-size:.7rem;font-weight:600}.multi-select-editor{background:#fff;border:1px solid #cbd5e0;border-radius:4px;box-shadow:0 4px 12px #00000026;padding:.4rem;max-height:260px;min-width:220px;overflow-y:auto}.multi-select-option{display:flex;align-items:center;gap:.5rem;padding:.3rem .4rem;font-size:.85rem;cursor:pointer;border-radius:3px}.multi-select-option:hover{background:#f5f7fa}.multi-select-empty{padding:.5rem;color:#718096;font-size:.8rem;font-style:italic}.metafield-admin{display:flex;height:100%}.metafield-admin-sidebar{width:280px;flex:0 0 auto;border-right:1px solid #e2e8f0;background:#fff;display:flex;flex-direction:column;overflow:hidden}.metafield-admin-filter{margin:.75rem}.metafield-admin-sidebar ul{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.metafield-admin-sidebar li{margin:0}.metafield-admin-sidebar button{width:100%;text-align:left;padding:.5rem .75rem;border:none;background:none;cursor:pointer;display:flex;align-items:center;gap:.4rem;font-size:.85rem}.metafield-admin-sidebar button:hover{background:#f5f7fa}.metafield-admin-field-active{background:#ebf4ff!important;font-weight:600}.metafield-admin-multi-badge{font-size:.65rem;padding:.05rem .3rem;background:#e2e8f0;border-radius:3px;color:#4a5568}.metafield-admin-count{margin-left:auto;color:#a0aec0;font-size:.75rem}.metafield-admin-empty{padding:1rem;color:#718096;font-size:.85rem;text-align:center}.metafield-admin-values{flex:1;padding:1.5rem;overflow-y:auto}.metafield-admin-values h2{margin:0 0 .2rem}.metafield-admin-source{color:#a0aec0;font-size:.75rem;font-family:monospace;margin:0 0 1rem}.metafield-admin-values h3{font-size:.9rem;color:#4a5568;margin:1.5rem 0 .5rem}.metafield-admin-add-form{display:flex;gap:.5rem;max-width:400px}.metafield-admin-add-form input{flex:1;padding:.5rem;border:1px solid #cbd5e0;border-radius:4px}.metafield-admin-add-form button{padding:.5rem 1rem;background:#2b6cb0;color:#fff;border:none;border-radius:4px;cursor:pointer}.metafield-admin-add-form button:disabled{opacity:.6;cursor:default}.metafield-admin-value-list{list-style:none;margin:0;padding:0;max-width:500px}.metafield-admin-value-list li{display:flex;justify-content:space-between;align-items:center;padding:.4rem .6rem;border-bottom:1px solid #edf2f7;font-size:.85rem}.metafield-admin-value-list-inactive li{color:#a0aec0}.metafield-admin-value-list button{padding:.2rem .6rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer;font-size:.75rem}.row-id-cell{display:flex;align-items:center;gap:4px;height:100%}.vertical-editor-open-btn{border:none;background:transparent;cursor:pointer;padding:0 4px;font-size:1rem;line-height:1;color:#2b6cb0}.vertical-editor-open-btn:hover{color:#1a4971}.body-html-cell{display:flex;align-items:center;gap:4px;height:100%;min-width:0}.body-html-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.body-html-open-btn{flex:0 0 auto;border:none;background:transparent;cursor:pointer;padding:0 4px;font-size:1rem;line-height:1;color:#2b6cb0}.body-html-open-btn:hover{color:#1a4971}.vertical-editor-richtext{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}.vertical-editor-richtext textarea{width:100%}.vertical-editor{height:100%;overflow-y:auto;background:#f5f7fa}.vertical-editor-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:1rem;padding:.75rem 1.25rem;background:#fff;border-bottom:1px solid #e2e8f0}.vertical-editor-back{flex:0 0 auto;padding:.4rem .8rem;border:1px solid #cbd5e0;background:#fff;border-radius:4px;cursor:pointer;font-weight:500}.vertical-editor-header h2{flex:1 1 auto;min-width:0;margin:0;font-size:1.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vertical-editor-saving{flex:0 0 auto;color:#718096;font-size:.85rem}.vertical-editor-body{max-width:720px;margin:0 auto;padding:1.5rem 1.25rem 4rem;display:flex;flex-direction:column;gap:1.1rem}.vertical-editor-toprow{display:grid;gap:1.5rem;border-radius:6px}.vertical-editor-toprow-highlight{background:#ebf8ff;border:1px solid #bee3f8;padding:.9rem 1rem}.new-build-add-variant{margin-top:.5rem;padding-top:1.1rem;border-top:1px solid #e2e8f0}.new-build-add-variant-hint{color:#718096;font-size:.85rem;margin:.4rem 0 0}.vertical-editor-field{display:flex;flex-direction:column;gap:.3rem}.vertical-editor-label{font-size:.8rem;font-weight:600;color:#4a5568}.vertical-editor-input input[type=text],.vertical-editor-input input[type=number],.vertical-editor-input textarea,.vertical-editor-input select{width:100%;padding:.5rem .6rem;border:1px solid #cbd5e0;border-radius:4px;font:inherit;font-size:.9rem;background:#fff}.vertical-editor-input textarea{resize:vertical;font-family:inherit}.vertical-editor-input input[type=checkbox]{width:18px;height:18px}.vertical-editor-readonly{padding:.5rem .6rem;background:#f4f4f5;border:1px solid #e2e8f0;border-radius:4px;color:#4a5568;font-size:.9rem;min-height:1.4em}.vertical-editor-multiselect{border:1px solid #cbd5e0;border-radius:4px;padding:.4rem;max-height:200px;overflow-y:auto;background:#fff}
