/* MundoDex component variants. Keep the existing identity and geometry. */
:root{--mdx-action-radius:9px;--mdx-dialog-radius:16px;--mdx-field-size:16px;--mdx-label-size:14px;--mdx-compact-name:12px;--mdx-compact-data:11px;--mdx-primary-ink:#fff}
html[data-color-mode=dark]{--mdx-primary-ink:var(--ah-navy,#091c32)}
/* Quick filters: context is neutral; only a changed/restrictive choice is marked. */
html[data-product][data-color-mode] body[data-route] .mdx-filterbar>.multi-field.mdx-filter-applied{
 border-color:var(--ah-blue,#1764cf);background:var(--mdx-control-active,#e4f1ff);
}
html body .mdx-filterbar>.multi-field:focus-within{outline:2px solid var(--mdx-control-ink,#164c7c);outline-offset:2px}
/* Compact quantities retain their handlers and transparent 44px hit area. */
html body .list-quantity{grid-template-columns:minmax(12px,1fr) max-content minmax(12px,1fr)}
html body .list-quantity.has-grade{grid-template-columns:minmax(12px,1fr) max-content minmax(18px,1.1fr) minmax(12px,1fr)}
html body .card-grid .card-image>.list-quantity::before{height:26px;background:color-mix(in srgb,var(--mdx-control-bg,#fff) 90%,transparent);border-radius:9px}
html body .card-grid .card-image>.list-quantity button{padding-bottom:3px;font:650 20px/1 var(--ah-font-ui,sans-serif);color:inherit}
html body .card-grid .card-image>.list-quantity output{padding-bottom:5px;font:700 clamp(12px,calc(5vw - 4px),14px)/1 var(--ah-font-ui,sans-serif);font-variant-numeric:tabular-nums}
html body .list-quantity select{width:100%;min-width:0;font-size:12px;line-height:1.2}
html body .card-grid .card-image>.list-quantity select{min-height:26px;height:26px;padding-bottom:2px}
html body .list-quantity :is(button,select):disabled{opacity:.55;cursor:default}
/* The chooser is a compact catalog, not a second full-size gallery. */
html body main.vbind-module .vbind-candidate{padding:5px;gap:5px;text-align:left}
html body main.vbind-module .vbind-candidate>strong{display:block;font:650 var(--mdx-compact-name)/1.35 var(--ah-font-ui,sans-serif);white-space:normal;overflow-wrap:anywhere}
html body main.vbind-module .vbind-candidate>:is(span:not(.vbind-art),small){display:block;font:400 var(--mdx-compact-data)/1.4 var(--ah-font-ui,sans-serif);white-space:normal;overflow-wrap:anywhere}
/* Finish editing is the existing primary action, in the existing position. */
html[data-product][data-color-mode] body[data-route] main.vbind-module.vbind-editing .vbind-query [data-vbind-mode]{background:var(--ah-blue,#1764cf);border-color:var(--ah-blue,#1764cf);color:var(--mdx-primary-ink);font-weight:700}
html[data-product][data-color-mode] body[data-route] main.vbind-module.vbind-editing .vbind-query [data-vbind-mode]:hover{background:var(--ah-blue-deep,#1557b0)}
/* Book tools keep their footprint and mouse/focus/touch visibility policy. */
html body main.vbind-module :is(.vbind-seam>button,.vbind-anchor-tools>button){box-sizing:border-box;border:1px solid var(--mdx-control-line,#bad3e8);border-radius:6px;background:var(--mdx-control-bg,#fff);color:var(--mdx-control-ink,#164c7c);font:650 16px/1 var(--ah-font-ui,sans-serif)}
html body main.vbind-module :is(.vbind-seam>button,.vbind-anchor-tools>button):hover{background:var(--mdx-control-active,#e4f1ff);border-color:var(--mdx-control-ink,#164c7c)}
html body main.vbind-module :is(.vbind-seam>button,.vbind-anchor-tools>button):focus-visible{outline:2px solid var(--mdx-control-ink,#164c7c);outline-offset:1px}
html body main.vbind-module :is(.vbind-seam>button,.vbind-anchor-tools>button):disabled{opacity:.55;cursor:default}
/* Form fields are separate from quick-filter capsules and card overlays. */
html body :is(.vbind-catalog-filter-dialog,.account-state-dialog,.admin-user-dialog,#wishlist-share-dialog,.pdf-dialog){border-radius:var(--mdx-dialog-radius)}
html body :is(.vbind-catalog-filter-dialog,.account-state-dialog,.admin-user-dialog,#wishlist-share-dialog,.pdf-dialog) h2{font-size:21px;line-height:1.25}
html body :is(.vbind-catalog-filter-dialog,.account-state-dialog,#wishlist-share-dialog) label{font-size:var(--mdx-label-size);line-height:1.4}
html body :is(.vbind-catalog-filter-dialog,.account-state-dialog,#wishlist-share-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea){font-size:var(--mdx-field-size);border-radius:var(--mdx-action-radius);min-height:44px}
html body .vbind-catalog-filter-dialog .multi-field{min-width:0}
/* This legacy compact rule is important in the inherited sheet. */
html body .vbind-catalog-filter-dialog .multi-picker>summary{display:flex;align-items:center;box-sizing:border-box;font-size:14px!important;line-height:1.4;height:auto;min-height:44px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
html body .vbind-catalog-filter-dialog .multi-picker>summary::after{top:50%;transform:translateY(-50%)}
html body .multi-panel-portal :is(.multi-option,.multi-options>label){font-size:14px;line-height:1.4}
html body .multi-panel-portal .multi-clear{font-size:13px;min-height:36px}
html body .multi-panel-portal input[type=search]{font-size:16px;min-height:44px}
html body :is(.trainer-account-form,.admin-users-toolbar,.price-lookup,.scan-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:var(--mdx-action-radius)}
html body :is(.button,.scan-primary,.scan-secondary):focus-visible{outline:2px solid var(--mdx-control-ink,#164c7c);outline-offset:2px}
@media(max-width:800px){
 html body :is(.trainer-account-form,.admin-users-toolbar,.price-attributes,.scan-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
}

/* Existing front during detail reads; original card geometry is retained. */
#card-dialog .dialog-loading>img{display:block;width:min(60vw,320px);max-width:100%;height:auto;aspect-ratio:63/88;object-fit:contain;margin:0 auto 12px;border-radius:8px}
