/* ═══════════════════════════════════════════════════════════════════════════
   user-profile.css — a person's public profile, in-app (#cmUserProfile).
   Built by public/js/addons/user-profile-addon.js.

   This screen replaced a standalone page (public/profile.html) that carried a
   private copy of the app's tokens, its own nav bar, buttons, lightbox and
   toast. None of that survives: the panel is composed from the design system —

     head      .hz-panel-head (+ its back control)          app.css
     hero      .hz-card --raised --flat --lg                 atoms.css
     buttons   .hz-btn --secondary --sm (retry)              atoms.css
     actions   .hz-btn --primary / --secondary (Message · Share · Edit)  atoms.css
     figures   .hz-stat-group / .hz-stat (AI toolkit)        atoms.css
     awards    .hz-medal (course badges, via HzMedal)         atoms.css
     no photo  .av-person (the Harizma mark, AvatarStore)     app.css
     grid      the Feed's .ftile family                      app.css
     viewer    the Feed's post viewer (HzPostViewer)         feed-addon.js
     avatar    AvatarStore (.av-img)                         avatar.js

   — and this file only lays them out. TOKEN DISCIPLINE, as course.css: no
   custom properties of its own, no raw colours but the white initials ink on the
   avatar gradient, no [data-theme] patches — both themes arrive by token swap.
   Guarded by tests/unit/design-system/user-profile-tokens.test.js.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Panel ──────────────────────────────────────────────────────────────────
   A screen pushed ON TOP of the one that opened it (Settings, the Feed, Home),
   so it is fixed and layered like #settPanel — the same box, one step higher:
     #settPanel 70  <  #cmUserProfile 80  <  .mnav 100 (the phone tab bar
     floats over it; the list runs under its glass and .hz-panel-scroll
     reserves the bar at the end of the list)  <  the post
     viewer 999  <  toasts / modals.
   The phone fills the viewport; from 641px it sits right of the sidebar and
   under the top nav, exactly where Settings does. */
#cmUserProfile {
  position: fixed; inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  background: var(--void);
}
#cmUserProfile.show { display: flex; animation: upfIn var(--hz-dur) var(--ease) both; }
/* The panel takes focus when it opens so keyboard and screen-reader users land
   inside it; it is a landmark, not a control, so it wears no ring. */
