/* qooob Mini App: fonts, design tokens and what every screen shares. The screens themselves
   are in screens.css (ported 1:1 from the approved mockup); the app-only additions are at
   the end of this file. */

/* ---------------------------------------------------------------- fonts (self-hosted) */
@font-face{font-family:'Manrope';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/manrope-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/manrope-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/manrope-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plex-mono-400-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plex-mono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plex-mono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plex-mono-500-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plex-mono-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plex-mono-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------------------------------------------------------------- tokens and globals (from the mockup) */
html,body{height:100%;overscroll-behavior:none}
body{margin:0;background:#08090A;overflow:hidden}
body.light{background:#f3f5f7}
body.hw:not(.light){background:#0c0a0f}
a{color:inherit}a:hover{color:inherit}
/* Rubik Wet Paint (OFL, Google Fonts): Halloween's dripping wordmark and headings; loaded only when used. */
@font-face{font-family:'Rubik Wet Paint';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/rubik-wet-paint-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Rubik Wet Paint';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/rubik-wet-paint-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.vb{--bg:#08090a;--stage:#0d0f11;--s1:#131619;--s2:#1a1e22;--s3:#23282d;--field:#101316;--line:#ffffff21;--hair:#ffffff12;--wash:#ffffff09;--wash-strong:#ffffff11;--grid:#ffffff0e;--text:#f4f6f7;--muted:#f4f6f7a8;--faint:#f4f6f780;--acc:#f4f6f7;--acc-ink:#08090a;--acc-soft:#ffffff14;--ok:#4ade80;--warn:#f0c274;--err:#f87171;--glow:radial-gradient(ellipse 72% 58% at 78% 24%,#abb5c21f,transparent 66%),radial-gradient(ellipse 58% 34% at 72% 92%,#7e8a9713,transparent 72%);--shadow-button:inset 0 1px 0 #ffffff47,0 8px 24px #00000038;--shadow-panel:0 24px 80px #0000004d;--shadow-float:0 18px 56px #00000052;--shadow-inset:inset 0 1px 0 #ffffff0d;--ease:cubic-bezier(.16,1,.3,1);--top:var(--tg-safe-area-inset-top,50px);--ctop:var(--tg-content-safe-area-inset-top,46px);--bot:var(--tg-safe-area-inset-bottom,34px);font-family:'Manrope',system-ui,sans-serif;font-feature-settings:"ss01";color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;container:app/inline-size}
.vb.light{--bg:#f3f5f7;--stage:#e9edf1;--s1:#fcfdfe;--s2:#f9fbfc;--s3:#e9edf1;--field:#f0f3f6;--line:#15202c26;--hair:#15202c17;--wash:#15202c09;--wash-strong:#15202c11;--grid:#15202c14;--text:#151d26;--muted:#151d26bd;--faint:#151d269e;--acc:#151d26;--acc-ink:#f7f9fb;--acc-soft:#15202c11;--ok:#0b6b3d;--warn:#8a5b0a;--err:#b73743;--glow:radial-gradient(ellipse 68% 56% at 78% 24%,#ffffffe6,transparent 66%),radial-gradient(ellipse 58% 36% at 72% 92%,#97a6b533,transparent 72%);--shadow-button:inset 0 1px 0 #ffffff52,0 8px 24px #27384a24;--shadow-panel:0 24px 80px #27384a24;--shadow-float:0 18px 56px #27384a29;--shadow-inset:inset 0 1px 0 #ffffffb8}
/* Halloween (the panel's switch, season.halloween): a violet night and pumpkin orange; the light theme keeps its paper and takes a darker orange. */
.vb.hw:not(.light){--bg:#0c0a0f;--stage:#120d16;--s1:#16121b;--s2:#1e1824;--s3:#2a2231;--field:#120e16;--line:#ffffff1f;--hair:#ffffff12;--wash:#ffffff09;--wash-strong:#ffffff11;--grid:#ffffff0c;--text:#f7f3ee;--muted:#f7f3eeab;--faint:#f7f3ee85;--acc:#ff8a1f;--acc-ink:#1a0c00;--acc-soft:#ff8a1f24;--glow:radial-gradient(ellipse 72% 58% at 78% 24%,#ff8a1f1c,transparent 66%),radial-gradient(ellipse 58% 34% at 72% 92%,#9b6bff14,transparent 72%);--shadow-button:inset 0 1px 0 #ffffff47,0 8px 24px #ff8a1f33}
.vb.hw.light{--acc:#b84d06;--acc-ink:#fffaf5;--acc-soft:#b84d0614;--shadow-button:inset 0 1px 0 #ffffff52,0 8px 24px #b84d0626}
.vb *{box-sizing:border-box}
.vb a{text-decoration:none;color:inherit}
.vb button{font:inherit;color:inherit;cursor:pointer}
.disp{font-family:'Manrope',system-ui,sans-serif;font-weight:700;letter-spacing:-.035em}
.vb .spooky{font-family:'Rubik Wet Paint','Manrope',system-ui,sans-serif;font-weight:400;letter-spacing:0}
.vb .logo-drip{font-family:'Rubik Wet Paint','Manrope',system-ui,sans-serif;font-weight:400;line-height:1;color:var(--acc);white-space:nowrap;flex:none}
.mono{font-family:'IBM Plex Mono',ui-monospace,monospace;letter-spacing:-.01em}
.scroll{scrollbar-width:none}.scroll::-webkit-scrollbar{display:none}
@media (prefers-reduced-motion:reduce){.vb *,.vb *::before,.vb *::after{animation:none!important;transition:none!important}}

/* ================================================================ app additions */
#app{height:100%}
.vb [hidden]{display:none!important}
.vb .vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vb button:disabled{cursor:default}

/* Our row inside Telegram's own top controls (fullscreen only): just the centred wordmark or title. */
.vb .tgrow{flex:none;position:relative;height:calc(var(--top) + var(--ctop));padding:var(--top) 10px 0}
.vb .tgrow-mid{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;white-space:nowrap}
.vb .tgrow-mid.logo{bottom:8px}
.vb .tgrow-mid.title{bottom:13px;font-size:15px;font-weight:600;max-width:calc(100% - 200px);overflow:hidden;text-overflow:ellipsis;display:block}

/* Real media in place of the mockup's drawn previews. */
.vb video.fill,.vb img.fill{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border:0}
.vb .mfb{position:absolute;inset:0;display:grid;place-items:center;background:var(--s2);color:var(--faint)}
.vb .mfb svg{width:30%;max-width:44px;height:auto}
.vb .face img,.vb .thumb img,.vb .mini video{width:100%;height:100%;object-fit:cover;display:block}

/* Skeleton shimmer, the same as the catalogue's loading cards. */
.vb .sk{background:linear-gradient(100deg,var(--s1) 35%,var(--s2) 50%,var(--s1) 65%) 0 0/300% 100%;animation:a-sk 1.5s linear infinite}
/* The splash on Halloween: a pumpkin flickers in the stories' place while the app loads. */
.vb .hw-boot{display:grid;place-items:center}
/* Halloween pictures (ui.js Moon, Bat): NASA's moon, warmed a little; silhouettes with a faint rim against
   the night, eyes that glow, a bank from side to side while they fly. */
.vb .moon-art{display:block;width:100%;height:100%;border-radius:50%;background:url(../img/moon.webp) center/cover no-repeat;filter:sepia(.22) saturate(1.2) brightness(1.04)}
.vb .bat{display:block;height:auto;overflow:visible;filter:drop-shadow(0 0 1.5px rgba(183,156,255,.45));animation:bat-bank 2.6s ease-in-out infinite alternate}
.vb .bat path{fill:#0b070f}
.vb .bat .bat-eye{fill:#ffcf6b;filter:drop-shadow(0 0 6px #ff8a1f)}
@keyframes bat-bank{from{rotate:-6deg}to{rotate:6deg}}
.vb .hw-boot .pk{display:flex;filter:drop-shadow(0 0 18px #ff8a1f80);animation:hw-flicker 2.4s ease-in-out infinite}
@keyframes a-sk{from{background-position:100% 0}to{background-position:0 0}}

/* Empty / error / "open in Telegram" states. */
.vb .st{padding:56px 24px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:12px;font-size:14px;line-height:1.45}
.vb .st-ic{width:56px;height:56px;border-radius:18px;background:var(--s1);color:var(--muted);display:grid;place-items:center;margin-bottom:4px}
.vb .st-t{font-size:17px;font-weight:600;color:var(--text)}
.vb .st-btn{height:40px;padding:0 16px;border-radius:12px;border:0;background:var(--s2);font-weight:600;font-size:14px;color:var(--text);display:inline-flex;align-items:center;gap:8px;margin-top:4px}
.vb .st-go{height:48px;padding:0 22px;margin-top:10px;border-radius:14px;background:var(--acc);color:var(--acc-ink);font-size:15px;text-decoration:none;box-shadow:var(--shadow-button)}
.vb .st-full{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}

/* Toasts. */
.vb.toasts{position:fixed;left:0;right:0;bottom:0;height:0;background:transparent;z-index:100;overflow:visible}
.vb .toast{position:absolute;left:16px;right:16px;bottom:calc(var(--bot) + 96px);max-width:480px;margin:0 auto;padding:13px 16px;border-radius:16px;background:var(--text);color:var(--bg);font-size:14px;font-weight:600;line-height:1.4;box-shadow:var(--shadow-float);animation:a-toast .35s cubic-bezier(.2,1.1,.3,1) both}
.vb .toast.err{background:var(--err);color:#fff}
@keyframes a-toast{from{opacity:0;transform:translateY(14px)}}

/* A spinner for buttons that wait on the network. */
.vb .spin{width:18px;height:18px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;animation:a-spin .8s linear infinite;flex:none;display:inline-block}
@keyframes a-spin{to{transform:rotate(360deg)}}

/* The side rail on wide screens for «Мои видео» and «Баланс» (the catalogue has its own in screens.css):
   their tab bar is hidden at ≥900 px, so they get the same rail. */
:is(.scr-studio,.scr-wallet,.scr-invite,.scr-support,.scr-create,.scr-feed) .rail{display:none;flex:none;width:236px;flex-direction:column;gap:4px;padding:20px 14px;border-right:1px solid var(--line);background:var(--bg)}
:is(.scr-studio,.scr-wallet,.scr-invite,.scr-support,.scr-create,.scr-feed) .rail-link{height:46px;padding:0 12px;border-radius:14px;display:flex;align-items:center;gap:12px;font-weight:600;color:var(--muted);transition:background .2s,color .2s}
:is(.scr-studio,.scr-wallet,.scr-invite,.scr-support,.scr-create,.scr-feed) :is(.rail-link:hover,.rail-link.on){background:var(--s1);color:var(--text)}
:is(.scr-studio,.scr-wallet,.scr-invite,.scr-support,.scr-create,.scr-feed) .rail-link.on svg{color:var(--acc)}
:is(.scr-studio,.scr-wallet,.scr-invite,.scr-support,.scr-create,.scr-feed) .rail-balance{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:18px;background:var(--s1)}
@container app (min-width:900px){:is(.scr-studio,.scr-wallet,.scr-invite,.scr-support,.scr-create,.scr-feed) .rail{display:flex}}

/* Payment method: chosen on the payment page itself (one line instead of the card/СБП switch). */
.vb .paynote{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;margin-top:12px;padding:0 12px;border-radius:14px;background:var(--s2);font-size:13.5px;font-weight:600;color:var(--muted);text-align:center}
.scr-wallet .paynote{background:var(--s1);margin-top:8px;height:52px}
.vb .paynote svg{flex:none;color:var(--text)}

/* Light theme: text that sits on a dark overlay over a video stays light. */
.scr-main .hero-copy,.scr-main .badge{color:#f4f6f7}
/* The «Готово» panel lies over the video's dark scrim on phones: it keeps the dark tokens in the light theme. */
@container app (max-width:699px){.scr-result.light .panel{--text:#f4f6f7;--muted:#f4f6f7a8;--s1:#131619;--s2:#1a1e22;--s3:#23282d;--line:#ffffff21;--hair:#ffffff12;--acc:#f4f6f7;--acc-ink:#08090a;--acc-soft:#ffffff14;--ok:#4ade80;--shadow-button:inset 0 1px 0 #ffffff47,0 8px 24px #00000038;color:var(--text)}}
@container app (max-width:699px){.scr-result.light.hw .panel{--acc:#ff8a1f;--acc-ink:#1a0c00;--acc-soft:#ff8a1f24}}
@container app (min-width:700px){
  .scr-result.light .act{color:var(--text)}
  .scr-result.light .mainbtn.glass{background:var(--s2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
  .scr-result.light .round{background:var(--s1);color:var(--text);box-shadow:inset 0 0 0 1px var(--hair)}
  .scr-result.light .act .round.hot{background:var(--acc);color:var(--acc-ink);box-shadow:none}
  .scr-result.light .r-sub,.scr-result.light .r-times{color:var(--muted)}
  .scr-result.light .prog{background:var(--s3)}
  .scr-result.light .prog i{background:var(--acc)}
  .scr-result.light .rate{background:var(--s1)}
}

/* Catalogue additions. */
.scr-main .art{background:var(--s2)}
.scr-main .hero .kb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scr-main .face img{border-radius:50%}
.scr-main .grid .empty{grid-column:1/-1}

/* Trend page additions. */
.scr-trend .desc{margin:12px 0 0;font-size:15.5px;line-height:1.5;color:color-mix(in srgb,var(--text) 86%,transparent)}
.scr-trend .desc a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.scr-trend .desc p{margin:0}.scr-trend .desc p+p{margin-top:8px}
.scr-trend .cmp-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scr-trend .slot .face img{width:100%;height:100%;object-fit:cover}
.scr-trend .prog i,.scr-result .prog i{animation:none;transform:scaleX(0)}

/* Photos additions. */
.scr-photos .slots.one{grid-template-columns:minmax(0,220px);justify-content:center}
.scr-photos .photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scr-photos .check.bad{background:color-mix(in srgb,var(--warn) 16%,var(--bg));color:var(--warn)}
.scr-photos .busy{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--bg) 55%,transparent);z-index:3}
.scr-photos .busy span{display:flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:10px;background:rgba(8,9,10,.72);color:#fff;font-size:13px;font-weight:600}
.scr-photos .pill.del{background:var(--err)}
.scr-photos .photo-label{align-items:flex-end}
.scr-photos .photo-label .pill:first-child{min-width:0;height:auto;min-height:28px;padding:5px 10px;line-height:1.25;text-align:left}
.scr-photos .add.big{width:100%;height:auto;aspect-ratio:3/4;border-radius:22px}
@container app (min-width:700px){.scr-photos .slots.kit{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Confirm additions. */
.scr-confirm .legal a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.scr-confirm .mainbtn:disabled{opacity:.7}
.scr-confirm .wait{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;font-size:13px;color:var(--muted)}

/* Проявка / failure additions. */
.scr-develop .picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scr-develop .lamp.off{opacity:.25;animation:none;box-shadow:none}
.scr-develop .glow.dim{opacity:.35;animation:none}
.scr-develop .failmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:rgba(8,9,10,.72);color:#f4f6f7;display:grid;place-items:center;z-index:2;animation:d-rise .6s cubic-bezier(.2,.8,.2,1) both}
.scr-develop .mainbtn.ready.calm{animation:none}
.scr-develop .errline{margin:12px 0 0;font-size:14px;line-height:1.45;color:var(--muted);text-align:center}

/* Result additions. */
.scr-result .player video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.scr-result .fb button{color:var(--text)}
.scr-result .fb button.on{background:var(--acc-soft);color:var(--acc);box-shadow:inset 0 0 0 1.5px var(--acc)}
.scr-result .act:disabled{opacity:.6}
.scr-result .r-sub{color:rgba(244,246,247,.75)}
.scr-result .r-times{color:rgba(244,246,247,.7)}
@container app (min-width:700px){.scr-result .r-chiprow{right:50%!important}}

/* Мои видео additions. */
.scr-studio .art video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* With the side rail taking 236 px, five columns start at 1200 px instead of 900. */
@container app (min-width:900px) and (max-width:1199px){.scr-studio .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Баланс additions. */
.scr-wallet .pack:disabled{opacity:.55}
.scr-wallet .pay:disabled{opacity:.7}
.scr-wallet .link{width:100%;border:0;background:transparent;text-align:left;color:inherit}
.scr-wallet .op-empty{padding:18px 14px;font-size:14px;color:var(--muted)}

/* Documents. */
.scr-doc .wrap{padding:8px 16px calc(var(--bot) + 40px);max-width:680px;margin:0 auto}
.scr-doc h1{margin:0;font-size:29px;line-height:1.08}
.scr-doc .doc{margin-top:18px;font-size:15.5px;line-height:1.55;color:color-mix(in srgb,var(--text) 90%,transparent);overflow-wrap:anywhere}
.scr-doc .doc p{margin:0 0 12px}
.scr-doc .doc a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.scr-doc .doc code{font-family:'IBM Plex Mono',monospace;font-size:.92em;padding:1px 5px;border-radius:6px;background:var(--s1)}
.scr-doc .doc b,.scr-doc .doc strong{font-weight:700;color:var(--text)}
@container app (max-width:340px){.scr-doc .wrap{padding-left:12px;padding-right:12px}}

/* ================================================================ the website (qooob.pro)
   Laid out like Telegram's fullscreen (tg.js): our own controls sit where Telegram draws its own. */
.vb.sitebar{position:fixed;top:0;left:0;right:0;height:56px;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;background:transparent;container-type:normal;pointer-events:none;transition:transform .35s var(--ease),opacity .25s ease}
.vb.sitebar.away{transform:translateY(-110%);opacity:0}
.vb.sitebar.away *{pointer-events:none!important}
.vb .sb-side{display:flex;align-items:center;gap:8px;min-width:0;pointer-events:auto}
.vb .sb-side.end{justify-content:flex-end}
/* Glass, as Telegram's floating controls. */
.vb .sb-btn,.vb .sb-logo{background:color-mix(in srgb,var(--s1) 72%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);box-shadow:inset 0 0 0 1px var(--hair),0 6px 22px #0000001c}
.vb .sb-btn{height:38px;padding:0 14px 0 11px;border:0;border-radius:19px;display:inline-flex;align-items:center;gap:6px;color:var(--text);font-size:14px;font-weight:600;white-space:nowrap;transition:background .2s}
.vb .sb-btn:hover{background:var(--s2)}
.vb .sb-btn:focus-visible,.vb .ava-btn:focus-visible,.vb .sb-logo:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.vb .sb-round{width:38px;padding:0;justify-content:center}
.vb .sb-login{padding:0 16px 0 13px;background:var(--acc);color:var(--acc-ink);box-shadow:var(--shadow-button)}
.vb .sb-login:hover{background:var(--acc);opacity:.92}
.vb .sb-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:36px;padding:0 18px;border-radius:18px;display:flex;align-items:center;pointer-events:auto}
/* The avatar floats on its own, no plate under it. */
.vb .ava-btn{width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center}
.vb .ava{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff;font-size:16px;font-weight:700;line-height:1;box-shadow:0 6px 18px #00000033;text-shadow:0 1px 1px #0000001f}
.vb .ava-0{background:linear-gradient(180deg,#ff885e,#ff516a)}
.vb .ava-1{background:linear-gradient(180deg,#ffcd6a,#ffa85c)}
.vb .ava-2{background:linear-gradient(180deg,#e0a2f3,#d669ed)}
.vb .ava-3{background:linear-gradient(180deg,#a0de7e,#54cb68)}
.vb .ava-4{background:linear-gradient(180deg,#53edd6,#28c9b7)}
.vb .ava-5{background:linear-gradient(180deg,#72d5fd,#2a9ef1)}
.vb .ava-6{background:linear-gradient(180deg,#ffa8a8,#ff719a)}
.vb .sb-acc{position:relative}
.vb .sb-menu{position:absolute;top:46px;right:0;min-width:236px;padding:6px;border-radius:18px;background:var(--s1);box-shadow:var(--shadow-float),inset 0 0 0 1px var(--hair);display:flex;flex-direction:column;gap:2px;z-index:30;animation:a-toast .25s var(--ease) both}
.vb .sb-who{display:flex;flex-direction:column;gap:2px;padding:10px 12px 10px;margin-bottom:4px;border-bottom:1px solid var(--hair);font-size:15px}
.vb .sb-who span{font-size:13px;color:var(--muted)}
.vb .sb-menu a,.vb .sb-menu button{display:flex;align-items:center;gap:10px;width:100%;height:42px;padding:0 12px;border:0;border-radius:12px;background:transparent;font-size:14px;font-weight:600;text-align:left;color:var(--text)}
.vb .sb-menu a:hover,.vb .sb-menu button:hover,.vb .sb-menu a:focus-visible,.vb .sb-menu button:focus-visible{background:var(--wash-strong);outline:0}
.vb .sb-menu svg{color:var(--muted)}
.vb .sb-menu .mono{font-size:13px;color:var(--muted)}
.vb .st-note{max-width:320px;margin-top:6px;font-size:12.5px;line-height:1.45;color:var(--faint)}
.vb .st-full .st a.st-btn{text-decoration:none}

/* The side rail: sign-in card for a guest, the person at the bottom, a dot on «Поддержка». */
.vb button.rail-login{border:0;width:100%;text-align:left;font:inherit;color:var(--text);cursor:pointer;gap:4px}
.vb .rail-dot{width:8px;height:8px;border-radius:50%;background:var(--err);flex:none}
.vb .sb-acc.in-rail{margin-top:8px}
.vb .rail-user{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px 8px 8px;border:0;border-radius:14px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:background .2s}
.vb .rail-user:hover,.vb .rail-user[aria-expanded="true"]{background:var(--s1)}
.vb .rail-user .ava{width:34px;height:34px;font-size:14px;box-shadow:none}
.vb .rail-user b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vb .rail-user small{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vb .in-rail .sb-menu{top:auto;bottom:calc(100% + 6px);left:0;right:0;min-width:0}

/* The tab screens: no row of their own on the website — on a phone the controls float over the content
   (which starts below them), on a wide screen they are in the side rail. */
html[data-site] .scr-main .tgrow,html[data-site] .scr-studio .tgrow,html[data-site] .scr-wallet .tgrow,html[data-site] .scr-invite .tgrow{display:none}
@media (max-width:899px){
  html[data-site] :is(.scr-main,.scr-studio,.scr-wallet,.scr-invite) .tgrow+main{padding-top:52px}
  html[data-site] .scr-main .chips{top:52px}  /* under the floating row while both are shown */
}
@media (min-width:900px){
  html[data-site] .vb.sitebar.floating{display:none}
}
/* Searching the catalogue: the search field takes the top. */
html[data-site] body:has(.scr-main .toprow.searching) .vb.sitebar.floating{transform:translateY(-110%);opacity:0;pointer-events:none}
/* «Войти»: the sheet with the link to the bot (a card on wide screens, from the bottom on a phone). */
.vb.ls-back{position:fixed;inset:0;z-index:90;background:#0000008c;display:flex;align-items:center;justify-content:center;padding:16px;container-type:normal;animation:a-fade .2s ease both}
@keyframes a-fade{from{opacity:0}}
.vb .ls{position:relative;width:100%;max-width:400px;padding:30px 24px 22px;border-radius:28px;background:var(--s1);box-shadow:var(--shadow-panel),inset 0 0 0 1px var(--hair);display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;animation:a-toast .3s var(--ease) both}
.vb .ls-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:var(--wash-strong);color:var(--muted);display:grid;place-items:center}
.vb .ls-ic{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,#37aee2,#1e96c8);box-shadow:0 10px 30px #1e96c847;margin-bottom:6px}
.vb .ls-t{font-size:20px;font-weight:700;letter-spacing:-.02em}
.vb .ls-d{font-size:14.5px;line-height:1.5;color:var(--muted);max-width:320px}
.vb .ls-d b{color:var(--text)}
.vb .ls .st-go{width:100%;justify-content:center;margin-top:8px;text-decoration:none}
.vb .ls-wait{display:flex;align-items:center;justify-content:center;gap:8px;min-height:22px;font-size:13px;color:var(--faint)}
.vb .ls-wait .spin{width:14px;height:14px;border-width:2px}
@media (max-width:599px){
  .vb.ls-back{align-items:flex-end;padding:0}
  .vb .ls{max-width:none;border-radius:28px 28px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
}
/* Поддержка on a wide screen: the side rail stays, the chat sits next to it (no row on top, no «Назад»). */
@media (min-width:900px){
  html[data-site] .vb.sitebar.railed{display:none}
  html[data-site] .scr-support .tgrow{display:none}
}
