/* ELL. design layer v3 (phase 1: tokens, font, shell). Loaded last on the site and in the cabinet.
   Source of truth for the look: design/ell-prototype-v3.html. Markup and JS hooks of the shell are unchanged. */
@font-face{font-family:Onest;font-style:normal;font-weight:400 900;font-display:block;src:url(/ui/fonts/onest-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-weight:400 900;font-display:block;src:url(/ui/fonts/onest-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: prototype names + the names the existing CSS already uses ---------- */
:root{color-scheme:dark;
 --bg:#0b0b14;--s:#14141f;--s2:#1b1a2a;--t:#f1f0fa;--m:#aeadc6;--l:rgba(255,255,255,.07);
 --b:#8c7bff;--b2:#b3a8ff;--bs:#2a2452;--bt:#c4bbff;--ok:#10b981;--w:#f59e0b;--er:#ef4444;
 --glass:rgba(24,23,38,.62);--glassB:rgba(255,255,255,.08);
 --sh:0 1px 2px rgba(0,0,0,.3),0 18px 40px -18px rgba(0,0,0,.7);--shL:0 30px 80px -30px rgba(0,0,0,.8);
 --r:24px;--ease:cubic-bezier(.2,.8,.2,1);--spring:cubic-bezier(.32,.72,0,1);
 --panel:var(--s);--line:rgba(255,255,255,.09);--text:var(--t);--muted:var(--m);--accent:var(--b)}
:root[data-theme=light]{color-scheme:light;
 --bg:#f6f5fb;--s:#fff;--s2:#f1eff9;--t:#121320;--m:#6a6b80;--l:rgba(20,20,60,.08);
 --b:#6b57ff;--b2:#9b8cff;--bs:#eeebff;--bt:#6b57ff;
 --glass:rgba(255,255,255,.66);--glassB:rgba(255,255,255,.7);
 --sh:0 1px 2px rgba(20,20,60,.04),0 18px 40px -18px rgba(40,30,120,.22);--shL:0 30px 80px -30px rgba(60,40,180,.35);
 --line:rgba(20,20,60,.1)}
:root .pro-shell,:root[data-theme] .pro-shell{--soft:var(--s2);--hover:var(--bs);--violet:var(--bt);--green:var(--ok);--error:var(--er)}

/* ---------- base ---------- */
.pro-shell,.pro-shell button,.pro-shell input,.pro-shell select,.pro-shell textarea,.pro-shell .mobile-catalog{font-family:Onest,system-ui,-apple-system,"Segoe UI",sans-serif}
.pro-shell{-webkit-font-smoothing:antialiased;color:var(--t);background:
 radial-gradient(640px 480px at 8% -12%,rgba(139,123,255,.20),transparent 70%),
 radial-gradient(560px 420px at 96% -8%,rgba(255,143,200,.13),transparent 70%),
 radial-gradient(520px 380px at 55% 16%,rgba(90,209,255,.08),transparent 70%),var(--bg)}
:root[data-theme=light] .pro-shell{background:
 radial-gradient(640px 480px at 8% -12%,rgba(139,123,255,.26),transparent 70%),
 radial-gradient(560px 420px at 96% -8%,rgba(255,143,200,.20),transparent 70%),
 radial-gradient(520px 380px at 55% 16%,rgba(90,209,255,.14),transparent 70%),var(--bg)}
.pro-shell *{-webkit-tap-highlight-color:transparent}
.pro-shell h1,.pro-shell h2,.pro-shell h3{letter-spacing:-.03em}
.pro-shell h1{font-weight:800}
.pro-shell a{color:var(--bt)}
.pro-shell ::selection{background:color-mix(in srgb,var(--b) 30%,transparent)}

/* ---------- buttons ---------- */
.pro-shell button{border-color:var(--l);background:var(--glass);color:var(--t);border-radius:14px;transition:transform .25s var(--spring),filter .2s,background .2s}
.pro-shell button:hover:not(:disabled){background:var(--s2);transform:translateY(-1px);box-shadow:none}
.pro-shell button:active:not(:disabled){transform:scale(.97)}
.pro-shell .button{border-radius:14px;border-color:var(--l);background:var(--glass);font-weight:700;font-size:14px;transition:transform .25s var(--spring),filter .2s}
.pro-shell .button:hover{transform:translateY(-1px)}
.pro-shell .button:active{transform:scale(.97)}
.pro-shell .primary,.pro-shell .button.primary,.pro-shell button.primary{background:var(--b)!important;border-color:transparent!important;color:#fff!important;font-weight:700;box-shadow:0 12px 26px -12px var(--b)}
.pro-shell .primary:hover:not(:disabled),.pro-shell .button.primary:hover{background:var(--b)!important;filter:brightness(1.07)}
.pro-shell button:focus-visible,.pro-shell a:focus-visible,.pro-shell input:focus-visible,.pro-shell select:focus-visible,.pro-shell textarea:focus-visible{outline:2px solid var(--b);outline-offset:3px}
.pro-shell :where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){background:var(--s);border-color:var(--l);color:var(--t);border-radius:14px}
.pro-shell input:focus,.pro-shell select:focus,.pro-shell textarea:focus{border-color:var(--b)}
.pro-shell .mobile-catalog .search-box input,.pro-shell .mobile-catalog .search-box input:focus{background:transparent;border:0;border-radius:0}

/* ---------- brand ELL. ---------- */
.ell-logo{display:inline-flex;align-items:flex-end;line-height:1;white-space:nowrap;color:var(--t)}
.ell-logo b{font-size:28px;font-weight:900;letter-spacing:-.07em;color:var(--t)!important}
.ell-dot{display:inline-block;flex:none;width:.34em;height:.34em;font-size:28px;border-radius:50%;margin:0 0 .05em .11em;background:linear-gradient(145deg,#7c5cff,#c45cff 55%,#ff6fa3);animation:ell-pulse 3.2s ease-out infinite}
@keyframes ell-pulse{0%{box-shadow:0 0 0 0 rgba(196,92,255,.45)}70%,100%{box-shadow:0 0 0 .35em rgba(196,92,255,0)}}
.pro-shell .brand{gap:0;color:var(--t)!important;text-decoration:none}
.pro-shell .brand .ell-logo b,.pro-shell .brand b{font-size:28px}
@media(prefers-reduced-motion:reduce){.ell-dot{animation:none}}

/* ---------- desktop frame (>1100px): full-width glass header, airy sidebar ---------- */
@media (min-width:1101px){
 .pro-shell{padding:0;gap:0;grid-template-rows:68px minmax(0,1fr);--frame-bottom:0px;--sidebar-width:268px}
 [data-sidebar=compact] .pro-shell{--sidebar-width:78px}
 .pro-shell .pro-topbar,.cabinet-shell.signed-in .pro-topbar{display:flex;align-items:center;gap:22px;max-width:none;width:100%;height:68px;margin:0;padding:0 24px;border:0;border-bottom:1px solid var(--l);border-radius:0;background:color-mix(in srgb,var(--bg) 72%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:none}
 .pro-shell .top-links{margin:0;justify-self:auto;gap:2px}
 .pro-shell .top-actions{margin-left:auto;gap:10px}
 .pro-shell .pro-layout,.cabinet-shell.signed-in .pro-layout{max-width:none;gap:0;padding:0}
 .pro-shell .pro-layout>main,.cabinet-shell.signed-in .pro-layout>main{padding:28px 40px 48px 20px}
 .shell-ready .pro-layout{transition:grid-template-columns .45s var(--spring)}
}
@media (min-width:1101px) and (max-width:1250px){.pro-shell{--sidebar-width:236px}.pro-shell .pro-layout>main{padding-right:28px}}

/* ---------- header ---------- */
.pro-shell .top-links a{padding:8px 14px;border-radius:12px;color:var(--m);font-weight:600;font-size:15px;background:transparent!important;transition:color .2s,background .2s}
.pro-shell .top-links a:hover{background:var(--glass)!important;color:var(--t)}
.pro-shell .top-links a[aria-current=page]{color:var(--t);background:transparent!important}
.pro-shell .theme-toggle{width:40px;height:40px;min-height:40px;border-radius:12px;border:1px solid var(--l);background:var(--glass);color:var(--m)}
.pro-shell .theme-toggle:hover{color:var(--t);border-color:var(--l);background:var(--s2)}
.pro-shell #public-account{min-width:0;padding:11px 18px;border-radius:14px;font-size:14.5px}
.pro-shell .menu-toggle{border-radius:12px;border-color:var(--l);background:var(--glass);color:var(--m)}

/* account popover = prototype .menu */
.account-panel{border-radius:18px;padding:12px;background:var(--s);border:1px solid var(--l);box-shadow:var(--shL);transform-origin:top right;animation:ell-pop .3s var(--spring)}
.account-panel>strong{padding:6px 10px 0}.account-panel #account-email{padding:0 10px 12px}
.account-panel>a,.account-panel>button{border-radius:12px;font-weight:600;font-size:14px;padding:10px 12px}
.account-panel>a:hover,.account-panel>button:hover{background:var(--s2)!important}
.appearance-settings{padding:4px 10px 12px}
@keyframes ell-pop{from{opacity:0;transform:scale(.94) translateY(-6px)}}

/* ---------- sidebar (prototype .side/.sg/.nv) ---------- */
.pro-shell .pro-sidebar,.cabinet-shell.signed-in .pro-sidebar{background:transparent;border:0;border-radius:0;padding:18px 14px 24px;box-shadow:none}
.pro-sidebar #sidebar-navigation{gap:0}
.pro-sidebar #sidebar-navigation>div{margin-top:20px}
.pro-sidebar #sidebar-navigation>div:first-child{margin-top:4px}
.pro-sidebar #nav-sites,.pro-sidebar #nav-messengers{border-top:0;padding-top:0}
.pro-shell .sidebar-heading{padding-left:10px;margin-bottom:6px;font-size:12px;font-weight:700;color:var(--m)}
.pro-shell .pro-sidebar .nav-caption{font-size:12px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--m);padding:0 10px 8px}
.pro-shell .side-item,.pro-shell .pro-sidebar .side-item{gap:12px;min-height:0;padding:6px 12px 6px 6px;margin:0 0 2px;border:0;border-radius:14px;font-size:14px;font-weight:600;line-height:1.3;color:var(--t);background:transparent;transition:background .2s,box-shadow .2s}
.pro-shell .side-item:hover{background:var(--glass);color:var(--t)}
.pro-shell .side-item.active,.pro-shell .side-item[aria-current=page]{background:var(--s)!important;box-shadow:var(--sh);color:var(--t);font-weight:600}
.pro-shell .side-item.active:before{display:none}
.pro-shell .side-label{overflow:hidden;text-overflow:ellipsis}
.pro-shell .management button{border-radius:14px}

/* gradient service tiles */
.tile{--g1:#7c5cff;--g2:#4f8bff;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:none;color:#fff;background:linear-gradient(145deg,var(--g1),var(--g2));box-shadow:0 10px 22px -10px var(--g1),inset 0 1px 0 rgba(255,255,255,.35)}
.tile svg{width:46%!important;height:46%!important;stroke:currentColor;stroke-width:2}
.side-item .tile{margin:0}
[data-svc=home]{--g1:#121320;--g2:#4b4b66}:root:not([data-theme=light]) [data-svc=home]{--g1:#3a3a55;--g2:#5b5b7a}[data-svc=all]{--g1:#6b57ff;--g2:#c45cff}
[data-svc=planner]{--g1:#7c5cff;--g2:#4f8bff}[data-svc=crosspost]{--g1:#a855f7;--g2:#ec4899}[data-svc=templates]{--g1:#6366f1;--g2:#8b5cf6}
[data-svc=connections]{--g1:#0ea5e9;--g2:#6366f1}[data-svc=delivery-history]{--g1:#64748b;--g2:#6b57ff}
[data-svc=seo]{--g1:#10b981;--g2:#06b6d4}[data-svc=sitemap]{--g1:#14b8a6;--g2:#22c55e}[data-svc=robots]{--g1:#22c55e;--g2:#84cc16}
[data-svc=links]{--g1:#06b6d4;--g2:#3b82f6}[data-svc=availability]{--g1:#ef4444;--g2:#f97316}[data-svc=reviews]{--g1:#f59e0b;--g2:#f97316}
[data-svc=images]{--g1:#ec4899;--g2:#f97316}[data-svc=design]{--g1:#f43f5e;--g2:#a855f7}[data-svc=qr]{--g1:#334155;--g2:#6366f1}
[data-svc=presentations]{--g1:#3b82f6;--g2:#8b5cf6}[data-svc=portfolio]{--g1:#8b5cf6;--g2:#d946ef}
.side-item .soon-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:var(--m);opacity:.4;flex:none}

/* compact (icons only) */
@media (min-width:1101px){
 [data-sidebar=compact] .pro-sidebar .side-item{justify-content:center;padding:6px}
 [data-sidebar=compact] .pro-sidebar .soon-dot{display:none}
 [data-sidebar=compact] .pro-sidebar #sidebar-navigation>div{margin-top:12px;padding-top:12px;border-top:1px solid var(--l)}
 [data-sidebar=compact] .pro-sidebar #sidebar-navigation>div:first-child{border-top:0;padding-top:0}
}
#nav-tooltip{border-radius:12px;border-color:var(--l);background:var(--s);box-shadow:var(--sh);font-weight:600}

/* ---------- content surfaces ---------- */
.pro-shell .tool-card,.pro-shell .detail-panel,.pro-shell .catalog-note{border-color:var(--l);border-radius:var(--r);background:var(--s);box-shadow:var(--sh)}
.pro-shell .card-art{border-radius:calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0}
.pro-shell .eyebrow{color:var(--bt)}
.pro-shell .page-footer{color:var(--m);border-top:1px solid var(--l)}
.pro-shell dialog:not(.nav-drawer){background:var(--s);color:var(--t);border:1px solid var(--l);border-radius:24px;box-shadow:var(--shL)}
.pro-shell .nav-drawer,.pro-shell .nav-drawer .pro-sidebar{background:var(--s)}
.catalog-search input{border-radius:14px!important;background:var(--glass)!important;border-color:var(--l)!important}

/* ---------- phone / tablet app shell (≤1100px, the breakpoint mobile-shell.css uses) ---------- */
@media (max-width:1100px),(max-width:1366px) and (hover:none) and (pointer:coarse){
 .pro-shell .brand .ell-logo b,.pro-shell .brand b{font-size:24px}.pro-shell .ell-dot{font-size:24px}
 .mobile-nav-indicator{display:none}
 .pro-shell .mobile-bottom::before{display:none}
 /* header: transparent over the aurora at the top, glass appears once content slides under it */
 .pro-shell .pro-topbar::before,.pro-shell .pro-topbar::after{opacity:0;transition:opacity .35s ease}
 body.hdr-solid .pro-topbar::before,body.hdr-solid .pro-topbar::after{opacity:1}
 :root .pro-shell{--glass:rgba(24,23,38,.62)}:root[data-theme=light] .pro-shell{--glass:rgba(255,255,255,.66)}
 .pro-shell .mobile-bottom{padding:0 12px calc(14px + env(safe-area-inset-bottom))}
 .pro-shell .mobile-bottom{transition:transform .6s cubic-bezier(.34,1.3,.5,1),opacity .4s ease;transform-origin:50% 100%}
 .pro-shell .mobile-bottom-inner{grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;height:70px;padding:0 6px;border-radius:26px;border-color:var(--glassB);background:var(--glass);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);box-shadow:var(--sh);transition:border-radius .5s var(--spring)}
 .pro-shell .mobile-bottom-item{height:auto;flex-direction:column!important;gap:3px!important;font-size:10.5px!important;font-weight:700;color:var(--m);transition:color .2s,transform .3s var(--spring)}
 .pro-shell .mobile-bottom-item:active{transform:scale(.88)}
 .pro-shell .mobile-bottom-item[aria-current=page]{color:var(--bt)}
 .pro-shell .mobile-bottom-item svg{width:23px;height:23px}
 .pro-shell .mobile-plus{display:grid;place-items:center;padding:0;border:0;background:transparent!important;box-shadow:none;min-height:0;transform:none}
 .pro-shell .mobile-plus .plus{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#7c5cff,#c45cff);box-shadow:0 14px 26px -10px #7c5cff;transition:transform .3s var(--spring)}
 .pro-shell .mobile-plus:active .plus{transform:scale(.9) rotate(90deg)}
 .pro-shell .mobile-plus svg{width:24px;height:24px}
 body.tb-hide .mobile-bottom{transform:translateY(calc(100% + 28px)) scaleX(.72) scaleY(1.18);opacity:0;pointer-events:none;transition:transform .55s cubic-bezier(.55,0,.75,.2),opacity .45s ease .1s}
}
/* quick action sheet behind «+» */
.pro-shell dialog.qsheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:560px;max-height:90dvh;padding:10px 20px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:28px 28px 0 0;background:var(--s);color:var(--t);box-shadow:var(--shL);transform:translateY(100%);transition:transform .45s var(--spring)}
.pro-shell dialog.qsheet.open{transform:none}
.pro-shell dialog.qsheet::backdrop{background:rgba(10,10,25,.3);backdrop-filter:blur(4px);opacity:0;transition:opacity .3s ease}
.pro-shell dialog.qsheet.open::backdrop{opacity:1}
.qsheet .grab{width:44px;height:5px;border-radius:9px;background:var(--l);margin:0 auto 14px}
:root:not([data-theme=light]) .qsheet .grab{background:rgba(255,255,255,.18)}
.qsheet h3{margin:0 0 18px;font-size:20px;letter-spacing:-.02em}
.qsheet .qa{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 10px}
.pro-shell .qsheet .qa a{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12.5px;font-weight:600;text-align:center;color:var(--t);text-decoration:none;transition:transform .3s var(--spring)}
.qsheet .qa a:active{transform:scale(.92)}
.qsheet .tile.lg{width:60px;height:60px;border-radius:19px}
.pro-shell .qsheet .qclose{display:block;width:100%;margin-top:22px;padding:13px;border-radius:14px;border:1px solid var(--l);background:var(--s2);font-weight:700}
@media (prefers-reduced-motion:reduce){.pro-shell dialog.qsheet,.pro-shell dialog.qsheet::backdrop,.pro-shell .mobile-bottom{transition:none}}

/* ---------- tablets and Fold (601–1100px): icon rail instead of the phone dock (prototype 601–1023) ---------- */
@media (min-width:601px) and (max-width:1100px),(min-width:601px) and (max-width:1366px) and (hover:none) and (pointer:coarse){
 .pro-shell .pro-layout,.cabinet-shell.signed-in .pro-layout{grid-template-columns:78px minmax(0,1fr)!important;max-width:none}
 .pro-layout #sidebar-host{display:block;height:100dvh;overflow-y:auto;scrollbar-width:none;padding-top:calc(var(--mobile-header-height) + 4px)}
 .pro-layout #sidebar-host::-webkit-scrollbar{display:none}
 #sidebar-host .pro-sidebar{height:auto;min-height:0;padding:8px 14px 24px;border:0;background:transparent}
 #sidebar-host .drawer-title,#sidebar-host .drawer-global,#sidebar-host .sidebar-heading,#sidebar-host .nav-caption,#sidebar-host .side-label,#sidebar-host .soon-dot{display:none!important}
 #sidebar-host .side-item{justify-content:center!important;padding:6px!important;gap:0}
 #sidebar-host #sidebar-navigation>div{margin-top:12px;padding-top:12px;border-top:1px solid var(--l)}
 #sidebar-host #sidebar-navigation>div:first-child{margin-top:0;padding-top:0;border-top:0}
 .pro-shell .mobile-bottom{display:none!important}
 .pro-shell{--mobile-bottom-space:32px}
 .pro-shell .pro-layout>main,.cabinet-shell.signed-in .pro-layout>main{padding-left:24px!important;padding-right:28px!important}
 .pro-shell .top-actions .account-menu{display:block}
 .pro-shell #public-account{height:40px;min-height:40px;padding:0 16px;font-size:13.5px}
}
/* ---------- page to page: the shell stays, the content fades in (prototype .page animation) ---------- */
@view-transition{navigation:auto}
@media (min-width:1101px){.pro-shell .pro-topbar{view-transition-name:ell-hdr}.pro-shell #sidebar-host{view-transition-name:ell-side}}
.pro-shell .mobile-bottom-inner{view-transition-name:ell-dock}
::view-transition-old(root){animation:ell-vt-out .16s ease both}
::view-transition-new(root){animation:ell-vt-in .5s cubic-bezier(.2,.8,.2,1) both}
::view-transition-group(ell-hdr),::view-transition-group(ell-side),::view-transition-group(ell-dock){animation-duration:0s}
@keyframes ell-vt-out{to{opacity:0}}
@keyframes ell-vt-in{from{opacity:0;transform:translateY(14px)}}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}
/* ---------- header search, guest buttons, sidebar guest card (prototype .srch / .gst) ---------- */
.hdr-search{display:flex;align-items:center;gap:10px;height:42px;padding:0 10px 0 14px;border-radius:14px;background:var(--glass);border:1px solid var(--l);color:var(--m);min-width:230px;transition:border-color .2s,background .2s}
.hdr-search:focus-within{border-color:var(--b);background:var(--s)}
.hdr-search svg{width:17px;height:17px;flex:none}
.pro-shell .hdr-search input{flex:1;min-width:0;width:120px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:14px;color:var(--t);outline:0}
.pro-shell .hdr-search input::placeholder{color:var(--m);opacity:1}
.pro-shell .hdr-search input:focus-visible{outline:0}
.hdr-search kbd{font:600 11px Onest,sans-serif;background:var(--s2);color:var(--m);padding:2px 7px;border-radius:6px;white-space:nowrap}
.pro-shell #public-account.ghost-in{background:var(--glass);color:var(--t)!important;border:1px solid var(--l);box-shadow:none}
.pro-shell #public-account.ghost-in:hover{background:var(--s2)}
.pro-shell .hdr-start{padding:11px 18px;border-radius:14px;font-size:14.5px;white-space:nowrap}
@media (min-width:1101px) and (max-width:1300px){.hdr-search{min-width:0}.hdr-search kbd{display:none}.pro-shell .hdr-search input{width:90px}}
.pro-shell .pro-sidebar{display:flex;flex-direction:column}
.pro-sidebar #sidebar-navigation{flex:none}
.side-guest{margin-top:auto;position:relative;overflow:hidden;border-radius:20px;padding:18px;color:#fff;background:linear-gradient(145deg,#7c5cff,#c45cff);box-shadow:0 20px 40px -20px #7c5cff;flex:none}
.side-guest:after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.18);right:-40px;top:-50px}
.side-guest b{display:block;font-size:15px;position:relative}
.side-guest small{display:block;opacity:.85;font-size:12.5px;margin:6px 0 12px;position:relative}
.pro-shell .side-guest a{position:relative;display:block;text-align:center;border-radius:12px;padding:10px;font-weight:800;background:#fff;color:#6b57ff;text-decoration:none;transition:transform .25s var(--spring)}
.pro-shell .side-guest a:active{transform:scale(.97)}
[data-sidebar=compact] .side-guest{display:none}
@media (max-width:1100px),(max-width:1366px) and (hover:none) and (pointer:coarse){.hdr-search,.pro-shell .hdr-start,.side-guest{display:none!important}}
/* ---------- desktop: content scrolls under the glass header (mockup v2 sticky glass) ---------- */
@media (min-width:1101px){
 .pro-shell{grid-template-rows:minmax(0,1fr)}
 .pro-shell .pro-topbar,.cabinet-shell.signed-in .pro-topbar{grid-area:1/1;align-self:start;z-index:30}
 .pro-shell .pro-layout,.cabinet-shell.signed-in .pro-layout{grid-area:1/1;height:100dvh}
 .pro-shell #sidebar-host{height:100%}
 .pro-shell .pro-sidebar,.cabinet-shell.signed-in .pro-sidebar{padding-top:86px}
 .pro-shell .pro-layout>main,.cabinet-shell.signed-in .pro-layout>main{padding-top:96px;scroll-padding-top:84px}
 .public-shell .pro-layout>main>.ek:first-child{margin-top:-96px!important;padding-top:68px}
 .ek>section:first-child>.aur,.ek>.phead:first-child>.aur{top:-68px}
 .svc3 .anc{top:68px}
 .pro-shell .pro-layout>main,.pro-shell .pro-layout>main.pro-modern-scroll{-webkit-mask-image:none!important;mask-image:none!important;overflow-x:hidden}
}
/* ---------- sidebar details from the prototype: folding groups ▾, green «без регистрации» dot, «Свернуть меню» at the bottom ---------- */
.pro-shell .pro-sidebar .nav-caption{display:flex;justify-content:space-between;align-items:center;cursor:pointer;user-select:none;border-radius:8px}
.pro-sidebar .nav-caption::after{content:"▾";font-size:11px;transition:transform .3s var(--spring);opacity:.7}
.pro-sidebar .sg-closed>.nav-caption::after{transform:rotate(-90deg)}
.pro-sidebar .sg-closed>.side-item{display:none}
[data-sidebar=compact] .pro-sidebar .sg-closed>.side-item{display:flex}
@media (min-width:1101px){[data-sidebar=compact] .pro-shell .pro-sidebar .nav-caption{display:none}}
.pro-sidebar .nav-caption:focus-visible{outline:2px solid var(--b);outline-offset:2px}
.side-item .free-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:var(--ok);flex:none}
[data-sidebar=compact] .side-item .free-dot{display:none}
.pro-shell #sidebar-collapse.side-collapse{width:auto;height:auto;min-width:0;border-radius:10px;display:flex;align-items:center;gap:10px;margin-top:auto;padding:14px 10px 0;border:0;background:transparent!important;box-shadow:none!important;transform:none!important;color:var(--m);font-size:13px;font-weight:600;min-height:0;flex:none}
.pro-shell .side-guest+.side-collapse{margin-top:0}
.pro-shell .side-collapse:hover{color:var(--t)}
.side-collapse svg{width:18px;height:18px;transition:transform .4s var(--spring)}
[data-sidebar=compact] .pro-shell .side-collapse{justify-content:center;padding-left:0;padding-right:0}
@media (max-width:1100px),(max-width:1366px) and (hover:none) and (pointer:coarse){.pro-shell .side-collapse,.side-item .free-dot{display:none!important}#sidebar-host .sg-closed>.side-item{display:flex!important}}

/* ---------- large screens and TV: the whole interface scales like the prototype (≥1800px) ---------- */
@media (min-width:1800px){.pro-shell{--z:1.12}}
@media (min-width:2100px){.pro-shell{--z:1.3}}
@media (min-width:2500px){.pro-shell{--z:1.5}}
@media (min-width:3000px){.pro-shell{--z:1.8}}
@media (min-width:3600px){.pro-shell{--z:2.1}}
@media (min-width:1800px){
 .pro-shell{zoom:var(--z);height:calc(100dvh / var(--z))}
 .pro-shell .pro-layout,.cabinet-shell.signed-in .pro-layout{height:calc(100dvh / var(--z))}
}
/* ---------- profile page (phone «Профиль»): prototype cards ---------- */
.pro-shell .mobile-profile{font-size:16px}
.pro-shell .mobile-profile-heading h1{font-size:clamp(30px,5vw,44px);font-weight:900;letter-spacing:-.04em}
.pro-shell .mobile-profile-heading p{color:var(--m)}
.pro-shell .mobile-profile-intro{position:relative;overflow:hidden;border:0;border-radius:28px;padding:26px;color:#fff;background:linear-gradient(135deg,#5b45ff,#9b4dff 60%,#ff6fa3);box-shadow:0 26px 50px -24px #6b57ff}
.pro-shell .mobile-profile-intro:after{content:"";position:absolute;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.14);right:-70px;bottom:-90px;pointer-events:none}
.pro-shell .mobile-profile-intro>*{position:relative;z-index:1}
.pro-shell .mobile-profile-intro h2{color:#fff;font-size:24px;letter-spacing:-.03em;line-height:1.15}
.pro-shell .mobile-profile-intro p{color:#fff;opacity:.88}
.pro-shell .mobile-profile-symbol{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.2);color:#fff}
.pro-shell .mobile-profile-symbol svg{width:26px;height:26px}
.pro-shell .mobile-profile-intro .button.primary{background:#fff!important;color:#5b45ff!important;border:0!important;box-shadow:0 18px 36px -18px rgba(0,0,0,.45);border-radius:16px;min-height:52px;font-weight:800}
.pro-shell .mobile-profile-intro .mobile-profile-guest-link{color:#fff!important;font-weight:700;text-decoration:underline}
.pro-shell .mobile-profile-account,.pro-shell .mobile-profile-settings{border:1px solid var(--glassB);border-radius:24px;background:var(--glass);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);box-shadow:var(--sh)}
.pro-shell .mobile-profile-row{gap:14px;min-height:74px;transition:background .2s}
.pro-shell .mobile-profile-row:hover{background:color-mix(in srgb,var(--s) 60%,transparent)}
.pro-shell .mobile-profile-row .tile svg{color:#fff}
.pro-shell .mobile-profile-row strong{font-size:15px}
.pro-shell .mobile-profile-row small{font-size:13px}
.pro-shell .mobile-profile-chevron{color:var(--m)}
.pro-shell .mobile-profile .appearance-settings select{border-radius:14px;height:48px;padding:0 14px;background:var(--s2);border:1px solid var(--l)}
/* shell parts that switch at breakpoints glide like the prototype frame */
@media (prefers-reduced-motion:no-preference){
 .shell-ready .pro-shell .pro-topbar{transition:padding .45s var(--spring),gap .45s var(--spring),height .45s var(--spring)}
 .shell-ready .pro-shell .pro-layout>main{transition:padding .45s var(--spring)}
 .shell-ready .pro-shell .pro-sidebar{transition:padding .45s var(--spring)}
}