/* Microsoft Dynamics 365 & M365 Enterprise Account Center styles. */
.account-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.account-page-header {
  margin-bottom: 16px;
}

.account-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #f1faf1;
  border: 1px solid #c7e0c7;
  color: #0f700f;
  font-size: 12px;
  font-weight: 600;
}

/* Hero Identity Card */
.account-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #edebe9;
  border-left: 4px solid #0078d4;
  border-radius: 6px;
  box-shadow: 0 1.2px 3.6px rgba(0, 0, 0, 0.04), 0 0.3px 0.9px rgba(0, 0, 0, 0.02);
}

.account-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.account-hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.account-hero-avatar,
.account-hero-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0078d4;
  color: #ffffff;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.5px;
  object-fit: cover;
}

.account-status-indicator {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #107c10;
  border: 2px solid #ffffff;
}

.account-status-indicator.is-deactivated {
  background: #c19c00;
}

.account-hero-info {
  min-width: 0;
  flex: 1;
}

.account-hero-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.account-hero-title-row h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.account-Hero-badge,
.account-hero-title-row .neutral-badge {
  margin-left: 0;
}

.account-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.account-state-pill.is-active {
  background: #f1faf1;
  color: #107c10;
  border: 1px solid #c7e0c7;
}

.account-state-pill.is-suspended {
  background: #fff8eb;
  color: #8a5700;
  border: 1px solid #f4dfb2;
}

.account-hero-upn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

.account-upn-text {
  font-weight: 500;
  color: #323130;
}

.account-hero-id-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: #605e5c;
}

.account-id-label {
  color: #605e5c;
}

.account-id-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #4b5563;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 3px;
}

.copy-inline-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #0078d4;
  padding: 0;
}

.copy-inline-btn:hover {
  background: #eff6fc;
  color: #005a9e;
}

.copy-inline-btn svg {
  width: 14px;
  height: 14px;
}

.hero-meta-sep {
  color: #c8c6c4;
}

.account-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 9px;
  font-size: 12px;
  color: #605e5c;
}

.account-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-hero-meta svg {
  width: 15px;
  height: 15px;
  color: #004e8c;
}

.account-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Fluent Pivot Tabs */
.account-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid #edebe9;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.account-tab-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 8px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 4px 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

.account-tab-btn svg {
  width: 17px;
  height: 17px;
  color: #6b7280;
  transition: color 0.15s ease;
}

.account-tab-btn:hover {
  color: #0078d4;
}

.account-tab-btn:hover svg {
  color: #0078d4;
}

.account-tab-btn[aria-current="page"] {
  font-weight: 600;
  color: #0078d4;
}

.account-tab-btn[aria-current="page"] svg {
  color: #0078d4;
}

.account-tab-btn[aria-current="page"]::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #0078d4;
  left: 0;
  right: 0;
  bottom: 0;
}

.account-tab-btn.is-danger-tab:hover,
.account-tab-btn.is-danger-tab[aria-current="page"] {
  color: #a4262c;
}

.account-tab-btn.is-danger-tab:hover svg,
.account-tab-btn.is-danger-tab[aria-current="page"] svg {
  color: #a4262c;
}

.account-tab-btn.is-danger-tab[aria-current="page"]::after {
  background: #a4262c;
}

.tab-count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #eff6fc;
  color: #004e8c;
  border: 1px solid #c7e0f4;
  font-size: 10px;
  font-weight: 600;
}

/* Two-Column Account Grid */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}

.account-col-main,
.account-col-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Account Card */
.account-card {
  background: #ffffff;
  border: 1px solid #edebe9;
  border-radius: 6px;
  box-shadow: 0 1.2px 3.6px rgba(0, 0, 0, 0.04), 0 0.3px 0.9px rgba(0, 0, 0, 0.02);
}

.account-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f3f2f1;
}

.account-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.4;
}

.account-card-header p {
  font-size: 12px;
  color: #605e5c;
  margin: 4px 0 0;
  line-height: 1.5;
}

.account-card-header > svg {
  width: 19px;
  height: 19px;
  color: #004e8c;
  margin-top: 2px;
}

.panel-label {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #004e8c;
  background: #eff6fc;
  border: 1px solid #c7e0f4;
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}

.account-card-body {
  padding: 20px 22px;
}

.account-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #edebe9;
}

.account-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Avatar Upload Bar */
.avatar-upload-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid #edebe9;
  border-radius: 6px;
  margin-bottom: 20px;
}

.avatar-upload-preview {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0078d4;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-info {
  min-width: 0;
  flex: 1;
}

.avatar-upload-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #242424;
}

.avatar-upload-info p {
  font-size: 12px;
  color: #605e5c;
  margin: 2px 0 8px;
}

.avatar-upload-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm-fluent {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}

/* Form Fields */
.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fluent-field {
  display: flex;
  flex-direction: column;
}

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

.fluent-field label {
  font-size: 13px;
  font-weight: 600;
  color: #323130;
  margin-bottom: 5px;
}

