.profile-connected-badge { color: var(--color-brand-primary); background: var(--color-brand-primary-soft); }
.profile-message { margin-top: 22px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.profile-message.success { color: #155d36; background: #e9f7ef; }
.profile-message.error, .validation-summary, .field-validation-error { color: #b42318; }
.profile-message.error { background: #fff0ee; }
.validation-summary:empty, .validation-summary-valid { display: none; }
.validation-summary-errors { display: block; }
.profile-form { margin-top: 25px; }
.profile-readonly-grid, .profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-readonly-grid { margin-bottom: 28px; padding: 20px; background: var(--color-background-subtle); border-radius: 12px; }
.profile-readonly-grid > div, .profile-field-grid label { min-width: 0; }
.profile-readonly-grid span, .profile-field-grid label > span { display: block; margin-bottom: 7px; color: var(--color-text-muted); font-weight: 700; }
.profile-input-label em { margin-left: 8px; color: var(--color-text-secondary); font-size: .88em; font-style: normal; font-weight: 500; }
.profile-readonly-grid strong { overflow-wrap: anywhere; }
.profile-readonly-grid .wide, .profile-field-grid .wide { grid-column: 1 / -1; }
.profile-field-grid input, .profile-field-grid select { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--color-text-primary); background: #fff; border: 1px solid var(--color-border-default); border-radius: 9px; font: inherit; }
.profile-field-grid input:focus, .profile-field-grid select:focus { outline: 3px solid var(--color-brand-primary-soft); border-color: var(--color-brand-primary); }
.profile-field-error { display: block; min-height: 1.35em; margin-top: 4px; color: #b42318; font-weight: 700; }
.profile-field-label { display: block; margin-bottom: 7px; color: var(--color-text-muted); font-weight: 700; }
.mobile-action-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 9px; align-items: stretch; }
.mobile-action-row > .button, .mobile-verification-inline > .button { min-width: 8.5rem; white-space: nowrap; }
.mobile-verification-inline { display: grid; grid-template-columns: minmax(150px, .7fr) auto; gap: 9px; }
.mobile-verification-inline[hidden] { display: none; }
.mobile-action-row input.is-verification-locked { color: var(--color-text-secondary); background: var(--color-background-subtle); cursor: not-allowed; }
.profile-mobile-field > .profile-field-error { min-height: 1.35em; }
.profile-mobile-field .field-help { margin-top: 2px; }
.profile-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.allergy-settings-form .allergy-choice-grid { margin-top: 8px; }
@media (max-width: 640px) {
  .profile-readonly-grid, .profile-field-grid { grid-template-columns: 1fr; }
  .profile-readonly-grid .wide, .profile-field-grid .wide { grid-column: auto; }
  .mobile-action-row, .mobile-verification-inline { grid-template-columns: 1fr; }
  .mobile-action-row > .button, .mobile-verification-inline > .button { width: 100%; }
  .profile-actions .button { width: 100%; }
  .profile-input-label em { display: block; margin: 3px 0 0; }
}
