/* Uživatelský profil – přehledné karty, responzivní údaje a ochrana API tokenu. */
body.outline-47 #g-mainbar {
  padding: clamp(2rem, 4vw, 4rem) 0 !important;
}

body.outline-47 #g-mainbar > .g-grid,
body.outline-47 #g-mainbar > .g-grid > .g-block,
body.outline-47 #g-mainbar > .g-grid > .g-block > .g-content {
  width: 100%;
}

body.outline-47 #g-mainbar > .g-grid > .g-block > .g-content {
  max-width: 1440px;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 3vw, 2rem) !important;
}

body.outline-47 .com-users-profile.profile {
  --profile-surface: #ffffff;
  --profile-surface-soft: #f7f9fc;
  --profile-border: #dce3ee;
  --profile-text: #172235;
  --profile-muted: #66748a;
  --profile-accent: #397cf6;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: start;
  position: relative;
  padding-top: 4.75rem;
  color: var(--profile-text);
}

html[data-theme="dark"] body.outline-47 .com-users-profile.profile,
html[data-theme-preference="dark"] body.outline-47 .com-users-profile.profile,
body.dark-mode.outline-47 .com-users-profile.profile {
  --profile-surface: #171c26;
  --profile-surface-soft: #111722;
  --profile-border: #313b4d;
  --profile-text: #f4f7fb;
  --profile-muted: #aab5c7;
}

body.outline-47 .com-users-profile__edit {
  position: absolute;
  inset: 0 0 auto auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.outline-47 .com-users-profile__edit .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--profile-accent);
  border-radius: 12px;
  background: var(--profile-accent);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(57, 124, 246, 0.2);
}

body.outline-47 .com-users-profile > fieldset {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid var(--profile-border);
  border-radius: 20px;
  background: var(--profile-surface);
  box-shadow: 0 14px 38px rgba(22, 34, 53, 0.07);
}

body.outline-47 .com-users-profile > fieldset > legend {
  width: auto;
  float: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0.65rem;
  border: 0;
  border-bottom: 3px solid var(--profile-accent);
  color: var(--profile-text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 750;
  line-height: 1.25;
}

body.outline-47 .com-users-profile dl {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 0.58fr);
  margin: 0;
}

body.outline-47 .com-users-profile dt,
body.outline-47 .com-users-profile dd {
  min-width: 0;
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--profile-border);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.outline-47 .com-users-profile dt {
  padding-right: 1rem;
  color: var(--profile-muted);
  font-weight: 650;
}

body.outline-47 .com-users-profile dd {
  color: var(--profile-text);
  font-weight: 600;
}

body.outline-47 .com-users-profile dl > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media (max-width: 800px) {
  body.outline-47 #g-mainbar {
    padding: 1.5rem 0 2.5rem !important;
  }

  body.outline-47 .com-users-profile.profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-top: 4.25rem;
  }

  body.outline-47 .com-users-profile__edit {
    inset-inline: 0;
  }

  body.outline-47 .com-users-profile__edit,
  body.outline-47 .com-users-profile__edit li,
  body.outline-47 .com-users-profile__edit .btn {
    width: 100%;
  }

  body.outline-47 .com-users-profile dl {
    grid-template-columns: minmax(0, 1fr);
  }

  body.outline-47 .com-users-profile dt {
    padding: 0.8rem 0 0.2rem;
    border-bottom: 0;
  }

  body.outline-47 .com-users-profile dd {
    padding: 0 0 0.8rem;
  }

  body.outline-47 .com-users-profile dl > :nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.outline-47 .com-users-profile__edit .btn {
    transition: none !important;
  }
}
