/* ════════════════════════════════════════════════════════════════════════════════════════════════
   VOLURR — PROFILE ULTRA 2 (owner brief 2026-09-25: «ULTRA UI UX · رقم واحد في العالم»)

   ONE DESIGN SYSTEM FOR THE ACCOUNT SURFACES: #v-profile, #v-settings (its own layout lives in
   settings-ultra.css and reads these tokens) and the public passport, which renders in the shared
   modal outside both views.

   THE RULES THIS FILE KEEPS, AND WHY.
     · HIERARCHY BEFORE DECORATION. One identity header, then a main column and a side column. Cards
       are quiet (a hairline and a surface); the header, the numbers and the calendar carry the eye.
     · ONE ACCENT. Crimson is the brand and the interactive colour (primary buttons, focus, the
       calendar's intensity, the progress fill). Gold means an earned CREDENTIAL (level, a valid
       certificate, a gold-tier badge) and nothing else. Green and red are NOT used for buttons,
       links or decoration (PROJECT_LAWS art. 3); a verified tick uses the separate success ink.
     · MEASURED CONTRAST. Every text token below was measured against the surface it sits on, in
       both themes (≥ 4.5:1 for text, ≥ 3:1 for control boundaries) — the values and the reasons are
       kept beside the tokens, because a colour chosen by eye is the one that quietly fails AA.
     · TABULAR, LTR FIGURES. Every number is `tabular-nums` and every figure run is dir="ltr" in the
       markup, so a level or an XP total never shuffles sideways and never mirrors in Arabic/Kurdish.
     · LOGICAL PROPERTIES ONLY. Arabic and Kurdish mirror with no [dir] override except the places
       that must NOT mirror (the QR, the calendar's time axis, figure runs, the journey markers).
     · TOUCH AND FOCUS. Every control is ≥ 44 px on a coarse pointer; one focus ring for the whole
       surface; motion respects `prefers-reduced-motion`.
     · THE MONOSPACE STACK keeps two Arabic-capable faces before the generic (Typography Phase 1B):
       a Latin-only mono draws 0 of 13 Sorani and 0 of 16 Arabic letters, so a mixed run fell to
       whatever the operating system chose.
   ════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────────────────────────────────── */
#v-profile,
#v-settings,
.pubpass {
  --pu-page: var(--bg);
  --pu-surface: var(--card);
  --pu-raise: var(--card2);
  --pu-well: color-mix(in srgb, var(--card2) 70%, var(--bg) 30%);
  --pu-line: var(--line);
  --pu-line-strong: color-mix(in srgb, var(--line) 62%, var(--txt) 38%);   /* 3.1:1 on --card: a control boundary */

  --pu-txt: var(--txt);
  --pu-txt2: var(--txt2);
  --pu-muted: #8a93a9;                 /* 5.3:1 on #0f1422, 4.9:1 on #141a2a — the product's #7a839a is 4.4 on the raised surface */

  --pu-red: var(--accent);             /* fills, rules, focus — never body text */
  --pu-red-txt: #ef5350;               /* 5.27:1 on --card */
  --pu-red-fill: #c62828;              /* white on it: 5.62:1 */
  --pu-red-wash: rgba(226, 59, 59, .12);
  --pu-gold: #c9a227;                  /* 6.35:1 on --card */
  --pu-gold-ink: #c9a227;
  --pu-gold-bg: rgba(201, 162, 39, .12);
  --pu-gold-line: rgba(201, 162, 39, .34);
  --pu-ok: #1eb37f;                    /* the verified tick's ink — not the market's --up */
  --pu-ok-bg: rgba(30, 179, 127, .13);
  --pu-warn: #d38d33;                  /* 6.1:1 on --card */
  --pu-warn-bg: rgba(211, 141, 51, .13);

  --pu-cover-1: rgba(226, 59, 59, .42);
  --pu-cover-2: rgba(201, 162, 39, .16);
  --pu-cover-base: linear-gradient(180deg, #16203a 0%, #0f1422 100%);
  --pu-cover-grid: rgba(255, 255, 255, .045);
  --pu-glass: rgba(8, 12, 22, .5);
  --pu-glass-line: rgba(255, 255, 255, .16);
  --pu-glass-txt: #eef2fa;

  --pu-heat-0: #1a2133;
  --pu-heat-1: rgba(226, 59, 59, .32);
  --pu-heat-2: rgba(226, 59, 59, .52);
  --pu-heat-3: rgba(226, 59, 59, .76);
  --pu-heat-4: #ef4b4b;

  --pu-track: #253049;                /* the empty part of a ring, a bar or a rail — 1.6:1 on --card, visibly THERE */
  --pu-sh-1: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 10px 30px -22px rgba(0, 0, 0, .75);
  --pu-sh-2: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --pu-r: 16px;
  --pu-r-sm: 11px;
  --pu-gap: 20px;
  --pu-ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="light"] #v-profile,
html[data-theme="light"] #v-settings,
html[data-theme="light"] .pubpass {
  --pu-well: #f1f3f7;
  --pu-line-strong: #c3c8d3;           /* 3.0:1 on white */
  --pu-muted: #5f6577;                 /* 5.9:1 on white, 5.4:1 on #f3f5f8 */
  --pu-red-txt: #c62828;
  --pu-red-fill: #c62828;
  --pu-red-wash: rgba(214, 47, 47, .08);
  --pu-gold: #8a6d0f;                  /* the dark-mode gold fails on white; this is 5.2:1 */
  --pu-gold-ink: #7d620d;              /* 5.05:1 on a 10% gold wash over white */
  --pu-gold-bg: rgba(138, 109, 15, .10);
  --pu-gold-line: rgba(138, 109, 15, .30);
  --pu-ok: #0f7a58;
  --pu-ok-bg: rgba(15, 122, 88, .10);
  --pu-warn: #8a5210;
  --pu-warn-bg: rgba(138, 82, 16, .10);

  --pu-cover-1: rgba(214, 47, 47, .20);
  --pu-cover-2: rgba(201, 162, 39, .14);
  --pu-cover-base: linear-gradient(180deg, #fbf3f3 0%, #ffffff 100%);
  --pu-cover-grid: rgba(20, 22, 28, .05);
  --pu-glass: rgba(255, 255, 255, .78);
  --pu-glass-line: rgba(20, 22, 28, .12);
  --pu-glass-txt: #14161c;

  --pu-heat-0: #eceef3;
  --pu-heat-1: rgba(214, 47, 47, .24);
  --pu-heat-2: rgba(214, 47, 47, .44);
  --pu-heat-3: rgba(214, 47, 47, .68);
  --pu-heat-4: #c62828;

  --pu-track: #dde1ea;
  --pu-sh-1: 0 1px 2px rgba(40, 55, 90, .06), 0 10px 28px -20px rgba(40, 55, 90, .28);
  --pu-sh-2: 0 24px 60px -24px rgba(40, 55, 90, .35);
}

/* ── SHELL ───────────────────────────────────────────────────────────────────────────────────── */
/* NOT CAPPED: the board fills the screen, as the earlier review settled (measured then: a 1660px cap left
   260px of margin at 1920). One gutter, --pu-gap, between every card. */
.pu-wrap {
  max-width: none;
  margin-inline: auto;
  padding: clamp(12px, 2vw, 26px) clamp(12px, 2.4vw, 32px) 56px;
  display: flex;
  flex-direction: column;
  gap: var(--pu-gap);
  color: var(--pu-txt);
}

.pu-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#v-profile .pu-n,
#v-profile [dir="ltr"],
.pubpass [dir="ltr"],
.pu-mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pu-mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, 'Vazirmatn', 'IBM Plex Sans Arabic', monospace;
  letter-spacing: .02em;
}

/* ONE FOCUS RING for every control on these surfaces — keyboard only, 2px crimson with an offset
   that stays visible on the cover glass and on a crimson button alike. */
#v-profile :is(button, a, [tabindex]):focus-visible,
#v-settings :is(button, a, input, select, textarea, [tabindex]):focus-visible,
.pubpass :is(button, a):focus-visible,
.pu-dr :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--pu-red);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────────────────────────── */
.pb-btn,
.pu-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--pu-r-sm, 11px);
  border: 1px solid var(--pu-line-strong, var(--line));
  background: var(--pu-raise, var(--card2));
  color: var(--pu-txt, var(--txt));
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s var(--pu-ease, ease), border-color .15s var(--pu-ease, ease), color .15s var(--pu-ease, ease);
}

