/* Profile header (design-refs/profile-cover, variant 4): a cover made of the
   avatar blurred and scaled up, the avatar half on it, a big name, big
   Followers / Following numbers. Address, Edit profile / Follow and Tonviewer
   are one kind of button; the address flashes green when copied. */
html #wltHistPanel .wlt-hist-hero{
  --ph-ink:#0a2540; --ph-mute:#4a5b6e; --ph-card:#fff; --ph-line:rgba(10,37,64,.10);
  --ph-btn-bd:rgba(0,119,194,.25); --ph-btn-ink:#0077C2; --ph-btn-hover:rgba(0,119,194,.06);
  --ph-ok-bg:#dff6e7; --ph-ok-ink:#167a3e; --ph-ok-bd:rgba(22,122,62,.4);
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:22px;align-items:start;
  padding:0 28px 24px;border:0;border-radius:24px;overflow:hidden;background:var(--ph-card);
  box-shadow:0 0 0 1px var(--ph-line),0 6px 20px rgba(10,37,64,.04);color:var(--ph-ink)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #wltHistPanel .wlt-hist-hero{
  --ph-ink:#f2f4f7; --ph-mute:#a6a8b0; --ph-card:#111214; --ph-line:rgba(255,255,255,.10);
  --ph-btn-bd:rgba(77,184,255,.35); --ph-btn-ink:#4DB8FF; --ph-btn-hover:rgba(77,184,255,.08);
  --ph-ok-bg:rgba(61,219,138,.16); --ph-ok-ink:#3DDB8A; --ph-ok-bd:rgba(61,219,138,.5)}

/* cover */
html #wltHistPanel .wlt-hist-cover{grid-column:1/-1;position:relative;height:104px;margin:0 -28px;overflow:hidden;
  background:linear-gradient(110deg,#c9d8ee,#e6dcff)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #wltHistPanel .wlt-hist-cover{background:linear-gradient(110deg,#1b2433,#241b3a)}
html #wltHistPanel .wlt-hist-cover img{position:absolute;inset:-40%;width:180%;height:180%;object-fit:cover;filter:blur(28px) saturate(1.6);opacity:.9}
html #wltHistPanel .wlt-hist-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(255,255,255,.35))}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #wltHistPanel .wlt-hist-cover::after{background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.35))}

/* avatar half on the cover */
html #wltHistPanel .wlt-hist-hero-av{position:relative;z-index:1;width:120px;height:120px;margin-top:-58px;font-size:52px;
  background:#fff;box-shadow:0 0 0 6px var(--ph-card)}
html #wltHistPanel .wlt-hist-hero-av img{width:100%!important;height:100%!important;object-fit:cover}
html #wltHistPanel .wlt-hist-hero-av > *{width:100%;height:100%;max-width:none}
html #wltHistPanel .wlt-hist-hero-main{gap:8px;padding-top:14px}
html #wltHistPanel .wlt-hist-hero-row{align-items:center;gap:16px}
/* a narrow profile (a docked panel beside it, a ~860px window): the buttons go under the name rather than cut it */
html #wltHistPanel .wlt-hist-hero-row{flex-wrap:wrap;row-gap:12px}
html #wltHistPanel .wlt-hist-hero .wlt-hist-name{font-size:48px;font-weight:700;line-height:1.05;letter-spacing:-.04em;color:var(--ph-ink)}

/* Followers / Following — big numbers */
html #wltHistPanel .wlt-hist-social-stats{gap:28px;margin-top:2px;align-items:flex-end}
html #wltHistPanel .wlt-hist-social-stat{display:flex;flex-direction:column;align-items:flex-start;padding:0;font-size:14px;color:var(--ph-mute)}
html #wltHistPanel .wlt-hist-social-stat strong{margin:0;font-size:32px;font-weight:700;line-height:1.05;letter-spacing:-.04em;color:var(--ph-ink)}
html #wltHistPanel .wlt-hist-social-stat:hover span{color:var(--ph-btn-ink)}

/* one button style: address, Edit profile, Follow / Following, Tonviewer */
html #wltHistPanel .wlt-hist-hero-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
html #wltHistPanel .wlt-hb{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;margin:0;order:0;
  border:0!important;border-radius:12px;background:var(--ph-card)!important;box-shadow:inset 0 0 0 1px var(--ph-btn-bd)!important;
  color:var(--ph-btn-ink)!important;font:700 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;white-space:nowrap;
  text-decoration:none;cursor:pointer;min-width:0;
  transition:background-color .25s ease,box-shadow .25s ease,color .25s ease,transform .1s ease}
