/* Preserve the original marks: contain, never stretch or clip. */
.storefront .header .brand{width:164px;flex:0 0 164px;height:82px;max-width:44vw;min-width:0}
.storefront .header .brand img,.storefront .footer-brand img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;filter:none}
.storefront .brand-pill.brand-logo-card,.storefront .brand-pill.brand-name-fallback{min-height:132px;padding:23px 24px;display:flex;align-items:center;justify-content:center;min-width:0}
.storefront .brand-logo-card .brand-logo{display:block;width:100%;height:62px;max-width:156px;object-fit:contain;object-position:center;transform:none;filter:none;mix-blend-mode:multiply}
.storefront .brand-logo-card[data-brand=oakley] .brand-logo{transform:none;height:76px;max-width:156px}
.storefront .brand-logo-card[data-brand=mormaii] .brand-logo{height:64px;max-width:146px}
.storefront .brand-logo-card[data-brand=reserva] .brand-logo{height:54px;width:48px}
.storefront .brand-logo-card[data-brand=zeiss] .brand-logo{height:60px;width:60px}
.storefront .brand-meta{display:flex;flex-direction:column;gap:6px}.storefront .brand-meta .brand-logo{height:44px;max-width:122px}
.brand-meta-label{font:600 11px/1.2 var(--sans,Arial,sans-serif);letter-spacing:1.2px;color:#344154}
.brand-label-fallback{font:600 16px/1.4 var(--sans,Arial,sans-serif);text-align:center;overflow-wrap:anywhere;color:inherit}
.storefront .brand-name-fallback{display:flex;align-items:center;justify-content:center;padding:24px;min-height:132px;border-bottom:1px solid var(--line)}
.storefront .lens-brand.brand-logo-card .brand-logo{width:100%;height:58px;max-width:148px;transform:none;filter:none}
.admin-header>a:first-child{display:flex;align-items:center;justify-content:center;width:136px;height:54px;flex:0 0 136px}
.admin-header>a:first-child img{display:block;width:126px;height:54px;max-width:100%;object-fit:contain;object-position:center;transform:none}
#admin-frame-brands,#admin-lens-brands{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px;margin:20px 0 32px}
.admin-brand-card{display:grid;grid-template-columns:116px minmax(0,1fr);max-width:none;width:100%;padding:16px;border:1px solid #e1e5ec;border-radius:10px;gap:12px;background:#fff;align-content:start}
.admin-brand-logo{height:80px;min-width:0;padding:13px;display:flex;align-items:center;justify-content:center;border:1px solid #edf0f4;border-radius:7px;background:#fafbfc;overflow:hidden}
.admin-brand-logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform:none;filter:none;mix-blend-mode:multiply}
.admin-brand-logo.brand-meta{flex-direction:column;gap:7px}.admin-brand-logo.brand-meta img{height:35px;min-height:0;flex:1}.admin-brand-logo .brand-meta-label{font-size:9px}
.admin-brand-logo .brand-label-fallback{font-size:11px;font-weight:500;color:#788394}
.admin-brand-info{min-width:0;gap:4px}.admin-brand-info strong{font:600 13px/1.4 var(--sans);overflow-wrap:anywhere}.admin-brand-info small{font-size:10px;line-height:1.5;color:#6b7789;margin:0}
.admin-brand-card .row-actions{border-top:1px solid #edf0f4;padding-top:12px;gap:7px;align-items:center}.admin-brand-card .row-actions>*{font-size:11px;min-height:34px;padding:7px 10px;border-radius:5px;border-color:#dce2ea;text-decoration:none}
.admin-brand-card .row-actions .danger{margin-left:auto;background:none;border-color:transparent;color:#9b5262;font-size:10px}
.admin-brand-card .file-button{position:relative;overflow:hidden}.admin-brand-card .file-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;clip:auto;cursor:pointer}
.admin-brand-card .file-button:focus-within{outline:3px solid #a56a80;outline-offset:3px}#tab-brands .inline-form{flex-wrap:wrap}
/* Compensate only the blank margin in the bundled bitmap, never custom uploads. */
.storefront .brand-logo-card[data-brand=oakley] img[src$="/assets/brands/oakley.png"],.admin-brand-logo[data-brand=oakley] img[src$="/assets/brands/oakley.png"]{transform:scale(1.65)}
@media(max-width:760px){.storefront .header .brand{width:138px;flex-basis:138px;height:69px}.storefront .brand-pill.brand-logo-card,.storefront .brand-name-fallback{min-height:112px;padding:18px 16px}.storefront .brand-logo-card .brand-logo{height:52px;max-width:136px}.storefront .brand-logo-card[data-brand=oakley] .brand-logo{height:62px;max-width:136px}.storefront .brand-logo-card[data-brand=mormaii] .brand-logo{height:54px;max-width:130px}.brand-label-fallback{font-size:14px}.admin-header>a:first-child{width:116px;flex-basis:116px;height:50px}.admin-header>a:first-child img{width:116px;height:50px}}
