/* =========================================================
   7px.pl - User profile shell v1.0 / package v2.9
   Full-cover user profile based on Studio/School profile v2.8.
   Loaded only for real user profile routes.
   ========================================================= */

html.user-profile-cover-shell,
html.user-profile-cover-shell body {
  min-height: 100%;
  height: auto;
  background: var(--brand-bg);
}

html.user-profile-cover-shell body {
  overflow-x: hidden;
  overflow-y: auto;
}

html.user-profile-cover-shell.profile-auto-theme-ready body,
html.user-profile-cover-shell.profile-auto-theme-ready .wo-board,
html.user-profile-cover-shell.profile-auto-theme-ready .user-profile-content,
html.user-profile-cover-shell.profile-auto-theme-ready .wo-footer {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease;
}


html.user-profile-cover-shell .wo-board {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  height: auto !important;
  overflow: visible !important;
  background: var(--brand-bg) !important;
}

/* Cover is a real image layer. No demo image is hard-coded in CSS. */
html.user-profile-cover-shell .wo-board > .user-profile-cover-layer {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100svh + clamp(140px, 12vw, 240px));
  overflow: hidden;
  pointer-events: none;
  background: var(--brand-bg);
}

html.user-profile-cover-shell .wo-board > .user-profile-cover-layer > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

html.user-profile-cover-shell .wo-board > .user-profile-cover-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(4, 6, 9, .10) 0%,
      rgba(4, 6, 9, .16) 48%,
      rgba(4, 6, 9, .50) 70%,
      color-mix(in srgb, var(--brand-bg) 74%, transparent) 89%,
      var(--brand-bg) 100%
    ),
    linear-gradient(
      90deg,
      rgba(4, 6, 9, .78) 0%,
      rgba(4, 6, 9, .56) 35%,
      rgba(4, 6, 9, .18) 66%,
      rgba(4, 6, 9, .04) 100%
    );
}

/* The old pseudo-element must never display the demo placeholder. */
html.user-profile-cover-shell .wo-board::before {
  content: none !important;
  background-image: none !important;
}

/* Before JS moves the layer to .wo-board, keep it out of the layout. */
html.user-profile-cover-shell main.user-profile-shell > .user-profile-cover-layer {
  display: none;
}

html.user-profile-cover-shell .wo-header,
html.user-profile-cover-shell .wo-content,
html.user-profile-cover-shell .wo-gridwrap,
html.user-profile-cover-shell .wo-footer {
  position: relative;
}

