.account-pill {
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.account-pill-avatar,
.account-avatar,
.business-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #6757ff, #6d28d9);
  color: #fff;
  font-weight: 800;
}

.account-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 11px;
}

.account-avatar,
.business-logo {
  width: 112px;
  height: 112px;
  border: 1px solid var(--border);
  border-radius: 26px;
  font-size: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

.business-logo {
  border-radius: 22px;
  background: linear-gradient(145deg, #0f766e, #2563eb);
}

.account-pill-avatar img,
.account-avatar img,
.business-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-shell {
  display: grid;
  gap: 18px;
}

.account-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.account-tabs button,
.account-action {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-tabs button.active,
.account-action.primary {
  color: #080b14;
  background: #f4f7fb;
  border-color: #f4f7fb;
}

.account-action.danger {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, .42);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.8fr);
  gap: 18px;
  align-items: start;
}

.account-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .028);
  padding: 22px;
}

.account-identity {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.account-identity h3,
.account-card h3 {
  margin: 0;
}

.account-muted {
  color: var(--muted);
  line-height: 1.55;
}

.account-badge-row,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-field {
  display: grid;
  gap: 7px;
}

.account-field.full {
  grid-column: 1 / -1;
}

.account-field label,
.account-section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-field input,
.account-field select,
.account-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(4, 8, 18, .62);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
}

.account-field textarea {
  min-height: 104px;
  resize: vertical;
}

.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
  outline: 2px solid rgba(99, 102, 241, .45);
  border-color: rgba(129, 140, 248, .8);
}

.account-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-switch {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}

.account-switch input {
  margin-top: 3px;
}

.account-status {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, .35);
  color: #a7f3d0;
  background: rgba(6, 78, 59, .24);
}

.account-status.error {
  border-color: rgba(244, 63, 94, .42);
  color: #fecdd3;
  background: rgba(127, 29, 29, .25);
}

.account-session-current {
  color: #6ee7b7;
  font-weight: 700;
}

@media (max-width: 980px) {
  .account-layout,
  .account-form-grid,
  .account-switch-grid {
    grid-template-columns: 1fr;
  }

  .account-field.full {
    grid-column: auto;
  }
}