.pb-btn svg,
.pu-btn svg { flex: 0 0 auto; }

.pb-btn:hover,
.pu-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--card2));
}

.pb-btn:active,
.pu-btn:active { background: color-mix(in srgb, var(--accent) 13%, var(--card2)); }

.pb-btn--pri {
  background: var(--pu-red-fill, #c62828);
  border-color: var(--pu-red-fill, #c62828);
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(226, 59, 59, .7);
}

.pb-btn--pri:hover {
  background: color-mix(in srgb, #c62828 88%, #fff 12%);
  border-color: color-mix(in srgb, #c62828 88%, #fff 12%);
  color: #fff;
}

.pb-btn--pri:active { background: color-mix(in srgb, #c62828 86%, #000 14%); }

.pb-btn--line,
.pu-btn--ghost { background: transparent; }

.pb-btn--quiet { color: var(--pu-txt2, var(--txt2)); font-weight: 600; }

.pb-btn:disabled,
.pu-btn:disabled { opacity: .45; cursor: not-allowed; }

/* a link-shaped button — used where the action is a door inside a sentence */
.pu-v-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--pu-red-txt);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--pu-red-txt) 40%, transparent);
  text-underline-offset: 3px;
}

.pu-v-link:hover { text-decoration-color: currentColor; }

.pu-cp {
  appearance: none;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  margin-inline-start: 6px;
  vertical-align: -7px;
  border: 1px solid var(--pu-line);
  border-radius: 8px;
  background: transparent;
  color: var(--pu-muted);
  cursor: pointer;
}

.pu-cp:hover { color: var(--pu-txt); border-color: var(--pu-line-strong); }

/* ── THE HEADER ──────────────────────────────────────────────────────────────────────────────── */
.pu-v-hero {
  position: relative;
  border: 1px solid var(--pu-line);
  border-radius: 22px;
  background: var(--pu-surface);
  box-shadow: var(--pu-sh-1);
  overflow: hidden;
}

.pu-v-cover {
  position: relative;
  height: 150px;
  background:
    radial-gradient(900px 260px at 8% -30%, var(--pu-cover-1), transparent 62%),
    radial-gradient(760px 240px at 92% -70%, var(--pu-cover-2), transparent 64%),
    var(--pu-cover-base);
  border-bottom: 1px solid var(--pu-line);
}

.pu-v-cover::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pu-red), color-mix(in srgb, var(--pu-red) 30%, transparent) 70%, transparent);
}

html[dir="rtl"] .pu-v-cover::after { background: linear-gradient(270deg, var(--pu-red), color-mix(in srgb, var(--pu-red) 30%, transparent) 70%, transparent); }

.pu-v-cover-g {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pu-cover-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pu-cover-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
}

/* the owner's three shell controls — ONE segmented object on the cover, as the earlier review settled
   («three pills, three borders and two gaps» became one control): one border and one radius on the
   cluster, the segments borderless inside it with a hairline between them, each at least 40px wide.
   Glass, so it reads on any cover in either theme. */
.pb-head-c {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: flex;
  border: 1px solid var(--pu-glass-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pu-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pb-hc {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pu-glass-txt);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
}

.pb-hc + .pb-hc { border-inline-start: 1px solid var(--pu-glass-line); }
.pb-hc:hover { background: color-mix(in srgb, var(--pu-red) 16%, transparent); }

.pu-v-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 26px;
  padding: 0 28px 24px;
  margin-top: -58px;
}

/* the person: photo or monogram, on a ring of the card's own colour so it sits ON the cover edge */
.pb-avw {
  position: relative;
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 5px;
  background: var(--pu-surface);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
}

