/* Scoped branding only: no business forms, printing or production artwork changes. */
#brandingSettingsBtn { white-space: nowrap; flex-shrink: 0; }
.sidebar .system-brand { min-height: 74px; justify-content: center; }
.system-brand-title { font-family: SimSun, "宋体", STSong, serif; font-size: 18px; font-weight: 400; line-height: 1.55; letter-spacing: 1px; }
.sidebar .system-brand-image { display: block; width: 100%; max-width: 140px; height: 88px; object-fit: contain; }
.branding-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--panel, white); box-shadow: 0 20px 70px #0003; }
.branding-dialog::backdrop { background: #16213066; }
.branding-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.branding-dialog h3 { margin: 0; font-size: 17px; }
.branding-content { padding: 20px 22px; }
.branding-hint { margin: 0 0 16px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.branding-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.branding-option { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; min-width: 0; background: var(--panel, white); }
.branding-option.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.branding-preview { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; }
.branding-preview img { width: 100%; height: 100%; object-fit: contain; }
.branding-name { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; margin-bottom: 8px; color: var(--muted); }
.branding-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.branding-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.branding-upload input { width: 100%; }
.branding-message { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.branding-message.is-error { color: var(--danger); }
@media (max-width: 520px) { .branding-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .branding-content { padding: 16px; } }