.field-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.field-label-bar label {
  margin-bottom: 0;
}

.fluent-field .req {
  color: #a4262c;
}

.fluent-input,
.fluent-select {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #8a8886;
  border-radius: 4px;
  font-size: 13px;
  color: #242424;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fluent-textarea {
  min-height: 76px;
  resize: vertical;
}

.fluent-input:focus,
.fluent-select:focus {
  outline: 0;
  border-color: #0078d4;
  box-shadow: inset 0 0 0 1px #0078d4;
}

.fluent-input.is-readonly {
  background: #f3f2f1;
  color: #605e5c;
  border-color: #d2d0ce;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action .fluent-input {
  padding-right: 58px;
}

.input-action-btn {
  position: absolute;
  right: 4px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #0078d4;
  font-size: 12px;
  font-weight: 600;
}

.input-action-btn:hover {
  background: #eff6fc;
}

.field-hint {
  font-size: 11px;
  color: #605e5c;
  margin-top: 4px;
  line-height: 1.4;
}

.text-success-fluent {
  color: #107c10;
  font-weight: 600;
}

.text-danger-fluent {
  color: #a4262c;
  font-weight: 600;
}

.link-inline-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0078d4;
  font-size: 12px;
  font-weight: 600;
}

.link-inline-btn:hover {
  text-decoration: underline;
  color: #005a9e;
}

/* Directory KV List & Role Chips */
.account-kv-list {
  margin: 0;
  padding: 0;
}

.account-kv-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f2f1;
  font-size: 12px;
}

.account-kv-list > div:last-child {
  border-bottom: 0;
}

.account-kv-list dt {
  color: #605e5c;
  font-weight: 400;
}

.account-kv-list dd {
  margin: 0;
  font-weight: 600;
  color: #242424;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.role-chips-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edebe9;
}

.role-chips-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #605e5c;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.role-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  background: #eff6fc;
  border: 1px solid #c7e0f4;
  color: #004e8c;
  font-size: 11px;
  font-weight: 600;
}

/* Quick Security Action Links */
.account-action-links {
  list-style: none;
  margin: -8px 0;
  padding: 0;
}

.account-action-links li {
  border-bottom: 1px solid #f3f2f1;
}

.account-action-links li:last-child {
  border-bottom: 0;
}

.account-action-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 6px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #242424;
  border-radius: 4px;
}

.account-action-links button:hover {
  background: #f8f9fa;
}

.account-action-links strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
}

.account-action-links small {
  display: block;
  font-size: 11px;
  color: #605e5c;
  margin-top: 2px;
}

.account-action-links svg {
  width: 15px;
  height: 15px;
  color: #8a8886;
}

.account-action-links button.is-danger-link strong {
  color: #a4262c;
}

/* Password Strength Meter & Rules */
.pw-strength-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f8f9fa;
  border: 1px solid #edebe9;
  border-radius: 6px;
}

.pw-strength-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.pw-strength-header span {
  color: #605e5c;
  font-weight: 500;
}