.pb-av {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(140deg, #2a1418, #1a2133);
  color: #fff;
  border: 1px solid var(--pu-line);
}

html[data-theme="light"] .pb-av { background: linear-gradient(140deg, #fbe4e4, #eef0f6); color: #7c1d1d; }

.pb-av--init {
  font-size: 40px;
  font-weight: 850;
  letter-spacing: .02em;
}

/* §12 · THE ANALYST EVIDENCE RING — one input (the server's maturity verdict), five looks.
   `none` draws nothing at all: a new customer has not failed at analysis, they have not started. */
.pb-avw::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  pointer-events: none;
}

.pb-avw[data-ev="unrated"]::after { border-color: color-mix(in srgb, var(--pu-muted) 45%, transparent); border-style: dashed; }
.pb-avw[data-ev="emerging"]::after { border-color: var(--pu-txt2); }
.pb-avw[data-ev="established"]::after { border-color: var(--pu-ok); }
.pb-avw[data-ev="proven"]::after { border-color: var(--pu-gold); box-shadow: 0 0 0 3px var(--pu-gold-bg); }

.pb-avw-b {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--pu-surface);
  border: 1px solid var(--pu-line-strong);
  color: var(--pu-txt2);
}

.pb-avw[data-ev="established"] .pb-avw-b { color: var(--pu-ok); border-color: color-mix(in srgb, var(--pu-ok) 50%, transparent); }
.pb-avw[data-ev="proven"] .pb-avw-b { color: var(--pu-gold-ink); border-color: var(--pu-gold-line); background: color-mix(in srgb, var(--pu-gold) 10%, var(--pu-surface)); }

.pb-id-b {
  min-width: 0;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-id-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.pb-name {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 31px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}

html[lang="ar"] .pb-name,
html[lang="ku"] .pb-name { letter-spacing: 0; }

.pb-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pu-txt2);
  background: var(--pu-raise);
  border: 1px solid var(--pu-line);
}

.pb-id-chip.is-ok { color: var(--pu-ok); background: var(--pu-ok-bg); border-color: color-mix(in srgb, var(--pu-ok) 35%, transparent); }
.pb-id-chip.is-gold { color: var(--pu-gold-ink); background: var(--pu-gold-bg); border-color: var(--pu-gold-line); }
.pb-id-chip b { font-weight: 800; }

.pb-plan {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pu-txt2);
  border: 1px solid var(--pu-line-strong);
}

html[lang="ar"] .pb-plan,
html[lang="ku"] .pb-plan { letter-spacing: 0; text-transform: none; font-size: 12px; }

.pb-plan.is-paid { color: var(--pu-gold-ink); border-color: var(--pu-gold-line); background: var(--pu-gold-bg); }

.pb-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--pu-txt2);
  font-size: 14px;
}

.pu-handle { font-weight: 650; color: var(--pu-txt2); }

.pb-id-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pu-line-strong);
}

.pu-v-bio {
  margin: 2px 0 0;
  max-width: 76ch;
  color: var(--pu-txt2);
  font-size: 14.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pu-v-bio.is-empty { font-size: 13.5px; }

.pu-v-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 8px 0 0;
}

.pu-v-meta > div { min-width: 0; }

.pu-v-meta dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--pu-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 3px;
}

html[lang="ar"] .pu-v-meta dt,
html[lang="ku"] .pu-v-meta dt { text-transform: none; letter-spacing: 0; font-size: 12px; }

.pu-v-meta dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--pu-txt);
  overflow-wrap: anywhere;
}

.pu-v-acts {
  padding-top: 70px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 10px;
  max-width: 380px;
}

/* ── THE NUMBERS STRIP ───────────────────────────────────────────────────────────────────────── */
.pu-v-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* four facts — the strip's count and its columns agree */
  margin: 0;
  border-top: 1px solid var(--pu-line);
  background: color-mix(in srgb, var(--pu-raise) 55%, var(--pu-surface));
}

.pu-v-stat {
  min-width: 0;
  padding: 16px 20px 18px;
  border-inline-start: 1px solid var(--pu-line);
}

.pu-v-stat:first-child { border-inline-start: 0; }

.pu-v-stat dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pu-muted);
  margin: 0 0 8px;
}

.pu-v-stat-i { display: inline-grid; color: var(--pu-red-txt); }
.pu-v-stat-i svg { width: 16px; height: 16px; }

.pu-v-stat dd { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.pu-v-stat-v {
  font-size: 23px;
  font-weight: 850;
  line-height: 1.1;
  color: var(--pu-txt);
  letter-spacing: -.01em;
}

.pu-v-stat-s {
  font-size: 12px;
  color: var(--pu-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ── THE GRID ────────────────────────────────────────────────────────────────────────────────── */
.pu-v-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 392px);
  gap: var(--pu-gap);
  align-items: start;
}

.pu-v-main,
.pu-v-side {
  display: flex;
  flex-direction: column;
  gap: var(--pu-gap);
  min-width: 0;
}

.pu-v-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pu-gap);
  align-items: stretch;
}

/* ── A PANEL ─────────────────────────────────────────────────────────────────────────────────── */
.pb-p {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-r);
  background: var(--pu-surface);
  box-shadow: var(--pu-sh-1);
}

.pb-p-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.pb-p-h h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--pu-txt);
}

.pb-i {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--pu-muted);
  cursor: help;
}

.pb-i:hover { color: var(--pu-txt); background: var(--pu-raise); }

.pb-p-b {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pb-p-f {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.pb-t-k,
.pb-al-k {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pu-muted);
}

html[lang="ar"] :is(.pb-t-k, .pb-al-k),
html[lang="ku"] :is(.pb-t-k, .pb-al-k) { letter-spacing: 0; text-transform: none; font-size: 12px; }

.pb-t-s {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--pu-muted);
}

.pb-t-s--wrap { overflow-wrap: anywhere; }
.pb-t-s b { color: var(--pu-txt2); font-weight: 750; }

/* ── THE PROGRESS CARD ───────────────────────────────────────────────────────────────────────── */
.pb-pr .pb-pr-eye {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pu-muted);
}

html[lang="ar"] .pb-pr .pb-pr-eye,
html[lang="ku"] .pb-pr .pb-pr-eye { letter-spacing: 0; text-transform: none; font-size: 13px; }

.pb-pr-m {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 26px;
  align-items: center;
}

.pb-pr-l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.pb-pr-name {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
  color: var(--pu-txt);
}

.pb-pr-what { max-width: 62ch; }

.pb-pr-n {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.pb-pr-n > span:first-child {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--pu-txt);
}

.pb-pr-d {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--pu-muted);
}

.pb-pr-d.is-up { color: var(--pu-ok); }
.pb-pr-d.is-na { color: var(--pu-muted); }

.pb-pr-next { font-size: 14px; color: var(--pu-txt2); }
.pb-pr-next b { color: var(--pu-txt); font-weight: 800; }

