:root{color-scheme:dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;width:430px;min-height:460px;max-height:600px;overflow-y:auto;background:#101116;color:#f7f7fa;font-size:13px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}.app{padding:20px}.header,.brand,.section-heading,.collect-actions,.library-title,.filter-row,.gallery-header,.card-actions{display:flex;align-items:center}.header,.section-heading,.library-title,.gallery-header{justify-content:space-between}.header{padding-bottom:20px;border-bottom:1px solid #292b34}.brand{gap:11px}.brand-mark{width:38px;height:38px;border-radius:12px;background:#ff476e;display:grid;place-items:center;font-size:23px;color:white;box-shadow:0 5px 18px #ff476e33}.brand h1{font-size:17px;line-height:1.2;margin:0;font-weight:750;letter-spacing:-.4px}.brand p{font-size:9px;letter-spacing:1.4px;color:#999ba8;margin:5px 0 0}.counter{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:55px;padding:6px 10px;background:#20212a;border-radius:12px}.counter strong{font-size:17px}.counter span{font-size:10px;color:#aaaab5}.collector{padding:19px 0 17px;border-bottom:1px solid #292b34}.section-heading{margin-bottom:13px}.section-heading h2,.library-title h2{font-size:14px;margin:0;font-weight:700}.section-heading span{color:#9294a0;font-size:10px}.collect-actions{gap:8px}.collect-btn{border:1px solid #343641;background:#242630;color:#e9e9f0;border-radius:9px;flex:1;min-height:39px;font-size:11px;font-weight:650;white-space:nowrap}.collect-btn span{font-size:14px;margin-right:3px}.collect-btn:hover{background:#343541}.collect-btn.primary{border-color:#ff476e;background:#ff476e;color:white}.collect-btn.primary:hover{background:#f22c5b}.status{margin:11px 0 0;color:#a1a2ad;font-size:11px;line-height:1.4;min-height:15px}.status.error{color:#ff849a}.status.success{color:#8bdcb5}.library{padding-top:20px}.library-title{margin-bottom:15px}.library-title p{font-size:11px;color:#9596a3;margin:5px 0 0}.export-btn{background:#22242d;border:1px solid #383a46;color:#f2f2f5;border-radius:8px;padding:9px 11px;font-size:11px;font-weight:650}.export-btn:hover{background:#30323c}.search{height:39px;border-radius:10px;background:#1c1e26;border:1px solid #30323e;display:flex;align-items:center;gap:8px;padding:0 12px}.search:focus-within{border-color:#ff476e}.search span{color:#a0a2b0;font-size:23px;line-height:1}.search input{border:0;outline:0;background:transparent;color:white;width:100%;min-width:0;font-size:12px}.search input::placeholder{color:#777a89}.filter-row{gap:6px;margin-top:13px;flex-wrap:wrap}.filter{background:#22242d;border:1px solid transparent;border-radius:7px;padding:8px 10px;color:#aeb0bc;font-size:11px;font-weight:600}.filter span{font-size:10px;opacity:.75;margin-left:2px}.filter.active{background:#ff476e24;color:#ff6b8a;border-color:#ff476e66}.filter:hover{color:white}.filter-row select{margin-left:auto;background:#22242d;color:#d8d8e1;border:1px solid #383a46;border-radius:7px;padding:7px 5px;font-size:10px;max-width:115px}.gallery-header{color:#858795;font-size:10px;margin:18px 0 10px}.gallery{columns:2;column-gap:11px}.media-card{position:relative;display:inline-block;vertical-align:top;width:100%;margin:0 0 11px;background:#20212a;border:1px solid #30313b;border-radius:12px;overflow:hidden;break-inside:avoid}.thumb{position:relative;background:#2a2b35;min-height:116px;display:flex;align-items:center;justify-content:center;overflow:hidden}.thumb img{display:block;width:100%;height:auto;min-height:116px;max-height:260px;object-fit:cover}.thumb video{display:block;width:100%;max-height:260px;min-height:116px;object-fit:cover}.placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#a1a2b0;min-height:135px}.placeholder b{font-size:26px;font-weight:400}.placeholder span{font-size:10px}.type-badge{position:absolute;top:8px;left:8px;background:#14151ac9;color:#fff;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:700;backdrop-filter:blur(6px)}.card-body{padding:10px}.card-title{font-size:11px;font-weight:600;line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-meta{display:flex;justify-content:space-between;gap:4px;margin-top:7px;color:#9293a0;font-size:10px}.card-actions{gap:6px;margin-top:10px}.card-actions button{border:1px solid #3a3b47;background:#2a2b35;color:#ececf2;border-radius:7px;padding:7px 6px;font-size:10px;flex:1;min-width:0}.card-actions button:hover{background:#393a47}.card-actions .delete{flex:0 0 29px;color:#ff8497}.card-actions .delete:hover{background:#5c2634}.empty{text-align:center;padding:40px 20px;color:#a2a3b0}.empty-icon{font-size:43px;color:#ff476e}.empty h3{font-size:15px;color:#fff;margin:8px 0}.empty p{font-size:12px;line-height:1.6;margin:0}footer{border-top:1px solid #292b34;margin-top:22px;padding-top:15px;color:#676a79;text-align:center;font-size:9px;letter-spacing:1.3px}footer span{color:#ff6c8b;margin-left:5px}[hidden]{display:none!important}

/* V16 selection and bulk delete */
.selection-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:14px 0 4px}
.selection-toggle,.selection-action,.selection-delete{border:1px solid #3a3b47;background:#242630;color:#e9e9f0;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:650}
.selection-toggle.active{background:#ff476e24;border-color:#ff476e;color:#ff7895}
.selection-action:hover,.selection-toggle:hover{background:#363845}
.selected-count{font-size:11px;color:#c8c9d1;margin-right:auto}
.selection-delete{background:#9d2c45;color:#fff;border-color:#bd3955}
.selection-delete:hover{background:#b42d4b}
.selection-delete:disabled{opacity:.45;cursor:not-allowed}
.media-card.selection-mode{cursor:pointer}
.media-card.selected{border:2px solid #ff476e;box-shadow:0 0 0 2px #ff476e33}
.select-checkbox{position:absolute;z-index:3;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:2px solid #fff;border-radius:8px;background:#171821d9;color:white;font-size:18px;font-weight:bold;cursor:pointer}
.media-card.selected .select-checkbox{background:#ff476e;border-color:#ff476e}
.confirm-overlay{position:fixed;inset:0;z-index:1000;background:#000b;display:flex;align-items:center;justify-content:center;padding:24px}
.confirm-dialog{width:100%;max-width:360px;background:#22242e;border:1px solid #414350;border-radius:16px;padding:22px;box-shadow:0 20px 50px #0008}
.confirm-dialog h3{font-size:16px;margin:0 0 10px}
.confirm-dialog p{font-size:12px;color:#bec0cb;line-height:1.5;margin:0 0 20px}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px}
.confirm-actions button{border:1px solid #494b57;border-radius:8px;padding:10px 15px;background:#32343e;color:#fff;font-weight:650}
.confirm-actions button.danger{background:#c63756;border-color:#c63756}

/* V17 collections */
.collections-panel{margin-top:14px;padding:12px;background:#1a1c24;border:1px solid #30323e;border-radius:11px}
.collections-heading,.collections-controls{display:flex;align-items:center;gap:7px}
.collections-heading{justify-content:space-between;margin-bottom:10px}
.collections-heading strong{font-size:12px}
.collections-heading button,.collections-controls button,.collections-controls select,#bulkCollectionSelect,.card-collection{background:#262832;color:#e9e9f0;border:1px solid #414350;border-radius:7px;font-size:10px;padding:7px;min-width:0}
.collections-heading button{color:#ff8da4;font-weight:700}
.collections-controls select{flex:1;max-width:100%}
.collections-controls button:disabled{opacity:.4;cursor:not-allowed}
.collections-hint{font-size:10px;color:#9193a2;line-height:1.4;margin:9px 0 0}
.card-collection{width:100%;margin-top:9px;background:#292b36}
#bulkCollectionSelect{max-width:135px}

/* V18 full-size preview */
.preview-overlay{position:fixed;inset:0;z-index:1100;background:#08090def;display:flex;align-items:center;justify-content:center;padding:12px}
.preview-dialog{width:100%;height:100%;max-height:570px;display:flex;flex-direction:column;min-height:0;border:1px solid #414350;border-radius:14px;background:#191b24;overflow:hidden;box-shadow:0 20px 55px #0009}
.preview-top{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;color:#afb1be;font-size:11px;border-bottom:1px solid #343641}
.preview-top button{background:#30323e;border:1px solid #4a4c58;color:white;border-radius:8px;width:30px;height:30px}
.preview-stage{display:flex;align-items:center;gap:6px;flex:1;min-height:0;padding:8px}
.preview-nav{flex:0 0 32px;height:48px;border-radius:8px;background:#30323e;border:1px solid #494b57;color:white;font-size:27px}
.preview-nav:disabled{opacity:.25;cursor:default}
.preview-media{flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;color:#a7a8b4;font-size:12px;line-height:1.5;overflow:hidden}
.preview-media img,.preview-media video{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.preview-details{border-top:1px solid #343641;padding:12px 14px}
.preview-details h3{font-size:13px;margin:0 0 5px;line-height:1.35;max-height:37px;overflow:hidden;overflow-wrap:anywhere}
.preview-details p{margin:0;color:#a0a2b0;font-size:10px}
.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.preview-bottom span{font-size:10px;color:#8d90a0}
.preview-bottom button{background:#ff476e;border:0;color:white;border-radius:8px;padding:9px;font-size:10px;font-weight:700}
.card-actions button{font-size:9px;padding:7px 3px}

/* V19: clearer video playback and fallback */
.preview-media video{width:100%;height:100%;max-width:100%;max-height:100%;background:#08090d}
.video-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-height:150px}
.video-fallback img{max-width:100%;max-height:75%;object-fit:contain}
.video-fallback p{margin:0;max-width:260px;padding:8px 12px;color:#d0d1dc;font-size:11px;line-height:1.5}

/* V22: clear original-site playback fallback */
.watch-fallback{border:0;border-radius:9px;background:#e60023;color:#fff;padding:11px 17px;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0}
.watch-fallback:hover{filter:brightness(1.13)}
.card-actions .watch-video{background:#e60023;color:#fff;border-color:#e60023}
.video-fallback p{text-align:center}

/* V23 product-finding actions */
.card-actions .find-product { background: #f4eaff; color: #6131a5; }
.card-actions .product-link { background: #eef6ff; color: #155e91; }
.card-actions .shop-product { background: #e7f7ed; color: #166534; }

/* V24: legible action buttons in narrow two-column gallery cards */
.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  margin-top: 10px;
}
.card-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 5px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: normal;
  text-align: center;
  flex: initial;
}
.card-actions .delete {
  flex: initial;
  color: #ff9aaa;
  background: #3b2730;
  border-color: #68404d;
}
.card-actions .full-row { grid-column: 1 / -1; }
.card-actions .find-product { background: #49305f; color: #f4eaff; border-color: #6b4789; }
.card-actions .product-link { background: #253d54; color: #d9ecff; border-color: #3b6080; }
.card-actions .shop-product { background: #214734; color: #d4ffe2; border-color: #346e50; }

/* V25: shopping-site-only finder */
.product-search-overlay{position:fixed;inset:0;z-index:1200;background:#08090def;display:flex;align-items:center;justify-content:center;padding:12px}
.product-search-dialog{width:100%;max-height:95%;overflow-y:auto;background:#20222c;border:1px solid #454756;border-radius:14px;padding:16px;box-shadow:0 20px 55px #0009}
.product-search-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.product-search-top h3{margin:0;font-size:15px;line-height:1.4}
.product-search-top button{background:#30323e;color:#fff;border:1px solid #484a56;border-radius:8px;width:30px;height:30px;flex-shrink:0}
.product-search-note{font-size:11px;line-height:1.5;color:#aeb0c0;margin:8px 0 14px}
.product-search-label{display:block;font-size:11px;font-weight:700;margin:10px 0 6px;color:#e2e3eb}
#productQuery,#retailerRegion{display:block;width:100%;min-height:38px;background:#171922;color:#f6f6fa;border:1px solid #494b59;border-radius:8px;padding:9px;font-size:12px}
#productQuery:focus,#retailerRegion:focus{outline:2px solid #ff476e;outline-offset:1px}
.retailer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.retailer-button{min-height:37px;padding:9px 7px;border-radius:8px;border:1px solid #55516e;background:#342b48;color:#f0e6ff;font-size:11px;font-weight:700;white-space:normal}
.retailer-button:hover{background:#493b67}
.product-search-error{color:#ff8da4;font-size:11px;margin:9px 0 0}

/* V26: image-based search UI */
.visual-search-image{display:flex;align-items:center;justify-content:center;min-height:135px;max-height:220px;padding:9px;background:#151720;border:1px solid #383b48;border-radius:10px;color:#aeb0c0;font-size:11px;overflow:hidden}
.visual-search-image img{display:block;max-width:100%;max-height:200px;object-fit:contain;border-radius:6px}
.visual-search-buttons{display:grid;grid-template-columns:1fr;gap:9px;margin:13px 0}
.visual-search-buttons button{width:100%;min-height:42px;border-radius:9px;border:1px solid #6a527f;background:#3d2c56;color:#f6eaff;font-size:12px;font-weight:700;padding:10px}
.visual-search-buttons button:hover{background:#51386e}

/* V27: compact one-click product link capture */
.quick-link-panel{display:flex;align-items:center;gap:8px;padding:12px;margin:12px 0;background:#253a31;border:1px solid #42785a;border-radius:11px;color:#e4ffed}
.quick-link-panel>div{flex:1;min-width:0}.quick-link-panel strong{font-size:12px}.quick-link-panel p{margin:4px 0 0;font-size:10px;line-height:1.4;color:#c6e4d1}
.quick-link-panel button{background:#d6ffe1;color:#153c24;border:0;border-radius:8px;padding:9px 7px;font-size:10px;font-weight:700;cursor:pointer;max-width:108px}
.quick-link-panel button:disabled{opacity:.45;cursor:not-allowed}.quick-link-panel #cancelProductMatchBtn{background:transparent;color:#c6e4d1;padding:5px}
.quick-link-panel[hidden]{display:none!important}

/* V28: compact captured product metadata on each saved card */
.product-details{display:flex;flex-direction:column;gap:3px;min-width:0;margin:5px 0;color:#d7e8ff;font-size:11px;line-height:1.4}
.product-details:empty{display:none}
.product-details strong{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-details span{color:#a6b9cf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* V30 dedicated product gallery */
.v30-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px 2px}
.v30-tab{background:#282a35;border:1px solid #454755;color:#d8d9e2;border-radius:10px;padding:12px 6px;font-weight:700;font-size:12px;cursor:pointer}
.v30-tab.active{background:#e60023;border-color:#e60023;color:white}
.v30-tab span{opacity:.8}
.product-library{padding:12px 14px 20px}
.product-library[hidden],#mediaLibrary[hidden],.v30-modal[hidden]{display:none!important}
.v30-product-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.v30-product-filters select{min-width:0;width:100%;border:1px solid #484a59;background:#252733;color:#fff;padding:9px 5px;border-radius:8px;font-size:11px}
.v30-count{font-size:11px;color:#aeb0c0;margin:10px 0}
.v30-product-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.v30-product-card{min-width:0;background:#242630;border:1px solid #40424f;border-radius:12px;overflow:hidden}
.v30-product-image{height:155px;background:#171922;display:flex;align-items:center;justify-content:center;font-size:28px;color:#aab0c0}
.v30-product-image img{height:100%;width:100%;object-fit:cover}
.v30-product-info{padding:10px;min-width:0}
.v30-store{font-size:10px;color:#ff91a5;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v30-product-info h3{font-size:12px;line-height:1.4;margin:0;min-height:33px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.v30-price{font-size:13px;font-weight:800;color:#e9f4ff;margin:8px 0}
.v30-product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.v30-product-actions button{min-width:0;min-height:31px;padding:5px 2px;background:#343746;color:white;border:1px solid #555866;border-radius:7px;font-size:10px;cursor:pointer}
.v30-product-actions button:disabled{opacity:.4;cursor:not-allowed}
.v30-product-actions .v30-unlink{color:#ffc4cc}
.v30-modal{position:fixed;inset:0;z-index:1400;background:#090b10e8;display:flex;align-items:center;justify-content:center;padding:15px}
.v30-dialog{background:#242631;border:1px solid #505261;border-radius:13px;padding:16px;width:100%;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.v30-dialog-top{display:flex;align-items:center;justify-content:space-between}
.v30-dialog h3{font-size:15px;margin:0}
.v30-dialog-top button{background:#3a3c48;color:white;border:0;border-radius:6px;padding:7px 10px}
.v30-dialog label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#d5d8e4}
.v30-dialog input{width:100%;box-sizing:border-box;border:1px solid #555866;background:#171922;border-radius:7px;color:white;padding:9px;font-size:12px}
.v30-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v30-dialog-actions button{border:0;border-radius:8px;background:#3b3e4b;color:white;padding:10px;font-weight:700}
.v30-dialog-actions button[type=submit]{background:#e60023}
#productEditError{font-size:11px;color:#ff9aab;margin:0}

/* V31 bulk product tools */
.v31-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:11px 0}
.v31-stats>div{display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid #444755;background:#272a36;border-radius:9px;padding:10px 4px}
.v31-stats strong{font-size:19px;color:#fff}.v31-stats span{font-size:10px;color:#aeb1bf}
.v31-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}
.v31-toolbar button,.v31-selection-actions button{border:1px solid #515464;background:#323644;color:#f3f3f5;border-radius:8px;padding:9px 5px;font-size:11px;cursor:pointer}
.v31-toolbar button.active{background:#e60023;border-color:#e60023}
.v31-selection{background:#282b37;border:1px solid #545766;border-radius:10px;padding:9px;margin-bottom:9px}
.v31-selection[hidden]{display:none!important}.v31-selection-count{font-size:12px;font-weight:700;margin-bottom:8px}
.v31-selection-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.v31-selection-actions button:disabled{opacity:.4;cursor:not-allowed}.v31-selection-actions .v31-danger{color:#ffbac4}
.v31-selectable{outline:1px solid #5e6379}.v31-check{display:flex;gap:5px;align-items:center;padding:8px 10px;font-size:11px;font-weight:700;cursor:pointer}
.v31-check input{accent-color:#e60023}.v31-duplicate-tag{display:block;padding:4px 10px;color:#ffdca8;background:#56412a;font-size:10px;font-weight:700}

/* V32 product organization */
.v32-organize{margin:10px 0;padding:10px;background:#242630;border:1px solid #414350;border-radius:11px}
.v32-collection-row,.v32-filter-row{display:flex;gap:5px;align-items:center;margin-bottom:7px}
.v32-organize select{min-width:0;flex:1;background:#171922;color:#fff;border:1px solid #4b4d5d;border-radius:7px;padding:8px 4px;font-size:10px}
.v32-organize button{background:#363946;border:1px solid #555869;color:#fff;border-radius:7px;padding:8px 6px;font-size:10px;cursor:pointer}
.v32-organize button:disabled{opacity:.4;cursor:default}
.v32-organize button.active{background:#e60023}
.v32-bulk-bar{display:grid;grid-template-columns:1fr auto;gap:6px;padding-top:8px;border-top:1px solid #4b4d5d}
.v32-bulk-bar[hidden]{display:none}
.v32-bulk-bar input{min-width:0;background:#171922;color:white;border:1px solid #555869;border-radius:7px;padding:8px;font-size:11px}
.v32-card-org{display:flex;justify-content:space-between;align-items:center;gap:4px;margin:8px 0;font-size:10px;color:#bec2d2}
.v32-fav{background:#353744;color:#ffcc6e;border:1px solid #555869;border-radius:6px;padding:5px;font-size:10px;cursor:pointer}
.v32-card-org span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v32-tags{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.v32-tags span{background:#34394a;color:#bcd5ff;border-radius:5px;padding:3px 5px;font-size:9px}
.v32-dialog label.v32-favorite-edit{flex-direction:row;align-items:center}
.v32-favorite-edit input{width:auto}
.v30-dialog select{width:100%;background:#171922;color:white;border:1px solid #555869;border-radius:7px;padding:9px}

/* V33 product URL importer */
.v33-import{background:#222530;border:1px solid #454957;border-radius:12px;padding:12px;margin-bottom:14px}
.v33-import h3{margin:0 0 6px;font-size:14px}
.v33-import p{font-size:11px;color:#bfc3d0;line-height:1.45}
.v33-import-row{display:flex;gap:7px;margin:10px 0}
.v33-import-row input{flex:1;min-width:0}
.v33-import input{background:#151720;color:#fff;border:1px solid #505461;border-radius:7px;padding:9px;box-sizing:border-box}
.v33-import button{background:#e60023;color:white;border:0;border-radius:7px;padding:9px;font-size:11px;font-weight:700;cursor:pointer}
.v33-import button:disabled{opacity:.6}
#v33Preview[hidden]{display:none}
#v33Preview{display:flex;flex-direction:column;gap:8px;margin-top:12px;border-top:1px solid #505461;padding-top:12px}
.v33-preview-head{display:flex;gap:10px;align-items:center}
.v33-preview-head img{width:65px;height:75px;object-fit:cover;border-radius:7px}
.v33-preview-head strong{font-size:12px}
#v33Preview label{font-size:11px;display:flex;flex-direction:column;gap:4px}
#v33Status{margin:7px 0;color:#e6e7f1}

.v34-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.v34-tools label{font-size:11px;color:#ddd}.v34-tools input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #555;background:#171922;color:white;border-radius:7px}.v34-tools button{padding:9px 5px;border:1px solid #555;background:#333744;color:white;border-radius:8px}.v34-tools button[aria-pressed="true"]{background:#e60023}.v34-image-choices{display:flex;gap:6px;overflow-x:auto}.v34-image-choices button{flex:0 0 70px;border:2px solid transparent;background:#222;border-radius:8px;padding:2px}.v34-image-choices button.active{border-color:#e60023}.v34-image-choices img{width:64px;height:72px;object-fit:cover}.v34-compare{overflow:auto;margin:12px 0;padding:9px;border:1px solid #555;border-radius:9px}.v34-compare table{border-collapse:collapse;font-size:11px}.v34-compare th,.v34-compare td{border:1px solid #555;padding:7px;min-width:110px;max-width:190px;overflow-wrap:anywhere}.v34-compare a{color:#ff90a0}

/* V35: explicit product review before adding */
.v35-review[hidden]{display:none!important}
.v35-review{width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;border-top:1px solid #555866;margin-top:10px;padding-top:12px}
.v35-review-top{display:flex;gap:9px;align-items:center}
.v35-review-top img{width:65px;height:75px;object-fit:cover;border-radius:7px}
.v35-review-top strong{display:block;font-size:12px}
.v35-review-top small{display:block;color:#c5c6d1;font-size:10px}
.v35-review label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#e4e5ee}
.v35-review input{min-width:0;width:100%;box-sizing:border-box;background:#151720;border:1px solid #5c5e69;color:white;border-radius:7px;padding:8px;font-size:11px}
#v35AddProduct{background:#e60023;color:white;border:0;border-radius:8px;padding:10px;font-weight:700;cursor:pointer}
#v35ReviewMessage{font-size:11px;color:#cdd0dc;margin:0}

/* V37 outfit hotspot editor */
.v37-overlay[hidden]{display:none!important}
.v37-overlay{position:fixed;inset:0;z-index:2200;background:#000c;display:flex;align-items:center;justify-content:center;padding:12px}
.v37-dialog{width:100%;max-height:95vh;overflow:auto;background:#222530;color:white;border:1px solid #555866;border-radius:14px;padding:14px}
.v37-head,.v37-item-head,.v37-item-actions{display:flex;gap:8px;align-items:center;justify-content:space-between}
.v37-head h2{font-size:16px;margin:0}.v37-hint{font-size:11px;color:#c3c6d1;line-height:1.5}
.v37-dialog button{border:1px solid #555866;background:#353847;color:white;border-radius:7px;padding:8px;font-size:11px;cursor:pointer}
.v37-canvas{position:relative;max-width:100%;display:flex;justify-content:center;background:#11131a;border-radius:9px;overflow:hidden;cursor:crosshair}
.v37-canvas>img{display:block;max-width:100%;max-height:300px;object-fit:contain}
#v37Pins{position:absolute;inset:0;pointer-events:none}
.v37-pin{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;background:#e60023!important;border:2px solid white!important;border-radius:50%!important;width:30px;height:30px;padding:0!important;box-shadow:0 2px 10px #0009;font-weight:800}
.v37-items{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.v37-item{border:1px solid #505360;border-radius:10px;padding:9px;background:#2b2d39}
.v37-item-head input{flex:1;min-width:0;border:1px solid #555866;border-radius:7px;background:#151720;color:white;padding:8px;font-size:12px}
.v37-link{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #464955;padding:8px 0}
.v37-link>div{min-width:0;display:flex;flex-direction:column;gap:4px}.v37-link a{font-size:12px;color:#ff9cab;overflow-wrap:anywhere}.v37-link small{color:#bfc3d0}
.v37-item-actions{margin-top:8px}.v37-item-actions button{flex:1}#v37AddItem{width:100%;margin-top:12px;background:#e60023;border:0}
#v37Message{font-size:11px;color:#e7e7ee;line-height:1.5}

.v37-canvas{width:fit-content;margin:0 auto;max-width:100%}

/* V39: automatic shopping-link details */
.v39-link-form{display:flex;flex-direction:column;gap:9px;padding:12px;margin-top:10px;border:1px solid #596070;border-radius:10px;background:#242735}
.v39-url-row,.v39-buttons{display:flex;gap:8px;align-items:center}
.v39-url-row input{flex:1;min-width:0}
.v39-field{display:flex;flex-direction:column;gap:4px;font-size:12px}
.v39-field input,.v39-url-row input{box-sizing:border-box;width:100%;padding:9px;border-radius:7px;border:1px solid #646879;background:#12141c;color:white}
.v39-status{font-size:12px;color:#d1d5db;margin:0}
.v39-buttons button{flex:1}

/* V40: multi-store discovery and saved-price comparison */
.v40-search-panel{margin-top:12px;padding:12px;border:1px solid #606879;border-radius:10px;background:#242835;display:grid;gap:9px}
.v40-search-panel input[type=search]{width:100%;min-width:0;padding:9px;background:#151720;color:white;border:1px solid #596173;border-radius:7px}
.v40-stores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.v40-store{font-size:12px;display:flex;align-items:center;gap:4px}
.v40-store input{accent-color:#8da4ff}
.v40-link{display:flex;align-items:center;gap:8px}
.v40-thumb{width:44px;height:44px;object-fit:contain;border-radius:5px;background:white;flex-shrink:0}
.v40-link-info{min-width:0;flex:1;display:grid;gap:3px}
.v40-link-info a{overflow-wrap:anywhere}
.v40-best{font-size:11px;color:#98e8b4;font-weight:600}
.v40-summary{font-size:12px;opacity:.8;margin:6px 0}

/* V41: reference-inspired warm, bold, folder-first product gallery */
#productLibrary{background:#fffaf3;color:#171717;border-radius:18px;padding:14px;margin-top:15px;border:2px solid #111;box-shadow:5px 6px 0 #111}
#productLibrary .v41-hero{padding:14px 5px 6px}
#productLibrary .v41-hero h2{font-size:31px;line-height:1.02;letter-spacing:-1.2px;margin:8px 0;color:#101010;font-weight:900}
#productLibrary .v41-hero p{color:#555;font-size:11px;margin:8px 0}
#productLibrary .v41-hero-icons{text-align:right;font-size:24px;font-weight:900;color:#111}
#productLibrary .v41-quickadd{display:flex;gap:9px;margin:10px 0 20px}
#productLibrary .v41-quickadd input{flex:1;min-width:0;border:2px solid #111;border-radius:8px;background:#fff;padding:12px;color:#111;font-size:12px;box-shadow:3px 3px 0 #111}
#productLibrary .v41-quickadd button{width:47px;border:2px solid #111;background:#ffd52e;color:#111;border-radius:8px;font-size:26px;font-weight:900;box-shadow:3px 3px 0 #111}
#productLibrary .v41-folders-head{display:flex;justify-content:space-between;align-items:center;margin:6px 0 12px;font-size:15px}
#productLibrary .v41-folders-head button{border:0;background:transparent;color:#333;font-size:10px;font-weight:700}
#productLibrary .v41-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}
#productLibrary .v41-folder{position:relative;min-height:116px;border:2px solid #111;border-radius:9px;background:white;box-shadow:4px 5px 0 #111;text-align:left;padding:12px;color:#111;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
#productLibrary .v41-folder::before{content:'';position:absolute;top:-9px;left:11px;width:55px;height:8px;border:2px solid #111;border-bottom:0;border-radius:7px 7px 0 0;background:#ffd52e}
#productLibrary .v41-folder.pink::before{background:#ff5691}#productLibrary .v41-folder.green::before{background:#91e92d}#productLibrary .v41-folder.purple::before{background:#a384ff}
#productLibrary .v41-folder.selected{background:#fff2b9}
#productLibrary .v41-folder-icon{display:grid;place-items:center;width:38px;height:38px;border:2px solid #111;border-radius:7px;background:#ffd52e;font-size:21px;box-shadow:2px 2px 0 #111}
#productLibrary .v41-folder.pink .v41-folder-icon{background:#ff5691}#productLibrary .v41-folder.green .v41-folder-icon{background:#91e92d}#productLibrary .v41-folder.purple .v41-folder-icon{background:#a384ff}
#productLibrary .v41-folder small{font-size:10px;color:#555}#productLibrary .v41-folder strong{font-size:12px;line-height:1.25}
#productLibrary .library-title h2{color:#111}#productLibrary .library-title p{color:#555}
#productLibrary .search,#productLibrary input,#productLibrary select{color:#171717;background:#fff;border-color:#b5aea4}
#productLibrary .search input{background:transparent;border:0;color:#171717}
#productLibrary button:not(.v41-folder):not(.v41-quickadd button){cursor:pointer}
#productLibrary .v30-product-card{background:#fff;border:2px solid #161616;border-radius:11px;box-shadow:3px 4px 0 #161616;color:#111}
#productLibrary .v30-product-info h3{color:#171717}#productLibrary .v30-product-info p{color:#353535}
#productLibrary .v30-product-actions button{background:#fff3c6;color:#111;border:1px solid #222}
#productLibrary .v41-links{padding:9px;border-top:1px solid #ddd;background:#fff}
#productLibrary .v41-links-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;margin-bottom:7px}
#productLibrary .v41-links-heading button{border:1px solid #111;background:#ffd52e;border-radius:5px;padding:5px;font-size:10px;font-weight:800;color:#111}
#productLibrary .v41-link-row{display:flex;align-items:center;gap:5px;padding:7px 0;border-top:1px solid #eee;font-size:10px}
#productLibrary .v41-link-row a{flex:1;min-width:0;overflow-wrap:anywhere;color:#194b9a;font-weight:700}
#productLibrary .v41-link-row span{font-size:9px;color:#222;text-align:right}
#productLibrary .v41-link-row button{border:0;background:#ffe1e1;color:#ad162c;border-radius:4px;font-size:15px}
#productLibrary .v41-add-form{padding:9px;background:#fff4d5;display:flex;flex-direction:column;gap:6px}
#productLibrary .v41-add-form input{width:100%;padding:7px;border:1px solid #555;border-radius:5px;color:#111;background:#fff;font-size:10px}
#productLibrary .v41-form-actions{display:flex;gap:6px}#productLibrary .v41-form-actions button{flex:1;background:#ffd52e;color:#111;border:1px solid #111;border-radius:5px;padding:7px;font-size:10px}
#productLibrary .v30-product-gallery{gap:13px}#productLibrary .v30-store{color:#bd2958}
#productLibrary .v31-stats,#productLibrary .v32-organize,#productLibrary .v34-tools,#productLibrary .v33-import{border-radius:10px}


/* V42 full-popup redesign: the actual popup, not just the product panel */
:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{width:430px;min-height:560px;max-height:650px;background:#fffdfa;color:#15151b}
.app{padding:15px 18px 22px;display:flex;flex-direction:column;gap:0}
.header{order:0;border:0;padding:0 0 13px;background:#fffdfa}
.brand-mark{background:#ff3d86;color:white;border:2px solid #121212;box-shadow:3px 3px 0 #121212;border-radius:11px}
.brand h1{color:#111;font-size:16px;font-weight:900}.brand p{color:#7d7280;font-size:8px;letter-spacing:1.5px}
.counter{background:#ffeb9c;border:1.5px solid #111;box-shadow:2px 2px 0 #111;border-radius:10px}.counter strong{color:#111}.counter span{color:#494949}
.v30-tabs{order:1;display:flex;gap:9px;margin:0 0 12px!important;padding:0!important;border:0!important}
.v30-tab{flex:1;background:#f5f3f1!important;color:#151515!important;border:1.5px solid #161616!important;border-radius:9px!important;box-shadow:2px 2px 0 #151515;font-weight:800!important;min-height:41px}
.v30-tab.active{background:#ffda2b!important;color:#111!important;border-color:#111!important}
#productLibrary{order:2;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#111}
#mediaLibrary{order:2;padding-top:5px;color:#151515}
.collector{order:3;margin-top:19px;padding:14px;border:1.5px solid #171717;border-radius:13px;background:#fff4d9;box-shadow:3px 3px 0 #171717}
.collector .section-heading h2{color:#111}.collector .section-heading span{color:#5c5c5c}
.collect-btn{background:#fff!important;color:#171717!important;border:1.5px solid #111!important;box-shadow:2px 2px 0 #111}
.collect-btn.primary{background:#ff3d86!important;color:white!important}.status{color:#4e4e4e}
footer{order:4;color:#777;border-color:#e8e4df}footer span{color:#ff3d86}
#productLibrary .v41-hero{padding:15px 0 3px!important}
#productLibrary .v41-hero-icons{display:flex;align-items:center;justify-content:space-between;font-size:13px!important}
#productLibrary .v41-hero-icons span:first-child{font-size:9px;font-weight:900;letter-spacing:1.7px;color:#f03479}
#productLibrary .v41-hero h2{font-size:43px!important;line-height:.98!important;letter-spacing:-2px!important;margin:16px 0 10px!important}
#productLibrary .v41-hero p{font-size:12px!important;color:#606060!important;margin:0 0 9px!important}
.v42-period{color:#ff3d86}
#productLibrary .v41-quickadd{margin:12px 0 25px!important}
#productLibrary .v41-quickadd input{height:51px;border:2px solid #111!important;box-shadow:3px 3px 0 #111!important;border-radius:10px!important;font-size:12px!important}
#productLibrary .v41-quickadd button{height:51px;width:53px!important;background:#ffda2b!important;border:2px solid #111!important;border-radius:10px!important;box-shadow:3px 3px 0 #111!important}
#productLibrary .v41-folders-head{margin:0 0 18px!important}
#productLibrary .v41-folders-head strong{font-size:18px;font-weight:900}
#productLibrary .v41-folder-grid{gap:15px!important;margin:0 0 25px!important}
#productLibrary .v41-folder{min-height:127px!important;border:1.5px solid #111!important;border-radius:12px!important;box-shadow:3px 4px 0 #111!important;background:#fff!important;padding:14px!important;gap:10px!important}
#productLibrary .v41-folder.selected{background:#fff3c4!important}
#productLibrary .v41-folder-icon{width:46px!important;height:46px!important;font-size:25px!important;border-radius:10px!important}
#productLibrary .v41-folder strong{font-size:13px!important}#productLibrary .v41-folder small{font-size:11px!important}
#productLibrary .library-title{margin:0 0 11px!important}#productLibrary .library-title h2{font-size:18px!important;font-weight:900}
#productLibrary .v30-product-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
#productLibrary .v30-product-card{min-width:0;border:1px solid #ddd!important;box-shadow:0 3px 10px #00000010!important;border-radius:13px!important;overflow:hidden}
#productLibrary .v30-product-image{background:#f1f1f1!important}
#productLibrary .v30-product-info{padding:9px!important}
#productLibrary .v30-product-info h3{font-size:12px!important;line-height:1.35!important}
#productLibrary .v30-price{font-weight:900;color:#111!important}
#productLibrary .v30-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
#productLibrary .v30-product-actions button{background:#fff!important;color:#111!important;border:1px solid #d5d5d5!important;font-size:10px!important}
#productLibrary .v41-links{background:#fff!important}
#productLibrary .v41-links-heading button{background:#ffda2b!important}
#productLibrary .v41-link-row a{color:#1e55a0!important}
#productLibrary .v32-organize,#productLibrary .v31-stats,#productLibrary .v31-toolbar,#productLibrary .v34-tools,#productLibrary .v30-product-filters{background:#fff;border:1px solid #ece9e6;border-radius:12px;padding:9px;margin:10px 0;color:#111}
#productLibrary .v34-tools label{color:#333}#productLibrary .v34-tools button{background:#ffedab;color:#111;border:1px solid #111}
#productLibrary .v34-tools input{color:#111;background:white;border-color:#ccc}
#productLibrary button:not(.v41-folder){color:#111}
#productLibrary .v33-import{background:#fff!important;color:#111!important;border:1px solid #e2dcd2;padding:12px}
#productLibrary .v33-import p{color:#666!important}#productLibrary .v33-import input{color:#111!important;background:white!important}
.v42-import{margin:0 0 10px;border:1px solid #e9e2d9;border-radius:10px;padding:9px 11px;background:#fff}
.v42-import summary{cursor:pointer;font-size:11px;font-weight:800;color:#333}
#mediaLibrary .library-title h2,#mediaLibrary .empty h3{color:#111}
#mediaLibrary .library-title p,#mediaLibrary .collections-hint{color:#666}
#mediaLibrary .search,#mediaLibrary .collections-panel,#mediaLibrary .media-card{background:#fff;color:#111;border-color:#e0dbd6}
#mediaLibrary input,#mediaLibrary select{background:#fff;color:#111;border-color:#ccc}
#mediaLibrary .search input{background:transparent;color:#111}
#mediaLibrary .filter,#mediaLibrary .selection-toggle,#mediaLibrary .selection-action,#mediaLibrary .collections-heading button,#mediaLibrary .collections-controls button,#mediaLibrary .export-btn{background:#fff;color:#111;border:1px solid #ddd}
#mediaLibrary .filter.active{background:#ffda2b;color:#111;border-color:#111}
#mediaLibrary .card-title{color:#111}#mediaLibrary .card-meta{color:#666}
#mediaLibrary .card-actions button{background:#fff;color:#111;border-color:#ddd}
#mediaLibrary .gallery-header{color:#777}
/* Preserve modal readability for older functionality */
.v30-modal,.v37-overlay,.preview-overlay,.confirm-overlay{color:white}

/* V43: selection controls follow the bright theme, with accessible contrast. */
#productLibrary .v31-toolbar{background:#fff!important;border:1px solid #e9e4dc!important;padding:10px!important;gap:9px!important}
#productLibrary .v31-toolbar button{background:#fff!important;color:#151515!important;border:1.5px solid #222!important;border-radius:9px!important;min-height:41px;font-weight:750!important;box-shadow:none!important}
#productLibrary .v31-toolbar button:hover{background:#fff1b6!important}
#productLibrary .v31-toolbar button.active,#productLibrary .v31-toolbar button[aria-pressed="true"]{background:#ffda2b!important;color:#111!important}
#productLibrary .v31-selection{background:#fff8e7!important;color:#171717!important;border:1.5px solid #e6c977!important;border-radius:12px!important;padding:12px!important;box-shadow:none!important;margin:10px 0!important}
#productLibrary .v31-selection[hidden]{display:none!important}
#productLibrary .v31-selection-count{color:#161616!important;font-size:13px!important;font-weight:850!important;margin:0 0 10px!important}
#productLibrary .v31-selection-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#productLibrary .v31-selection-actions button{background:#fff!important;color:#161616!important;border:1px solid #c8c4bb!important;border-radius:9px!important;padding:11px 7px!important;font-size:12px!important;font-weight:700!important;min-height:41px!important;box-shadow:none!important}
#productLibrary .v31-selection-actions button:hover:not(:disabled){background:#ffdf55!important;border-color:#151515!important}
#productLibrary .v31-selection-actions .v31-danger{color:#b42338!important;border-color:#e6a5b0!important;background:#fff4f5!important}
#productLibrary .v31-selection-actions .v31-danger:hover:not(:disabled){background:#ffe2e6!important}
#productLibrary .v31-selection-actions button:disabled{opacity:.52!important;cursor:not-allowed!important;color:#5c5c5c!important}
#productLibrary .v31-selectable{outline-color:#e1bd31!important}
#productLibrary .v31-check{color:#171717!important;background:#fff7dd!important}

/* V44 — playful high-contrast fashion UI */
body{background:#f4f8ff!important;color:#111827!important}
main{background:#fff!important;color:#111827!important}
.v41-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff 5%,#fff0f6 65%,#d9eeff 100%)!important;border:2px solid #111!important;border-radius:22px!important;padding:23px 19px!important;box-shadow:5px 6px 0 #111!important;margin:7px 8px 20px!important}
.v41-hero h2{font-size:43px!important;line-height:1.02!important;letter-spacing:-2px!important;color:#111!important;font-weight:950!important;margin:12px 0!important}
.v41-hero h2 em{color:#fa2875!important;font-style:normal!important}.v41-hero h2 b{color:#1687ff!important}
.v41-hero p{color:#273449!important;font-size:12px!important;max-width:270px}
.v41-hero-icons{color:#ff2778!important;font-weight:900!important}
.v41-quickadd{border:2px solid #111!important;border-radius:14px!important;box-shadow:3px 4px 0 #111!important;overflow:visible!important;margin:15px 9px 23px!important;background:#fff!important}
.v41-quickadd input{color:#111!important;background:#fff!important}
#v41QuickAdd{background:#ffda2b!important;color:#111!important;border:2px solid #111!important;border-radius:11px!important;font-size:23px!important;font-weight:900!important}
.v41-folder-grid{gap:10px!important}
.v41-folder{border-radius:18px!important;border:1.5px solid #141414!important;box-shadow:3px 4px 0 #111!important;min-height:105px!important;color:#111!important}
.v41-folder:nth-child(6n+1){background:#ffb2d3!important}.v41-folder:nth-child(6n+2){background:#ffe16a!important}.v41-folder:nth-child(6n+3){background:#96d5ff!important}.v41-folder:nth-child(6n+4){background:#cbb0ff!important}.v41-folder:nth-child(6n+5){background:#9cf2d0!important}.v41-folder:nth-child(6n){background:#ffb48e!important}
.v30-product-gallery .v30-card,.v30-product-gallery .v30-product-card{border-radius:18px!important;overflow:hidden!important}
#productLibrary .library-title h2{font-size:22px!important;font-weight:900!important;color:#111!important}
#productLibrary .v34-tools{border-radius:15px!important;background:#eef6ff!important}
.v44-scan-tools{display:flex;gap:8px;margin:12px 0 6px;flex-wrap:wrap}
.v44-scan-tools button{border:2px solid #171717!important;border-radius:12px!important;background:#ffda2b!important;color:#111!important;font-weight:850!important;padding:11px 12px!important;box-shadow:2px 3px 0 #111!important}
.v44-scan-tools button+button{background:#b9e8ff!important}
.v44-scan-tools button:disabled{opacity:.6;cursor:wait}
.v44-scan-status{font-size:12px;line-height:1.45;color:#26394e;margin:6px 0 12px}
.v44-vision-panel{background:#fff;border:2px solid #111;border-radius:14px;padding:12px;margin:10px 0;color:#111}
.v44-vision-panel[hidden]{display:none!important}.v44-vision-panel label{font-size:12px;font-weight:800;display:block}.v44-vision-panel input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px;border:1px solid #888;border-radius:8px;background:#fff;color:#111}
.v44-vision-panel p{font-size:11px;line-height:1.5;color:#444}.v44-vision-panel button{background:#ff2778;color:white;border:0;border-radius:9px;padding:10px 14px;font-weight:800}
.v37-dialog{background:#fff!important;color:#111!important}.v37-head h2,.v37-hint{color:#111!important}.v37-item{background:#fff!important;color:#111!important}.v37-item input{color:#111!important;background:#fff!important}


/* V45 — minimal, blue-accented, fashion library redesign. Overrides legacy themes. */
:root{color-scheme:light!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body{width:430px!important;min-height:500px!important;max-height:680px!important;background:#f7f9fc!important;color:#172034!important}
.app{background:#fff!important;padding:16px!important;gap:0!important}
.header{background:#fff!important;border:0!important;border-bottom:1px solid #edf0f5!important;padding:0 0 15px!important;margin:0 0 13px!important}
.brand-mark{background:#fb377a!important;border:0!important;box-shadow:none!important;border-radius:13px!important;width:44px!important;height:44px!important}
.brand h1{color:#111827!important;font-size:18px!important;font-weight:850!important;letter-spacing:-.4px!important}
.brand p{color:#718096!important;letter-spacing:.1px!important;font-size:11px!important;margin-top:4px!important}
.counter{background:#eff6ff!important;border-radius:13px!important;min-width:55px!important;border:0!important;box-shadow:none!important;color:#1669e9!important}
.counter strong{color:#1669e9!important}.counter span{color:#56677d!important}
.v30-tabs{order:1!important;display:flex!important;gap:9px!important;margin:0 0 12px!important}
.v30-tab{background:#f1f5f9!important;border:1px solid #edf0f5!important;color:#172034!important;border-radius:12px!important;min-height:48px!important;box-shadow:none!important;font-weight:750!important}
.v30-tab.active{background:#1677f8!important;color:#fff!important;border-color:#1677f8!important;box-shadow:0 4px 12px #1677f82a!important}
#productLibrary,#mediaLibrary{order:2!important;background:#fff!important;color:#172034!important}
.collector{order:3!important;background:#f8faff!important;border:1px solid #e5edfa!important;box-shadow:none!important;border-radius:14px!important;margin:17px 0 0!important;padding:13px!important}
.collector .section-heading h2{color:#172034!important;font-size:13px!important}.collector .section-heading span{color:#64748b!important}
.collect-btn,.collect-btn.primary{border:1px solid #e2e8f0!important;background:#fff!important;color:#172034!important;box-shadow:none!important;border-radius:10px!important;font-size:11px!important}
.collect-btn.primary{background:#1677f8!important;color:#fff!important;border-color:#1677f8!important}
.status{color:#64748b!important}footer{order:4!important;border-color:#e8edf5!important;color:#98a2b3!important}footer span{color:#1677f8!important}
#productLibrary .v41-hero{margin:4px 0 12px!important;padding:13px 2px 7px!important;background:#fff!important;border:0!important;box-shadow:none!important;border-radius:0!important;min-height:0!important}
#productLibrary .v41-hero h2{font-size:25px!important;letter-spacing:-.9px!important;line-height:1.2!important;margin:5px 0 4px!important;font-weight:850!important;color:#111827!important}
#productLibrary .v41-hero-icons span:first-child{font-size:10px!important;color:#1677f8!important;letter-spacing:1px!important}
#productLibrary .v41-hero p{font-size:12px!important;color:#64748b!important;max-width:none!important;margin:0!important}
#productLibrary .v41-quickadd{margin:9px 0 18px!important;background:#fff!important;border:0!important;box-shadow:none!important;border-radius:11px!important;gap:8px!important;overflow:visible!important}
#productLibrary .v41-quickadd input{height:43px!important;border:1px solid #e2e8f0!important;box-shadow:none!important;border-radius:10px!important;color:#111827!important;font-size:12px!important;padding:0 12px!important}
#productLibrary .v41-quickadd button{height:43px!important;width:51px!important;background:#1677f8!important;border:0!important;box-shadow:none!important;color:#fff!important;border-radius:10px!important;font-size:22px!important}
#productLibrary .v41-folders-head{margin:0 0 12px!important}.v41-folders-head strong{color:#111827!important;font-size:17px!important}
#productLibrary .v41-folders-head button{color:#1677f8!important;font-weight:700!important}
#productLibrary .v41-folder-grid{gap:10px!important;margin:0 0 18px!important}
#productLibrary .v41-folder{min-height:110px!important;border:0!important;box-shadow:none!important;border-radius:13px!important;padding:12px!important;gap:6px!important;color:#172034!important}
#productLibrary .v41-folder:nth-child(6n+1){background:#fff0f5!important}
#productLibrary .v41-folder:nth-child(6n+2){background:#e7f3ff!important}
#productLibrary .v41-folder:nth-child(6n+3){background:#e8faed!important}
#productLibrary .v41-folder:nth-child(6n+4){background:#f2eaff!important}
#productLibrary .v41-folder:nth-child(6n+5){background:#fff4e3!important}
#productLibrary .v41-folder:nth-child(6n){background:#e7f7f7!important}
#productLibrary .v41-folder.selected{outline:2px solid #1677f8!important;background:#e9f3ff!important}
#productLibrary .v41-folder-icon{border:0!important;box-shadow:none!important}
#productLibrary .v30-product-gallery{gap:10px!important}
#productLibrary .v30-product-card{background:#fff!important;border:1px solid #e8edf5!important;box-shadow:0 3px 10px #15213b0b!important;border-radius:13px!important}
#productLibrary .v30-product-info h3{color:#111827!important}
#productLibrary .v30-product-actions button{border:1px solid #e1e8f0!important;background:#f8faff!important;color:#172034!important;border-radius:8px!important}
#productLibrary .v41-links-heading button,#productLibrary .v33-import button,#productLibrary .v34-tools button{background:#e8f2ff!important;color:#1269d9!important;border:1px solid #c9dfff!important;border-radius:9px!important}
#productLibrary .v32-organize,#productLibrary .v31-stats,#productLibrary .v31-toolbar,#productLibrary .v34-tools,#productLibrary .v30-product-filters{border-color:#e9eef5!important;background:#fff!important;color:#172034!important;box-shadow:none!important}
#productLibrary .v31-toolbar button,#productLibrary .v31-selection-actions button{background:#f6f9fd!important;border:1px solid #e2e8f0!important;color:#172034!important;box-shadow:none!important}
#productLibrary .v31-selection{background:#f3f8ff!important;border:1px solid #d8e8ff!important;color:#172034!important}
#productLibrary .v31-toolbar button[aria-pressed="true"]{background:#e7f2ff!important;border-color:#1677f8!important;color:#1269d9!important}
#mediaLibrary .filter.active{background:#e7f2ff!important;color:#1269d9!important;border-color:#b9d9ff!important}
#mediaLibrary .library-title h2{color:#172034!important}
#mediaLibrary .search,#mediaLibrary .collections-panel,#mediaLibrary .media-card{border-color:#e8edf5!important;background:#fff!important;box-shadow:none!important}
#mediaLibrary .card-actions button{background:#f6f9fd!important;color:#172034!important}
#mediaLibrary .filter{background:#f6f9fd!important;color:#455468!important}
.v37-overlay{background:#1422388c!important;padding:8px!important;align-items:flex-start!important;overflow-y:auto!important}
.v37-dialog{width:min(100%,430px)!important;max-height:calc(100vh - 16px)!important;overflow-y:auto!important;background:#fff!important;border:0!important;border-radius:20px!important;box-shadow:0 15px 40px #10223c3d!important;padding:16px!important;color:#172034!important}
.v37-head{padding-bottom:12px!important;border-bottom:1px solid #e8edf5!important}.v37-head h2{font-size:19px!important;color:#111827!important}
.v37-hint{font-size:12px!important;color:#64748b!important;line-height:1.5!important}
.v37-canvas{border-radius:14px!important;overflow:hidden!important;background:#eef2f7!important}
.v44-scan-tools{display:grid!important;grid-template-columns:2fr 1fr!important;gap:8px!important;margin:13px 0 7px!important}
.v44-scan-tools button{min-height:44px!important;background:#1677f8!important;border:0!important;border-radius:11px!important;color:#fff!important;box-shadow:none!important;font-size:12px!important;font-weight:750!important}
.v44-scan-tools button+button{background:#edf3fb!important;color:#172034!important}
.v44-scan-status{color:#66758b!important;background:#f5f8fc!important;border-radius:9px!important;padding:9px!important;font-size:11px!important}
.v44-vision-panel{border:1px solid #dbe5f1!important;background:#f8faff!important;border-radius:12px!important}
.v44-vision-panel button{background:#1677f8!important;color:#fff!important}
.v37-item{background:#fff!important;border:1px solid #e6edf5!important;border-radius:12px!important;color:#172034!important}
#v37AddItem{background:#e8f2ff!important;color:#1269d9!important;border:0!important;border-radius:11px!important;min-height:42px!important;font-weight:750!important}
#productLibrary .v42-import{background:#f9fbfe!important;border:1px solid #e5edf6!important;color:#172034!important;box-shadow:none!important}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #1677f8!important;outline-offset:2px!important}


/* V46: compact, neutral gallery; no decorative collection tiles */
#productLibrary .v41-folders-head,#productLibrary .v41-folder-grid{display:none!important}
#productLibrary .v41-hero{display:none!important}
#productLibrary .v41-quickadd{margin:12px 0 18px!important}
#productLibrary .library-title{margin:12px 0!important;display:flex!important;align-items:center!important;gap:8px!important}
#productLibrary .library-title h2{font-size:20px!important;letter-spacing:-.4px!important}
#productLibrary .library-title p{font-size:11px!important;color:#64748b!important}
#productLibrary .export-btn{background:#f1f5f9!important;color:#334155!important;border:1px solid #e2e8f0!important;box-shadow:none!important;border-radius:9px!important;font-size:11px!important;padding:9px!important}
#productLibrary .v30-product-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
#productLibrary .v30-product-card{min-width:0!important;overflow:hidden!important}
#productLibrary .v30-product-actions{gap:5px!important}
#productLibrary .v30-product-actions button{font-size:11px!important;min-width:0!important;padding:8px 5px!important}
#productLibrary .v32-organize{padding:10px!important;border:1px solid #e8edf5!important;border-radius:12px!important}
#productLibrary .v31-toolbar button,#productLibrary .v31-selection-actions button{color:#26344a!important;background:#f8fafc!important;border:1px solid #dbe3ee!important}
#productLibrary .v31-selection{background:#eff6ff!important;color:#172034!important}
#productLibrary .v31-selection-count{color:#172034!important}
#productLibrary .v31-selection button:disabled{opacity:.5!important}
.v44-scan-tools{grid-template-columns:1fr!important}
.v44-vision-panel{display:none!important}
.v44-scan-status{background:#f1f5f9!important;color:#475569!important;font-size:12px!important;line-height:1.5!important}
.v37-dialog,.v37-item{font-family:Arial,system-ui,sans-serif!important}
.v37-head h2{font-size:20px!important}
#v37AddItem{background:#e9f3ff!important;color:#1269d9!important}

/* V50.4: hide deferred AI controls and redundant quick-add entry; retain DOM for compatibility */
.v50-panel,.v41-quickadd,.v44-scan-tools,#v44ScanStatus{display:none!important}