html #wltHistPanel .wlt-hb svg{width:14px;height:14px;flex-shrink:0;opacity:1}
html #wltHistPanel .wlt-hb:not(:disabled):active{transform:scale(.97)}
html #wltHistPanel .wlt-hb:focus-visible{outline:2px solid var(--ph-btn-ink);outline-offset:2px}
html #wltHistPanel .wlt-hb.wlt-follow-btn--active{cursor:default}
html #wltHistPanel .wlt-hb--addr{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;font-weight:700}
html #wltHistPanel .wlt-hb--addr.is-copied{background:var(--ph-ok-bg)!important;box-shadow:inset 0 0 0 1px var(--ph-ok-bd)!important;color:var(--ph-ok-ink)!important}
html #wltHistPanel .wlt-hb--addr.is-copied svg{display:none}
html #wltHistPanel .wlt-hb--addr.is-copied .wlt-hb-lbl{animation:ph-pop .3s cubic-bezier(.2,0,0,1)}
html #wltHistPanel .wlt-hb--addr.is-copied::after{content:"";position:absolute;inset:0;border-radius:inherit;animation:ph-ring .6s ease-out}
@keyframes ph-pop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes ph-ring{from{box-shadow:0 0 0 0 rgba(22,163,74,.45)}to{box-shadow:0 0 0 8px rgba(22,163,74,0)}}
@media(prefers-reduced-motion:reduce){
  html #wltHistPanel .wlt-hb{transition:none}
  html #wltHistPanel .wlt-hb--addr.is-copied .wlt-hb-lbl,html #wltHistPanel .wlt-hb--addr.is-copied::after{animation:none}
}

@media(max-width:700px){
  html #wltHistPanel .wlt-hist-hero{grid-template-columns:auto minmax(0,1fr);column-gap:14px;padding:0 16px 18px;margin:10px 10px 8px}
  html #wltHistPanel .wlt-hist-cover{height:76px;margin:0 -16px}
  html #wltHistPanel .wlt-hist-hero-av{width:84px;height:84px;margin-top:-40px;box-shadow:0 0 0 5px var(--ph-card)}
  html #wltHistPanel .wlt-hist-hero-main{display:contents}
  html #wltHistPanel .wlt-hist-hero-row{display:contents}
  html #wltHistPanel .wlt-hist-name-row{grid-column:2;align-self:end;padding-bottom:4px;min-width:0}
  html #wltHistPanel .wlt-hist-hero .wlt-hist-name{font-size:30px}
  html #wltHistPanel .wlt-hist-social-stats{grid-column:1/-1;margin-top:10px}
  html #wltHistPanel .wlt-hist-social-stat strong{font-size:26px}
  html #wltHistPanel .wlt-hist-hero-actions{grid-column:1/-1;grid-row:4;justify-content:stretch;width:100%;margin-top:14px}
  html #wltHistPanel .wlt-hb{flex:1 1 0;font-size:15px!important;padding:0 12px;gap:8px}
  html #wltHistPanel .wlt-hb--addr{flex:1 1 100%}
}

/* ── Телефон (2026-10-20) ──────────────────────────────────────────────────
   1) Обложка: в iOS Safari размытая картинка внутри overflow:hidden вылезает за
      скругление карточки, и углы выглядят прямыми/двойными. Обложка сама
      скругляет верх тем же радиусом и обрезается clip-path — его Safari соблюдает.
   2) Все блоки профиля — одна ширина: отступ 10px от краёв, как у шапки.
   3) Вкладки подсвечиваются целиком: без серой подсветки тапа на картинке и тексте. */
html #wltHistPanel .wlt-hist-cover{border-radius:24px 24px 0 0;clip-path:inset(0 round 24px 24px 0 0)}
html #wltHistPanel .wlt-prof-tab{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;touch-action:manipulation}
html #wltHistPanel .wlt-prof-tab > *{pointer-events:none}
@media(max-width:760px){
  html #wltHistPanel .wlt-prof-tabs{margin-left:10px;margin-right:10px}
  html #wltHistPanel .wlt-stat-cards,html #wltHistPanel .wlt-section,html #wltHistPanel .wlt-pflow-card,html #wltHistPanel .wlt-pflow-side,html #wltHistPanel .wlt-rew{margin-left:10px;margin-right:10px;width:auto}
}
/* две равные колонки: сумма с иконкой не должна растягивать карточку за край экрана */
@media(max-width:600px){
  html #wltHistPanel .wlt-stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  html #wltHistPanel .wlt-stat-card{min-width:0;padding:12px 14px}
  html #wltHistPanel .wlt-stat-card-val{font-size:20px;gap:4px}
  html #wltHistPanel .wlt-stat-card-val :is(.wlt-pnl-amt-ico,.pnl-ton-stat){width:24px;height:24px}
}
@media(max-width:360px){
  html #wltHistPanel .wlt-stat-cards{gap:8px}
  html #wltHistPanel .wlt-stat-card{padding:11px 12px}
  html #wltHistPanel .wlt-stat-card-val{font-size:18px;letter-spacing:-.3px}
  html #wltHistPanel .wlt-stat-card-val :is(.wlt-pnl-amt-ico,.pnl-ton-stat){width:20px;height:20px}
}
/* на телефоне «залипший» hover после тапа красил прошлую вкладку — фон и цвет только у активной */
@media(hover:none){
  html #wltHistPanel .wlt-prof-tab:not(.active):hover{background:transparent;color:var(--t2)}
}

/* узкий телефон: вкладки плотнее, чтобы следующая выглядывала из-за края — иначе Created coins,
   Rewards, Followers, Following и Settings не видно и непонятно, что ряд листается (аудит 2026-11-04) */
@media(max-width:400px){
  html #wltHistPanel .wlt-prof-tab{padding-left:11px;padding-right:11px}
}