.pb-pr-bar { padding-block: 4px 2px; }

.pu-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--pu-track);
  overflow: hidden;
}

.pu-bar i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pu-red) 70%, var(--pu-gold)), var(--pu-red));
  transition: width .5s var(--pu-ease);
}

html[dir="rtl"] .pu-bar i { background: linear-gradient(270deg, color-mix(in srgb, var(--pu-red) 70%, var(--pu-gold)), var(--pu-red)); }

/* AN UNREAD READING IS NOT A ZERO READING: a hatched track, no fill */
.pu-bar.is-unknown {
  background: repeating-linear-gradient(135deg, var(--pu-well) 0 6px, var(--pu-track) 6px 8px);
}

.pb-pr-sc {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pb-pr-sc > span { display: flex; flex-direction: column; gap: 2px; }
.pb-pr-sc-b { align-items: flex-end; text-align: end; }
.pb-pr-sc b { font-size: 14px; font-weight: 800; color: var(--pu-txt); }
.pb-pr-sc i { font-style: normal; font-size: 12px; color: var(--pu-muted); }

.pb-pr-r {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pb-pr-rn {
  max-width: 150px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pu-gold-ink);
  line-height: 1.3;
}

/* the ring */
.pb-ring { position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.pb-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pb-ring-t { fill: none; stroke: var(--pu-track); }

.pb-ring-v {
  fill: none;
  stroke: var(--pu-gold);
  stroke-linecap: round;
  animation: pb-ring-in .9s var(--pu-ease) both;
}

@keyframes pb-ring-in { from { stroke-dashoffset: var(--pb-ring-c); } }

.pb-ring.is-unknown .pb-ring-t { stroke-dasharray: 3 5; stroke: var(--pu-line-strong); }

.pb-ring-c {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 3px;
}

.pb-ring-k { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--pu-muted); }
.pb-ring-n { font-size: 30px; font-weight: 900; color: var(--pu-txt); }
.pb-ring-s { font-size: 11px; font-weight: 800; color: var(--pu-gold-ink); }
.pb-ring-i { display: grid; color: var(--pu-gold); }

/* the compact level journey — milestones at their TRUE fractions (the markup sets `left`), and the
   rail is a scale, so it is laid out LTR in every language, like the level numbers on it */
.pb-jr { padding: 16px 10px 4px; direction: ltr; }
.pb-jr-t { position: relative; height: 34px; }

.pb-jr-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 4px;
  border-radius: 999px;
  background: var(--pu-track);
}

.pb-jr-rail i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: var(--pu-gold);
}

.pb-jr-m {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pb-jr-m i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pu-surface);
  border: 2px solid var(--pu-line-strong);
}

.pb-jr-m.is-done i { background: var(--pu-gold); border-color: var(--pu-gold); }
.pb-jr-m.is-now i { border-color: var(--pu-gold); box-shadow: 0 0 0 4px var(--pu-gold-bg); }
.pb-jr-m b { font-size: 11px; font-weight: 800; color: var(--pu-muted); }
.pb-jr-m.is-done b,
.pb-jr-m.is-now b { color: var(--pu-gold-ink); }

.pb-jr-you {
  position: absolute;
  top: 1px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pu-gold);
  box-shadow: 0 0 0 4px var(--pu-gold-bg);
}

/* ── THE ACTIVITY CALENDAR ───────────────────────────────────────────────────────────────────── */
.pu-v-heat { --pu-heat-g: 3px; }

/* THE CALENDAR FITS ITS CARD. Fifty-three week columns plus the weekday labels are sized from the
   card's own width (container units), between 9 and 15 px a cell, so a desktop card shows the whole
   year without a scrollbar and a phone scrolls only when a cell would drop below 9 px. */
.pu-v-heat-w { display: flex; flex-direction: column; gap: 12px; min-width: 0; container-type: inline-size; }
.pu-v-heat-g { --pu-heat-c: clamp(9px, calc((100cqw - 40px) / 54 - var(--pu-heat-g)), 15px); }

.pu-v-heat-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.pu-v-heat-sum { font-size: 14px; font-weight: 750; color: var(--pu-txt); }

.pu-v-heat-xp {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pu-gold-ink);
  background: var(--pu-gold-bg);
  border: 1px solid var(--pu-gold-line);
}

.pu-v-heat-lg {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--pu-muted);
}

.pu-v-heat-lg span { margin-inline: 4px; }

.pu-v-heat-sc {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pu-v-heat-g {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 6px;
  width: max-content;
  margin-inline: auto;
}

.pu-v-heat-m {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  column-gap: var(--pu-heat-g);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pu-muted);
  line-height: 1;
}

/* a month name stays WHOLE: a compound Kurdish name («تشرینی یەکەم», «کانوونی یەکەم») wraps onto two short lines
   inside its own weeks — cut with an ellipsis, October and December both read «…ی یەکەم» */
.pu-v-heat-m b { font-weight: 700; white-space: normal; line-height: 1.15; overflow: hidden; min-width: 0; padding-inline-end: 4px; align-self: end; }

.pu-v-heat-d {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(7, var(--pu-heat-c));
  row-gap: var(--pu-heat-g);
  font-size: 10px;
  color: var(--pu-muted);
  line-height: var(--pu-heat-c);
}

.pu-v-heat-cols { grid-column: 2; grid-row: 2; display: flex; gap: var(--pu-heat-g); }

.pu-v-hcol {
  display: grid;
  grid-template-rows: repeat(7, var(--pu-heat-c));
  row-gap: var(--pu-heat-g);
}

.pu-v-hc {
  display: block;
  width: var(--pu-heat-c);
  height: var(--pu-heat-c);
  border-radius: 3px;
  background: var(--pu-heat-0);
}

.pu-v-hc.l1 { background: var(--pu-heat-1); }
.pu-v-hc.l2 { background: var(--pu-heat-2); }
.pu-v-hc.l3 { background: var(--pu-heat-3); }
.pu-v-hc.l4 { background: var(--pu-heat-4); }
.pu-v-hc.is-out { visibility: hidden; }
.pu-v-heat-cols .pu-v-hc:hover { outline: 1px solid var(--pu-txt2); outline-offset: 1px; }

.pu-v-heat-none { margin-top: 2px; }

.pu-v-heat-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--pu-line);
}

