/* ==========================================================================
   AZRA PROFILE v79 — calm, organized "Pop-Noir" profile
   Additive layer: restyles the existing .azp-* markup, removes nothing.
   Colors come only from --az-* tokens (dark + light follow the theme).
   One accent (yellow); no purple/pink/green fills. LOAD LAST.

   Structure
   hero card  : cover (short) → avatar ring + identity + actions → bio → meta chips
   stat bento : 5 tiles (3+2 on phones), reputation tile = soft yellow
   tabs       : segmented pill bar, active = dock-style solid pill
   panels     : 24px cards, quiet kicker, no header divider
   ========================================================================== */

html body .az-profile-page {
  --pf-r: var(--az-radius-lg, 24px);
  --pf-r-md: var(--az-radius-md, 16px);
  --pf-card: var(--az-surface, #0C0C0E);
  --pf-card-2: var(--az-surface-2, #16161A);
  --pf-line: var(--az-line, rgba(255,255,255,.09));
  --pf-line-2: var(--az-line-strong, rgba(255,255,255,.18));
  --pf-mut: var(--az-mut, #9A9DA8);
  --pf-text: var(--az-text, #F5F5F7);
  --pf-text-2: var(--az-text-2, #D5D6DC);
  --pf-accent: var(--az-primary, #FFD500);
  --pf-accent-soft: var(--az-primary-soft, rgba(255,213,0,.12));
  --pf-accent-line: var(--az-primary-line, rgba(255,213,0,.30));
  --pf-accent-text: var(--az-gold-text, #FFD500);
  max-width: 1120px;
  padding: 0 0 calc(32px + var(--az-safe-bottom, 0px));
  color: var(--pf-text);
  font-family: var(--az-font-ui, inherit);
}
html[lang="fa"] body .az-profile-page, html[dir="rtl"] body .az-profile-page { font-family: var(--az-font-fa, inherit); }

/* ------------------------------------------------------------------ hero (bento) */
html body .az-profile-page .azp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible;
  animation: none;
}
html body .az-profile-page .azp-main-tile {
  position: relative; min-width: 0; overflow: hidden;
  border: 1px solid var(--pf-line); border-radius: 32px; background: var(--pf-card);
  animation: azp79-in var(--az-dur-4, 520ms) var(--az-ease, ease) both;
}
html body .az-profile-page .azp-cover {
  height: 168px; margin: 10px 10px 0; border-radius: 24px; overflow: hidden;
  background: var(--pf-card-2) !important;
}
html body .az-profile-page .azp-cover.is-default::before {
  background: radial-gradient(ellipse at 88% 0%, var(--pf-accent-soft), transparent 58%),
              radial-gradient(ellipse at 0% 110%, var(--az-surface-3, rgba(255,255,255,.06)), transparent 55%) !important;
}
html body .az-profile-page .azp-cover > img { opacity: 1; }
html body .az-profile-page .azp-cover-shade { background: linear-gradient(0deg, rgba(0,0,0,.28), transparent 55%) !important; }
html body .az-profile-page .azp-cover-grid { opacity: .06 !important; }
html body .az-profile-page .azp-cover-code, html body .az-profile-page .azp-cover-caption { display: none !important; }
html body .az-profile-page .azp-cover-label {
  inset-block-start: 14px; inset-inline-start: 14px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--az-glass, rgba(10,10,12,.72)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--pf-line); color: var(--pf-text-2) !important; font-size: 9px; letter-spacing: .14em;
}
html body .az-profile-page .azp-cover-mark {
  width: 22px; height: 22px; border-radius: 50%; border: 0 !important; background: var(--pf-accent); color: var(--az-on-primary, #000) !important; font-size: 10px;
}

html body .az-profile-page .azp-identity-card { padding: 0 30px 28px; }
html body .az-profile-page .azp-identity-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 14px 22px; margin-top: -58px;
}
html body .az-profile-page .azp-avatar-frame {
  width: 128px; height: 128px; flex: none; padding: 0; border-radius: 38px;
  background: var(--pf-card) !important; border: 0 !important;
  box-shadow: 0 0 0 7px var(--pf-card) !important; position: relative;
}
html body .az-profile-page .azp-avatar-frame .avatar {
  width: 100%; height: 100%; border: 0 !important; border-radius: 38px !important; background: var(--pf-card-2) !important; font-size: 42px;
  outline: 2px solid var(--pf-accent); outline-offset: -2px;
}
html body .az-profile-page .azp-avatar-frame .avatar img { border-radius: 38px; }
html body .az-profile-page .azp-avatar-frame.is-online::after {
  inset-inline-end: 2px; bottom: 4px; width: 20px; height: 20px;
  border: 4px solid var(--pf-card) !important; background: var(--az-green, #22E06B) !important;
}
html body .az-profile-page .azp-identity-copy { padding: 62px 0 2px; align-self: end; }
html body .az-profile-page .azp-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--pf-mut) !important; font-size: 10px; letter-spacing: .1em;
}
html body .az-profile-page .azp-eyebrow span {
  padding: 2px 9px; border-radius: 999px; background: var(--pf-accent-soft); color: var(--pf-accent-text) !important; letter-spacing: .02em; font-weight: 800;
}
html body .az-profile-page .azp-name { margin: 0 0 3px; font: 800 clamp(26px, 3.4vw, 36px)/1.12 var(--az-font-display, inherit); letter-spacing: -.035em; }
html[dir="rtl"] body .az-profile-page .azp-name { letter-spacing: 0; }
html body .az-profile-page .azp-name .ico { color: var(--pf-accent-text) !important; width: 20px; height: 20px; }
html body .az-profile-page .azp-handle { color: var(--pf-mut) !important; font-size: 14px; }
html body .az-profile-page .azp-follow-tag { border: 0; background: var(--pf-card-2); border-radius: 999px; padding: 3px 10px; color: var(--pf-text-2) !important; font-size: 10.5px; font-weight: 700; }
html body .az-profile-page .azp-headline { margin: 10px 0 0; color: var(--pf-text) !important; font-size: 15px; font-weight: 700; line-height: 1.6; }

/* actions row sits under the identity, full width */
html body .az-profile-page .azp-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 0; justify-content: flex-start; }
html body .az-profile-page .azp-actions .btn {
  min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--pf-card-2); border: 1px solid var(--pf-line); color: var(--pf-text);
  font-weight: 800; font-size: 13px; transition: transform var(--az-dur-2, 200ms) var(--az-ease, ease), background var(--az-dur-2, 200ms), border-color var(--az-dur-2, 200ms);
}
html body .az-profile-page .azp-actions .btn:hover { border-color: var(--pf-line-2); transform: translateY(-1px); }
html body .az-profile-page .azp-actions .btn:active { transform: scale(.97); }
html body .az-profile-page .azp-actions .btn[data-act="follow"]:not(.following),
html body .az-profile-page .azp-actions .btn.btn-primary,
html body .az-profile-page .azp-actions .btn[data-act="editProfile"] { background: var(--pf-accent); border-color: var(--pf-accent); color: var(--az-on-primary, #000); }
html body .az-profile-page .azp-actions .btn[data-act="follow"]:not(.following):hover,
html body .az-profile-page .azp-actions .btn[data-act="editProfile"]:hover { background: var(--az-primary-hover, #FFE033); }
html body .az-profile-page .azp-actions .btn.following { background: transparent; border-color: var(--pf-line-2); color: var(--pf-text-2); }
html body .az-profile-page .azp-actions .azp-more,
html body .az-profile-page .azp-actions .azp-share { min-width: 42px; width: 42px; padding: 0; display: inline-grid; place-items: center; }
html body .az-profile-page .azp-actions .azp-career-link { margin-inline-start: auto; background: var(--az-dock-active-bg, #fff); border-color: transparent; color: var(--az-dock-active-fg, #000); }
html body .az-profile-page .azp-actions .azp-career-link:hover { background: var(--az-dock-active-bg, #fff); opacity: .9; }

html body .az-profile-page .azp-bio { max-width: 720px; margin: 20px 0 0; color: var(--pf-text-2) !important; font-size: 14.5px; line-height: 1.95; }
html body .az-profile-page .azp-meta-row { gap: 8px; margin-top: 18px; padding-top: 0; border-top: 0 !important; font-size: 12px; color: var(--pf-mut) !important; }
html body .az-profile-page .azp-meta-row > span {
  gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--pf-card-2); border: 1px solid var(--pf-line); font-weight: 700; color: var(--pf-text-2) !important;
}
html body .az-profile-page .azp-meta-row .ico { width: 14px; height: 14px; color: var(--pf-mut) !important; }
html body .az-profile-page .azp-meta-row .azp-online-meta, html body .az-profile-page .azp-meta-row .azp-online-meta .ico { color: var(--az-green, #22E06B) !important; }
html[data-theme="light"] body .az-profile-page .azp-meta-row .azp-online-meta, html[data-theme="light"] body .az-profile-page .azp-meta-row .azp-online-meta .ico { color: #138a43 !important; }
html body .az-profile-page .azp-meta-row .azp-available { background: var(--pf-accent-soft); border-color: var(--pf-accent-line); color: var(--pf-accent-text) !important; }
html body .az-profile-page .azp-meta-row .azp-available .ico { color: var(--pf-accent-text) !important; }
html body .az-profile-page .azp-meta-row .azp-verified-gh .ico { color: var(--pf-text-2) !important; }

/* ------------------------------------------------------- stat tiles (same family as the dashboard bento) */
html body .az-profile-page .azp-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1.25fr 1fr 1fr; gap: 14px;
  margin: 0; border: 0 !important; background: transparent !important; border-radius: 0; overflow: visible; min-height: 0;
}
html body .az-profile-page .azp-stat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-width: 0; min-height: 112px; padding: 18px 20px;
  border: 0 !important; border-radius: 28px; color: #000; overflow: hidden;
  transition: transform var(--az-dur-3, 320ms) var(--az-ease, ease);
}
html body .az-profile-page .azp-stat:hover { transform: translateY(-3px) rotate(-.4deg); }
html body .az-profile-page .azp-stat b { order: 2; font: 800 clamp(30px, 3.4vw, 42px)/1 var(--az-font-display, inherit); letter-spacing: -.035em; color: inherit; font-variant-numeric: tabular-nums; }
html body .az-profile-page .azp-stat small { order: 3; font-size: 13px; font-weight: 800; color: inherit !important; opacity: .72; white-space: normal; line-height: 1.3; }
html body .az-profile-page .azp-stat-icon {
  order: 1; position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.12); color: inherit !important; display: grid; place-items: center;
}
html body .az-profile-page .azp-stat-icon .ico { width: 16px; height: 16px; }
html body .az-profile-page .azp-stat.s4 { grid-column: 1 / -1; grid-row: 1; background: var(--az-primary, #FFD500) !important; }
html body .az-profile-page .azp-stat.s4 b { font-size: clamp(44px, 5vw, 62px); }
html body .az-profile-page .azp-stat.s4 b, html body .az-profile-page .azp-stat.s4 .azp-stat-icon { color: #000 !important; }
html body .az-profile-page .azp-stat.s0 { background: var(--az-green, #22E06B); }
html body .az-profile-page .azp-stat.s1 { background: var(--az-blue, #4C8DFF); }
html body .az-profile-page .azp-stat.s2 { background: var(--az-pink, #FF7AC6); }
html body .az-profile-page .azp-stat.s3 { background: var(--pf-card); border: 1px solid var(--pf-line-2) !important; color: var(--pf-text); }
html body .az-profile-page .azp-stat.s3 .azp-stat-icon { background: var(--az-surface-3, rgba(255,255,255,.08)); }
html body .az-profile-page .azp-stat.s3 small { color: var(--pf-mut) !important; opacity: 1; }
html body .az-profile-page .azp-stat.is-reputation .azp-stat-icon { background: rgba(0,0,0,.14); color: #000 !important; }

/* --------------------------------------------------------------- tabs */
html body .az-profile-page .azp-tabs {
  display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 18px 0 20px; padding: 5px;
  border: 1px solid var(--pf-line) !important; border-radius: 999px; background: var(--pf-card); overflow-x: auto; scrollbar-width: none;
}
html body .az-profile-page .azp-tab {
  min-height: 42px; padding: 0 20px; border-radius: 999px; gap: 8px; color: var(--pf-mut) !important; font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: background var(--az-dur-2, 200ms), color var(--az-dur-2, 200ms);
}
html body .az-profile-page .azp-tab:hover { background: var(--pf-card-2) !important; color: var(--pf-text) !important; }
html body .az-profile-page .azp-tab.active { background: var(--az-dock-active-bg, #fff) !important; color: var(--az-dock-active-fg, #000) !important; }
html body .az-profile-page .azp-tab.active::after { display: none !important; }

/* ------------------------------------------------------------ layout */
html body .az-profile-page .azp-overview-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
html body .az-profile-page .azp-main-column,
html body .az-profile-page .azp-side-column { gap: 18px; }
html body .az-profile-page .azp-side-column { position: sticky; top: 16px; }

/* panels */
html body .az-profile-page .azp-panel {
  border: 1px solid var(--pf-line) !important; border-radius: 28px !important; background: var(--pf-card) !important;
}
html body .az-profile-page .azp-panel-head { padding: 18px 20px 4px; border-bottom: 0 !important; }
html body .az-profile-page .azp-panel-head h2 { margin: 2px 0 0; font: 800 16.5px/1.3 var(--az-font-display, inherit); letter-spacing: -.01em; }
html[dir="rtl"] body .az-profile-page .azp-panel-head h2 { letter-spacing: 0; }
html body .az-profile-page .azp-section-kicker { color: var(--pf-mut) !important; font-size: 9.5px; letter-spacing: .14em; opacity: .85; }
html body .az-profile-page .azp-panel-head > .ico { color: var(--pf-mut) !important; }
html body .az-profile-page .azp-side-panel .azp-panel-head { padding: 16px 18px 2px; }
html body .az-profile-page .azp-side-panel .azp-panel-head .ico { color: var(--pf-mut) !important; }
html body .az-profile-page .azp-text-link {
  padding: 6px 12px; border-radius: 999px; background: var(--pf-card-2); color: var(--pf-text-2) !important; font-size: 11.5px; font-weight: 800;
}
html body .az-profile-page .azp-text-link:hover { background: var(--pf-accent); color: var(--az-on-primary, #000) !important; }
html body .az-profile-page .azp-latest-head { padding: 2px 4px 12px; }

/* README */
html body .az-profile-page .azp-readme-content { padding: 14px 20px 22px; font-size: 14px; line-height: 1.95; color: var(--pf-text-2) !important; }
html body .az-profile-page .azp-readme-content pre { background: var(--az-code-bg, #0A0A0C) !important; border-radius: var(--az-radius-sm, 12px); border-color: var(--pf-line); }
html body .az-profile-page .azp-readme-empty { margin: 8px 18px 18px; padding: 18px; border: 1px dashed var(--pf-line-2); border-radius: var(--pf-r-md); }
html body .az-profile-page .azp-empty-glyph { border-radius: 14px; border-color: var(--pf-accent-line); color: var(--pf-accent-text) !important; background: var(--pf-accent-soft); }

/* featured projects */
html body .az-profile-page .azp-featured-content { padding: 12px 16px 18px; }
html body .az-profile-page .azp-project-skeleton {
  border-radius: var(--pf-r-md); border-color: var(--pf-line);
  background: linear-gradient(110deg, var(--az-skeleton-a), var(--az-skeleton-b), var(--az-skeleton-a)); background-size: 200% 100%;
}

/* skills → pills (index number kept, dimmed) */
html body .az-profile-page .azp-skills { gap: 8px; padding: 12px 18px 18px; }
html body .az-profile-page .azp-skill {
  min-height: 34px; padding: 4px 13px; border-radius: 999px; border: 1px solid var(--pf-line); background: var(--pf-card-2); color: var(--pf-text-2); font-size: 12.5px; font-weight: 700;
}
html body .az-profile-page .azp-skill:hover { background: var(--pf-accent-soft); border-color: var(--pf-accent-line); color: var(--pf-accent-text); }
html body .az-profile-page .azp-skill small { opacity: .45; font-size: 9px; }
html body .az-profile-page .azp-collab-note {
  margin: 0 18px 18px; padding: 11px 14px; border-radius: var(--pf-r-md); border: 1px solid var(--pf-accent-line); background: var(--pf-accent-soft); color: var(--pf-accent-text) !important; font-size: 12px;
}

/* GitHub card: neutral, no purple wash */
html body .az-profile-page .azp-github-card { background: var(--pf-card) !important; }
html body .az-profile-page .azp-icon-link { border-radius: 50%; background: var(--pf-card-2); border-color: var(--pf-line); }
html body .az-profile-page .azp-github-user { padding: 14px 18px 8px; }
html body .az-profile-page .azp-github-avatar { border-radius: 14px; background: var(--pf-card-2) !important; border-color: var(--pf-line); }
html body .az-profile-page .azp-gh-check { background: var(--pf-accent-soft); color: var(--pf-accent-text); }
html body .az-profile-page .azp-github-metrics { margin: 8px 18px 14px; gap: 8px; border: 0 !important; }
html body .az-profile-page .azp-github-metrics > div {
  border: 1px solid var(--pf-line) !important; border-radius: 14px; background: var(--pf-card-2); padding: 11px 6px;
}
html body .az-profile-page .azp-github-open {
  margin: 0 18px 18px; padding: 12px 16px; border: 1px solid var(--pf-line) !important; border-radius: 999px; background: var(--pf-card-2); color: var(--pf-text-2) !important; font-size: 12px; font-weight: 800;
}
html body .az-profile-page .azp-github-open:hover { background: var(--pf-accent); color: var(--az-on-primary, #000) !important; border-color: var(--pf-accent) !important; }

/* professional links → row cards */
html body .az-profile-page .azp-profile-links { display: grid; gap: 8px; padding: 12px 16px 16px; }
html body .az-profile-page .azp-profile-links > a {
  padding: 12px 14px; border: 1px solid var(--pf-line) !important; border-radius: var(--pf-r-md); background: var(--pf-card-2); gap: 12px;
  transition: border-color var(--az-dur-2, 200ms), transform var(--az-dur-2, 200ms) var(--az-ease, ease);
}
html body .az-profile-page .azp-profile-links > a:hover { border-color: var(--pf-accent-line) !important; transform: translateY(-1px); }
html body .az-profile-page .azp-profile-links > a small { display: block; color: var(--pf-mut); font-size: 10.5px; }
html body .az-profile-page .azp-profile-links > a b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* badges */
html body .az-profile-page .azp-badge-count { border: 0; border-radius: 999px; background: var(--pf-card-2); color: var(--pf-text-2) !important; }
html body .az-profile-page .azp-badges { padding: 12px 18px 18px; gap: 8px; }

/* tab pages */
html body .az-profile-page .azp-tab-intro { padding: 0 4px 14px; border-bottom: 0 !important; margin-bottom: 4px; }
html body .az-profile-page .azp-tab-intro h2 { font: 800 21px/1.3 var(--az-font-display, inherit); }
html body .az-profile-page .azp-tab-intro p { color: var(--pf-mut); font-size: 13px; }
html body .az-profile-page .azp-activity-card { border-radius: var(--pf-r); padding: 8px 20px; }
html body .az-profile-page .azp-filter-chips { margin-bottom: 14px; }
html body .az-profile-page .azp-filter-chips .chip { border-radius: 999px; }
html body .az-profile-page .azp-filter-chips .chip.active { background: var(--az-dock-active-bg, #fff); color: var(--az-dock-active-fg, #000); border-color: transparent; }

/* ---- profile completeness (owner only) ---- */
html body .az-profile-page .azp-complete {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 16px;
  margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--pf-line); border-radius: var(--pf-r); background: var(--pf-card);
}
html body .az-profile-page .azp-complete-ring {
  --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--pf-accent) calc(var(--p) * 1%), var(--az-surface-3, rgba(255,255,255,.08)) 0);
  position: relative; font: 800 13px/1 var(--az-font-display, inherit); color: var(--pf-text);
}
html body .az-profile-page .azp-complete-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--pf-card); }
html body .az-profile-page .azp-complete-ring span { position: relative; }
html body .az-profile-page .azp-complete-copy b { display: block; font-size: 14px; font-weight: 800; }
html body .az-profile-page .azp-complete-copy small { display: block; margin-top: 2px; color: var(--pf-mut); font-size: 12px; line-height: 1.5; }
html body .az-profile-page .azp-complete-todo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
html body .az-profile-page .azp-complete-todo button {
  min-height: 32px; padding: 0 13px; border-radius: 999px; border: 1px dashed var(--pf-line-2); background: transparent; color: var(--pf-text-2); font: 700 12px var(--az-font-ui, inherit); cursor: pointer;
  transition: background var(--az-dur-2, 200ms), border-color var(--az-dur-2, 200ms);
}
html body .az-profile-page .azp-complete-todo button:hover { background: var(--pf-accent-soft); border-color: var(--pf-accent-line); color: var(--pf-accent-text); }
html body .az-profile-page .azp-complete-todo button::before { content: "+"; margin-inline-end: 6px; font-weight: 800; }

/* entrance (respects reduced motion below) */
@keyframes azp79-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html body .az-profile-page .azp-hero, html body .az-profile-page .azp-stat, html body .az-profile-page .azp-panel, html body .az-profile-page .azp-complete {
  animation: azp79-in var(--az-dur-4, 520ms) var(--az-ease, ease) both;
}
html body .az-profile-page .azp-stat:nth-child(2) { animation-delay: 40ms; }
html body .az-profile-page .azp-stat:nth-child(3) { animation-delay: 80ms; }
html body .az-profile-page .azp-stat:nth-child(4) { animation-delay: 120ms; }
html body .az-profile-page .azp-stat:nth-child(5) { animation-delay: 160ms; }

/* ------------------------------------------- featured / project cards (reference: solid colour cards) */
html body .az-profile-page .azp-project-grid { gap: 12px; }
html body .az-profile-page .azp-project-grid .pcard {
  border: 0 !important; border-radius: 26px !important; padding: 10px; color: #000; background: var(--az-green, #22E06B) !important; box-shadow: none !important;
  transition: transform var(--az-dur-3, 320ms) var(--az-ease, ease);
}
html body .az-profile-page .azp-project-grid .pcard:nth-child(3n+2) { background: var(--az-blue, #4C8DFF) !important; }
html body .az-profile-page .azp-project-grid .pcard:nth-child(3n) { background: var(--az-primary, #FFD500) !important; }
html body .az-profile-page .azp-project-grid .pcard:hover { transform: translateY(-3px); }
html body .az-profile-page .azp-project-grid .pcard .pc-cover { border-radius: 18px; overflow: hidden; background: rgba(0,0,0,.14); min-height: 110px; }
html body .az-profile-page .azp-project-grid .pcard .pc-cover img { border-radius: 18px; }
html body .az-profile-page .azp-project-grid .pcard .pc-body { padding: 14px 8px 8px; color: #000; }
html body .az-profile-page .azp-project-grid .pcard h3 { color: #000 !important; font: 800 18px/1.25 var(--az-font-display, inherit); }
html body .az-profile-page .azp-project-grid .pcard p, html body .az-profile-page .azp-project-grid .pcard .muted, html body .az-profile-page .azp-project-grid .pcard .small { color: rgba(0,0,0,.72) !important; }
html body .az-profile-page .azp-project-grid .pcard .pill, html body .az-profile-page .azp-project-grid .pcard .chip, html body .az-profile-page .azp-project-grid .pcard .tag {
  background: rgba(0,0,0,.12) !important; color: #000 !important; border-color: transparent !important;
}
html body .az-profile-page .azp-project-grid .pcard a, html body .az-profile-page .azp-project-grid .pcard .ico { color: #000; }
/* projects tab uses the same card family */
html body .az-profile-page .az-profile-body[data-tab="projects"] .pgrid .pcard { border-radius: 26px !important; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  html body .az-profile-page .azp-hero, html body .az-profile-page .azp-overview-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  html body .az-profile-page .azp-identity-card { padding-inline: 24px; }
}
@media (max-width: 980px) {
  html body .az-profile-page .azp-hero { grid-template-columns: minmax(0, 1fr); }
  html body .az-profile-page .azp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; }
  html body .az-profile-page .azp-stat { min-height: 120px; }
  html body .az-profile-page .azp-stat.s4 { grid-column: 1 / 3; grid-row: 1 / 3; }
  html body .az-profile-page .azp-stat.s0 { grid-column: 3; grid-row: 1; }
  html body .az-profile-page .azp-stat.s1 { grid-column: 4; grid-row: 1; }
  html body .az-profile-page .azp-stat.s2 { grid-column: 3; grid-row: 2; }
  html body .az-profile-page .azp-stat.s3 { grid-column: 4; grid-row: 2; }
  html body .az-profile-page .azp-overview-grid { grid-template-columns: minmax(0, 1fr); }
  html body .az-profile-page .azp-side-column { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  html body .az-profile-page .azp-side-column { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  html body .az-profile-page { padding: 0 12px calc(var(--az-dock-h, 68px) + 28px + var(--az-safe-bottom, 0px)); }
  html body .az-profile-page .azp-hero { gap: 10px; }
  html body .az-profile-page .azp-main-tile { border-radius: 28px; }
  html body .az-profile-page .azp-cover { height: 118px; margin: 8px 8px 0; border-radius: 22px; }
  html body .az-profile-page .azp-identity-card { padding: 0 16px 20px; }
  html body .az-profile-page .azp-identity-top { grid-template-columns: 88px minmax(0, 1fr); gap: 10px 14px; margin-top: -44px; }
  html body .az-profile-page .azp-avatar-frame { width: 88px; height: 88px; border-radius: 28px; box-shadow: 0 0 0 5px var(--pf-card) !important; }
  html body .az-profile-page .azp-avatar-frame .avatar, html body .az-profile-page .azp-avatar-frame .avatar img { border-radius: 28px !important; font-size: 30px; }
  html body .az-profile-page .azp-avatar-frame.is-online::after { width: 16px; height: 16px; border-width: 3px !important; inset-inline-end: 0; bottom: 2px; }
  html body .az-profile-page .azp-identity-copy { padding-top: 48px; }
  html body .az-profile-page .azp-name { font-size: clamp(21px, 6.2vw, 26px); }
  html body .az-profile-page .azp-handle { font-size: 13px; }
  html body .az-profile-page .azp-headline { font-size: 14px; margin-top: 8px; }
  html body .az-profile-page .azp-actions { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; width: 100%; }
  html body .az-profile-page .azp-actions .btn { width: 100%; min-height: 44px; font-size: 12.5px; padding: 0 10px; }
  html body .az-profile-page .azp-actions .azp-more, html body .az-profile-page .azp-actions .azp-share { width: 44px; min-width: 44px; }
  html body .az-profile-page .azp-actions .azp-career-link { grid-column: 1 / -1; margin: 0; order: 9; }
  html body .az-profile-page .azp-bio { font-size: 14px; margin-top: 16px; }
  html body .az-profile-page .azp-meta-row { gap: 6px; margin-top: 14px; }
  html body .az-profile-page .azp-meta-row > span { padding: 6px 11px; font-size: 11.5px; }
  html body .az-profile-page .azp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html body .az-profile-page .azp-stat { min-height: 104px; padding: 14px 16px; border-radius: 24px; }
  html body .az-profile-page .azp-stat.s4 { grid-column: 1 / -1; grid-row: auto; min-height: 120px; order: -1; }
  html body .az-profile-page .azp-stat.s0, html body .az-profile-page .azp-stat.s1, html body .az-profile-page .azp-stat.s2, html body .az-profile-page .azp-stat.s3 { grid-column: auto; grid-row: auto; }
  html body .az-profile-page .azp-stat b { font-size: 30px; }
  html body .az-profile-page .azp-stat.s4 b { font-size: 44px; }
  html body .az-profile-page .azp-tabs { width: 100%; margin: 14px 0 14px; }
  html body .az-profile-page .azp-tab { flex: 1 0 auto; min-height: 42px; padding: 0 16px; font-size: 12.5px; }
  html body .az-profile-page .azp-main-column, html body .az-profile-page .azp-side-column { gap: 12px; }
  html body .az-profile-page .azp-panel { border-radius: 24px !important; }
  html body .az-profile-page .azp-panel-head { padding: 16px 16px 2px; }
  html body .az-profile-page .azp-readme-content { padding: 12px 16px 18px; font-size: 14px; }
  html body .az-profile-page .azp-featured-content { padding: 10px 12px 14px; }
  html body .az-profile-page .azp-project-grid { grid-template-columns: minmax(0, 1fr); }
  html body .az-profile-page .azp-complete { padding: 14px 16px; border-radius: 24px; gap: 4px 12px; }
  html body .az-profile-page .azp-complete-ring { width: 46px; height: 46px; font-size: 12px; }
}
@media (max-width: 380px) {
  html body .az-profile-page { padding-inline: 8px; }
  html body .az-profile-page .azp-identity-top { grid-template-columns: 76px minmax(0, 1fr); }
  html body .az-profile-page .azp-avatar-frame { width: 76px; height: 76px; }
  html body .az-profile-page .azp-identity-copy { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .az-profile-page *, html body .az-profile-page *::before, html body .az-profile-page *::after { animation: none !important; transition: none !important; }
}

/* ---- v79 fixes: alignment inside tiles / avatar glyph / project card body ---- */
html body .az-profile-page .azp-stat { align-items: flex-start; text-align: start; }
html body .az-profile-page .azp-stat.s4 { justify-content: flex-end; }
html body .az-profile-page .azp-avatar-frame .avatar { display: grid; place-items: center; line-height: 1; text-align: center; overflow: hidden; }
html body .az-profile-page .azp-avatar-frame .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .az-profile-page .azp-project-grid .pcard { display: flex; flex-direction: column; text-align: start; }
html body .az-profile-page .azp-project-grid .pcard .pc-cover { flex: 0 0 auto; height: 120px; min-height: 0; }
html body .az-profile-page .azp-project-grid .pcard .pc-cover img { width: 100%; height: 100%; object-fit: cover; }
html body .az-profile-page .azp-project-grid .pcard .pc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1 1 auto; }
html body .az-profile-page .azp-project-grid .pcard .pc-body > * { margin: 0; max-width: 100%; }
html body .az-profile-page .azp-project-grid .pcard .pc-body .row, html body .az-profile-page .azp-project-grid .pcard .pc-body .chips { justify-content: flex-start; }
html body .az-profile-page .azp-project-grid .pcard .row.sp-between { width: 100%; justify-content: space-between; margin-top: auto; }
html body .az-profile-page .azp-project-grid .pcard .pc-cover { background: rgba(0,0,0,.14) !important; }