html.user-profile-cover-shell .wo-header {
  z-index: 30;
  background: linear-gradient(to bottom, rgba(4, 6, 9, .70), rgba(4, 6, 9, .18) 80%, transparent) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
}
html.user-profile-cover-shell .wo-header-iconbtn,
html.user-profile-cover-shell .wo-theme-btn,
html.user-profile-cover-shell .wo-header-search i {
  color: #fff !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html.user-profile-cover-shell .wo-header-iconbtn:hover,
html.user-profile-cover-shell .wo-theme-btn:hover {
  background: #11151b !important;
  border-color: #2f333d !important;
}
html.user-profile-cover-shell .wo-header-avatar {
  background: transparent !important;
  border-color: rgba(255,255,255,.30);
}
html.user-profile-cover-shell .wo-side-toggle {
  display: inline-flex !important;
}

html.user-profile-cover-shell .wo-content {
  z-index: 2;
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

html.user-profile-cover-shell .wo-gridwrap,
html.user-profile-cover-shell .wo-gridwrap-cols-1,
html.user-profile-cover-shell .wo-gridwrap-cols-2,
html.user-profile-cover-shell .wo-gridwrap-cols-3 {
  z-index: 2;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  min-height: 0 !important;
  align-items: start;
  background: transparent !important;
}

html.user-profile-cover-shell .wo-gridwrap > aside.wo-col {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 76px;
  min-width: 0;
  min-height: 0 !important;
  padding: 12px 8px 18px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  transition: width .2s ease, background-color .2s ease;
}

html.user-profile-cover-shell main.user-profile-shell {
  --user-profile-max: 1320px;
  --user-profile-pad: clamp(18px, 3vw, 46px);
  --user-profile-radius: 10px;
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: relative;
  z-index: 4;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--brand-text);
}

/* =========================================================
   HERO
   ========================================================= */
html.user-profile-cover-shell .user-profile-hero {
  position: relative;
  min-height: calc(100svh - var(--wo-header-h, 66px));
  display: flex;
  align-items: flex-end;
  color: #fff;
}
html.user-profile-cover-shell .user-profile-shell--subpage .user-profile-hero {
  min-height: clamp(480px, 62svh, 720px);
}

html.user-profile-cover-shell .user-profile-hero__inner {
  width: min(var(--user-profile-max), calc(100% - (2 * var(--user-profile-pad))));
  margin: 0 auto;
  padding: clamp(110px, 14vh, 170px) 0 clamp(46px, 7vh, 84px);
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(250px, 350px);
  align-items: end;
  gap: clamp(28px, 5vw, 76px);
}

.user-profile-identity {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.user-profile-avatar {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  overflow: visible;
  border: 3px solid rgba(255,255,255,.90);
  border-radius: 10px;
  background: #11151b;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.user-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 7px;
}
.user-profile-avatar__verified {
  position: absolute;
  right: -11px;
  bottom: -11px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-accent);
  font-size: 27px;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.38));
}
.user-profile-avatar__verified .wo-icon-stack {
  display: block;
  width: 1em;
  height: 1em;
  color: var(--brand-accent);
}
.user-profile-avatar__verified .wo-icon-stack > .fa-certificate {
  display: block;
  font-size: 1em;
}
.user-profile-avatar__verified .wo-icon-overlay {
  top: 52%;
  color: #fff;
  font-size: .42em;
  transform: translate(-50%, -50%);
}

.user-profile-copy { min-width: 0; }
.user-profile-kicker {
  margin-bottom: 8px;
  color: var(--brand-accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.user-profile-copy h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(40px, 5vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 950;
  text-wrap: balance;
}
.user-profile-username,
.user-profile-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  margin-right: 18px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.user-profile-username i,
.user-profile-location i { color: var(--brand-accent); }
.user-profile-intro {
  max-width: 64ch;
  margin: 18px 0 0;
  color: rgba(255,255,255,.83);
  font-size: 14px;
  line-height: 1.7;
}

.user-profile-actions {
  display: grid;
  gap: 10px;
  align-self: end;
}
.user-profile-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #11151b;
  color: #fff !important;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.user-profile-btn i {
  width: 18px;
  text-align: center;
  color: inherit !important;
}
.user-profile-btn:hover {
  background: #1b2029;
  border-color: rgba(255,255,255,.34);
}
.user-profile-btn--primary {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  color: #111 !important;
}
.user-profile-btn--primary:hover {
  border-color: var(--brand-accent-hover);
  background: var(--brand-accent-hover);
  color: #111 !important;
}

.user-profile-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  width: 100%;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.user-profile-stat {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 24px clamp(22px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  color: #fff;
}
.user-profile-stat + .user-profile-stat {
  border-left: 1px solid rgba(255,255,255,.18);
}
.user-profile-stat i {
  flex: 0 0 auto;
  min-width: 54px;
  color: #fff;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  text-align: center;
}
.user-profile-stat strong {
  display: block;
  color: #fff;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
}

/* =========================================================
   PROFILE NAVIGATION
   ========================================================= */
.user-profile-nav {
  position: relative;
  z-index: 12;
  width: min(var(--user-profile-max), calc(100% - (2 * var(--user-profile-pad))));
  margin: 22px auto 0;
  border-radius: var(--user-profile-radius);
  background: color-mix(in srgb, var(--brand-surface) 96%, transparent);
  overflow: hidden;
}
.user-profile-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.user-profile-nav__inner::-webkit-scrollbar { display: none; }
.user-profile-nav a {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0 18px;
  color: var(--brand-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.user-profile-nav a:hover,
.user-profile-nav a.is-active {
  color: var(--brand-text);
  background: color-mix(in srgb, var(--brand-bg) 76%, transparent);
}
.user-profile-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--brand-accent);
}
.user-profile-nav a i { color: currentColor; }
.user-profile-nav a b {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand-accent) 18%, var(--brand-bg));
  color: color-mix(in srgb, var(--brand-text) 80%, var(--brand-accent));
  font-size: 10px;
}