#cmUserProfile:focus { outline: none; }
@media (min-width: 641px) {
  #cmUserProfile { top: var(--tnav-h); inset-inline-start: var(--sb); }
  #cmUserProfile.show { animation: none; }
  /* Signed out there is no sidebar (body.anon-mode .sb, app.css). */
  body.anon-mode #cmUserProfile { inset-inline-start: 0; }
}
/* Arrives from the inline end (right in LTR, left in RTL) — tokens.css --hz-inline-dir. */
@keyframes upfIn { from { transform: translateX(calc(24px * var(--hz-inline-dir, 1))); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #cmUserProfile.show { animation: none; } }

/* The head's surface — the frosted band every panel head wears. */
.upf-head {
  background: var(--hz-surface-panelhdr);
  backdrop-filter: var(--hz-panelhdr-blur);
  -webkit-backdrop-filter: var(--hz-panelhdr-blur);
  box-shadow: var(--hz-panelhdr-shadow);
  border-bottom: 1px solid var(--border);
}

.upf-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* One reading column: the hero and the grid share a measure, so the grid
   never stretches edge to edge on a wide monitor. */
.upf-inner {
  max-width: 900px; margin: 0 auto;
  padding: var(--hz-space-5) var(--hz-space-4) var(--hz-space-10);
  display: flex; flex-direction: column; gap: var(--hz-space-6);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.upf-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: var(--hz-space-2);
  padding: var(--hz-space-7) var(--hz-space-5) var(--hz-space-5);
}
.upf-hero.upf-hero--state { padding: var(--hz-space-5); }

.upf-av {
  appearance: none; -webkit-appearance: none;
  width: 96px; height: 96px; flex-shrink: 0;
  margin-bottom: var(--hz-space-2);
  padding: 0; border: none;
  border-radius: var(--hz-radius-avatar);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: var(--hz-font-display);
  font-size: var(--hz-text-2xl); font-weight: var(--hz-weight-bold);
  color: #fff;
  box-shadow: var(--hz-shadow-md), 0 0 0 4px var(--accent-soft);
}
.upf-av.has-img { color: transparent; }
button.upf-av { cursor: zoom-in; }
button.upf-av:focus-visible { outline: var(--hz-focus-width) solid var(--hz-focus-ring); outline-offset: 3px; }

.upf-name {
  margin: 0; max-width: 100%;
  font-size: var(--hz-role-title-size);
  font-weight: var(--hz-weight-extrabold);
  letter-spacing: var(--hz-tracking-tight);
  line-height: var(--hz-leading-tight);
  color: var(--t1);
  overflow-wrap: anywhere;
}
.upf-handle {
  margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--hz-space-1);
  font-family: var(--hz-font-mono);
  font-size: var(--hz-text-sm);
  color: var(--accent);
}
/* "· since 2024": the year they joined, in the body face — a fact about the
   person, not part of their address. */
.upf-since {
  font-family: var(--hz-font-body, inherit);
  color: var(--t2);
}

/* ── The action row ──────────────────────────────────────────────────────────
   Message · Share (a visitor), Share profile · Edit (the owner): two shared
   buttons (.hz-btn, atoms.css) sharing one line, as wide as the figures below
   — on a phone they are the first thing under the name and the easiest
   target on the screen. */
.upf-actions {
  display: flex; gap: var(--hz-space-2);
  width: 100%; max-width: 380px;
  margin-top: var(--hz-space-4);
}
.upf-action { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.upf-action span { overflow: hidden; text-overflow: ellipsis; }
/* A blocked person: Share alone, and the reason there is no Message. */
.upf-blocked { margin-top: var(--hz-space-3); }

.upf-ico {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Loading: the hero's shape before the person arrives. */
.upf-skel { background: var(--raised); animation: upfPulse 1.5s var(--ease) infinite; }
.upf-skel-line { width: 160px; height: 22px; border-radius: var(--hz-radius-6); }
.upf-av.upf-skel { box-shadow: none; }
@keyframes upfPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ── AI toolkit ─────────────────────────────────────────────────────────────
   Under the handle: the person's figures (AI messages · agents · models, the
   shared .hz-stat-group) and the agents they use most — up to five links,
   each an avatar over a name (its model is in the link's label).
   One reading column, as narrow as the figures need: on a wide screen the
   hero stays a centred card, not a dashboard. */
.upf-ai {
  width: 100%; max-width: 420px;
  margin-top: var(--hz-space-4);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hz-space-5);
  animation: upfFade var(--hz-dur) var(--ease) both;
}
@keyframes upfFade { from { opacity: 0; } to { opacity: 1; } }

/* The atom sets three columns; a person with fewer figures gets fewer. */
.upf-stats { width: 100%; max-width: 380px; }
.upf-stats--1 { grid-template-columns: minmax(0, 1fr); }
.upf-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A caption is one line: normal tracking and slimmer cell sides give
   "AI‑сообщения" room on a 360px phone; at 320px it ellipsizes (the cell's
   aria-label keeps it whole) rather than break mid-word ("сообщени / я"). */
.upf-stats .hz-stat { padding-inline-start: var(--hz-space-1); padding-inline-end: var(--hz-space-1); }
/* "#57": a figure with a sign is one left-to-right run in any direction. */
.upf-stat-num { direction: ltr; unicode-bidi: isolate; }
.upf-stats .hz-stat-label { letter-spacing: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The figures' row while the toolkit is on its way — the stat group's box. */
.upf-skel-stats {
  width: 100%; max-width: 380px; height: 58px;
  margin-top: var(--hz-space-4);
  border-radius: var(--hz-radius-14);
}

.upf-agents {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hz-space-3);
}
/* The same caption the Posts section wears (.upf-sec-title), centred. When a
   title wraps (a narrow phone), its lines are balanced, not one long line
   over a stray word. */
.upf-ai-label {
  margin: 0;
  text-wrap: balance;
  font-size: var(--hz-role-label-size);
  font-weight: var(--hz-weight-bold);
  letter-spacing: var(--hz-role-label-tracking);
  text-transform: uppercase;
  color: var(--t2);
}
.upf-agent-list {
  list-style: none; margin: 0; padding: 0;
  width: 100%;
  display: flex; justify-content: center;
  gap: var(--hz-space-1);
}
/* Up to 64px a column, shrinking together on a narrow phone (five fit a
   320px screen's card) — the avatar keeps its size, the name ellipsizes. */
.upf-agent-item { flex: 0 1 64px; min-width: 0; }
/* The avatar, then its name. The whole column is the target — about 64×68,
   over the 44px minimum — so a small icon is never a small tap. */
.upf-agent {
  width: 100%;
  padding: var(--hz-space-1) 0;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hz-space-2);
  border-radius: var(--hz-radius-12);
  color: var(--t1);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--hz-dur-fast) var(--ease);
}
.upf-agent:focus-visible { outline: var(--hz-focus-width) solid var(--hz-focus-ring); outline-offset: 2px; }
.upf-agent-av {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--hz-radius-avatar);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: var(--hz-text-xl); line-height: 1;
  color: #fff;
  box-shadow: var(--hz-shadow-sm), 0 0 0 1px var(--border);
  transition: transform var(--hz-dur-fast) var(--ease-spring);
}
.upf-agent-av.has-img { color: transparent; }
.upf-agent:active .upf-agent-av { transform: scale(.94); }
@media (hover: hover) {
  .upf-agent:hover { background: var(--hover); }
  .upf-agent:hover .upf-agent-av { transform: translateY(-2px); }
}
/* Up to two lines ("Nano / Banana", "Kling 3.0 / Pro"), then an ellipsis. */
.upf-agent-name {
  max-width: 100%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
  text-align: center;
  font-size: var(--hz-text-xs); font-weight: var(--hz-weight-semibold);
  line-height: var(--hz-leading-snug);
  color: var(--t2);
}

