.site-logo-image { width: 1.65em; height: 1.65em; max-width: 100%; object-fit: contain; flex: none; vertical-align: middle; }
.brand-symbol .site-logo-image { width: 100%; height: 100%; }
.brand-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 1rem; margin-top: 0; }
.brand-upload { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; }
.brand-upload legend { padding: 0 .3rem; color: var(--text); font-size: .93rem; font-weight: 600; }
.brand-sample { display: flex; align-items: center; gap: .65rem; min-height: 54px; min-width: 0; color: var(--text); }
.brand-sample img { object-fit: contain; width: 36px; height: 36px; flex: none; }
.brand-sample span, .brand-tab-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-tab-sample { font-size: .84rem; gap: .5rem; }
.brand-tab-sample img, .brand-tab-preview img { width: 16px; height: 16px; object-fit: contain; flex: none; }
.brand-hint { margin: .4rem 0 1rem; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.brand-actions, .brand-choose, .brand-restore, .brand-tab-preview, .pv-brand { display: flex; align-items: center; }
.brand-actions { flex-wrap: wrap; gap: .6rem 1rem; margin-top: auto; }
.brand-upload { display: flex; flex-direction: column; }
.brand-choose, .brand-restore { position: relative; gap: .4rem; cursor: pointer; font-size: .81rem; }
.brand-choose { width: fit-content; padding: .45rem .75rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--surface); color: var(--text); }
.brand-choose:hover { border-color: var(--accent); }
.brand-choose:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand-choose input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.brand-choose svg { width: 15px; height: 15px; }
.brand-restore { color: var(--muted); }
.brand-restore input { appearance: none; display: grid; place-content: center; width: 16px; height: 16px; border: 1px solid var(--muted); border-radius: 4px; background: var(--surface); margin: 0; }
.brand-restore input:checked { background: var(--accent); border-color: var(--accent); }
.brand-restore input:checked::after { content: ""; width: 7px; height: 4px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.brand-restore input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand-error { color: var(--text); font-size: .85rem; }
.brand-tab-preview, .pv-brand { gap: .35rem; min-width: 0; }
.pv-brand img { width: 1.2em; height: 1.2em; object-fit: contain; }