/* =========================================================
   CONTENT
   ========================================================= */
.user-profile-content {
  position: relative;
  z-index: 5;
  width: min(var(--user-profile-max), calc(100% - (2 * var(--user-profile-pad))));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) 0 clamp(70px, 8vw, 110px);
}
.user-profile-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 20px;
}
.user-profile-main-column,
.user-profile-info-column {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.user-profile-content .wo-entry-section,
.user-profile-content .wo-websites-box,
.user-profile-content .wo-contact-box,
.user-profile-content .wo-scope-box,
.user-profile-content .wo-gallery-preview,
.user-profile-content .wo-cwrap,
.user-profile-subpage {
  margin: 0 !important;
  border-radius: var(--user-profile-radius);
  background: var(--brand-surface);
  box-shadow: none !important;
}

.user-profile-content .wo-entry-section,
.user-profile-content .wo-websites-box,
.user-profile-content .wo-contact-box,
.user-profile-content .wo-scope-box,
.user-profile-content .wo-gallery-preview {
  padding: clamp(18px, 2.5vw, 28px);
}

.user-profile-info-card {
  padding: 22px;
  border-radius: var(--user-profile-radius);
  background: var(--brand-surface);
}
.user-profile-info-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 900;
}
.user-profile-info-card__title i { color: var(--brand-accent); }
.user-profile-info-card dl { margin: 0; }
.user-profile-info-card dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--brand-line);
}
.user-profile-info-card dl > div:first-child { border-top: 0; }
.user-profile-info-card dt {
  color: var(--brand-muted);
  font-size: 11px;
}
.user-profile-info-card dd {
  margin: 0;
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.user-profile-content .wo-gallery {
  width: 100%;
}
.user-profile-content .wo-gallery-item,
.user-profile-content .wo-gallery-sizer {
  width: 33.3333%;
}

.user-profile-subpage {
  overflow: hidden;
}
.user-profile-subpage__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--brand-line);
  background: color-mix(in srgb, var(--brand-surface) 78%, var(--brand-bg));
}
.user-profile-subpage__kicker {
  margin-bottom: 8px;
  color: var(--brand-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.user-profile-subpage__head h2 {
  margin: 0;
  color: var(--brand-text);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}
.user-profile-subpage__head p {
  max-width: 70ch;
  margin: 10px 0 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.6;
}
.user-profile-subpage__body {
  min-height: 220px;
  padding: clamp(18px, 3vw, 34px);
}
.user-profile-subpage__body > .wo-entry-section,
.user-profile-subpage__body > .wo-gallery,
.user-profile-subpage__body > .wo-entry-empty {
  margin: 0 !important;
}
.user-profile-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}
.user-profile-empty > i {
  color: var(--brand-accent);
  font-size: 30px;
}
.user-profile-empty h3 { margin: 4px 0 0; }
.user-profile-empty p { margin: 0 0 10px; color: var(--brand-muted); }

/* =========================================================
   FOLLOWERS / FOLLOWING
   ========================================================= */
.user-profile-connections {
  display: grid;
  gap: 18px;
}
.user-profile-connections__summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--brand-muted);
  font-size: 12px;
}
.user-profile-connections__summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--brand-bg) 72%, var(--brand-surface));
}
.user-profile-connections__summary i { color: var(--brand-accent); }
.user-profile-connections__summary strong {
  color: var(--brand-text);
  font-size: 13px;
}
.user-profile-connections__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.user-profile-person-card {
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-surface) 88%, var(--brand-bg));
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.user-profile-person-card:hover {
  border-color: color-mix(in srgb, var(--brand-accent) 44%, var(--brand-line));
  background: color-mix(in srgb, var(--brand-surface) 78%, var(--brand-bg));
  transform: translateY(-2px);
}
.user-profile-person-card__avatar {
  position: relative;
  width: 82px;
  height: 82px;
  display: block;
  border-radius: 9px;
  background: var(--brand-bg);
}
.user-profile-person-card__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.user-profile-person-card__verified {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  font-size: 21px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.30));
}
.user-profile-person-card__verified .wo-icon-stack {
  display: block;
  width: 1em;
  height: 1em;
}
.user-profile-person-card__verified .wo-icon-overlay {
  top: 52%;
  color: #fff;
  font-size: .42em;
  transform: translate(-50%, -50%);
}
.user-profile-person-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.user-profile-person-card__kicker {
  max-width: 100%;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--brand-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.user-profile-person-card__name {
  max-width: 100%;
  overflow: hidden;
  color: var(--brand-text) !important;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-profile-person-card__username,
.user-profile-person-card__location {
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-profile-person-card__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.user-profile-person-card__location i { color: var(--brand-accent); }
.user-profile-person-card__open {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: 7px;
  background: #11151b;
  color: #fff !important;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.user-profile-person-card__open:hover { background: var(--brand-accent); color: #111 !important; }
.user-profile-connections__empty { min-height: 300px; }

@media (max-width: 980px) {
  .user-profile-connections__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .user-profile-connections__summary { justify-content: flex-start; }
  .user-profile-person-card {
    grid-template-columns: 68px minmax(0, 1fr) 38px;
    min-height: 100px;
    gap: 12px;
    padding: 12px;
  }
  .user-profile-person-card__avatar {
    width: 68px;
    height: 68px;
  }
  .user-profile-person-card__open {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }
  .user-profile-person-card__open span { display: none; }
}

/* Footer is an ordinary document footer after the profile. */
html.user-profile-cover-shell .wo-footer {
  z-index: 5;
  margin-top: 0;
  background: var(--brand-surface-2);
}

/* =========================================================
   COLLAPSED GLOBAL ASIDE
   ========================================================= */
@media (min-width: 1101px) {
  html.user-profile-cover-shell .wo-gridwrap,
  html.user-profile-cover-shell .wo-gridwrap-cols-1,
  html.user-profile-cover-shell .wo-gridwrap-cols-2,
  html.user-profile-cover-shell .wo-gridwrap-cols-3 {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    transition: grid-template-columns .2s ease;
  }
  html.user-profile-cover-shell.collab-side-expanded .wo-gridwrap,
  html.user-profile-cover-shell.collab-side-expanded .wo-gridwrap-cols-1,
  html.user-profile-cover-shell.collab-side-expanded .wo-gridwrap-cols-2,
  html.user-profile-cover-shell.collab-side-expanded .wo-gridwrap-cols-3 {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }
  html.user-profile-cover-shell.collab-side-expanded .wo-gridwrap > aside.wo-col {
    width: 260px;
    background: #11151b !important;
    border-right: 1px solid #2b3039 !important;
  }
  html.user-profile-cover-shell .wo-left-sticky {
    width: 100%;
    overflow: visible;
  }
  html.user-profile-cover-shell .wo-logo {
    width: 100%;
    margin: 4px 0 14px;
  }
  html.user-profile-cover-shell .wo-logo-link {
    min-height: 52px;
    padding: 4px 0;
  }
  html.user-profile-cover-shell .wo-logo-img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,.44)) !important;
    transition: width .2s ease, height .2s ease;
  }
  html.user-profile-cover-shell.collab-side-expanded .wo-logo-img {
    width: 156px !important;
    height: 72px !important;
  }
  html.user-profile-cover-shell .wo-side-nav {
    display: grid !important;
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  html.user-profile-cover-shell .wo-side-link {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0,0,0,.72);
    transition: width .2s ease, padding .2s ease, background-color .15s ease;
  }
  html.user-profile-cover-shell .wo-side-link i {
    width: 22px;
    flex: 0 0 22px;
    color: #fff !important;
    font-size: 16px;
    text-align: center;
  }
  html.user-profile-cover-shell .wo-side-link .wo-side-mini {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-color: rgba(255,255,255,.34);
  }
  html.user-profile-cover-shell .wo-side-link:hover,
  html.user-profile-cover-shell .wo-side-link.wo-is-active {
    background: #11151b;
    color: #fff;
  }
  html.user-profile-cover-shell .wo-side-link.wo-is-active::before {
    left: 0;
    width: 2px;
    height: 24px;
  }
  html.user-profile-cover-shell .wo-side-red-dot {
    position: absolute;
    top: 8px;
    right: 7px;
    margin: 0;
  }
  html.user-profile-cover-shell .wo-side-subtitle { display: none; }
  html.user-profile-cover-shell.collab-side-expanded .wo-side-nav {
    gap: 3px;
    padding: 0 6px;
  }
  html.user-profile-cover-shell.collab-side-expanded .wo-side-link {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0 14px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    text-shadow: none;
  }
  html.user-profile-cover-shell.collab-side-expanded .wo-side-link:hover,
  html.user-profile-cover-shell.collab-side-expanded .wo-side-link.wo-is-active {
    background: #1b2029;
    color: #fff;
  }
  html.user-profile-cover-shell.collab-side-expanded .wo-side-link.wo-is-active::before { left: 3px; }
  html.user-profile-cover-shell.collab-side-expanded .wo-side-subtitle {
    display: block;
    margin: 14px 14px 7px;
    color: #7f8998;
    font-size: 9px;
  }
}

@media (max-width: 1100px) {
  html.user-profile-cover-shell .wo-gridwrap,
  html.user-profile-cover-shell .wo-gridwrap-cols-1,
  html.user-profile-cover-shell .wo-gridwrap-cols-2,
  html.user-profile-cover-shell .wo-gridwrap-cols-3 {
    display: block !important;
  }
  html.user-profile-cover-shell .wo-gridwrap > aside.wo-col {
    width: auto;
    padding: 0 !important;
    background: transparent !important;
  }
  html.user-profile-cover-shell .wo-side-nav.wo-is-open {
    padding: 12px;
    background: #11151b !important;
    border-bottom: 1px solid #2b3039;
  }
  html.user-profile-cover-shell main.user-profile-shell {
    grid-column: auto !important;
  }
  html.user-profile-cover-shell .user-profile-hero__inner {
    grid-template-columns: 1fr;
    align-content: end;
  }
  .user-profile-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .user-profile-home-grid {
    grid-template-columns: 1fr;
  }
  .user-profile-info-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html.user-profile-cover-shell .wo-board > .user-profile-cover-layer {
    height: calc(100svh + 180px);
  }

  html.user-profile-cover-shell .wo-board > .user-profile-cover-layer > img {
    object-position: 62% top;
  }
  html.user-profile-cover-shell .user-profile-hero,
  html.user-profile-cover-shell .user-profile-shell--subpage .user-profile-hero {
    min-height: max(620px, calc(100svh - var(--wo-header-h, 66px)));
  }
  html.user-profile-cover-shell .user-profile-hero__inner {
    width: calc(100% - 32px);
    padding-top: 110px;
    padding-bottom: 48px;
  }
  .user-profile-identity {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
  }
  .user-profile-avatar { width: 82px; }
  .user-profile-copy h1 { font-size: clamp(34px, 11vw, 54px); }
  .user-profile-intro { font-size: 13px; }
  .user-profile-actions { grid-template-columns: 1fr; }
  .user-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }
  .user-profile-stat {
    min-height: 82px;
    padding: 16px 8px;
    gap: 9px;
  }
  .user-profile-stat i {
    min-width: 28px;
    font-size: clamp(24px, 7vw, 34px);
  }
  .user-profile-stat strong {
    font-size: clamp(28px, 8vw, 38px);
  }
  .user-profile-nav,
  .user-profile-content {
    width: calc(100% - 24px);
  }
  .user-profile-nav { margin-top: -12px; }
  .user-profile-nav a { min-height: 54px; padding: 0 14px; }
  .user-profile-nav a.is-active::after { left: 14px; right: 14px; }
  .user-profile-content { padding-top: 22px; }
  .user-profile-info-column { grid-template-columns: 1fr; }
  .user-profile-content .wo-gallery-item,
  .user-profile-content .wo-gallery-sizer { width: 50%; }
}


