.wb-product-sync { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); color: var(--text); }
.wb-product-sync[hidden] { display: none; }
.wb-product-sync .ps-heading,.wb-product-sync .ps-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wb-product-sync .ps-heading { justify-content: space-between; }
.wb-product-sync p { margin: 6px 0 0; overflow-wrap: anywhere; }
.wb-product-sync .ps-progress { width: 100%; margin-top: 8px; accent-color: var(--accent); }
.ps-dialog { box-sizing: border-box; width: min(840px,calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: calc(100vh - var(--s16-header-height,var(--topbar-h)) - 48px); margin-top: calc(var(--s16-header-height,var(--topbar-h)) + 24px); padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); color: var(--text); }
.ps-dialog::backdrop { background: rgba(0,0,0,.42); }
.ps-dialog header,.ps-dialog footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
.ps-dialog header { border-bottom: 1px solid var(--border); }
.ps-dialog h2 { margin: 0; font-size: 18px; }
.ps-dialog footer { border-top: 1px solid var(--border); justify-content: flex-end; }
.ps-dialog-body { padding: 12px 18px; overflow-y: auto; max-height: calc(100vh - var(--s16-header-height,var(--topbar-h)) - 230px); overflow-wrap: anywhere; }
.ps-dialog-body p { margin: 8px 0; }
.ps-version { font-size: 12px; color: var(--text-2); }
.ps-diff-scroll { width: 100%; max-height: 35vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.ps-diff-scroll table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ps-diff-scroll th,.ps-diff-scroll td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ps-diff-scroll th { position: sticky; top: 0; background: var(--bg-elev2); }
.ps-diff-scroll th:first-child { width: 24%; }
.ps-diff-scroll th:nth-child(2) { width: 16%; }
.ps-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.ps-consent input { flex-shrink: 0; margin-top: 3px; }
.ps-dialog progress { width: 100%; accent-color: var(--accent); }
.ps-dialog button:focus-visible,.wb-product-sync button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