/* ── THE SMALL TIMELINE (recent verified activity) ───────────────────────────────────────────── */
.pb-tl { display: flex; flex-direction: column; gap: 2px; }

.pb-tl-r {
  display: grid;
  grid-template-columns: 46px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
}

.pb-tl-r + .pb-tl-r { border-top: 1px solid var(--pu-line); }
.pb-tl-t { font-size: 12px; font-weight: 700; color: var(--pu-muted); }
.pb-tl-d { width: 8px; height: 8px; border-radius: 50%; background: var(--pu-red); box-shadow: 0 0 0 3px var(--pu-red-wash); }
.pb-tl-k { font-size: 13.5px; font-weight: 650; color: var(--pu-txt); overflow-wrap: anywhere; }
.pb-tl-x { font-size: 12px; font-weight: 800; color: var(--pu-gold-ink); }

/* ── THE XP LEDGER ───────────────────────────────────────────────────────────────────────────── */
.pb-led { display: flex; flex-direction: column; gap: 2px; }

.pb-led-r {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--pu-line);
}

.pb-led-k { font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.pb-led-m { font-size: 12px; color: var(--pu-muted); }
.pb-led-v { font-size: 13px; font-weight: 800; color: var(--pu-muted); }
.pb-led-r.is-earned .pb-led-v { color: var(--pu-gold-ink); }

.pb-led-tot {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px 0;
  font-size: 13.5px;
  font-weight: 850;
}

/* ── THE RADAR + THE PLATFORM-ACTIVITY LINE ──────────────────────────────────────────────────── */
.pb-rd {
  display: block;
  width: 100%;
  max-width: 250px;
  margin-inline: auto;
  overflow: visible;
}

.pb-rd-g { fill: none; stroke: var(--pu-line-strong); stroke-width: .8; }
.pb-rd-v { fill: color-mix(in srgb, var(--pu-red) 22%, transparent); stroke: var(--pu-red); stroke-width: 1.6; }
.pb-rd-d { fill: var(--pu-red); }
.pb-rd-l { font-size: 8.5px; font-weight: 700; fill: var(--pu-muted); }

.pb-act {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding-top: 12px;
  border-top: 1px solid var(--pu-line);
}

.pb-act b { font-size: 17px; font-weight: 850; }
.pb-act i { font-style: normal; font-size: 12.5px; color: var(--pu-muted); }

/* ── PUBLISHED WORK ──────────────────────────────────────────────────────────────────────────── */
.pb-pb-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.pb-pb-i {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
}

.pb-pb-i + .pb-pb-i { border-top: 1px solid var(--pu-line); }

.pb-pb-s {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--pu-raise);
  border: 1px solid var(--pu-line);
}

.pb-pb-t { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pb-i time { font-size: 12px; color: var(--pu-muted); }

/* ── PROFILE READINESS ───────────────────────────────────────────────────────────────────────── */
.pu-v-h2 { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.pb-next-k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pu-red-txt);
}

html[lang="ar"] .pb-next-k,
html[lang="ku"] .pb-next-k { letter-spacing: 0; text-transform: none; font-size: 12px; }

.pb-next .pb-p-h h3 { font-size: 16.5px; }

.pb-next-ring {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pb-next-ring .pb-ring-n { font-size: 15px; }
.pb-next-ct { font-size: 11px; font-weight: 800; color: var(--pu-muted); }

.pu-v-cks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pu-v-ck {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  padding-inline-start: 10px;
  border-radius: 11px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
}

.pu-v-ck-i { display: inline-grid; color: var(--pu-muted); }
.pu-v-ck.is-ok .pu-v-ck-i { color: var(--pu-ok); }
.pu-v-ck-t { font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.pu-v-ck.is-ok .pu-v-ck-t { color: var(--pu-txt2); }

.pu-v-ck-a {
  appearance: none;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--pu-red) 45%, var(--pu-line));
  background: transparent;
  color: var(--pu-red-txt);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.pu-v-ck-a:hover { background: var(--pu-red-wash); }

.pb-next-a { align-items: center; }
.pb-next-xp { font-size: 12.5px; font-weight: 800; color: var(--pu-gold-ink); }

/* ── THE TRADER PASSPORT (side) ──────────────────────────────────────────────────────────────── */
.pu-pass {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
}

.pu-qr-b {
  appearance: none;
  width: 104px;
  height: 104px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--pu-line-strong);
  background: #fff;
  cursor: zoom-in;
  direction: ltr;
}

.pu-qr-b canvas { width: 88px; height: 88px; image-rendering: pixelated; }

.pu-pass-legend { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.pu-pass-kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--pu-muted);
  text-transform: uppercase;
}

html[lang="ar"] .pu-pass-kind,
html[lang="ku"] .pu-pass-kind { letter-spacing: 0; text-transform: none; font-size: 12px; }

.pu-pass-vf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pu-warn);
}

.pu-pass-vf.is-ok { color: var(--pu-ok); }
.pu-pass-scan { font-size: 11px; font-weight: 800; color: var(--pu-muted); }
/* tracking ONLY on the Latin line: letter-spacing inserts gaps inside joined Arabic and Kurdish letters */
.pu-pass-scan[dir="ltr"] { letter-spacing: .12em; }
.pu-pass-go { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pu-pass-cta { justify-self: start; }

/* ── THE MEASURED ANALYST RECORD ─────────────────────────────────────────────────────────────── */
.pu-acc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.pu-acc b { font-size: 34px; font-weight: 900; line-height: 1; color: var(--pu-gold-ink); }
.pu-acc span { font-size: 13px; font-weight: 700; color: var(--pu-muted); }

/* INSUFFICIENT SAMPLE is a WARNING ink, never the gold of a real measurement — the scoped rule has
   to out-rank the board's own `.pu-acc b`, which is why the id is in the selector */
#pbAnalyst .pu-acc.is-insufficient b,
.pu-acc.is-insufficient b { font-size: 14px; letter-spacing: .08em; color: var(--pu-warn); }

.pb-an-c,
.pu-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pu-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
  min-width: 0;
}

.pu-stat-k { font-size: 11.5px; font-weight: 700; color: var(--pu-muted); overflow-wrap: anywhere; }
.pu-stat-v { font-size: 18px; font-weight: 850; color: var(--pu-txt); }
.pu-stat-s { font-size: 11.5px; color: var(--pu-muted); line-height: 1.4; }