@media (max-width: 440px) {
  .user-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .user-profile-stat {
    min-height: 72px;
    padding-inline: 5px;
    gap: 6px;
  }
  .user-profile-stat i {
    min-width: 22px;
    font-size: 22px;
  }
  .user-profile-stat strong {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.user-profile-cover-shell .wo-gridwrap,
  html.user-profile-cover-shell .wo-gridwrap > aside.wo-col,
  html.user-profile-cover-shell .wo-logo-img,
  html.user-profile-cover-shell .wo-side-link {
    transition: none !important;
  }
}

/* =========================================================
   USER PROFILE v3.1 - contact card: no clipping
   ========================================================= */
.user-profile-info-column .wo-contact-box {
  min-width: 0;
  overflow: visible !important;
}

.user-profile-info-column .wo-contact-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0;
}

.user-profile-info-column .wo-contact-link {
  min-width: 0;
  min-height: 72px;
  padding: 14px 0;
  align-items: flex-start;
  overflow: visible !important;
}

.user-profile-info-column .wo-contact-link::after {
  display: none !important;
}

.user-profile-info-column .wo-contact-link:not(:last-child) {
  border-bottom: 1px solid var(--brand-line);
}

.user-profile-info-column .wo-contact-icon {
  width: 34px;
  flex: 0 0 34px;
  padding-top: 2px;
}

