.mc-profile {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.mc-profile-head,
.mc-profile-actions,
.mc-signature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mc-profile-head h2 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: 1.18rem;
}

.mc-profile-head p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.mc-eyebrow {
  color: var(--brand);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mc-status {
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.mc-status[data-state="ready"] { background: #e8f8f0; color: #087a4b; }
.mc-status[data-state="error"] { background: #fff0ee; color: #b42318; }
.mc-status[data-state="saving"] { background: var(--brand-light); color: var(--brand); }

.mc-fieldset {
  margin: 20px 0 18px;
  padding: 0;
  border: 0;
}

.mc-fieldset legend,
.mc-signature-preview > span {
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mc-tones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-tone {
  position: relative;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.mc-tone[aria-checked="true"] {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 15%, transparent);
}

.mc-tone:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.mc-signature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 18px;
  align-items: stretch;
}

.mc-signature-field { margin: 0; }
.mc-signature-field label span { text-transform: none; letter-spacing: 0; }
.mc-signature-field textarea { min-height: 132px; }
.mc-signature-meta { margin-top: 7px; color: var(--text-muted); font-size: .72rem; }
.mc-signature-preview { display: flex; flex-direction: column; }
.mc-signature-preview .ml-preview { flex: 1; min-height: 92px; margin: 0; }
.mc-signature-preview .ml-bubble { color: #cbd5dc; }
.mc-profile-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 820px) {
  .mc-profile-head { align-items: flex-start; }
  .mc-signature-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-tone { transition: none !important; }
}
