/* Shared identity; brand downloads require staff authentication. */
.brand-logo{display:block;min-width:0;width:220px;max-width:100%;line-height:0;flex-shrink:1;box-sizing:border-box}
.brand-logo img{display:block;width:100%;height:auto}
.brand-logo .brand-night{display:none}
html[data-theme=dark] .brand-logo .brand-day{display:none}
html[data-theme=dark] .brand-logo .brand-night{display:block}
.brand-preview-night,.brand-preview-night-symbol,.brand-preview-night-avatar{background:#0d0e0f}
.brand-preview-night-symbol img{width:180px}
.brand-preview-night-avatar img{width:160px;height:160px;border-radius:50%}
.brand-footer-link{display:inline-block;margin-left:20px}
.brand-library{max-width:1120px;margin:auto}
.brand-intro{max-width:760px;margin-bottom:36px}
.brand-intro>p{line-height:1.7}
.brand-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.brand-library .button-link{min-height:46px;padding:12px 20px;border-radius:999px}
.brand-library .button-link.primary{background:var(--accent);color:var(--bg)}
.brand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.brand-card{overflow:hidden;border:1px solid var(--line);border-radius:24px;background:var(--paper);min-width:0}
.brand-preview{height:218px;background:#fafafa;display:flex;align-items:center;justify-content:center;padding:32px;overflow:hidden}
.brand-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.brand-preview-symbol img{width:180px}
.brand-preview-black img{width:430px;max-height:none;max-width:calc(100% + 64px);flex-shrink:0}
.brand-preview-avatar img{width:160px;height:160px;border-radius:50%;box-shadow:0 0 0 1px #e6e6e9}
.brand-card-copy{padding:24px}
.brand-business-cards{margin:0 0 48px}
.brand-business-cards>p{line-height:1.7}
.business-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0}
.business-card-preview{display:block;background:#e9e9ed}
.business-card-preview img{display:block;width:100%;height:auto}
.business-card-grid h3{font-size:19px;margin:0 0 12px}
.business-card-grid .button-link{gap:8px}
@media(max-width:1000px){.business-card-grid{grid-template-columns:minmax(0,1fr)}}
.brand-card-copy h2{font-size:21px;margin:0 0 12px}
.brand-card-copy p{font-size:14px;color:var(--muted);line-height:1.65;min-height:46px;margin:0 0 20px}
.brand-rules{padding:32px 0 0;margin-top:36px;border-top:1px solid var(--line);line-height:1.7}
.brand-rules ul{padding-left:22px}
.brand-swatches{display:flex;gap:24px;flex-wrap:wrap;margin:24px 0}
.brand-swatches span{display:flex;align-items:center;gap:10px;font-size:13px}
.brand-swatches i{display:inline-block;width:32px;height:32px;border:1px solid #dedee2;border-radius:50%}
.swatch-accent{background:#4b56f6}.swatch-ink{background:#17181a}.swatch-bg{background:#fafafa}.swatch-paper{background:#f0f0f2}
.welcome-header .brand-logo{width:240px}
@media(max-width:760px){header{grid-template-columns:minmax(0,1fr) auto}.brand-logo{width:200px}.welcome-header .brand-logo{width:160px}.brand-grid{grid-template-columns:minmax(0,1fr);gap:20px}.brand-preview{height:195px;padding:24px}.brand-card-copy{padding:22px}.brand-intro{margin-bottom:28px}.brand-actions{gap:10px}.brand-actions .button-link{width:100%}.brand-swatches{gap:16px}.brand-footer-link{margin-left:12px}}
/* The selected theme controls the assets, PDF and palette together. */
html:not([data-theme=dark]) .brand-library [data-brand-variant=dark],
html[data-theme=dark] .brand-library [data-brand-variant=light]{display:none}
.brand-theme-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--paper);margin-top:12px}
.brand-theme-switch button{min-height:46px;padding:12px 20px;border-radius:999px;border-color:transparent;background:transparent;gap:8px}
html:not([data-theme=dark]) .brand-theme-switch [data-brand-theme=light],
html[data-theme=dark] .brand-theme-switch [data-brand-theme=dark]{background:var(--accent);color:var(--bg)}
.brand-preview.brand-preview-night,.brand-preview.brand-preview-night-symbol,.brand-preview.brand-preview-night-avatar{background:#0d0e0f}
.swatch-night-bg{background:#0d0e0f}.swatch-night-paper{background:#252628}.swatch-night-ink{background:#f7f7f8}.swatch-night-accent{background:#9297ff}