.pu-spec { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.pu-spec li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--pu-well);
  font-size: 13px;
}

.pu-spec b { color: var(--pu-gold-ink); font-weight: 800; }

/* ── TRUST & SECURITY ────────────────────────────────────────────────────────────────────────── */
.pb-vrs { display: flex; flex-direction: column; gap: 6px; }

.pb-vr {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
}

.pb-vr-ic { display: inline-grid; color: var(--pu-muted); }
.pb-vr.is-ok .pb-vr-ic { color: var(--pu-ok); }
.pb-vr-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-vr-k { font-size: 13.5px; font-weight: 700; color: var(--pu-txt); }
.pb-vr-v { font-size: 12px; color: var(--pu-muted); overflow-wrap: anywhere; }
.pb-vr-t { display: inline-grid; color: var(--pu-muted); }

.pb-tc-f { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── LIBRARY ─────────────────────────────────────────────────────────────────────────────────── */
.pb-lib { display: flex; flex-direction: column; gap: 2px; }

.pb-lib-r {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
}

.pb-lib-r + .pb-lib-r { border-top: 1px solid var(--pu-line); }

.pb-lib-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pu-red-wash);
  color: var(--pu-red-txt);
}

.pb-lib-k { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; font-weight: 650; min-width: 0; }
.pb-lib-k small { font-size: 11.5px; font-weight: 600; color: var(--pu-muted); }
.pb-lib-n { font-size: 14px; font-weight: 850; }
.pb-lib-a { color: var(--pu-muted); display: inline-grid; }
html[dir="rtl"] .pb-lib-a svg,
html[dir="rtl"] .pb-lr-a svg { transform: scaleX(-1); }

.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.pb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  background: var(--pu-raise);
  border: 1px solid var(--pu-line);
}

.pb-lr { display: flex; flex-direction: column; gap: 4px; }

.pb-lr-r {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--pu-txt);
  text-decoration: none;
  background: var(--pu-well);
}

.pb-lr-r:hover { background: color-mix(in srgb, var(--pu-red) 7%, var(--pu-well)); }
.pb-lr-a { display: inline-grid; color: var(--pu-red-txt); }
.pb-lr-k { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.pb-lr-x { font-size: 12px; font-weight: 800; color: var(--pu-gold-ink); }

/* ── STATES — five different sentences, never a zero standing in for nothing ─────────────────── */
.pu-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--pu-line-strong);
  background: color-mix(in srgb, var(--pu-well) 60%, transparent);
  text-align: start;
}

.pu-state-t { font-size: 14px; font-weight: 750; color: var(--pu-txt); }
.pu-state-h { font-size: 12.5px; color: var(--pu-muted); line-height: 1.55; }
.pu-state .pu-btn { align-self: flex-start; margin-top: 4px; }
.pu-state--err { border-style: solid; border-color: color-mix(in srgb, var(--pu-warn) 45%, var(--pu-line)); background: var(--pu-warn-bg); }
.pu-state--err .pu-state-t { color: var(--pu-warn); }

.pu-skel { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }

.pu-skel-l {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pu-well) 0%, color-mix(in srgb, var(--pu-well) 55%, var(--pu-line)) 50%, var(--pu-well) 100%);
  background-size: 200% 100%;
  animation: pu-shimmer 1.3s linear infinite;
}

.pu-skel-l:nth-child(3n + 1) { width: 92%; }
.pu-skel-l:nth-child(3n + 2) { width: 74%; }
.pu-skel-l:nth-child(3n + 3) { width: 58%; }

@keyframes pu-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── THE DETAIL DRAWER ───────────────────────────────────────────────────────────────────────── */
.pu-dr {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr minmax(0, 600px);
}

.pu-dr[hidden] { display: none; }
html[dir="rtl"] .pu-dr { grid-template-columns: minmax(0, 600px) 1fr; }

.pu-dr-bg {
  grid-area: 1 / 1 / 2 / -1;
  background: rgba(4, 6, 12, .56);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: pu-dr-fade .16s ease;
}

.pu-dr-p {
  grid-row: 1;
  grid-column: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border-inline-start: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .3);
  animation: pu-dr-in .22s cubic-bezier(.22, .61, .36, 1);
  color: var(--txt);
}

html[dir="rtl"] .pu-dr-p { grid-column: 1; border-inline-start: 0; border-inline-end: 1px solid var(--line); }

.pu-dr-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.pu-dr-h h2 { margin: 0; font-size: 17px; font-weight: 850; }

.pu-dr-x {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}

.pu-dr-x:hover { color: var(--txt); border-color: var(--accent); }

.pu-dr-b {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.pu-dr-on { overflow: hidden; }

@keyframes pu-dr-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pu-dr-in { from { transform: translateX(var(--pu-dr-from, 16px)); opacity: .6 } to { transform: none; opacity: 1 } }
html[dir="rtl"] .pu-dr-p { --pu-dr-from: -16px; }

/* the drawer's cards */
.pu-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--pu-line);
  background: var(--pu-surface);
}

.pu-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pu-card-h h3 { margin: 0; font-size: 15px; font-weight: 800; }
.pu-card-b { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.pu-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--pu-muted); }
.pu-note--warn { color: var(--pu-warn); }

.pu-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── YOUR CONTROLS — six doors into Settings, a 3×2 grid of equal targets ─────────────────────── */
.pu-v-qss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pu-v-qs {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 76px;
  padding: 10px 6px;
  border-radius: var(--pu-r-sm);
  border: 1px solid var(--pu-line);
  background: var(--pu-well);
  color: var(--pu-txt);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--pu-ease), background .15s var(--pu-ease);
}
.pu-v-qs:hover { border-color: color-mix(in srgb, var(--pu-red) 55%, var(--pu-line)); background: color-mix(in srgb, var(--pu-red) 7%, var(--pu-well)); }
.pu-v-qs:focus-visible { outline: 2px solid var(--pu-red); outline-offset: 2px; }
.pu-v-qs-i { display: inline-flex; color: var(--pu-red-txt); }
.pu-v-qs span:last-child { overflow-wrap: anywhere; line-height: 1.25; }


/* the four measurements */
.pu-four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.pu-four-i {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
}

.pu-f-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--pu-muted); }
html[lang="ar"] .pu-f-k,
html[lang="ku"] .pu-f-k { letter-spacing: 0; font-size: 12px; }
.pu-four-i b { font-size: 24px; font-weight: 900; }
.pu-four-i small { font-size: 12px; color: var(--pu-muted); }

