/* Values come from Settings → Company; no company-specific image or name here. */
.sb .crm-app-wordmark{display:flex;align-items:center;gap:10px;min-width:0;width:100%;color:var(--ink,#24282d)}
.sb .crm-company-mark,.sb .crm-company-initial{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;box-sizing:border-box;border-radius:9px}
.sb .crm-company-mark{padding:4px;background:#fff;border:1px solid #dfe2e7}
.sb .crm-company-logo{display:block;width:100%;height:100%;object-fit:contain;filter:none!important}
.sb .crm-company-initial{background:var(--accent-wash);color:var(--accent);font-size:21px;font-weight:700}
.sb .crm-brand-name{min-width:0;font-size:calc(20px * var(--display-headings,1));font-weight:700;line-height:1.25;letter-spacing:-.6px;overflow-wrap:anywhere}
.sb .sb-top{min-width:0;gap:8px}
.sb:not(.rail) .sb-top{min-height:72px;padding:16px 20px}
.sb.rail .sb-top{justify-content:center;padding:16px 10px}
.sb.rail .crm-app-wordmark{justify-content:center}
.sb.rail .crm-brand-name{display:none}
.sb.phone .sb-top{padding:16px;min-height:76px}
.sb.phone .crm-app-wordmark{flex:1}
.crm-company-preview-logo{width:30px;height:30px;object-fit:contain;background:#fff;border:1px solid #dfe2e7;border-radius:7px;filter:none!important}
.crm-company-settings-logo{object-fit:contain;filter:none!important;background:#fff;border-radius:6px}

.crm-company-name-field{min-width:0}
.crm-company-name-help{margin:8px 0 0;color:var(--muted);font-size:var(--text-sm);line-height:1.5}
.sp-pv:has(>.crm-company-name-preview){min-width:0;flex-direction:column;align-items:flex-start;gap:6px}
.crm-company-name-preview{min-width:0;max-width:100%!important;box-sizing:border-box}
.crm-company-name-preview>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-sheet:has(.crm-company-name-field){container:crm-company-name-settings / inline-size}
@container crm-company-name-settings (max-width:1050px){
  .sp-row:has(.crm-company-name-field){grid-template-columns:minmax(0,1fr);gap:10px;padding:16px}
}

/* Each logo has its own owner control; no shared fallback between uploads. */
.crm-company-logo-help{margin:8px 0 0;color:var(--muted);font-size:var(--text-sm);line-height:1.5}
.crm-company-logo-row .sp-c{min-width:0}
.crm-company-logo-row .sp-pv{min-width:0}
.crm-company-logo-row .crm-company-settings-logo{max-width:100%!important;max-height:64px!important}
@container crm-company-name-settings (max-width:1050px){
  .sp-sheet .sp-row.crm-company-logo-row{grid-template-columns:minmax(0,1fr);gap:10px;padding:16px}
  .crm-company-logo-row .sp-pv{justify-content:flex-start;flex-wrap:wrap;gap:10px}
}

.crm-company-logo-row .sp-c button{min-height:44px;min-width:44px}
