/* Dialogs stay in their owning card, whose last-child spacing rule otherwise
   removes the native auto bottom margin and pushes the modal to the bottom. */
dialog:is(.v2-action-dialog,.v2-dialog,.v2-reference-add-dialog)[open]{position:fixed;inset:0;margin:auto}
.v2-action-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--v2-border,#dbe2ea);border-radius:14px;background:var(--v2-surface,#fff);color:var(--v2-text,#1e293b);box-shadow:0 24px 80px #0f172a33;overflow:auto;overscroll-behavior:contain}
.v2-action-dialog--wide{width:min(1200px,calc(100vw - 32px))}
.v2-action-dialog::backdrop{background:#0f172a80}
.v2-action-dialog-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:var(--v2-surface,#fff);border-bottom:1px solid var(--v2-border,#dbe2ea)}
.v2-action-dialog-header h2{margin:0;font-size:20px;line-height:1.4}
.v2-action-dialog-header button{flex:none;font-size:24px}
.v2-action-dialog-body{padding:24px;min-width:0}
.v2-action-dialog-body>.v2-card{box-shadow:none;margin:0 0 16px}
.v2-action-dialog-body .v2-table-region{max-height:55dvh;overflow:auto}
.v2-action-dialog-body .v2-table thead{position:sticky;top:0;z-index:1}
.v2-action-dialog-body .v2-catalog-actions{gap:10px;flex-wrap:wrap}
.v2-inline-help{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:1px solid currentColor;border-radius:50%;background:transparent;color:var(--v2-primary,#2563eb);font-size:12px;cursor:pointer}
.v2-toolbar-compact{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.v2-toolbar-compact .v2-input,.v2-toolbar-compact .v2-select{width:auto;min-width:150px}
.v2-empty .v2-catalog-actions{justify-content:center;margin-top:16px}
.v2-view-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.v2-view-tabs [aria-current="page"]{background:var(--v2-primary,#2563eb);color:white;border-color:var(--v2-primary,#2563eb)}
.v2-dialog-progress{padding:12px 16px;border-radius:8px;background:var(--v2-surface-muted,#f1f5f9)}
.v2-workbench .wb-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.v2-workbench [data-v2-export-selection]:empty,.v2-workbench [data-wb-read-status]:empty{display:none}
.v2-formal{--v2-product-sticky-top:calc(var(--v2-topbar-height) + var(--v2-preview-height))}
@media(max-width:760px){.v2-workbench .wb-metrics{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.v2-action-dialog,.v2-action-dialog--wide{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.v2-action-dialog-header{padding:14px 16px}.v2-action-dialog-body{padding:16px}.v2-action-dialog-body .v2-form-grid{grid-template-columns:minmax(0,1fr)}.v2-action-dialog-body .v2-table-region{max-height:60dvh}}
@container (min-width:681px){.v2-workbench [data-view=new-product-list] .wb-row-actions{flex-wrap:nowrap}}
.v2-workbench [data-view=new-product-list] .wb-row-actions>.v2-button{white-space:nowrap;flex-shrink:0}
.v2-workbench [data-view=new-product-list] .wb-row-actions>a.v2-button:hover{text-decoration:none}
