@font-face{
  font-family:"Inter YPN";
  src:url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
:root{
  --ypn-bg:#050505;
  --ypn-bg2:#0a0a0a;
  --ypn-panel:rgba(18,18,18,.78);
  --ypn-panel-strong:rgba(23,23,23,.92);
  --ypn-line:rgba(255,255,255,.13);
  --ypn-line-soft:rgba(255,255,255,.075);
  --ypn-text:#f4f4f4;
  --ypn-muted:#929292;
  --ypn-muted2:#666;
  --ypn-white:#fff;
  --ypn-good:#50e3a4;
  --ypn-radius:28px;
  --ypn-shadow:0 24px 80px rgba(0,0,0,.34);
}*{box-sizing:border-box}
html{background:var(--ypn-bg);color-scheme:dark;scroll-behavior:smooth}
body{
  margin:0!important;
  min-height:100vh;
  color:var(--ypn-text)!important;
  font-family:"Inter YPN","SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-feature-settings:"cv02","cv03","cv04","cv11";
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  background:
    radial-gradient(circle at 50% -12%,rgba(255,255,255,.055),transparent 34%),
    linear-gradient(180deg,#050505 0%,#080808 56%,#040404 100%)!important;
  overflow-x:hidden;
}
body::before,body::after{display:none!important}
a,button,input,select,textarea{font-family:inherit!important}
button,.btn,a{-webkit-tap-highlight-color:transparent}
::selection{background:rgba(255,255,255,.18);color:#fff}#ypn-motion-layer{
  position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  contain:strict;
}
#ypn-route-canvas{
  position:absolute;inset:0;width:100%;height:100%;opacity:.62;
}
.ypn-motion-vignette{
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 50% 18%,transparent 0 22%,rgba(0,0,0,.08) 48%,rgba(0,0,0,.56) 100%),
    linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.25));
}
.ypn-globe-stage{
  position:absolute;top:66px;right:max(2vw,18px);
  width:min(48vw,720px);aspect-ratio:1;opacity:.78;
  transform:translate3d(0,0,0);
  filter:drop-shadow(0 0 50px rgba(255,255,255,.025));
}
.ypn-globe-stage svg{width:100%;height:100%;overflow:visible}
.ypn-globe-core{
  transform-origin:50% 50%;
  animation:ypn-globe-spin 38s linear infinite;
}@keyframes ypn-globe-spin{to{transform:rotate(360deg)}}
.ypn-orbit{
  fill:none;stroke:rgba(255,255,255,.20);stroke-width:1.1;
  vector-effect:non-scaling-stroke;
}
.ypn-orbit.soft{stroke:rgba(255,255,255,.105)}
.ypn-route-dot{fill:#fff;filter:drop-shadow(0 0 5px rgba(255,255,255,.9))}
.ypn-globe-shell{fill:rgba(255,255,255,.025);stroke:rgba(255,255,255,.22);stroke-width:1.2}
.ypn-globe-grid{fill:none;stroke:rgba(255,255,255,.10);stroke-width:.8}
.ypn-globe-land{fill:rgba(255,255,255,.18);stroke:rgba(255,255,255,.26);stroke-width:.6}
.wrap,.shell,.ypn-page-root{position:relative!important;z-index:2!important}
.wrap{width:min(1360px,100%)!important;padding:0 18px 42px!important}
.shell{width:min(1180px,100%)!important;padding:20px 18px 42px!important}
.top,.topbar{
  border:1px solid var(--ypn-line-soft)!important;
  background:rgba(8,8,8,.74)!important;
  -webkit-backdrop-filter:blur(24px) saturate(130%);
  backdrop-filter:blur(24px) saturate(130%);
  box-shadow:0 12px 42px rgba(0,0,0,.22)!important;
}
.top{border-radius:24px!important;padding:9px 11px!important}
.topbar{border-radius:24px!important;padding:10px 12px!important}
.logo,.ypn-brand-mark img{
  background:#0c0c0c!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.brand b,.brand-name{font-weight:780!important;letter-spacing:.16em!important}
.brand-sub{color:#777!important;letter-spacing:.12em!important;text-transform:uppercase!important}
.badge,.pill,.chip,.steps-pill{
  color:#aaa!important;background:rgba(255,255,255,.035)!important;
  border:1px solid var(--ypn-line-soft)!important;box-shadow:none!important;
}
.top-link,.back,.home{color:#aaa!important}
.top-link:hover,.back:hover,.home:hover{color:#fff!important}.card,.soft-card,.admin-hero,.auth-card,.form-block,.seat,.guide,.vpn-guide,.install-step,
.client-item,.metric,.stat,.note,.why-content,.status,.manual-install,.import-demo,.keyboard,
.price-preview,.plan-card,.danger-zone,.detail-summary>*,.health-chip{
  background:linear-gradient(180deg,rgba(20,20,20,.84),rgba(11,11,11,.78))!important;
  border:1px solid var(--ypn-line-soft)!important;
  box-shadow:none!important;
}
.card,.soft-card,.admin-hero,.auth-card,.guide,.vpn-guide{border-radius:var(--ypn-radius)!important}
.auth-card{background:rgba(12,12,12,.86)!important;box-shadow:var(--ypn-shadow)!important}
.form-block,.metric,.stat,.seat,.client-item,.plan-card{border-radius:20px!important}
h1,h2,h3,.title,.hero-title{
  color:#f6f6f6!important;
  letter-spacing:-.045em!important;
  font-weight:760!important;
}
h1,.hero-title{font-variation-settings:"wght" 760}
p,.desc,.hint,.auth-note,.auth-help,.small,.smallnote,.muted{color:var(--ypn-muted)!important}
.kicker,.eyebrow{color:#858585!important;letter-spacing:.18em!important}
input,select,textarea{
  color:#f3f3f3!important;
  background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:none!important;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(255,255,255,.34)!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.045)!important;
}
.primary,.btn.primary,.download,.good{
  color:#090909!important;
  background:#f1f1f1!important;
  border:1px solid rgba(255,255,255,.65)!important;
  box-shadow:none!important;
}
.primary:hover,.btn.primary:hover,.download:hover,.good:hover{background:#fff!important;filter:none!important}
.secondary,.btn.secondary,.purple,.btn.purple{
  color:#e7e7e7!important;background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.11)!important;
}
.secondary:hover,.btn.secondary:hover,.purple:hover,.btn.purple:hover{background:rgba(255,255,255,.075)!important}
button,.btn{font-weight:650!important}
.alert{background:rgba(255,255,255,.045)!important;border-color:rgba(255,255,255,.12)!important;color:#ddd!important}
.error{background:rgba(255,70,70,.07)!important;border-color:rgba(255,100,100,.18)!important;color:#ffcfcf!important}.direct,.chain,.status-badge.active,.status-badge.free{
  color:#ddd!important;background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.10)!important;
}
.health-dot{background:var(--ypn-good)!important;box-shadow:0 0 18px rgba(80,227,164,.5)!important}
.plan-card{transition:transform .18s ease,border-color .18s ease,background .18s ease!important}
.plan-card:hover,.client-item:hover{transform:translateY(-2px)!important;border-color:rgba(255,255,255,.17)!important}
.plan-choice input:checked + .plan-card{
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.028))!important;
  border-color:rgba(255,255,255,.34)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)!important;
}
.plan-price{color:#fff!important;font-size:18px!important}
.mono,code,.secret,.live-log{font-family:"SFMono-Regular","Cascadia Code",Consolas,monospace!important}
.ypn-lang-switch{
  display:inline-flex;align-items:center;gap:3px;
  padding:4px;border:1px solid var(--ypn-line-soft);
  border-radius:999px;background:rgba(10,10,10,.78);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  position:relative;
}
.ypn-lang-switch button{
  min-height:32px!important;padding:6px 10px!important;border-radius:999px!important;
  background:transparent!important;color:#777!important;border:0!important;font-size:11px!important;font-weight:700!important;
}
.ypn-lang-switch button.active{background:rgba(255,255,255,.09)!important;color:#fff!important}
.ypn-lang-tip{
  position:absolute;right:0;top:45px;width:max-content;max-width:190px;
  padding:9px 11px;border-radius:12px;color:#ddd;font-size:11px;line-height:1.35;
  border:1px solid rgba(255,255,255,.13);background:rgba(18,18,18,.96);
  box-shadow:0 12px 40px rgba(0,0,0,.32);
  animation:ypn-tip-in .32s ease both;
}
.ypn-lang-tip::before{content:"";position:absolute;right:24px;top:-5px;width:9px;height:9px;background:#121212;border-left:1px solid rgba(255,255,255,.13);border-top:1px solid rgba(255,255,255,.13);transform:rotate(45deg)}
@keyframes ypn-tip-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
body.ypn-cabinet .auth-shell{padding-top:3vh!important}
body.ypn-cabinet .auth-card{width:min(1040px,100%)!important}
body.ypn-cabinet .ypn-globe-stage{display:block}
body:not(.ypn-cabinet) .ypn-globe-stage{display:none}
body.ypn-admin .admin-shell,body.ypn-admin .wrap{position:relative}
body.ypn-admin .admin-hero{background:rgba(12,12,12,.84)!important}
body.ypn-static .hero{
  position:relative!important;text-align:left!important;
  padding:clamp(72px,10vw,132px) 0 54px!important;
}
body.ypn-static .hero-title{
  font-size:clamp(62px,11vw,138px)!important;
  line-height:.9!important;letter-spacing:-.075em!important;
}
body.ypn-static .hero-sub{font-size:clamp(16px,2vw,22px)!important;color:#888!important}
body.ypn-static .card{background:rgba(12,12,12,.82)!important}
@media (max-width:900px){
  .ypn-globe-stage{width:72vw;right:-14vw;top:76px;opacity:.42}
  body.ypn-cabinet .auth-card{width:min(760px,100%)!important}
  .wrap,.shell{padding-left:12px!important;padding-right:12px!important}
}
@media (max-width:720px){
  body{font-size:15px}
  .top,.topbar{border-radius:20px!important}
  .ypn-globe-stage{width:108vw;right:-46vw;top:95px;opacity:.30}
  #ypn-route-canvas{opacity:.38}
  .card,.soft-card,.admin-hero,.auth-card,.guide,.vpn-guide{border-radius:22px!important}
  body.ypn-static .hero{padding:54px 4px 34px!important}
  body.ypn-static .hero-title{font-size:clamp(54px,18vw,82px)!important}
}
@media (max-width:460px){
  .ypn-lang-switch button{padding:5px 8px!important}
  .ypn-lang-tip{right:-6px;max-width:168px}
  .ypn-globe-stage{opacity:.24}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ypn-globe-core{animation:none!important}
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
@media (hover:none){button:hover,.btn:hover,.plan-card:hover,.client-item:hover{transform:none!important}}

html.ypn-telegram body{
  padding-top:max(0px,env(safe-area-inset-top))!important;
  padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
}
html.ypn-telegram .top,
html.ypn-telegram .topbar{
  top:max(6px,env(safe-area-inset-top))!important;
}
html.ypn-telegram #ypn-route-canvas{opacity:.30!important}
html.ypn-telegram .ypn-globe-stage{opacity:.20!important}
html.ypn-telegram .card,
html.ypn-telegram .soft-card,
html.ypn-telegram .auth-card{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
@supports(content-visibility:auto){
  body.ypn-static main.card,
  body.ypn-admin section.soft-card{
    content-visibility:auto;
    contain-intrinsic-size:700px;
  }
}

.ypn-main-nav{
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  align-items:center!important;
  gap:18px!important;
  position:sticky!important;
  top:12px!important;
  z-index:50!important;
}
.ypn-main-nav .brand{min-width:max-content}
.ypn-nav-links{
  display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;
}
.ypn-nav-links a{
  color:#8e8e8e;text-decoration:none;font-size:12px;font-weight:620;
  padding:9px 11px;border-radius:999px;transition:.16s ease;
}
.ypn-nav-links a:hover{color:#fff;background:rgba(255,255,255,.05)}
.ypn-account-link{
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.035)!important;
  border-radius:999px!important;
}
.ypn-home-hero{
  min-height:min(700px,74vh);
  display:flex!important;flex-direction:column;justify-content:center;
  align-items:flex-start!important;text-align:left!important;
  max-width:900px;padding:100px 0 76px!important;
}
.ypn-home-hero h1{
  margin:10px 0 24px!important;
  font-size:clamp(58px,8.6vw,132px)!important;
  line-height:.88!important;
  letter-spacing:-.072em!important;
  font-weight:780!important;
}
.ypn-home-hero h1 span{color:#b9b9b9}
.ypn-home-hero p{
  margin:0!important;color:#a0a0a0!important;
  font-size:clamp(18px,2vw,26px)!important;line-height:1.5!important;
}
.ypn-hero-actions{margin-top:28px!important}
.ypn-hero-actions .btn{min-width:180px}
.ypn-network-chip{
  margin-top:34px;display:inline-flex;align-items:center;gap:11px;
  padding:12px 15px;border-radius:18px;border:1px solid var(--ypn-line-soft);
  background:rgba(12,12,12,.64);backdrop-filter:blur(16px);
}
.ypn-network-chip>span{
  width:9px;height:9px;border-radius:50%;background:var(--ypn-good);
  box-shadow:0 0 18px rgba(80,227,164,.55);
}
.ypn-network-chip b,.ypn-network-chip small{display:block}
.ypn-network-chip b{font-size:13px}.ypn-network-chip small{font-size:11px;color:#737373;margin-top:2px}
.ypn-feature-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:26px;
}
.ypn-feature-strip>div{
  padding:18px;border-radius:20px;border:1px solid var(--ypn-line-soft);
  background:rgba(12,12,12,.70);
}
.ypn-feature-strip b,.ypn-feature-strip span{display:block}
.ypn-feature-strip b{font-size:14px;margin-bottom:5px}
.ypn-feature-strip span{font-size:12px;color:#777;line-height:1.4}
.ypn-home-plans,.ypn-device-section,.ypn-support-section{
  margin-top:22px;padding:24px;border-radius:28px;
  border:1px solid var(--ypn-line-soft);background:rgba(10,10,10,.72);
}
.ypn-home-plans .plan-card .btn{margin-top:18px;width:100%}
.ypn-section-title{padding:72px 4px 18px}
.ypn-section-title h2,.ypn-device-section h2,.ypn-support-section h2{font-size:clamp(30px,4vw,46px)!important;margin:7px 0 0!important}
.ypn-device-section .ypn-manual-links{
  display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;
  position:static!important;margin:16px 0 0!important;padding:0!important;
}
.ypn-device-section .ypn-manual-link{
  min-height:120px!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
  padding:18px!important;border-radius:20px!important;
  border:1px solid var(--ypn-line-soft)!important;background:rgba(255,255,255,.025)!important;
  color:#fff!important;text-decoration:none!important;
}
.ypn-device-section .ypn-manual-link strong{font-size:18px!important}
.ypn-device-section .ypn-manual-link span{font-size:12px!important;color:#777!important;margin-top:5px!important}
.ypn-support-section{
  display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:18px;
}
.ypn-support-section p{margin:8px 0 0!important}
@media(max-width:960px){
  .ypn-main-nav{grid-template-columns:auto auto!important}
  .ypn-nav-links{display:none}
  .ypn-main-nav .top-actions{justify-self:end}
  .ypn-feature-strip{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .ypn-main-nav{top:6px!important}
  .ypn-main-nav .brand-sub{display:none!important}
  .ypn-home-hero{min-height:auto;padding:86px 2px 48px!important}
  .ypn-home-hero h1{font-size:clamp(52px,16vw,80px)!important}
  .ypn-home-hero p{font-size:17px!important}
  .ypn-feature-strip{grid-template-columns:1fr 1fr}
  .ypn-home-plans,.ypn-device-section,.ypn-support-section{padding:18px;border-radius:22px}
  .ypn-device-section .ypn-manual-links{grid-template-columns:1fr!important}
  .ypn-support-section{align-items:flex-start;flex-direction:column}
  .ypn-support-section .btn{width:100%}
}

.ypn-cabinet-layout{
  width:min(1180px,100%);margin:0 auto;padding:26px 0 54px;
  display:grid;gap:16px;
}
.ypn-cabinet-hero{
  position:relative;min-height:240px;padding:30px 32px;
  display:grid;grid-template-columns:minmax(320px,1.3fr) minmax(380px,.9fr);
  gap:24px;align-items:end;
  border:1px solid var(--ypn-line-soft);border-radius:30px;
  background:linear-gradient(90deg,rgba(8,8,8,.88),rgba(8,8,8,.62) 58%,rgba(8,8,8,.24));
  overflow:hidden;
}
.ypn-account-main{display:flex;align-items:center;gap:18px;align-self:center}
.ypn-account-avatar{
  width:72px;height:72px;flex:0 0 72px;border-radius:50%;
  display:grid;place-items:center;font-size:25px;font-weight:760;
  background:linear-gradient(180deg,#1c1c1c,#111);
  border:1px solid rgba(255,255,255,.13);
}
.ypn-account-main h1{margin:5px 0 6px!important;font-size:clamp(34px,5vw,58px)!important}
.ypn-account-main p{margin:0!important;color:#aaa!important}
.ypn-dot-sep{color:#555;margin:0 7px}.ypn-verified{color:var(--ypn-good);font-size:10px;margin-right:4px}
.ypn-account-status{
  display:grid;grid-template-columns:repeat(3,1fr);gap:9px;align-self:end;
}
.ypn-status-card{
  min-height:78px;padding:14px 15px;border-radius:18px;
  border:1px solid var(--ypn-line-soft);background:rgba(255,255,255,.025);
}
.ypn-status-card small,.ypn-status-card strong{display:block}
.ypn-status-card small{font-size:11px;color:#777;margin-bottom:7px}
.ypn-status-card strong{font-size:14px;line-height:1.2}
.ypn-admin-switch{position:absolute;right:28px;top:24px;margin:0!important}
.ypn-admin-switch button{min-height:36px!important;padding:7px 12px!important;font-size:11px!important;border-radius:999px!important}
.ypn-pending-order{margin:0!important;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ypn-pending-order span{width:100%;font-size:11px;color:#888;margin-top:3px}
.ypn-plan-section{
  padding:26px;border:1px solid var(--ypn-line-soft);border-radius:28px;background:rgba(9,9,9,.70);
}
.ypn-cabinet-plan-grid{gap:14px!important}
.ypn-sub-card{
  padding:22px!important;display:flex!important;flex-direction:column!important;cursor:default!important;
}
.ypn-sub-card.featured{border-color:rgba(255,255,255,.22)!important}
.ypn-plan-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.ypn-plan-head strong{font-size:27px!important;letter-spacing:-.04em}
.ypn-plan-head span{font-size:13px!important;margin-top:4px}
.ypn-price-big{font-size:29px;font-weight:750;letter-spacing:-.04em;white-space:nowrap;text-align:right}
.ypn-price-big small{display:block;font-size:11px;font-weight:500;color:#777;margin-top:3px}
.ypn-plan-features{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 4px}
.ypn-plan-features span{
  display:inline-flex!important;padding:7px 9px;border-radius:999px;
  background:rgba(255,255,255,.035);border:1px solid var(--ypn-line-soft);
  color:#a8a8a8!important;font-size:11px!important;
}
.ypn-sub-card select{margin-bottom:12px}
.ypn-sub-card button{width:100%;margin-top:auto}
.ypn-cabinet-features{margin:0!important}
.ypn-cabinet-logout{display:flex;justify-content:flex-end}
.ypn-cabinet-logout button{min-width:170px}
body.ypn-cabinet .ypn-globe-stage{top:44px;right:0;width:min(53vw,760px);opacity:.54}
body.ypn-cabinet .wrap{max-width:1360px}
body.ypn-cabinet .top{background:rgba(7,7,7,.58)!important}
@media(max-width:980px){
  .ypn-cabinet-hero{grid-template-columns:1fr;padding-top:72px}
  .ypn-account-status{max-width:620px}
  body.ypn-cabinet .ypn-globe-stage{right:-22vw;width:80vw;opacity:.28}
}
@media(max-width:720px){
  .ypn-cabinet-layout{padding-top:10px;gap:12px}
  .ypn-cabinet-hero{padding:68px 18px 18px;min-height:300px;border-radius:24px}
  .ypn-account-main{align-items:flex-start}
  .ypn-account-avatar{width:54px;height:54px;flex-basis:54px;font-size:18px}
  .ypn-account-main h1{font-size:34px!important}
  .ypn-account-main p{font-size:12px!important}
  .ypn-account-status{grid-template-columns:1fr 1fr}
  .ypn-status-card:last-child{grid-column:1/-1}
  .ypn-admin-switch{right:16px;top:15px}
  .ypn-plan-section{padding:17px;border-radius:22px}
  .ypn-plan-head{gap:10px}
  .ypn-plan-head strong{font-size:23px!important}
  .ypn-price-big{font-size:22px}
  body.ypn-cabinet .ypn-globe-stage{width:115vw;right:-56vw;top:72px;opacity:.20}
  .ypn-cabinet-logout button{width:100%}
}

/* YPN authenticated application shell */
body.ypn-client-shell{padding:0!important;background:#050505!important}
.ypn-app-layout{position:relative;z-index:2;min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}
.ypn-sidebar{position:sticky;top:0;height:100vh;padding:20px 14px 16px;border-right:1px solid rgba(255,255,255,.07);background:rgba(6,6,6,.88);backdrop-filter:blur(20px);display:flex;flex-direction:column;gap:24px;z-index:40}
.ypn-side-brand{display:flex;align-items:center;gap:11px;padding:4px 8px;color:#fff;text-decoration:none}
.ypn-side-brand img{width:42px;height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.16)}
.ypn-side-brand b,.ypn-side-brand small{display:block}.ypn-side-brand b{font-size:18px;letter-spacing:.13em}.ypn-side-brand small{margin-top:3px;font-size:7px;color:#6f6f6f;letter-spacing:.17em}
.ypn-side-nav{display:grid;gap:5px}
.ypn-side-link{display:flex;align-items:center;gap:11px;min-height:46px;padding:9px 11px;border-radius:14px;color:#888;text-decoration:none;font-size:13px;font-weight:620;border:1px solid transparent;transition:.16s ease}
.ypn-side-link:hover{color:#e9e9e9;background:rgba(255,255,255,.035)}
.ypn-side-link.active{color:#fff;background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.08)}
.ypn-side-icon{width:25px;height:25px;display:grid;place-items:center;flex:0 0 25px}
.ypn-side-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ypn-side-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 10px;border-top:1px solid rgba(255,255,255,.06)}
.ypn-side-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#171717;border:1px solid rgba(255,255,255,.10);font-size:11px;font-weight:750}
.ypn-side-user b,.ypn-side-user small{display:block}.ypn-side-user b{font-size:12px}.ypn-side-user small{font-size:10px;color:#6f6f6f;margin-top:2px}
.ypn-client-main{min-width:0;padding:0 28px 52px}
.ypn-client-top{height:72px;display:flex;align-items:center;justify-content:flex-end;position:sticky;top:0;z-index:35;background:linear-gradient(180deg,rgba(5,5,5,.96),rgba(5,5,5,.72),transparent)}
.ypn-client-mobile-brand{display:none;align-items:center;gap:9px}.ypn-client-mobile-brand img{width:34px;height:34px;border-radius:11px}.ypn-client-mobile-brand b{letter-spacing:.13em}
.ypn-page-head{min-height:150px;display:flex;align-items:flex-end;justify-content:space-between;padding:24px 2px}
.ypn-page-head h1{font-size:clamp(42px,5vw,72px)!important;margin:5px 0 7px!important}.ypn-page-head p{margin:0!important;font-size:14px}
.ypn-overview-card{padding:22px;border:1px solid var(--ypn-line-soft);border-radius:26px;background:rgba(12,12,12,.72);display:flex;align-items:center;justify-content:space-between;gap:24px}
.ypn-overview-user{display:flex;align-items:center;gap:14px;min-width:230px}.ypn-overview-user small,.ypn-overview-user strong,.ypn-overview-user span{display:block}.ypn-overview-user small{font-size:10px;color:#666;text-transform:uppercase;letter-spacing:.12em}.ypn-overview-user strong{margin-top:2px;font-size:18px}.ypn-overview-user span{margin-top:3px;font-size:11px;color:#777}
.ypn-overview-stats{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ypn-overview-stats>div{padding:13px 14px;border-radius:17px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}.ypn-overview-stats small,.ypn-overview-stats strong{display:block}.ypn-overview-stats small{font-size:10px;color:#666;margin-bottom:5px}.ypn-overview-stats strong{font-size:13px}
.ypn-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.ypn-home-action{min-height:104px;padding:18px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:13px;color:#fff;text-decoration:none;border-radius:22px;border:1px solid var(--ypn-line-soft);background:rgba(12,12,12,.68);transition:.16s ease}
.ypn-home-action:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.15);transform:translateY(-1px)}.ypn-home-action .ypn-side-icon{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.045)}.ypn-home-action b,.ypn-home-action small{display:block}.ypn-home-action b{font-size:15px}.ypn-home-action small{margin-top:4px;color:#777;font-size:11px}.ypn-home-action i{font-style:normal;color:#777}
.ypn-alert-sub{display:block;margin-top:5px;font-size:11px;color:#888}
.ypn-plans-page{margin-top:0!important}
.ypn-info-note{margin-top:14px;padding:15px 17px;border-radius:17px;border:1px solid var(--ypn-line-soft);background:rgba(255,255,255,.025);color:#888;font-size:12px}
.ypn-device-list{display:grid;gap:9px}.ypn-device-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px;border-radius:20px;border:1px solid var(--ypn-line-soft);background:rgba(12,12,12,.7)}.ypn-device-card small,.ypn-device-card strong{display:block}.ypn-device-card small{font-size:10px;color:#666;margin-bottom:5px}.ypn-device-card strong{font-size:14px}
.ypn-empty{min-height:220px;border:1px dashed rgba(255,255,255,.10);border-radius:22px;display:grid;place-content:center;text-align:center;gap:6px;color:#777}.ypn-empty b{color:#ddd}.ypn-empty span{font-size:12px}.ypn-empty.compact{min-height:80px}
.ypn-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ypn-doc-card{padding:22px;border-radius:23px;border:1px solid var(--ypn-line-soft);background:rgba(12,12,12,.7)}.ypn-doc-card.featured{grid-column:1/-1;background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.015))}.ypn-doc-card>small{display:block;color:#575757;font-size:10px;letter-spacing:.14em;margin-bottom:16px}.ypn-doc-card h2{font-size:22px!important;margin:0 0 9px!important}.ypn-doc-card p{margin:0!important;font-size:13px}
.ypn-support-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:12px}.ypn-thread-list,.ypn-chat{border:1px solid var(--ypn-line-soft);border-radius:23px;background:rgba(12,12,12,.7);padding:15px}.ypn-thread-list textarea{min-height:90px}.ypn-thread-list button{width:100%;margin-top:8px}
.ypn-thread-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border-radius:13px;text-decoration:none;color:#aaa}.ypn-thread-link:hover,.ypn-thread-link.active{background:rgba(255,255,255,.055);color:#fff}.ypn-thread-link b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ypn-thread-link span{font-size:9px;color:#666}
.ypn-chat{padding:0;overflow:hidden}.ypn-chat-head{min-height:68px;padding:14px 16px;border-bottom:1px solid var(--ypn-line-soft);display:flex;align-items:center;justify-content:space-between}.ypn-chat-head small,.ypn-chat-head b{display:block}.ypn-chat-head small{font-size:9px;color:#666}.ypn-chat-head b{font-size:13px;margin-top:3px}.ypn-chat-body{min-height:320px;max-height:54vh;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:9px}
.ypn-chat-msg{max-width:min(74%,620px);padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06);font-size:12px;line-height:1.5}.ypn-chat-msg.mine{align-self:flex-end;background:rgba(255,255,255,.10)}.ypn-chat-msg.staff{align-self:flex-start}.ypn-chat-msg small{display:block;color:#666;font-size:9px;margin-bottom:4px}.ypn-chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid var(--ypn-line-soft)}.ypn-chat-compose textarea{min-height:52px!important;height:52px;resize:none}.ypn-chat-compose button{min-width:100px}
@media(max-width:980px){.ypn-app-layout{grid-template-columns:84px minmax(0,1fr)}.ypn-side-brand div,.ypn-side-link>span:last-child,.ypn-side-user>div:last-child{display:none}.ypn-sidebar{align-items:center;padding-inline:10px}.ypn-side-nav{width:100%}.ypn-side-link{justify-content:center}.ypn-side-user{justify-content:center}.ypn-overview-card{align-items:flex-start;flex-direction:column}.ypn-overview-stats{width:100%}.ypn-support-layout{grid-template-columns:260px 1fr}}
@media(max-width:720px){body.ypn-client-shell{padding:0!important}.ypn-app-layout{display:block;padding-bottom:74px}.ypn-sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:66px;padding:7px 8px max(7px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid rgba(255,255,255,.08);display:block;z-index:90}.ypn-side-brand,.ypn-side-user{display:none}.ypn-side-nav{display:flex;gap:3px;overflow-x:auto;scrollbar-width:none}.ypn-side-nav::-webkit-scrollbar{display:none}.ypn-side-link{min-width:55px;height:50px;min-height:50px;padding:5px;justify-content:center;flex-direction:column;gap:2px;border-radius:12px}.ypn-side-link>span:last-child{display:block;font-size:8px;white-space:nowrap}.ypn-side-icon{width:21px;height:21px}.ypn-side-icon svg{width:17px;height:17px}.ypn-client-main{padding:0 12px 28px}.ypn-client-top{height:58px;justify-content:space-between}.ypn-client-mobile-brand{display:flex}.ypn-page-head{min-height:120px;padding:16px 2px}.ypn-page-head h1{font-size:42px!important}.ypn-overview-card{padding:15px;border-radius:21px}.ypn-overview-stats{grid-template-columns:1fr 1fr}.ypn-home-grid{grid-template-columns:1fr}.ypn-home-action{min-height:86px}.ypn-doc-grid{grid-template-columns:1fr}.ypn-doc-card.featured{grid-column:auto}.ypn-support-layout{grid-template-columns:1fr}.ypn-thread-list{order:2}.ypn-chat-body{min-height:260px}.ypn-chat-compose{grid-template-columns:1fr}.ypn-chat-compose button{width:100%}}

.ypn-support-empty-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:12px}
.ypn-support-new-card,.ypn-support-side-info>*,.ypn-support-channel{
  border:1px solid var(--ypn-line-soft);background:rgba(12,12,12,.72);border-radius:24px
}
.ypn-support-new-card{padding:24px}.ypn-support-new-card h2{font-size:30px!important;margin:7px 0 7px!important}.ypn-support-new-card p{margin:0 0 16px!important}.ypn-support-new-card textarea{min-height:170px!important}
.ypn-support-new-card button{width:100%;margin-top:10px}.ypn-support-new-card.standalone{max-width:760px}
.ypn-support-side-info{display:grid;gap:10px;align-content:start}.ypn-support-fact{padding:18px}.ypn-support-fact small,.ypn-support-fact strong,.ypn-support-fact span{display:block}.ypn-support-fact small{color:#666;font-size:9px;text-transform:uppercase;letter-spacing:.12em}.ypn-support-fact strong{font-size:15px;margin-top:6px}.ypn-support-fact span{font-size:11px;color:#777;margin-top:5px;line-height:1.45}
.ypn-support-channel{padding:16px;display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center}.ypn-support-channel-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.05);border:1px solid var(--ypn-line-soft);font-size:11px;font-weight:750}.ypn-support-channel b,.ypn-support-channel span{display:block}.ypn-support-channel b{font-size:13px}.ypn-support-channel span{font-size:10px;color:#707070;margin-top:3px;line-height:1.4}.ypn-support-channel button{min-height:34px!important;padding:7px 10px!important;font-size:10px!important;opacity:.5;cursor:not-allowed}
.ypn-thread-list-head{display:flex;justify-content:space-between;align-items:center;padding:4px 7px 12px}.ypn-thread-list-head b{font-size:12px}.ypn-thread-list-head a{font-size:10px;color:#aaa;text-decoration:none}.ypn-thread-list-head a:hover{color:#fff}
.ypn-thread-link div{min-width:0}.ypn-thread-link small{display:block;color:#555;font-size:8px;margin-top:2px}
.ypn-expiry-date{display:block;font-size:10px;color:#666;margin-top:5px}
.ypn-legacy-link{margin-top:14px;padding:14px 16px;border-radius:17px;border:1px solid var(--ypn-line-soft);background:rgba(255,255,255,.02);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#777}.ypn-legacy-link a{color:#ddd;text-decoration:none}.ypn-legacy-link a:hover{color:#fff}
@media(max-width:820px){.ypn-support-empty-grid{grid-template-columns:1fr}.ypn-support-side-info{grid-template-columns:1fr 1fr}.ypn-support-channel{grid-column:1/-1}}
@media(max-width:560px){.ypn-support-side-info{grid-template-columns:1fr}.ypn-support-channel{grid-column:auto}.ypn-legacy-link{align-items:flex-start;flex-direction:column}}

body.ypn-page-admin{padding-left:92px!important}
.ypn-admin-rail{
  position:fixed;left:12px;top:12px;bottom:12px;width:66px;z-index:80;
  border:1px solid var(--ypn-line-soft);border-radius:23px;background:rgba(7,7,7,.88);
  backdrop-filter:blur(20px);display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 7px;
}
.ypn-admin-rail-brand{width:46px;height:46px;padding:0!important;margin-bottom:5px}.ypn-admin-rail-brand img{width:46px;height:46px;border-radius:14px;border:1px solid rgba(255,255,255,.13)}
.ypn-admin-rail>a:not(.ypn-admin-rail-brand){width:52px;min-height:52px;border-radius:14px;color:#777;text-decoration:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;transition:.16s ease}
.ypn-admin-rail>a:not(.ypn-admin-rail-brand):hover{background:rgba(255,255,255,.055);color:#fff}
.ypn-admin-rail span{width:21px;height:21px;display:grid;place-items:center}.ypn-admin-rail svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ypn-admin-rail small{font-size:7px;color:inherit;max-width:50px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:720px){
  body.ypn-page-admin{padding-left:12px!important;padding-bottom:82px!important}
  .ypn-admin-rail{left:8px;right:8px;top:auto;bottom:8px;width:auto;height:62px;flex-direction:row;justify-content:space-around;padding:6px 8px;border-radius:19px}
  .ypn-admin-rail-brand{display:none}
  .ypn-admin-rail>a:not(.ypn-admin-rail-brand){width:58px;min-height:48px}
}

.ypn-access-card{padding:24px;border:1px solid var(--ypn-line-soft);border-radius:28px;background:rgba(10,10,10,.72)}
.ypn-access-top{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.ypn-access-title{display:flex;align-items:center;gap:10px;margin-top:6px}.ypn-access-title h2{font-size:42px!important;margin:0!important;letter-spacing:-.055em!important}
.ypn-access-remaining{text-align:right}.ypn-access-remaining small,.ypn-access-remaining strong,.ypn-access-remaining span{display:block}.ypn-access-remaining small{font-size:10px;color:#666;text-transform:uppercase;letter-spacing:.12em}.ypn-access-remaining strong{font-size:28px;margin-top:5px;letter-spacing:-.035em}.ypn-access-remaining span{font-size:10px;color:#666;margin-top:3px}
.ypn-access-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:22px}.ypn-access-stats>div{padding:14px;border-radius:17px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}.ypn-access-stats small,.ypn-access-stats strong{display:block}.ypn-access-stats small{font-size:10px;color:#666;margin-bottom:5px}.ypn-access-stats strong{font-size:14px}
.ypn-access-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.ypn-access-actions .btn{min-width:190px}
.ypn-access-note{margin:14px 0 0!important;font-size:11px!important;color:#777!important;max-width:760px}
@media(max-width:720px){.ypn-access-card{padding:18px;border-radius:22px}.ypn-access-top{flex-direction:column}.ypn-access-remaining{text-align:left}.ypn-access-title h2{font-size:34px!important}.ypn-access-stats{grid-template-columns:1fr}.ypn-access-actions{display:grid}.ypn-access-actions .btn{width:100%}}

/* Support as a real messenger */
.ypn-support-page-head{min-height:108px!important;padding-bottom:14px!important}
.ypn-support-telegram{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:16px;border:1px solid var(--ypn-line-soft);background:rgba(255,255,255,.025)}
.ypn-support-telegram>span{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.05);font-size:10px;font-weight:750}
.ypn-support-telegram b,.ypn-support-telegram small{display:block}.ypn-support-telegram b{font-size:12px}.ypn-support-telegram small{font-size:9px;color:#666;margin-top:2px}

.ypn-messenger-client{
  height:min(720px,calc(100vh - 190px));
  min-height:540px;
  border:1px solid var(--ypn-line-soft);
  border-radius:26px;
  background:rgba(9,9,9,.84);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 22px 70px rgba(0,0,0,.22);
}
.ypn-messenger-header{
  height:72px;flex:0 0 72px;padding:0 18px;
  display:flex;align-items:center;gap:12px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(14,14,14,.92);
}
.ypn-messenger-header b,.ypn-messenger-header span{display:block}
.ypn-messenger-header b{font-size:14px}
.ypn-messenger-header span{font-size:10px;color:#777;margin-top:3px}
.ypn-messenger-header span i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ypn-good);margin-right:5px;box-shadow:0 0 10px rgba(80,227,164,.45)}
.ypn-messenger-avatar{width:62px;height:62px;border-radius:19px;display:grid;place-items:center;background:linear-gradient(180deg,#1c1c1c,#0e0e0e);border:1px solid rgba(255,255,255,.12);font-size:24px;font-weight:780}
.ypn-messenger-avatar.small{width:42px;height:42px;border-radius:14px;font-size:16px}

.ypn-messenger-body{
  flex:1;overflow-y:auto;padding:22px 20px 18px;
  display:flex;flex-direction:column;gap:9px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent;
  background:
    radial-gradient(circle at 50% 0,rgba(255,255,255,.018),transparent 34%),
    transparent;
}
.ypn-msg-row{display:flex;width:100%}
.ypn-msg-row.mine{justify-content:flex-end}.ypn-msg-row.theirs{justify-content:flex-start}
.ypn-msg-bubble{
  max-width:min(72%,680px);
  padding:10px 13px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.07);
  font-size:13px;line-height:1.5;
}
.ypn-msg-row.mine .ypn-msg-bubble{background:#ededed;color:#0b0b0b;border-bottom-right-radius:6px}
.ypn-msg-row.theirs .ypn-msg-bubble{background:rgba(255,255,255,.055);color:#eee;border-bottom-left-radius:6px}
.ypn-msg-bubble small{display:block;font-size:8px;margin-bottom:4px;opacity:.55;font-weight:650}
.ypn-messenger-welcome{margin:auto;max-width:430px;text-align:center;display:grid;justify-items:center;gap:9px;padding:30px}
.ypn-messenger-welcome h2{margin:7px 0 0!important;font-size:24px!important}
.ypn-messenger-welcome p{margin:0!important;font-size:12px!important;line-height:1.55!important}

.ypn-messenger-compose{
  min-height:72px;padding:10px 12px;
  display:grid;grid-template-columns:1fr 46px;gap:9px;align-items:end;
  border-top:1px solid rgba(255,255,255,.07);
  background:rgba(13,13,13,.96);
}
.ypn-messenger-compose textarea{
  min-height:46px!important;max-height:140px!important;height:46px;
  padding:13px 14px!important;resize:none!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.045)!important;
  line-height:1.45!important;
}
.ypn-send-button{
  width:46px;height:46px;min-height:46px!important;padding:0!important;
  border-radius:50%!important;border:0!important;
  display:grid!important;place-items:center;
  background:#f2f2f2!important;color:#080808!important;
  font-size:22px!important;line-height:1!important;
}
.ypn-send-button:disabled{opacity:.45}
@media(max-width:720px){
  .ypn-support-page-head{min-height:86px!important;padding-top:8px!important}
  .ypn-support-page-head h1{font-size:34px!important}
  .ypn-support-telegram{display:none}
  .ypn-messenger-client{height:calc(100dvh - 160px);min-height:470px;border-radius:21px}
  .ypn-messenger-header{height:62px;flex-basis:62px;padding:0 13px}
  .ypn-messenger-body{padding:16px 11px}
  .ypn-msg-bubble{max-width:84%;font-size:12px}
  .ypn-messenger-compose{padding:8px;grid-template-columns:1fr 44px}
  .ypn-send-button{width:44px;height:44px;min-height:44px!important}
}

/* Admin support uses the same messenger language */
body.ypn-page-admin .ypn-support-layout{
  height:min(720px,calc(100vh - 250px));
  min-height:520px;
  grid-template-columns:310px minmax(0,1fr)!important;
  gap:0!important;
  border:1px solid var(--ypn-line-soft);
  border-radius:25px;
  overflow:hidden;
  background:rgba(9,9,9,.82);
}
body.ypn-page-admin .ypn-support-layout>.ypn-thread-list{
  border:0!important;border-right:1px solid rgba(255,255,255,.07)!important;
  border-radius:0!important;background:rgba(13,13,13,.92)!important;
  padding:10px!important;overflow-y:auto;
}
body.ypn-page-admin .ypn-support-layout .ypn-thread-link{
  min-height:58px;padding:10px 11px!important;border-radius:14px!important;
}
body.ypn-page-admin .ypn-support-layout .ypn-thread-link.active{
  background:rgba(255,255,255,.075)!important;
}
body.ypn-page-admin .ypn-support-layout>div{min-width:0}
body.ypn-page-admin .ypn-support-layout .ypn-chat{
  height:100%;border:0!important;border-radius:0!important;background:transparent!important;
  display:flex;flex-direction:column;
}
body.ypn-page-admin .ypn-support-layout .ypn-chat-head{
  height:68px;flex:0 0 68px;padding:0 17px!important;background:rgba(14,14,14,.92);
}
body.ypn-page-admin .ypn-support-layout .ypn-chat-body{
  flex:1;min-height:0!important;max-height:none!important;padding:18px!important;
}
body.ypn-page-admin .ypn-support-layout .ypn-chat-msg{
  max-width:72%;padding:10px 13px!important;border-radius:18px!important;
  background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.07)!important;
}
body.ypn-page-admin .ypn-support-layout .ypn-chat-msg.mine{
  align-self:flex-end;background:#ededed!important;color:#0b0b0b!important;border-bottom-right-radius:6px!important;
}
body.ypn-page-admin .ypn-support-layout .ypn-chat-msg.staff{
  align-self:flex-start;border-bottom-left-radius:6px!important;
}
body.ypn-page-admin .ypn-support-layout .ypn-chat-compose{
  min-height:70px;padding:9px 11px!important;grid-template-columns:1fr auto!important;
  background:rgba(13,13,13,.96);
}
@media(max-width:800px){
  body.ypn-page-admin .ypn-support-layout{grid-template-columns:1fr!important;height:auto;min-height:0}
  body.ypn-page-admin .ypn-support-layout>.ypn-thread-list{border-right:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;max-height:220px}
  body.ypn-page-admin .ypn-support-layout .ypn-chat{min-height:520px}
}

/* Messenger micro-interactions */
.ypn-msg-new{
  opacity:0;
  transform:translate3d(0,10px,0) scale(.965);
  transform-origin:80% 100%;
}
.ypn-msg-new.theirs{transform-origin:20% 100%}
.ypn-msg-new.show{
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  transition:
    opacity 180ms cubic-bezier(.2,.75,.25,1),
    transform 260ms cubic-bezier(.2,.85,.25,1.08);
}
.ypn-msg-bubble{
  transform:translateZ(0);
  -webkit-font-smoothing:antialiased;
}
.ypn-messenger-compose{
  position:relative;
  grid-template-columns:42px minmax(0,1fr) 46px!important;
  transition:background 160ms ease,border-color 160ms ease;
}
.ypn-messenger-compose:focus-within{
  background:rgba(17,17,17,.98);
}
.ypn-emoji-wrap{position:relative;align-self:end}
.ypn-emoji-button{
  width:42px;height:46px;min-height:46px!important;padding:0!important;
  border:0!important;border-radius:50%!important;
  background:transparent!important;color:#8c8c8c!important;
  font-size:23px!important;line-height:1!important;
  transition:transform 150ms ease,color 150ms ease,background 150ms ease!important;
}
.ypn-emoji-button:hover{color:#fff!important;background:rgba(255,255,255,.055)!important}
.ypn-emoji-button:active{transform:scale(.88)}
.ypn-emoji-picker{
  position:absolute;left:0;bottom:57px;
  width:252px;padding:9px;
  display:grid;grid-template-columns:repeat(6,1fr);gap:3px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(18,18,18,.97);
  box-shadow:0 18px 60px rgba(0,0,0,.42);
  backdrop-filter:blur(22px);
  opacity:0;transform:translate3d(0,8px,0) scale(.96);
  transform-origin:20px 100%;
  transition:opacity 130ms ease,transform 170ms cubic-bezier(.2,.8,.2,1);
  z-index:20;
}
.ypn-emoji-picker[hidden]{display:none!important}
.ypn-emoji-picker.open{opacity:1;transform:translate3d(0,0,0) scale(1)}
.ypn-emoji-picker button{
  width:36px;height:36px;min-height:36px!important;padding:0!important;
  border:0!important;border-radius:10px!important;background:transparent!important;
  font-size:20px!important;transition:transform 110ms ease,background 110ms ease!important;
}
.ypn-emoji-picker button:hover{background:rgba(255,255,255,.07)!important;transform:scale(1.13)}
.ypn-emoji-picker button.picked{transform:scale(.82)}
.ypn-send-button{
  transition:
    transform 150ms cubic-bezier(.2,.8,.2,1),
    opacity 150ms ease,
    background 150ms ease!important;
}
.ypn-send-button:hover{transform:scale(1.05)}
.ypn-send-button:active{transform:scale(.90)}
.ypn-send-button.sending{transform:scale(.82) rotate(-12deg);opacity:.55}
.ypn-messenger-compose.sent .ypn-send-button{
  animation:ypn-send-pop 220ms cubic-bezier(.2,.8,.2,1);
}
@keyframes ypn-send-pop{
  0%{transform:scale(.88)}
  55%{transform:scale(1.10)}
  100%{transform:scale(1)}
}
.ypn-client-main>section,
.ypn-client-main>.ypn-cabinet-layout{
  animation:ypn-page-enter 260ms cubic-bezier(.2,.75,.25,1) both;
}
@keyframes ypn-page-enter{
  from{opacity:0;transform:translate3d(0,7px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@media(max-width:720px){
  .ypn-messenger-compose{grid-template-columns:40px minmax(0,1fr) 44px!important}
  .ypn-emoji-button{width:40px;height:44px;min-height:44px!important}
  .ypn-emoji-picker{left:-2px;bottom:54px;width:232px;grid-template-columns:repeat(6,1fr)}
  .ypn-emoji-picker button{width:33px;height:33px;min-height:33px!important;font-size:19px!important}
}
@media(prefers-reduced-motion:reduce){
  .ypn-msg-new,.ypn-msg-new.show{opacity:1!important;transform:none!important;transition:none!important}
  .ypn-send-button,.ypn-emoji-picker,.ypn-client-main>section,.ypn-client-main>.ypn-cabinet-layout{animation:none!important;transition:none!important}
}

.ypn-subscription-current,.ypn-renew-section,.ypn-device-connect{
  border:1px solid var(--ypn-line-soft);
  background:rgba(10,10,10,.72);
  border-radius:26px;
}
.ypn-subscription-current{padding:24px}
.ypn-subscription-main{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.ypn-subscription-title{display:flex;align-items:center;gap:10px;margin-top:7px}
.ypn-subscription-title h2{font-size:40px!important;margin:0!important}
.ypn-subscription-time{text-align:right}.ypn-subscription-time small,.ypn-subscription-time strong,.ypn-subscription-time span{display:block}
.ypn-subscription-time small{font-size:10px;color:#666;text-transform:uppercase;letter-spacing:.12em}
.ypn-subscription-time strong{font-size:25px;margin-top:5px}
.ypn-subscription-time span{font-size:10px;color:#666;margin-top:3px}
.ypn-subscription-features{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}
.ypn-subscription-features span{padding:7px 9px;border-radius:999px;border:1px solid var(--ypn-line-soft);background:rgba(255,255,255,.025);font-size:11px;color:#aaa}
.ypn-renew-section{margin-top:12px;padding:22px}
.ypn-renew-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}
.ypn-renew-card{padding:16px;border-radius:18px;border:1px solid var(--ypn-line-soft);background:rgba(255,255,255,.025)}
.ypn-renew-card small,.ypn-renew-card strong,.ypn-renew-card span{display:block}
.ypn-renew-card small{font-size:10px;color:#666}.ypn-renew-card strong{font-size:21px;margin-top:6px}.ypn-renew-card span{font-size:10px;color:#777;margin-top:4px}
.ypn-renew-section .actions{margin-top:14px}
.ypn-device-connect{margin-top:12px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.ypn-device-connect h2{margin:5px 0 6px!important}.ypn-device-connect p{margin:0!important;max-width:720px}
.ypn-device-connect-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:720px){
  .ypn-subscription-main,.ypn-device-connect{flex-direction:column}
  .ypn-subscription-time{text-align:left}
  .ypn-renew-grid{grid-template-columns:1fr}
  .ypn-device-connect-actions{display:grid;width:100%}
  .ypn-device-connect-actions .btn{width:100%}
}

body.ypn-page-admin .ypn-support-layout .ypn-admin-chat-compose{
  grid-template-columns:42px minmax(0,1fr) 46px!important;
  align-items:end!important;
}
body.ypn-page-admin .ypn-support-layout .ypn-admin-chat-compose textarea{
  min-height:46px!important;
  height:46px;
  max-height:140px!important;
  resize:none!important;
  border-radius:17px!important;
}
@media(max-width:720px){
  body.ypn-page-admin .ypn-support-layout .ypn-admin-chat-compose{
    grid-template-columns:40px minmax(0,1fr) 44px!important;
  }
}

/* Telegram identity / auth */
.ypn-auth-divider{
  display:flex;align-items:center;gap:12px;margin:14px 0;color:#5f5f5f;
  font-size:10px;text-transform:uppercase;letter-spacing:.12em;
}
.ypn-auth-divider:before,.ypn-auth-divider:after{
  content:"";height:1px;flex:1;background:rgba(255,255,255,.08);
}
.ypn-telegram-login{
  min-height:46px;border-radius:16px!important;
  background:#f2f2f2!important;color:#080808!important;
}
.ypn-telegram-card{
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;gap:14px;
  padding:16px 18px;margin:12px 0;
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;background:rgba(255,255,255,.025);
}
.ypn-telegram-card.linked{
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
}
.ypn-telegram-mark{
  width:46px;height:46px;border-radius:15px;
  display:grid;place-items:center;
  background:#f1f1f1;color:#090909;
  font-weight:800;font-size:12px;letter-spacing:.08em;
}
.ypn-telegram-copy{min-width:0}
.ypn-telegram-copy small,
.ypn-telegram-copy strong,
.ypn-telegram-copy span{display:block}
.ypn-telegram-copy small{
  font-size:9px;color:#686868;letter-spacing:.13em;
}
.ypn-telegram-copy strong{
  margin-top:3px;font-size:15px;color:#f0f0f0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ypn-telegram-copy span{margin-top:3px;font-size:11px;color:#7f7f7f}
@media(max-width:720px){
  .ypn-telegram-card{grid-template-columns:42px minmax(0,1fr);padding:14px}
  .ypn-telegram-card .btn,.ypn-telegram-card form{
    grid-column:1/-1;width:100%;
  }
  .ypn-telegram-card form button{width:100%}
  .ypn-telegram-mark{width:42px;height:42px;border-radius:14px}
}


/* YPN mobile polish v9: Telegram WebView + account sync */
a.btn,.ypn-device-connect-actions a,.ypn-legacy-link a{
  text-decoration:none!important;
  -webkit-tap-highlight-color:transparent;
}
select{
  -webkit-appearance:none!important;
  appearance:none!important;
  color-scheme:dark!important;
  min-height:48px!important;
  border-radius:14px!important;
  padding:0 42px 0 14px!important;
  background-color:#0d0d0d!important;
  background-image:
    linear-gradient(45deg,transparent 50%,#8a8a8a 50%),
    linear-gradient(135deg,#8a8a8a 50%,transparent 50%)!important;
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px!important;
  background-size:5px 5px,5px 5px!important;
  background-repeat:no-repeat!important;
}
select option{
  color:#f3f3f3!important;
  background:#111!important;
}
.ypn-sub-card label{
  margin:16px 0 7px!important;
  color:#858585!important;
  font-size:10px!important;
  font-weight:650!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}
.ypn-sub-card select{
  width:100%!important;
  margin:0 0 12px!important;
}
.ypn-sub-card .primary{
  min-height:48px!important;
  border-radius:14px!important;
  font-size:13px!important;
}
.ypn-device-connect{
  overflow:hidden!important;
  background:
    radial-gradient(circle at 100% 0,rgba(255,255,255,.05),transparent 38%),
    rgba(9,9,9,.82)!important;
}
.ypn-device-connect-actions{
  min-width:220px;
  display:grid!important;
  grid-template-columns:1fr!important;
}
.ypn-device-connect-actions .btn{
  min-height:46px!important;
  width:100%!important;
  border-radius:14px!important;
  padding:11px 15px!important;
  line-height:1.2!important;
  font-size:12px!important;
  font-weight:680!important;
}
.ypn-device-connect-actions .secondary{
  color:#aaa!important;
  background:rgba(255,255,255,.025)!important;
}
.ypn-account-sync-card{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) minmax(260px,360px);
  gap:16px;
  align-items:center;
  padding:18px;
  border:1px solid rgba(126,178,255,.18);
  border-radius:24px;
  background:
    radial-gradient(circle at 0 0,rgba(74,136,255,.10),transparent 34%),
    rgba(9,9,9,.82);
}
.ypn-account-sync-icon{
  width:48px;height:48px;border-radius:16px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#dce9ff;font-size:21px;
}
.ypn-account-sync-copy small,
.ypn-account-sync-copy strong,
.ypn-account-sync-copy span{display:block}
.ypn-account-sync-copy small{
  color:#6d87ac;font-size:9px;letter-spacing:.16em;margin-bottom:5px
}
.ypn-account-sync-copy strong{font-size:16px;margin-bottom:4px}
.ypn-account-sync-copy span{color:#858585;font-size:11px;line-height:1.45}
.ypn-account-sync-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.ypn-account-sync-form input{
  min-width:0!important;
  min-height:46px!important;
  border-radius:14px!important;
}
.ypn-account-sync-form button{
  min-height:46px!important;
  white-space:nowrap;
  border-radius:14px!important;
}
@media(max-width:720px){
  .ypn-page-head{
    padding-top:20px!important;
    padding-bottom:18px!important;
    min-height:104px!important;
  }
  .ypn-page-head h1{
    font-size:34px!important;
    line-height:1.02!important;
  }
  .ypn-plan-section{
    padding:12px!important;
    border-radius:20px!important;
  }
  .ypn-cabinet-plan-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .ypn-sub-card{
    padding:18px!important;
    border-radius:20px!important;
  }
  .ypn-plan-head{
    align-items:flex-start!important;
  }
  .ypn-price-big{
    font-size:24px!important;
  }
  .ypn-device-connect{
    padding:17px!important;
    border-radius:20px!important;
    gap:15px!important;
  }
  .ypn-device-connect-actions{
    width:100%!important;
    min-width:0!important;
  }
  .ypn-account-sync-card{
    grid-template-columns:44px minmax(0,1fr);
    padding:15px;
    border-radius:20px;
    gap:12px;
  }
  .ypn-account-sync-icon{width:42px;height:42px;border-radius:14px}
  .ypn-account-sync-form{
    grid-column:1/-1;
    grid-template-columns:1fr;
  }
  .ypn-account-sync-form button{width:100%!important}
}

/* QA817: shared graphite treatment for the owner Dashboard.
   Scope to admin pages only; client subscription/home/support retain their theme. */
body.ypn-page-admin{background:#050505!important}
body.ypn-page-admin .admin-hero{background:linear-gradient(145deg,#171718,#0a0a0b)!important;border-color:rgba(255,255,255,.09)!important}
body.ypn-page-admin .card,body.ypn-page-admin .soft-card{background:linear-gradient(150deg,#151516,#0c0c0d)!important;border-color:rgba(255,255,255,.085)!important}
body.ypn-page-admin .metric,body.ypn-page-admin .stat,body.ypn-page-admin .form-block{background:#171718!important;border-color:rgba(255,255,255,.075)!important}
body.ypn-page-admin .top{background:rgba(9,9,10,.94)!important}
body.ypn-page-admin .client-avatar{background:linear-gradient(145deg,#353537,#181819)!important}
body.ypn-page-admin .plan-choice input:checked + .plan-card{background:#222224!important;border-color:rgba(255,255,255,.30)!important}



/* QA824 · Consistent YPN visual system and persistent accessible themes. */
body.ypn-client-shell .ypn-overview-card,
body.ypn-client-shell .ypn-doc-card,
body.ypn-client-shell .ypn-v3-panel,
body.ypn-client-shell .ypn-chat,
body.ypn-client-shell .ypn-thread-list,
body.ypn-client-shell .q87-hero,
body.ypn-client-shell .q87-list,
body.ypn-client-shell .q87-choice {
  border:1px solid rgba(255,255,255,.095);
  box-shadow:0 16px 52px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025);
}
body.ypn-client-shell .ypn-home-action,
body.ypn-client-shell .q87-choice,
body.ypn-client-shell .ypn-doc-card {
 transition:background-color .24s ease,border-color .24s ease,box-shadow .24s ease,transform .24s ease;
}
body.ypn-client-shell .ypn-home-action:hover,
body.ypn-client-shell .q87-choice:hover,
body.ypn-client-shell .ypn-doc-card:hover {
 box-shadow:0 14px 50px rgba(0,0,0,.20),0 0 0 1px rgba(255,255,255,.075),0 0 30px rgba(255,255,255,.045);
}
body.ypn-client-home details.ypn-overview-card {display:block}
body.ypn-client-home details.ypn-overview-card > .actions {
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;width:100%;
}
body.ypn-client-home details.ypn-overview-card > .actions > *,
body.ypn-client-home details.ypn-overview-card > .actions .btn,
body.ypn-client-home details.ypn-overview-card > .actions button {
 width:100%;min-width:0;max-width:100%;min-height:46px;
 box-sizing:border-box;overflow-wrap:anywhere;white-space:normal;text-align:center;
}
body.ypn-client-home details.ypn-overview-card > .actions form {margin:0}
body.ypn-client-shell .q87-device.q87-free .q87-device-data a{color:inherit;text-decoration:none}
body.ypn-client-shell .q87-device.q87-free:has(a[href]):hover{background:rgba(255,255,255,.045)}
body.ypn-client-shell .q87-device.q87-free a[href]:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.ypn-theme-switch {
 appearance:none!important;width:auto!important;min-width:112px!important;height:39px!important;min-height:39px!important;
 border-radius:999px!important;border:1px solid rgba(255,255,255,.18)!important;
 background:rgba(255,255,255,.06)!important;color:inherit!important;
 padding:7px 12px!important;font-weight:650;font-size:12px!important;
 cursor:pointer;white-space:nowrap;line-height:1.25;
}
.ypn-theme-switch:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:580px){
 body.ypn-client-home details.ypn-overview-card > .actions{grid-template-columns:1fr!important}
 .ypn-theme-switch{min-width:100px!important;font-size:11px!important}
}
html[data-ypn-theme="light"]{
 color-scheme:light;
 --ypn-bg:#fffcf3;--ypn-bg2:#ffffff;
 --ypn-panel:rgba(255,255,255,.88);--ypn-panel-strong:rgba(255,255,255,.97);
 --ypn-line:rgba(70,56,36,.17);--ypn-line-soft:rgba(89,72,42,.12);
 --ypn-text:#29251f;--ypn-muted:#685e53;--ypn-muted2:#807469;
 --ypn-white:#2e291f;--ypn-shadow:0 20px 65px rgba(130,113,78,.11);
 background:#fffdf8;
}
html[data-ypn-theme="light"] body.ypn-client-shell{
 background:radial-gradient(circle at 66% 0%,rgba(255,234,179,.25),transparent 39%),linear-gradient(145deg,#fffefb,#fff8ec 63%,#ffffff)!important;
 color:#29251f!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-sidebar,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-client-top{
 background:rgba(255,255,253,.92)!important;border-color:rgba(124,105,64,.13)!important;
 color:#312a20!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell h1,
html[data-ypn-theme="light"] body.ypn-client-shell h2,
html[data-ypn-theme="light"] body.ypn-client-shell h3,
html[data-ypn-theme="light"] body.ypn-client-shell b,
html[data-ypn-theme="light"] body.ypn-client-shell strong {color:#27231d!important}
html[data-ypn-theme="light"] body.ypn-client-shell p,
html[data-ypn-theme="light"] body.ypn-client-shell small,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-side-link,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-side-brand,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-device-data small {color:#74695b!important}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-side-link.active{
 color:#31271b!important;background:#f2ebdd!important;border-color:rgba(113,91,47,.12)!important
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-side-link:hover {background:#f7eddb!important}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-overview-card,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-v3-panel,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-doc-card,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-home-action,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-thread-list,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-chat,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-hero,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-list,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-choice,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-no-plan {
 background:rgba(255,255,255,.93)!important;border:1px solid rgba(125,104,64,.13)!important;
 box-shadow:0 16px 45px rgba(128,112,81,.07),inset 0 1px 0 #fff!important;
 color:#29251f!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-overview-stats>div,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-symbol,
html[data-ypn-theme="light"] body.ypn-client-shell .q87-choice-icon,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-side-avatar{
 background:#f8f3e9!important;border-color:rgba(125,104,64,.1)!important;color:#6e604a!important
}
html[data-ypn-theme="light"] body.ypn-client-shell .q87-device,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-chat-head{border-color:rgba(125,104,64,.11)!important}
html[data-ypn-theme="light"] body.ypn-client-shell .q87-choice:hover,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-home-action:hover{
 background:#fffaf0!important;border-color:rgba(212,171,79,.38)!important;
 box-shadow:0 14px 42px rgba(190,155,92,.15)!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell a:not(.ypn-side-link):not(.ypn-side-brand),
html[data-ypn-theme="light"] body.ypn-client-shell .q87-more{color:#80612f}
html[data-ypn-theme="light"] body.ypn-client-shell .primary{background:linear-gradient(135deg,#f0deb1,#edd1a0)!important;color:#312719!important}
html[data-ypn-theme="light"] body.ypn-client-shell .secondary,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-theme-switch{
 background:#fffaf0!important;border-color:rgba(111,92,55,.21)!important;color:#393126!important
}
html[data-ypn-theme="light"] body.ypn-client-shell input,
html[data-ypn-theme="light"] body.ypn-client-shell select,
html[data-ypn-theme="light"] body.ypn-client-shell textarea{background:#fffefb!important;color:#302b24!important;border-color:rgba(109,94,71,.24)!important}
html[data-ypn-theme="light"] body.ypn-client-shell input::placeholder{color:#90877a!important}
html[data-ypn-theme="light"] body.ypn-client-shell .q87-progress{background:#eee8da}
html[data-ypn-theme="light"] body.ypn-client-shell .q87-progress>span{background:linear-gradient(90deg,#e0bc6a,#f4e0a8)!important}
html[data-ypn-theme="light"] #ypn-motion-layer .ypn-motion-vignette{
 background:radial-gradient(circle at 50% 25%,transparent 25%,rgba(255,251,240,.68) 100%)!important;
}
html[data-ypn-theme="light"] .ypn-globe-shell{stroke:rgba(173,136,61,.28)}
html[data-ypn-theme="light"] .ypn-globe-grid{stroke:rgba(177,143,77,.20)}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-overview-user span{color:#776959!important}
@media(prefers-reduced-motion:reduce){
 body.ypn-client-shell .ypn-home-action,body.ypn-client-shell .q87-choice{transition:none!important}
}


/* QA825: visually faithful light mode, accessible controls, cinematic scenes. */
.ypn-client-top{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.ypn-client-top .top-actions{
 display:flex;align-items:center;justify-content:flex-end;gap:12px;
 flex:0 0 auto;min-width:0;margin-left:auto;flex-wrap:nowrap;
}
.ypn-client-top .ypn-theme-switch{order:1;position:relative;z-index:41;min-width:114px!important}
.ypn-client-top .ypn-globe-wrap{order:2;margin:0!important;flex:0 0 auto;position:relative;z-index:65}
.ypn-client-top .ypn-globe-button{
 min-width:44px!important;min-height:42px!important;width:44px!important;height:42px!important;
 font-size:21px!important;flex:none!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-globe-button{
 background:#fffaf0!important;border:1px solid rgba(119,94,54,.24)!important;
 color:#37291a!important;box-shadow:0 3px 15px rgba(120,102,75,.06)!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-globe-menu{
 background:#fffcf6!important;border:1px solid rgba(119,94,54,.23)!important;
 color:#282118!important;box-shadow:0 14px 44px rgba(90,69,36,.15)!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-globe-menu button{
 background:transparent!important;color:#302719!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-globe-menu button:hover,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-globe-menu button[aria-checked="true"]{
 background:#f5ead8!important;color:#231c13!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-card,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-card.linked{
 background:linear-gradient(125deg,rgba(255,255,255,.78),rgba(255,249,231,.54))!important;
 border:1px solid rgba(139,113,66,.15)!important;
 border-radius:20px!important;box-shadow:0 12px 38px rgba(146,117,68,.06)!important;
 -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
 padding:15px 18px!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-mark{
 background:rgba(241,224,194,.42)!important;color:#40352b!important;
 border:1px solid rgba(142,110,60,.11)!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-copy strong{
 color:#30281f!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-copy small,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-copy span{
 color:#75634b!important
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-telegram-card form button{
 min-height:36px!important;min-width:96px!important;border-radius:11px!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-overview-stats strong,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-overview-user strong,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-home-action b{
 color:#28231e!important;
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-account-avatar{
 background:linear-gradient(145deg,#f4dfad,#e8d1a0)!important;color:#47341e!important;
 border:1px solid rgba(149,112,51,.2)!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-choice-icon{
 background:#f6e6c8!important;border:1px solid rgba(130,99,49,.23)!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-choice-main .q87-choice-icon::after{
 background:#473523!important;opacity:1!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-choice:not(.q87-choice-main) .q87-choice-icon::after{
 background:#658836!important;opacity:1!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-choice strong,
html[data-ypn-theme="light"] body.ypn-client-devices .q87-choice small,
html[data-ypn-theme="light"] body.ypn-client-devices .q87-top p{
 color:#443a2e!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-hero,
html[data-ypn-theme="light"] body.ypn-client-devices .q87-list,
html[data-ypn-theme="light"] body.ypn-client-devices .q87-members{
 background:rgba(255,255,255,.9)!important;color:#2e271f!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-plan-status,
html[data-ypn-theme="light"] body.ypn-client-devices .q87-state{
 color:#654928!important;border-color:rgba(137,113,75,.2)!important;
 background:rgba(249,239,214,.7)!important;
}
html[data-ypn-theme="light"] body.ypn-client-devices .q87-symbol{
 background:#faedd7!important;color:#5c482d!important;
}
@media (max-width:720px){
 .ypn-client-top .top-actions{gap:8px!important}
 .ypn-client-top .ypn-theme-switch{min-width:98px!important;font-size:11px!important}
 .ypn-client-top .ypn-globe-button{min-width:40px!important;width:40px!important;height:40px!important}
}
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root){animation:ypn-scene-exit .3s cubic-bezier(.52,.08,.35,1) both}
  ::view-transition-new(root){animation:ypn-scene-enter .52s cubic-bezier(.18,.72,.15,1) both}
  @keyframes ypn-scene-exit{
    0%{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}
    100%{opacity:.08;transform:scale(1.045) translateY(-15px);filter:blur(8px)}
  }
  @keyframes ypn-scene-enter{
    0%{opacity:0;transform:scale(.95) translateY(30px);filter:blur(9px)}
    62%{opacity:1;filter:blur(0)}
    100%{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}
  }
}


/* QA826: Persistent application shell + restrained content-only transitions. */
body.ypn-client-shell .ypn-client-main{position:relative}
body.ypn-client-shell .ypn-client-scene{position:relative;min-width:0;view-transition-name:ypn-scene}
::view-transition-old(root),::view-transition-new(root){animation:none!important}
@media(prefers-reduced-motion:no-preference){
  ::view-transition-old(ypn-scene){animation:ypn-scene-out 155ms ease-out both}
  ::view-transition-new(ypn-scene){animation:ypn-scene-in 240ms cubic-bezier(.22,.7,.27,1) both}
  @keyframes ypn-scene-out{from{opacity:1;transform:translateX(0)}to{opacity:.35;transform:translateX(-12px)}}
  @keyframes ypn-scene-in{from{opacity:.38;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
}
@media(prefers-reduced-motion:reduce){
 ::view-transition-old(ypn-scene),::view-transition-new(ypn-scene){animation:none!important}
}
body.ypn-client-shell .ypn-client-top{z-index:70}
body.ypn-client-shell .ypn-client-top .top-actions{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:10px;min-width:0
}
body.ypn-client-shell .ypn-client-top .ypn-theme-switch{order:1;flex:none}
body.ypn-client-shell .ypn-client-top .ypn-globe-wrap{order:2;flex:none;margin-left:0!important;z-index:90}
body.ypn-client-shell .ypn-client-top .ypn-globe-menu{z-index:91}
html:not([data-ypn-theme="light"]) body.ypn-client-shell .ypn-side-brand img,
html:not([data-ypn-theme="light"]) body.ypn-client-shell .ypn-client-mobile-brand img{
 filter:invert(1);transition:filter .2s ease
}
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-side-brand img,
html[data-ypn-theme="light"] body.ypn-client-shell .ypn-client-mobile-brand img{filter:none;transition:filter .2s ease}
body.ypn-client-support #ypn-motion-layer{display:block!important;visibility:visible!important}
body.ypn-client-support #ypn-route-canvas{opacity:.85!important}
body.ypn-client-support .ypn-client-scene{background:transparent!important}
body.ypn-client-support .ypn-messenger-client{
 background:rgba(12,12,13,.78)!important;
 -webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)
}
body.ypn-client-support .ypn-messenger-body{background:rgba(17,17,19,.35)!important}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-page-head h1,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-support-page-head .kicker{
 color:#2a231c!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-support-telegram,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-client{
 background:rgba(255,255,255,.81)!important;
 border:1px solid rgba(150,119,75,.17)!important;
 box-shadow:0 16px 48px rgba(142,109,58,.09)!important;
 color:#302920!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-support-telegram>span,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-avatar{
 background:linear-gradient(140deg,#faeed6,#fff8e9)!important;
 color:#60482d!important;border-color:rgba(139,108,64,.18)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-support-telegram b,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-header b,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-welcome h2{
 color:#29231d!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-support-telegram small,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-header span,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-welcome p{
 color:#70604c!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-header,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-compose{
 background:rgba(255,250,238,.74)!important;
 border-color:rgba(131,103,65,.13)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-body{
 background:rgba(255,255,255,.36)!important;
 scrollbar-color:rgba(149,121,80,.27) transparent
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-msg-row.mine .ypn-msg-bubble{
 background:#eddcb9!important;color:#2e251a!important;border-color:rgba(141,107,54,.19)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-msg-row.theirs .ypn-msg-bubble{
 background:rgba(255,255,255,.90)!important;color:#332b21!important;border-color:rgba(143,117,80,.17)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-compose textarea{
 background:#fffefb!important;color:#2b241b!important;
 border:1px solid rgba(135,105,62,.2)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-compose textarea::placeholder{color:#8b7b69!important}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-send-button,
html[data-ypn-theme="light"] body.ypn-client-support .ypn-emoji-button{
 background:#e8cf9d!important;color:#2c2115!important;
 border-color:rgba(156,118,61,.25)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-emoji-picker{
 background:#fffdf8!important;color:#2b2119!important;border-color:rgba(135,102,60,.22)!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-emoji-picker button{
 background:transparent!important;color:#30251b!important
}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-emoji-picker button:hover{background:#f5ead6!important}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-msg-bubble small{color:#76644c!important;opacity:.82}
html[data-ypn-theme="light"] body.ypn-client-support .ypn-messenger-header span i{
 box-shadow:0 0 7px rgba(52,137,101,.22)
}
@media(max-width:720px){
  body.ypn-client-shell .ypn-client-scene{min-width:0}
  body.ypn-client-support .ypn-messenger-client{height:calc(100dvh - 190px);min-height:390px}
  body.ypn-client-shell .ypn-client-top .top-actions{gap:7px}
}