/* trading DNA — three trait sources, each with a DELIBERATE treatment (declared is neutral on purpose) */
.pu-dna { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pu-dna-i {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
}

.pu-dna-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pu-dna-t { font-size: 13.5px; font-weight: 750; text-transform: capitalize; }
.pu-dna-v { font-size: 14px; font-weight: 850; }
.pu-dna-e { font-size: 12px; color: var(--pu-muted); }

.pu-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--pu-line-strong);
  color: var(--pu-txt2);
}

.pu-tag--declared { color: var(--pu-txt2); border-color: var(--pu-line-strong); background: transparent; }
.pu-tag--learned { color: var(--pu-ok); border-color: color-mix(in srgb, var(--pu-ok) 40%, transparent); background: var(--pu-ok-bg); }
.pu-tag--published { color: var(--pu-gold-ink); border-color: var(--pu-gold-line); background: var(--pu-gold-bg); }

/* mastery — four states, never a percentage */
.pu-mast { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.pu-mast-i {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
  border-inline-start-width: 3px;
}

.pu-mast-n { font-size: 13.5px; font-weight: 700; }
.pu-mast-s { font-size: 12px; font-weight: 800; }
.pu-mast-e { grid-column: 1 / -1; font-size: 12px; color: var(--pu-muted); }
.pu-mast-i.is-unassessed { border-inline-start-color: var(--pu-line-strong); }
.pu-mast-i.is-unassessed .pu-mast-s { color: var(--pu-muted); }
.pu-mast-i.is-learned { border-inline-start-color: color-mix(in srgb, var(--pu-red) 55%, transparent); }
.pu-mast-i.is-learned .pu-mast-s { color: var(--pu-red-txt); }
.pu-mast-i.is-understood { border-inline-start-color: var(--pu-ok); }
.pu-mast-i.is-understood .pu-mast-s { color: var(--pu-ok); }
.pu-mast-i.is-mastered { border-inline-start-color: var(--pu-gold); }
.pu-mast-i.is-mastered .pu-mast-s { color: var(--pu-gold-ink); }

/* the full level journey */
.pu-jr { display: flex; flex-direction: column; gap: 12px; }
.pu-jr-l { display: flex; flex-direction: column; gap: 4px; }

.pu-jr-r {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--pu-well);
  border: 1px solid transparent;
}

.pu-jr-r.is-done { opacity: .8; }
.pu-jr-r.is-now { border-color: var(--pu-gold-line); background: var(--pu-gold-bg); }
.pu-jr-n { font-size: 12px; font-weight: 800; color: var(--pu-muted); }
.pu-jr-r.is-now .pu-jr-n { color: var(--pu-gold-ink); }
.pu-jr-nm { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.pu-jr-x { font-size: 12px; font-weight: 750; color: var(--pu-muted); }
.pu-jr-s { font-size: 12px; font-weight: 700; color: var(--pu-txt2); min-width: 90px; text-align: end; }
.pu-jr-h { margin: 8px 0 0; font-size: 15px; font-weight: 800; }
.pu-jr-e { display: flex; flex-direction: column; gap: 4px; }

.pu-jr-er {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pu-well);
}

.pu-jr-er span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pu-jr-ek { font-size: 13.5px; font-weight: 750; }
.pu-jr-er i { font-style: normal; font-size: 12px; color: var(--pu-muted); }
.pu-jr-ex { font-size: 13px; font-weight: 850; color: var(--pu-gold-ink); white-space: nowrap; }

/* the verified timeline, full length */
.pu-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pu-tl::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 5px;
  width: 2px;
  background: var(--pu-line);
}

.pu-tl-i { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.pu-tl-d { position: relative; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--pu-surface); border: 2px solid var(--pu-red); }
.pu-tl-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pu-tl-t { font-size: 13.5px; font-weight: 700; }
.pu-tl-t i { font-style: normal; font-weight: 600; color: var(--pu-muted); }
.pu-tl-m { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--pu-muted); }
.pu-xp { font-size: 12px; font-weight: 850; color: var(--pu-gold-ink); }
.pu-more-b { align-self: flex-start; }

/* achievements — three tiers */
.pu-ach { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pu-ach-i {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
}

.pu-ach-m { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--pu-line-strong); background: var(--pu-raise); }
.pu-ach-i.is-bronze .pu-ach-m { border-color: #b08d57; background: color-mix(in srgb, #b08d57 18%, var(--pu-raise)); }
.pu-ach-i.is-silver .pu-ach-m { border-color: #9fb4c7; background: color-mix(in srgb, #9fb4c7 18%, var(--pu-raise)); }
.pu-ach-i.is-gold .pu-ach-m { border-color: var(--pu-gold); background: var(--pu-gold-bg); }
.pu-ach-t { display: block; font-size: 13.5px; font-weight: 750; }
.pu-ach-d { display: block; font-size: 12px; color: var(--pu-muted); }
.pu-ach-w { font-size: 12px; color: var(--pu-muted); }

/* certificates */
.pu-certs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pu-cert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--pu-gold-line);
  background: linear-gradient(180deg, var(--pu-gold-bg), transparent);
}

.pu-cert.is-revoked { border-color: color-mix(in srgb, var(--pu-warn) 45%, transparent); background: var(--pu-warn-bg); }
.pu-cert-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pu-cert-t { font-size: 14px; font-weight: 850; text-transform: capitalize; }
.pu-cert-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--pu-muted); }

.pu-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--pu-line-strong);
}

.pu-chip--gold { color: var(--pu-gold-ink); border-color: var(--pu-gold-line); background: var(--pu-gold-bg); }
.pu-chip--warn { color: var(--pu-warn); border-color: color-mix(in srgb, var(--pu-warn) 45%, transparent); background: var(--pu-warn-bg); }

/* the security summary (the drawer states; Settings acts) */
.pu-secsum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.pu-secsum li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pu-well);
  font-size: 13px;
}

.pu-secsum li span { color: var(--pu-muted); }
.pu-secsum li b { font-weight: 800; text-align: end; overflow-wrap: anywhere; }

/* ── MODALS: the enlarged code, the email verification, the public passport ───────────────────── */
.pu-qrbig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  text-align: center;
}

