.company-profile {
  container-type: inline-size;
}
.company-profile h2 {
  margin-bottom: 17px;
}
.company-identity {
  display: flex;
  gap: clamp(13px, 3cqi, 22px);
  align-items: center;
  min-width: 0;
  padding: clamp(13px, 3cqi, 20px);
  border: 1px solid #a9ccee;
  border-radius: 17px;
  background: radial-gradient(ellipse at 100% 0%, #cce9ffab, transparent 75%), linear-gradient(115deg, #f6fcff, #eaf4ff);
  box-shadow: inset 0 1px 0 #fff;
}
.company-logo-tile {
  display: grid;
  place-items: center;
  width: clamp(58px, 12cqi, 78px);
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #bfd5e9;
  border-radius: 15px;
  background: white;
  color: var(--blue-ink);
  font-size: clamp(20px, 5cqi, 28px);
  font-weight: 680;
  box-shadow: 0 3px 10px -6px #244e7f60;
}
.company-logo-tile img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}
.company-identity-body {
  min-width: 0;
}
#company-profile-name {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.company-logo-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 6px;
}
.company-logo-controls .button, .company-text-action {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 11px;
  font-size: 13px;
  text-align: start;
}
.company-text-action {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  border-radius: 9px;
}
.company-text-action:hover {
  color: #873447;
  background: #fff5f5;
}
#company-logo-hint {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}
.company-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 15px 18px;
  margin: 20px 0;
}
.settings-form .company-fields label {
  margin: 0;
  font-size: 14px;
}
#company-profile .company-fields input, #company-profile .company-fields textarea {
  min-width: 0;
  min-height: 44px;
}
.company-fields textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-weight: 450;
  resize: vertical;
}
.company-field-wide {
  grid-column: 1 / -1;
}
.company-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.company-profile-actions .button {
  min-height: 44px;
}
.company-status {
  color: var(--ink-soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#company-logo-status:not(:empty) {
  margin-top: 8px;
}
.company-status.is-error {
  color: #8a3147;
}
.company-internal summary {
  font-weight: 650;
  cursor: pointer;
}
@container (max-width: 490px) {
  .company-fields { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #company-profile .company-fields input, #company-profile .company-fields textarea { font-size: 16px; }
}