.user-profile-info-column .wo-contact-body {
  width: 100%;
  min-width: 0;
  overflow: visible !important;
}

.user-profile-info-column .wo-contact-label {
  white-space: nowrap;
  overflow: visible;
}

.user-profile-info-column .wo-contact-value,
.user-profile-info-column .wo-contact-value a {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   USER PROFILE v3.2 - mobile space recovery + full-width gallery
   ========================================================= */
@media (max-width: 720px) {
  html.user-profile-cover-shell main.user-profile-shell {
    --user-profile-pad: 8px;
  }

  html.user-profile-cover-shell .user-profile-hero__inner {
    width: calc(100% - 20px);
  }

  .user-profile-nav,
  .user-profile-content {
    width: calc(100% - 12px);
  }

  .user-profile-content {
    padding-top: 14px;
    padding-bottom: 56px;
  }

  .user-profile-home-grid,
  .user-profile-main-column,
  .user-profile-info-column {
    gap: 12px;
  }

  .user-profile-content .wo-entry-section,
  .user-profile-content .wo-websites-box,
  .user-profile-content .wo-contact-box,
  .user-profile-content .wo-scope-box,
  .user-profile-content .wo-gallery-preview,
  .user-profile-content .wo-cwrap,
  .user-profile-subpage,
  .user-profile-info-card {
    border-radius: 8px;
  }

  .user-profile-content .wo-entry-section,
  .user-profile-content .wo-websites-box,
  .user-profile-content .wo-contact-box,
  .user-profile-content .wo-scope-box,
  .user-profile-content .wo-gallery-preview,
  .user-profile-info-card {
    padding: 14px;
  }

  .user-profile-subpage__head {
    padding: 18px 14px;
  }

  .user-profile-subpage__body {
    min-height: 0;
    padding: 8px;
  }

  /* The full gallery is one proper column on phones. */
  .user-profile-content .wo-gallery {
    width: 100%;
    margin: 0 !important;
  }

  .user-profile-content .wo-gallery-sizer,
  .user-profile-content .wo-gallery-item {
    width: 100% !important;
  }

  .user-profile-content .wo-gallery-item {
    float: none;
    padding: 0 !important;
    margin: 0 0 12px !important;
  }

  .user-profile-content .wo-gallery-link {
    margin: 0 !important;
    border-radius: 8px;
  }

  .user-profile-content .wo-gallery-img {
    width: 100%;
    height: auto;
  }

  .user-profile-content .wo-gallery-preview-layout {
    padding: 8px 0 0;
  }
}

@media (max-width: 480px) {
  html.user-profile-cover-shell .user-profile-hero__inner {
    width: calc(100% - 12px);
  }

  .user-profile-nav,
  .user-profile-content {
    width: calc(100% - 8px);
  }

  .user-profile-subpage__head {
    padding: 16px 12px;
  }

  .user-profile-subpage__body {
    padding: 4px;
  }

  .user-profile-content .wo-entry-section,
  .user-profile-content .wo-websites-box,
  .user-profile-content .wo-contact-box,
  .user-profile-content .wo-scope-box,
  .user-profile-content .wo-gallery-preview,
  .user-profile-info-card {
    padding: 12px;
  }
}


/* v4.16: globalny footer zachowuje ciemny wariant w Light, Dark i Auto. */
html.user-profile-cover-shell .wo-footer {
  --wo-footer-bg: #101216;
  --wo-footer-line: rgba(255,255,255,.15);
  --wo-footer-text: #f7f7f5;
  --wo-footer-muted: rgba(255,255,255,.62);
  background: var(--wo-footer-bg) !important;
  color: var(--wo-footer-text) !important;
}

/* =========================================================
   v4.54 - cover skalowany do szerokości strony
   Obraz zachowuje proporcje i nie jest powiększany do wysokości hero.
   ========================================================= */
html.user-profile-cover-shell .wo-board > .user-profile-cover-layer > img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}