/* The narrowest phones (320px): five columns of ~53px — no gaps and a step
   smaller caption, so "Harizma" still fits whole. */
@media (max-width: 359px) {
  .upf-agent-list { gap: 0; }
  .upf-agent-name { font-size: var(--hz-text-2xs); }
}

/* The owner's own profile before any AI: what will appear here. */
.upf-ai-hint {
  margin: var(--hz-space-4) 0 0; max-width: 300px;
  font-size: var(--hz-text-sm); line-height: var(--hz-leading-normal);
  color: var(--t2);
}

@media (prefers-reduced-motion: reduce) {
  .upf-ai { animation: none; }
  .upf-agent, .upf-agent-av { transition: none; }
  .upf-agent:hover .upf-agent-av, .upf-agent:active .upf-agent-av { transform: none; }
}

/* ── AI Course awards ─────────────────────────────────────────────────────
   A section under the hero, like Apps and Posts: the section title carries
   the count ("AI COURSE AWARDS · 3 of 12"); its card holds the AI Passport,
   the badges this person won — each in the course's own medal (.hz-medal--xs,
   the object they saw win), in one row — and a way into the course. The same
   column rhythm as the agents above (the caption under the art). */
.upf-ach[hidden] { display: none; }
.upf-sec-count {
  margin-inline-start: auto;
  text-transform: none; letter-spacing: normal;
  font-weight: var(--hz-weight-semibold);
  font-variant-numeric: tabular-nums;
}
.upf-ach-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hz-space-3);
  padding: var(--hz-space-5) var(--hz-space-4);
  /* The medal's one hook (atoms.css): it stands on the card, so its bezel
     hairline and coin ring are cut in the card's own surface. */
  --hz-medal-ground: var(--hz-card-raised-bg);
  animation: upfFade var(--hz-dur) var(--ease) both;
}
/* One row, like the agents above: the medals share the card's width (a column
   of 68–84px, 112px from 641px), centred when they fit — the auto margins on
   the first and last item take the free space and collapse to nothing when
   there is none — and swiped sideways when they do not. The row runs to the
   card's edges (the negative margin, given back as padding), so the medal it
   cuts at the edge says there are more. Keyboard: the row itself is a tab
   stop (tabindex, the addon), so arrows scroll it where no item is focusable. */
.upf-ach-list {
  list-style: none;
  margin: 0 calc(-1 * var(--hz-space-4));
  padding: 0 var(--hz-space-4) var(--hz-space-1);
  width: calc(100% + 2 * var(--hz-space-4));
  box-sizing: border-box;
  display: flex; flex-wrap: nowrap;
  gap: var(--hz-space-1);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--hz-space-4);
  scrollbar-width: none;
}
.upf-ach-list::-webkit-scrollbar { display: none; }
.upf-ach-list:focus-visible { outline: var(--hz-focus-width) solid var(--hz-focus-ring); outline-offset: -2px; border-radius: var(--hz-radius-12); }
/* A column like an agent's: the medal, then its name, two lines at most. The
   top padding is the room the medal's bezel ring needs (a scroller clips). An
   award's name is often one long word («Ответственный», «Коммуникатор»): it is
   hyphenated in its own language (the list's `lang`), and only broken where no
   hyphenation is available. */
