/* Telegram profile proportions. Optional public data only, never fabricated presence. */
body[data-screen="profile"] .bar{position:absolute;inset:0 var(--gut) auto;min-height:36px;padding-top:8px;pointer-events:none;}
body[data-screen="profile"] .bar .wordmark{visibility:hidden;pointer-events:none;}
body[data-screen="profile"] .bar button{pointer-events:auto;}
body[data-screen="profile"]:has(.has-telegram-palette) .bar .pill{background:none;color:#fff;}
html body #s-profile .telegram-profile-hero{isolation:isolate;padding:38px 14px 12px;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Segoe UI",sans-serif;}
html body #s-profile .telegram-profile-hero::before{content:none;}
.telegram-profile-backdrop{position:absolute;z-index:-1;inset:0;pointer-events:none;overflow:hidden;opacity:0;}
.telegram-profile-hero.has-telegram-palette .telegram-profile-backdrop{opacity:1;background:radial-gradient(circle 192px at 50% 131px,var(--telegram-profile-center),var(--telegram-profile-edge));}
#tg-profile-pattern{position:absolute;inset:0;}
#tg-profile-pattern>span{position:absolute;display:block;background:var(--telegram-profile-pattern,var(--ink));-webkit-mask-image:var(--telegram-profile-symbol);mask-image:var(--telegram-profile-symbol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;transform:translate(-50%,-50%);}
html body #s-profile .telegram-profile-hero .profile-avatar-row{height:113px;position:relative;display:flex;align-items:flex-start;justify-content:center;}
html body #s-profile .telegram-profile-hero .avatar{width:96px;height:96px;flex:none;margin:0;border:0;box-shadow:none;background:var(--surface);}
.telegram-profile-name{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;max-width:100%;}
html body #s-profile .telegram-profile-hero .who{margin:0;color:var(--telegram-profile-text,var(--ink));}
html body #s-profile .telegram-profile-hero .who h1{min-width:0;max-width:calc(100% - 68px);margin:0;font-family:inherit;font-size:22px;line-height:1.18;letter-spacing:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.telegram-profile-subtitle{display:flex;justify-content:center;align-items:center;gap:3px;min-height:24px;min-width:0;margin-top:5px;}
html body #s-profile .telegram-profile-hero .who #who-nick{min-width:0;margin:0;font-family:inherit;color:var(--ink-dim);font-size:14px;font-weight:400;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body #s-profile .telegram-profile-hero.has-telegram-palette .who #who-nick{color:var(--telegram-profile-text,var(--ink));opacity:.72;}
.telegram-profile-verified,.telegram-profile-bot-verification,.telegram-profile-emoji{width:22px;height:22px;flex:none;object-fit:contain;}
.telegram-profile-bot-verification{width:20px;height:20px;}
.telegram-profile-hero.has-telegram-palette .telegram-profile-bot-verification{filter:brightness(0) invert(1);opacity:.9;}
.telegram-profile-verified{display:inline-flex;color:#48a9ee;}
.telegram-profile-verified svg{display:block;width:100%;height:100%;}
.telegram-profile-level{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;--telegram-rating-inner:#fff;--telegram-rating-outer:#00000020;--telegram-rating-text:var(--telegram-profile-edge,#405e71);}
.telegram-profile-level .telegram-rating-badge{width:24px;height:24px;}
.telegram-status-pill{position:absolute;left:calc(50% + 4px);top:86px;z-index:2;display:flex;align-items:center;max-width:min(170px,46vw);min-height:20px;padding:3px 7px;border:1px solid #ffffff26;border-radius:999px;color:var(--telegram-profile-text,var(--ink));background:var(--surface);box-shadow:none;text-align:left;cursor:pointer;}
.telegram-profile-hero.has-telegram-palette .telegram-status-pill{background:color-mix(in srgb,var(--telegram-profile-edge) 62%,transparent);}
.telegram-status-pill>img{display:none;}
.telegram-status-pill>span{display:flex;align-items:baseline;min-width:0;gap:3px;white-space:nowrap;}
.telegram-status-pill b{min-width:0;font-size:10px;font-weight:500;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.telegram-status-pill small{flex:none;font-size:10px;font-weight:500;line-height:1.2;color:inherit;font-variant-numeric:normal;}
html body #s-profile .telegram-profile-hero .profile-reactions.collapsed{margin:7px auto 0;min-width:56px;min-height:24px;height:24px;padding:0 10px;border-radius:999px;border-width:0;background:#20130832;}
html body #s-profile .telegram-profile-hero .profile-reactions.collapsed .reaction-head{height:24px;}
html body #s-profile .telegram-profile-hero .profile-reactions:not(.collapsed){margin:10px auto 0;}
.telegram-profile-actions{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;max-width:360px;margin:12px auto 0;font-family:inherit;}
.telegram-profile-music,.telegram-profile-card{display:flex;align-items:center;justify-content:center;min-width:0;height:24px;min-height:24px;gap:3px;padding:2px 8px;border:0;border-radius:999px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;font-size:11px;line-height:20px;font-weight:400;white-space:nowrap;}
.telegram-profile-hero.has-telegram-palette :is(.telegram-profile-music,.telegram-profile-card){background:#0000001c;color:var(--telegram-profile-text,var(--ink));}
.telegram-profile-music{flex:0 1 auto;max-width:62%;}
.telegram-profile-play{display:grid;place-items:center;flex:none;width:15px;height:18px;color:inherit;}
.telegram-profile-play svg{width:15px;height:15px;}
.telegram-profile-track{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.telegram-profile-track b{font-size:inherit;font-weight:600;}
.telegram-profile-track>span{font-size:inherit;font-weight:400;}
.telegram-profile-actions .telegram-profile-card{font-weight:600;}
.telegram-profile-card{flex:0 0 auto;gap:4px;}
.telegram-profile-card-icon{width:14px;height:14px;flex:none;}
.telegram-profile-chevron{flex:none;margin-left:3px;font-size:18px;line-height:18px;opacity:.8;}
.telegram-profile-music[aria-busy=true] .telegram-profile-play{position:relative;opacity:1;}
.telegram-profile-music[aria-busy=true] .telegram-profile-play svg{visibility:hidden;}
.telegram-profile-music[aria-busy=true] .telegram-profile-play::after{content:'';position:absolute;width:12px;height:12px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:telegram-music-loading .8s linear infinite;}
@keyframes telegram-music-loading{to{transform:rotate(360deg)}}
/* In full-screen Telegram the artwork starts behind the system/native chrome,
   while the avatar and tappable controls stay below BOTH reported safe areas. */
html body.in-telegram.profile-immersive .phone{padding-top:0;}
html body.in-telegram.profile-immersive #s-profile .telegram-profile-hero{padding-top:calc(38px + var(--app-safe-top,0px));}
html body.in-telegram.profile-immersive .bar{top:var(--app-safe-top,0px);}
html body.profile-immersive #telegram-top-guard{background:transparent;}
html body.profile-immersive{overscroll-behavior-y:none;}
html body.in-telegram.profile-immersive .telegram-profile-backdrop{background:radial-gradient(circle 192px at 50% calc(131px + var(--app-safe-top,0px)),var(--telegram-profile-center),var(--telegram-profile-edge));}
.telegram-profile-identity{margin:12px calc(12px - var(--gut)) 10px;padding:0 18px;border-radius:16px;background:var(--surface);font-family:-apple-system,BlinkMacSystemFont,Roboto,"Segoe UI",sans-serif;}
.telegram-profile-render-id{display:flex;flex-direction:column;gap:6px;padding:16px 0 18px;}
.telegram-profile-render-value{font-size:18px;font-weight:600;line-height:1.25;letter-spacing:0;font-variant-numeric:normal;}
.telegram-profile-render-id small{font-size:12px;font-weight:400;line-height:1.4;color:var(--ink-dim);}
.telegram-profile-render-id:not([hidden])+.telegram-profile-usernames:not([hidden]){border-top:1px solid var(--hairline);}
.telegram-profile-usernames{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:16px 0 18px;}
.telegram-profile-usernames a{max-width:100%;font-weight:400;color:var(--tg-theme-link-color,#c7a4e6);text-decoration:none;overflow-wrap:anywhere;}
html[data-theme="light"] .telegram-profile-usernames a{color:var(--tg-theme-link-color,#168acd);}
.telegram-profile-usernames .telegram-profile-username-primary{display:block;font-size:18px;font-weight:600;line-height:1.3;}
.telegram-profile-usernames-secondary{font-size:14px;line-height:1.45;color:var(--ink-dim);overflow-wrap:anywhere;}
.telegram-profile-usernames-label{font-size:12px;line-height:1.4;color:var(--ink-dim);}
.telegram-profile-music:focus-visible,.telegram-profile-card:focus-visible,.telegram-status-pill:focus-visible{outline:2px solid var(--bar);outline-offset:3px;}
html body #s-profile>.value-history{margin-top:16px;}
@media(max-width:350px){.telegram-profile-actions{gap:5px;}.telegram-profile-music,.telegram-profile-card{padding-inline:6px;font-size:10px;}.telegram-profile-music{max-width:64%;}.telegram-profile-identity{padding-inline:16px;}.telegram-profile-usernames-secondary{font-size:13px;}}
@media(prefers-reduced-motion:reduce){.telegram-profile-hero *{scroll-behavior:auto;}}
@media(prefers-reduced-motion:reduce){.telegram-profile-music[aria-busy=true] .telegram-profile-play::after{animation:none;border-style:dashed;}}
.telegram-profile-verification-note{margin:0 -18px;padding:12px 18px;border-top:1px solid var(--hairline);border-radius:16px;background:var(--surface);background:color-mix(in srgb,var(--ink-dim) 8%,var(--surface));color:var(--ink-dim);font-size:12px;font-weight:400;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere}
.telegram-profile-identity>:is(.telegram-profile-render-id,.telegram-profile-usernames):not([hidden])~.telegram-profile-verification-note{border-radius:0 0 16px 16px}
.telegram-profile-verification-note[hidden]{display:none}
@media(max-width:350px){.telegram-profile-verification-note{margin-inline:-16px;padding-inline:16px}}