/* ========================================================================== 
   v4.61 - jednoznaczny stan obserwowania
   ========================================================================== */
.user-profile-btn.eoTakeFollow {
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, opacity .16s ease;
}

.user-profile-btn.eoTakeFollow.is-following {
  border-color: var(--brand-accent);
  background: rgba(255, 159, 47, .16);
  color: var(--brand-accent) !important;
}

.user-profile-btn.eoTakeFollow.is-following:hover {
  border-color: var(--brand-accent-hover);
  background: rgba(255, 159, 47, .24);
  color: var(--brand-accent-hover) !important;
}

.user-profile-btn.eoTakeFollow.is-following i {
  color: currentColor !important;
}

.user-profile-btn.eoTakeFollow.is-loading {
  pointer-events: none;
  opacity: .58;
}

/* =========================================================
   USER PROFILE v4.63 - wspólna szerokość hero, statystyk i zakładek
   Statystyki są bezpośrednim dzieckiem hero, dzięki czemu ich szerokość
   liczona jest względem całego profilu, a nie węższej siatki treści.
   ========================================================= */
html.user-profile-cover-shell .user-profile-hero {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

html.user-profile-cover-shell .user-profile-hero__inner {
  flex: 0 0 auto;
  padding-bottom: clamp(22px, 3vh, 36px);
}

html.user-profile-cover-shell .user-profile-hero > .user-profile-stats,
html.user-profile-cover-shell .user-profile-nav {
  width: min(var(--user-profile-max), calc(100% - (2 * var(--user-profile-pad))));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

html.user-profile-cover-shell .user-profile-hero > .user-profile-stats {
  flex: 0 0 auto;
  margin-top: 0;
}

@media (max-width: 720px) {
  html.user-profile-cover-shell .user-profile-hero__inner {
    padding-bottom: 20px;
  }

  html.user-profile-cover-shell .user-profile-hero > .user-profile-stats,
  html.user-profile-cover-shell .user-profile-nav {
    width: calc(100% - 12px);
  }
}

@media (max-width: 480px) {
  html.user-profile-cover-shell .user-profile-hero > .user-profile-stats,
  html.user-profile-cover-shell .user-profile-nav {
    width: calc(100% - 8px);
  }
}
