/* Scoped admin-library controls; storefront fonts and product widths are unchanged. */
.whb-filters{display:grid;grid-template-columns:minmax(180px,1.6fr) repeat(4,minmax(130px,1fr));gap:16px;align-items:end}
.whb-filters .field{margin:0;min-width:0}.whb-filters input,.whb-filters select{width:100%;min-height:44px;box-sizing:border-box}
.whb-filter-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}
.whb-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}
.whb-selection{border-top:1px solid var(--line,#dfe5df);padding-top:16px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.whb-check{display:inline-flex;align-items:center;gap:8px;font-weight:600;cursor:pointer}.whb-check input{width:18px;height:18px;accent-color:#194e40}
.whb-selected{outline:2px solid #194e40;outline-offset:2px}.whb-item-select{margin-bottom:16px}.whb-item-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.whb-item-actions .btn{font-size:13px;padding:10px 12px}
.whb-progress{margin-top:16px}.whb-progress progress{width:100%;height:12px;accent-color:#194e40}.whb-progress .notice{margin:12px 0}
.whb-photo-link{display:block;width:100%;height:100%}.whb-empty{grid-column:1/-1;padding:28px;border:1px dashed #ced7cf;border-radius:10px}
.whb-paging{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}.whb-muted{color:var(--muted,#607069)}
.whb-removed{border-top:1px solid #dfe5df;margin-top:16px;padding-top:16px}.whb-removed article{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #e5e9e4}.whb-removed p{overflow-wrap:anywhere}
.whb-job-result{max-height:220px;overflow:auto}.whb-job-result p{padding:4px 0;margin:0}
@media(max-width:1400px){.whb-filters{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.whb-filters{grid-template-columns:1fr}.whb-selection .btn{flex:1 1 auto}.whb-selection{align-items:stretch}.whb-item-actions .btn{flex:1 1 auto}.whb-removed article{align-items:flex-start;flex-direction:column}}
.whi-photo>.zsync-discount-badge{padding:6px 10px;color:#fff;font-size:12px}

/* Seven columns on the requested wide-desktop view; never shrink the type.
 * On narrower viewports the existing auto-fill layout remains responsive. */
.whb-seven-grid .whi-card{height:100%;display:flex;flex-direction:column}
.whb-seven-grid .whi-body{flex:1;display:flex;flex-direction:column}
.whb-seven-grid .whb-item-actions{margin-top:auto;padding-top:16px}
.whb-bulk-remove{color:#b42318;border-color:#b42318}
@media(min-width:1900px){
 .whi-grid.whb-seven-grid{grid-template-columns:repeat(7,minmax(0,1fr));align-items:stretch}
 .whb-seven-grid .whi-card{max-width:none}
}

/* Publication is independent from the green selection outline and stock/discount labels. */
.whi-card[data-whb-publication]{border-top-width:4px}
.whi-card[data-whb-publication="published"]{background:#effaf2;border-color:#a3d3b0}
.whi-card[data-whb-publication="unpublished"]{background:#fff5e7;border-color:#efb46b}
.whi-card[data-whb-publication="unknown"]{background:#fff5f5;border-color:#e6b7b7}
.whi-card[data-whb-publication] .whi-photo{background:#fff}
.whb-publication{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 18px}
.whb-publication-badge,.whb-publication-counts>span{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
[data-whb-publication="published"] .whb-publication-badge,.whb-status-published{color:#145b35;background:#def3e5;border-color:#a3d3b0}
[data-whb-publication="unpublished"] .whb-publication-badge,.whb-status-unpublished{color:#7e3f06;background:#ffe6bf;border-color:#e7ae60}
[data-whb-publication="unknown"] .whb-publication-badge,.whb-status-unknown{color:#932727;background:#ffe8e8;border-color:#e6b7b7}
.whb-publication-note{font-size:12px;line-height:1.5;color:#4d5a57}
.whb-publication-legend{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.whb-publication-legend p{margin:6px 0 0;max-width:650px}
.whb-publication-counts{display:flex;flex-wrap:wrap;gap:10px}
@media(forced-colors:active){.whi-card[data-whb-publication],.whb-publication-badge,.whb-publication-counts>span{border-color:CanvasText}}

/* V63: explicit fast/full modes and honest per-request progress, including tablets. */
.whb-update-mode{max-width:520px;margin-top:16px}.whb-update-mode select{width:100%;min-height:44px;font-size:14px}.whb-batch-status{font-size:13px;line-height:1.5;margin:12px 0 0;color:#34564a;overflow-wrap:anywhere}@media(max-width:900px){.whb-update-mode{max-width:none}.whb-update-mode select{font-size:16px}}

/* WebKit native menus need explicit appearance to retain the touch-height floor. */
.whb-update-mode select{appearance:none;-webkit-appearance:none;min-height:44px;line-height:1.4;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#46675b 50%),linear-gradient(135deg,#46675b 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}

/* V64: distinguish Zoho updates from amber refresh and red removal actions.
 * Presentation only: retain existing selection, confirmation and disabled guards. */
.whb-selection .btn[data-whb="bulk-update"]{background:#1d4ed8;border-color:#1d4ed8;color:#fff;box-shadow:0 1px 2px rgba(29,78,216,.15)}
.whb-selection .btn[data-whb="bulk-update"] [data-whb-selected-count]{color:inherit}
.whb-selection .btn[data-whb="bulk-update"]:hover:not(:disabled){background:#1e40af;border-color:#1e40af;color:#fff}
.whb-selection .btn[data-whb="bulk-update"]:active:not(:disabled){background:#1e3a8a;border-color:#1e3a8a}
.whb-selection .btn[data-whb="bulk-update"]:focus-visible{outline:3px solid #1e40af;outline-offset:3px}
.whb-selection .btn[data-whb="bulk-update"]:disabled{background:#e2e8f0;border-color:#cbd5e1;color:#64748b;opacity:1;box-shadow:none;cursor:not-allowed}
@media(forced-colors:active){.whb-selection .btn[data-whb="bulk-update"]{background:ButtonFace;border-color:ButtonText;color:ButtonText;box-shadow:none}.whb-selection .btn[data-whb="bulk-update"]:focus-visible{outline-color:Highlight}.whb-selection .btn[data-whb="bulk-update"]:disabled{background:ButtonFace;border-color:GrayText;color:GrayText}}

/* Import selections are scoped to this workspace, never saved-product filters. */
.whs-scope{border:1px solid #cfdad5;border-radius:12px;padding:20px;margin:20px 0;min-width:0}
.whs-scope legend{font-weight:700;padding:0 8px}.whs-scope .field{min-width:0;margin:0}.whs-scope input,.whs-scope select{max-width:100%;box-sizing:border-box}
.whs-scope-header{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:end;gap:18px}.whs-scope-header p{margin:0 0 8px}.whs-scope-header select{width:100%;min-height:44px}
.whs-selectors{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;margin-top:24px;align-items:start}.whs-selectors[hidden]{display:none}.whs-group{min-width:0}
.whs-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px}.whs-count{padding:4px 9px;border-radius:20px;background:#eef4f0;color:#194d3f;font-size:12px;font-weight:700;white-space:nowrap}
.whs-scope .whs-help{min-height:38px;margin:8px 0 12px}.whs-options{display:grid;gap:8px;min-height:184px;max-height:272px;overflow-y:auto;overflow-x:hidden;padding:12px;border:1px solid #dbe1dc;border-radius:10px;background:#f8faf9;align-content:start;scrollbar-gutter:stable}.whs-brands{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}.whs-categories{grid-template-columns:minmax(0,1fr)}
.whs-scope .whs-check{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;margin:0;border:2px solid #dce5df;border-radius:8px;background:#fff;cursor:pointer;overflow-wrap:anywhere;font-size:13px;line-height:1.4;transition:background .15s,border-color .15s}
.whs-scope .whs-check:hover{border-color:#769c87;background:#f0f7f3}.whs-scope .whs-check.is-selected{background:#e4f4e9;border-color:#23734d;color:#16452f;box-shadow:0 0 0 1px #23734d inset;font-weight:700}.whs-scope .whs-check:focus-within{outline:3px solid #194d3f;outline-offset:2px}.whs-scope .whs-check input{width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:0 0 18px;accent-color:#23734d}.whs-option-name{min-width:0;flex:1}.whs-option-state{font-size:10px;font-weight:700;color:#607069;flex:0 0 auto}.is-selected .whs-option-state{color:#16452f}
.whs-add-brand{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:16px}.whs-add-brand input{width:100%;min-height:44px}.whs-add-brand .btn{min-height:44px;white-space:normal}.whs-rule{margin:14px 0 0}
.whs-preview{margin-top:20px;border:1px solid #bdd4c6;border-left:4px solid #23734d;border-radius:10px;background:#f0f8f3;padding:16px;overflow-wrap:anywhere}.whs-preview-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}.whs-preview-state{font-size:12px;font-weight:700;color:#194d3f}.whs-preview-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.whs-preview-details dt{font-size:11px;color:#50645b;margin-bottom:5px}.whs-preview-details dd{margin:0;font-size:13px;font-weight:650}.whs-preview p{margin:8px 0 0}.whs-details{margin-top:16px}.whs-details summary{font-size:12px;font-weight:600;cursor:pointer}.whs-details p{margin:12px 0 0}
.whs-scope:disabled{opacity:.8}.whs-scope:disabled .whs-check{cursor:not-allowed}.whs-scope:disabled .whs-check.is-selected{opacity:1}.whs-run-actions{gap:12px}.whs-run-heading{border-top:1px solid #dbe1dc;margin:24px 0 0;padding-top:20px}.whs-run-heading h3{margin:0 0 6px}.whs-run-heading p{margin:0}.whs-starting{margin-top:18px;padding:16px;border:1px solid #bdd4c6;border-radius:10px;background:#f0f8f3}.whs-starting progress{display:block;width:100%;height:12px;margin:12px 0;accent-color:#23734d}.whs-starting p{margin:0;font-size:13px}
@media(max-width:1100px){.whs-add-brand{grid-template-columns:1fr}.whs-add-brand .btn{justify-self:start}}
@media(max-width:780px){.whs-selectors,.whs-scope-header{grid-template-columns:1fr;gap:18px}.whs-scope{padding:14px}.whs-scope .whs-help{min-height:0}.whs-preview-details{grid-template-columns:1fr;gap:12px}.whs-add-brand .btn{width:100%}.whs-run-actions .btn{flex:1 1 220px}.whs-scope-header select,.whs-add-brand input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.whs-scope .whs-check{transition:none}}
@media(forced-colors:active){.whs-scope .whs-check{border-color:ButtonText}.whs-scope .whs-check.is-selected{border-color:Highlight;outline:2px solid Highlight}.whs-scope .whs-check:focus-within{outline-color:Highlight}.whs-preview{border-color:CanvasText}}

/* V93: compact brand selection tools; existing import status and progress stay separate. */
.whs-picker-tools{display:grid;gap:8px;margin:10px 0;min-width:0}
.whs-picker-tools>.field{margin:0;min-width:0}
.whs-picker-tools input{box-sizing:border-box;width:100%;min-width:0;min-height:40px}
.whs-picker-actions{display:flex;flex-wrap:wrap;gap:6px}
.whs-picker-actions .btn{min-height:34px;padding:6px 10px;font-size:12px}
.whs-picker-actions .btn[aria-pressed=true]{background:#eaf6ee;border-color:#80b493;color:#174f38;font-weight:700}
.whs-picker-tools p{margin:0}
.whs-scope [data-whs-selection-error]{color:#933d25}
.whs-scope :is(.whs-check,[data-whs-empty],[data-whs-selection-error])[hidden]{display:none!important}
@media screen and (any-pointer:coarse),screen and (max-width:680px){.whs-picker-actions .btn{min-height:44px}.whs-picker-tools input{min-height:44px;font-size:16px}}
@media(forced-colors:active){.whs-picker-actions .btn[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-2px}}

@media screen {.whs-scope .whs-options{min-height:0;padding:8px;gap:6px}.whs-scope .whs-help{min-height:0;margin:6px 0 8px}.whs-selectors{gap:16px;margin-top:16px}}

/* V94: compact mode controls; scope draft is independent of the saved job. */
.whs-sync-modes{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0 8px}
.whs-sync-modes .field{flex:1;min-width:min(100%,280px);margin:0}
.whs-run-actions .btn{min-height:44px}
@media(max-width:600px){.whs-sync-modes .field{flex-basis:100%}.whs-run-actions .btn{flex:1 1 180px}}
