/* ==========================================================================
   My profile page.
   Owning feature: account
   Load order is defined in Views/Shared/_CssIncludes.cshtml — do not reorder.
   ========================================================================== */

/* ==========================================================================
   My profile (/account/profile) — a header card over a two-column card grid.
   Same white-card / brand-token language as the Admin Users stat strip.
   ========================================================================== */
.fh-profile-page {
  gap: 1rem;
  max-width: var(--fh-read-max);
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.fh-profile-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-xl, 0.85rem);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.fh-profile-hero-avatar {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--fh-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fh-text-base);
  font-weight: var(--fh-weight-semibold);
  letter-spacing: var(--fh-tracking-wide);
}
.fh-profile-hero-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.1rem;
}
.fh-profile-hero-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fh-profile-hero-title {
  margin: 0;
  font-size: var(--fh-text-2xl);
  font-weight: var(--fh-weight-semibold);
  letter-spacing: var(--fh-tracking-tight);
  color: var(--fh-text);
  line-height: var(--fh-leading-tight);
}
.fh-profile-hero-handle {
  font-size: var(--fh-text-xs);
  font-weight: var(--fh-weight-medium);
  color: var(--fh-muted);
  background: var(--fh-soft);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.fh-profile-hero-sub {
  margin: 0;
  font-size: var(--fh-text-sm);
  color: var(--fh-muted);
}

.fh-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.fh-profile-card {
  background: #ffffff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-xl, 0.85rem);
  padding: var(--fh-card-pad, 1.2rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  min-width: 0;
}
.fh-profile-card-title {
  font-size: var(--fh-text-base);
  font-weight: var(--fh-weight-semibold);
  color: var(--fh-text);
  margin-bottom: 1rem;
}
.fh-profile-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.fh-profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.fh-profile-form-summary:empty {
  display: none;
}
.fh-profile-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fh-profile-field .form-label {
  font-size: var(--fh-text-sm);
  font-weight: var(--fh-weight-medium);
  color: var(--fh-text);
  margin-bottom: 0.3rem;
}
.fh-profile-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.fh-profile-form-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--fh-border);
  padding-top: 0.9rem;
  margin-top: 0.1rem;
}

.fh-profile-card-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fh-profile-storage-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.fh-profile-storage-used {
  font-size: var(--fh-text-2xl);
  font-weight: var(--fh-weight-semibold);
  letter-spacing: var(--fh-tracking-tight);
  color: var(--fh-text);
  font-variant-numeric: tabular-nums;
}
.fh-profile-storage-of {
  font-size: var(--fh-text-sm);
  color: var(--fh-muted);
}

@media (max-width: 767.98px) {
  .fh-profile-grid {
    grid-template-columns: 1fr;
  }
  .fh-profile-field-row {
    grid-template-columns: 1fr;
  }
}

