/* Scoped to V58 admin reference gallery. */
#v58-version{display:block;color:#b9d9e9;font-size:11px;margin:0 8px 12px}
#hk-admin-references .v58-brand-field,#hk-admin-references .v58-brand-picker{grid-column:1/-1;min-width:0}
#hk-admin-references .v58-brand-picker{border:1px solid #c9deee;border-radius:12px;padding:12px;background:#f4f8fc;color:#143758;display:grid;gap:9px}
#hk-admin-references .v58-brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:8px;max-height:340px;overflow:auto;overscroll-behavior:contain;padding:3px;min-width:0}
#hk-admin-references .v58-brand-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;min-height:83px;white-space:normal;overflow-wrap:anywhere;border:1px solid #bed3e5;border-radius:9px;padding:7px;background:#fff;color:#163e62;font:inherit;font-size:12px;cursor:pointer;text-align:center}
#hk-admin-references .v58-brand-tile[aria-pressed=true]{border:2px solid #1684b8;background:#e0f3ff;box-shadow:0 0 0 1px #1684b8}
#hk-admin-references .v58-brand-tile:focus-visible{outline:2px solid #0e699b;outline-offset:2px}
#hk-admin-references .v58-brand-image{width:100%;height:42px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:5px}
#hk-admin-references .v58-brand-image img{width:100%;height:100%;max-width:110px;object-fit:contain;border-radius:0}
#hk-admin-references .v58-no-logo{font-size:10px;color:#63788b}
#hk-admin-references #v55-ref-brand-preview img{width:155px;height:65px;max-width:100%}
#hk-admin-references #v55-ref-show-brand{width:auto;vertical-align:middle}
#hk-admin-references #v58-brand-empty[hidden],.hk-admin-section[hidden]{display:none!important}
@media(max-width:600px){#hk-admin-references .v58-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:310px}}