.upf-ach-item {
  flex: 0 1 84px; min-width: 68px;
  padding-top: 6px;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hz-space-2);
  scroll-snap-align: start;
}
.upf-ach-item:first-child { margin-inline-start: auto; }
.upf-ach-item:last-child { margin-inline-end: auto; }
.upf-ach-name {
  max-width: 100%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: break-word; hyphens: auto;
  text-align: center;
  font-size: var(--hz-text-xs); font-weight: var(--hz-weight-semibold);
  line-height: var(--hz-leading-snug);
  color: var(--t2);
}
/* Without HzMedal (a stale cache): the bare emoji, at the medal's size. */
.upf-ach-em { font-size: var(--hz-text-2xl); line-height: 1; }
/* The AI Passport: the course's certificate, in the warm tint an earned
   award wears on the course's own shelf. */
.upf-passport {
  margin: 0;
  display: inline-flex; align-items: center; gap: var(--hz-space-2);
  padding: var(--hz-space-1) var(--hz-space-3);
  border-radius: var(--hz-radius-pill);
  background: var(--hz-warning-soft);
  border: 1px solid var(--hz-warning-border);
  color: var(--hz-warning-ink);
  font-size: var(--hz-text-xs); font-weight: var(--hz-weight-bold);
}
/* An issued passport is a button to its own page: the same chip, a finger's
   height, a chevron that says it goes somewhere. */
.upf-passport--link {
  min-height: 44px; padding: 0 var(--hz-space-3) 0 var(--hz-space-4);
  font-size: var(--hz-text-sm);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s var(--ease, ease), border-color .15s var(--ease, ease);
}
.upf-passport-go { flex: none; }
[dir="rtl"] .upf-passport-go { transform: scaleX(-1); }
.upf-passport--link:focus-visible { outline: 2px solid var(--hz-warning-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .upf-passport--link:hover { border-color: var(--hz-warning-ink); }
}
/* The way in: a text link, the quietest call the section makes. */
.upf-ach-cta {
  display: inline-flex; align-items: center; gap: var(--hz-space-1);
  min-height: 44px; padding: 0 var(--hz-space-3);
  border-radius: var(--hz-radius-pill);
  font-size: var(--hz-text-sm); font-weight: var(--hz-weight-semibold);
  color: var(--accent);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--hz-dur-fast) var(--ease);
}
.upf-ach-cta:focus-visible { outline: var(--hz-focus-width) solid var(--hz-focus-ring); outline-offset: 2px; }
@media (hover: hover) { .upf-ach-cta:hover { background: var(--accent-soft); } }
/* Tablet and desktop have the room: columns up to 112px, so a long name
   («Ответственный», «Коммуникатор») sits whole on one line. */
@media (min-width: 641px) {
  .upf-ach-item { flex-basis: 112px; }
}
/* The narrowest phones (320px): what the agents above take — no gaps, a step
   smaller caption — and a 64px column, so four medals still fit in one row. */
@media (max-width: 359px) {
  .upf-ach-list { gap: 0; }
  .upf-ach-item { min-width: 64px; }
  .upf-ach-name { font-size: var(--hz-text-2xs); }
}
@media (prefers-reduced-motion: reduce) {
  .upf-ach-card { animation: none; }
  .upf-ach-cta { transition: none; }
}

/* ── The join card (a signed-out visitor) ──────────────────────────────────
   Under the hero: a title, one line of what they get, one button. The card
   is the closing call of the loop that brought them here — someone shared
   this page — so it is where the eye lands after the hero, and nowhere else. */
.upf-join[hidden] { display: none; }
.upf-join {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: var(--hz-space-2);
  padding: var(--hz-space-5) var(--hz-space-4);
}
.upf-join-title {
  margin: 0;
  text-wrap: balance;
  font-size: var(--hz-text-md); font-weight: var(--hz-weight-extrabold);
  letter-spacing: var(--hz-tracking-tight);
  color: var(--t1);
}
.upf-join-sub {
  margin: 0; max-width: 320px;
  font-size: var(--hz-text-sm); line-height: var(--hz-leading-normal);
  color: var(--t2);
}
.upf-join-cta { margin-top: var(--hz-space-2); min-width: 200px; }