.pu-qrbig canvas {
  width: min(300px, 70vw) !important;
  height: min(300px, 70vw) !important;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  image-rendering: pixelated;
}

.pu-qrbig b { font-size: 13px; word-break: break-all; }
.pu-qrbig span { font-size: 12.5px; color: var(--muted); }

.pu-verify { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px; }
.pu-verify h3 { margin: 0; font-size: 18px; font-weight: 850; }
.pu-verify p { margin: 0; color: var(--txt2); line-height: 1.6; }
.pu-vfy-r { display: flex; flex-direction: column; gap: 10px; }
.pu-lbl { font-size: 12.5px; font-weight: 750; color: var(--txt2); }

.pu-inp {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--txt);
  font: inherit;
  font-size: 18px;
  letter-spacing: .2em;
  text-align: center;
}

.pu-err { margin: 0; color: #ef5350; font-weight: 700; font-size: 13px; }
html[data-theme="light"] .pu-err { color: #c62828; }

.pubpass { display: flex; flex-direction: column; gap: 14px; color: var(--pu-txt); }
.pubpass-t { margin: 0; font-size: 18px; font-weight: 850; }
.pubpass-head { display: flex; align-items: center; gap: 14px; }

.pubpass-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--pu-line);
}

.pubpass-av--none { display: grid; place-items: center; background: var(--pu-raise); color: var(--pu-muted); }
.pubpass-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pubpass-id b { font-size: 16px; font-weight: 850; overflow-wrap: anywhere; }
.pubpass-id span { font-size: 13px; color: var(--pu-muted); }
.pubpass-bio { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--pu-txt2); }
.pubpass-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.pubpass-r {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--pu-well);
  border: 1px solid var(--pu-line);
}

.pubpass-r span { font-size: 11.5px; font-weight: 700; color: var(--pu-muted); }
.pubpass-r b { font-size: 15px; font-weight: 850; }
.pubpass-r--priv b { color: var(--pu-muted); font-weight: 700; font-size: 13px; }

.pubpass-an {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pu-gold-line);
  background: var(--pu-gold-bg);
}

.pubpass-an-h { font-size: 12px; font-weight: 800; color: var(--pu-muted); }
.pubpass-an-v { display: flex; align-items: baseline; gap: 10px; }
.pubpass-an-v b { font-size: 26px; font-weight: 900; color: var(--pu-gold-ink); }
.pubpass-an-v span { font-size: 12.5px; color: var(--pu-muted); }
.pubpass-an-none { font-size: 13px; color: var(--pu-txt2); }
.pubpass-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--pu-muted); }

/* ── THE SIGNED-OUT PAGE ─────────────────────────────────────────────────────────────────────── */
.pu-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(40px, 10vh, 120px) 16px;
  text-align: center;
}

.pu-guest h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.pu-guest p { margin: 0; max-width: 44ch; color: var(--pu-txt2); line-height: 1.6; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1320px) {
  .pu-v-hero-in { grid-template-columns: auto minmax(0, 1fr); }
  .pu-v-acts { grid-column: 1 / -1; padding-top: 0; justify-content: flex-start; max-width: none; }
}

@media (max-width: 1180px) {
  .pu-v-grid { grid-template-columns: minmax(0, 1fr); }
  .pu-v-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 760px) {
  .pu-wrap { gap: 14px; }
  .pu-v-side { grid-template-columns: minmax(0, 1fr); }
  .pu-v-duo { grid-template-columns: minmax(0, 1fr); }
  .pu-v-cover { height: 118px; }
  .pb-head-c { top: 10px; inset-inline-end: 10px; }
  .pu-v-hero-in { grid-template-columns: minmax(0, 1fr); padding: 0 16px 18px; margin-top: -48px; gap: 14px; }
  .pb-avw { width: 96px; height: 96px; padding: 4px; }
  .pb-av--init { font-size: 32px; }
  .pb-id-b { padding-top: 0; }
  .pu-v-acts .pb-btn { flex: 1 1 auto; }
  .pu-v-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pu-v-stat { padding: 14px 16px; border-inline-start: 0; border-top: 1px solid var(--pu-line); }
  .pu-v-stat:nth-child(even) { border-inline-start: 1px solid var(--pu-line); }
  .pu-v-stat:nth-child(-n + 2) { border-top: 0; }
  .pb-pr-m { grid-template-columns: minmax(0, 1fr); }
  .pb-pr-r { flex-direction: row; justify-content: flex-start; }
  .pb-pr-n > span:first-child { font-size: 34px; }
  .pb-p { padding: 16px; }
  .pu-v-heat { --pu-heat-g: 2px; }
  .pu-v-heat-lg { margin-inline-start: 0; }
  .pu-dr, html[dir="rtl"] .pu-dr { grid-template-columns: minmax(0, 1fr); }
  .pu-dr-p, html[dir="rtl"] .pu-dr-p { grid-column: 1; border-inline: 0; }
}

@media (max-width: 420px) {
  .pb-an-c, .pu-stats { grid-template-columns: minmax(0, 1fr); }
  .pu-four { grid-template-columns: minmax(0, 1fr); }
  .pubpass-grid { grid-template-columns: minmax(0, 1fr); }
  .pu-v-meta { gap: 10px 18px; }
}

/* ── TOUCH: every control a finger can land on is at least 44 px ─────────────────────────────── */
@media (pointer: coarse), (max-width: 760px) {
  .pb-btn, .pu-btn, .pb-hc, .pu-dr-x { min-height: 44px; }
  .pb-hc { min-width: 44px; }
  .pu-v-ck-a { min-height: 44px; }
  .pu-cp { width: 44px; height: 44px; vertical-align: middle; }
  .pb-i { width: 44px; height: 44px; }
  .pu-v-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── MOTION ──────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pu-dr-bg, .pu-dr-p, .pb-ring-v, .pu-skel-l { animation: none !important; }
  .pu-bar i, .pb-btn, .pu-btn { transition: none !important; }
}

/* ── PRINT: the header and the passport are a credential, on paper ───────────────────────────── */
@media print {
  .pb-head-c, .pu-v-acts, .pb-p-f, .pu-dr, .pu-v-heat-lg { display: none !important; }
  .pu-v-hero, .pb-p { box-shadow: none; break-inside: avoid; }
  .pu-v-grid { grid-template-columns: minmax(0, 1fr); }
}
