.avi-branding{max-width:760px;padding:24px;border:1px solid #486074;border-radius:12px;background:var(--card,#142532);color:var(--text,#edf4f8)}
.avi-branding h3{margin:0 0 10px;font-size:1.2rem}.avi-branding p{line-height:1.5}
.avi-branding-preview{display:flex;align-items:center;justify-content:center;min-height:180px;max-width:520px;margin:20px 0;border:1px dashed #70869a;border-radius:8px;background:#fff;color:#536475;padding:16px}
.avi-branding-preview img{max-width:100%;max-height:180px;object-fit:contain}.avi-branding-preview [hidden]{display:none}
.avi-branding-file{display:block;font-weight:600}.avi-branding-file input{display:block;max-width:100%;margin-top:8px;padding:10px;border:1px solid #70869a;border-radius:6px;background:transparent;color:inherit}
.avi-branding-help{font-size:.85rem;opacity:.8}.avi-branding-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.avi-branding-actions button{padding:10px 14px;border:1px solid #70869a;border-radius:7px;cursor:pointer;background:transparent;color:inherit;font:inherit}
.avi-branding-actions button.primary{background:#1876ad;border-color:#1876ad;color:white}.avi-branding-actions button:disabled{opacity:.5;cursor:default}
.avi-branding-status{min-height:1.5em}.avi-branding-dialog{width:min(820px,94vw);max-height:90vh;overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #70869a;border-radius:12px;background:#101e29;color:#edf4f8}.avi-branding-dialog::backdrop{background:#0009}
.avi-branding-dialog>button{float:right;margin-bottom:14px;padding:8px 14px}.avi-branding-dialog>div{clear:both}.avi-branding-header-logo{max-width:220px;max-height:64px;object-fit:contain}
@media(max-width:600px){.avi-branding{padding:16px}.avi-branding-preview{min-height:120px}.avi-branding-actions button{flex:1 1 44%}.avi-branding-header-logo{max-width:150px;max-height:48px}}

/* Keep account actions clear of the logo, including 320px phones. */
@media(max-width:600px){
  body.suite-shell .topbar{flex-wrap:wrap;gap:8px 12px}
  body.suite-shell .topbar .brand-lockup{flex:0 0 auto;max-width:100%}
  body.suite-shell .topbar .account{flex:1 1 290px;min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:6px}
  body.suite-shell .topbar .account button{min-height:40px;padding-inline:7px}
}