/* ── Posts ──────────────────────────────────────────────────────────────── */
.upf-posts[hidden] { display: none; }
.upf-sec-title {
  display: flex; align-items: center; gap: var(--hz-space-2);
  margin: 0 0 var(--hz-space-3);
  font-size: var(--hz-role-label-size);
  font-weight: var(--hz-weight-bold);
  letter-spacing: var(--hz-role-label-tracking);
  text-transform: uppercase;
  color: var(--t2);
}
/* The Feed's tile grid (.ftile, app.css): 3 across on a phone, 4 from 700px. */
.upf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hz-space-1);
}
@media (min-width: 700px) {
  .upf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hz-space-2); }
}

.upf-more { display: flex; justify-content: center; padding: var(--hz-space-6); }
.upf-more[hidden] { display: none; }
.upf-spin {
  width: 22px; height: 22px;
  border-radius: var(--hz-radius-full);
  border: 2px solid var(--border-mid); border-top-color: var(--accent);
  animation: upfSpin .7s linear infinite;
}
@keyframes upfSpin { to { transform: rotate(360deg); } }
.upf-sentinel { height: 1px; }

/* ── Empty / error / not-found ──────────────────────────────────────────── */
.upf-state {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--hz-space-2);
  padding: var(--hz-space-8) var(--hz-space-5);
  text-align: center;
}
.upf-state[hidden] { display: none; }
.upf-hero--state .upf-state { padding: var(--hz-space-6) 0; }
.upf-state-ic {
  width: 56px; height: 56px;
  margin-bottom: var(--hz-space-2);
  border-radius: var(--hz-radius-16);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
}
.upf-state-ic .upf-ico { width: 26px; height: 26px; stroke-width: 1.7; }
.upf-state-title {
  margin: 0;
  font-size: var(--hz-text-md); font-weight: var(--hz-weight-semibold);
  color: var(--t1);
}
.upf-state-sub {
  margin: 0; max-width: 300px;
  font-size: var(--hz-text-sm); line-height: var(--hz-leading-normal);
  color: var(--t2);
}
.upf-state .hz-btn { margin-top: var(--hz-space-3); }

/* Phone: tighter gutters, a smaller avatar, the grid a hair from the edges. */
@media (max-width: 640px) {
  .upf-inner { padding: var(--hz-space-4) var(--hz-space-3) var(--hz-space-8); gap: var(--hz-space-5); }
  .upf-hero { padding: var(--hz-space-6) var(--hz-space-4) var(--hz-space-5); }
  .upf-av { width: 84px; height: 84px; }
  .upf-grid { gap: 2px; }
}

/* ── What they made ("Show on my profile" on an app's share sheet or an
   agent's card) ───────────────────────────────────────────────────────────
   Each app is its link-preview card (/a/<slug>/card.png — the picture a
   friend sees in a chat), each agent its emoji on its gradient, over its
   name: a row that scrolls sideways on a phone, a grid from 700px. */
.upf-apps[hidden] { display: none; }
.upf-app-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%);
  gap: var(--hz-space-3);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.upf-app-list::-webkit-scrollbar { display: none; }
.upf-app-item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 700px) {
  .upf-app-list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
}
.upf-app {
  display: flex; flex-direction: column; gap: var(--hz-space-2);
  color: inherit; text-decoration: none;
  border-radius: var(--hz-radius-14);
  -webkit-tap-highlight-color: transparent;
}
.upf-app-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--hz-radius-14);
  background: var(--hz-surface-raised);
  border: 1px solid var(--hz-border);
  transition: transform .18s ease;
}
/* An agent they made (Agent Maker): its emoji on its own gradient, in the app
   card's frame — the style attribute carries only the server's gradient. */
.upf-app-agent {
  display: flex; align-items: center; justify-content: center;
  background: var(--hz-brand-soft);
  font-size: clamp(40px, 10vw, 64px); line-height: 1;
}
/* Its picture: a circle on its gradient, over the emoji (which shows if the picture fails). */
.upf-app-agent { position: relative; overflow: hidden; }
.upf-agent-pic {
  position: absolute; inset: 0; margin: auto;
  height: 64%; aspect-ratio: 1; width: auto;
  object-fit: cover;
  border-radius: var(--hz-radius-full);
  box-shadow: 0 0 0 3px var(--hz-text-onbrand), var(--hz-shadow-sm);
  background: var(--hz-surface-raised);
}
.upf-app:hover .upf-app-img { transform: translateY(-2px); }
.upf-app:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.upf-app-title {
  font-size: var(--hz-text-sm); font-weight: var(--hz-weight-semibold);
  color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .upf-app-img { transition: none; }
}
