/* V91: screen-only CRM grids. No storefront cards, print layouts, price logic or progress engines. */
@media screen {
 :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.data-wrap,.table-container,.fa-table-wrap,.sc-table,.bp-table-wrap,.cm-table-wrap,.om-table-wrap,.ss-table){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table{border-collapse:collapse;border:1px solid #d5dee7;width:100%;font-size:13px;line-height:1.4}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table :is(th,td){padding:8px 10px;border:1px solid #d5dee7;vertical-align:middle}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table thead th{background:#eef2f6;color:#425168;font-size:11px;line-height:1.4;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table td small{display:block;font-size:12px;line-height:1.4;color:#627187;margin-top:3px}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table tbody tr:hover>td{background:#f6f8fb}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table :is(.table-actions,.cm-row-actions){gap:5px;flex-wrap:nowrap;align-items:center}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table .btn{min-height:32px;padding:6px 9px;font-size:12px;line-height:1.3;white-space:nowrap}
 :is(.workspace .admin-main,#buyer-admin,#home-admin) table :is(.pill,.cm-tag){padding:2px 6px;min-height:0;font-size:12px;line-height:1.4;border-radius:4px;white-space:nowrap}
 .workspace #discount-page>.panel{padding:16px;min-width:0;margin-top:16px}
 .workspace #discount-page .cm-page-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
 .workspace #discount-page h2{font-size:19px;margin:0;line-height:1.4}
 .workspace #discount-page p{margin:10px 0;line-height:1.5}
 .workspace #discount-page .cm-guidance{margin:10px 0;font-size:13px}
 .workspace #discount-page :is(.cm-guidance,.cm-history>details)>summary{cursor:pointer;font-weight:600;color:#47586c;min-height:32px;padding:5px 0}
 .workspace #discount-page .cm-grid{gap:10px;margin:12px 0}
 .workspace #discount-page .cm-grid :is(input:not([type=checkbox]),select),.workspace #discount-page #cm-rule>label input{min-height:36px;padding:7px 9px;font-size:13px;border-radius:5px}
 .workspace #discount-page .cm-grid label{gap:5px;font-size:12px}
 .workspace #discount-page #cm-filter{grid-template-columns:minmax(150px,1fr) 130px minmax(200px,1.4fr) auto auto;gap:10px;align-items:end}
 .workspace #discount-page .cm-date-filters>summary{min-height:36px;padding:8px 10px;border:1px solid #cbd5d1;border-radius:5px;cursor:pointer;font-size:13px;box-sizing:border-box}
 .workspace #discount-page .cm-date-filters>div{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding-top:10px}
 .workspace #discount-page .cm-date-filters[open]{grid-column:1/-1;grid-row:2}
 .workspace #discount-page .cm-date-filters[open]>summary{width:max-content}
 .workspace #discount-page .cm-date-filters label{display:grid;gap:5px;min-width:140px;margin:0}
 .workspace #discount-page .btn{min-height:34px;padding:7px 10px;font-size:12px;line-height:1.3}
 .workspace #discount-page .cm-list-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;font-size:13px}
 .workspace #discount-page .cm-list-summary>span{color:#627187;font-size:12px}
 .workspace #discount-page .cm-rule-section{border:1px solid #ccd8df;border-radius:7px;margin-top:14px;min-width:0;background:#fff;overflow:hidden}
 .workspace #discount-page .cm-rule-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f0f6f3;padding:10px 12px;min-height:48px;cursor:pointer;list-style:none}
 .workspace #discount-page .cm-rule-section>summary::before{content:'▸';font-size:15px;color:#356652}
 .workspace #discount-page .cm-rule-section[open]>summary::before{content:'▾'}
 .workspace #discount-page .cm-rule-section>summary>span:first-of-type{flex:1;min-width:0;display:grid;gap:3px}
 .workspace #discount-page .cm-rule-section>summary small{color:#627187;font-size:12px;font-weight:400}
 .workspace #discount-page .cm-section-count{font-size:12px;white-space:nowrap;border:1px solid #c1d7cb;border-radius:20px;background:#fff;padding:3px 9px}
 .workspace #discount-page .cm-rule-table{min-width:1010px;border-inline:0;margin:0;font-size:13px;table-layout:auto}
 .workspace #discount-page .cm-rule-table :is(th,td):last-child{width:1%;min-width:205px}
 .workspace #discount-page .cm-rule-table .cm-row-actions{display:flex;flex-wrap:nowrap;gap:5px;margin:0}
 .workspace #discount-page .cm-rule-table .cm-row-actions>.btn{min-height:32px;padding:6px 8px;font-size:12px;flex:0 0 auto}
 .workspace #discount-page .cm-rule-table :is(th,td){padding:8px 10px;border:1px solid #d5dee7;vertical-align:middle}
 .workspace #discount-page .cm-rule-table .cm-rate-band th{background:#f8fafc;padding:5px 10px;text-align:left;font-size:12px;color:#334b5a;text-transform:none}
 .workspace #discount-page .cm-rate-band span{font-weight:400;color:#64748b;margin-left:10px}
 .workspace #discount-page .cm-rule-table td strong{font-size:13px;font-weight:650}
 .workspace #discount-page .cm-price-cell{white-space:nowrap}
 .workspace #discount-page .cm-empty{padding:16px!important;color:#607083}
 .workspace #discount-page .cm-section-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 12px;font-size:12px;color:#526277}
 .workspace #discount-page .cm-section-pagination>div{display:flex;gap:6px}
 .workspace #discount-page #cm-editor>details>summary{cursor:pointer;min-height:36px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
 .workspace #discount-page #cm-editor>details>summary>span{font-size:12px;color:#627187}
 .workspace #discount-page .cm-note{padding:10px 12px;font-size:13px}
 .workspace #discount-page .cm-company-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;max-height:250px;border-color:#d5dee7}
 .workspace #discount-page .cm-company-list>label{min-height:36px;padding:8px 10px;border:1px solid #e0e6eb;margin:-1px 0 0 -1px;font-size:13px;line-height:1.4;cursor:pointer}
 .workspace #discount-page .cm-multi>summary{min-height:36px;padding:8px;font-size:13px}
 .workspace #discount-page .cm-options{padding:8px;max-height:260px}
 .workspace #discount-page .cm-options>label{min-height:36px;padding:7px 8px;border:1px solid transparent;border-radius:4px;font-size:13px;line-height:1.4;cursor:pointer}
 .workspace #discount-page :is(.cm-company-list,.cm-options)>label:has(input:checked){background:#eaf6ee;border-color:#8fc4a1;color:#164d36}
 .workspace #discount-page .cm-item{padding:8px 10px;border-radius:5px;gap:8px}
 .workspace #discount-page .cm-item>span{gap:3px;font-size:13px}
 .workspace #discount-page .cm-actions{gap:8px;margin:10px 0}
 .workspace #discount-page .cm-editor-actions{position:sticky;bottom:0;z-index:3;background:#fff;padding:10px 0;border-top:1px solid #d5dee7;margin-bottom:0}
 .workspace #discount-page .cm-editor-actions>span{font-size:12px;color:#607083}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog){padding:18px;max-height:calc(100dvh - 28px);overscroll-behavior:contain}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog) :is(.modal-heading,.pa-heading){margin-bottom:12px;gap:12px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog) h2{font-size:22px;margin:0}
 body:has(.workspace) :is(.allocation-options,.pa-companies){padding:0;border:1px solid #d5dee7;border-radius:6px;max-height:min(290px,38dvh)}
 body:has(.workspace) :is(.allocation-option,.pa-company){min-height:38px;display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #d5dee7;font-size:13px;line-height:1.4;cursor:pointer}
 body:has(.workspace) :is(.allocation-option,.pa-company) input{width:17px;height:17px;flex:0 0 17px;min-height:0;margin:0;accent-color:#196047}
 body:has(.workspace) :is(.allocation-option,.pa-company)>span{min-width:0;gap:3px}
 body:has(.workspace) :is(.allocation-option,.pa-company):has(input:checked){background:#eaf6ee;box-shadow:inset 3px 0 #227d50;color:#184b34}
 body:has(.workspace) :is(.allocation-option,.pa-company):has(input:checked)::after{content:'✓';font-weight:700;margin-left:auto;color:#196047}
 body:has(.workspace) :is(.allocation-option,.pa-company):focus-within{outline:2px solid #2f7556;outline-offset:-2px}
 body:has(.workspace) :is(.allocation-option,.pa-company)[hidden]{display:none!important}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog) :is(.modal-actions,.pa-actions,.cm-actions){position:sticky;bottom:-18px;z-index:4;background:#fff;border-top:1px solid #d5dee7;padding:12px 0;margin:12px 0 0;gap:8px;flex-wrap:wrap}
 body:has(.workspace) :is(.pa-intro,.pa-review){padding:10px 12px;margin:10px 0;font-size:13px}
 body:has(.workspace) .pa-company>span small{font-size:12px}
 body:has(.workspace) .nc-selection-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:8px;margin:10px 0}
 body:has(.workspace) .nc-selection-search{display:grid;gap:5px;font-size:12px;font-weight:600;min-width:0}
 body:has(.workspace) .nc-selection-search input{width:100%;min-width:0;box-sizing:border-box;min-height:36px;border:1px solid #cbd5d1;border-radius:5px;padding:7px 9px;font:inherit;font-size:13px}
 body:has(.workspace) .nc-selection-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:end}
 body:has(.workspace) .nc-selection-actions .btn{min-height:36px;padding:7px 9px;font-size:12px}
 body:has(.workspace) .nc-selection-actions [aria-pressed=true]{background:#eaf6ee;border-color:#227d50;color:#164d36}
 body:has(.workspace) .nc-selection-count{grid-column:1/-1;margin:0;font-size:12px;color:#536775}
 body:has(.workspace) .nc-selection-steps{display:flex;gap:10px;flex-wrap:wrap;padding:8px 0;margin:6px 0 10px;list-style:none;font-size:12px;border-block:1px solid #e0e6eb}
 body:has(.workspace) .nc-selection-steps li{display:flex;gap:5px;align-items:center;color:#64748b}
 body:has(.workspace) .nc-selection-steps li>span{display:grid;place-items:center;border:1px solid #cad5d9;border-radius:50%;width:21px;height:21px;font-size:11px}
 body:has(.workspace) .nc-selection-steps li[aria-current]{font-weight:700;color:#174f38}
 body:has(.workspace) .nc-selection-steps li[aria-current]>span,body:has(.workspace) .nc-selection-steps li.done>span{background:#eaf6ee;border-color:#84ba96;color:#174f38}
 body:has(.workspace) .nc-selection-empty{margin:8px 0;color:#627187;font-size:13px}
 body:has(.workspace) .nc-selection-empty[hidden]{display:none!important}
 body:has(.workspace) .nc-compact-business-table .business-link-badge{padding:3px 6px;font-size:12px;white-space:nowrap}
 body:has(.workspace) .nc-compact-business-table tr[data-linked=true] td:first-child{box-shadow:inset 3px 0 #69ab82}
 body:has(.workspace) .nc-compact-business-table tr[data-linked=false] td:first-child{box-shadow:inset 3px 0 #daa75b}
 body:has(.workspace) .nc-compact-business-table{min-width:760px}
}
@media screen and (max-width:1100px){.workspace #discount-page #cm-filter{grid-template-columns:1fr 1fr}.workspace #discount-page #cm-filter>label:has(input[type=search]){grid-column:1/-1}.workspace #discount-page .cm-date-filters[open]{grid-row:auto}.workspace #discount-page .cm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:680px){.workspace #discount-page>.panel{padding:12px}.workspace #discount-page #cm-filter,.workspace #discount-page .cm-grid,.workspace #discount-page .cm-company-list{grid-template-columns:1fr}.workspace #discount-page .cm-date-filters>div{display:grid;grid-template-columns:1fr 1fr}.workspace #discount-page .cm-date-filters label{min-width:0}body:has(.workspace) .nc-selection-toolbar{grid-template-columns:1fr}body:has(.workspace) .nc-selection-actions{display:flex;flex-wrap:wrap}body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog){padding:12px;max-width:calc(100vw - 20px)}body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog) :is(.modal-actions,.pa-actions,.cm-actions){bottom:-12px}.workspace #discount-page .cm-price-cell{white-space:normal}}
@media screen and (any-pointer:coarse),screen and (max-width:680px){.workspace #discount-page .btn,.workspace #discount-page .cm-rule-table .cm-row-actions>.btn,body:has(.workspace) .nc-selection-actions .btn,:is(.workspace .admin-main,#buyer-admin,#home-admin) table .btn{min-height:44px!important}body:has(.workspace) :is(.allocation-option,.pa-company),.workspace #discount-page .cm-company-list>label,.workspace #discount-page .cm-options>label{min-height:44px}.workspace #discount-page .cm-grid :is(input:not([type=checkbox]),select),body:has(.workspace) .nc-selection-search input{min-height:44px;font-size:16px}}
@media(forced-colors:active){body:has(.workspace) :is(.allocation-option,.pa-company):has(input:checked),.workspace #discount-page :is(.cm-company-list,.cm-options)>label:has(input:checked){outline:2px solid Highlight;outline-offset:-2px}body:has(.workspace) .nc-selection-steps li[aria-current]{outline:1px solid Highlight}}

/* V92: customer grids and remaining native allocation selection controls. */
@media screen {
 .workspace .nc-customer-table-wrap{max-width:100%;min-width:0;overflow:auto;overscroll-behavior-inline:contain;border-radius:7px}
 .workspace .nc-customer-table{min-width:1120px;table-layout:fixed}
 .workspace .nc-customer-table caption{text-align:left;padding:10px 12px;background:#eef5f1;font-size:14px;font-weight:700;border:1px solid #d5dee7}
 .workspace .nc-customer-table th:first-child{width:72px}
 .workspace .nc-customer-table :is(th,td){vertical-align:top;overflow-wrap:anywhere}
 .workspace .nc-customer-table tbody tr[data-selected=true]>td{background:#eaf6ee}
 .workspace .nc-customer-table tbody tr[data-selected=true]>td:first-child{box-shadow:inset 3px 0 #227d50}
 .workspace .nc-customer-table .nc-customer-name{display:block;font-size:14px;line-height:1.4}
 .workspace .nc-customer-table .nc-customer-check{display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;font-size:11px;min-height:38px}
 .workspace .nc-customer-check input{width:18px;height:18px;min-height:0;margin:0;accent-color:#196047}
 .workspace .nc-customer-check:has(input:disabled){cursor:not-allowed;color:#667383}
 .workspace .nc-customer-check:focus-within{outline:2px solid #2f7556;outline-offset:3px}
 .workspace .nc-customer-table .nc-customer-actions{display:flex;flex-wrap:wrap;gap:5px;margin:0}
 .workspace .nc-customer-table .btn{white-space:normal;text-align:center;max-width:100%}
 .workspace .nc-customer-table .nc-customer-details{margin-top:7px}
 .workspace .nc-customer-details>summary{cursor:pointer;font-size:12px;font-weight:600;min-height:32px;padding:6px 0}
 .workspace .nc-customer-details .wf-business-location,.workspace .nc-customer-details .wf-contact{padding:8px;margin:8px 0;font-size:12px}
 .workspace .nc-customer-table .nc-customer-location{display:block;border-left:3px solid #daa75b;padding-left:7px;font-size:12px}
 .workspace .nc-customer-table .nc-customer-location[data-location-state=matched]{border-color:#69ab82}
 .workspace .nc-customer-table .nc-cart-indicator{padding:8px;margin:0;border-radius:5px;font-size:12px}
 .workspace .nc-customer-table .nc-cart-indicator p{margin:5px 0;font-size:12px}
 .workspace .nc-customer-table .nc-cart-indicator .btn{margin-top:5px}
 .workspace .nc-customer-table td>p{margin:0}
 .workspace .nc-customer-selection-summary{margin:12px 0 0;font-size:12px;color:#536775}
 body:has(.workspace) #allocation-form .nc-allocation-tools{display:grid;gap:7px;margin:10px 0}
 body:has(.workspace) #allocation-form .nc-selection-actions{align-items:center}
 body:has(.workspace) #allocation-form .allocation-columns{gap:16px}
}
@media screen and (any-pointer:coarse),screen and (max-width:680px){
 .workspace .nc-customer-table .nc-customer-check,.workspace .nc-customer-details>summary{min-height:44px}
}
@media(forced-colors:active){.workspace .nc-customer-table tbody tr[data-selected=true]{outline:2px solid Highlight;outline-offset:-2px}}

/* V94: discount editor selection controls; existing review/progress and pricing stay intact. */
@media screen {
 .workspace #discount-page .cm-pricing-grid{align-items:start}
 .workspace #discount-page .cm-scope-actions{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
 .workspace #discount-page .cm-scope-actions .btn{min-height:32px;padding:6px 8px}
 .workspace #discount-page :is(.cm-scope-actions,.cm-customer-selection-actions) [aria-pressed=true]{background:#eaf6ee;border-color:#227d50;color:#164d36}
 .workspace #discount-page .cm-multi>summary[data-cm-selected=true]{background:#eaf6ee;border-color:#8fc4a1;color:#164d36}
 .workspace #discount-page :is(.cm-selection-count,.cm-selection-empty){font-size:12px;color:#536775;margin:7px 0;line-height:1.4}
 .workspace #discount-page .cm-options>label[hidden],.workspace #discount-page .cm-selection-empty[hidden]{display:none!important}
 .workspace #discount-page :is(.cm-company-list,.cm-options)>label:focus-within{outline:2px solid #2f7556;outline-offset:-2px}
 .workspace #discount-page .cm-customer-selection-actions{gap:6px;margin:10px 0}
 .workspace #discount-page .cm-customer-selection-actions [data-cm-count]{font-size:12px;color:#536775}
}
@media(forced-colors:active){.workspace #discount-page :is(.cm-scope-actions,.cm-customer-selection-actions) [aria-pressed=true],.workspace #discount-page .cm-multi>summary[data-cm-selected=true]{outline:2px solid Highlight;outline-offset:-2px}}


/* V99 — shared compact admin presentation. Screen only. Buyer storefront, print,
   product-card contents, action identity, validation and permission logic are unchanged. */
@media screen {
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin){--crm-space:10px;--crm-control:36px;--crm-font:13px}
 html body .workspace .admin-main{padding:16px 20px 28px;min-width:0}
 html body .workspace .workspace-header{min-height:52px;height:auto;padding-block:8px}
 html body :is(#buyer-admin,#home-admin) .bp-shell{width:calc(100% - 40px);max-width:none}
 html body :is(#buyer-admin,#home-admin) :is(.bp-main,.ha-page){padding-top:16px;padding-bottom:28px}
 html body :is(#buyer-admin,#home-admin) .bp-header-main{padding-block:10px;gap:12px;min-height:68px}
 html body :is(#buyer-admin,#home-admin) .bp-brand img{width:46px;height:46px;object-fit:contain}
 html body :is(#buyer-admin,#home-admin) .bp-header nav{gap:6px;flex-wrap:wrap}
 /* Shared heading, section and panel density. Do not target product names. */
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading){gap:10px;margin-block:0 12px;padding-block:8px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading) h1,
 html body #home-admin main>h1{font-size:23px;line-height:1.25;letter-spacing:-.5px;margin:2px 0 5px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading) :is(p,.eyebrow,.fa-eyebrow,.bp-eyebrow){margin:3px 0;line-height:1.4}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading) p{font-size:12px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.eyebrow,.fa-eyebrow,.bp-eyebrow){margin-bottom:5px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.panel,.bp-panel){padding:12px 14px;margin-block:10px;border-radius:10px;min-width:0}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.panel,.bp-panel)>:last-child{margin-bottom:0}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.panel-title,.fa-row){gap:8px;margin-bottom:8px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.panel-title h2,.panel>h2,.bp-panel>h2,.fa-dashboard h2){font-size:18px;line-height:1.3;margin:0 0 8px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.panel,.bp-panel)>p{font-size:12px;line-height:1.45;margin-block:6px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.mt16,.mt24){margin-top:10px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.flex.wrap,.toolbar,.sc-actions,.ss-actions,.fa-actions,.cm-actions,.cs-toolbar,.wcat-toolbar,.bp-actions,.ha-tabs,.sc-tabs){gap:6px;align-items:center;flex-wrap:wrap}
 /* Minimum controls are 36px on mouse-driven desktops, 44px on touch/small screens.
    The existing 46px product/order controls and colour-size picker are excluded. */
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.btn,.bp-btn):not(.nc-trade-card *,.vp-dialog *){min-height:var(--crm-control);padding:7px 10px;font-size:12px;line-height:1.35;gap:6px;max-width:100%;white-space:normal}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.field,.bp-field){gap:4px;font-size:12px;margin-bottom:8px;min-width:0}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),select):not(.nc-trade-card *,.vp-dialog *){min-height:var(--crm-control);height:auto;padding:7px 9px;font-size:13px;line-height:1.35;min-width:0;max-width:100%;box-sizing:border-box;border-radius:6px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) textarea{min-height:76px;max-width:100%;padding:8px 10px;font-size:13px;line-height:1.45;box-sizing:border-box}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.form-grid,.bp-admin-grid,.ha-form-grid,.sc-grid,.om-form){gap:10px;align-items:start}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.wcat-filters,.cs-filter-grid,.fa-filters,.cm-grid,.sc-filters,.whb-filters){gap:8px;align-items:end;margin-block:8px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.wcat-filters,.cs-filter-grid,.fa-filters,.cm-grid,.whb-filters) label{gap:4px;font-size:12px;min-width:0;margin-bottom:0}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is([data-vendor-filter]>details>summary,.cm-multi>summary){min-height:var(--crm-control);padding:7px 9px;font-size:12px;box-sizing:border-box}
 html body .workspace .admin-main :is(#wf-search,#wcm-search){margin-block:8px;gap:6px}
 html body .workspace .admin-main :is(#wf-search,#wcm-search)>.field{margin:0;flex:1 1 230px;max-width:440px}
 html body .workspace .admin-main .nc-customer-selection-summary{margin-block:8px;font-size:12px}
 html body .workspace .admin-main :is(.nc-permission-actions,.business-sync-toolbar){gap:6px;margin-block:8px}
 /* Dense lists keep their existing horizontal scroll containers and table semantics. */
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) table :is(th,td){padding:6px 8px;font-size:12px;line-height:1.4}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) table thead th{font-size:10px;padding-block:7px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) table td small{font-size:11px;line-height:1.4;margin-top:2px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) table caption{padding:9px 10px;font-size:13px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.summary-cards,.fa-kpis,.fa-stats,.sc-config,.ss-config,.whi-stats){gap:10px;margin-block:10px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.summary-card,.fa-kpi){padding:12px 14px;min-width:0}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.summary-card,.fa-kpi)>p{margin:0 0 5px;font-size:12px;line-height:1.4}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.summary-card,.fa-kpi)>strong{font-size:25px;margin-bottom:5px}
 html body .workspace .admin-main .fa-chart-grid{gap:12px}
 html body .workspace .admin-main .activity{padding-block:10px}
 /* Status and helper text remain present, including errors, progress and Stop/Resume. */
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.notice,.ui-result,.bp-note,.ss-notice,.cm-note){padding:8px 10px;margin-block:8px;font-size:12px;line-height:1.45;min-width:0;overflow-wrap:anywhere}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.notice,.ui-result,.bp-note,.ss-notice,.cm-note)>p{margin:4px 0;line-height:1.45}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.form-error,[role=alert]){font-size:13px;line-height:1.5}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.wf-load-progress,.business-sync-progress,.business-sync-idle,.catalogue-progress,.fa-progress,.wh-import-progress,.om-refresh-progress){padding:10px 12px;margin-block:10px;min-width:0}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.wf-load-progress,.business-sync-progress,.business-sync-idle,.catalogue-progress,.fa-progress,.wh-import-progress,.om-refresh-progress) p{margin:5px 0;font-size:12px;line-height:1.45}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.wf-load-progress,.business-sync-progress,.catalogue-progress,.fa-progress,.wh-import-progress,.om-refresh-progress) progress{display:block;width:100%;height:6px;margin-block:6px}
 html body .workspace .admin-main :is(.wf-progress-heading,.wh-import-progress-heading,.catalogue-progress-heading){gap:6px;margin-bottom:4px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) .form-error:not(:empty){padding:8px 10px}
 /* Full connection detail remains in a native keyboard-operable disclosure. */
 html body .workspace .admin-main .nc-crm-connections{display:block;width:max-content;max-width:100%;margin:0 0 10px auto;padding:0;position:relative;border-radius:7px}
 html body .workspace .admin-main .nc-crm-connections>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:36px;padding:6px 10px;font-size:12px;font-weight:650;cursor:pointer}
 html body .workspace .admin-main .nc-crm-connections>summary::after{content:'▾';font-size:12px}
 html body .workspace .admin-main .nc-crm-connections[open]>summary::after{content:'▴'}
 html body .workspace .admin-main .nc-crm-connections .or-connection-state{padding:3px 7px;border:1px solid;border-radius:5px;font-size:11px;white-space:nowrap}
 html body .workspace .admin-main .nc-crm-connections>.or-connection-content{position:absolute;right:0;top:calc(100% + 5px);z-index:40;width:min(680px,calc(100vw - 64px));padding:12px;background:#fff;border:1px solid #d5dee1;border-radius:8px;box-shadow:0 8px 28px #163e3326;box-sizing:border-box}
 html body .workspace .admin-main .nc-crm-connections .ui-connection-heading{margin-bottom:8px}
 html body .workspace .admin-main .nc-crm-connections .ui-connection-grid{gap:6px;margin-bottom:7px}
 html body .workspace .admin-main .nc-crm-connections .ui-status-badge{font-size:11px;padding:5px 7px}
 html body .workspace .admin-main .nc-crm-connections small{font-size:11px;line-height:1.45;display:block}
 /* Customer tools: retain original nodes, IDs, actions, selected view and search. */
 html body .workspace .admin-main .nc-customer-controls{display:flex;flex-direction:column;gap:6px}
 html body .workspace .admin-main .nc-customer-controls>.notice{margin:0;order:4}
 html body .workspace .admin-main .nc-customer-controls>.ui-result{order:0}
 html body .workspace .admin-main .nc-customer-controls>.nc-crm-guidance{order:5}
 html body .workspace .admin-main .nc-customer-controls>p.small{order:5;margin:0;font-size:11px}
 html body .workspace .admin-main .nc-customer-controls .nc-customer-selection{margin-top:0}
 html body .workspace .admin-main .nc-crm-toolbar{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}
 html body .workspace .admin-main :is(.nc-crm-tools,.nc-crm-guidance){min-width:0;font-size:12px}
 html body .workspace .admin-main .nc-crm-tools{position:relative;margin-left:auto}
 html body .workspace .admin-main .nc-crm-tools>summary{padding:7px 10px;min-height:36px;border:1px solid #cbd5d1;border-radius:6px;cursor:pointer;font-weight:600;background:#fff;box-sizing:border-box}
 html body .workspace .admin-main .nc-crm-tools-content{position:absolute;right:0;z-index:35;top:calc(100% + 5px);width:min(580px,calc(100vw - 64px));padding:12px;background:white;border:1px solid #cbd5d1;border-radius:8px;box-shadow:0 8px 28px #163e3326;box-sizing:border-box}
 html body .workspace .admin-main .nc-customer-mail{margin-top:10px;font-size:12px}
 html body .workspace .admin-main .nc-customer-mail>summary{cursor:pointer;line-height:1.5}
 html body .workspace .admin-main .nc-crm-guidance>summary{cursor:pointer;min-height:28px;padding-block:5px;font-size:11px}
 html body .workspace .admin-main .nc-crm-guidance p{font-size:12px;line-height:1.45;margin:6px 0}
 /* Standalone admin/account settings use the same density without touching /buyer. */
 html body :is(#buyer-admin,#home-admin) :is(.ba-reviewed-form,.ha-banner-editor){gap:10px;margin-top:12px}
 html body :is(#buyer-admin,#home-admin) :is(.bp-muted,.bp-check){font-size:12px;line-height:1.5}
 html body #home-admin main>p{font-size:12px;line-height:1.45;margin-block:6px}
 html body :is(#buyer-admin,#home-admin) .bp-heading{margin-bottom:10px}
 html body.staff-auth-page .ss-auth-card{padding:22px;max-width:460px;margin:24px auto}
 html body.staff-auth-page .ss-auth-card h1{font-size:23px;line-height:1.25;margin-block:8px}
 html body.staff-auth-page .ss-auth-card p{font-size:13px;line-height:1.5;margin-block:8px}
 html body.staff-auth-page .ss-auth-card :is(input,button){min-height:44px}
 /* Shared dialogs: dense chrome, unchanged confirmation, focus and action handlers. */
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt){padding:14px;max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);box-sizing:border-box}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) :is(.modal-heading,.pa-heading){margin-bottom:10px;gap:8px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) :is(h2,h3){margin-block:5px 8px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) h2{font-size:21px;line-height:1.3}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) :is(.field,.form-grid,.form-stack){gap:8px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) .btn{min-height:36px;padding:7px 10px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) :is(.modal-actions,.pa-actions,.cm-actions){gap:6px;padding-block:10px;margin-top:10px;bottom:-14px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) .notice{padding:8px 10px;font-size:12px;line-height:1.5}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(summary,button,a,input,select,textarea):focus-visible{outline-offset:2px}
}
@media screen and (max-width:1199px){
 html body .workspace .admin-main{padding:12px 16px 24px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin){--crm-control:44px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading){flex-wrap:wrap;gap:8px}
 html body .workspace .admin-main .nc-crm-connections>summary,.workspace .admin-main .nc-crm-tools>summary{min-height:44px}
}
@media screen and (any-pointer:coarse),screen and (max-width:650px){
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin){--crm-control:44px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),select,textarea):not(.nc-trade-card *,.vp-dialog *){font-size:16px}
 html body .workspace .admin-main .nc-crm-connections>summary,.workspace .admin-main .nc-crm-tools>summary,.workspace .admin-main .nc-crm-guidance>summary,.workspace .admin-main .nc-customer-mail>summary{min-height:44px}
 body:has(.workspace) :is(#modal,.pa-dialog,.commerce-dialog,.wf-receipt) .btn{min-height:44px}
}
@media screen and (max-width:650px){
 html body .workspace .admin-main{padding:10px 12px 20px}
 html body :is(#buyer-admin,#home-admin) .bp-shell{width:calc(100% - 24px)}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.panel,.bp-panel){padding:10px}
 html body :is(.workspace .admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading) h1{font-size:21px}
 html body .workspace .admin-main .nc-crm-connections{width:100%}
 html body .workspace .admin-main .nc-crm-connections>summary{justify-content:space-between}
 html body .workspace .admin-main .nc-crm-connections>.or-connection-content,.workspace .admin-main .nc-crm-tools-content{position:static;width:100%;box-shadow:none;border:0;border-top:1px solid #d5dee1;border-radius:0;padding:10px}
 html body .workspace .admin-main .nc-crm-tools{width:100%;margin:0}
 html body .workspace .admin-main .nc-customer-tabs{gap:5px;align-items:stretch}
 html body .workspace .admin-main .nc-customer-tabs .btn{flex:1 1 140px}
 html body .workspace .admin-main :is(#wf-search,#wcm-search)>.field{flex-basis:100%;max-width:none}
 html body :is(#buyer-admin,#home-admin) .bp-header-main{flex-wrap:wrap}
 html body.staff-auth-page .ss-auth-card{margin:12px;padding:18px;width:auto}
}
@media screen and (forced-colors:active){
 html body .workspace .admin-main :is(.nc-crm-connections,.nc-crm-tools-content){border:1px solid CanvasText;box-shadow:none}
}

@media screen {
 html body :is(.workspace #main.admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading) h1,
 html body #home-admin main>h1{font-size:23px!important;margin:2px 0 5px!important}
}
@media screen and (max-width:650px){
 html body :is(.workspace #main.admin-main,#buyer-admin,#home-admin) :is(.page-heading,.fa-heading,.sc-heading,.ss-heading,.bp-heading) h1,
 html body #home-admin main>h1{font-size:21px!important}
}
/* Shared top strip and operation toolbars also follow the compact scale. */
@media screen {
 html body :is(.workspace,#buyer-admin,#home-admin) .nc-admin-vendor-controls{padding:7px 20px;gap:6px 8px}
 html body :is(.workspace,#buyer-admin,#home-admin) .nc-admin-vendor-controls>strong{font-size:12px}
 html body :is(.workspace,#buyer-admin,#home-admin) .nc-admin-vendor-controls>button{min-height:36px;padding:6px 9px;font-size:12px;border-radius:6px}
 html body .workspace .admin-main :is(.business-sync-tools,.whb-summary,.whb-selection,.cs-toolbar,.cs-export-options){padding-block:8px;margin-block:8px;gap:6px 8px}
 html body .workspace .admin-main :is(.whb-filter-actions,.whb-paging,.om-pagination,.sc-tabs,.ss-actions){gap:6px;margin-block:8px}
}
@media screen and (any-pointer:coarse),screen and (max-width:1199px){
 html body :is(.workspace,#buyer-admin,#home-admin) .nc-admin-vendor-controls>button{min-height:44px}
}
@media screen and (max-width:650px){
 html body :is(.workspace,#buyer-admin,#home-admin) .nc-admin-vendor-controls{padding:6px 12px;gap:5px}
 html body :is(.workspace,#buyer-admin,#home-admin) .nc-admin-vendor-controls>strong{flex-basis:auto}
}

/* Module-specific containers use the same compact scale as shared panels. */
@media screen {
 html body .workspace .admin-main :is(.ss-panel,.whs-scope){padding:12px 14px;margin-block:10px;border-radius:10px;min-width:0}
 html body .workspace .admin-main :is(.ss-panel,.whs-scope)>:is(h2,h3){font-size:18px;line-height:1.3;margin:0 0 8px}
 html body .workspace .admin-main :is(.ss-panel,.whs-scope)>p{font-size:12px;line-height:1.45;margin-block:6px}
 html body .workspace .admin-main #books-connect-form{margin-top:10px}
 html body .workspace .admin-main .sc-permissions fieldset{padding:12px}
 html body .workspace .admin-main :is(.sc-transfer,.sc-loading){padding:10px;margin-block:8px;gap:10px}
 body:has(#home-admin) .ha-preview{padding:16px;max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px)}
}
@media screen and (max-width:650px){
 html body .workspace .admin-main :is(.ss-panel,.whs-scope){padding:10px}
}


/* Compact CRM dialogs: scoped to admin workspaces; catalogue cards and photo zoom stay untouched. */
@media screen {
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer){
  box-sizing:border-box;width:min(960px,calc(100vw - 32px))!important;max-width:960px!important;
  height:fit-content!important;min-height:0!important;overflow:auto;
  max-height:calc(100dvh - 32px)!important;border-radius:12px;overscroll-behavior:contain;
 }
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:is(.ag-dialog,.pa-dialog,.sc67-dialog,.email-dialog){width:min(1100px,calc(100vw - 32px))!important;max-width:1100px!important}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.wf-receipt{width:min(640px,calc(100vw - 32px))!important;max-width:640px!important}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog#modal{padding:0;overflow:auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog #modal-body{padding:18px!important}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(.modal-heading,.pa-header,.nc-cart-dialog-heading){gap:12px;margin-bottom:12px;align-items:flex-start}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(h2,.modal-heading h2){font-size:21px;line-height:1.3;margin:0 0 6px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(.form-grid,.form-stack){gap:10px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) .field{gap:5px;margin-bottom:8px;min-width:0}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(.btn,button:not(.vp-swatch)):not(.nc-trade-card *){min-height:36px;padding:7px 10px;font-size:12px;line-height:1.35;max-width:100%}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]),select){min-height:36px;padding:7px 9px;font-size:13px;box-sizing:border-box;max-width:100%}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(.modal-actions,.pa-actions,.cm-actions){gap:8px;margin-top:12px;padding-block:8px;flex-wrap:wrap;bottom:0}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(.modal-heading,header) > button{align-self:flex-start;flex:0 0 auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:is(.ag-dialog,.commerce-dialog,.wf-receipt){padding:16px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:is(.pa-dialog,.sc67-dialog){padding:0;height:min(820px,calc(100dvh - 32px))}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:is(.pa-dialog,.sc67-dialog) :is(.pa-header,.pa-footer,header,footer){padding:12px 16px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog :is(.pa-scroll,.sc67-scroll){padding:12px 16px}
 html body:has(.workspace,#buyer-admin,#home-admin) .ag-dialog [data-ag-summary]{gap:8px;margin-block:10px}
 html body:has(.workspace,#buyer-admin,#home-admin) .ag-dialog [data-ag-summary]>div{padding:10px}
 html body:has(.workspace,#buyer-admin,#home-admin) .ag-dialog [data-ag-summary] strong{font-size:24px}
 html body:has(.workspace,#buyer-admin,#home-admin) .ag-dialog :is(th,td){padding:8px;font-size:12px}
 html body:has(.workspace,#buyer-admin,#home-admin) .ag-dialog .nc-admin-vendor-controls{padding:8px;margin:8px 0;gap:6px}
 /* Exact-variant picker: bounded photo column, wrapping colours, natural content height. */
 html body:has(.workspace) dialog#modal.vp-dialog{width:min(1040px,calc(100vw - 32px))!important;max-width:1040px!important;height:auto}
 html body:has(.workspace) .vp-dialog .vp-layout{grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr)!important;gap:18px!important}
 html body:has(.workspace) .vp-dialog .vp-main-image,
 html body:has(.workspace) .vp-dialog .vp-photo-empty{height:230px!important;object-fit:contain}
 html body:has(.workspace) .vp-dialog .vp-gallery{position:static}
 html body:has(.workspace) .vp-dialog .vp-details h2{font-size:21px;margin-bottom:6px}
 html body:has(.workspace) .vp-dialog .vp-price strong{font-size:24px}
 html body:has(.workspace) .vp-dialog :is(.vp-reference,.vp-photo-note){margin:5px 0 8px;font-size:11px;line-height:1.4}
 html body:has(.workspace) .vp-dialog .vp-choice-heading{margin:10px 0 6px}
 html body:has(.workspace) .vp-dialog .vp-colours{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr))!important;gap:6px!important}
 html body:has(.workspace) .vp-dialog .vp-swatch{width:100%;min-width:0;min-height:74px!important;padding:3px}
 html body:has(.workspace) .vp-dialog .vp-swatch img{height:44px!important;object-fit:contain}
 html body:has(.workspace) .vp-dialog .vp-swatch>span{font-size:10px!important;white-space:normal;overflow-wrap:anywhere;padding:3px 1px!important}
 html body:has(.workspace) .vp-dialog .vp-size-title{margin:10px 0 6px}
 html body:has(.workspace) .vp-dialog .vp-sizes{gap:6px}
 html body:has(.workspace) .vp-dialog .vp-selected{margin:10px 0}
 html body:has(.workspace) .vp-dialog .vp-actions{position:static;margin-top:10px;padding-top:8px;gap:6px}
}
@media screen and (max-width:700px){
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer){width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog #modal-body{padding:12px!important}
 html body:has(.workspace) .vp-dialog .vp-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body:has(.workspace) .vp-dialog .vp-main-image,
 html body:has(.workspace) .vp-dialog .vp-photo-empty{height:165px!important}
 html body:has(.workspace) .vp-dialog .vp-colours{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media screen and (any-pointer:coarse),screen and (max-width:700px){
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(.btn,button:not(.vp-swatch),select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range])){min-height:44px!important}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog:not(.nc-photo-viewer) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important}
}

/* Shared full-detail compact cards: Products, Published Products and WH Imports. */
@media screen {
 html body #app .workspace article.nc-admin-compact-card{--nc-showcase-height:190px;border-radius:12px;min-width:0}
 html body #app .workspace .nc-admin-compact-card>:is(.wcat-photo,.whi-photo){height:190px!important;min-height:190px!important;max-height:190px!important;flex:0 0 190px!important;background:#fff}
 html body #app .workspace .nc-admin-compact-card>:is(.wcat-photo,.whi-photo) img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;padding:8px!important}
 html body #app .workspace .nc-admin-compact-card>:is(.wcat-body,.whi-body){padding:10px!important;gap:0;min-width:0}
 html body #app .workspace .nc-admin-compact-card :is(p,dd,dt,label,summary){font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 html body #app .workspace .nc-admin-compact-card p{margin:4px 0!important}
 html body #app .workspace .nc-admin-compact-card :is(h3,.wcat-title){font-size:18px!important;line-height:1.2;margin:5px 0 7px!important;overflow-wrap:anywhere}
 html body #app .workspace .nc-admin-compact-card .nc-admin-card-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 6px;margin-bottom:4px}
 html body #app .workspace .nc-admin-compact-card .nc-admin-card-top>.eyebrow{font-size:10px!important;line-height:1.4;letter-spacing:1px;font-weight:750;margin:0!important;flex:1 1 auto}
 html body #app .workspace .nc-admin-compact-card .nc-admin-card-top .nc-card-badges{display:flex;flex-wrap:wrap;align-items:center;gap:4px;flex:0 1 auto;container-type:normal;margin:0!important}
 html body #app .workspace .nc-admin-compact-card .nc-admin-card-top .nc-card-badges :is(.nc-publication-badge,.whb-publication-badge,.nc-grouped-badge,.nc-polarized-badge,.nc-product-tag){display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;min-width:0;max-width:100%;width:auto;height:auto!important;min-height:26px!important;padding:4px 6px!important;font-size:10px!important;line-height:1.25!important;border-radius:4px;margin:0!important;white-space:normal}
 html body #app .workspace .nc-admin-compact-card .nc-admin-card-top .nc-card-badges .nc-grouped-badge{flex-basis:auto;order:0;min-height:32px!important}
 html body #app .workspace .nc-admin-compact-card .whb-publication-note{font-size:10px;line-height:1.3}
 html body #app .workspace .nc-admin-compact-card :is(.wcat-check,.whb-check){display:flex;align-items:center;gap:6px;margin:4px 0!important;min-height:28px;padding:0;font-size:12px}
 html body #app .workspace .nc-admin-compact-card :is(.wcat-check,.whb-check) input{width:16px;height:16px;min-height:0;margin:0;flex:0 0 16px}
 html body #app .workspace .nc-admin-compact-card :is(.wcat-prices,.whi-prices){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px!important;margin:5px 0!important;padding:5px 0!important;border-block:1px solid #dbe1dc;font-size:12px!important}
 html body #app .workspace .nc-admin-compact-card :is(.wcat-prices,.whi-prices) :is(dt,dd){margin:0;font-size:12px!important;line-height:1.4}
 html body #app .workspace .nc-admin-compact-card :is(.nc-product-vendor,.nc-created-date){margin:5px 0!important;padding:5px 0!important;gap:3px;font-size:12px}
 html body #app .workspace .nc-admin-compact-card details{margin:4px 0}
 html body #app .workspace .nc-admin-compact-card summary{padding:4px 0;min-height:28px;cursor:pointer}
 html body #app .workspace .nc-admin-compact-card .btn{min-height:36px!important;padding:7px 8px!important;font-size:12px!important;line-height:1.3;white-space:normal;max-width:100%;margin-block:3px}
 html body #app .workspace .nc-admin-compact-card .whb-item-actions{display:flex;flex-wrap:wrap;gap:5px;padding-top:5px}
 html body #app .workspace .nc-admin-compact-card .whb-item-actions .btn{flex:1 1 110px}
 html body #app .workspace .nc-admin-compact-card .whi-thumbs{gap:5px;margin:4px 0}
 html body #app .workspace .nc-admin-compact-card .whi-thumbs img{width:44px;height:44px;object-fit:contain}
}
/* Larger full-frame product photographs across CRM cards and variant popups. */
@media screen {
 html body #app .workspace article:is(.wcat-card,.whi-card,.cs-card)>:is(.wcat-photo,.whi-photo,.cs-photo){height:210px!important;min-height:210px!important;max-height:210px!important;aspect-ratio:auto!important;flex:0 0 210px!important;padding:0!important;background:#fff}
 html body #app .workspace article:is(.wcat-card,.whi-card,.cs-card)>:is(.wcat-photo,.whi-photo,.cs-photo)>img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:2px!important;margin:0!important;transform:none!important;box-sizing:border-box}
 html body:has(.workspace) .vp-dialog .vp-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 html body:has(.workspace) .vp-dialog .vp-main-image,html body:has(.workspace) .vp-dialog .vp-photo-empty{height:280px!important}
 html body:has(.workspace) .vp-dialog .vp-swatch img{height:56px!important}
 /* Align filter controls at their top edge and avoid tall blank rows under help text. */
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:8px 10px;margin:8px 0;--cs-filter-gap:4px;--cs-filter-control-height:36px}
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters)>.field{margin:0;gap:4px;min-width:0;font-size:12px}
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters) :is(input:not([type=checkbox]),select){min-height:36px;height:36px;padding:6px 8px;font-size:13px}
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters) :is(summary,.btn){min-height:36px;padding:6px 8px;font-size:12px}
 html body #app .workspace .pa-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 8px}
 html body #app .workspace .pa-summary>div{padding:8px 10px;min-height:0}
 html body #app .workspace .pa-summary strong{font-size:20px;line-height:1.2}
 html body #app .workspace .pa-summary span{font-size:11px;line-height:1.3;margin-top:3px}
 html body #app .workspace .panel:has(>#or-filters)>:is(p,.flex){margin-block:6px;gap:6px}
}
@media screen and (min-width:1500px){html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters){grid-template-columns:repeat(6,minmax(0,1fr))}}
@media screen and (max-width:1000px){html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:700px){
 html body:has(.workspace) .vp-dialog .vp-layout{grid-template-columns:minmax(0,1fr)!important}
 html body:has(.workspace) .vp-dialog .vp-main-image,html body:has(.workspace) .vp-dialog .vp-photo-empty{height:210px!important}
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters){grid-template-columns:minmax(0,1fr)}
 html body #app .workspace .pa-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (any-pointer:coarse),screen and (max-width:1000px){
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters) :is(input:not([type=checkbox]),select,summary,.btn){min-height:44px;height:auto}
 html body #app .workspace :is(#or-filters,#wcat-filters,#whb-filters,#cs-filters) :is(input:not([type=checkbox]),select){font-size:16px}
}
@media screen and (max-width:600px){
 html body #app .workspace .nc-admin-compact-card>:is(.wcat-photo,.whi-photo){height:170px!important;min-height:170px!important;max-height:170px!important;flex-basis:170px!important}
}
@media screen and (any-pointer:coarse),screen and (max-width:680px){
 html body #app .workspace .nc-admin-compact-card :is(.btn,summary,.wcat-check,.whb-check),
 html body #app .workspace .nc-admin-compact-card .nc-admin-card-top .nc-card-badges button.nc-grouped-badge{min-height:44px!important}
}


/* Company-access dialog: keep controls beside company names and bound the list. */
@media screen {
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog{
  width:min(820px,calc(100vw - 32px))!important;max-width:820px!important;
  height:fit-content!important;max-height:calc(100dvh - 32px)!important;
  display:flex;flex-direction:column;gap:0;padding:16px;overflow:auto;
 }
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-heading{
  padding:0 0 10px;margin:0;min-height:0;flex:0 0 auto;
 }
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-heading p{margin:4px 0;font-size:12px;line-height:1.4}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-heading .eyebrow{font-size:10px;margin:0 0 5px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-heading h2{font-size:20px;margin:0 0 4px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.nc-selection-steps{margin:0 0 8px;padding:7px 0;flex:0 0 auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-intro{padding:8px 10px;margin:0 0 10px;flex:0 0 auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-intro p{margin:3px 0;font-size:12px;line-height:1.4}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-mode{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px;flex:0 0 auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.field{margin:0 0 8px;font-size:12px;flex:0 0 auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-toolbar{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap;margin:0 0 8px;font-size:12px;flex:0 0 auto}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-companies{max-height:min(280px,34dvh);min-height:100px;overflow:auto;flex:0 1 auto;margin:0}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog .pa-company{
  display:flex;flex-direction:row;justify-content:flex-start;align-items:center;
  text-align:left;gap:10px;padding:8px 10px;min-height:48px;margin:0;box-sizing:border-box;
 }
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog .pa-company>input{width:17px;height:17px;min-height:0;flex:0 0 17px;margin:0;align-self:center}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog .pa-company>span{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1;text-align:left}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog .pa-company strong{font-size:13px;line-height:1.35}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog .pa-company small{font-size:11px;line-height:1.35}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-actions{position:sticky;bottom:-16px;padding:10px 0 0;margin:10px 0 0;flex:0 0 auto;justify-content:flex-end}
}
@media screen and (max-width:700px){
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog{padding:12px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-actions{bottom:-12px}
 html body:has(.workspace,#buyer-admin,#home-admin) dialog.pa-dialog>.pa-companies{max-height:34dvh}
}

@media screen{
 html body:has(.workspace) .ag-dialog [data-ag-access]:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;font-size:12px}
 html body:has(.workspace) .ag-dialog [data-ag-access]>small{flex-basis:100%;line-height:1.4}
 html body:has(.workspace) .ag-dialog input[data-ag-item]{width:18px;height:18px;min-height:0;margin:0;accent-color:#196047}
 html body:has(.workspace) .ag-dialog tr:has(input[data-ag-item]:checked){background:#eaf6ee}
}
