:root{color-scheme:light;--ink:#101214;--muted:#697078;--accent:#39e600;--soft:#efffea;--paper:#fff;--bg:#f7f8f6;--line:#e3e3df;--green:#168b2d;font-family:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink)}
button,input,textarea{font:inherit}
.skip-link{position:fixed;left:12px;top:-60px;background:#fff;padding:10px;z-index:5}
.skip-link:focus{top:12px}
.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:2}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:18px}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent);color:#101214;font-weight:900}
.account-shell{width:min(1180px,calc(100% - 32px));margin:0 auto 72px}
.status{min-height:0}
.status:not(:empty){margin:18px 0 0;padding:12px 16px;border-radius:12px;background:#e9f6ee;color:var(--green)}
.status[data-kind=error]{background:#fff0ef;color:#a12323}
.welcome{text-align:center;max-width:720px;margin:70px auto 38px}
.welcome h1,.section-heading h1{font-size:clamp(36px,5vw,58px);font-weight:800;margin:5px 0 10px;letter-spacing:-.04em}
.welcome>p:last-child,.section-heading p{color:var(--muted);font-size:18px}
.eyebrow{margin:0;color:var(--accent)!important;font-size:13px!important;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.guest-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:940px;margin:auto}
.card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:16px;box-shadow:0 10px 30px rgba(20,20,20,.035)}
.card h2{margin:0 0 8px;font-size:21px}
.muted,.hint{color:var(--muted)}
.hint{font-size:14px}
.provider-grid,.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.provider,.button{border:0;border-radius:12px;padding:13px 17px;background:var(--accent);color:#101214;font-weight:800;cursor:pointer}
.provider:hover,.button:hover{background:var(--accent)}
.provider--vk{background:#2787f5}
.provider--telegram{background:#239bd7}
.provider--max{background:#7357ff}
.button--quiet{background:#fff;color:var(--ink);border:1px solid var(--line)}
button:disabled{opacity:.55;cursor:wait}
.dashboard{display:grid;grid-template-columns:250px minmax(0,1fr);gap:42px;padding-top:36px}
.sidebar{position:sticky;top:108px;align-self:start}
.identity{display:flex;gap:12px;align-items:center;padding:0 10px 24px;border-bottom:1px solid var(--line)}
.identity div{display:grid;gap:4px}
.identity small{color:var(--muted)}
.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--accent);font-size:20px;font-weight:800}
.side-nav{display:grid;gap:6px;margin-top:18px}
.nav-item{display:grid;text-align:left;gap:3px;border:0;background:transparent;border-radius:12px;padding:12px 14px;cursor:pointer;color:var(--ink)}
.nav-item span{font-weight:750}
.nav-item small{color:var(--muted)}
.nav-item:hover,.nav-item.is-active{background:#fff}
.nav-item.is-active{box-shadow:inset 3px 0 var(--accent)}
.back-link{display:block;margin:26px 14px;color:var(--muted);text-decoration:none;font-size:14px}
.content{min-width:0}
.section-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:6px 0 24px}
.section-heading h1{font-size:51.2px}
.section-heading p:last-child{margin:0;font-size:16px}
.privacy-badge,.active-dot{white-space:nowrap;border-radius:99px;padding:8px 12px;background:#edf8f1;color:var(--green);font-size:13px;font-weight:750}
.privacy-badge.is-public{background:var(--soft);color:#168b2d}
form{display:grid;gap:16px}
.form-card{display:grid;gap:16px}
.form-card>h2{padding-bottom:14px;border-bottom:1px solid var(--line)}
label{display:grid;gap:7px;font-weight:700}
input,textarea{width:100%;border:1px solid #cfcfca;background:#fff;border-radius:11px;padding:12px;color:var(--ink)}
textarea{resize:vertical}
.two-columns,.inline-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.inline-form{grid-template-columns:1fr auto}
.check{display:flex;align-items:flex-start;font-weight:400}
.check input,.field-grid input{width:auto;margin-top:3px}
.field-grid label{display:flex;font-weight:400}
fieldset{border:1px solid var(--line);border-radius:14px;padding:16px}
.savebar{position:sticky;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 28px rgba(0,0,0,.08);z-index:1}
.savebar span{font-size:13px;color:var(--muted)}
.toggle-row,.security-row{display:flex;justify-content:space-between;align-items:center;gap:20px}
.toggle-row span{display:grid;gap:5px}
.toggle-row small{font-weight:400;color:var(--muted)}
.toggle-row input{width:22px;height:22px}
.method-list{display:grid;gap:10px;margin-top:18px}
.method{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:13px;padding:14px}
.method-state{color:var(--green);font-size:13px}
.code-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.code-actions output{font:800 20px/1 monospace;letter-spacing:.08em;background:var(--bg);padding:13px;border-radius:10px}
.notice{margin-top:16px;padding:16px;border-radius:14px;background:var(--soft);color:#145f25}
.security-row h2{margin-bottom:4px}
code{display:inline-block;background:var(--bg);border-radius:8px;padding:9px;max-width:100%;overflow-wrap:anywhere}
input:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid rgba(57,230,0,.32);outline-offset:2px}
@media(max-width:760px){.topbar{padding:0 16px}
.account-shell{width:min(100% - 24px,1180px)}
.guest-grid,.dashboard{grid-template-columns:1fr}
.welcome{margin-top:42px}
.dashboard{gap:20px}
.sidebar{position:static}
.side-nav{grid-template-columns:1fr 1fr}
.back-link{display:none}
.section-heading{align-items:flex-start;flex-direction:column}
.section-heading h1{font-size:36px}
.two-columns,.provider-grid,.field-grid{grid-template-columns:1fr}
.savebar{align-items:stretch;flex-direction:column}
.savebar .button{width:100%}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
.nav-label{margin:22px 14px 6px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hero{min-height:210px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px 40px;margin-bottom:18px;overflow:hidden}.hero h1{margin:4px 0 10px;font-size:58px;font-weight:800;line-height:.95;letter-spacing:-.04em}.hero p:last-child{color:var(--muted)}
.hero-bubble{display:grid;place-items:center;width:160px;height:115px;border-radius:50%;background:var(--accent);color:#101214;font-size:54px;font-weight:900;transform:rotate(-3deg)}
.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.card-title h2{margin:0}.card-title button{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer}
.compact-list,.chat-list{display:grid;gap:8px}.compact-item{display:grid;gap:4px;padding:11px 0;border-top:1px solid var(--line)}.compact-item:first-child{border-top:0}.compact-item b{font-size:14px}.compact-item small{color:var(--muted)}
.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-tile{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;min-height:140px}.portal-tile h2{margin:0 0 8px;font-size:19px}.portal-tile p{color:var(--muted);margin:6px 0}.portal-search{margin-bottom:18px;padding:15px 18px}
.person-head{display:flex;align-items:center;gap:12px}.person-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--green);font-weight:800}.chat-list{max-height:520px;overflow:auto}.chat-message{padding:13px;border-radius:14px;background:var(--bg)}.chat-message b{display:block;margin-bottom:4px}.chat-message p{margin:0}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.chat-actions{display:flex;gap:12px;margin-top:9px}.chat-actions button{border:0;background:none;padding:0;color:var(--muted);font-size:12px;cursor:pointer}.chat-actions button:hover{color:var(--green)}
@media(max-width:760px){.hero{padding:26px}.hero h1{font-size:36px}.hero-bubble{display:none}.portal-grid,.tile-grid{grid-template-columns:1fr}.chat-compose{grid-template-columns:1fr}.nav-label{grid-column:1/-1}}
.global-search,.header-user,.side-brand,.community-note{display:none}
.is-authenticated{background:#fff}
.is-authenticated .topbar{left:280px;width:calc(100% - 280px);padding:14px 28px;height:78px;gap:22px}
.is-authenticated .topbar>.brand{display:none}.is-authenticated .global-search{display:flex;align-items:center;gap:10px;flex:1;max-width:690px;border:1px solid var(--line);border-radius:13px;padding:0 15px;background:#fff}.is-authenticated .global-search span{font-size:27px;color:var(--muted);transform:rotate(-20deg)}.is-authenticated .global-search input{border:0;padding:10px 0;outline:0;background:transparent}.is-authenticated .header-user{display:flex;align-items:center;gap:10px;margin-left:auto}.header-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--green);font-weight:850}
.is-authenticated .topbar #logoutButton{display:none}.is-authenticated .account-shell{width:auto;margin:0 0 60px 280px;padding:0 28px}.is-authenticated .dashboard{display:block;padding-top:22px}.is-authenticated .sidebar{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:280px;padding:28px 24px 24px;background:#fff;border-right:1px solid var(--line);overflow:auto;z-index:4}.side-brand{position:relative;color:#090a0b;text-decoration:none;font-size:40px;font-weight:950;line-height:.75;letter-spacing:-.06em;margin:6px 10px 34px}.side-brand span,.side-brand b{display:block}.side-brand b{font-size:28px;margin-top:11px}.side-brand i{position:absolute;right:3px;top:7px;display:grid;place-items:center;width:62px;height:45px;border-radius:50%;background:var(--accent);font:900 22px/1 Arial;letter-spacing:2px}.is-authenticated .side-brand{display:block}.is-authenticated .identity{order:5;margin-top:18px;padding:15px 10px;border:0;background:var(--soft);border-radius:14px}.is-authenticated .side-nav{order:2;margin:0}.is-authenticated .nav-item{padding:11px 14px;grid-template-columns:1fr}.is-authenticated .nav-item small{display:none}.is-authenticated .nav-item:hover,.is-authenticated .nav-item.is-active{background:var(--accent);box-shadow:none;color:#0b0d0e}.is-authenticated .nav-item.is-active small{color:#194b16}.is-authenticated .nav-label{margin-top:20px}.is-authenticated .community-note{order:3;display:grid;gap:5px;position:relative;min-height:135px;margin-top:20px;padding:17px;background:#fafbf9;border:1px solid var(--line);border-radius:16px;overflow:hidden}.community-note span{font-size:13px;max-width:150px}.community-note i{position:absolute;right:13px;bottom:13px;width:58px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--accent);font:900 20px Arial}.is-authenticated .back-link{order:6;margin-top:15px}.is-authenticated .content{margin-top:58px;max-width:1280px}.is-authenticated .status:not(:empty){position:relative;top:88px;margin:0 0 12px}.is-authenticated .hero{min-height:250px}.is-authenticated .hero h1{font-size:58px}.is-authenticated .card{border-radius:16px;box-shadow:0 3px 14px rgba(30,40,30,.05)}
@media(max-width:900px){.is-authenticated .topbar{left:0;width:100%;padding:12px 16px}.is-authenticated .global-search{display:none}.is-authenticated .account-shell{margin-left:0;padding:0 14px}.is-authenticated .dashboard{padding-top:95px}.is-authenticated .sidebar{position:static;width:auto;padding:16px;margin-top:0;border:0;border-radius:16px}.is-authenticated .side-brand,.is-authenticated .community-note{display:none}.is-authenticated .side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.is-authenticated .identity{order:1;margin:0 0 12px}.is-authenticated .side-nav{order:2}.is-authenticated .back-link{display:none}.is-authenticated .content{margin-top:20px}.is-authenticated .status:not(:empty){top:88px}}
@media(max-width:760px){.is-authenticated .hero h1{font-size:36px}.section-heading h1{font-size:36px}}
.hero h1 span{position:relative;white-space:nowrap}.hero h1 span::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:5px;background:var(--accent);border-radius:99px;transform:rotate(-1deg)}
.hero-side{display:flex;align-items:center;gap:18px}.community-total{display:grid;min-width:145px;padding:18px;border-radius:18px;background:var(--accent);color:#101214}.community-total strong{font-size:32px;line-height:1}.community-total span{font-size:13px;font-weight:700;margin-top:5px}
@media(min-width:681px){.is-authenticated .topbar{left:245px;width:calc(100% - 245px);height:72px;padding:10px 24px}.is-authenticated .account-shell{margin-left:245px;padding:0 22px}.is-authenticated .dashboard{padding-top:12px}.is-authenticated .sidebar{position:fixed;left:0;top:0;bottom:0;width:245px;padding:22px 18px;border-right:1px solid var(--line);border-radius:0}.is-authenticated .side-brand{display:block;margin:4px 8px 26px}.side-brand{font-size:36px}.side-brand b{font-size:25px}.side-brand i{width:55px;height:41px}.is-authenticated .global-search{display:flex}.is-authenticated .content{margin-top:68px;max-width:none}.is-authenticated .status:not(:empty){top:78px}.is-authenticated .hero{min-height:190px;padding:26px 30px}.is-authenticated .hero h1{font-size:48px}.is-authenticated .community-note{display:grid}.is-authenticated .side-nav{grid-template-columns:1fr}.is-authenticated .identity{order:5}.is-authenticated .back-link{display:block}}
@media(min-width:681px) and (max-width:1050px){.is-authenticated .topbar{left:210px;width:calc(100% - 210px)}.is-authenticated .account-shell{margin-left:210px;padding:0 14px}.is-authenticated .sidebar{width:210px;padding:18px 13px}.side-brand{font-size:31px}.side-brand b{font-size:22px}.side-brand i{right:0;width:47px;height:36px}.is-authenticated .header-user strong{display:none}.is-authenticated .hero{padding:22px}.is-authenticated .hero h1{font-size:39px}.hero-side{gap:8px}.community-total{display:none}.portal-grid{gap:12px}.card{padding:18px}}
@media(max-width:680px){.is-authenticated .hero h1{font-size:34px}.hero-side{display:none}.is-authenticated .side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
.profile-showcase{display:flex;align-items:center;gap:30px;padding:6px 22px 28px}.profile-showcase-avatar{flex:0 0 auto;width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#b7e764,#28b968);color:#fff;font-size:54px;font-weight:800}.profile-showcase-copy{min-width:0;flex:1}.profile-showcase-title{display:flex;align-items:center;justify-content:space-between;gap:18px}.profile-showcase h1{margin:0;font-size:50px;line-height:1.05;font-weight:800;letter-spacing:-.03em}.profile-showcase-copy>p{margin:14px 0;color:var(--muted);font-size:19px}.interest-tags{display:flex;flex-wrap:wrap;gap:9px}.interest-tags span{padding:9px 14px;border-radius:11px;background:var(--soft);color:var(--green);font-size:14px}.profile-methods-card .method-list{margin-top:4px}.profile-methods-card .method{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0}.profile-methods-card .method:first-child{border-top:0}.method-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--accent);color:#101214;font-size:12px;font-weight:900}.method-icon--vk{background:#2787f5;color:#fff}.method-icon--telegram{background:#239bd7;color:#fff}.method-icon--max{background:#7357ff;color:#fff}.profile-methods-card .method-state{justify-self:end}.profile-showcase+form>.savebar{position:static;justify-content:flex-end;background:transparent;border:0;box-shadow:none;padding:0}.profile-showcase+form>.savebar span{margin-right:auto}
@media(max-width:760px){.profile-showcase{align-items:flex-start;padding:0 0 22px;gap:16px}.profile-showcase-avatar{width:78px;height:78px;font-size:30px}.profile-showcase-title{align-items:flex-start;flex-direction:column}.profile-showcase h1{font-size:34px}.profile-showcase-copy>p{font-size:15px;margin:8px 0}.profile-showcase-title .privacy-badge{display:none}.profile-methods-card .method{grid-template-columns:38px minmax(0,1fr)}.profile-methods-card .method-state{grid-column:2;justify-self:start}}
@media(min-width:681px) and (max-width:1050px){.profile-showcase{gap:22px;padding:4px 8px 24px}.profile-showcase-avatar{width:112px;height:112px;font-size:42px}.profile-showcase h1{font-size:40px}.profile-showcase-title .privacy-badge{display:none}.profile-showcase-copy{overflow:hidden}.profile-showcase+form .two-columns{grid-template-columns:1fr 1fr}}
.profile-main-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.profile-professional-grid{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:24px}.profile-professional-grid .profile-wide{grid-column:3;grid-row:1}.profile-professional-grid .profile-full{grid-column:1/-1}.is-profile-route .global-search{visibility:hidden}.is-profile-route .topbar{justify-content:flex-end}.is-profile-route #profileSection{max-width:1344px;margin:0 auto;padding-top:14px}.is-profile-route .profile-showcase{padding:18px 22px 30px}.is-profile-route .profile-showcase-avatar{width:186px;height:186px;font-size:58px}.is-profile-route .profile-showcase h1{font-size:54px}.is-profile-route .profile-showcase-copy>p{font-size:20px}.is-profile-route #profileForm>.form-card{padding:28px;border-radius:13px;margin-bottom:20px}.is-profile-route #profileForm>.form-card h2{font-size:24px}.is-profile-route .profile-methods-card .method{grid-template-columns:42px minmax(0,1fr) 180px;padding:14px 0}.is-profile-route .profile-methods-card .method-icon{width:38px;height:38px}.is-profile-route .profile-showcase+form>.savebar{justify-content:flex-start}.is-profile-route .profile-showcase+form>.savebar .button{min-width:310px;font-size:17px;padding:16px 24px}.is-profile-route .profile-showcase+form>.savebar span{display:none}
@media(min-width:1051px){.is-authenticated .sidebar{width:clamp(245px,18vw,370px)}.is-authenticated .topbar{left:clamp(245px,18vw,370px);width:calc(100% - clamp(245px,18vw,370px));height:86px}.is-authenticated .account-shell{margin-left:clamp(245px,18vw,370px);padding:0 40px}.is-authenticated .content{margin-top:82px}}
@media(max-width:1050px){.profile-main-grid{grid-template-columns:1fr 1fr}.profile-main-grid label:last-child{grid-column:1/-1}.profile-professional-grid{grid-template-columns:1fr 1fr}.profile-professional-grid .profile-wide{grid-column:1/-1;grid-row:auto}.is-profile-route .profile-showcase-avatar{width:112px;height:112px;font-size:42px}.is-profile-route .profile-showcase h1{font-size:40px}}
@media(max-width:680px){.profile-main-grid,.profile-professional-grid{grid-template-columns:1fr}.profile-main-grid label:last-child,.profile-professional-grid .profile-wide,.profile-professional-grid .profile-full{grid-column:auto}.is-profile-route .profile-showcase-avatar{width:78px;height:78px;font-size:30px}.is-profile-route .profile-showcase h1{font-size:34px}.is-profile-route #profileForm>.form-card{padding:18px}.is-profile-route .profile-showcase+form>.savebar .button{width:100%;min-width:0}}
