/* Shared brand slots preserve the full image, including wide wordmarks. */
.company-head .logo,.company-logo,.asset-logo,.portfolio-logo{display:flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0;box-sizing:border-box;overflow:visible!important}
#charts .company-head>.logo{width:68px;height:68px;padding:5px}
#charts .company-head>.logo img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;display:block;flex-shrink:0}
.company-logo img{box-sizing:border-box;object-fit:contain!important;object-position:center!important;max-width:100%!important;max-height:100%!important;padding:3px!important;flex-shrink:0}
.chain-node img,.node img,.segment-company-logo,.portfolio-asset img,.holding-item img{box-sizing:border-box;object-fit:contain!important;object-position:center!important;max-width:100%;display:block}
#segments .donut-center{display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
#segments .donut-center img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
@media(max-width:600px){#charts .company-head>.logo{width:58px;height:58px;padding:4px}}

/* A logo and its label occupy separate columns at every breakpoint. */
#company .clean-chain .chain-lane .chain-node{grid-template-columns:64px minmax(0,1fr);column-gap:12px;overflow:visible}
#company .clean-chain .chain-lane .chain-node img{max-width:64px!important;max-height:38px!important;object-fit:contain!important;flex-shrink:0;overflow:visible}
#company .clean-chain .chain-lane .chain-node b,#company .clean-chain .chain-lane .chain-node small{min-width:0;white-space:normal;overflow-wrap:anywhere}
.company-logo img{width:100%!important;height:100%!important;border-radius:26%!important}
.company-head .logo img{border-radius:26%!important;box-sizing:border-box}

/* Cancel legacy enlargement; dimensions alone do not constrain transforms. */
.logo img,.segment-company-logo{transform:none!important;scale:1!important;min-width:0!important;min-height:0!important}
#segments .donut-center img{width:90px!important;height:76px!important;max-width:80%!important;max-height:70%!important}

/* Toss artwork already includes its own brand background and padding. */
img[src*="/api/company-logo?"]{padding:0!important;border:0!important;box-shadow:none!important;object-fit:contain!important;object-position:center!important;filter:none!important}
#charts .company-head>.logo{padding:0}