.strength-text-none { color: #605e5c; }
.strength-text-weak { color: #a4262c; }
.strength-text-fair { color: #ca5010; }
.strength-text-good { color: #0078d4; }
.strength-text-strong { color: #107c10; }

.pw-strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 7px;
  margin-bottom: 12px;
}

.pw-strength-bars > span {
  background: #e1dfdd;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.pw-strength-bars > span.bar-active.level-weak { background: #e05353; }
.pw-strength-bars > span.bar-active.level-fair { background: #ffb900; }
.pw-strength-bars > span.bar-active.level-good { background: #0078d4; }
.pw-strength-bars > span.bar-active.level-strong { background: #239b56; }

.pw-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 11px;
  color: #605e5c;
}

.pw-rules-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rule-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8c6c4;
  flex-shrink: 0;
}

.pw-rules-list li.rule-met {
  color: #107c10;
  font-weight: 600;
}

.pw-rules-list li.rule-met .rule-dot {
  background: #107c10;
}

.fluent-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 13px;
  color: #323130;
  cursor: pointer;
}

.fluent-check {
  width: 16px;
  height: 16px;
  accent-color: #0078d4;
  cursor: pointer;
}

.alert-error {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: #fde7e9;
  border: 1px solid #f1bbbc;
  color: #a4262c;
  font-size: 12px;
  font-weight: 600;
}

/* Security 2FA Methods */
.security-method-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.security-method-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #edebe9;
  border-radius: 6px;
  background: #ffffff;
}

.method-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.method-icon.tone-blue { background: #e8f3ff; color: #0078d4; border: 1px solid #b8daff; }
.method-icon.tone-teal { background: #eaf7ef; color: #239b56; border: 1px solid #b7e4c7; }
.method-icon.tone-purple { background: #f4effa; color: #8764b8; border: 1px solid #d8c8eb; }

.method-details {
  min-width: 0;
  flex: 1;
}

.method-details strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.method-details p {
  font-size: 12px;
  color: #605e5c;
  margin: 2px 0 0;
}

.recovery-email-inline {
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #edebe9;
  border-radius: 6px;
}

.recovery-email-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fluent Toggle Switch */
.toggle-list {
  display: flex;
  flex-direction: column;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f2f1;
  cursor: pointer;
}

.toggle-row:first-child {
  padding-top: 0;
}

.toggle-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.toggle-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #242424;
}

.toggle-row small {
  display: block;
  font-size: 11px;
  color: #605e5c;
  margin-top: 2px;
  line-height: 1.4;
}

.fluent-switch {
  appearance: none;
  width: 40px;
  height: 20px;
  border-radius: 10px;
  background: #8a8886;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.fluent-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.fluent-switch:checked {
  background: #0078d4;
}

.fluent-switch:checked::after {
  transform: translateX(20px);
}

/* Active Sessions List */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #edebe9;
  border-radius: 6px;
  background: #ffffff;
}

.session-item.is-current-session {
  background: #f8fbff;
  border-color: #c7e0f4;
}

.session-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #e8f3ff;
  border: 1px solid #b8daff;
  color: #0078d4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.session-info {
  min-width: 0;
  flex: 1;
}

.session-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.session-title-row strong {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.session-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #107c10;
  background: #f1faf1;
  border: 1px solid #c7e0c7;
  padding: 1px 8px;
  border-radius: 10px;
}

.session-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: #605e5c;
}

.session-meta code {
  font-size: 11px;
  color: #323130;
  background: #f3f2f1;
  padding: 1px 5px;
  border-radius: 3px;
}

.session-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f2f1;
}

/* Privacy & Danger Zone */
.lifecycle-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f2f1;
}

.lifecycle-action-row:first-child {
  padding-top: 0;
}

.lifecycle-action-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lifecycle-action-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.lifecycle-action-row p {
  font-size: 12px;
  color: #605e5c;
  margin: 3px 0 0;
  max-width: 580px;
}

.danger-zone-card {
  border-color: #f1bbbc;
  border-left: 4px solid #a4262c;
}

.danger-badge {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #a4262c;
  background: #fde7e9;
  border: 1px solid #f1bbbc;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700;
}

.danger-action-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f2f1;
}

.danger-action-item:first-child {
  padding-top: 0;
}

.danger-action-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.danger-action-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.danger-action-info p {
  font-size: 12px;
  color: #4b5563;
  margin: 4px 0 0;
  line-height: 1.6;
}

.danger-consequence-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: #605e5c;
  line-height: 1.65;
}

.danger-action-cta {
  flex-shrink: 0;
}

.btn-warning-outline {
  color: #8a5700;
  border-color: #d9a336;
  background: #fffdf8;
}

.btn-warning-outline:hover {
  background: #fff8eb;
  border-color: #8a5700;
  color: #6e4500;
}

.btn-danger-fluent {
  background: #a4262c;
  color: #ffffff;
  border: 1px solid #a4262c;
}

.btn-danger-fluent:hover:not(:disabled) {
  background: #8e1f24;
  border-color: #8e1f24;
  color: #ffffff;
}

.btn-danger-fluent:disabled {
  background: #f3f2f1;
  border-color: #d2d0ce;
  color: #a19f9d;
  cursor: not-allowed;
}

.retention-note-box {
  padding: 12px 14px;
  background: #f8f9fa;
  border: 1px solid #edebe9;
  border-radius: 6px;
  margin-bottom: 12px;
}

.retention-note-box:last-child {
  margin-bottom: 0;
}

.retention-note-box strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.retention-note-box p {
  font-size: 12px;
  color: #605e5c;
  margin: 0;
  line-height: 1.55;
}

/* Modals (Recovery Codes, Deactivate, Delete Account) */
.account-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.account-modal {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #edebe9;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.account-modal.is-danger-modal {
  border-top: 4px solid #a4262c;
}

.account-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #edebe9;
}

.account-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.account-modal-header p {
  font-size: 12px;
  color: #605e5c;
  margin: 4px 0 0;
}

.account-modal-body {
  padding: 20px 24px;
}

.account-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #edebe9;
  background: #fafafa;
}

.recovery-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recovery-code-item {
  display: block;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e1dfdd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  letter-spacing: 0.6px;
}

.delete-warning-callout {
  padding: 12px 14px;
  background: #fde7e9;
  border: 1px solid #f1bbbc;
  border-radius: 4px;
  margin-bottom: 16px;
}

.delete-warning-callout strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #a4262c;
  margin-bottom: 3px;
}

.delete-warning-callout p {
  font-size: 12px;
  color: #60181b;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .account-hero-card {
    padding: 16px;
  }
  .account-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-hero-actions {
    width: 100%;
  }
  .account-hero-actions .btn {
    flex: 1;
  }
  .account-form-grid,
  .pw-rules-list,
  .recovery-codes-grid {
    grid-template-columns: 1fr;
  }
  .avatar-upload-bar,
  .security-method-item,
  .session-item,
  .lifecycle-action-row,
  .danger-action-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-card-header,
  .account-card-body {
    padding: 16px;
  }
}
