/* KOVCHEG CMS 3.0. */
:root{--accent:#3390ec;--accent-hover:#2b7fcc;--accent-soft:#e7f3ff;--bg:#dfe7ee;--panel:#fff;--panel-2:#f4f6f8;--text:#17212b;--muted:#708499;--border:#dfe5ea;--bubble-in:#fff;--bubble-out:#e3f5d8;--danger:#df3f40;--ok:#29a36a;--shadow:0 12px 34px rgba(31,55,76,.16);--radius:14px}body[data-theme=dark]{--bg:#0e1621;--panel:#17212b;--panel-2:#202b36;--text:#f2f5f7;--muted:#8b9baa;--border:#253544;--bubble-in:#182533;--bubble-out:#2b5278;--accent-soft:#213c55;--shadow:0 15px 40px rgba(0,0,0,.35)}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--accent);text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}input,textarea,select{width:100%;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:10px;padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}label{display:grid;gap:6px;font-weight:650}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;padding:10px 15px;background:var(--panel-2);color:var(--text);font-weight:700}.btn:hover{filter:brightness(.97)}.btn-primary{background:var(--accent);color:white}.btn-danger{background:#ffe7e7;color:#a92727}.btn-small{padding:7px 10px;font-size:12px}.icon-btn{width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;font-size:20px}.icon-btn:hover{background:var(--panel-2);color:var(--text)}.topbar{height:58px;background:var(--panel);display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);position:relative;z-index:350}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:800}.brand-mark,.logo-large{display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,var(--accent),#7455ef);font-weight:900}.brand-mark{width:34px;height:34px;border-radius:50%}.logo-large{width:76px;height:76px;border-radius:50%;font-size:38px}.topbar nav{display:flex;align-items:center;gap:14px}.topbar nav a,.link-btn{color:var(--muted);border:0;background:none}.top-profile{display:flex!important;align-items:center;gap:8px!important}.footer{text-align:center;padding:8px;color:var(--muted);font-size:12px}.flash{position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:900;padding:11px 18px;border-radius:12px;box-shadow:var(--shadow)}.flash-success{background:#dcf7e8;color:#125e3a}.flash-error{background:#ffe1e1;color:#832323}.avatar,.avatar-sm,.avatar-xs,.profile-avatar{flex:0 0 auto;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,var(--accent),#7a5af8);color:#fff;font-weight:800}.avatar{width:50px;height:50px;font-size:18px}.avatar-sm{width:38px;height:38px}.avatar-xs{width:30px;height:30px}.profile-avatar{width:112px;height:112px;font-size:38px}.avatar img,.avatar-sm img,.avatar-xs img,.profile-avatar img{width:100%;height:100%;object-fit:cover}.channel-avatar{background:linear-gradient(145deg,#5c93c7,#7457d9)}.messenger{height:calc(100vh - 58px);display:grid;grid-template-columns:340px minmax(0,1fr) 320px;background:var(--panel)}.chat-list{border-right:1px solid var(--border);display:flex;flex-direction:column;min-width:0;background:var(--panel)}.list-head{height:68px;display:flex;align-items:center;justify-content:space-between;padding:9px 12px}.profile-shortcut{display:flex;align-items:center;gap:10px;color:var(--text);min-width:0}.profile-shortcut span:last-child{display:grid;min-width:0}.profile-shortcut b,.profile-shortcut small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-shortcut small{color:var(--muted)}.head-actions{display:flex}.chat-search{margin:0 10px 8px;background:var(--panel-2);display:flex;align-items:center;border-radius:20px;padding:0 12px;color:var(--muted)}.chat-search input{border:0;background:transparent;box-shadow:none;padding:9px}.chat-items{overflow:auto;flex:1}.chat-item{height:72px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px 11px;color:var(--text)}.chat-item:hover{background:var(--panel-2)}.chat-item.active{background:var(--accent);color:#fff}.chat-item.active small,.chat-item.active time{color:#eaf5ff}.chat-meta{display:grid;min-width:0}.chat-meta b,.chat-meta small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-meta small{color:var(--muted);margin-top:3px}.chat-side{display:grid;justify-items:end;align-self:stretch;padding:5px 0}.chat-side time{font-size:12px;color:var(--muted)}.chat-side em{font-style:normal;background:var(--accent);color:#fff;min-width:22px;height:22px;border-radius:11px;display:grid;place-items:center;font-size:12px}.chat-item.active .chat-side em{background:#fff;color:var(--accent)}.conversation{position:relative;min-width:0;display:flex;flex-direction:column;background:var(--bg);background-image:radial-gradient(circle at 20% 20%,rgba(255,255,255,.28) 0 1px,transparent 1px);background-size:28px 28px}.conversation-head{height:58px;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;padding:6px 13px}.conversation-title{min-width:0;flex:1}.conversation-title h1{font-size:15px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-title small{color:var(--muted)}.mobile-back{display:none;font-size:32px;color:var(--muted)}.messages{position:relative;flex:1;overflow:auto;padding:18px max(18px,7vw);scroll-behavior:smooth}.message{max-width:min(620px,82%);display:flex;gap:8px;align-items:flex-end;margin:5px 0}.message.mine{margin-left:auto;flex-direction:row-reverse}.bubble{position:relative;background:var(--bubble-in);border-radius:15px 15px 15px 5px;padding:8px 10px;box-shadow:0 1px 2px rgba(0,0,0,.12);min-width:90px}.message.mine .bubble{background:var(--bubble-out);border-radius:15px 15px 5px 15px}.bubble header{display:flex;gap:10px;align-items:center;margin-bottom:3px}.bubble header strong{color:var(--accent);font-size:13px}.bubble time{color:var(--muted);font-size:11px;margin-left:auto}.message-body{white-space:normal;overflow-wrap:anywhere}.emoji-message{font-size:34px;line-height:1.2}.forwarded-label{font-size:12px;color:var(--accent);font-weight:700;border-left:2px solid var(--accent);padding-left:7px;margin:2px 0 5px}.message-actions{position:absolute;right:4px;top:-31px;background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:2px;box-shadow:var(--shadow);display:none;z-index:5}.message:hover .message-actions{display:flex}.message-actions button,.reactions button{border:0;background:transparent;color:var(--text);border-radius:14px;padding:5px}.reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.reactions button{background:var(--accent-soft);color:var(--accent)}.edited{color:var(--muted);font-size:10px}.image-attachment img{display:block;max-width:min(410px,60vw);max-height:440px;object-fit:cover;border-radius:12px}.file-card{display:flex;align-items:center;gap:10px;color:var(--text);min-width:min(350px,60vw)}.file-card>span:first-child{font-size:27px}.file-card span:last-child{display:grid}.file-card small,.media-attachment small{color:var(--muted)}.media-attachment{display:grid;gap:6px;min-width:min(360px,65vw)}.media-attachment audio,.media-attachment video{max-width:100%;width:100%}.media-attachment video{max-height:320px;border-radius:12px}.custom-sticker{width:150px;height:150px;object-fit:contain}.composer{display:grid;grid-template-columns:auto auto auto auto 1fr auto;gap:3px;align-items:end;background:var(--panel);padding:8px 12px;border-top:1px solid var(--border);position:relative}.composer textarea{border:0;background:var(--panel-2);border-radius:20px;padding:10px 14px;resize:none;max-height:140px}.send-btn{width:42px;height:42px;border:0;border-radius:50%;background:var(--accent);color:#fff;font-size:20px}.picker{position:absolute;left:10px;bottom:62px;width:min(390px,92vw);max-height:310px;overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:12px;box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(8,1fr);gap:6px;z-index:100}.picker[hidden],.modal[hidden],.crop-modal[hidden]{display:none!important}.picker button{border:0;background:var(--panel-2);color:var(--text);border-radius:9px;font-size:23px;padding:7px}.sticker-picker{grid-template-columns:repeat(4,1fr)}.sticker-picker img{width:64px;height:64px;object-fit:contain}.file-preview{grid-column:1/-1;color:var(--muted);font-size:12px;display:flex;gap:6px;flex-wrap:wrap}.file-chip{background:var(--panel-2);border-radius:10px;padding:5px 8px}.drop-overlay{position:absolute;inset:12px;display:none;place-items:center;align-content:center;text-align:center;border:2px dashed var(--accent);border-radius:18px;background:color-mix(in srgb,var(--panel) 90%,transparent);z-index:20}.messages.dragging .drop-overlay{display:grid}.chat-details{border-left:1px solid var(--border);padding:18px;background:var(--panel);overflow:auto}.details-hero{text-align:center;padding:8px 0 16px}.details-hero .profile-avatar{margin:auto}.details-close{display:none}.member{display:flex;align-items:center;gap:10px;padding:9px 0}.member span:nth-child(2){display:grid}.member small{color:var(--muted)}.member-remove{margin-left:auto;border:0;background:var(--panel-2);color:var(--danger);border-radius:50%;width:28px;height:28px}.compact-form{display:grid;gap:7px;margin:10px 0}.empty-state{height:100%;display:grid;place-items:center;align-content:center;text-align:center}.empty-state p{color:var(--muted)}.modal,.crop-modal{position:fixed;inset:0;background:rgba(8,18,28,.58);display:grid;place-items:center;padding:18px;z-index:600}.modal-card,.crop-card{width:min(500px,100%);max-height:90vh;overflow:auto;background:var(--panel);border-radius:18px;padding:24px;box-shadow:var(--shadow);position:relative}.modal-card form,.crop-card{display:grid;gap:14px}.modal-close{position:absolute;right:12px;top:8px;border:0;background:transparent;color:var(--muted);font-size:28px}.crop-stage{width:min(360px,80vw);height:min(360px,80vw);overflow:hidden;border-radius:50%;background:#111;position:relative;margin:auto}.crop-stage img{position:absolute;max-width:none;user-select:none;pointer-events:none}.page,.admin-content{padding:24px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.page-head h1{margin:0}.page-head p{margin:4px 0;color:var(--muted)}.compact-head{margin-bottom:12px}.admin-shell{min-height:calc(100vh - 58px);display:grid;grid-template-columns:250px 1fr}.admin-nav{background:#17212b;padding:18px 10px;color:#fff}.admin-nav h2{padding:0 12px}.admin-nav a{display:block;color:#c7d4df;padding:10px 12px;border-radius:9px;margin:2px 0}.admin-nav a.active,.admin-nav a:hover{background:var(--accent);color:#fff}.admin-content{overflow:auto}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.stats article,.cards article,.profile-card,.user-editor,.settings-panel{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:18px}.stats b{font-size:27px;display:block}.stats span{color:var(--muted)}.table-wrap{overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:13px}table{border-collapse:collapse;width:100%}th,td{padding:11px 13px;text-align:left;border-bottom:1px solid var(--border)}td small{display:block;color:var(--muted)}.settings-form{max-width:850px;background:var(--panel);border-radius:14px;padding:20px;display:grid;gap:14px}.settings-form.flat{padding:0;background:transparent}.form-grid,.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.button-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.button-row form{margin:0}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-row{display:flex;align-items:center;gap:8px}.check-row input{width:auto}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--border)}.switch-row span{display:grid}.switch-row small{color:var(--muted);font-weight:400}.switch-row input{width:42px;height:22px}.profile-compact{max-width:760px;margin:auto}.settings-tabs{max-width:760px;margin:0 auto 12px;display:flex;gap:4px;overflow:auto;background:var(--panel);padding:5px;border-radius:13px}.settings-tabs button{border:0;background:transparent;color:var(--muted);padding:9px 13px;border-radius:9px;white-space:nowrap}.settings-tabs button.active{background:var(--accent);color:white}.settings-panel{display:none}.settings-panel.active{display:block}.profile-summary{display:flex;align-items:center;gap:18px;margin-bottom:18px}.profile-summary h2,.profile-summary p{margin:0}.profile-summary p{color:var(--muted)}.avatar-dropzone,.upload-dropzone{display:grid;place-items:center;text-align:center;gap:7px;border:2px dashed var(--border);border-radius:16px;padding:22px;margin-bottom:18px;background:var(--panel-2)}.avatar-dropzone.dragging,.upload-dropzone.dragging{border-color:var(--accent);background:var(--accent-soft)}.drop-icon{font-size:32px}.theme-preview{height:180px;border-radius:14px;background:var(--bg);padding:25px;display:grid;align-content:end;gap:7px}.theme-preview span,.theme-preview i{display:block;height:28px;border-radius:14px}.theme-preview span{width:55%;background:var(--bubble-in)}.theme-preview i{width:60%;background:var(--bubble-out);margin-left:auto}.security-info{display:grid;gap:8px;margin-bottom:18px}.security-info>div{display:grid;background:var(--panel-2);padding:12px;border-radius:10px}.security-info span{color:var(--muted)}.upload-dropzone{min-height:240px}.selected-files{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.selected-files span{padding:6px 9px;background:var(--panel);border-radius:9px}.install-results{display:grid;gap:8px;margin-bottom:14px}.install-results article{display:grid;padding:12px;border-left:4px solid;border-radius:10px;background:var(--panel)}.install-results .ok{border-color:var(--ok)}.install-results .bad{border-color:var(--danger)}.file-list{list-style:none;padding:0}.file-list li{display:flex;justify-content:space-between;align-items:center;background:var(--panel);padding:13px;border-bottom:1px solid var(--border)}.file-list span{display:grid}.diagnostics{display:grid;gap:9px}.diagnostics article{display:flex;align-items:center;gap:12px;background:var(--panel);padding:12px;border-left:5px solid;border-radius:10px}.diagnostics article.ok{border-color:var(--ok)}.diagnostics article.bad{border-color:var(--danger)}.diagnostics article>div{flex:1}.diagnostics p{margin:2px 0;color:var(--muted)}.docs-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px}.docs-layout aside,.doc-content{background:var(--panel);border-radius:14px;padding:17px}.docs-layout aside a{display:block;padding:7px;border-radius:7px}.docs-layout aside a:hover{background:var(--panel-2)}.doc-filter{margin-bottom:8px}.doc-content{line-height:1.65}.table-user,.user-editor-head{display:flex;align-items:center;gap:10px}.table-user span:last-child{display:grid}.status-badge{border-radius:999px;padding:4px 8px;background:var(--panel-2)}.status-pending{background:#fff2cc;color:#785900}.status-approved{background:#dff5e9;color:#14633e}.toast-stack{position:fixed;right:16px;bottom:16px;z-index:800;display:grid;gap:9px;width:min(360px,calc(100vw - 32px))}.message-toast{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:var(--panel);border:1px solid var(--border);border-radius:13px;padding:11px;box-shadow:var(--shadow)}.message-toast p{margin:3px 0 0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-toast button{border:0;background:transparent;color:var(--muted)}@media(max-width:1180px){.messenger{grid-template-columns:320px 1fr}.chat-details{display:none;position:fixed;right:0;top:58px;bottom:0;width:min(340px,90vw);z-index:400;box-shadow:var(--shadow)}.chat-details.open{display:block}.details-close{display:block}.stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.topbar nav>a:not(.top-profile),.top-profile span{display:none}.messenger{display:block;height:calc(100vh - 58px)}.conversation{position:fixed;inset:58px 0 0;z-index:10}.messenger:not([data-chat-id="0"]) .chat-list{display:none}.mobile-back{display:block}.messages{padding:10px 8px}.message{max-width:94%}.message>.avatar-sm{width:30px;height:30px}.composer{grid-template-columns:auto auto auto auto minmax(0,1fr) auto;padding-bottom:max(8px,env(safe-area-inset-bottom))}.admin-shell{display:block}.admin-nav{display:flex;overflow:auto;padding:7px;position:sticky;top:58px;z-index:300}.admin-nav h2{display:none}.admin-nav a{white-space:nowrap}.admin-content,.page{padding:13px}.stats{grid-template-columns:1fr 1fr}.form-grid,.two-columns,.permission-grid,.docs-layout{grid-template-columns:1fr}.docs-layout aside{max-height:220px;overflow:auto}.page-head{align-items:flex-start}.picker{left:4px;right:4px;width:auto;grid-template-columns:repeat(7,1fr)}.sticker-picker{grid-template-columns:repeat(4,1fr)}.footer{display:none}.image-attachment img{max-width:74vw}.message-actions{display:flex;position:static;box-shadow:none;border:0;background:transparent;justify-content:flex-end;margin-top:3px}.settings-tabs{border-radius:10px}.profile-summary .profile-avatar{width:82px;height:82px}.chat-item{height:68px}}
.read-only-composer{min-height:58px;display:flex;align-items:center;justify-content:center;padding:12px 18px;background:var(--panel);border-top:1px solid var(--line);color:var(--muted);font-size:14px;text-align:center}

/* KOVCHEG CMS 0.4.0 — messenger, media, profiles, branding */
.brand-logo{display:block;max-width:150px;max-height:38px;object-fit:contain}.verified-badge{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:5px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px;font-style:normal;vertical-align:middle;box-shadow:0 0 0 2px var(--panel)}.verified-large{width:22px;height:22px;font-size:14px}.messenger{--left-column:340px;--right-column:320px;grid-template-columns:var(--left-column) 5px minmax(420px,1fr) 5px var(--right-column);overflow:hidden}.column-resizer{position:relative;z-index:40;cursor:col-resize;background:var(--border);transition:background .15s}.column-resizer:before{content:"";position:absolute;inset:0 -4px}.column-resizer:hover,.resizing-columns .column-resizer{background:var(--accent)}.resizing-columns{cursor:col-resize!important;user-select:none}.chat-list{border-right:0}.chat-details{border-left:0}.conversation{box-shadow:inset 1px 0 var(--border),inset -1px 0 var(--border)}.chat-item{border-radius:11px;margin:2px 7px;width:calc(100% - 14px);padding:8px}.chat-item.active{background:var(--accent);color:#fff}.chat-item.active small,.chat-item.active time{color:rgba(255,255,255,.82)}.chat-item.active [data-chat-unread]{background:#fff;color:var(--accent)}.conversation-head{padding-inline:15px}.conversation-title h1{display:flex;align-items:center}.conversation-title small a{color:var(--accent)}.message-avatar-link{flex:0 0 auto;line-height:0}.message-head>a{display:grid;min-width:0}.message-head>a small{color:var(--muted);font-size:10px}.message-head strong{display:flex;align-items:center}.bubble{border-radius:18px 18px 18px 6px;padding:7px 10px 6px}.message.mine .bubble{border-radius:18px 18px 6px 18px}.message-highlight .bubble{animation:messagePulse 1.6s ease}@keyframes messagePulse{0%,100%{box-shadow:0 1px 2px rgba(0,0,0,.12)}35%{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 28%,transparent)}}.reply-quote{width:100%;display:grid;text-align:left;border:0;border-left:3px solid var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent);padding:5px 8px;margin:2px 0 6px;border-radius:5px;color:var(--text)}.reply-quote b{font-size:12px;color:var(--accent)}.reply-quote span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forwarded-label{font-size:12px;color:var(--accent);margin-bottom:4px}.image-attachment{display:block;position:relative;border:0;padding:0;background:transparent;border-radius:14px;overflow:hidden;max-width:min(460px,64vw)}.image-attachment img{width:100%;height:auto;max-width:min(460px,64vw);max-height:520px;object-fit:cover;border-radius:14px}.media-error-text{display:none;padding:14px;background:var(--panel-2);color:var(--muted)}.image-attachment.media-error img{display:none}.image-attachment.media-error .media-error-text{display:block}.attachment-caption{margin-top:7px}.media-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(4,10,16,.92);display:grid;place-items:center;padding:40px;opacity:0;transition:opacity .14s}.media-lightbox[hidden]{display:none}.media-lightbox.open{opacity:1}.media-lightbox img{max-width:94vw;max-height:86vh;object-fit:contain;border-radius:14px;box-shadow:0 18px 70px rgba(0,0,0,.5)}.media-lightbox>button{position:fixed;right:20px;top:16px;border:0;background:rgba(255,255,255,.12);color:#fff;width:42px;height:42px;border-radius:50%;font-size:28px}.media-lightbox>a{position:fixed;bottom:20px;background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(12px)}.message-actions{right:0;top:-34px;border-radius:18px;padding:3px;background:color-mix(in srgb,var(--panel) 92%,transparent);backdrop-filter:blur(16px)}.message-actions button{width:30px;height:30px;padding:0}.reaction-menu{position:absolute;right:0;bottom:calc(100% + 8px);display:flex;gap:2px;padding:5px;border:1px solid var(--border);border-radius:999px;background:var(--panel);box-shadow:var(--shadow);z-index:20}.reaction-menu[hidden]{display:none}.reaction-menu button{border:0;background:transparent;border-radius:50%;font-size:19px;width:32px;height:32px}.reaction-menu button:hover{background:var(--panel-2);transform:scale(1.12)}.reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.reactions button{background:var(--panel-2);border:1px solid transparent;padding:2px 7px}.reactions button.mine{border-color:var(--accent);color:var(--accent)}.composer{position:relative}.composer-context{grid-column:1/-1;display:grid;grid-template-columns:3px minmax(0,1fr) auto;gap:9px;align-items:center;padding:5px 8px 8px}.composer-context[hidden]{display:none}.composer-context .context-line{height:34px;border-radius:2px;background:var(--accent)}.composer-context>div{display:grid;min-width:0}.composer-context b{color:var(--accent);font-size:12px}.composer-context small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.composer-context button{border:0;background:transparent;color:var(--muted);font-size:22px}.composer.editing .send-btn{background:#f0a12f}.composer.editing textarea{box-shadow:inset 0 0 0 1px #f0a12f}.file-chip button{border:0;background:transparent;color:var(--muted)}.crop-square{border-radius:18px}.modern-sheet{opacity:0;transition:opacity .14s}.modern-sheet.open{opacity:1}.modern-sheet .modal-card{transform:translateY(12px) scale(.98);transition:transform .14s;border:1px solid var(--border);border-radius:22px}.modern-sheet.open .modal-card{transform:none}.user-search-results{display:grid;gap:4px;max-height:300px;overflow:auto}.user-search-results.large{min-height:100px}.user-result{width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:0;background:transparent;color:var(--text);padding:9px;border-radius:12px}.user-result:hover{background:var(--panel-2)}.user-result>span:last-child{display:grid;min-width:0}.user-result b{display:flex;align-items:center}.user-result small{color:var(--muted)}.selected-users{display:flex;gap:6px;flex-wrap:wrap}.selected-users>span{display:flex;align-items:center;gap:5px;background:var(--accent-soft);color:var(--accent);padding:6px 8px;border-radius:999px}.selected-users button{border:0;background:transparent;color:inherit}.user-picker-form [data-user-submit]:disabled{opacity:.45;cursor:not-allowed}.settings-columns{display:grid;grid-template-columns:minmax(0,850px) minmax(280px,420px);gap:18px;align-items:start}.branding-card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:20px;display:grid;gap:14px;position:sticky;top:20px}.branding-preview{min-height:120px;display:grid;place-items:center;background:var(--panel-2);border-radius:14px;padding:18px}.branding-preview img{max-width:100%;max-height:90px;object-fit:contain}.branding-preview .brand-mark{width:64px;height:64px;font-size:28px}.compact-upload{min-height:0;padding:14px;margin:0}.seo-links{display:flex;gap:12px}.public-profile-page{min-height:calc(100vh - 58px);display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,var(--accent-soft),var(--bg) 58%)}.public-profile-card{width:min(460px,100%);display:grid;place-items:center;text-align:center;gap:11px;padding:34px;background:var(--panel);border:1px solid var(--border);border-radius:26px;box-shadow:var(--shadow)}.public-avatar{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--accent);color:#fff;font-size:48px}.public-avatar img{width:100%;height:100%;object-fit:cover}.public-profile-card h1{margin:4px 0 0;display:flex;align-items:center}.public-handle{font-size:17px}.public-bio{max-width:360px;margin:5px 0}.public-status,.verification-note{color:var(--muted)}.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:10px}.person-card{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:12px}.person-card>div{display:grid;min-width:0;flex:1}.person-card small{color:var(--muted)}.search-section{margin-top:24px}.generic-toast .toast-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:900}.generic-toast.toast-error .toast-icon{background:#ffe7e7;color:var(--danger)}.generic-toast.toast-success .toast-icon{background:#e0f6e9;color:var(--ok)}.toast-action{border:0;background:var(--accent);color:#fff;border-radius:9px;padding:7px 10px;font-weight:700}.toast-close{border:0;background:transparent;color:var(--muted);font-size:19px}.incoming-toast{cursor:pointer}.flash{display:none!important}
@media(max-width:1180px){.messenger{grid-template-columns:var(--left-column) 5px minmax(0,1fr)}.right-resizer,.chat-details{display:none}.chat-details.open{display:block}.settings-columns{grid-template-columns:1fr}.branding-card{position:static}}
@media(max-width:900px){.column-resizer{display:none}.messenger{display:block}.conversation{box-shadow:none}.message-actions{display:flex;position:static;box-shadow:none;border:0;background:transparent;justify-content:flex-end;margin-top:3px}.reaction-menu{right:auto;left:0;max-width:calc(100vw - 30px);overflow:auto}.image-attachment,.image-attachment img{max-width:76vw}.public-profile-page{min-height:100vh}.settings-columns{display:block}.branding-card{margin-top:14px}}

/* KOVCHEG CMS 0.5.0 — live messenger shell and notification centre */
[hidden]{display:none!important}
.conversation-shell{display:contents}
.conversation-shell.loading .conversation,.conversation-shell.loading .chat-details{opacity:.55;pointer-events:none}
.chat-item em[data-chat-unread]:empty,.admin-bell em:empty{display:none!important}
.unified-search{position:relative;margin:10px 12px}.unified-search input{width:100%;padding-right:38px}.unified-search>button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:20px}
.global-search-results{flex:1;overflow:auto;padding:4px 8px 18px}.global-search-results h4{margin:12px 10px 5px;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}.search-result{width:100%;display:flex;gap:11px;align-items:center;text-align:left;border:0;background:transparent;color:var(--text);padding:9px 10px;border-radius:12px;cursor:pointer}.search-result:hover{background:var(--hover)}.search-result>span:last-child{display:grid;min-width:0}.search-result b,.search-result small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result small{color:var(--muted)}
.chat-context-menu{position:fixed;z-index:400;min-width:220px;background:var(--panel);border:1px solid var(--border);box-shadow:0 16px 45px rgba(0,0,0,.18);border-radius:13px;padding:6px}.chat-context-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;color:var(--text);border-radius:9px;padding:10px 12px;font:inherit;cursor:pointer}.chat-context-menu button:hover{background:var(--hover)}.chat-context-menu .danger{color:var(--danger)}
.admin-bell-wrap{position:relative;display:flex;align-items:center}.admin-bell{position:relative;width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--text);font-size:18px;cursor:pointer}.admin-bell:hover{background:var(--hover)}.admin-bell em{position:absolute;right:-2px;top:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e53935;color:#fff;font-style:normal;font-size:11px;font-weight:800;display:grid;place-items:center;border:2px solid var(--panel)}.admin-bell-panel{position:absolute;right:0;top:45px;width:min(390px,calc(100vw - 24px));max-height:min(620px,75vh);overflow:hidden;background:var(--panel);border:1px solid var(--border);border-radius:15px;box-shadow:0 20px 60px rgba(0,0,0,.22);z-index:500}.admin-bell-panel>header{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid var(--border)}.admin-bell-panel>header button{border:0;background:transparent;color:var(--accent);font-weight:700;cursor:pointer}.admin-bell-panel>[data-admin-notification-list]{overflow:auto;max-height:520px;padding:5px}.admin-note{display:flex;gap:10px;padding:11px;border-radius:11px;color:var(--text);text-decoration:none}.admin-note:hover{background:var(--hover)}.admin-note.unread{background:var(--accent-soft)}.admin-note>div{display:grid;min-width:0}.admin-note p{margin:2px 0;white-space:normal}.admin-note small{color:var(--muted)}.note-dot{width:9px;height:9px;border-radius:50%;margin-top:6px;background:var(--accent);flex:0 0 auto}.note-error{background:var(--danger)}.note-success{background:var(--ok)}.empty-notes{padding:28px;text-align:center;color:var(--muted)}
.admin-notifications-list{display:grid;gap:8px}.admin-notification-card{display:flex;align-items:flex-start;gap:12px;padding:14px;background:var(--panel);border:1px solid var(--border);border-radius:14px;color:var(--text);text-decoration:none}.admin-notification-card.unread{border-color:color-mix(in srgb,var(--accent) 40%,var(--border));background:var(--accent-soft)}.admin-notification-card>div{display:grid;gap:3px}.admin-notification-card p{margin:0}.admin-notification-card small{color:var(--muted)}
.channel-tabs{display:flex;gap:3px;overflow:auto;padding:5px;border-bottom:1px solid var(--border)}.channel-tabs button{border:0;background:transparent;color:var(--muted);padding:8px 10px;border-radius:9px;white-space:nowrap;cursor:pointer}.channel-tabs button.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.channel-panel{display:none;padding:12px}.channel-panel.active{display:block}.channel-panel .compact-form{display:grid;gap:8px}.channel-panel label{display:grid;gap:5px}.channel-panel input,.channel-panel select,.channel-panel textarea{width:100%}.channel-panel .switch-row{display:flex}.invite-link{display:flex;align-items:center;gap:7px;padding:9px 0;border-bottom:1px solid var(--border)}.invite-link>div{display:grid;gap:3px;flex:1;min-width:0}.invite-link input{min-width:0}.invite-link button{border:0;border-radius:8px;padding:7px;background:var(--hover);color:var(--text)}
.thread-drawer{position:fixed;z-index:360;right:0;top:58px;bottom:0;width:min(440px,100vw);background:var(--panel);border-left:1px solid var(--border);box-shadow:-12px 0 35px rgba(0,0,0,.13);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .16s ease}.thread-drawer.open{transform:none}.thread-head{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid var(--border)}.thread-head>div{display:grid}.thread-head small{color:var(--muted)}.thread-head button{border:0;background:transparent;color:var(--muted);font-size:24px}.thread-messages{flex:1;overflow:auto;padding:14px}.thread-composer{display:flex;align-items:end;gap:8px;padding:10px;border-top:1px solid var(--border)}.thread-composer textarea{flex:1;resize:none}.comments-button{border:0;background:transparent;color:var(--accent);font-weight:700;cursor:pointer;padding:5px 0}
.icon-btn.recording{background:#ffebee!important;color:#e53935!important;animation:kovchegPulse 1s infinite}@keyframes kovchegPulse{50%{transform:scale(.9);opacity:.7}}
.public-channel-page{max-width:760px;margin:35px auto;padding:20px}.public-channel-card{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:25px;text-align:center}.public-channel-card .channel-avatar{margin:auto}.public-channel-card h1{margin-bottom:5px}.public-channel-card p{color:var(--muted)}
@media(max-width:900px){.conversation-shell{display:block}.admin-bell-panel{position:fixed;right:12px;top:58px}.thread-drawer{top:58px}.messenger[data-chat-id="0"] .conversation-shell{display:none}.messenger:not([data-chat-id="0"]) .conversation-shell{display:block}.messenger:not([data-chat-id="0"]) .chat-list{display:none}}
.channel-member-row{align-items:flex-start;flex-wrap:wrap}.channel-member-row>span{flex:1;min-width:120px}.member-rights{width:100%;margin-left:50px}.member-rights summary{cursor:pointer;color:var(--accent);font-weight:700}.member-rights form{display:grid;gap:7px;margin-top:8px;padding:10px;background:var(--hover);border-radius:11px}.member-rights .check-row{font-size:13px}
/* KOVCHEG CMS 0.6.0 — navigation, profile, privacy and flat message layout */
:root{--site-rail:78px;--vk-card:#fff;--vk-line:#dce1e6;--vk-blue:#447bba;--vk-muted:#6d7885}
body[data-theme=dark]{--vk-card:#17212b;--vk-line:#2b3a48;--vk-blue:#5b9bd5;--vk-muted:#93a4b4}

/* Left site navigation */
.messenger{grid-template-columns:var(--site-rail) var(--left-column) 5px minmax(420px,1fr) 5px var(--right-column)!important}
.site-sidebar{min-width:0;background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:stretch;padding:10px 7px;gap:4px;overflow-y:auto;z-index:60}
.site-sidebar-logo{width:46px;height:46px;margin:0 auto 8px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent),#7455ef);color:#fff;font-weight:900;font-size:20px}
.site-nav-item{position:relative;display:grid;place-items:center;gap:2px;min-height:58px;border-radius:12px;color:var(--muted);padding:6px 2px;text-align:center}
.site-nav-item span{font-size:21px;line-height:1}.site-nav-item b{font-size:10px;line-height:1.15;font-weight:650}.site-nav-item em{position:absolute;right:5px;top:4px;min-width:18px;height:18px;border-radius:9px;background:var(--danger);color:#fff;font:700 10px/18px Arial;font-style:normal}
.site-nav-item:hover,.site-nav-item.active{background:var(--accent-soft);color:var(--accent)}

/* Flat VK-like message rows */
.messages{padding:8px 22px!important;background:var(--bg);background-image:none!important}
.message,.message.mine{position:relative;max-width:100%!important;width:100%;margin:0!important;padding:10px 10px 10px 42px;display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px;border-bottom:1px solid color-mix(in srgb,var(--border) 72%,transparent);border-radius:0;transition:background .15s}
.message:hover{background:color-mix(in srgb,var(--panel) 48%,transparent)}.message.mine{background:transparent}.message.mine:hover{background:color-mix(in srgb,var(--accent-soft) 35%,transparent)}
.message-avatar-link{order:1;margin-top:1px}.message .bubble,.message.mine .bubble{order:2;flex:1;min-width:0;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;color:var(--text)}
.message-head{justify-content:flex-start!important;margin:0 0 4px!important}.message-head>a{display:flex;align-items:baseline;gap:7px}.message-head time{margin-left:auto!important}.message-body{font-size:14px;line-height:1.48}
.message-actions{top:5px!important;right:6px!important;border-radius:10px!important}.message:hover .message-actions{display:flex}.message.mine .message-actions{right:6px;left:auto}
.message-select-control{display:none;position:absolute;left:8px;top:50%;transform:translateY(-50%);width:24px;height:24px;padding:0;border:2px solid var(--border);border-radius:50%;background:var(--panel);z-index:7}.message-select-control span{display:block;width:12px;height:7px;border-left:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(-45deg) translate(1px,-1px)}
.messages.selection-mode .message{cursor:pointer}.messages.selection-mode .message-select-control{display:block}.message.selected{background:color-mix(in srgb,var(--accent) 15%,transparent)!important}.message.selected .message-select-control{background:var(--accent);border-color:var(--accent)}.message.selected .message-select-control span{border-color:#fff}
.message-selection-bar{display:flex;align-items:center;justify-content:center;gap:18px;min-height:58px;background:var(--panel);border-top:1px solid var(--border);padding:8px 14px}.message-selection-bar[hidden]{display:none!important}.conversation-select-btn{border:0;background:transparent;color:var(--accent);font-weight:700;padding:8px 10px;border-radius:9px}.conversation-select-btn:hover{background:var(--accent-soft)}

/* Images and other media */
.image-attachment{display:block;max-width:min(560px,78vw);border:0;padding:0;margin:7px 0 2px;background:transparent;border-radius:10px;overflow:hidden;text-align:left}.image-attachment img{display:block!important;width:auto!important;max-width:100%!important;max-height:620px!important;min-width:160px;object-fit:contain!important;border-radius:10px!important;background:var(--panel-2)}
.image-attachment .media-error-text{padding:18px;border:1px dashed var(--border);border-radius:10px;color:var(--muted);background:var(--panel-2)}.attachment-caption{margin-top:7px}.media-lightbox img{max-width:92vw;max-height:84vh;object-fit:contain}
.forwarded-label,.reply-quote{max-width:560px}.reactions{margin-top:6px}.comments-link{margin-top:7px}

/* Site pages */
.site-page-shell{min-height:calc(100vh - 58px);display:grid;grid-template-columns:210px minmax(0,1fr);background:var(--bg)}
.site-page-shell>.site-sidebar{align-items:stretch;padding:18px 12px}.site-page-shell>.site-sidebar .site-sidebar-logo{display:none}.site-page-shell>.site-sidebar .site-nav-item{display:flex;justify-content:flex-start;place-items:center;min-height:42px;padding:8px 12px;gap:11px;text-align:left}.site-page-shell>.site-sidebar .site-nav-item span{font-size:18px}.site-page-shell>.site-sidebar .site-nav-item b{font-size:13px}.site-page-shell>.site-sidebar .site-nav-item em{right:10px;top:12px}
.vk-profile-page,.settings-page-060,.people-page-060{width:min(1060px,100%);padding:24px;margin:0 auto}.vk-profile-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.vk-profile-left{display:grid;gap:10px}.vk-profile-avatar-card,.vk-profile-info-card,.vk-profile-stats,.vk-profile-section,.settings-content-060,.settings-menu-060,.person-card,.empty-card{background:var(--vk-card);border:1px solid var(--vk-line);border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.vk-profile-avatar-card{padding:15px}.vk-profile-avatar{width:100%;aspect-ratio:1;border-radius:7px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent),#7455ef);color:#fff;font-size:72px;font-weight:900}.vk-profile-avatar img{width:100%;height:100%;object-fit:cover}.vk-wide-button{width:100%}.vk-profile-main{display:grid;gap:12px}.vk-profile-info-card{padding:20px}.vk-profile-info-card>header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--vk-line)}.vk-profile-info-card h1{margin:0 0 3px;font-size:22px}.profile-online{color:var(--vk-muted);font-size:12px}.vk-bio{padding:16px 0}.vk-profile-fields{margin:0}.vk-profile-fields>div{display:grid;grid-template-columns:150px 1fr;padding:6px 0}.vk-profile-fields dt{color:var(--vk-muted)}.vk-profile-fields dd{margin:0}.vk-profile-stats{display:flex;justify-content:center;padding:14px}.vk-profile-stats>a,.vk-profile-stats>span{min-width:110px;text-align:center;display:grid;color:var(--text)}.vk-profile-stats b{font-size:20px;color:var(--accent)}.vk-profile-stats span,.vk-profile-stats small{color:var(--vk-muted)}.vk-profile-section{padding:18px}.vk-profile-section header{display:flex;justify-content:space-between;align-items:center}.vk-profile-section h2{margin:0;font-size:16px}.profile-action-stack{display:grid;gap:8px}.profile-action-stack .active{background:var(--accent-soft);color:var(--accent)}.private-profile-note{padding:24px 0;display:grid;gap:6px;color:var(--vk-muted)}.private-profile-note b{color:var(--text)}

/* Separate settings pages */
.settings-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.settings-title h1{margin:0;font-size:24px}.settings-title p{margin:4px 0;color:var(--muted)}.settings-layout-060{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.settings-menu-060{padding:7px;display:grid}.settings-menu-060 a{display:grid;gap:2px;padding:11px 12px;border-radius:8px;color:var(--text)}.settings-menu-060 a:hover,.settings-menu-060 a.active{background:var(--accent-soft);color:var(--accent)}.settings-menu-060 small{color:var(--muted);font-size:11px}.settings-content-060{padding:22px}.settings-content-060 .settings-form{max-width:680px;display:grid;gap:15px}.settings-profile-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}.settings-profile-head h2{margin:0}.settings-hint{padding:12px;border-radius:8px;background:var(--panel-2);color:var(--muted)}

/* People */
.people-page-060 h2{font-size:17px;margin:24px 0 10px}.people-grid{display:grid;gap:10px}.person-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:15px;padding:14px}.person-card .profile-avatar{width:88px;height:88px;border-radius:7px}.person-card>div{display:grid;align-content:center;gap:4px}.person-card small{color:var(--muted)}.person-card p{margin:5px 0;color:var(--muted)}.person-card .button-row{justify-content:flex-start}.empty-card{padding:22px;color:var(--muted)}.people-tabs{display:flex;gap:5px;margin-bottom:14px}.people-tabs a{padding:9px 13px;border-radius:8px;color:var(--muted)}.people-tabs a.active{background:var(--accent-soft);color:var(--accent)}
.contacts-quick{display:flex;gap:7px;overflow-x:auto;padding-bottom:5px}.contact-chip{flex:0 0 auto;width:76px;border:0;background:transparent;color:var(--text);display:grid;justify-items:center;gap:4px;font-size:11px}.contact-chip .avatar-sm{width:46px;height:46px}

@media(max-width:1200px){.messenger{--right-column:280px}.site-nav-item b{display:none}.site-page-shell>.site-sidebar .site-nav-item b{display:block}}
@media(max-width:1050px){.messenger{grid-template-columns:var(--site-rail) var(--left-column) 5px minmax(0,1fr)!important}.messenger .right-resizer,.messenger .chat-details{display:none}.vk-profile-page,.settings-page-060,.people-page-060{padding:16px}}
@media(max-width:760px){.topbar{display:none}.messenger{height:100vh!important;display:block!important}.messenger>.site-sidebar{display:none}.site-page-shell{display:block;min-height:100vh}.site-page-shell>.site-sidebar{position:sticky;top:0;z-index:100;display:flex;flex-direction:row;overflow-x:auto;padding:6px;background:var(--panel)}.site-page-shell>.site-sidebar .site-nav-item{flex:0 0 auto;min-height:40px;padding:7px 10px}.site-page-shell>.site-sidebar .site-nav-item b{display:none}.vk-profile-grid,.settings-layout-060{grid-template-columns:1fr}.vk-profile-left{max-width:360px;margin:auto;width:100%}.settings-menu-060{display:flex;overflow-x:auto}.settings-menu-060 a{flex:0 0 auto}.settings-menu-060 small{display:none}.vk-profile-page,.settings-page-060,.people-page-060{padding:10px}.message,.message.mine{padding-left:39px}.messages{padding:4px!important}.image-attachment{max-width:82vw}.conversation-select-btn{font-size:12px}.person-card{grid-template-columns:70px 1fr}.person-card .profile-avatar{width:68px;height:68px}}

.public-guest-shell{grid-template-columns:1fr}.public-guest-shell .vk-profile-page{margin:0 auto}
/* KOVCHEG CMS 0.7.0 — unified notifications, VK-style profile and navigation */
:root{--site-rail:210px;--profile-right:270px}

/* Header: one brand menu, one notification bell */
.topbar-070{height:54px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:var(--panel);border-bottom:1px solid var(--border);position:relative;z-index:500}
.brand-menu-wrap,.notification-bell-wrap{position:relative}.brand-menu-button{border:0;background:transparent;cursor:pointer;display:flex;align-items:center;gap:10px;color:var(--text);padding:5px 8px;border-radius:10px}.brand-menu-button:hover,.brand-menu-button[aria-expanded=true]{background:var(--panel-2)}.brand-menu-button>i{color:var(--muted);font-style:normal;font-size:13px}.brand-menu-button .brand-logo{max-height:34px;max-width:145px;object-fit:contain}.brand-menu-button .brand-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent),#7557ef);color:#fff;font-weight:900}
.brand-dropdown{position:absolute;left:0;top:46px;width:290px;background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 45px rgba(0,0,0,.26);padding:7px;z-index:1000}.brand-dropdown[hidden]{display:none!important}.brand-dropdown>a,.brand-logout{width:100%;display:flex;align-items:center;gap:11px;padding:10px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.brand-dropdown>a:hover,.brand-logout:hover{background:var(--panel-2)}.brand-dropdown a>span:last-child,.brand-logout>span:last-child{display:grid;gap:2px}.brand-dropdown small{color:var(--muted);font-size:11px}.menu-symbol{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:var(--panel-2);font-size:17px}.brand-theme-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px;margin:4px 0}.brand-theme-row>span{font-size:13px;font-weight:700}.brand-theme-row>div{display:flex;background:var(--panel-2);border-radius:8px;padding:2px}.brand-theme-row button{border:0;background:transparent;color:var(--muted);padding:6px 8px;border-radius:6px;font-size:11px;cursor:pointer}.brand-theme-row button.active{background:var(--accent);color:#fff}.brand-dropdown form{margin:0}
.topbar-actions{display:flex!important;align-items:center;gap:8px}.notification-bell{position:relative;width:38px;height:38px;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;font-size:18px}.notification-bell:hover{background:var(--panel-2)}.notification-bell em{position:absolute;right:-1px;top:-3px;min-width:18px;height:18px;border-radius:10px;padding:0 4px;background:#e64646;color:#fff;font:700 10px/18px Arial;font-style:normal;border:2px solid var(--panel)}
.notification-bell-panel{position:absolute;right:-62px;top:46px;width:min(390px,calc(100vw - 24px));max-height:min(650px,calc(100vh - 72px));overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 55px rgba(0,0,0,.3);z-index:1100}.notification-bell-panel[hidden]{display:none!important}.notification-bell-panel>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:14px;background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.notification-bell-panel>header>div{display:grid;gap:2px}.notification-bell-panel>header small{color:var(--muted);font-size:11px}.notification-bell-panel>header button,.notification-permission button{border:0;background:var(--accent-soft);color:var(--accent);border-radius:8px;padding:7px 9px;cursor:pointer;font-weight:700;font-size:11px}.notification-permission{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:10px;padding:11px;border-radius:10px;background:var(--accent-soft)}.notification-permission[hidden]{display:none!important}.notification-permission>div{display:grid;gap:3px}.notification-permission small{color:var(--muted);font-size:11px}.notification-note{display:grid;grid-template-columns:43px minmax(0,1fr);gap:10px;padding:11px 13px;color:var(--text);border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent);position:relative}.notification-note:hover{background:var(--panel-2)}.notification-note.unread{background:color-mix(in srgb,var(--accent) 10%,var(--panel))}.notification-note.unread:before{content:"";position:absolute;left:4px;top:19px;width:5px;height:5px;border-radius:50%;background:var(--accent)}.notification-note-icon{width:42px;height:42px;border-radius:50%;background:var(--panel-2);display:grid;place-items:center;overflow:hidden;font-size:18px}.notification-note-icon img{width:100%;height:100%;object-fit:cover}.notification-note>div{min-width:0;display:grid;gap:2px}.notification-note b,.notification-note p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-note p{margin:0;color:var(--muted);font-size:12px}.notification-note small{color:var(--muted);font-size:10px}.empty-notes{padding:30px 16px;text-align:center;color:var(--muted)}

/* Full navigation column next to the chat list */
.messenger{grid-template-columns:210px var(--left-column) 5px minmax(420px,1fr) 5px var(--right-column)!important}
.site-sidebar{width:auto!important;min-width:0;background:var(--panel);border-right:1px solid var(--border);padding:10px 12px;display:flex;flex-direction:column;align-items:stretch;gap:3px;overflow-y:auto}.site-sidebar-logo{display:none!important}.site-user-card{display:flex;align-items:center;gap:10px;padding:8px 7px 13px;margin-bottom:3px;border-bottom:1px solid var(--border);color:var(--text);min-width:0}.site-user-card>span{display:grid;min-width:0}.site-user-card b,.site-user-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-user-card small{color:var(--muted);font-size:11px}.site-nav-item{display:flex!important;justify-content:flex-start!important;align-items:center!important;min-height:40px!important;padding:8px 10px!important;gap:11px!important;border-radius:8px!important;text-align:left!important}.site-nav-item span{width:22px;text-align:center;font-size:18px!important}.site-nav-item b{display:block!important;font-size:13px!important}.site-nav-item em{right:9px!important;top:10px!important}.chat-list-title{display:grid;gap:2px}.chat-list-title small{color:var(--muted);font-size:10px}.chat-list .list-head{padding:10px 13px;min-height:59px}
.site-page-shell{grid-template-columns:210px minmax(0,1fr)!important;max-width:1440px;margin:0 auto;width:100%;background:var(--bg)}.site-page-shell>.site-sidebar{padding:18px 12px!important}.site-page-shell>.site-sidebar .site-user-card{display:flex}.site-page-shell>.site-sidebar .site-nav-item{display:flex!important}

/* Avatar delivery and fallback */
.avatar-photo{overflow:hidden!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,var(--accent),#7455ef)!important;color:#fff!important}.avatar-photo img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:inherit!important}.message-avatar-link{display:block;flex:0 0 36px;width:36px;height:36px}.message-avatar-link .avatar-sm{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:50%!important;font-size:13px!important}.message-avatar-link img{width:36px!important;height:36px!important}.message{padding-left:10px!important}.messages.selection-mode .message{padding-left:42px!important}

/* Profile: old social-network layout with wall and optional right blocks */
.vk-profile-page{max-width:1210px!important}.vk-profile-grid-070{grid-template-columns:260px minmax(430px,1fr);gap:14px}.vk-profile-grid-070.has-right{grid-template-columns:260px minmax(430px,1fr) var(--profile-right)}.vk-profile-right{display:grid;gap:12px;align-content:start}.vk-right-card,.vk-wall{background:var(--vk-card);border:1px solid var(--vk-line);border-radius:9px;box-shadow:0 1px 2px rgba(0,0,0,.05)}.vk-right-card{padding:13px}.vk-right-card>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.vk-right-card>header a{font-size:11px;color:var(--accent)}.vk-right-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.vk-right-people{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 6px}.vk-right-people>a{display:grid;justify-items:center;gap:4px;text-align:center;color:var(--text);min-width:0}.vk-right-people>a>span{font-size:10px;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar-md{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent),#7455ef);color:#fff;font-weight:800}.vk-right-people p{grid-column:1/-1}
.vk-wall{overflow:hidden}.vk-wall-title{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid var(--vk-line)}.vk-wall-title h2{margin:0;font-size:15px}.vk-wall-title span{font-size:11px;color:var(--muted)}.vk-wall-composer{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:end;gap:10px;padding:13px 15px;border-bottom:1px solid var(--vk-line)}.vk-wall-composer textarea{resize:none;min-height:42px;max-height:150px;border:1px solid var(--border);border-radius:8px;background:var(--input);color:var(--text);padding:10px 11px;font:inherit}.vk-wall-post{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;padding:14px 15px;border-bottom:1px solid var(--vk-line)}.vk-wall-post:last-child{border-bottom:0}.vk-wall-post-body>header{display:flex;justify-content:space-between;gap:10px}.vk-wall-post-body>header>div{display:grid;gap:2px}.vk-wall-post-body header a{color:var(--accent)}.vk-wall-post-body header small{color:var(--muted);font-size:10px}.wall-post-menu{width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.wall-post-menu:hover{background:var(--panel-2);color:var(--danger)}.vk-wall-text{padding:10px 0 8px;line-height:1.5;overflow-wrap:anywhere}.vk-wall-post footer{display:flex}.wall-like{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:5px 8px;cursor:pointer}.wall-like:hover,.wall-like.active{background:rgba(224,63,86,.1);color:#e03f56}.vk-wall-empty{padding:28px;text-align:center;color:var(--muted)}

/* Cleaner top profile */
.topbar-070 .top-profile{padding:4px 7px;border-radius:9px}.topbar-070 .top-profile:hover{background:var(--panel-2)}

@media(max-width:1320px){.messenger{grid-template-columns:176px var(--left-column) 5px minmax(390px,1fr) 5px var(--right-column)!important}.site-sidebar{padding-left:8px;padding-right:8px}.vk-profile-grid-070.has-right{grid-template-columns:240px minmax(420px,1fr) 240px}.vk-profile-grid-070{grid-template-columns:240px minmax(420px,1fr)}}
@media(max-width:1120px){.messenger{grid-template-columns:72px var(--left-column) 5px minmax(0,1fr)!important}.messenger .right-resizer,.messenger .chat-details{display:none}.messenger>.site-sidebar .site-user-card span,.messenger>.site-sidebar .site-nav-item b{display:none!important}.messenger>.site-sidebar .site-user-card{justify-content:center;padding:7px 0 12px}.messenger>.site-sidebar .site-nav-item{justify-content:center!important;padding:8px!important}.messenger>.site-sidebar .site-nav-item span{width:auto}.vk-profile-grid-070.has-right{grid-template-columns:240px minmax(0,1fr)}.vk-profile-right{display:none}}
@media(max-width:820px){.topbar-070{display:flex!important}.brand-menu-button>span:not(.brand-mark){display:none}.top-profile span{display:none}.notification-bell-panel{right:-52px}.messenger{height:calc(100vh - 54px)!important;display:block!important}.messenger>.site-sidebar{display:none}.site-page-shell{display:block!important;max-width:none}.site-page-shell>.site-sidebar{position:sticky;top:54px;z-index:90;display:flex!important;flex-direction:row!important;overflow-x:auto;padding:6px!important}.site-page-shell>.site-sidebar .site-user-card{display:none}.site-page-shell>.site-sidebar .site-nav-item{flex:0 0 auto!important}.vk-profile-grid-070,.vk-profile-grid-070.has-right{grid-template-columns:1fr}.vk-profile-left{max-width:420px;width:100%;margin:auto}.vk-profile-page{padding:12px!important}.vk-wall-composer{grid-template-columns:36px minmax(0,1fr)}.vk-wall-composer .btn{grid-column:2;justify-self:end}.vk-profile-right{display:none}}
/* KOVCHEG CMS 0.8.0 */
:root{--profile-avatar-radius:18px}.avatar-photo,.avatar-photo img{overflow:hidden}.avatar-photo img{width:100%;height:100%;object-fit:cover}.profile-mini-avatar,.feed-avatar{display:block;width:54px;height:54px;border-radius:14px;overflow:hidden}.profile-mini-avatar img,.feed-avatar img{width:100%;height:100%;object-fit:cover}.vk-profile-grid-080{grid-template-columns:260px minmax(430px,1fr) var(--profile-right,280px);gap:14px}.profile-people-stack{display:grid;gap:12px;margin-top:12px}.profile-people-card{background:var(--vk-card,var(--panel));border:1px solid var(--vk-line,var(--border));border-radius:10px;padding:12px}.profile-people-card header a{display:flex;justify-content:space-between;color:var(--text);margin-bottom:10px}.profile-people-card header span{color:var(--muted)}.profile-people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 6px}.profile-people-grid>a{display:grid;justify-items:center;gap:5px;text-align:center;color:var(--text);min-width:0}.profile-people-grid small{font-size:10px;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-people-grid p{grid-column:1/-1;color:var(--muted);font-size:12px;margin:4px 0}.profile-avatar-interactive{position:relative}.profile-avatar-button{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;position:relative}.profile-avatar-button .vk-profile-avatar{border-radius:var(--profile-avatar-radius)!important}.avatar-hover-label{position:absolute;left:10px;right:10px;bottom:10px;padding:8px;border-radius:9px;background:rgba(0,0,0,.65);color:#fff;opacity:0;transition:.16s}.profile-avatar-button:hover .avatar-hover-label{opacity:1}.profile-avatar-menu{position:absolute;z-index:150;left:8px;right:8px;top:calc(100% - 8px);background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 12px 40px rgba(0,0,0,.3)}.profile-avatar-menu button{width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:10px;border-radius:8px;cursor:pointer}.profile-avatar-menu button:hover{background:var(--panel-2)}.profile-avatar-menu .danger{color:var(--danger)}.avatar-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.avatar-history-grid button{border:0;background:var(--panel-2);padding:6px;border-radius:12px;color:var(--text);cursor:pointer}.avatar-history-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.avatar-history-grid small{display:block;padding:5px}.top-global-search{position:relative;flex:1;max-width:520px;margin:0 22px}.top-global-search>span{position:absolute;left:12px;top:8px;color:var(--muted)}.top-global-search input{width:100%;height:36px;border:0;border-radius:10px;background:var(--panel-2);color:var(--text);padding:0 14px 0 35px}.top-global-results{position:absolute;top:42px;left:0;right:0;z-index:300;max-height:70vh;overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:8px;box-shadow:0 18px 50px rgba(0,0,0,.32)}.top-global-results h4{margin:8px 10px;color:var(--muted);font-size:11px;text-transform:uppercase}.top-global-results a{display:flex;gap:10px;align-items:center;padding:8px;border-radius:9px;color:var(--text)}.top-global-results a:hover{background:var(--panel-2)}.top-global-results img{width:42px;height:42px;border-radius:11px;object-fit:cover}.top-global-results a span{display:grid;min-width:0}.top-global-results small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feed-shell{grid-template-columns:230px minmax(0,720px) 280px;justify-content:center;gap:14px}.feed-page{min-width:0}.feed-page-head,.feed-composer,.feed-post,.feed-right-column .vk-right-card{background:var(--panel);border:1px solid var(--border);border-radius:10px}.feed-page-head{padding:16px;margin-bottom:12px}.feed-page-head h1{margin:0}.feed-page-head p{color:var(--muted);margin:4px 0 12px}.feed-tabs{display:flex;gap:6px}.feed-tabs a{padding:7px 12px;border-radius:8px;color:var(--muted)}.feed-tabs a.active{background:var(--accent);color:#fff}.feed-composer{display:grid;grid-template-columns:54px 1fr auto;gap:10px;padding:14px;margin-bottom:12px;align-items:end}.feed-composer textarea{resize:none;min-height:58px;border:1px solid var(--border);background:var(--input);color:var(--text);border-radius:9px;padding:10px}.feed-list{display:grid;gap:12px}.feed-post{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;padding:15px}.feed-post>div>header{display:flex;justify-content:space-between}.feed-post header div{display:grid}.feed-post header small,.feed-post time{color:var(--muted);font-size:11px}.feed-post-text{padding:12px 0;line-height:1.5}.feed-post footer{display:flex;gap:12px;align-items:center}.feed-post footer>a{color:var(--muted);font-size:12px}.feed-right-column{align-self:start}.messenger{grid-template-columns:230px var(--left-column) 5px minmax(0,1fr)!important}.messenger .right-resizer,.messenger .chat-details{display:none!important}.message{display:flex!important;align-items:flex-start;max-width:min(760px,88%);margin-right:auto}.message.mine{margin-left:auto;margin-right:12px;flex-direction:row-reverse}.message.mine .bubble{background:color-mix(in srgb,var(--accent) 15%,var(--panel));border-radius:14px 4px 14px 14px}.message:not(.mine) .bubble{background:var(--panel);border-radius:4px 14px 14px 14px}.message .bubble{border:1px solid var(--border);padding:9px 12px;min-width:160px}.message-avatar-link,.message-avatar-link .avatar-sm{width:38px!important;height:38px!important;flex:0 0 38px}.message-avatar-link .avatar-sm{border-radius:11px!important;overflow:hidden}.message-avatar-link img{width:100%!important;height:100%!important;object-fit:cover}.messages{display:flex!important;flex-direction:column!important;gap:8px!important}.contacts-quick button{display:flex;width:100%;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);padding:8px;border-radius:9px;cursor:pointer}.contacts-quick button:hover,.contacts-quick button.selected{background:var(--panel-2)}.contacts-quick img{width:42px;height:42px;border-radius:11px;object-fit:cover}.contacts-quick span{display:grid;text-align:left}.site-sidebar{min-width:220px}.site-nav-item:first-of-type{order:-10}.people-tabs{margin-bottom:16px}.people-page-080{max-width:980px}.live-message-toast img{border-radius:10px}@media(max-width:1180px){.vk-profile-grid-080{grid-template-columns:240px minmax(0,1fr)}.vk-profile-right,.feed-right-column{display:none}.feed-shell{grid-template-columns:220px minmax(0,720px)}}@media(max-width:850px){.top-global-search{display:none}.vk-profile-grid-080{grid-template-columns:1fr}.feed-shell{display:block}.feed-page{padding:12px}.messenger{display:block!important}.message{max-width:94%}.profile-people-grid{grid-template-columns:repeat(4,1fr)}}
/* KOVCHEG CMS 0.9.0 — stories, modern wall and reliable chat scrolling */
:root{--wall-card-radius:14px;--story-ring:linear-gradient(140deg,#ff3b7d,#ff9f2e 52%,#7b61ff)}

/* Profile uses all room next to the navigation instead of floating in the middle. */
.vk-site-shell{max-width:none!important;margin:0!important;width:100%!important;grid-template-columns:210px minmax(0,1fr)!important}
.profile-page-090{width:100%!important;max-width:none!important;margin:0!important;padding:24px 18px!important}
.vk-profile-grid-090{width:100%;max-width:1560px;margin:0;grid-template-columns:minmax(280px,320px) minmax(520px,1fr) minmax(250px,300px)!important;gap:14px!important;align-items:start}
.vk-profile-left,.vk-profile-main,.vk-profile-right{min-width:0}
.vk-profile-left{width:100%;max-width:none!important}
.vk-profile-avatar{width:100%!important;height:auto!important;aspect-ratio:1;display:block!important;border-radius:18px!important;overflow:hidden}
.vk-profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-info-090{min-height:0}
.profile-info-090>header{align-items:flex-start}
.profile-status-editor{display:flex;gap:8px;margin:13px 0 6px}
.profile-status-editor input{background:transparent;border:0;border-bottom:1px solid transparent;border-radius:0;padding:6px 0;font-size:14px}
.profile-status-editor input:hover,.profile-status-editor input:focus{border-bottom-color:var(--border);box-shadow:none}
.profile-status-editor button{display:none;border:0;border-radius:8px;background:var(--accent);color:#fff;padding:6px 11px;font-weight:700}
.profile-status-editor:focus-within button{display:block}
.profile-status-display{margin:13px 0 4px;padding:9px 12px;border-left:3px solid var(--accent);background:var(--panel-2);border-radius:0 9px 9px 0;font-weight:650}

/* 24 hour stories around the profile photo. */
.profile-story-ring{display:block;position:relative;border-radius:21px;padding:0}
.profile-avatar-interactive.has-story .profile-story-ring{padding:4px;background:var(--story-ring)}
.profile-avatar-interactive.has-story .profile-story-ring>.vk-profile-avatar{border:3px solid var(--panel)}
.profile-avatar-interactive.has-story:not(.has-unseen-story) .profile-story-ring{background:linear-gradient(140deg,#6d7d8c,#9aa8b4)}
.profile-avatar-interactive.has-unseen-story .profile-avatar-button{filter:drop-shadow(0 6px 16px color-mix(in srgb,#ff557e 28%,transparent))}
.avatar-reactions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 0;padding:9px 10px;border-radius:11px;background:var(--panel);border:1px solid var(--border)}
.avatar-reactions>button,.avatar-reaction-picker button{border:0;background:var(--panel-2);color:var(--text);border-radius:18px;min-height:30px;padding:5px 9px}
.avatar-reactions>button.active,.avatar-reaction-picker button.active{background:var(--accent-soft);outline:1px solid var(--accent)}
.avatar-reaction-picker{display:flex;gap:4px;flex-wrap:wrap}
.avatar-reaction-total{font-size:12px;color:var(--muted);margin-left:auto}

/* Story strip and viewer. */
.stories-strip{display:flex;gap:12px;overflow-x:auto;padding:12px;margin:0 0 12px;background:var(--panel);border:1px solid var(--border);border-radius:var(--wall-card-radius);scrollbar-width:thin}
.story-tile{position:relative;display:grid;justify-items:center;gap:5px;width:78px;flex:0 0 78px;border:0;background:transparent;color:var(--text);padding:0;min-width:0}
.story-tile-avatar{display:block;width:64px;height:64px;padding:3px;border-radius:20px;background:linear-gradient(140deg,#758492,#a9b3bc);overflow:hidden}
.story-tile.unseen .story-tile-avatar,.story-tile.has-story .story-tile-avatar{background:var(--story-ring)}
.story-tile-avatar img,.story-tile-avatar>span{display:block;width:100%;height:100%;object-fit:cover;border:3px solid var(--panel);border-radius:16px}
.story-tile b{max-width:76px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.story-add{position:absolute;right:6px;top:43px;display:grid;place-items:center;width:23px;height:23px;border:3px solid var(--panel);border-radius:50%;background:var(--accent);color:#fff;font-size:16px;font-weight:900}
.story-viewer{position:fixed;inset:0;z-index:1500;background:rgba(5,9,14,.96);display:grid;place-items:center;padding:20px}
.story-viewer[hidden]{display:none!important}
.story-viewer-card{position:relative;width:min(430px,94vw);height:min(760px,92vh);border-radius:22px;overflow:hidden;background:#07090d;box-shadow:0 25px 80px rgba(0,0,0,.55)}
.story-viewer-media{width:100%;height:100%;display:grid;place-items:center}
.story-viewer-media img,.story-viewer-media video{width:100%;height:100%;object-fit:contain;background:#080b0f}
.story-viewer-head{position:absolute;z-index:3;top:0;left:0;right:0;padding:10px 12px 40px;background:linear-gradient(#000b,transparent);color:#fff}
.story-progress{display:flex;gap:4px;margin-bottom:10px}
.story-progress i{height:3px;flex:1;border-radius:3px;background:#ffffff55;overflow:hidden}
.story-progress i::after{content:"";display:block;height:100%;width:0;background:#fff}
.story-progress i.done::after{width:100%}.story-progress i.active::after{animation:story-progress var(--story-duration,6s) linear forwards}
.story-owner-row{display:flex;align-items:center;gap:8px}.story-owner-row .avatar-xs{border:1px solid #fff}.story-owner-row div{display:grid}.story-owner-row small{color:#ddd}
.story-viewer-close{margin-left:auto;border:0;background:#0006;color:#fff;width:32px;height:32px;border-radius:50%;font-size:22px}
.story-viewer-caption{position:absolute;left:15px;right:15px;bottom:22px;color:#fff;text-align:center;text-shadow:0 1px 5px #000;font-size:15px;z-index:3}
.story-nav{position:absolute;z-index:2;top:70px;bottom:70px;width:38%;border:0;background:transparent}.story-prev{left:0}.story-next{right:0}
.story-upload-preview{height:340px;border:1px dashed var(--border);border-radius:14px;display:grid;place-items:center;overflow:hidden;background:#0a1119;color:var(--muted)}
.story-upload-preview img,.story-upload-preview video{width:100%;height:100%;object-fit:contain}
@keyframes story-progress{to{width:100%}}

/* Modern wall/feed cards. */
.wall-090{border:0!important;background:transparent!important;box-shadow:none!important;display:grid;gap:12px}
.wall-title-090{background:var(--panel);border:1px solid var(--border);border-radius:var(--wall-card-radius);padding:13px 15px}
.wall-title-090>div{display:flex;align-items:center;justify-content:space-between}.wall-title-090 h2{margin:0;font-size:15px}.wall-title-090 span{color:var(--muted);font-size:12px}
.wall-composer-090{background:var(--panel);border:1px solid var(--border);border-radius:var(--wall-card-radius);padding:12px;margin:0;display:grid;gap:10px}
.wall-composer-main{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:start}
.wall-composer-main textarea{min-height:54px;resize:none;background:var(--panel-2);border:0;border-radius:12px;padding:13px 14px}
.wall-composer-090 footer{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);padding-top:9px}
.wall-composer-090 footer small{color:var(--muted);margin-right:auto}
.wall-tool-button{display:inline-flex;grid-auto-flow:column;align-items:center;gap:6px;width:auto;padding:7px 10px;border-radius:9px;background:var(--panel-2);cursor:pointer;font-weight:700;color:var(--muted)}
.wall-tool-button:hover{color:var(--accent);background:var(--accent-soft)}
.wall-photo-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.wall-photo-preview[hidden]{display:none}.wall-photo-preview figure{position:relative;margin:0;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--panel-2)}
.wall-photo-preview img{width:100%;height:100%;object-fit:cover}.wall-photo-preview button{position:absolute;right:5px;top:5px;border:0;width:25px;height:25px;border-radius:50%;background:#000a;color:#fff}
.wall-feed-090{display:grid;gap:12px}
.wall-post-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--wall-card-radius);overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.wall-post-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 14px}
.wall-author-avatar,.wall-author-avatar>.avatar-md{display:block;width:48px;height:48px}.wall-author-avatar>.avatar-md{border-radius:13px!important;overflow:hidden}.wall-author-avatar img{width:100%;height:100%;object-fit:cover}
.wall-author-info{display:grid;min-width:0}.wall-author-info>a{display:flex;align-items:center;gap:4px;color:var(--text)}.wall-author-info small,.wall-author-info time{font-size:11px;color:var(--muted)}
.wall-more{align-self:start;border:0;background:transparent;color:var(--muted);font-weight:800;letter-spacing:2px;padding:8px;border-radius:8px}.wall-more:hover{background:var(--panel-2)}
.wall-post-text{padding:0 15px 13px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.wall-media-grid{display:grid;gap:2px;background:var(--border);max-height:720px}.wall-media-grid.count-1{grid-template-columns:1fr}.wall-media-grid.count-2{grid-template-columns:1fr 1fr}.wall-media-grid.count-3,.wall-media-grid.count-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.wall-media-grid.count-3 .wall-media-item:first-child{grid-row:1/3}.wall-media-item{position:relative;border:0;padding:0;background:#0a0d12;min-height:190px;overflow:hidden}.wall-media-grid.count-1 .wall-media-item{min-height:min(620px,62vw)}
.wall-media-item img{display:block;width:100%;height:100%;max-height:720px;object-fit:cover}.wall-media-grid.count-1 .wall-media-item img{object-fit:contain}
.wall-media-item>span{position:absolute;inset:0;display:grid;place-items:center;background:#0008;color:#fff;font-size:34px;font-weight:800}
.wall-post-actions{display:flex;align-items:center;gap:7px;padding:9px 13px;border-top:1px solid var(--border)}
.wall-action{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--panel-2);color:var(--muted);border-radius:18px;padding:7px 12px;min-height:34px}.wall-action:hover{color:var(--text)}.wall-action.active{background:color-mix(in srgb,#ff3e62 15%,var(--panel-2));color:#f0445f}.wall-action b:empty{display:none}.wall-action:last-child{margin-left:auto;background:transparent}
.wall-comments{padding:0 13px 13px;border-top:1px solid var(--border)}.wall-comments[hidden]{display:none}.wall-comments-list{display:grid}.wall-comment{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;padding:10px 0;border-bottom:1px solid var(--border)}
.wall-comment>div>header{display:flex;gap:7px;align-items:center}.wall-comment time{font-size:10px;color:var(--muted)}.wall-comment header button{margin-left:auto;border:0;background:transparent;color:var(--muted)}.wall-comment p{margin:3px 0 0;overflow-wrap:anywhere}
.wall-comment-form{display:grid;grid-template-columns:32px minmax(0,1fr) 36px;gap:8px;align-items:end;padding-top:10px}.wall-comment-form textarea{min-height:38px;max-height:120px;resize:none;background:var(--panel-2);border:0;border-radius:18px;padding:10px 13px}.wall-comment-form button{width:36px;height:36px;border:0;border-radius:50%;background:var(--accent);color:#fff}
.empty-card-090{background:var(--panel);border:1px solid var(--border);border-radius:var(--wall-card-radius);padding:28px;text-align:center;color:var(--muted)}
.feed-shell-090{max-width:none!important;width:100%;grid-template-columns:210px minmax(520px,760px) minmax(250px,300px)!important;justify-content:start!important;padding-right:18px;gap:14px!important}
.feed-page-090{padding-top:18px}.feed-page-head{border-radius:var(--wall-card-radius)!important}.feed-composer-090{margin-bottom:12px}.feed-right-column{padding-top:18px}.feed-post-090{display:block!important;padding:0!important}

/* Wall media lightbox. */
.wall-media-lightbox{position:fixed;z-index:1600;inset:0;background:rgba(3,7,11,.94);display:grid;place-items:center;padding:30px}.wall-media-lightbox[hidden]{display:none}.wall-media-lightbox img{max-width:94vw;max-height:92vh;object-fit:contain}.wall-media-lightbox button{position:fixed;right:20px;top:16px;width:42px;height:42px;border:0;border-radius:50%;background:#ffffff1c;color:#fff;font-size:26px}

/* Chat is a true flex scroller and follows the newest message only while the reader is at the bottom. */
.conversation{min-height:0!important;overflow:hidden}
.messages-wrap{position:relative;display:flex;flex:1;min-height:0;overflow:hidden}
.messages-wrap>.messages{flex:1!important;min-height:0!important;height:100%;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-bottom:22px!important}
.scroll-bottom-button{position:absolute;right:18px;bottom:18px;z-index:45;width:46px;height:46px;border:1px solid var(--border);border-radius:50%;background:var(--panel);color:var(--accent);font-size:27px;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.scroll-bottom-button[hidden]{display:none}.scroll-bottom-button em{position:absolute;right:-2px;top:-3px;min-width:19px;height:19px;border-radius:10px;background:var(--accent);color:#fff;font-size:10px;font-style:normal;display:grid;place-items:center}.scroll-bottom-button em[hidden]{display:none}
.messages .image-attachment img{min-height:80px;background:var(--panel-2)}

@media(max-width:1320px){
 .vk-profile-grid-090{grid-template-columns:minmax(260px,300px) minmax(480px,1fr)!important}.vk-profile-right{display:none!important}
 .feed-shell-090{grid-template-columns:210px minmax(480px,760px)!important}.feed-right-column{display:none!important}
}
@media(max-width:980px){
 .vk-site-shell,.feed-shell-090{grid-template-columns:1fr!important;padding-right:0}.profile-page-090{padding:12px!important}
 .vk-profile-grid-090{grid-template-columns:minmax(230px,300px) minmax(0,1fr)!important}.feed-page-090{padding:12px}
}
@media(max-width:760px){
 .vk-profile-grid-090{grid-template-columns:1fr!important}.vk-profile-left{max-width:430px!important;margin:auto}.profile-page-090{padding:10px!important}
 .wall-media-grid.count-1 .wall-media-item{min-height:320px}.wall-action:last-child b{display:none}.stories-strip{border-radius:0;margin-left:-12px;margin-right:-12px;border-left:0;border-right:0}
 .wall-photo-preview{grid-template-columns:repeat(3,1fr)}.story-viewer{padding:0}.story-viewer-card{width:100vw;height:100vh;border-radius:0}
 .messages-wrap>.messages{padding-left:10px!important;padding-right:10px!important}.scroll-bottom-button{right:12px;bottom:12px}
}
/* Actual profile reaction and story markup. */
.profile-photo-reactions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 0;padding:9px 10px;border-radius:11px;background:var(--panel);border:1px solid var(--border)}
.profile-photo-reaction-summary{display:flex;align-items:center;gap:2px}.profile-photo-reaction-summary b{font-size:12px;color:var(--muted);margin-left:4px}.profile-photo-reaction-picker{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.profile-photo-reaction-picker button{border:0;background:var(--panel-2);color:var(--text);border-radius:18px;min-height:30px;padding:5px 9px}.profile-photo-reaction-picker button.active{background:var(--accent-soft);outline:1px solid var(--accent)}
.story-viewer-card>.story-progress{position:absolute;z-index:5;left:10px;right:10px;top:8px}
.story-viewer-card>header{position:absolute;z-index:4;top:13px;left:0;right:0;padding:14px 13px 42px;display:flex;align-items:center;gap:9px;background:linear-gradient(#000c,transparent);color:#fff}
.story-viewer-card>header>div{display:grid}.story-viewer-card>header small{color:#ddd}.story-viewer-card>header button{margin-left:auto;border:0;background:#0006;color:#fff;width:32px;height:32px;border-radius:50%;font-size:22px}
.story-media-stage{width:100%;height:100%;display:grid;place-items:center}.story-media-stage img,.story-media-stage video{width:100%;height:100%;object-fit:contain;background:#080b0f}
.story-caption{position:absolute;z-index:4;left:16px;right:16px;bottom:24px;padding:10px;border-radius:12px;background:#0007;color:#fff;text-align:center}.story-caption[hidden]{display:none}
.story-delete{position:absolute;z-index:5;right:14px;bottom:14px;border:0;border-radius:10px;background:#d83945;color:#fff;padding:8px 12px}.story-delete[hidden]{display:none}
/* KOVCHEG CMS 0.10.0 — fixed application shell, AJAX wall, presence and polished messages */
:root{--topbar-height:58px;--sidebar-width:220px;--message-in:color-mix(in srgb,var(--panel) 94%,#fff);--message-out:color-mix(in srgb,var(--accent) 18%,var(--panel));--message-shadow:0 2px 9px rgba(0,0,0,.12)}

/* Fixed application chrome. */
html,body.auth-shell{height:100%;overflow:hidden}.auth-shell .topbar-100{height:var(--topbar-height);position:relative;z-index:500;padding:0 18px;background:var(--panel);border-bottom:1px solid var(--border)}
.brand-static{min-width:38px}.brand-static .brand-mark,.brand-static .brand-logo{width:36px;height:36px;border-radius:50%;object-fit:contain}.brand-static>span:not(.brand-mark){display:none}
.topbar-100 .topbar-actions{margin-left:auto;gap:10px}.topbar-100 .notification-bell{color:var(--muted);background:transparent;border:0;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;position:relative}.topbar-100 .notification-bell:hover,.topbar-100 .notification-bell[aria-expanded=true]{background:var(--panel-2);color:var(--accent)}
.bell-glyph{width:17px;height:19px;display:block;position:relative;border-radius:10px 10px 6px 6px;background:currentColor;font-size:0}.bell-glyph:before{content:"";position:absolute;left:4px;right:4px;top:-3px;height:7px;border-radius:8px 8px 0 0;background:currentColor}.bell-glyph:after{content:"";position:absolute;left:6px;right:6px;bottom:-4px;height:4px;border-radius:0 0 5px 5px;background:currentColor}
.notification-bell em{position:absolute;right:1px;top:1px;min-width:18px;height:18px;border-radius:10px;padding:0 5px;display:grid;place-items:center;background:var(--danger);color:#fff;font:700 10px/1 sans-serif;border:2px solid var(--panel)}
.notification-bell-panel{top:48px!important;right:0!important}
.profile-menu-wrap{position:relative}.profile-menu-button{border:0;background:transparent;color:var(--text);padding:5px 8px;border-radius:12px;display:flex;align-items:center;gap:8px}.profile-menu-button:hover,.profile-menu-button[aria-expanded=true]{background:var(--panel-2)}.profile-menu-button i{font-style:normal;color:var(--muted)}
.profile-dropdown{position:absolute;right:0;top:48px;width:285px;z-index:620;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:7px;box-shadow:var(--shadow)}.profile-dropdown[hidden]{display:none}.profile-dropdown>a,.profile-logout{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);padding:10px;border-radius:10px;text-align:left}.profile-dropdown>a:hover,.profile-logout:hover{background:var(--panel-2)}.profile-dropdown>a>span:last-child,.profile-logout>span:last-child{display:grid}.profile-dropdown small{color:var(--muted)}.profile-theme-row{padding:10px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);display:grid;gap:8px}.profile-theme-row>span{font-size:11px;color:var(--muted);text-transform:uppercase}.profile-theme-row>div{display:grid;grid-template-columns:1fr 1fr;gap:5px}.profile-theme-row button{border:0;background:var(--panel-2);color:var(--text);border-radius:8px;padding:8px}.profile-theme-row button.active{background:var(--accent);color:#fff}

/* All columns stay put, only their own content scrolls. */
.auth-shell>.messenger,.auth-shell>.site-page-shell,.auth-shell>.admin-shell,.auth-shell>.settings-shell{height:calc(100vh - var(--topbar-height));min-height:0;overflow:hidden}
.site-page-shell{max-height:calc(100vh - var(--topbar-height));align-items:stretch}.site-page-shell>.site-sidebar{height:100%;overflow-y:auto;overflow-x:visible;position:relative;top:auto}.site-page-shell>.vk-profile-page,.site-page-shell>.feed-page,.site-page-shell>.people-page,.site-page-shell>.people-page-060,.site-page-shell>.settings-page,.site-page-shell>.settings-page-060,.site-page-shell>.search-page{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain}.feed-right-column,.vk-profile-right{max-height:100%;overflow-y:auto}
.messenger>.site-sidebar,.messenger>.chat-list,.messenger>.conversation-shell{height:100%;min-height:0}.chat-list{overflow:hidden}.chat-items{overscroll-behavior:contain}

/* Compact universal search directly above the user card. */
.sidebar-global-search{position:relative;margin:8px 8px 6px;height:38px;flex:0 0 38px}.sidebar-global-search>span{position:absolute;z-index:2;left:11px;top:8px;color:var(--muted)}.sidebar-global-search input{height:38px;border:0;background:var(--panel-2);border-radius:10px;padding:0 10px 0 34px;font-size:12px;box-shadow:none}.sidebar-global-results{top:43px;left:0;right:auto;width:min(360px,calc(100vw - 28px));max-height:62vh}.site-user-card{margin-top:0!important}.site-sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width)!important}

/* Wall uploads remain on the page. */
.wall-composer-090.is-uploading{opacity:.78;pointer-events:none}.wall-composer-090.is-uploading:after{content:"Публикация…";position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--panel) 78%,transparent);backdrop-filter:blur(2px);font-weight:800;color:var(--accent);border-radius:inherit}.wall-composer-090{position:relative}.wall-post-card.wall-post-new{animation:wall-post-in .28s ease-out}@keyframes wall-post-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

/* Complete post reactions. */
.wall-reaction-wrap{position:relative}.wall-reaction-menu{position:absolute;z-index:80;left:0;bottom:45px;display:flex;gap:4px;padding:7px;background:var(--panel);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}.wall-reaction-menu[hidden]{display:none}.wall-reaction-menu button{width:35px;height:35px;border:0;border-radius:50%;background:transparent;font-size:21px;transition:.13s}.wall-reaction-menu button:hover,.wall-reaction-menu button.active{background:var(--accent-soft);transform:translateY(-2px)}.wall-reaction-summary{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:0 14px 10px}.wall-reaction-summary[hidden]{display:none}.wall-reaction-summary button{border:1px solid var(--border);background:var(--panel-2);color:var(--text);border-radius:16px;padding:4px 8px}.wall-reaction-summary button.mine{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.wall-reaction-main.active{color:var(--accent);background:var(--accent-soft)}

/* Avatar reactions are shown only inside the photo viewer. */
.avatar-viewer{padding:28px!important}.avatar-viewer-content{display:grid;justify-items:center;gap:12px;max-width:min(92vw,900px);max-height:92vh}.avatar-viewer-content>img{display:block;max-width:90vw;max-height:calc(92vh - 76px);object-fit:contain;border-radius:10px}.avatar-viewer .profile-photo-reactions{margin:0;max-width:90vw;background:#111b;color:#fff;border-color:#ffffff24;backdrop-filter:blur(12px)}.avatar-viewer .profile-photo-reaction-picker button{background:#ffffff18;color:#fff}.avatar-viewer .profile-photo-reaction-summary b{color:#ddd}

/* Presence state is live on every page. */
[data-presence-user]{transition:color .2s}.presence-online{color:var(--ok)!important}.presence-offline{color:var(--muted)!important}

/* Polished dialogue, incoming left and outgoing right. */
.messages-wrap>.messages{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:7px!important;padding:20px clamp(12px,4vw,52px) 24px!important;scroll-behavior:auto!important}
.message{width:auto!important;max-width:min(720px,78%)!important;margin:0 auto 0 0!important;display:flex!important;align-items:flex-end!important;gap:9px!important}.message.mine{margin-left:auto!important;margin-right:0!important;flex-direction:row-reverse!important}.message-avatar-link,.message-avatar-link .avatar-sm{width:36px!important;height:36px!important;flex:0 0 36px}.message-avatar-link .avatar-sm{border-radius:50%!important;border:1px solid var(--border);box-shadow:0 2px 7px rgba(0,0,0,.14)}.message-avatar-link img{width:100%!important;height:100%!important;object-fit:cover!important;display:block}
.message .bubble{min-width:130px!important;max-width:100%;padding:9px 12px 8px!important;background:var(--message-in)!important;border:1px solid color-mix(in srgb,var(--border) 85%,transparent)!important;border-radius:18px 18px 18px 6px!important;box-shadow:var(--message-shadow)!important}.message.mine .bubble{background:var(--message-out)!important;border-color:color-mix(in srgb,var(--accent) 30%,var(--border))!important;border-radius:18px 18px 6px 18px!important}.message-head{margin-bottom:4px!important}.message-head>a{display:flex;align-items:center;gap:5px;min-width:0}.message-head strong{font-size:12px!important}.message-head small{font-size:10px;color:var(--muted)}.message-head time{font-size:10px!important}.message-body{font-size:14px;line-height:1.42}.message.mine .message-head strong{color:color-mix(in srgb,var(--accent) 88%,#fff)}.message-actions{top:-34px!important}.message:hover .bubble{filter:brightness(1.015)}.message-select-control{align-self:center}.image-attachment{display:block;border:0;padding:0;background:transparent}.image-attachment img{max-width:min(470px,65vw)!important;max-height:520px!important;border-radius:13px!important}.reply-quote{border-radius:9px!important}.reactions{margin-top:6px!important}.composer{box-shadow:0 -1px 0 var(--border),0 -8px 22px rgba(0,0,0,.06)}

@media(max-width:1120px){.profile-menu-button>span,.profile-menu-button>i{display:none}.sidebar-global-results{width:330px}}
@media(max-width:850px){.topbar-100{display:flex!important}html,body.auth-shell{overflow:auto}.auth-shell>.site-page-shell{height:auto;max-height:none;overflow:visible}.site-page-shell>.vk-profile-page,.site-page-shell>.feed-page,.site-page-shell>.people-page,.site-page-shell>.people-page-060,.site-page-shell>.settings-page,.site-page-shell>.settings-page-060,.site-page-shell>.search-page{height:auto;overflow:visible}.sidebar-global-search{display:none}.topbar-100{position:sticky!important;top:0}.message{max-width:91%!important}.message-avatar-link,.message-avatar-link .avatar-sm{width:32px!important;height:32px!important;flex-basis:32px}.profile-dropdown{right:-4px;width:min(285px,92vw)}}
/* KOVCHEG CMS 0.11.0 */
:root{--message-in-110:#1b2a38;--message-out-110:#28547a;--message-text-110:#eef5fb;--feed-max-110:760px}
body[data-theme="light"]{--message-in-110:#ffffff;--message-out-110:#dceeff;--message-text-110:#17212b}
.impersonation-bar{height:40px;display:flex;align-items:center;justify-content:center;gap:16px;background:color-mix(in srgb,var(--accent) 22%,var(--panel));border-bottom:1px solid var(--border);font-size:12px;position:relative;z-index:500}.impersonation-bar form{margin:0}.impersonation-bar button{border:0;border-radius:8px;background:var(--accent);color:#fff;padding:6px 10px;font-weight:700}
.auth-shell:has(.impersonation-bar) .topbar{top:0}.topbar-100{display:grid!important;grid-template-columns:auto minmax(260px,620px) auto;gap:18px;position:sticky!important;top:0;z-index:450}.topbar-global-search{justify-self:center;width:100%;max-width:620px;margin:0!important}.topbar-actions{justify-self:end}.brand-static{min-width:38px}.brand-logo{max-height:38px;max-width:150px;object-fit:contain}
.site-sidebar{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0}.site-sidebar-menu{display:grid;gap:4px}.sidebar-copyright{margin-top:auto;padding:14px 12px;border-top:1px solid var(--border);font-size:11px;color:var(--muted);line-height:1.4}.sidebar-copyright small{display:block;margin-top:4px}
.admin-footer{margin:28px 0 0;padding:18px;border-top:1px solid var(--border);text-align:center;color:var(--muted);font-size:12px}.admin-user-actions form{display:inline-flex;margin:2px}
/* Center the feed and keep the optional right column aligned. */
.feed-shell,.feed-shell-090{width:min(100%,1320px)!important;max-width:1320px!important;margin:0 auto!important;grid-template-columns:220px minmax(520px,var(--feed-max-110)) minmax(250px,300px)!important;justify-content:center!important;align-items:start!important;padding:18px!important;gap:14px!important}.feed-page{width:100%;max-width:var(--feed-max-110);justify-self:center}.feed-right-column{width:100%}.feed-page-head,.feed-composer,.wall-post-card{width:100%}
/* Harmonious chat cards. */
.messages{padding:18px clamp(16px,5vw,72px)!important;scrollbar-gutter:stable}.message{max-width:min(680px,78%)!important;margin:5px auto 5px 0!important;gap:9px!important;align-items:flex-end!important}.message.mine{margin-left:auto!important;margin-right:0!important;flex-direction:row-reverse!important}.message .bubble{background:var(--message-in-110)!important;color:var(--message-text-110)!important;border:1px solid color-mix(in srgb,var(--border) 72%,transparent)!important;border-radius:18px 18px 18px 6px!important;box-shadow:0 3px 12px rgba(0,0,0,.16)!important;padding:9px 12px!important}.message.mine .bubble{background:var(--message-out-110)!important;border-radius:18px 18px 6px 18px!important}.message .message-body,.message .message-body *{color:inherit}.message .bubble time,.message .bubble small,.message .edited{color:color-mix(in srgb,var(--message-text-110) 68%,transparent)!important}.message-head strong{color:color-mix(in srgb,var(--accent) 88%,#fff)!important}.message-avatar-link .avatar-sm{background:var(--panel-2)}.message-avatar-link img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}.shared-wall-post{border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:12px;padding:10px;margin:4px 0;background:color-mix(in srgb,var(--panel) 50%,transparent)}
/* Story viewers. */
.story-owner-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px}.story-owner-actions button{border:0;border-radius:9px;padding:8px 11px;background:rgba(255,255,255,.12);color:#fff}.story-viewers-panel{position:absolute;inset:54px 0 0;background:rgba(8,15,24,.96);z-index:25;padding:14px;overflow:auto}.story-viewers-panel>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.story-viewers-panel>header button{border:0;background:transparent;color:#fff;font-size:25px}.story-viewer-person{display:flex;align-items:center;gap:10px;padding:9px;border-radius:10px;color:#fff}.story-viewer-person:hover{background:rgba(255,255,255,.08)}.story-viewer-person img{width:44px;height:44px;border-radius:12px;object-fit:cover}.story-viewer-person span{display:grid}.story-viewer-person small,.story-viewers-empty,.story-viewers-loading{color:#aebccc}
/* Nested comments and reposts. */
.wall-comment{display:flex;gap:9px;margin:10px 0}.wall-comment-body{min-width:0;flex:1}.wall-comment-body>header{display:flex;gap:8px;align-items:center}.wall-comment-body>header time{margin-left:auto;color:var(--muted);font-size:11px}.wall-comment-body>header button{border:0;background:transparent;color:var(--muted)}.wall-comment-body p{margin:4px 0}.wall-comment-body>footer button{border:0;background:transparent;color:var(--accent);padding:0;font-size:12px}.wall-comment-replies{margin-left:12px;padding-left:12px;border-left:2px solid var(--border)}.wall-comment-reply{margin-top:8px}.wall-comment-reply-context{grid-column:2/-1;display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px}.wall-comment-reply-context button{border:0;background:transparent;color:var(--muted)}
.wall-repost-preview,.shared-wall-post{display:block;color:var(--text);margin:10px 0;border-left:3px solid var(--accent);padding:10px;background:var(--panel-2);border-radius:0 10px 10px 0}.wall-repost-preview header,.shared-wall-post header{display:flex;gap:8px;align-items:center}.wall-repost-preview header span,.shared-wall-post header span{display:grid}.wall-repost-preview img,.shared-wall-post img{width:100%;max-height:360px;object-fit:cover;border-radius:10px;margin-top:8px}
.repost-card-110{width:min(560px,94vw)}.repost-card-110>header{display:flex;justify-content:space-between;align-items:center}.repost-card-110>header>div{display:grid}.repost-card-110>header small{color:var(--muted)}.repost-card-110>header>button{border:0;background:transparent;color:var(--muted);font-size:24px}.repost-note-110{margin:14px 0}.repost-destinations-110{display:grid;gap:12px}.repost-own-wall-110,.repost-contact-list-110 button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--border);background:var(--panel-2);color:var(--text);border-radius:11px;padding:10px}.repost-own-wall-110>span{font-size:24px}.repost-own-wall-110>div,.repost-contact-list-110 button span{display:grid}.repost-own-wall-110 small,.repost-contact-list-110 small{color:var(--muted)}.repost-destinations-110 section>header{display:grid;gap:8px}.repost-contact-list-110{max-height:280px;overflow:auto;display:grid;gap:5px;margin-top:8px}.repost-contact-list-110 img{width:44px;height:44px;border-radius:12px;object-fit:cover}
.notification-bell-panel [data-notifications-read-all]{opacity:1!important;pointer-events:auto!important;color:var(--accent)!important;font-weight:700}.notification-bell-panel [data-notifications-read-all]:disabled{opacity:.55!important}
@media(max-width:1100px){.feed-shell,.feed-shell-090{grid-template-columns:210px minmax(0,760px)!important}.feed-right-column{display:none!important}}
@media(max-width:850px){.topbar-100{grid-template-columns:auto 1fr auto;gap:8px}.topbar-global-search{display:none}.feed-shell,.feed-shell-090{display:block!important;padding:10px!important}.feed-page{max-width:none}.message{max-width:91%!important}.sidebar-copyright{display:none}}
.message-shared-post{display:block;color:inherit;margin:6px 0;border-left:3px solid var(--accent);padding:9px;background:color-mix(in srgb,var(--panel) 28%,transparent);border-radius:0 10px 10px 0}.message-shared-post header{display:flex;gap:8px;align-items:center}.message-shared-post header span{display:grid}.message-shared-post small{color:inherit;opacity:.7}.message-shared-post p{margin:7px 0}.message-shared-post img{display:block;width:100%;max-height:320px;object-fit:cover;border-radius:9px;margin-top:7px}
/* KOVCHEG CMS 0.12.0 — unified theme tone, left notifications and refined chat */
:root{
 --accent:#4778a8;
 --accent-hover:#3d6d9c;
 --accent-soft:#e7eef6;
 --bg:#edf1f5;
 --panel:#ffffff;
 --panel-2:#f3f6f8;
 --text:#1f2b36;
 --muted:#70808f;
 --border:#d9e1e8;
 --bubble-in:#ffffff;
 --bubble-out:#e3edf7;
 --message-in-120:#ffffff;
 --message-out-120:#dfeaf5;
 --message-shadow-120:0 2px 8px rgba(32,55,76,.10);
 --scroll-thumb:color-mix(in srgb,var(--accent) 52%,var(--border));
 --scroll-thumb-hover:color-mix(in srgb,var(--accent) 72%,var(--border));
 --theme-ring:color-mix(in srgb,var(--accent) 28%,transparent);
}
body[data-theme="dark"]{
 --accent:#6f9bc3;
 --accent-hover:#82acd1;
 --accent-soft:#21384c;
 --bg:#0f1822;
 --panel:#17232f;
 --panel-2:#1d2b38;
 --text:#edf3f7;
 --muted:#91a0ad;
 --border:#2a3a48;
 --bubble-in:#1c2a37;
 --bubble-out:#26445f;
 --message-in-120:#1c2a37;
 --message-out-120:#26445f;
 --message-shadow-120:0 3px 12px rgba(0,0,0,.18);
 --scroll-thumb:color-mix(in srgb,var(--accent) 46%,var(--border));
 --scroll-thumb-hover:color-mix(in srgb,var(--accent) 68%,var(--border));
 --theme-ring:color-mix(in srgb,var(--accent) 34%,transparent);
}

/* One restrained colour family across the interface. */
.brand-mark,.logo-large,.avatar,.avatar-sm,.avatar-xs,.profile-avatar,.avatar-photo,.channel-avatar{background:var(--accent)!important;background-image:none!important}
.btn-primary,.send-btn{background:var(--accent)!important}.btn-primary:hover,.send-btn:hover{background:var(--accent-hover)!important}
input:focus,textarea:focus,select:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px var(--theme-ring)!important}
.chat-item.active{background:color-mix(in srgb,var(--accent) 78%,var(--panel))!important;color:#fff!important}
.site-nav-item.active,.feed-tabs a.active{background:color-mix(in srgb,var(--accent) 28%,var(--panel))!important;color:var(--text)!important}
.notification-bell{color:var(--muted)!important}.notification-bell:hover,.notification-bell[aria-expanded="true"]{color:var(--accent)!important;background:var(--accent-soft)!important}
.notification-bell em{background:var(--accent)!important;color:#fff!important}

/* Thin, quiet scrollbars everywhere, including chat and feed. */
html,*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
*::-webkit-scrollbar{width:6px;height:6px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:999px;border:1px solid transparent;background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover);background-clip:padding-box}
.messages,.chat-items,.feed-page,.feed-list,.site-page-shell,.notification-bell-panel,.top-global-results{scrollbar-gutter:stable}

/* Every transient notification enters from the left. */
.toast-stack{left:16px!important;right:auto!important;bottom:16px!important;align-items:start!important}
.message-toast{background:var(--panel)!important;border-color:var(--border)!important;color:var(--text)!important;box-shadow:0 12px 34px rgba(0,0,0,.22)!important;animation:kovcheg-toast-left .18s ease-out both}
.message-toast p{color:var(--muted)!important}.message-toast .toast-close{color:var(--muted)!important}
@keyframes kovcheg-toast-left{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}

/* Chat: colleague on the left, own messages on the right, both in the same theme family. */
.messages-wrap>.messages{background:var(--bg)!important;background-image:none!important;padding:18px clamp(14px,4vw,54px) 24px!important;gap:4px!important}
.message,.message.mine{
 width:auto!important;
 max-width:min(700px,74%)!important;
 margin:6px auto 6px 0!important;
 padding:0!important;
 border:0!important;
 border-bottom:0!important;
 border-radius:0!important;
 background:transparent!important;
 display:flex!important;
 flex-direction:row!important;
 align-items:flex-end!important;
 gap:8px!important;
}
.message.mine{margin-left:auto!important;margin-right:0!important;flex-direction:row-reverse!important}
.message:hover,.message.mine:hover{background:transparent!important}
.message .bubble,.message.mine .bubble{
 position:relative!important;
 flex:0 1 auto!important;
 min-width:128px!important;
 max-width:100%!important;
 padding:9px 12px 8px!important;
 color:var(--text)!important;
 border:1px solid color-mix(in srgb,var(--border) 88%,transparent)!important;
 box-shadow:var(--message-shadow-120)!important;
}
.message:not(.mine) .bubble{background:var(--message-in-120)!important;border-radius:17px 17px 17px 5px!important}
.message.mine .bubble{background:var(--message-out-120)!important;border-color:color-mix(in srgb,var(--accent) 30%,var(--border))!important;border-radius:17px 17px 5px 17px!important}
.message .message-head{margin:0 0 4px!important;display:flex!important;align-items:center!important;gap:8px!important}
.message .message-head>a{display:flex!important;align-items:baseline!important;gap:5px!important;min-width:0!important}
.message .message-head strong{font-size:12px!important;color:var(--accent)!important}
.message.mine .message-head strong{color:color-mix(in srgb,var(--text) 82%,var(--accent))!important}
.message .message-head small,.message .message-head time,.message .edited{color:var(--muted)!important}
.message .message-head time{margin-left:auto!important;font-size:10px!important;white-space:nowrap}
.message .message-body{font-size:14px!important;line-height:1.45!important;color:var(--text)!important}
.message-avatar-link{width:36px!important;height:36px!important;flex:0 0 36px!important;margin:0!important}
.message-avatar-link .avatar-sm{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:50%!important;border:1px solid var(--border)!important;box-shadow:0 2px 7px rgba(0,0,0,.14)!important}
.message-avatar-link img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.message-actions{background:var(--panel)!important;border-color:var(--border)!important;box-shadow:var(--message-shadow-120)!important}
.reactions button,.reaction-menu button{background:var(--accent-soft)!important;color:var(--text)!important}
.reactions button.mine{outline:1px solid var(--accent)!important}
.reply-quote,.message-shared-post,.shared-wall-post{background:color-mix(in srgb,var(--panel-2) 82%,transparent)!important;border-color:var(--accent)!important;color:var(--text)!important}
.composer{background:var(--panel)!important;border-color:var(--border)!important}.composer textarea{background:var(--panel-2)!important;color:var(--text)!important}

/* Feed remains visually centred and its content scrolls with the same subtle thumb. */
.feed-shell,.feed-shell-090{margin-inline:auto!important;justify-content:center!important}
.feed-page{justify-self:center!important}

@media(max-width:760px){
 .toast-stack{left:10px!important;right:10px!important;width:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important}
 .message,.message.mine{max-width:91%!important}
 .messages-wrap>.messages{padding-left:9px!important;padding-right:9px!important}
}
/* KOVCHEG CMS 0.13.0 — permanent links, independent profile columns and split authentication */
:root{--right-column-130:300px;--profile-left-130:300px;--content-gap-130:14px}

/* Header: a large borderless logo on the left, compact search aligned to the right column. */
.topbar-100{grid-template-columns:minmax(180px,1fr) var(--right-column-130) auto!important;gap:14px!important;padding:0 18px!important}
.brand-static{display:flex!important;align-items:center!important;min-width:0!important;height:100%;padding:0!important;overflow:visible}
.brand-static .brand-logo{display:block!important;width:auto!important;height:48px!important;max-width:220px!important;max-height:48px!important;object-fit:contain!important;object-position:left center!important;border-radius:0!important;margin:0!important;padding:0!important}
.brand-static .brand-mark{width:44px!important;height:44px!important;border-radius:12px!important;font-size:18px!important}
.topbar-global-search{grid-column:2!important;justify-self:end!important;width:var(--right-column-130)!important;max-width:var(--right-column-130)!important;margin:0!important}
.topbar-actions{grid-column:3!important;justify-self:end!important}

/* Profile: side columns are independent; only the central wall column scrolls. */
.auth-shell>.site-page-shell.vk-site-shell{overflow:hidden!important}
.vk-profile-page.profile-page-090,.public-vk-profile.profile-page-090{height:100%!important;min-height:0!important;overflow:hidden!important;padding:14px!important;margin:0!important;width:100%!important;max-width:none!important}
.vk-profile-grid-090{height:100%!important;min-height:0!important;width:100%!important;max-width:1500px!important;margin:0 auto!important;grid-template-columns:var(--profile-left-130) minmax(520px,760px) var(--right-column-130)!important;grid-template-rows:minmax(0,1fr)!important;gap:var(--content-gap-130)!important;align-items:stretch!important;justify-content:center!important}
.vk-profile-left,.vk-profile-right{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;align-self:stretch!important;scrollbar-gutter:stable}
.vk-profile-left{padding-right:2px}.vk-profile-right{padding-left:2px}
.vk-profile-main{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:3px!important;align-content:start!important;scrollbar-gutter:stable}
.vk-profile-left>.profile-people-stack{padding-bottom:12px}
.vk-profile-right>.vk-right-card{margin:0!important}

/* Feed: the page and right rail stay independent; the central feed is the only scrolling column. */
.auth-shell>.feed-shell,.auth-shell>.feed-shell-090{height:100%!important;min-height:0!important;overflow:hidden!important;width:100%!important;max-width:1380px!important;margin:0 auto!important;padding:14px!important;grid-template-columns:220px minmax(520px,760px) var(--right-column-130)!important;gap:var(--content-gap-130)!important;align-items:stretch!important;justify-content:center!important}
.feed-shell>.site-sidebar{height:100%!important;min-height:0!important}
.feed-page,.feed-page-090{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;padding-right:3px!important}
.feed-right-column{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;align-self:stretch!important;scrollbar-gutter:stable}

/* Comment time is next to the author, not pushed to the opposite edge. */
.wall-comment-body>header{justify-content:flex-start!important;gap:6px!important}
.wall-comment-body>header time{margin-left:0!important;white-space:nowrap!important}
.wall-comment-body>header button{margin-left:auto!important}

/* Post description follows the media block and reads as a caption. */
.wall-media-grid+.wall-post-text,.wall-repost-preview+.wall-post-text{padding:13px 15px 14px!important;border-top:1px solid color-mix(in srgb,var(--border) 72%,transparent)!important;background:color-mix(in srgb,var(--panel-2) 35%,transparent)!important}
.wall-post-card>.wall-post-text:first-of-type{padding:13px 15px 14px!important}

/* Chat list uses one calm tone. Active state is indicated by a border, not a foreign fill. */
.chat-item,.chat-item.active{background:transparent!important;color:var(--text)!important;border-left:3px solid transparent!important}
.chat-item:hover{background:color-mix(in srgb,var(--panel-2) 72%,transparent)!important}
.chat-item.active{background:var(--panel-2)!important;border-left-color:var(--accent)!important}
.chat-item.active small,.chat-item.active time{color:var(--muted)!important}
.chat-item .chat-side em,.chat-item.active .chat-side em{background:var(--accent)!important;color:#fff!important}

/* Notifications are compact and match the right column width. */
.toast-stack{width:var(--right-column-130)!important;max-width:calc(100vw - 24px)!important}
.message-toast{width:100%!important;max-width:none!important}

/* Permanent-link action looks like the other message controls. */
.message-actions [data-copy-value]{display:grid;place-items:center}

/* Split login and registration page. */
.guest-shell{min-height:100%;background:var(--bg)}
.auth-split-page{min-height:calc(100vh - 34px);display:grid;grid-template-columns:minmax(380px,46%) minmax(420px,54%);background:var(--bg)}
.auth-split-form{display:grid;place-items:center;padding:clamp(24px,5vw,72px);background:var(--panel)}
.auth-form-card{width:min(440px,100%);display:grid;gap:18px}
.auth-brand-row{display:flex;align-items:center;gap:13px;color:var(--text)}
.auth-brand-row .logo-large{width:58px;height:58px;border-radius:15px;font-size:24px;overflow:hidden}
.auth-brand-row .logo-large img{width:100%;height:100%;object-fit:contain}
.auth-brand-row h1{margin:0;font-size:25px}.auth-brand-row p{margin:3px 0 0;color:var(--muted)}
.auth-form-card>h2{font-size:30px;margin:8px 0 0}.auth-form-card>.auth-lead{margin:-10px 0 2px;color:var(--muted)}
.auth-form-card form{display:grid;gap:14px}.auth-form-card .btn{min-height:46px}.auth-form-card .auth-link{margin:0;text-align:center;color:var(--muted)}
.auth-split-promo{position:relative;overflow:hidden;padding:clamp(34px,6vw,90px);display:flex;align-items:center;background:radial-gradient(circle at 78% 18%,color-mix(in srgb,var(--accent) 58%,transparent),transparent 34%),linear-gradient(145deg,#102233,#173a57 55%,#245d87);color:#fff}
.auth-split-promo:before,.auth-split-promo:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.13)}
.auth-split-promo:before{width:420px;height:420px;right:-130px;bottom:-180px}.auth-split-promo:after{width:230px;height:230px;left:-90px;top:-70px}
.auth-promo-content{position:relative;z-index:1;max-width:610px}.auth-promo-content small{display:inline-flex;padding:7px 11px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.08);font-weight:700}.auth-promo-content h2{font-size:clamp(34px,4.2vw,64px);line-height:1.05;margin:22px 0 16px;letter-spacing:-.025em}.auth-promo-content>p{font-size:17px;line-height:1.65;color:rgba(255,255,255,.78);max-width:560px}.auth-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:30px}.auth-feature{padding:15px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(8,22,34,.25);backdrop-filter:blur(8px)}.auth-feature b{display:block;margin-bottom:4px}.auth-feature span{font-size:12px;color:rgba(255,255,255,.7)}

@media(max-width:1180px){
 .vk-profile-grid-090{grid-template-columns:minmax(250px,290px) minmax(470px,1fr)!important}.vk-profile-right{display:none!important}
 .auth-shell>.feed-shell,.auth-shell>.feed-shell-090{grid-template-columns:210px minmax(0,760px)!important}.feed-right-column{display:none!important}
 .topbar-100{grid-template-columns:minmax(120px,1fr) 280px auto!important}.topbar-global-search{width:280px!important;max-width:280px!important}
}
@media(max-width:850px){
 .topbar-100{grid-template-columns:auto 1fr auto!important}.topbar-global-search{display:none!important}
 .auth-shell>.site-page-shell.vk-site-shell,.auth-shell>.feed-shell,.auth-shell>.feed-shell-090{height:auto!important;overflow:visible!important}
 .vk-profile-page.profile-page-090,.public-vk-profile.profile-page-090{height:auto!important;overflow:visible!important}
 .vk-profile-grid-090{height:auto!important;grid-template-columns:1fr!important}.vk-profile-left,.vk-profile-main,.vk-profile-right{height:auto!important;overflow:visible!important}
 .feed-page,.feed-page-090{height:auto!important;overflow:visible!important}
 .auth-split-page{grid-template-columns:1fr;min-height:100vh}.auth-split-form{padding:26px 18px}.auth-split-promo{min-height:380px;padding:38px 24px}.auth-promo-content h2{font-size:38px}.auth-feature-grid{grid-template-columns:1fr}
 .toast-stack{width:auto!important}
}
/* KOVCHEG CMS 0.14.0 — privacy, voice and human message URLs */
:root{--voice-wave:#5a9bd8}
.avatar,.avatar-sm,.avatar-xs,.profile-avatar-large,.profile-avatar-large img,.avatar-photo,.avatar-photo img{padding:0!important;background:transparent!important;object-fit:cover!important}
.auth-split-page{grid-template-columns:minmax(420px,54%) minmax(380px,46%)!important}
.auth-split-promo{grid-column:1;grid-row:1}.auth-split-form{grid-column:2;grid-row:1}
.auth-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-promo-content{max-width:680px}
.messenger{height:calc(100dvh - 58px)!important;min-height:0!important;overflow:hidden!important;grid-template-rows:minmax(0,1fr)!important}
.messenger>.site-sidebar,.messenger>.chat-list,.messenger>.conversation-shell{height:100%!important;min-height:0!important}
.conversation-shell{overflow:hidden!important;min-width:0}
.conversation{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
.messages-wrap{height:100%!important;min-height:0!important;overflow:hidden!important;position:relative}
.messages{height:100%!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
.composer{position:relative}.voice-recorder-panel{grid-column:1/-1;border-top:1px solid var(--line);padding:8px 12px;background:var(--panel);border-radius:14px;margin-top:4px}
.voice-live,.voice-draft{display:flex;align-items:center;gap:10px;min-height:42px}.voice-record-dot{width:10px;height:10px;border-radius:50%;background:#e5484d;box-shadow:0 0 0 5px color-mix(in srgb,#e5484d 18%,transparent);animation:voicePulse 1.1s infinite}.voice-wave-live,.voice-wave-static,.voice-message-wave{display:flex;align-items:center;gap:2px;flex:1;height:28px;overflow:hidden}.voice-wave-live i,.voice-wave-static i,.voice-message-wave i{display:block;width:3px;border-radius:5px;background:var(--accent);opacity:.72;height:var(--h,12px)}
.voice-wave-live i:nth-child(3n){height:22px}.voice-wave-live i:nth-child(4n){height:9px}.voice-wave-live i:nth-child(5n){height:17px}.voice-wave-static i:nth-child(3n),.voice-message-wave i:nth-child(3n){height:19px}.voice-wave-static i:nth-child(4n),.voice-message-wave i:nth-child(4n){height:8px}.voice-wave-static i:nth-child(5n),.voice-message-wave i:nth-child(5n){height:24px}
.voice-cancel,.voice-delete,.voice-stop,.voice-draft-play,.voice-message-play,.voice-speed{border:0;cursor:pointer;background:var(--panel-2);color:var(--text);border-radius:999px;min-width:36px;height:36px}.voice-stop{padding:0 15px;color:#fff;background:var(--accent);font-weight:700}.voice-cancel,.voice-delete{font-size:20px}.voice-draft-track,.voice-message-main{display:grid;flex:1;min-width:100px}.voice-draft-track input,.voice-message-main input{width:100%;height:4px;margin-top:-12px;opacity:.001;cursor:pointer}.voice-draft time{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}
.voice-message{display:flex;align-items:center;gap:9px;min-width:min(310px,68vw);padding:3px 0}.voice-message audio{display:none}.voice-message-play{flex:0 0 42px;width:42px;height:42px;background:var(--accent);color:#fff;font-size:16px}.voice-message-main small{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}.voice-message-main time{font-variant-numeric:tabular-nums}.voice-speed{font-size:11px;font-weight:800;min-width:38px}
.direct-contacts{display:grid;gap:5px;max-height:280px;overflow:auto}.direct-contact{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--text);padding:8px;border-radius:10px;text-align:left;cursor:pointer}.direct-contact:hover{background:var(--panel-2)}.direct-contact .avatar-sm{flex:0 0 auto}.direct-contact span{display:grid}.direct-contact small{color:var(--muted)}
.blacklist-list{display:grid;gap:8px}.blacklist-row{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:12px}.blacklist-row .btn{margin-left:auto}
.wall-video-embeds{display:grid;gap:8px;background:#000}.wall-video-embed,.wall-video-frame{position:relative;aspect-ratio:16/9;overflow:hidden}.wall-video-embed iframe,.wall-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.avatar-viewer-layout{width:min(1120px,94vw)}.avatar-discussion{min-width:320px}.avatar-comments-list{overflow:auto}.avatar-comment{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:8px 0}.avatar-comment-body{min-width:0}.avatar-comment-body header{display:flex;align-items:center;gap:7px}.avatar-comment-body p{margin:4px 0;white-space:pre-wrap}.avatar-comment-replies{margin-left:18px;border-left:2px solid var(--line);padding-left:10px}.avatar-comment-actions{display:flex;gap:10px}.avatar-comment-actions button{border:0;background:none;color:var(--muted);padding:0;cursor:pointer}
@keyframes voicePulse{50%{transform:scale(.72);opacity:.7}}
@media(max-width:850px){.auth-split-page{grid-template-columns:1fr!important}.auth-split-form{grid-column:1;grid-row:1}.auth-split-promo{grid-column:1;grid-row:2}.messenger{height:calc(100dvh - 58px)!important}.avatar-viewer-layout{grid-template-columns:1fr}.avatar-discussion{min-width:0}}
/* KOVCHEG CMS 0.15.1 — compact media controls, weather and profile scrolling. */
:root{--toast-150:210px}

/* The uploaded logo occupies its real bounds: no decorative container or padding. */
.brand.brand-static{height:58px;min-width:0;padding:0!important;margin:0!important;display:flex;align-items:center;overflow:visible;background:transparent!important;border:0!important}
.brand-static .brand-logo{display:block!important;width:auto!important;height:auto!important;max-width:260px!important;max-height:54px!important;object-fit:contain!important;object-position:left center!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}

/* Notifications are intentionally compact. */
.toast-stack{width:var(--toast-150)!important;max-width:calc(100vw - 24px)!important}
.message-toast{width:100%!important;min-width:0!important;max-width:none!important;padding:9px!important;border-radius:11px!important}
.message-toast img{width:34px!important;height:34px!important}
.message-toast b{font-size:12px!important}.message-toast p{font-size:11px!important;line-height:1.35!important}

/* Profile: columns stay independent, the center scrolls, scrollbars remain invisible. */
.auth-shell>.site-page-shell.vk-site-shell{height:calc(100vh - var(--topbar-height,58px))!important;min-height:0!important;overflow:hidden!important}
.vk-profile-page.profile-page-090,.public-vk-profile.profile-page-090{height:100%!important;min-height:0!important;overflow:hidden!important}
.vk-profile-grid-090{height:100%!important;min-height:0!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important}
.vk-profile-left,.vk-profile-main,.vk-profile-right{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
.vk-profile-main{display:block!important;align-content:initial!important}
.vk-profile-left,.vk-profile-main,.vk-profile-right{scrollbar-width:none!important;-ms-overflow-style:none!important}
.vk-profile-left::-webkit-scrollbar,.vk-profile-main::-webkit-scrollbar,.vk-profile-right::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* One paperclip replaces the old photo button and text. */
.wall-composer-090 footer,.feed-composer-090 footer{position:relative;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important}
.wall-attachment-tools{position:relative;display:inline-flex;align-items:center}
.wall-paperclip{width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--muted);font-size:21px;transition:.15s}
.wall-paperclip:hover,.wall-paperclip[aria-expanded=true]{background:var(--panel-2);color:var(--accent)}
.wall-attachment-menu{position:absolute;z-index:260;left:0;bottom:46px;width:210px;padding:6px;background:var(--panel);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow)}
.wall-attachment-menu[hidden]{display:none!important}
.wall-attachment-menu label{display:flex;grid-template-columns:none;align-items:center;gap:10px;padding:10px;border-radius:9px;color:var(--text);cursor:pointer;font-weight:600}
.wall-attachment-menu label:hover{background:var(--panel-2)}
.wall-attachment-menu label span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft)}
.wall-document-preview{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 10px}
.wall-document-preview[hidden]{display:none!important}
.wall-document-chip{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center;max-width:100%;padding:7px 9px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2)}
.wall-document-chip i{grid-row:1/3;font-style:normal;font-size:20px}.wall-document-chip b{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.wall-document-chip small{color:var(--muted);font-size:10px}
.wall-document-list{display:grid;gap:7px;padding:10px 14px 2px}
.wall-document-card{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:11px;background:var(--panel-2);color:var(--text)}
.wall-document-card>span{font-size:24px}.wall-document-card>div{display:grid;min-width:0}.wall-document-card b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wall-document-card small{color:var(--muted)}

/* Image discussion is beside the image, not underneath it. */
body.wall-lightbox-open{overflow:hidden!important}
.wall-media-lightbox-150{padding:20px!important;place-items:center!important}
.wall-lightbox-layout{width:min(1280px,96vw);height:min(850px,94vh);display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);background:#070b10;border:1px solid #ffffff1c;border-radius:16px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.55)}
.wall-lightbox-image{min-width:0;display:grid;place-items:center;background:#05070a;overflow:hidden}
.wall-media-lightbox-150 .wall-lightbox-image img{position:static!important;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}
.wall-lightbox-discussion{min-width:0;background:var(--panel);color:var(--text);display:flex;flex-direction:column;overflow:hidden}
.wall-lightbox-discussion>header{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--border)}
.wall-lightbox-discussion>header button{position:static!important;width:auto!important;height:auto!important;border-radius:9px!important;background:var(--panel-2)!important;color:var(--text)!important;font-size:12px!important;padding:7px 10px!important}
.wall-lightbox-comments-slot{min-height:0;flex:1;overflow:hidden}
.wall-lightbox-comments-slot .wall-comments{height:100%;display:flex!important;flex-direction:column;background:var(--panel);border:0!important}
.wall-lightbox-comments-slot .wall-comments-list{flex:1;min-height:0;overflow-y:auto;padding:10px 13px}
.wall-lightbox-comments-slot .wall-comment-form{flex:0 0 auto;border-top:1px solid var(--border);padding:9px}
.wall-media-lightbox-150>.wall-lightbox-close{right:14px!important;top:12px!important;z-index:3}

/* Weather block in the optional right column. */
.weather-widget{margin-bottom:12px;overflow:hidden}
.weather-widget>header{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-bottom:1px solid var(--border)}
.weather-widget>header>div{display:grid}.weather-widget header small{color:var(--muted);font-size:10px}.weather-main-icon{font-size:27px}
.weather-loading,.weather-error,.weather-empty{padding:14px;color:var(--muted)}
.weather-empty p{margin:0 0 8px}.weather-error{color:var(--danger)}
.weather-now{display:flex;align-items:flex-end;justify-content:space-between;padding:14px 14px 10px}.weather-now>div{display:grid}.weather-now b{font-size:36px;line-height:1}.weather-now span{margin-top:5px}.weather-now small{max-width:135px;text-align:right;color:var(--muted)}
.weather-days{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:0 10px 11px}.weather-days>div{display:grid;justify-items:center;gap:2px;padding:7px 3px;border-radius:9px;background:var(--panel-2)}.weather-days span,.weather-days small{font-size:10px;color:var(--muted)}.weather-days i{font-style:normal;font-size:18px}.weather-days b{font-size:12px}
.weather-city-link{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;border-top:1px solid var(--border);color:var(--text)}.weather-city-link small{color:var(--muted)}
.field-help{font-weight:400;color:var(--muted);font-size:11px}

@media(max-width:850px){
 .toast-stack{width:min(210px,calc(100vw - 20px))!important}
 .wall-lightbox-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,58vh) minmax(260px,1fr);height:96vh}
 .wall-lightbox-discussion{min-height:0}
 .auth-shell>.site-page-shell.vk-site-shell,.vk-profile-page.profile-page-090,.public-vk-profile.profile-page-090,.vk-profile-grid-090,.vk-profile-left,.vk-profile-main,.vk-profile-right{height:auto!important;overflow:visible!important}
}

/* 0.15.1 — voice recording lives inside the message input. */
.composer-input-box{min-width:0;position:relative;align-self:end}
.composer-input-box>textarea{display:block;width:100%}
.voice-recorder-panel.voice-recorder-inline{display:flex;align-items:center;gap:10px;width:100%;height:42px;min-height:42px;margin:0;padding:0 12px;border:0;border-radius:21px;background:var(--panel-2);overflow:hidden}
.voice-recorder-panel.voice-recorder-inline[hidden]{display:none!important}
.voice-recorder-inline .voice-cancel{flex:0 0 30px;min-width:30px;width:30px;height:30px;background:transparent;color:var(--muted)}
.voice-recorder-inline [data-voice-timer]{min-width:38px;font-variant-numeric:tabular-nums;color:var(--text)}
.voice-recorder-inline .voice-wave-live{min-width:70px;height:25px}
.voice-recorder-inline>small{flex:0 0 auto;color:var(--muted);white-space:nowrap;font-size:11px}
.composer.voice-recording .send-btn{box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 18%,transparent)}
.composer.voice-recording [data-voice]{color:#e5484d;background:color-mix(in srgb,#e5484d 12%,transparent)}
@media(max-width:720px){.voice-recorder-inline>small{display:none}.voice-recorder-inline .voice-wave-live{gap:1px}}
/* KOVCHEG CMS 0.16.0 — modern wall publisher, drafts, scheduling and post search. */
.wall-create-160{display:grid;gap:10px;margin:0 0 12px}.wall-create-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:46px;background:var(--panel);border:1px solid var(--border);border-radius:14px;overflow:hidden}.wall-create-bar.search-only{grid-template-columns:1fr}.wall-create-primary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}.wall-create-primary:hover{background:var(--panel-2)}.wall-create-primary span{font-size:25px;font-weight:300;line-height:1}.wall-create-primary b{font-size:14px}.wall-create-tools{display:flex;align-items:center;height:100%}.wall-create-tools>button{height:34px;border:0;background:transparent;color:var(--muted);cursor:pointer}.wall-create-tools>button:hover{color:var(--text);background:var(--panel-2)}.wall-create-drafts{display:flex;align-items:center;gap:7px;padding:0 13px;border-left:1px solid var(--border)!important;border-right:1px solid var(--border)!important;border-radius:9px}.wall-create-drafts em{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:white;font-style:normal;font-size:10px}.wall-create-search{width:44px;font-size:23px}.wall-post-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 10px;background:var(--panel);border:1px solid var(--border);border-radius:12px}.wall-post-search span{color:var(--muted);font-size:20px}.wall-post-search input{min-width:0;border:0;background:transparent;color:var(--text);font:inherit;outline:0}.wall-post-search button{border:0;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}.wall-search-no-results{padding:30px 16px;text-align:center;color:var(--muted);background:var(--panel);border:1px solid var(--border);border-radius:14px}
.wall-publisher-modal,.wall-drafts-modal{position:fixed;inset:0;z-index:1600;display:grid;place-items:center;padding:18px;background:rgba(4,9,15,.74);backdrop-filter:blur(10px)}.wall-publisher-modal[hidden],.wall-drafts-modal[hidden]{display:none!important}.wall-publisher{width:min(720px,100%);max-height:min(880px,calc(100vh - 36px));display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;gap:0!important;padding:0!important;margin:0!important;overflow:hidden;background:var(--panel)!important;border:1px solid color-mix(in srgb,var(--border) 75%,var(--text) 8%)!important;border-radius:18px!important;box-shadow:0 26px 90px rgba(0,0,0,.42)}.wall-publisher-head{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;min-height:52px;padding:0 12px;border-bottom:1px solid var(--border)}.wall-publisher-head>b{text-align:center;font-size:15px}.wall-publisher-head button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.wall-publisher-head button:hover{background:var(--panel-2);color:var(--text)}.wall-publisher-step{min-height:0;padding:18px;overflow:auto}.wall-publisher-step[hidden]{display:none!important}.wall-publisher-dropzone{min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;padding:28px;border:1px dashed color-mix(in srgb,var(--muted) 60%,transparent);border-radius:14px;background:color-mix(in srgb,var(--panel-2) 46%,transparent);text-align:center;transition:.18s ease}.wall-publisher-dropzone.dragging{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel))}.wall-upload-symbol{width:72px;height:72px;display:grid;place-items:center;border:3px dashed currentColor;border-radius:19px;color:var(--text);font-size:47px;font-weight:200;line-height:1}.wall-publisher-dropzone strong{margin-top:7px;font-size:22px}.wall-publisher-dropzone small{color:var(--muted)}.wall-upload-button{margin-top:4px;min-height:38px;padding:0 19px;border:0;border-radius:9px;background:var(--text);color:var(--panel);font-weight:800;cursor:pointer}.wall-upload-button:hover{opacity:.9}.wall-media-preview-160{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.wall-media-preview-160 figure{position:relative;aspect-ratio:1;border-radius:11px;overflow:hidden;background:var(--panel-2);margin:0}.wall-media-preview-160 img,.wall-media-preview-160 video{width:100%;height:100%;display:block;object-fit:cover}.wall-media-preview-160 figure button{position:absolute;top:6px;right:6px;width:25px;height:25px;border:0;border-radius:50%;background:rgba(0,0,0,.72);color:white;font-size:17px;cursor:pointer}.wall-publisher-document-row{display:flex;justify-content:flex-start;padding:10px 0 0}.wall-document-add{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:9px;color:var(--muted);cursor:pointer}.wall-document-add:hover{background:var(--panel-2);color:var(--text)}.wall-publisher-text{display:grid;grid-template-columns:38px minmax(0,1fr) 32px;gap:9px;align-items:start;margin-top:12px;padding:10px 0 2px}.wall-publisher-text textarea{min-height:90px!important;max-height:220px!important;padding:7px 3px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--text)!important;resize:none!important;font:inherit;line-height:1.5;outline:0}.wall-publisher-emoji{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:23px;cursor:pointer}.wall-publisher-emoji:hover{background:var(--panel-2);color:var(--text)}.wall-publish-settings{display:grid;gap:14px}.wall-publish-settings article{overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--panel-2)}.wall-publish-settings article>header{display:flex;align-items:center;gap:11px;padding:14px;border-bottom:1px solid var(--border)}.wall-publish-settings article>header>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent);font-size:19px}.wall-publish-settings article>header div{display:grid;gap:2px}.wall-publish-settings article>header small,.wall-setting-row small{color:var(--muted);font-weight:400}.wall-setting-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid var(--border);cursor:pointer}.wall-setting-row:last-child{border-bottom:0}.wall-setting-row:hover{background:color-mix(in srgb,var(--accent) 5%,transparent)}.wall-setting-row span{display:grid;gap:3px}.wall-setting-row input{width:19px;height:19px;accent-color:var(--accent)}.wall-schedule-field{padding:12px 14px;border-bottom:1px solid var(--border)}.wall-schedule-field label{display:grid;gap:6px;color:var(--muted);font-size:12px}.wall-schedule-field input{min-height:41px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:var(--input);color:var(--text);color-scheme:dark}.wall-publisher-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:58px;padding:9px 14px!important;border-top:1px solid var(--border)!important;background:var(--panel)!important}.wall-publisher-footer>div{display:flex;gap:8px}.wall-publish-tips{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);font-weight:700;cursor:pointer}.wall-publish-tips:hover{color:var(--text)}.wall-publisher.is-uploading:after{z-index:20}.wall-publisher-emoji-menu{position:absolute;right:18px;bottom:64px;display:flex;gap:5px;padding:8px;border:1px solid var(--border);border-radius:12px;background:var(--panel);box-shadow:0 14px 40px rgba(0,0,0,.3)}.wall-publisher-emoji-menu button{width:34px;height:34px;border:0;border-radius:8px;background:transparent;font-size:21px;cursor:pointer}.wall-publisher-emoji-menu button:hover{background:var(--panel-2)}body.wall-publisher-open{overflow:hidden}
.wall-drafts-card{width:min(620px,100%);max-height:min(720px,calc(100vh - 36px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--border);border-radius:17px;background:var(--panel);box-shadow:0 26px 90px rgba(0,0,0,.42)}.wall-drafts-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--border)}.wall-drafts-card>header>div{display:grid;gap:3px}.wall-drafts-card>header small{color:var(--muted)}.wall-drafts-card>header button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.wall-drafts-list{min-height:140px;overflow:auto;padding:10px}.wall-draft-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px;border-bottom:1px solid var(--border)}.wall-draft-item:last-child{border-bottom:0}.wall-draft-item>div:first-child{display:grid;gap:5px;min-width:0}.wall-draft-item p{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wall-draft-item small{color:var(--muted)}.wall-draft-actions{display:flex;align-items:center;gap:6px}.wall-draft-actions button{min-height:32px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--panel-2);color:var(--text);cursor:pointer}.wall-draft-actions button.primary{background:var(--accent);border-color:var(--accent);color:white}.wall-native-videos{display:grid;gap:8px;background:#000}.wall-native-videos video{display:block;width:100%;max-height:680px;background:#000}.wall-post-privacy{margin-left:5px;font-size:11px;opacity:.72}
@media(max-width:720px){.wall-publisher-modal,.wall-drafts-modal{padding:0;place-items:stretch}.wall-publisher,.wall-drafts-card{width:100%;max-height:none;height:100%;border:0;border-radius:0}.wall-publisher-step{padding:14px}.wall-publisher-dropzone{min-height:280px}.wall-media-preview-160{grid-template-columns:repeat(3,minmax(0,1fr))}.wall-create-drafts b{display:none}.wall-create-drafts{padding:0 11px}.wall-publish-tips{font-size:12px}.wall-publisher-footer{padding-bottom:max(9px,env(safe-area-inset-bottom))!important}.wall-draft-item{grid-template-columns:1fr}.wall-draft-actions{justify-content:flex-end}}
/* KOVCHEG CMS 3.0. */
.topbar-100{grid-template-columns:minmax(0,1fr) auto!important}.topbar-left-170{min-width:0;display:flex;align-items:center;gap:11px}.topbar-left-170 .brand{flex:0 0 auto}.brand-site-name-170{flex:0 0 auto;max-width:220px;color:var(--text);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-left-170 .topbar-global-search{justify-self:auto!important;width:min(460px,42vw)!important;max-width:460px!important;margin:0 0 0 12px!important}.topbar-actions{grid-column:2}
.weather-widget-clickable{display:block;color:var(--text);text-decoration:none;cursor:pointer;transition:transform .15s,border-color .15s}.weather-widget-clickable:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}.weather-widget-clickable .weather-city-link{color:var(--text)}
.weather-shell-170{height:calc(100vh - var(--topbar-height,58px));overflow:hidden}.weather-page-170{min-width:0;overflow-y:auto;padding:22px clamp(16px,3vw,42px) 60px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 55%,transparent) transparent}.weather-hero-170{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1120px;margin:0 auto 14px;padding:20px 22px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 20%,var(--panel)),var(--panel))}.weather-hero-170 a{color:var(--muted)}.weather-hero-170 h1{margin:7px 0 4px;font-size:30px}.weather-hero-170 p{margin:0;color:var(--muted)}.weather-hero-temp{display:flex;align-items:center;gap:12px}.weather-hero-temp span{font-size:52px}.weather-hero-temp b{font-size:54px;line-height:1}.weather-tabs-170{position:sticky;top:0;z-index:8;display:flex;gap:7px;max-width:1120px;margin:0 auto 14px;padding:7px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:blur(14px)}.weather-tabs-170 button{min-height:38px;padding:0 17px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:750;cursor:pointer}.weather-tabs-170 button.active{background:var(--accent);color:#fff}.weather-panel-170{max-width:1120px;margin:0 auto}.weather-panel-170[hidden]{display:none!important}.weather-panel-170.active{display:grid;gap:14px}.weather-radar-card,.weather-rain-timeline{overflow:hidden;border:1px solid var(--border);border-radius:17px;background:var(--panel)}.weather-radar-card>header,.weather-rain-timeline>header,.weather-section-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid var(--border)}.weather-radar-card h2,.weather-rain-timeline h2,.weather-section-head h2{margin:0;font-size:18px}.weather-radar-card p,.weather-rain-timeline p,.weather-section-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.weather-radar-card>header time{color:var(--muted)}#weather-radar-map{height:480px;background:var(--panel-2)}.weather-map-fallback{height:100%;display:grid;place-items:center;padding:20px;color:var(--muted);text-align:center}.weather-radar-card>footer{display:grid;grid-template-columns:38px minmax(0,1fr) 38px 42px;align-items:center;gap:8px;padding:10px 13px;border-top:1px solid var(--border)}.weather-radar-card>footer button{height:34px;border:1px solid var(--border);border-radius:9px;background:var(--panel-2);color:var(--text);cursor:pointer}.weather-radar-card input{accent-color:var(--accent)}.weather-day-switch{display:flex;gap:6px;padding:12px 14px 3px}.weather-day-switch button{padding:8px 14px;border:0;border-radius:10px;background:var(--panel-2);color:var(--muted);cursor:pointer}.weather-day-switch button.active{background:var(--accent-soft);color:var(--accent)}.weather-hour-strip{display:flex;gap:4px;overflow-x:auto;padding:12px 14px 7px;scrollbar-width:thin}.weather-hour{flex:0 0 64px;display:grid;justify-items:center;gap:4px;padding:7px 4px;border-radius:10px}.weather-hour.current{background:var(--accent-soft)}.weather-hour time,.weather-hour small{font-size:10px;color:var(--muted)}.weather-hour>span{height:62px;width:18px;display:flex;align-items:flex-end;justify-content:center}.weather-hour>span i{display:block;width:8px;min-height:3px;border-radius:5px;background:linear-gradient(var(--accent),#69b8ff)}.weather-hour b{font-size:11px}.weather-rain-summary{padding:12px 15px 15px;color:var(--muted)}.weather-ten-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:12px}.weather-ten-grid article{display:grid;gap:8px;padding:13px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}.weather-ten-grid article>header{display:flex;justify-content:space-between}.weather-ten-grid article>header small,.weather-ten-grid article p,.weather-ten-grid article footer small{color:var(--muted)}.weather-ten-grid article>span{font-size:32px}.weather-ten-grid article>div{display:flex;gap:8px;align-items:baseline}.weather-ten-grid strong{font-size:23px}.weather-ten-grid em{font-style:normal;color:var(--muted)}.weather-ten-grid article p{min-height:30px;margin:0;font-size:12px}.weather-ten-grid article footer{display:flex;justify-content:space-between;font-size:11px}.weather-month-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;margin-top:12px}.weather-month-grid article{display:grid;justify-items:center;gap:4px;padding:10px 3px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}.weather-month-grid time,.weather-month-grid small,.weather-month-grid em{font-size:10px;color:var(--muted);font-style:normal}.weather-month-grid span{font-size:21px}.weather-source-note{max-width:1120px;margin:16px auto 0;color:var(--muted);font-size:11px;text-align:center}.weather-page-error{max-width:1120px;margin:0 auto 14px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--danger) 40%,var(--border));border-radius:12px;background:color-mix(in srgb,var(--danger) 10%,var(--panel));color:var(--danger)}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:9px!important}
@media(max-width:1000px){.brand-site-name-170{display:none}.topbar-left-170 .topbar-global-search{width:min(430px,54vw)!important;margin-left:4px!important}.weather-ten-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weather-month-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:720px){.topbar-left-170 .topbar-global-search{display:none!important}.weather-shell-170{height:auto;overflow:visible}.weather-page-170{overflow:visible;padding:10px}.weather-hero-170{padding:15px}.weather-hero-170 h1{font-size:22px}.weather-hero-temp span{font-size:34px}.weather-hero-temp b{font-size:38px}#weather-radar-map{height:360px}.weather-tabs-170{top:var(--topbar-height,58px)}.weather-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* KOVCHEG CMS 0.17.1 — avatar discussion, logo trim, weather radar and admin version. */

/* Header search is one third narrower than the previous layout. */
.topbar-left-170 .topbar-global-search{width:min(305px,30vw)!important;max-width:305px!important}

/* The brand image uses only the real cropped pixels and never receives a white container. */
.brand.brand-static,.brand-static .brand-logo{background:transparent!important;box-shadow:none!important;border:0!important}
.brand-static .brand-logo{max-width:210px!important;max-height:52px!important;object-fit:contain!important;object-position:left center!important}
.branding-preview{overflow:hidden!important;background:var(--panel-2)!important}
.branding-preview img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:104px!important;margin:0!important;padding:0!important;background:transparent!important;object-fit:contain!important}

/* Avatar viewer: photo on the left, complete readable/writable discussion on the right. */
.avatar-viewer{padding:18px!important;place-items:center!important}
.avatar-viewer-layout{width:min(1220px,96vw)!important;height:min(860px,94vh)!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(330px,390px)!important;overflow:hidden!important;border:1px solid #ffffff22;border-radius:18px;background:#070b10;box-shadow:0 28px 90px rgba(0,0,0,.6)}
.avatar-viewer-content{min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;place-items:center!important;padding:14px!important;background:#05070a!important;overflow:hidden!important}
.avatar-viewer-content>img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:10px!important;box-shadow:none!important}
.avatar-viewer .profile-photo-reactions{width:min(620px,100%);margin:10px 0 0!important}
.avatar-discussion{min-width:0!important;min-height:0!important;display:flex!important;flex-direction:column!important;background:var(--panel)!important;color:var(--text)!important;overflow:hidden!important}
.avatar-discussion>header{flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;border-bottom:1px solid var(--border)}
.avatar-discussion>header>div{display:grid}.avatar-discussion>header small{color:var(--muted)}
.avatar-comments-list{flex:1!important;min-height:0!important;overflow-y:auto!important;padding:10px 14px!important;overscroll-behavior:contain}
.avatar-comment-form{position:static!important;flex:0 0 auto;display:grid!important;grid-template-columns:32px minmax(0,1fr) 38px!important;gap:8px!important;align-items:end!important;padding:10px 12px!important;border-top:1px solid var(--border)!important;background:var(--panel)!important}
.avatar-comment-form textarea{min-height:40px;max-height:110px;resize:none;border:0;border-radius:19px;background:var(--panel-2);color:var(--text);padding:10px 13px}
.avatar-comment-form button[type=submit]{position:static!important;right:auto!important;top:auto!important;width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:var(--accent)!important;color:#fff!important;font-size:17px!important}
.avatar-comment-context{grid-column:1/-1;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.avatar-comment-context[hidden]{display:none!important}.avatar-comment-context button{position:static!important;width:auto!important;height:auto!important;background:transparent!important;color:var(--muted)!important;font-size:18px!important}
.avatar-viewer>button[data-profile-avatar-close]{z-index:1702!important;right:22px!important;top:18px!important}

/* Wall image viewer: every discussion button stays in its own column; close remains alone in the corner. */
.wall-media-lightbox-150>.wall-lightbox-close{position:fixed!important;right:18px!important;top:14px!important;z-index:1702!important}
.wall-media-lightbox-150 .wall-lightbox-discussion button{position:static!important;right:auto!important;top:auto!important}
.wall-media-lightbox-150 .wall-comment-form{position:relative!important;z-index:1!important;display:grid!important;grid-template-columns:32px minmax(0,1fr) 38px!important;align-items:end!important}
.wall-media-lightbox-150 .wall-comment-form button[type=submit]{position:static!important;width:38px!important;height:38px!important;border-radius:50%!important;background:var(--accent)!important;color:#fff!important;font-size:16px!important}

/* Real precipitation radar legend. */
.weather-radar-legend{display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:9px 14px;border-top:1px solid var(--border);background:var(--panel)}
.weather-radar-legend span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.weather-radar-legend i{width:28px;height:7px;border-radius:999px}.rain-weak{background:#44c767}.rain-medium{background:#f0d43a}.rain-heavy{background:#ef5350}.rain-snow{background:#68b8ff}
.weather-radar-empty{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:500;padding:8px 12px;border-radius:10px;background:color-mix(in srgb,var(--panel) 90%,transparent);color:var(--muted);box-shadow:var(--shadow)}
#weather-radar-map{position:relative}

/* Version is always visible at the bottom-left of admin navigation. */
.admin-nav{display:flex!important;flex-direction:column!important;min-height:calc(100vh - var(--topbar-height,58px))!important}
.admin-nav-links{display:grid;gap:2px}
.admin-nav-version{margin-top:auto;padding:16px 12px 18px;border-top:1px solid var(--border);display:grid;gap:4px;color:var(--muted);font-size:11px}
.admin-nav-version b{color:var(--text);font-size:12px}.admin-nav-version small{line-height:1.35}

@media(max-width:1000px){.topbar-left-170 .topbar-global-search{width:min(280px,38vw)!important;max-width:280px!important}}
@media(max-width:850px){.avatar-viewer{padding:8px!important}.avatar-viewer-layout{height:96vh!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,56vh) minmax(280px,1fr)!important}.avatar-viewer-content{padding:8px!important}.avatar-discussion{min-width:0!important}.topbar-left-170 .topbar-global-search{display:none!important}}
/* KOVCHEG CMS 0.18.0 — social interaction polish. */
.message-context-menu,.wall-post-menu{position:fixed;z-index:980;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 18px 55px rgba(0,0,0,.38);min-width:220px}
.message-context-menu button,.wall-post-menu button{display:block;width:100%;border:0;background:transparent;color:var(--text);padding:10px 12px;text-align:left;border-radius:8px;cursor:pointer;font:inherit}
.message-context-menu button:hover,.wall-post-menu button:hover{background:var(--panel-2)}.message-context-menu .danger,.wall-post-menu .danger{color:var(--danger)}
.message-important-mark{color:#f2b84b;font-size:12px;margin-left:5px}.message[data-message-important="1"] .bubble{box-shadow:inset 3px 0 0 #f2b84b}
.selection-actions{display:flex;gap:8px;margin-left:auto}.wall-post-menu-wrap{position:relative;margin-left:auto}.wall-post-menu{position:absolute;right:0;top:34px;z-index:140;min-width:190px}
.profile-people-grid small{max-width:100%!important;width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15;min-height:2.3em;overflow-wrap:anywhere}
.profile-people-grid>a{align-content:start}.public-vk-profile .vk-profile-right .weather-widget{display:block}
.admin-shell{height:calc(100vh - var(--topbar-height));overflow:hidden}.admin-nav{height:100%;position:sticky;top:0;display:flex!important;flex-direction:column;overflow:hidden}.admin-nav-links{overflow:auto;min-height:0}.admin-nav-version{margin-top:auto;flex:0 0 auto;background:var(--panel);border-top:1px solid var(--border);padding:14px 12px;display:grid;gap:4px}.admin-content{height:100%;overflow:auto;position:relative;padding-bottom:72px}.admin-footer{position:sticky!important;bottom:0;z-index:30;background:color-mix(in srgb,var(--panel) 96%,transparent);backdrop-filter:blur(12px);margin:20px -24px -24px!important;border-top:1px solid var(--border);display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.brand-static{overflow:visible!important}.brand-static .brand-logo{display:block!important;min-width:42px;min-height:42px;max-height:52px!important;max-width:220px!important;object-fit:contain!important;opacity:1!important;visibility:visible!important}.topbar-left-170{min-width:0}.topbar-global-search{max-width:420px!important}
.avatar-comment-form button[type="submit"]{position:static!important;inset:auto!important;z-index:auto!important}.avatar-discussion{min-width:320px}.avatar-comments-list{min-height:0;overflow:auto}
@media(max-width:900px){.message-context-menu{min-width:200px}.selection-actions{gap:4px}.selection-actions .btn{padding-inline:8px}.admin-footer{margin-inline:-12px!important}.avatar-discussion{min-width:0}}
/* KOVCHEG CMS 0.18.1 — interface corrections. */
.admin-nav{position:relative!important}
.admin-nav-links{padding-bottom:112px!important}
.admin-nav-version{position:absolute!important;left:0;right:0;bottom:0;margin:0!important;z-index:35;background:var(--panel)!important}
.admin-content{padding-bottom:58px!important}
.admin-footer{position:fixed!important;left:max(220px,var(--sidebar-width,220px));right:0;bottom:0;height:46px;margin:0!important;padding:0 22px!important;display:flex!important;align-items:center;justify-content:center;gap:10px;z-index:220;background:var(--panel)!important;border-top:1px solid var(--border)!important;backdrop-filter:none!important;box-shadow:0 -7px 22px rgba(0,0,0,.08)}
.wall-post-menu{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--border)!important;opacity:1!important;backdrop-filter:none!important;box-shadow:0 18px 55px rgba(0,0,0,.42)!important;isolation:isolate}
.wall-post-menu button{background:transparent!important;color:var(--text)!important}
.wall-post-menu button:hover{background:var(--panel-2)!important}
.wall-post-menu button.danger{color:var(--danger)!important}
.message-shared-post{width:100%;border-top:0;border-right:0;border-bottom:0;text-align:left;font:inherit;cursor:pointer}
.shared-post-viewer-181{position:fixed;inset:0;z-index:1180;display:grid;place-items:center;padding:22px;background:rgba(5,12,20,.76);backdrop-filter:blur(7px)}
.shared-post-viewer-181[hidden]{display:none!important}
.shared-post-viewer-card-181{position:relative;width:min(760px,96vw);max-height:min(88vh,920px);overflow:auto;border:1px solid var(--border);border-radius:18px;background:var(--bg);box-shadow:0 28px 90px rgba(0,0,0,.55);padding:16px}
.shared-post-viewer-card-181>.wall-post-card{margin:0!important}
.shared-post-viewer-head-181{position:sticky;top:-16px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-16px -16px 12px;padding:12px 14px;background:color-mix(in srgb,var(--panel) 97%,transparent);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}
.shared-post-viewer-head-181 div{display:grid}.shared-post-viewer-head-181 small{color:var(--muted)}
.shared-post-viewer-head-181 button{width:36px;height:36px;border:0;border-radius:50%;background:var(--panel-2);color:var(--text);font-size:24px}
.shared-post-viewer-loading-181{padding:48px 20px;text-align:center;color:var(--muted)}
.message-selection-bar .selection-actions{flex-wrap:wrap}
@media(max-width:900px){.admin-footer{left:0;height:auto;min-height:44px;padding:8px 12px!important}.admin-content{padding-bottom:64px!important}.admin-nav-version{position:static!important}.admin-nav-links{padding-bottom:0!important}.shared-post-viewer-181{padding:8px}.shared-post-viewer-card-181{width:100%;max-height:94vh;border-radius:14px}}
/* KOVCHEG CMS 0.18.2 — channel controls, comments and interface fixes. */

/* The administrative footer spans the whole viewport, but the navigation stays above it. */
.admin-footer{
 left:0!important;
 right:0!important;
 z-index:18!important;
 padding-left:calc(var(--sidebar-width,220px) + 22px)!important;
}
.admin-nav{
 position:relative!important;
 z-index:32!important;
 background:var(--panel)!important;
}
.admin-nav-version{z-index:36!important}
.admin-content{position:relative;z-index:20}

/* A truly opaque menu over photos and video. */
.wall-post-menu{
 background-color:#172633!important;
 background-image:none!important;
 color:#f3f7fb!important;
 opacity:1!important;
 filter:none!important;
 mix-blend-mode:normal!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 overflow:hidden!important;
 isolation:isolate!important;
 box-shadow:0 18px 55px rgba(0,0,0,.58)!important;
}
.wall-post-menu::before{
 content:"";
 position:absolute;
 inset:0;
 z-index:-1;
 background:#172633;
 opacity:1;
}
body[data-theme="light"] .wall-post-menu,
body[data-theme="light"] .wall-post-menu::before{background:#fff!important;color:#17212b!important}
.wall-post-menu button{position:relative;z-index:1;background:transparent!important;color:inherit!important}
body[data-theme="dark"] .wall-post-menu button:hover{background:#223544!important}
body[data-theme="light"] .wall-post-menu button:hover{background:#edf3f8!important}
.wall-post-menu button.danger{color:var(--danger)!important}

/* Conversation header and channel settings. */
.conversation-head-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.conversation-settings-btn{
 width:38px;height:38px;border:0;border-radius:12px;background:var(--panel-2);color:var(--text);
 display:grid;place-items:center;cursor:pointer;font-size:18px
}
.conversation-settings-btn:hover{background:var(--hover)}
.channel-settings-modal{z-index:1180}
.channel-settings-card{width:min(680px,96vw);max-height:min(90vh,900px);overflow:auto}
.channel-settings-heading{display:flex;align-items:center;gap:12px;margin:0 42px 14px 0}
.channel-settings-heading>div{flex:0 0 auto}
.channel-settings-heading h2{margin:0}.channel-settings-heading small{color:var(--muted)}
.channel-settings-tabs{display:flex;gap:5px;margin-bottom:14px;padding:4px;border-radius:12px;background:var(--panel-2)}
.channel-settings-tabs button{flex:1;border:0;border-radius:9px;padding:10px 12px;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-weight:700}
.channel-settings-tabs button.active{background:var(--accent-soft);color:var(--accent)}
.channel-settings-panel{display:none}.channel-settings-panel.active{display:block}
.channel-avatar-form{display:grid;gap:16px}
.channel-avatar-preview{display:grid;place-items:center;padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--panel-2)}
.channel-avatar-preview .public-avatar,.channel-avatar-preview img{width:160px;height:160px;border-radius:28px;object-fit:cover}
.channel-settings-card .compact-upload{min-height:180px;cursor:pointer}

/* A channel publication opens as a full post with its own discussion. */
.thread-drawer.channel-post-viewer{width:min(720px,100vw);background:var(--bg);z-index:760}
.channel-post-viewer .thread-head{flex:0 0 auto;background:var(--panel);z-index:4}
.thread-scroll{flex:1;min-height:0;overflow:auto;padding:14px 18px 24px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.thread-root-post{padding-bottom:16px;border-bottom:1px solid var(--border)}
.thread-root-post .message{max-width:100%;margin:0!important;align-items:flex-start}
.thread-root-post .message .bubble{max-width:calc(100% - 58px);width:min(620px,calc(100% - 58px))}
.thread-comments-title{padding:18px 2px 8px;font-size:17px}
.channel-post-viewer .thread-messages{overflow:visible;padding:0;display:grid;gap:8px}
.channel-post-viewer .thread-message{margin:0!important}
.channel-post-viewer .thread-composer{background:var(--panel);flex:0 0 auto}
.channel-post-viewer .thread-composer textarea{min-height:42px;max-height:130px}

/* Image comments remain clickable and the input stays in the discussion column. */
.wall-media-lightbox .wall-lightbox-discussion{position:relative;min-width:320px}
.wall-media-lightbox .wall-comments{display:flex!important;flex-direction:column;min-height:0;height:100%}
.wall-media-lightbox .wall-comments-list{flex:1;min-height:0;overflow:auto}
.wall-media-lightbox .wall-comment-form{position:sticky;bottom:0;z-index:4;background:var(--panel);border-top:1px solid var(--border)}
.wall-media-lightbox .wall-comment-form button[type="submit"]{position:static!important;inset:auto!important;z-index:auto!important}

/* Instant post viewer must look like a normal post. */
.shared-post-viewer-card-181 [data-shared-post-template]{display:none!important}
.shared-post-viewer-card-181 .wall-post-card{max-width:100%}

@media(max-width:900px){
 .admin-footer{padding-left:12px!important}
 .conversation-head-actions{gap:4px}
 .conversation-settings-btn{width:34px;height:34px}
 .channel-settings-card{width:100%;max-height:94vh}
 .thread-drawer.channel-post-viewer{top:58px;width:100vw}
 .thread-scroll{padding:10px}
 .thread-root-post .message .bubble{max-width:calc(100% - 46px);width:calc(100% - 46px)}
 .wall-media-lightbox .wall-lightbox-discussion{min-width:0}
}
/* KOVCHEG CMS 0.18.3 — persistent session, visible logo and modern avatar discussions. */

/* The site logo is always an image. No decorative background, white frame or hidden overflow. */
.brand-static,
.auth-brand-row .logo-large{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.brand-static .brand-logo{
  display:block!important;
  width:auto!important;
  height:44px!important;
  min-width:44px!important;
  max-width:168px!important;
  max-height:44px!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  background:transparent!important;
  opacity:1!important;
  visibility:visible!important;
}
.auth-brand-row .logo-large{
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  border-radius:14px!important;
}
.auth-brand-row .logo-large img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
}

/* Avatar comments are rendered as a clean social discussion, not browser-default buttons. */
.avatar-comments-list{
  padding:8px 16px 18px!important;
}
.avatar-comment{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:10px!important;
  padding:10px 0!important;
  border:0!important;
  background:transparent!important;
}
.avatar-comment>.avatar-xs{
  width:34px!important;
  height:34px!important;
  align-self:start!important;
}
.avatar-comment-body{
  min-width:0!important;
}
.avatar-comment-body>header{
  display:flex!important;
  align-items:baseline!important;
  gap:7px!important;
  min-height:20px!important;
}
.avatar-comment-body>header a{
  color:var(--text)!important;
  font-weight:700!important;
  min-width:0!important;
}
.avatar-comment-body>header time{
  color:var(--muted)!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
.avatar-comment-body>p{
  margin:2px 0 4px!important;
  color:var(--text)!important;
  line-height:1.42!important;
  overflow-wrap:anywhere!important;
}
.avatar-comment-actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-height:22px!important;
}
.avatar-comment-actions button{
  appearance:none!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:2px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.3!important;
}
.avatar-comment-actions button:hover{
  color:var(--accent)!important;
  text-decoration:none!important;
}
.avatar-comment-actions .avatar-comment-delete:hover{
  color:var(--danger)!important;
}
.avatar-comment-replies{
  margin:7px 0 0!important;
  padding:0 0 0 15px!important;
  border-left:2px solid color-mix(in srgb,var(--accent) 24%,var(--border))!important;
}
.avatar-comment-replies:empty{
  display:none!important;
}
.avatar-comment-replies .avatar-comment{
  grid-template-columns:28px minmax(0,1fr)!important;
  gap:8px!important;
  padding:8px 0 2px!important;
}
.avatar-comment-replies .avatar-xs{
  width:28px!important;
  height:28px!important;
}
.avatar-comment-context{
  padding:7px 10px!important;
  border-left:3px solid var(--accent)!important;
  border-radius:8px!important;
  background:var(--panel-2)!important;
}
.avatar-comment-context button{
  margin-left:auto!important;
}

@media(max-width:850px){
  .brand-static .brand-logo{height:40px!important;max-height:40px!important;max-width:116px!important}
  .auth-brand-row .logo-large{width:56px!important;height:56px!important;min-width:56px!important}
}
/* KOVCHEG CMS 0.18.4 — channel posts, real message chains and menu fixes. */
.wall-post-card{overflow:visible!important}.wall-post-head{position:relative;z-index:12}.wall-media-grid,.wall-native-videos,.wall-video-embeds{overflow:hidden}.wall-post-menu{position:fixed!important;z-index:1600!important;min-width:210px!important;background:#172633!important;background-image:none!important;border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:0 22px 70px rgba(0,0,0,.62)!important;opacity:1!important;visibility:visible}.wall-post-menu[hidden]{display:none!important}body[data-theme=light] .wall-post-menu{background:#fff!important}.wall-post-menu button{background:transparent!important;color:var(--text)!important}.wall-post-menu button:hover{background:var(--panel-2)!important}
.conversation-select-btn{display:none!important}.forwarded-label{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.forwarded-label a{color:var(--accent);font-weight:750}.forwarded-label time{color:var(--muted);font-size:10px}.comments-link{text-decoration:none}
.channel-settings-tabs{flex-wrap:wrap}.channel-settings-tabs button{min-width:120px}.channel-invite-panel{display:grid;gap:12px}.channel-invite-search{position:relative}.channel-invite-search span{position:absolute;left:12px;top:10px;color:var(--muted)}.channel-invite-search input{width:100%;height:40px;padding:0 12px 0 34px;border:1px solid var(--border);border-radius:11px;background:var(--input);color:var(--text)}.channel-invite-list{display:grid;gap:7px;max-height:48vh;overflow:auto}.channel-invite-list article{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border-radius:12px;background:var(--panel-2)}.channel-invite-list article>span{display:grid;min-width:0}.channel-invite-list article small{color:var(--muted)}
.channel-post-page{height:calc(100vh - var(--topbar-height,54px));display:grid;grid-template-columns:220px minmax(0,820px);justify-content:center;gap:14px;overflow:hidden}.channel-post-page>.site-sidebar{height:100%;position:relative}.channel-post-center{min-width:0;height:100%;overflow:auto;padding:16px 10px 40px;scrollbar-width:none}.channel-post-center::-webkit-scrollbar{display:none}.channel-post-page-head{position:sticky;top:-16px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:12px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}.channel-post-page-head>div{display:flex;align-items:center;gap:10px}.channel-post-page-head span{display:grid}.channel-post-page-head small{color:var(--muted)}.channel-post-root,.channel-post-comments{border:1px solid var(--border);border-radius:16px;background:var(--panel);overflow:hidden}.channel-post-root{padding:14px;margin-bottom:12px}.channel-post-root .message{max-width:100%!important;margin:0!important}.channel-post-root .bubble{width:100%;max-width:none!important}.channel-post-comments>header{display:flex;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid var(--border)}.channel-post-comments h2{font-size:17px;margin:0}.channel-post-comments>header span{color:var(--muted)}.channel-post-comments-list{display:grid;gap:8px;padding:12px 16px}.channel-post-comments-list .message{max-width:100%!important;margin:0!important}.channel-post-comment-form{position:sticky;bottom:0;display:grid;grid-template-columns:36px minmax(0,1fr) 42px;align-items:end;gap:9px;padding:12px 14px;border-top:1px solid var(--border);background:var(--panel)}.channel-post-comment-form textarea{resize:none;max-height:130px;min-height:42px;padding:11px 13px;border:1px solid var(--border);border-radius:14px;background:var(--input);color:var(--text);font:inherit}
#composer.commenting-batch .composer-context{border-color:var(--accent)}
@media(max-width:900px){.channel-post-page{display:block;height:calc(100vh - 54px)}.channel-post-page>.site-sidebar{display:none}.channel-post-center{padding:10px}.channel-post-page-head{top:-10px}.channel-invite-list article{grid-template-columns:38px minmax(0,1fr) auto}}
/* KOVCHEG CMS 0.19.0 */
.wall-post-menu{position:fixed!important;z-index:9999!important;min-width:205px!important;padding:6px!important;background:var(--panel)!important;border:1px solid var(--border)!important;border-radius:13px!important;box-shadow:0 18px 58px rgba(0,0,0,.48)!important;opacity:1!important;isolation:isolate}.wall-post-menu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:9px;text-align:left;background:transparent!important;color:var(--text)!important}.wall-post-menu button:hover{background:var(--panel-2)!important}.wall-more{cursor:default}
.channel-comment-node{position:relative;margin:5px 0}.channel-comment-node>.message{margin:0!important;max-width:100%!important}.channel-comment-inline-actions{margin:-5px 0 4px 52px}.channel-comment-inline-actions button{border:0;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}.channel-comment-inline-actions button:hover{color:var(--accent)}.channel-comment-children{margin-left:34px;padding-left:13px;border-left:2px solid color-mix(in srgb,var(--accent) 28%,var(--border))}.comment-context-menu{position:fixed;z-index:10020;min-width:190px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--panel);box-shadow:0 18px 55px rgba(0,0,0,.5)}.comment-context-menu button{width:100%;padding:9px 11px;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--text)}.comment-context-menu button:hover{background:var(--panel-2)}.comment-context-menu .danger{color:var(--danger)}
.channel-comment-composer{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:36px 34px 34px 34px minmax(0,1fr) 44px;align-items:end;gap:7px;padding:11px 13px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--panel) 97%,transparent);backdrop-filter:blur(14px)}.channel-comment-input{position:relative}.channel-comment-input textarea{display:block;width:100%;min-height:42px;max-height:150px;padding:11px 13px;border:1px solid var(--border);border-radius:14px;resize:none;background:var(--input);color:var(--text);font:inherit}.channel-comment-reply-context{grid-column:1/-1;display:flex;align-items:center;gap:6px;padding:7px 10px;border-left:3px solid var(--accent);border-radius:8px;background:var(--panel-2);font-size:12px}.channel-comment-reply-context[hidden]{display:none}.channel-comment-reply-context button{margin-left:auto;border:0;background:transparent;color:var(--muted)}.channel-emoji-picker{position:absolute;left:48px;bottom:64px;z-index:80;display:grid;grid-template-columns:repeat(8,34px);gap:3px;padding:9px;border:1px solid var(--border);border-radius:13px;background:var(--panel);box-shadow:0 16px 50px rgba(0,0,0,.45)}.channel-emoji-picker[hidden]{display:none}.channel-emoji-picker button{height:34px;border:0;border-radius:8px;background:transparent;font-size:19px}.channel-emoji-picker button:hover{background:var(--panel-2)}.channel-voice-state{min-height:42px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:14px;background:var(--input)}.channel-voice-state[hidden]{display:none}.channel-voice-state i{width:9px;height:9px;border-radius:50%;background:#f04b55;animation:voicePulse 1s infinite}.channel-voice-state span{color:var(--muted);font-size:12px}.channel-voice-state button{margin-left:auto;border:0;background:transparent;color:var(--muted)}.channel-comment-files{grid-column:1/-1;display:flex;gap:5px;flex-wrap:wrap}.channel-comment-files span{padding:5px 8px;border-radius:8px;background:var(--panel-2);font-size:11px}
.global-audio-player{position:absolute;left:50%;top:6px;transform:translateX(-50%);z-index:20;width:min(560px,40vw);height:42px;display:grid;grid-template-columns:28px 36px 28px minmax(90px,1fr) minmax(90px,180px) 48px 28px;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--panel) 96%,transparent);backdrop-filter:blur(12px);box-shadow:0 8px 30px rgba(0,0,0,.22)}.global-audio-player[hidden]{display:none}.global-audio-player button{height:28px;border:0;border-radius:8px;background:transparent;color:var(--text);cursor:pointer}.global-audio-player button:hover{background:var(--panel-2)}.global-player-play{background:var(--accent)!important;color:#fff!important}.global-player-meta{display:grid;min-width:0}.global-player-meta b,.global-player-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-player-meta b{font-size:12px}.global-player-meta small{font-size:10px;color:var(--muted)}.global-audio-player input{width:100%;accent-color:var(--accent)}.global-audio-player time{font-size:10px;color:var(--muted);text-align:center}
@media(max-width:1000px){.global-audio-player{width:min(420px,42vw);grid-template-columns:26px 34px 26px minmax(70px,1fr) 100px 42px 24px}.global-player-meta small{display:none}}@media(max-width:760px){.global-audio-player{display:none!important}.channel-comment-composer{grid-template-columns:32px 32px 32px minmax(0,1fr) 42px}.channel-comment-composer>.avatar-xs{display:none}.channel-comment-children{margin-left:16px;padding-left:8px}}
/* KOVCHEG CMS 0.19.1
 * Исправление меню публикаций и древовидного обсуждения каналов.
 * Copyright KOVCHEG CMS. Автор: Ланцет Семён Борисович.
 */

/* Оригинальное меню внутри карточки больше не показываем: оно служит только шаблоном. */
.wall-post-menu[data-wall-menu]{display:none!important}
.wall-menu-portal-191{
 position:fixed!important;
 z-index:2147483000!important;
 min-width:210px;
 max-width:min(280px,calc(100vw - 16px));
 padding:7px;
 border:1px solid var(--border);
 border-radius:13px;
 background:#172633;
 color:var(--text);
 box-shadow:0 22px 72px rgba(0,0,0,.64);
 opacity:1!important;
 visibility:visible!important;
 overflow:visible!important;
 pointer-events:auto;
 isolation:isolate;
 contain:layout paint style;
}
body[data-theme="light"] .wall-menu-portal-191{background:#fff;color:#17212b;box-shadow:0 18px 55px rgba(32,54,72,.24)}
.wall-menu-portal-191 button{
 display:block;
 width:100%;
 min-height:39px;
 padding:9px 12px;
 border:0;
 border-radius:9px;
 background:transparent;
 color:inherit;
 text-align:left;
 white-space:nowrap;
 cursor:pointer;
}
.wall-menu-portal-191 button:hover{background:var(--panel-2)}
.wall-menu-portal-191 button.danger{color:var(--danger)}
.wall-more{cursor:default!important}

/* Страница публикации канала занимает окно, а обсуждение прокручивается внутри себя. */
.channel-post-page{
 height:calc(100dvh - var(--topbar-height,54px))!important;
 min-height:0!important;
 overflow:hidden!important;
}
.channel-post-center{
 height:100%!important;
 min-height:0!important;
 overflow:hidden!important;
 display:grid!important;
 grid-template-rows:auto minmax(150px,42vh) minmax(260px,1fr)!important;
 gap:12px!important;
 padding:14px 10px!important;
}
.channel-post-page-head{position:relative!important;top:auto!important;margin:0!important}
.channel-post-root{
 min-height:0!important;
 margin:0!important;
 overflow:auto!important;
 overscroll-behavior:contain;
 scrollbar-width:thin;
 scrollbar-color:color-mix(in srgb,var(--accent) 46%,transparent) transparent;
}
.channel-post-root::-webkit-scrollbar{width:5px;height:5px}
.channel-post-root::-webkit-scrollbar-track{background:transparent}
.channel-post-root::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 46%,transparent);border-radius:999px}
.channel-post-comments{
 min-height:0!important;
 display:flex!important;
 flex-direction:column!important;
 overflow:hidden!important;
}
.channel-post-comments>header{flex:0 0 auto}
.channel-post-comments-list{
 flex:1 1 auto!important;
 min-height:0!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 display:block!important;
 padding:10px 16px 14px!important;
 overscroll-behavior:contain;
 scrollbar-width:thin;
 scrollbar-color:color-mix(in srgb,var(--accent) 52%,transparent) transparent;
}
.channel-post-comments-list::-webkit-scrollbar{width:5px}
.channel-post-comments-list::-webkit-scrollbar-track{background:transparent}
.channel-post-comments-list::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 52%,transparent);border-radius:999px}
.channel-comment-composer{
 position:relative!important;
 bottom:auto!important;
 flex:0 0 auto!important;
 z-index:25!important;
}

/* Комментарий — это ветка обсуждения, а не чат-пузырь. */
.channel-comment-node{position:relative;margin:0;padding:4px 0}
.channel-comment-node>.message,
.channel-comment-node>.message.mine{
 width:100%!important;
 max-width:none!important;
 margin:0!important;
 padding:2px 0!important;
 display:grid!important;
 grid-template-columns:38px minmax(0,1fr)!important;
 grid-template-areas:"avatar content"!important;
 align-items:start!important;
 gap:10px!important;
 flex-direction:row!important;
 background:transparent!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 direction:ltr!important;
}
.channel-comment-node>.message>.message-select-control{display:none!important}
.channel-comment-node>.message>.message-avatar-link{
 grid-area:avatar!important;
 width:36px!important;
 height:36px!important;
 margin:0!important;
 align-self:start!important;
 order:0!important;
}
.channel-comment-node>.message>.message-avatar-link .avatar-sm{width:36px!important;height:36px!important;border-radius:50%!important}
.channel-comment-node>.message>.bubble,
.channel-comment-node>.message.mine>.bubble{
 grid-area:content!important;
 width:auto!important;
 max-width:none!important;
 min-width:0!important;
 margin:0!important;
 padding:0 4px 2px 0!important;
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
 color:var(--text)!important;
}
.channel-comment-node .message-head{justify-content:flex-start!important;margin:0 0 2px!important;gap:7px!important;min-height:20px}
.channel-comment-node .message-head>a{display:inline-flex!important;align-items:baseline!important;gap:5px!important;min-width:0}
.channel-comment-node .message-head strong{font-size:13px!important;color:var(--accent)!important}
.channel-comment-node .message-head time{margin-left:0!important;font-size:11px!important;color:var(--muted)!important}
.channel-comment-node .message-body{font-size:14px!important;line-height:1.42!important;color:var(--text)!important;white-space:pre-wrap!important}
.channel-comment-node .forwarded-label,.channel-comment-node .reply-quote{margin-top:4px}
.channel-comment-node .image-attachment img{max-width:min(360px,100%)!important;max-height:300px!important}
.channel-comment-node .media-attachment{min-width:0!important;max-width:440px}
.channel-comment-node .file-card{min-width:0!important;max-width:440px}
.channel-comment-node .message-actions{
 position:static!important;
 display:none!important;
 width:max-content;
 margin-top:4px;
 padding:0!important;
 border:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
.channel-comment-node>.message:hover .message-actions{display:flex!important}
.channel-comment-node .message-actions button{padding:3px 6px!important;color:var(--muted)!important}
.channel-comment-node .reactions{margin-top:4px!important}
.channel-comment-inline-actions{margin:0 0 1px 48px!important;min-height:18px}
.channel-comment-inline-actions button{padding:1px 4px!important}
.channel-comment-children{
 margin:1px 0 0 18px!important;
 padding-left:20px!important;
 border-left:1px solid color-mix(in srgb,var(--accent) 34%,var(--border))!important;
}
.channel-comment-children:empty{display:none}
.channel-comment-node .edited{display:inline-block;margin-left:4px}

@media(max-width:900px){
 .channel-post-center{grid-template-rows:auto minmax(130px,36vh) minmax(240px,1fr)!important;padding:8px!important}
 .channel-comment-children{margin-left:8px!important;padding-left:12px!important}
}
@media(max-width:620px){
 .channel-post-center{grid-template-rows:auto minmax(110px,32vh) minmax(220px,1fr)!important}
 .channel-post-comments-list{padding-left:10px!important;padding-right:8px!important}
 .channel-comment-node>.message,.channel-comment-node>.message.mine{grid-template-columns:32px minmax(0,1fr)!important;gap:7px!important}
 .channel-comment-node>.message>.message-avatar-link,.channel-comment-node>.message>.message-avatar-link .avatar-sm{width:31px!important;height:31px!important}
 .channel-comment-inline-actions{margin-left:38px!important}
}
/* KOVCHEG CMS 0.19.3
 * Единая прокрутка публикации и комментариев канала; публикации канала слева.
 * Copyright KOVCHEG CMS. Автор: Ланцет Семён Борисович.
 */

/* Страница публикации: боковое меню остаётся на месте, а весь центральный материал
   (заголовок, публикация, заголовок комментариев и дерево) прокручивается одной лентой. */
html:has([data-channel-post-page]),
body.auth-shell:has([data-channel-post-page]){
 height:100%!important;
 overflow:hidden!important;
 overscroll-behavior:none!important;
}
.channel-post-page[data-channel-post-page]{
 position:fixed!important;
 inset:var(--topbar-height,54px) 0 0 0!important;
 width:100%!important;
 height:auto!important;
 min-height:0!important;
 overflow:hidden!important;
 display:grid!important;
 grid-template-columns:220px minmax(0,820px)!important;
 justify-content:center!important;
 gap:14px!important;
}
.channel-post-page[data-channel-post-page]>.site-sidebar{
 height:100%!important;
 min-height:0!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
}
.channel-post-page[data-channel-post-page] .channel-post-center{
 display:block!important;
 height:100%!important;
 min-height:0!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 padding:14px 10px 18px!important;
 overscroll-behavior:contain!important;
 scrollbar-width:thin!important;
 scrollbar-color:color-mix(in srgb,var(--accent) 48%,transparent) transparent!important;
}
.channel-post-page[data-channel-post-page] .channel-post-center::-webkit-scrollbar{width:5px!important}
.channel-post-page[data-channel-post-page] .channel-post-center::-webkit-scrollbar-track{background:transparent!important}
.channel-post-page[data-channel-post-page] .channel-post-center::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 48%,transparent)!important;border-radius:999px!important}
.channel-post-page[data-channel-post-page] .channel-post-page-head{
 position:relative!important;
 inset:auto!important;
 margin:0 0 12px!important;
}
.channel-post-page[data-channel-post-page] .channel-post-root{
 min-height:0!important;
 height:auto!important;
 max-height:none!important;
 overflow:visible!important;
 margin:0 0 12px!important;
}
.channel-post-page[data-channel-post-page] .channel-post-comments{
 min-height:0!important;
 height:auto!important;
 max-height:none!important;
 display:block!important;
 overflow:visible!important;
}
.channel-post-page[data-channel-post-page] .channel-post-comments>header{
 position:relative!important;
 min-height:48px!important;
}
.channel-post-page[data-channel-post-page] .channel-post-comments-list{
 display:block!important;
 min-height:120px!important;
 height:auto!important;
 max-height:none!important;
 overflow:visible!important;
 padding:10px 16px 14px!important;
}
.channel-post-page[data-channel-post-page] .channel-comment-composer,
.channel-post-page[data-channel-post-page] .read-only-composer{
 position:sticky!important;
 left:0!important;
 right:0!important;
 bottom:-1px!important;
 z-index:45!important;
 margin:0!important;
 background:var(--panel)!important;
 border-top:1px solid var(--border)!important;
 box-shadow:0 -10px 24px color-mix(in srgb,var(--bg) 68%,transparent)!important;
}

/* Публикация на отдельной странице и все публикации в ленте канала всегда слева. */
.channel-post-root .message,
.channel-post-root .message.mine,
.channel-conversation .messages>.message,
.channel-conversation .messages>.message.mine{
 margin-left:0!important;
 margin-right:auto!important;
 flex-direction:row!important;
 direction:ltr!important;
 align-self:flex-start!important;
}
.channel-post-root .message>.message-avatar-link,
.channel-conversation .messages>.message>.message-avatar-link{
 order:0!important;
}
.channel-post-root .message>.bubble,
.channel-post-root .message.mine>.bubble,
.channel-conversation .messages>.message>.bubble,
.channel-conversation .messages>.message.mine>.bubble{
 order:1!important;
 border-radius:4px 14px 14px 14px!important;
 background:var(--panel)!important;
 color:var(--text)!important;
}
.channel-conversation .messages{
 align-items:stretch!important;
}

@media(max-width:900px){
 .channel-post-page[data-channel-post-page]{display:block!important;inset:var(--topbar-height,54px) 0 0!important}
 .channel-post-page[data-channel-post-page]>.site-sidebar{display:none!important}
 .channel-post-page[data-channel-post-page] .channel-post-center{padding:8px!important}
}

/* Пост и обсуждение визуально являются одной карточкой. */
.channel-post-page[data-channel-post-page] .channel-post-thread{
 display:block!important;
 border:1px solid var(--border)!important;
 border-radius:16px!important;
 background:var(--panel)!important;
 overflow:visible!important;
}
.channel-post-page[data-channel-post-page] .channel-post-thread>.channel-post-root,
.channel-post-page[data-channel-post-page] .channel-post-thread>.channel-post-comments{
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
}
.channel-post-page[data-channel-post-page] .channel-post-thread>.channel-post-root{
 margin:0!important;
 border-bottom:1px solid var(--border)!important;
}
.channel-post-page[data-channel-post-page] .channel-post-thread>.channel-post-comments>header{
 border-top:0!important;
}
/* KOVCHEG CMS 3.0. */
:root{
 --ui-radius:14px;--ui-radius-sm:10px;--ui-gap:12px;
 --ui-shadow:0 12px 34px rgba(0,0,0,.18);
 --ui-accent:#4f93cf;--ui-accent-soft:rgba(79,147,207,.16);
 --ui-danger:#e05d6f;--ui-success:#4db88a;
}
body[data-theme="dark"]{
 --bg:#101b27;--panel:#172532;--panel-2:#1d2e3e;--panel-3:#24394b;--line:#2f4659;
 --text:#eef5fb;--muted:#91a8bb;--accent:#67a9dc;--accent-strong:#82bce6;--bubble-in:#1c2f3f;--bubble-out:#315c7e;
 --topbar:#15232f;--field:#1d2d3b;
}
body[data-theme="light"]{
 --bg:#eef3f8;--panel:#ffffff;--panel-2:#f4f7fa;--panel-3:#e8eff6;--line:#d2dde7;
 --text:#17212b;--muted:#687b8c;--accent:#2f80c5;--accent-strong:#246fae;--bubble-in:#ffffff;--bubble-out:#dcecf8;
 --topbar:#ffffff;--field:#edf3f7;
}
body[data-theme="black"]{
 color-scheme:dark;--bg:#000;--panel:#0b0b0c;--panel-2:#16181c;--panel-3:#202327;--line:#2f3336;
 --text:#e7e9ea;--muted:#71767b;--accent:#1d9bf0;--accent-strong:#54b3f3;--bubble-in:#16181c;--bubble-out:#1f3d52;
 --topbar:#000;--field:#202327;--ui-shadow:0 10px 34px rgba(0,0,0,.7);
}
body{background:var(--bg);color:var(--text)}
.topbar,.site-sidebar,.messages-sidebar,.admin-nav{background:var(--topbar)}
.card,.panel,.profile-card,.feed-post,.wall-post,.channel-post-thread,.settings-form,.admin-content article,.weather-card{background:var(--panel);border-color:var(--line)}
input,textarea,select,.composer,.channel-comment-input{background:var(--field);color:var(--text);border-color:var(--line)}
a,.link,.comment-branch-toggle,.comment-react-trigger{color:var(--accent)}
.btn-primary,.send-btn{background:var(--accent);color:#fff}

/* True black theme inspired by high-contrast microblog interfaces, without third-party branding. */
body[data-theme="black"] .topbar,body[data-theme="black"] .site-sidebar,body[data-theme="black"] .messages-sidebar{border-color:#2f3336}
body[data-theme="black"] .feed-post,body[data-theme="black"] .profile-card,body[data-theme="black"] .wall-post{box-shadow:none}
body[data-theme="black"] .message.mine .message-bubble{background:#17364b;border-color:#255a78}
body[data-theme="black"] .message:not(.mine) .message-bubble{background:#16181c;border-color:#2f3336}

/* Reply tree. Multiple answers collapse everywhere by default. */
.comment-branch{margin-top:5px;min-width:0}
.comment-branch-toggle{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:5px 8px;font-size:12px;font-weight:700;cursor:pointer;border-radius:8px}
.comment-branch-toggle:hover{background:var(--ui-accent-soft)}
.comment-branch-children[hidden]{display:none!important}
.wall-comment-replies,.avatar-comment-replies,.channel-comment-children{position:relative;margin-left:18px;padding-left:14px;border-left:1px solid color-mix(in srgb,var(--line) 82%,transparent)}
.wall-comment,.avatar-comment,.channel-comment-node{min-width:0}
.wall-comment-body,.avatar-comment-body{min-width:0}

/* Reactions on comments and nested replies. */
.comment-reaction-wrap{position:relative;display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
.comment-react-trigger{border:0;background:transparent;padding:3px 6px;border-radius:999px;cursor:pointer;font-size:14px}
.comment-react-trigger:hover{background:var(--ui-accent-soft)}
.comment-reaction-picker{position:absolute;left:0;bottom:calc(100% + 7px);z-index:1600;display:flex;gap:3px;padding:6px;background:var(--panel-3);border:1px solid var(--line);border-radius:999px;box-shadow:var(--ui-shadow);white-space:nowrap}
.comment-reaction-picker button,.comment-reaction-summary button{border:0;background:transparent;color:var(--text);cursor:pointer;border-radius:999px}
.comment-reaction-picker button{padding:5px;font-size:16px}.comment-reaction-picker button:hover,.comment-reaction-picker button.active{background:var(--ui-accent-soft)}
.comment-reaction-summary{display:flex;flex-wrap:wrap;gap:4px}.comment-reaction-summary button{padding:3px 7px;background:var(--panel-3);border:1px solid var(--line);font-size:12px}.comment-reaction-summary button.mine{border-color:var(--accent);color:var(--accent-strong)}

/* Channel post: fixed header and composer; only post + tree scroll. */
.channel-post-page-200{position:fixed;inset:var(--topbar-height,52px) 0 0;display:grid;grid-template-columns:var(--site-sidebar-width,220px) minmax(0,1fr);min-height:0;overflow:hidden;background:var(--bg)}
.channel-post-page-200>.site-sidebar{height:100%;min-height:0}
.channel-post-center{height:100%;min-height:0;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden!important;background:var(--bg)}
.channel-post-fixed-head{position:relative!important;inset:auto!important;z-index:30;display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:10px 16px;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 3px 12px rgba(0,0,0,.08)}
.channel-post-scroll{min-height:0!important;height:auto!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 45%,transparent) transparent;padding:14px 18px 20px}
.channel-post-scroll::-webkit-scrollbar{width:5px}.channel-post-scroll::-webkit-scrollbar-track{background:transparent}.channel-post-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 45%,transparent);border-radius:999px}
.channel-post-thread{width:min(920px,100%);margin:0 auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--ui-radius);overflow:visible}
.channel-post-root{padding:14px;border-bottom:1px solid var(--line)}
.channel-post-comments{padding:0}.channel-post-comments>header{display:flex;align-items:center;gap:8px;padding:15px 16px;border-bottom:1px solid var(--line);position:sticky;top:-14px;z-index:2;background:var(--panel)}
.channel-post-comments-list{padding:10px 14px 18px;overflow:visible!important;max-height:none!important}
.channel-comment-composer-fixed,.read-only-composer.channel-comment-composer-fixed{position:relative!important;inset:auto!important;z-index:35;margin:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(0,0,0,.13)}
.channel-comment-composer{display:flex;align-items:flex-end;gap:8px;min-height:62px}
.channel-comment-input{flex:1;min-width:0;border-radius:22px;border:1px solid var(--line);padding:9px 13px}
.channel-comment-input textarea{width:100%;max-height:120px;border:0;background:transparent;padding:0;resize:none}
.channel-comment-node>.message{margin:0!important;max-width:none!important;background:transparent!important;border:0!important;box-shadow:none!important}
.channel-comment-node .message-bubble{background:transparent!important;border:0!important;padding:2px 0!important;box-shadow:none!important;max-width:none!important}
.channel-comment-node{padding:9px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent)}
.channel-comment-node:last-child{border-bottom:0}
.channel-comment-inline-actions{margin:2px 0 0 42px}.channel-comment-inline-actions button{border:0;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}.channel-comment-inline-actions button:hover{color:var(--accent)}

/* Modern, low-noise scrollbars in every theme. */
*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--accent) 38%,transparent) transparent}
*::-webkit-scrollbar{width:5px;height:5px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--accent) 38%,transparent);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--accent) 60%,transparent)}

/* Admin audit and cleanup controls. */
.security-audit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.security-audit-actions small{color:var(--muted)}

@media(max-width:820px){
 .channel-post-page-200{grid-template-columns:1fr}.channel-post-page-200>.site-sidebar{display:none}.channel-post-scroll{padding:8px}.channel-post-thread{border-radius:10px}.channel-post-fixed-head{min-height:58px}.channel-comment-composer-fixed{padding-inline:8px}
 .comment-reaction-picker{position:fixed;left:50%;bottom:76px;transform:translateX(-50%)}
}
/* KOVCHEG CMS 3.0. */

/* Scrolling remains available by wheel, touch, keyboard and touchpad, but browser rails are hidden everywhere. */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
*::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;background:transparent!important}

/* The channel reading screen uses a stable fixed grid. No measured inline height means no visual jumping. */
.channel-post-page-200{inset:58px 0 0!important;contain:layout paint;overflow:hidden!important}
body:has(.impersonation-bar) .channel-post-page-200{inset:100px 0 0!important}
.channel-post-center{min-height:0!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr) auto!important}
.channel-post-fixed-head{flex:0 0 auto!important;transform:none!important;will-change:auto!important}
.channel-post-scroll{overflow-y:auto!important;overflow-x:hidden!important;scroll-behavior:auto!important;overscroll-behavior:contain!important;overflow-anchor:none!important;padding:14px 18px 22px!important}
.channel-post-thread{overflow:clip!important;box-shadow:0 10px 30px color-mix(in srgb,#000 14%,transparent)}
.channel-post-comments>header{top:0!important}
.channel-comment-composer-fixed{flex:0 0 auto!important;transform:none!important;will-change:auto!important}

/* Channel comments are a discussion tree, not messenger bubbles. */
.channel-comment-node{padding:10px 0!important;border-bottom:1px solid color-mix(in srgb,var(--line) 42%,transparent)!important;min-width:0}
.channel-comment-node:last-child{border-bottom:0!important}
.channel-comment-node>.message,.channel-comment-node>.message.mine{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;width:100%!important;max-width:none!important;margin:0!important;flex-direction:initial!important}
.channel-comment-node>.message>.message-select-control{display:none!important}
.channel-comment-node>.message>.message-avatar-link{grid-column:1;grid-row:1;align-self:start}
.channel-comment-node>.message>.bubble{grid-column:2;grid-row:1;width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--text)!important}
.channel-comment-node .message-head{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;margin:0 0 4px!important}
.channel-comment-node .message-head>a{display:inline-flex!important;align-items:center!important;gap:5px!important;min-width:0}
.channel-comment-node .message-head strong{font-size:13px!important;color:var(--text)!important}
.channel-comment-node .message-head small,.channel-comment-node .message-head time{font-size:11px!important;color:var(--muted)!important}
.channel-comment-node .message-head time{margin-left:2px!important}
.channel-comment-node .message-body{font-size:14px;line-height:1.45;color:var(--text)}
.channel-comment-node .message-actions,.channel-comment-node .reaction-menu,.channel-comment-node .reactions{display:none!important}
.channel-comment-inline-actions{display:flex!important;align-items:center!important;gap:7px!important;min-height:26px;margin:4px 0 0 48px!important}
.channel-comment-inline-actions>button{padding:3px 6px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--muted)!important;font-size:12px!important;font-weight:600!important}
.channel-comment-inline-actions>button:hover{background:var(--ui-accent-soft)!important;color:var(--accent)!important}
.channel-comment-children{margin-left:21px!important;padding-left:18px!important;border-left:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important}
.channel-comment-branch{margin-left:48px!important}

/* Modern comment reactions stay in the comment row; their picker is portalled to the viewport. */
.comment-reaction-wrap{position:relative;display:inline-flex;align-items:center;gap:5px;min-width:0}
.comment-react-trigger{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:25px;padding:0 8px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--muted)!important;font-size:14px!important;line-height:1!important;transition:background .12s ease,color .12s ease,transform .12s ease}
.comment-react-trigger:hover,.comment-react-trigger:focus-visible{background:var(--ui-accent-soft)!important;color:var(--accent)!important;transform:translateY(-1px)}
.comment-reaction-picker{display:none!important}
.comment-reaction-summary{display:inline-flex!important;align-items:center;flex-wrap:wrap;gap:4px;min-width:0}
.comment-reaction-summary[hidden]{display:none!important}
.comment-reaction-summary button{display:inline-flex;align-items:center;gap:4px;height:25px;padding:0 8px!important;border:1px solid var(--line)!important;border-radius:999px!important;background:var(--panel-2)!important;color:var(--text)!important;font-size:12px!important;line-height:1!important;transition:background .12s ease,border-color .12s ease,transform .12s ease}
.comment-reaction-summary button:hover{background:var(--ui-accent-soft)!important;border-color:color-mix(in srgb,var(--accent) 55%,var(--line))!important;transform:translateY(-1px)}
.comment-reaction-summary button.mine{background:var(--ui-accent-soft)!important;border-color:var(--accent)!important;color:var(--accent-strong)!important}
.comment-reaction-popover{position:fixed;z-index:5000;display:flex;align-items:center;gap:3px;padding:7px;background:color-mix(in srgb,var(--panel-3) 96%,transparent);border:1px solid var(--line);border-radius:999px;box-shadow:0 16px 45px rgba(0,0,0,.28);backdrop-filter:blur(14px);transform-origin:center;animation:commentReactionIn .12s ease both}
.comment-reaction-popover[hidden]{display:none!important}
.comment-reaction-popover button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);font-size:19px;transition:background .12s ease,transform .12s ease}
.comment-reaction-popover button:hover,.comment-reaction-popover button.active{background:var(--ui-accent-soft);transform:translateY(-2px) scale(1.06)}
@keyframes commentReactionIn{from{opacity:0;transform:translateY(5px) scale(.96)}to{opacity:1;transform:none}}

/* Prevent late content from shifting the discussion while reactions are changed. */
.channel-post-comments-list,.channel-comment-node,.comment-reaction-summary{overflow-anchor:none}

@media(max-width:820px){
 .channel-post-page-200{inset:58px 0 0!important}
 body:has(.impersonation-bar) .channel-post-page-200{inset:100px 0 0!important}
 .channel-post-scroll{padding:8px 8px 16px!important}
 .channel-comment-node>.message,.channel-comment-node>.message.mine{grid-template-columns:34px minmax(0,1fr)!important;gap:8px!important}
 .channel-comment-inline-actions{margin-left:42px!important}
 .channel-comment-branch{margin-left:42px!important}
 .comment-reaction-popover{max-width:calc(100vw - 16px);overflow-x:auto}
}
/* KOVCHEG CMS 3.0. */

/* The page itself stays fixed; the central post/comment stream is the only vertical scroller. */
.channel-post-page-200{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.channel-post-center{
  min-height:0!important;
  overflow:hidden!important;
}
.channel-post-scroll{
  position:relative!important;
  min-height:0!important;
  max-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-x:none!important;
  overscroll-behavior-y:contain!important;
  scroll-behavior:auto!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}

/* Keep scrolling enabled while rendering no visible scrollbar. `display:block` overrides the
   previous global `display:none` rule, because some Chromium builds stop routing wheel input
   to an element whose pseudo-scrollbar is forced to display:none. The rail still has zero size. */
.channel-post-scroll::-webkit-scrollbar,
.channel-post-comments-list::-webkit-scrollbar{
  display:block!important;
  width:0!important;
  height:0!important;
  background:transparent!important;
}
.channel-post-scroll::-webkit-scrollbar-track,
.channel-post-scroll::-webkit-scrollbar-thumb,
.channel-post-comments-list::-webkit-scrollbar-track,
.channel-post-comments-list::-webkit-scrollbar-thumb{
  background:transparent!important;
  border:0!important;
}

/* Comments remain part of the common stream and never create a second visible rail. */
.channel-post-thread,
.channel-post-comments,
.channel-post-comments-list{
  overflow:visible!important;
  max-height:none!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.channel-post-comments-list{touch-action:pan-y!important}

/* Do not let overlays or empty layout layers consume mouse-wheel input above the comments. */
.channel-post-thread::before,
.channel-post-thread::after{pointer-events:none!important}
/* KOVCHEG CMS 3.0. */
:root{--reaction-surface:color-mix(in srgb,var(--panel) 96%,var(--accent) 4%);--reaction-border:color-mix(in srgb,var(--border) 76%,var(--accent) 24%)}
.create-channel,.channel-only,[data-modal="new-channel"],#new-channel{display:none!important}.reaction-menu-modern{position:fixed!important;z-index:10060!important;display:block;min-width:300px;max-width:min(390px,calc(100vw - 20px));padding:8px;border:1px solid var(--reaction-border);border-radius:16px;background:var(--reaction-surface);box-shadow:0 18px 54px rgba(0,0,0,.34);backdrop-filter:blur(18px)}.reaction-menu-modern[hidden]{display:none!important}.reaction-primary,.reaction-more-grid{display:grid;grid-template-columns:repeat(9,minmax(30px,1fr));gap:3px}.reaction-more-grid{grid-template-columns:repeat(8,minmax(30px,1fr));padding-top:6px;border-top:1px solid var(--border);margin-top:6px}.reaction-menu-modern button{width:34px;height:34px;padding:0;border:0;border-radius:10px;background:transparent;font-size:19px;line-height:1;cursor:pointer}.reaction-menu-modern button:hover{background:var(--hover);transform:scale(1.13)}
.emoji-picker{width:min(420px,calc(100vw - 24px))!important;max-height:380px!important;padding:0!important;overflow:hidden!important;border-radius:18px!important}.emoji-picker-modern{display:flex;flex-direction:column;height:100%}.emoji-picker-toolbar{display:flex;gap:3px;padding:8px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}.emoji-picker-toolbar::-webkit-scrollbar{display:none}.emoji-picker-toolbar button{min-width:34px;height:32px;border:0;border-radius:9px;background:transparent;font-size:17px}.emoji-picker-toolbar button.active,.emoji-picker-toolbar button:hover{background:var(--hover)}.emoji-search{margin:8px;width:calc(100% - 16px);height:36px;border-radius:11px!important}.emoji-grid-modern{display:grid;grid-template-columns:repeat(9,1fr);gap:1px;padding:4px 8px 10px;overflow-y:auto;scrollbar-width:none}.emoji-grid-modern::-webkit-scrollbar{display:none}.emoji-grid-modern button{height:36px;border:0;border-radius:8px;background:transparent;font-size:22px;line-height:1}.emoji-grid-modern button:hover{background:var(--hover);transform:scale(1.08)}
.sticker-picker{width:min(470px,calc(100vw - 24px))!important;grid-template-columns:repeat(4,1fr)!important;gap:8px!important;max-height:430px!important}.sticker-picker button{min-height:102px!important;border-radius:14px!important}.sticker-picker img{width:92px!important;height:92px!important;object-fit:contain!important}.message-type-sticker .bubble{background:transparent!important;border-color:transparent!important;box-shadow:none!important;padding:4px!important}.message-type-sticker .custom-sticker{width:min(240px,34vw)!important;height:min(240px,34vw)!important;object-fit:contain!important}.wall-comments-list.is-collapsed>.wall-comment:nth-child(n+4){display:none}.wall-comments-expand{display:block;width:100%;padding:9px 12px;border:0;border-top:1px solid var(--border);background:transparent;color:var(--accent);text-align:left;font-weight:700;cursor:pointer}.wall-comments-list:not(.is-collapsed)+.wall-comments-expand{display:none}.role-management-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.role-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.role-card code{padding:4px 8px;border-radius:8px;background:var(--soft)}.captcha-honeypot{position:absolute!important;left:-99999px!important;opacity:0!important;pointer-events:none!important}.admin-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}.admin-nav-version{display:none!important}
/* KOVCHEG CMS 3.0. */
:root{
 --admin-footer-height:52px;
 --admin-nav-width:218px;
 --mobile-site-nav-height:68px;
}

/* Admin layout */
.admin-shell{
 grid-template-columns:var(--admin-nav-width) minmax(0,1fr)!important;
 min-width:0;
 position:relative;
}
.admin-nav{
 width:var(--admin-nav-width);
 min-width:var(--admin-nav-width);
 padding:12px 9px calc(var(--admin-footer-height) + 12px)!important;
 background:color-mix(in srgb,#17212b 96%,var(--accent) 4%)!important;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
}
.admin-nav>h2,.admin-nav>.admin-nav-links{display:none!important}
.admin-nav-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 7px 12px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:8px}
.admin-nav-head>div{display:flex;align-items:center;gap:9px;min-width:0}
.admin-nav-head>div>span:last-child{display:grid;min-width:0}
.admin-nav-head b{font-size:13px;color:#fff;white-space:nowrap}
.admin-nav-head small{font-size:10px;color:#93a7b7;white-space:nowrap}
.admin-nav-logo{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent),#7658ed);color:#fff;font-weight:900;box-shadow:0 8px 22px rgba(0,0,0,.22)}
.admin-nav-head button{display:none;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1}
.admin-nav-groups{display:grid;gap:4px}
.admin-nav-group{border-radius:11px;overflow:hidden}
.admin-nav-group summary{list-style:none;display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:7px;min-height:38px;padding:7px 9px;color:#c7d4df;border-radius:10px;cursor:pointer;font-size:12px;font-weight:780;user-select:none}
.admin-nav-group summary::-webkit-details-marker{display:none}
.admin-nav-group summary:hover,.admin-nav-group.active>summary{background:rgba(255,255,255,.07);color:#fff}
.admin-nav-group summary i{font-style:normal;text-align:center;transition:transform .18s ease;color:#8296a6}
.admin-nav-group[open] summary i{transform:rotate(180deg)}
.admin-nav-group-icon{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.06);font-size:14px}
.admin-nav-group-links{display:grid;gap:2px;padding:2px 4px 6px 35px}
.admin-nav-group-links a{display:block!important;margin:0!important;padding:7px 9px!important;border-radius:8px!important;color:#9eb0bf!important;font-size:11.5px;line-height:1.25}
.admin-nav-group-links a:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
.admin-nav-group-links a.active{background:var(--accent)!important;color:#fff!important;box-shadow:0 7px 18px color-mix(in srgb,var(--accent) 35%,transparent)}
.admin-content{min-width:0;padding-bottom:calc(var(--admin-footer-height) + 28px)!important}
.admin-footer{
 position:fixed!important;
 inset:auto 0 0 0!important;
 width:100%!important;
 min-height:var(--admin-footer-height);
 margin:0!important;
 padding:8px 18px!important;
 display:flex;
 align-items:center;
 justify-content:center;
 flex-wrap:wrap;
 gap:3px 10px;
 border-top:1px solid color-mix(in srgb,var(--border) 80%,var(--accent) 20%)!important;
 background:color-mix(in srgb,var(--panel) 94%,transparent)!important;
 color:var(--muted);
 text-align:center;
 box-shadow:0 -10px 28px rgba(0,0,0,.12);
 backdrop-filter:blur(16px);
 -webkit-backdrop-filter:blur(16px);
 z-index:900!important;
}
.admin-footer b{color:var(--text);white-space:nowrap}
.admin-footer span{min-width:0;overflow-wrap:anywhere}
.admin-mobile-bar,.admin-nav-overlay{display:none}

/* More compact admin content */
.admin-content>.page-head,.admin-content>.docs-layout,.admin-content>.stats,.admin-content>.table-wrap,.admin-content>.settings-form,.admin-content>.cards,.admin-content>.two-columns,.admin-content>.diagnostics,.admin-content>.role-management-grid,.admin-content>.admin-notifications-list,.admin-content>.user-editor,.admin-content>.file-list,.admin-content>.security-audit-actions,.admin-content>.install-results,.admin-content>.upload-dropzone,.admin-content>.inline-form,.admin-content>h2{max-width:1440px;margin-left:auto;margin-right:auto}
.admin-content .page-head{margin-bottom:15px}
.admin-content .page-head h1{font-size:clamp(21px,2vw,28px)}
.admin-content .page-head p{font-size:12px}
.admin-content .stats{gap:9px}
.admin-content .stats article,.admin-content .cards article,.admin-content .user-editor,.admin-content .settings-panel{padding:14px}
.admin-content th,.admin-content td{padding:9px 11px}

/* Tablet and phone: common user interface */
@media(max-width:900px){
 html,body{max-width:100%;overflow-x:hidden}
 body.auth-shell{min-width:0}
 .topbar.topbar-100{position:sticky!important;top:0!important;z-index:720!important;width:100%;height:58px;min-height:58px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));gap:7px}
 .topbar-left-170{min-width:0;flex:1}
 .topbar-left-170 .brand-logo{max-width:38px;max-height:38px;object-fit:contain}
 .brand-site-name-170,.topbar-global-search{display:none!important}
 .topbar-actions{gap:3px!important;flex:0 0 auto}
 .notification-bell,.profile-menu-button{width:38px;min-width:38px;height:38px;padding:0!important;justify-content:center}
 .profile-menu-button>span,.profile-menu-button>i{display:none!important}
 .notification-bell-panel{position:fixed!important;left:8px!important;right:8px!important;top:64px!important;width:auto!important;max-height:calc(100dvh - 78px)!important;border-radius:15px!important}
 .profile-dropdown{position:fixed!important;top:64px!important;right:8px!important;left:auto!important;width:min(310px,calc(100vw - 16px))!important;max-height:calc(100dvh - 78px);overflow:auto}
 .global-audio-player{display:none!important}

 .site-page-shell,.auth-shell>.site-page-shell,.auth-shell>.site-page-shell.vk-site-shell,.auth-shell>.feed-shell,.auth-shell>.feed-shell-090{
  display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:calc(100dvh - 58px)!important;max-height:none!important;overflow:visible!important;padding-bottom:calc(var(--mobile-site-nav-height) + env(safe-area-inset-bottom))!important;
 }
 .site-page-shell>.site-sidebar{
  position:fixed!important;inset:auto 0 0 0!important;z-index:650!important;width:100%!important;min-width:0!important;height:calc(var(--mobile-site-nav-height) + env(safe-area-inset-bottom))!important;padding:5px max(4px,env(safe-area-inset-left)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-right))!important;display:flex!important;flex-direction:row!important;align-items:stretch!important;gap:2px!important;overflow-x:auto!important;overflow-y:hidden!important;background:color-mix(in srgb,var(--panel) 96%,transparent)!important;border:0!important;border-top:1px solid var(--border)!important;box-shadow:0 -8px 24px rgba(0,0,0,.11);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);scrollbar-width:none
 }
 .site-page-shell>.site-sidebar::-webkit-scrollbar{display:none}
 .site-page-shell>.site-sidebar .site-user-card,.site-page-shell>.site-sidebar .sidebar-copyright{display:none!important}
 .site-page-shell>.site-sidebar .site-sidebar-menu{display:flex!important;flex:1;min-width:max-content;gap:2px}
 .site-page-shell>.site-sidebar .site-nav-item{
  flex:1 0 66px!important;min-width:66px!important;min-height:56px!important;padding:5px 4px!important;margin:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:2px!important;border-radius:10px!important;text-align:center!important
 }
 .site-page-shell>.site-sidebar .site-nav-item span{width:auto!important;font-size:19px!important;line-height:1}
 .site-page-shell>.site-sidebar .site-nav-item b{display:block!important;max-width:74px;font-size:9.5px!important;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .site-page-shell>.site-sidebar .site-nav-item em{top:3px!important;right:8px!important}
 .vk-profile-page,.feed-page,.feed-page-090,.people-page,.people-page-060,.people-page-080,.settings-page,.settings-page-060,.search-page,.weather-page-170{
  width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:9px!important
 }
 .feed-right-column,.vk-profile-right{display:none!important}
 .feed-page-head,.settings-title,.page-head{gap:9px!important;flex-wrap:wrap!important;align-items:flex-start!important}
 .feed-tabs,.people-tabs,.settings-tabs,.weather-tabs-170{width:100%;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
 .feed-tabs::-webkit-scrollbar,.people-tabs::-webkit-scrollbar,.settings-tabs::-webkit-scrollbar,.weather-tabs-170::-webkit-scrollbar{display:none}
 .feed-tabs a,.people-tabs a,.weather-tabs-170 button{flex:0 0 auto;white-space:nowrap}
 .feed-composer,.vk-wall-composer{grid-template-columns:38px minmax(0,1fr)!important;padding:11px!important}
 .feed-composer>.btn,.vk-wall-composer>.btn{grid-column:2;justify-self:end}
 .feed-post,.vk-wall-post{grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;padding:11px!important}
 .feed-post .feed-avatar,.feed-post .profile-mini-avatar{width:40px;height:40px}
 .vk-profile-grid,.vk-profile-grid-070,.vk-profile-grid-080,.vk-profile-grid-090,.vk-profile-grid-090.has-right{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;height:auto!important}
 .vk-profile-left,.vk-profile-main{width:100%!important;max-width:680px!important;margin:0 auto!important;height:auto!important;overflow:visible!important}
 .vk-profile-info-card>header{align-items:flex-start;gap:8px;flex-wrap:wrap}
 .profile-status-editor{grid-template-columns:minmax(0,1fr) auto!important}
 .vk-profile-fields>div{grid-template-columns:90px minmax(0,1fr)!important}
 .profile-people-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .people-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .person-card{min-width:0;padding:11px!important}
 .settings-layout-060{display:block!important}
 .settings-menu-060{position:sticky;top:58px;z-index:80;display:flex!important;gap:5px;overflow-x:auto;padding:5px;margin-bottom:9px;background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid var(--border);border-radius:12px;backdrop-filter:blur(12px);scrollbar-width:none}
 .settings-menu-060::-webkit-scrollbar{display:none}
 .settings-menu-060 a{flex:0 0 auto!important;padding:8px 11px!important}
 .settings-menu-060 a small{display:none!important}
 .settings-content-060{min-width:0}
 .wall-media-grid,.feed-media-grid{max-width:100%}
 img,video,iframe{max-width:100%}
 .modal{padding:8px!important}
 .modal-card{width:min(100%,680px)!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;border-radius:16px!important}
 .table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
 .table-wrap table{min-width:680px}

 /* Admin mobile drawer */
 .admin-shell{display:block!important;min-height:calc(100dvh - 58px)!important;padding-top:50px;padding-bottom:var(--admin-footer-height)}
 .admin-mobile-bar{position:fixed;top:58px;left:0;right:0;z-index:760;height:50px;padding:6px 10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;background:color-mix(in srgb,var(--panel) 96%,transparent);border-bottom:1px solid var(--border);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 .admin-mobile-bar strong{min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
 .admin-mobile-bar>a{padding:7px 9px;border-radius:9px;background:var(--panel-2);color:var(--text);font-size:11px;font-weight:750;white-space:nowrap}
 .admin-mobile-menu-button{width:auto;min-width:68px;height:36px;padding:0 9px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2);color:var(--text)}
 .admin-mobile-menu-button span{font-size:18px}.admin-mobile-menu-button b{font-size:11px}
 .admin-nav{position:fixed!important;top:58px!important;bottom:var(--admin-footer-height)!important;left:0!important;z-index:850!important;width:min(88vw,320px)!important;min-width:0!important;padding:11px 9px 16px!important;transform:translateX(-104%);transition:transform .22s ease;box-shadow:18px 0 48px rgba(0,0,0,.32)}
 .admin-shell.admin-nav-open .admin-nav{transform:translateX(0)}
 .admin-nav-head button{display:grid;place-items:center}
 .admin-nav-overlay{position:fixed;inset:58px 0 var(--admin-footer-height) 0;z-index:820;border:0;background:rgba(0,0,0,.48);backdrop-filter:blur(2px)}
 .admin-shell.admin-nav-open .admin-nav-overlay{display:block}
 .admin-content{width:100%;min-height:calc(100dvh - 108px);padding:12px!important;padding-bottom:calc(var(--admin-footer-height) + 18px)!important;overflow:visible!important}
 .admin-content .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .admin-content .stats article{min-width:0;padding:12px}
 .admin-content .stats b{font-size:22px}
 .admin-content .page-head>.btn,.admin-content .page-head>button{max-width:100%}
 .admin-content .docs-layout{grid-template-columns:1fr!important}
 .admin-content .docs-layout aside{position:static;max-height:210px;overflow:auto}
 .admin-content .role-management-grid{grid-template-columns:1fr!important}
 .admin-footer{min-height:var(--admin-footer-height);padding:6px 9px calc(6px + env(safe-area-inset-bottom))!important;font-size:10px;line-height:1.25;gap:1px 7px}
 .admin-footer span{display:block;width:100%}
}

@media(max-width:560px){
 :root{--mobile-site-nav-height:64px;--admin-footer-height:58px}
 .topbar.topbar-100{height:56px;min-height:56px}
 .notification-bell-panel,.profile-dropdown{top:62px!important}
 .site-page-shell,.auth-shell>.site-page-shell,.auth-shell>.site-page-shell.vk-site-shell,.auth-shell>.feed-shell,.auth-shell>.feed-shell-090{min-height:calc(100dvh - 56px)!important}
 .site-page-shell>.site-sidebar .site-nav-item{min-width:61px!important;flex-basis:61px!important}
 .site-page-shell>.site-sidebar .site-nav-item b{font-size:9px!important}
 .feed-page-head,.settings-title,.weather-hero-170{padding:12px!important}
 .feed-page-head h1,.settings-title h1,.weather-hero-170 h1{font-size:22px!important}
 .feed-post,.vk-wall-post{grid-template-columns:34px minmax(0,1fr)!important;padding:9px!important}
 .feed-post .feed-avatar,.feed-post .profile-mini-avatar{width:34px;height:34px}
 .people-grid{grid-template-columns:1fr!important}
 .person-card{grid-template-columns:60px minmax(0,1fr)!important}
 .person-card .profile-avatar{width:58px!important;height:58px!important}
 .profile-people-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .vk-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
 .vk-profile-stats a,.vk-profile-stats span{padding:8px 4px!important}
 .profile-status-editor{grid-template-columns:1fr!important}
 .profile-status-editor button{width:100%}
 .form-grid,.two-columns,.permission-grid{grid-template-columns:1fr!important}
 .button-row>.btn,.button-row>button,.button-row>form{flex:1 1 100%}
 .button-row>form>.btn,.button-row>form>button{width:100%}
 .admin-mobile-bar{top:56px}
 .admin-nav{top:56px!important}
 .admin-nav-overlay{inset:56px 0 var(--admin-footer-height) 0}
 .admin-content .stats{grid-template-columns:1fr 1fr!important}
 .admin-content .page-head{display:grid!important;grid-template-columns:1fr}
 .admin-content .page-head>.btn,.admin-content .page-head>button,.admin-content .page-head>form{width:100%}
 .admin-footer b{font-size:10px}.admin-footer span{font-size:9px}
 .reaction-menu-modern{max-width:calc(100vw - 12px)!important;min-width:0!important}
 .reaction-primary{grid-template-columns:repeat(7,minmax(30px,1fr))!important}
 .reaction-more-grid{grid-template-columns:repeat(7,minmax(30px,1fr))!important}
 .emoji-picker{width:calc(100vw - 12px)!important;max-height:62dvh!important}
 .emoji-grid-modern{grid-template-columns:repeat(8,1fr)!important}
 .sticker-picker{grid-template-columns:repeat(3,1fr)!important}
 .message-type-sticker .custom-sticker{width:min(210px,62vw)!important;height:min(210px,62vw)!important}
}

@media(max-width:380px){
 .site-page-shell>.site-sidebar .site-nav-item{min-width:56px!important;flex-basis:56px!important}
 .site-page-shell>.site-sidebar .site-nav-item b{display:none!important}
 .site-page-shell>.site-sidebar .site-nav-item span{font-size:21px!important}
 .profile-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .admin-mobile-menu-button b{display:none}.admin-mobile-menu-button{min-width:42px}
 .admin-footer span{display:none}
}

@media(prefers-reduced-motion:reduce){
 .admin-nav,.admin-nav-group summary i{transition:none!important}
}
@media(max-width:900px){html.admin-nav-lock,html.admin-nav-lock body{overflow:hidden!important}}
@media(max-width:900px){.site-page-shell.public-guest-shell{padding-bottom:0!important}}
/* KOVCHEG CMS 3.0. */
:root{
 --mobile-messenger-nav-height:68px;
 --mobile-keyboard-gap:0px;
}

@media(max-width:900px){
 /* One mobile viewport model for the messenger. */
 html.mobile-messenger-lock,html.mobile-messenger-lock body{height:100%;overflow:hidden!important;overscroll-behavior:none}
 body.mobile-messenger-page{height:var(--mobile-viewport-height,100dvh)!important;min-height:0!important;overflow:hidden!important}
 body.mobile-messenger-page>.topbar{position:relative!important;top:auto!important;flex:0 0 58px}
 body.mobile-messenger-page>.footer{display:none!important}
 .auth-shell>.messenger,.messenger{
  position:relative!important;display:block!important;width:100%!important;max-width:none!important;
  height:calc(var(--mobile-viewport-height,100dvh) - 58px)!important;min-height:0!important;max-height:none!important;
  padding:0 0 calc(var(--mobile-messenger-nav-height) + env(safe-area-inset-bottom))!important;
  overflow:hidden!important;background:var(--panel)!important;isolation:isolate
 }
 .messenger>.column-resizer{display:none!important}
 .messenger>.site-sidebar{
  position:fixed!important;inset:auto 0 0 0!important;z-index:780!important;width:100%!important;min-width:0!important;
  height:calc(var(--mobile-messenger-nav-height) + env(safe-area-inset-bottom))!important;
  padding:5px max(4px,env(safe-area-inset-left)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-right))!important;
  display:flex!important;flex-direction:row!important;align-items:stretch!important;gap:2px!important;
  overflow-x:auto!important;overflow-y:hidden!important;background:color-mix(in srgb,var(--panel) 96%,transparent)!important;
  border:0!important;border-top:1px solid var(--border)!important;box-shadow:0 -8px 24px rgba(0,0,0,.13);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);scrollbar-width:none
 }
 .messenger>.site-sidebar::-webkit-scrollbar{display:none}
 .messenger>.site-sidebar .site-user-card,.messenger>.site-sidebar .sidebar-copyright{display:none!important}
 .messenger>.site-sidebar .site-sidebar-menu{display:flex!important;flex:1;min-width:max-content;gap:2px}
 .messenger>.site-sidebar .site-nav-item{
  position:relative;flex:1 0 66px!important;min-width:66px!important;min-height:56px!important;margin:0!important;padding:5px 4px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;
  border-radius:10px!important;text-align:center!important
 }
 .messenger>.site-sidebar .site-nav-item span{width:auto!important;font-size:19px!important;line-height:1}
 .messenger>.site-sidebar .site-nav-item b{display:block!important;max-width:74px;font-size:9.5px!important;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .messenger>.site-sidebar .site-nav-item em{top:3px!important;right:8px!important}
 .messenger>.chat-list,.messenger>.conversation-shell{
  position:absolute!important;inset:0 0 calc(var(--mobile-messenger-nav-height) + env(safe-area-inset-bottom)) 0!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;background:var(--panel)
 }
 .messenger[data-chat-id="0"]>.chat-list{display:flex!important}
 .messenger[data-chat-id="0"]>.conversation-shell{display:none!important}
 .messenger:not([data-chat-id="0"])>.chat-list{display:none!important}
 .messenger:not([data-chat-id="0"])>.conversation-shell{display:block!important}
 .chat-list .chat-items{min-height:0;overflow-y:auto!important;overscroll-behavior-y:contain;padding-bottom:10px}
 .conversation-shell.loading{pointer-events:none;opacity:.74}
 .conversation-shell>.conversation,.conversation-shell .conversation{
  position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;height:100%!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important
 }
 .conversation-head{flex:0 0 58px!important;height:58px!important;min-height:58px!important;padding-left:max(6px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
 .mobile-back{display:grid!important;place-items:center;flex:0 0 38px;width:38px;height:38px;font-size:28px;line-height:1}
 .messages-wrap{position:relative!important;display:flex!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden!important}
 .messages-wrap>.messages,.conversation .messages{flex:1 1 auto!important;min-height:0!important;height:100%!important;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:10px 8px 14px!important;scroll-padding-bottom:18px}
 .message-selection-bar{flex:0 0 auto;max-width:100%;overflow-x:auto}
 .composer{
  position:relative!important;inset:auto!important;z-index:60!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;
  flex:0 0 auto!important;width:100%!important;min-height:58px!important;max-height:48vh!important;gap:4px!important;
  padding:7px max(6px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;
  overflow:visible!important;background:var(--panel)!important;border-top:1px solid var(--border)!important;box-shadow:0 -5px 18px rgba(0,0,0,.08)
 }
 .composer>input[type=hidden]{display:none!important}
 .composer-context,.composer .file-preview{flex:1 0 100%!important;min-width:0!important;grid-column:auto!important}
 .composer-tool{display:grid!important;flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;margin:3px 0!important;font-size:18px!important}
 .composer-input-box{display:flex!important;align-items:flex-end!important;flex:1 1 76px!important;min-width:64px!important;max-width:none!important}
 .composer-input-box textarea,.composer textarea{
  display:block!important;width:100%!important;min-width:0!important;min-height:42px!important;max-height:128px!important;margin:0!important;
  padding:10px 12px!important;border:0!important;border-radius:20px!important;background:var(--panel-2)!important;resize:none!important;visibility:visible!important;opacity:1!important
 }
 .composer .send-btn{display:grid!important;place-items:center;flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;margin:0!important}
 .composer .picker{position:absolute!important;left:6px!important;right:6px!important;bottom:calc(100% + 6px)!important;width:auto!important;max-height:min(310px,45vh)!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
 .composer .sticker-picker{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .read-only-composer{flex:0 0 auto;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .mobile-keyboard-open .messenger{padding-bottom:0!important}
 .mobile-keyboard-open .messenger>.site-sidebar{display:none!important}
 .mobile-keyboard-open .messenger>.chat-list,.mobile-keyboard-open .messenger>.conversation-shell{bottom:0!important}
 .mobile-keyboard-open .composer{padding-bottom:7px!important}

 /* Admin pages must scroll vertically on every mobile section. */
 html:not(.mobile-messenger-lock),html:not(.mobile-messenger-lock) body.auth-shell{height:auto!important;min-height:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important}
 .auth-shell>.admin-shell,.admin-shell[data-admin-shell]{
  position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:calc(100dvh - 58px)!important;max-height:none!important;
  overflow:visible!important;contain:none!important;padding-bottom:calc(var(--admin-footer-height) + env(safe-area-inset-bottom) + 18px)!important
 }
 .admin-shell .admin-content{
  position:relative!important;width:100%!important;height:auto!important;min-height:calc(100dvh - 108px)!important;max-height:none!important;
  overflow:visible!important;overscroll-behavior:auto!important;-webkit-overflow-scrolling:touch
 }
 .admin-content>.table-wrap,.admin-content .docs-layout,.admin-content .doc-content,.admin-content .settings-form,.admin-content .user-editor{max-height:none!important}
 .admin-content .doc-content{overflow:visible!important;overflow-wrap:anywhere}
 .admin-content .table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
 .admin-nav-open body{overflow:hidden!important}
}

@media(max-width:430px){
 .composer{gap:2px!important;padding-left:4px!important;padding-right:4px!important}
 .composer-tool{flex-basis:31px!important;width:31px!important;min-width:31px!important;height:34px!important;font-size:17px!important}
 .composer-input-box{min-width:54px!important}
 .composer-input-box textarea,.composer textarea{padding-left:10px!important;padding-right:10px!important}
 .conversation-head{gap:3px!important}
 .conversation-title h1{font-size:14px!important}
}
/* KOVCHEG CMS 3.0. */
:root{--mobile-topbar-height:58px}
@media(max-width:900px){
 html,body{scroll-padding-top:var(--mobile-topbar-height)}
 body>.topbar,.auth-shell>.topbar,.topbar{
  position:sticky!important;top:0!important;z-index:12000!important;width:100%!important;min-height:var(--mobile-topbar-height)!important;
  background:var(--panel)!important;border-bottom:1px solid var(--border)!important;box-shadow:0 7px 22px rgba(0,0,0,.14)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;opacity:1!important
 }
 .site-sidebar,.archive-shell>.site-sidebar,.messenger>.site-sidebar{
  background:var(--panel)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;opacity:1!important
 }
 .admin-footer,.footer{
  background:var(--panel)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;opacity:1!important
 }
 body.mobile-messenger-page>.topbar{position:relative!important;top:auto!important}
 .archive-upload-modal{align-items:end!important;padding:0!important;background:rgba(0,0,0,.78)!important}
 .archive-upload-card{width:100%!important;height:min(86dvh,760px)!important;max-height:86dvh!important;border-radius:20px 20px 0 0!important}
 .archive-drop-zone{min-height:170px!important;margin:12px!important;padding:22px 14px!important}
 .archive-upload-queue{max-height:none!important;min-height:0!important;overflow:auto!important;padding:0 12px 16px!important}
 .archive-upload-card>footer{padding-bottom:max(12px,env(safe-area-inset-bottom))!important;background:var(--panel)!important}
}
.archive-upload-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 12px;color:var(--muted);font-size:13px}
.archive-upload-item{position:relative}
.archive-upload-item.is-uploading b::after{content:' · загрузка';color:var(--accent);font-weight:600}
.archive-upload-item.is-done b::after{content:' · готово';color:#4fc58b;font-weight:600}
.archive-upload-item.is-error b::after{content:' · ошибка';color:#ef6b73;font-weight:600}
.archive-upload-item button{grid-column:2;grid-row:1/3;align-self:center;width:32px;height:32px;border:0;border-radius:9px;background:var(--panel-2);color:var(--text);cursor:pointer}
.archive-upload-card [data-archive-upload-close-all]{min-width:120px}
/* KOVCHEG CMS 3.0. */
.global-audio-player{display:grid!important}
.global-audio-player.is-idle{opacity:.78}
.global-audio-player.is-idle .global-player-play{background:var(--panel-2)!important;color:var(--muted)!important}
.global-audio-player button:disabled,.global-audio-player input:disabled{cursor:default;opacity:.45}
.global-audio-player [data-player-close][hidden]{display:none!important}
@media(max-width:900px){
 :root{--mobile-topbar-height:106px}
 body>.topbar,.auth-shell>.topbar,.topbar.topbar-100{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:58px 48px!important;
  align-items:center!important;height:var(--mobile-topbar-height)!important;min-height:var(--mobile-topbar-height)!important;
  padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))!important;gap:0 6px!important
 }
 .topbar-left-170{grid-column:1;grid-row:1;min-width:0!important}
 .topbar-actions{grid-column:2;grid-row:1;min-width:0!important}
 .global-audio-player{
  position:relative!important;grid-column:1/-1!important;grid-row:2!important;left:auto!important;top:auto!important;transform:none!important;
  width:100%!important;max-width:none!important;height:42px!important;margin:0!important;padding:4px 6px!important;
  grid-template-columns:26px 34px 26px minmax(0,1fr) minmax(72px,1.35fr) 42px 26px!important;
  border-radius:11px!important;box-shadow:none!important;background:var(--panel-2)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important
 }
 .global-player-meta b{font-size:11px!important}.global-player-meta small{display:block!important;font-size:9px!important}
 .global-audio-player time{font-size:9px!important}.global-audio-player button{height:30px!important}
 .notification-bell-panel,.profile-dropdown{top:calc(var(--mobile-topbar-height) + 6px)!important;max-height:calc(100dvh - var(--mobile-topbar-height) - 20px)!important}
 .site-page-shell,.auth-shell>.site-page-shell,.auth-shell>.site-page-shell.vk-site-shell,.auth-shell>.feed-shell,.auth-shell>.feed-shell-090{min-height:calc(100dvh - var(--mobile-topbar-height))!important}
 body.mobile-messenger-page>.topbar{height:var(--mobile-topbar-height)!important;min-height:var(--mobile-topbar-height)!important}
}
@media(max-width:520px){
 .global-audio-player{grid-template-columns:24px 32px 24px minmax(0,1fr) 72px 24px!important}
 .global-audio-player [data-player-time]{display:none!important}
 .global-player-meta small{display:none!important}
}
/* KOVCHEG CMS 3.0. */
#kovcheg-page-content{min-width:0;min-height:0}

/* Obsolete 2.2.3 single-scroll profile override removed in 2.3.8. */
/* Compact media top area. */
.media-library-page .library-front,.media-library-page .archive-manager{gap:14px!important}
.media-compact-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:54px;padding:7px 2px 10px;border-bottom:1px solid var(--border,#314150);background:none!important;box-shadow:none!important}
.media-compact-head>div{display:flex;align-items:baseline;gap:10px;min-width:0}
.media-compact-head h1{margin:0!important;font-size:clamp(25px,3vw,34px)!important;line-height:1!important;letter-spacing:-.035em!important}
.media-compact-head small{color:var(--muted,#94a5b3);font-size:12px;white-space:nowrap}
.media-compact-head .manage-library-link{min-height:36px;padding:0 13px;border-radius:11px}
.archive-usage.compact{display:grid;grid-template-columns:auto minmax(90px,180px);align-items:center;gap:9px;min-width:0!important;width:auto!important;padding:0!important;border:0!important;background:none!important}
.archive-usage.compact>b{font-size:11px;white-space:nowrap;color:var(--muted,#94a5b3)}
.archive-usage.compact>div{width:min(180px,18vw);min-width:90px;height:5px;margin:0!important}
.archive-manager-tabs{padding:0!important;gap:4px!important}
.archive-manager-tabs a{padding:8px 12px!important;border-radius:10px!important;font-size:13px}
.archive-inline-drop{min-height:78px!important;padding:12px 16px!important;border-radius:15px!important;gap:12px!important}
.archive-inline-drop .drop-glyph{width:40px!important;height:40px!important;flex:0 0 40px!important;border-radius:12px!important;font-size:23px!important}
.archive-inline-drop b{font-size:14px!important}.archive-inline-drop small{margin-top:2px!important;font-size:11px!important}
.archive-manager-toolbar{min-height:40px}
.archive-folder-strip,.library-section,.release-sort-section,.release-file-picker{gap:11px!important}
.archive-folder-strip>header,.library-section>header,.release-sort-section>header,.release-file-picker>header{gap:10px!important}
.archive-folder-strip h2,.library-section h2,.release-sort-section h2,.release-file-picker h2{font-size:20px!important}
.archive-folder-strip p,.library-section p,.release-sort-section p,.release-file-picker p,.archive-folder-strip small{font-size:12px!important}

/* Any old hero that remains is reduced instead of taking half the screen. */
.media-library-hero{min-height:0!important;padding:12px 14px!important;border-radius:15px!important;box-shadow:none!important;align-items:center!important}
.media-library-hero:after{display:none!important}.media-library-hero h1{margin:0!important;font-size:30px!important}.media-library-hero p,.media-library-hero .archive-kicker{display:none!important}
.release-detail-hero{gap:9px!important}.release-detail-grid{grid-template-columns:110px minmax(0,1fr)!important;align-items:center!important;gap:16px!important;padding-bottom:12px;border-bottom:1px solid var(--border,#314150)}
.release-detail-grid>img,.release-cover-placeholder.giant{width:110px!important;height:110px!important;aspect-ratio:1!important;border-radius:15px!important}
.release-detail-grid h1{margin:0 0 4px!important;font-size:clamp(26px,4vw,38px)!important;line-height:1!important}.release-detail-grid h2{font-size:15px!important}.release-detail-grid p{margin:7px 0 0!important;line-height:1.35!important;font-size:12px!important}.release-detail-grid small{margin:8px 0!important}
.playlist-detail-head{padding:12px 14px!important;border-radius:15px!important;align-items:center!important;background:var(--panel)!important}.playlist-detail-head h1{margin:2px 0!important;font-size:30px!important}.playlist-detail-head p{font-size:12px!important}
.archive-subhead{margin-bottom:10px!important}.archive-subhead h1{font-size:25px!important}.archive-subhead p{display:none!important}

@media(max-width:900px){
 body.profile-page-active #kovcheg-page-content>.site-page-shell,
 body:has(#kovcheg-page-content .vk-profile-page) #kovcheg-page-content>.site-page-shell{min-height:calc(100dvh - var(--mobile-topbar-height,106px))!important;padding-bottom:calc(var(--mobile-site-nav-height,68px) + env(safe-area-inset-bottom) + 12px)!important}
 body.profile-page-active .vk-profile-page,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-page{padding:8px 8px calc(var(--mobile-site-nav-height,68px) + env(safe-area-inset-bottom) + 18px)!important}
 .media-compact-head{min-height:46px;padding:5px 1px 8px}.media-compact-head h1{font-size:25px!important}.media-compact-head small{display:none}.media-compact-head .manage-library-link{min-height:34px;padding:0 11px;font-size:12px}
 .archive-usage.compact{grid-template-columns:auto 74px}.archive-usage.compact>div{width:74px;min-width:74px}.archive-usage.compact>b{font-size:10px}
 .archive-inline-drop{min-height:66px!important;padding:10px 12px!important}.archive-inline-drop .drop-glyph{width:36px!important;height:36px!important;flex-basis:36px!important}.archive-inline-drop small{display:none!important}
 .release-detail-grid{grid-template-columns:82px minmax(0,1fr)!important;gap:11px!important}.release-detail-grid>img,.release-cover-placeholder.giant{width:82px!important;height:82px!important;border-radius:12px!important}.release-detail-grid h1{font-size:26px!important}.release-detail-grid p{grid-column:auto!important;display:none!important}
 .playlist-detail-head{display:flex!important;padding:10px 11px!important}.playlist-detail-head h1{font-size:24px!important}.playlist-detail-head p{display:none!important}
}
@media(max-width:430px){
 .media-compact-head{align-items:flex-start}.archive-usage.compact{grid-template-columns:1fr;gap:3px}.archive-usage.compact>div{width:74px}.archive-manager-toolbar{display:grid!important;gap:8px!important}.manager-actions{width:100%}.manager-actions>*{flex:1}
}
/* KOVCHEG CMS 3.0. */

/* The profile page is an application workspace on desktop: every column owns its scroll. */
@media (min-width:851px){
 body.profile-page-active,
 body:has(#kovcheg-page-content .vk-profile-page){
  overflow:hidden!important;
 }
 body.profile-page-active #kovcheg-page-content,
 body:has(#kovcheg-page-content .vk-profile-page) #kovcheg-page-content{
  height:calc(100dvh - var(--topbar-height,58px))!important;
  min-height:0!important;
  max-height:calc(100dvh - var(--topbar-height,58px))!important;
  overflow:hidden!important;
 }
 body.profile-page-active #kovcheg-page-content>.site-page-shell.vk-site-shell,
 body:has(#kovcheg-page-content .vk-profile-page) #kovcheg-page-content>.site-page-shell.vk-site-shell{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  align-items:stretch!important;
  padding-bottom:0!important;
 }
 body.profile-page-active .vk-profile-page.profile-page-090,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-page.profile-page-090{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:14px!important;
  overflow:hidden!important;
 }
 body.profile-page-active .vk-profile-grid-090,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-grid-090{
  width:100%!important;
  max-width:1500px!important;
  height:100%!important;
  min-height:0!important;
  margin:0 auto!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:14px!important;
 }
 body.profile-page-active .vk-profile-left,
 body.profile-page-active .vk-profile-main,
 body.profile-page-active .vk-profile-right,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:color-mix(in srgb,var(--accent) 48%,transparent) transparent!important;
 }
 body.profile-page-active .vk-profile-left::-webkit-scrollbar,
 body.profile-page-active .vk-profile-main::-webkit-scrollbar,
 body.profile-page-active .vk-profile-right::-webkit-scrollbar,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left::-webkit-scrollbar,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main::-webkit-scrollbar,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right::-webkit-scrollbar{
  display:block!important;
  width:6px!important;
  height:6px!important;
 }
 body.profile-page-active .vk-profile-left::-webkit-scrollbar-thumb,
 body.profile-page-active .vk-profile-main::-webkit-scrollbar-thumb,
 body.profile-page-active .vk-profile-right::-webkit-scrollbar-thumb,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left::-webkit-scrollbar-thumb,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main::-webkit-scrollbar-thumb,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,var(--accent) 48%,transparent)!important;
  border-radius:999px!important;
 }
 body.profile-page-active .vk-profile-left,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left{
  display:grid!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  gap:10px!important;
  padding-right:4px!important;
 }
 body.profile-page-active .vk-profile-main,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main{
  display:block!important;
  align-content:initial!important;
  padding-right:4px!important;
 }
 body.profile-page-active .vk-profile-main>*+*,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main>*+*{
  margin-top:12px!important;
 }
 body.profile-page-active .vk-profile-right,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right{
  display:grid!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  gap:12px!important;
  padding-left:2px!important;
 }
 .vk-profile-left>.profile-avatar-interactive{order:1!important}
 .vk-profile-left>.vk-wide-button{order:2!important;display:flex!important;width:100%!important;min-height:42px!important;margin:0!important;align-items:center!important;justify-content:center!important;position:relative!important;z-index:2!important}
 .vk-profile-left>.profile-action-stack{order:3!important}
 .vk-profile-left>.profile-people-stack{order:4!important;margin-top:2px!important;padding-bottom:12px!important}
 .profile-people-stack{display:grid!important;gap:12px!important}
 .profile-people-card{min-width:0!important}
}

@media (min-width:1181px){
 body.profile-page-active .vk-profile-grid-090,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-grid-090{
  grid-template-columns:minmax(280px,300px) minmax(520px,760px) minmax(270px,300px)!important;
 }
}

@media (min-width:851px) and (max-width:1180px){
 body.profile-page-active .vk-profile-grid-090,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-grid-090{
  grid-template-columns:minmax(260px,290px) minmax(470px,760px)!important;
 }
 body.profile-page-active .vk-profile-right,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right{display:none!important}
}

/* Phones and narrow tablets use one ordinary page scroll. */
@media (max-width:850px){
 body.profile-page-active,
 body:has(#kovcheg-page-content .vk-profile-page){overflow-y:auto!important;overflow-x:hidden!important}
 body.profile-page-active #kovcheg-page-content,
 body:has(#kovcheg-page-content .vk-profile-page) #kovcheg-page-content{
  height:auto!important;
  min-height:calc(100dvh - var(--mobile-topbar-height,106px))!important;
  max-height:none!important;
  overflow:visible!important;
 }
 body.profile-page-active #kovcheg-page-content>.site-page-shell.vk-site-shell,
 body:has(#kovcheg-page-content .vk-profile-page) #kovcheg-page-content>.site-page-shell.vk-site-shell{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:start!important;
 }
 body.profile-page-active .vk-profile-page.profile-page-090,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-page.profile-page-090{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:8px 8px calc(var(--mobile-site-nav-height,68px) + env(safe-area-inset-bottom) + 18px)!important;
 }
 body.profile-page-active .vk-profile-grid-090,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-grid-090{
  height:auto!important;
  min-height:0!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
 }
 body.profile-page-active .vk-profile-left,
 body.profile-page-active .vk-profile-main,
 body.profile-page-active .vk-profile-right,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  scrollbar-width:auto!important;
 }
 body.profile-page-active .vk-profile-left,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left{
  display:grid!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  gap:10px!important;
  max-width:680px!important;
  margin:0 auto!important;
 }
 body.profile-page-active .vk-profile-main,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main{
  display:block!important;
  max-width:680px!important;
  margin:0 auto!important;
 }
 body.profile-page-active .vk-profile-main>*+*,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main>*+*{margin-top:10px!important}
 body.profile-page-active .vk-profile-right,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right{display:none!important}
}
/* KOVCHEG CMS 3.0. */
html.kovcheg-soft-navigating{cursor:progress}
html.kovcheg-soft-navigating::before{content:"";position:fixed;z-index:100000;left:0;top:0;height:3px;width:42%;background:linear-gradient(90deg,var(--accent,#5a78ff),#8f65ff);box-shadow:0 0 12px color-mix(in srgb,var(--accent,#5a78ff) 65%,transparent);animation:kovcheg-nav-progress .75s ease-in-out infinite alternate}
@keyframes kovcheg-nav-progress{from{transform:translateX(-25%)}to{transform:translateX(210%)}}
#kovcheg-page-content{transition:opacity .12s ease}
html.kovcheg-soft-navigating #kovcheg-page-content{opacity:.58;pointer-events:none}
.admin-back-to-site{display:flex;align-items:center;gap:10px;margin:8px 10px 4px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--accent,#5a78ff) 14%,var(--surface,#17232f));border:1px solid color-mix(in srgb,var(--accent,#5a78ff) 35%,transparent);color:var(--text,#fff);text-decoration:none;min-height:42px}
.admin-back-to-site:hover{background:color-mix(in srgb,var(--accent,#5a78ff) 24%,var(--surface,#17232f));transform:translateY(-1px)}
.admin-back-to-site span{font-size:18px}.admin-back-to-site b{font-size:13px}
@media (min-width:851px){
 body.profile-page-active .vk-profile-left,body.profile-page-active .vk-profile-main,body.profile-page-active .vk-profile-right,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left,body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main,body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right{scrollbar-width:none!important;-ms-overflow-style:none!important;scrollbar-gutter:auto!important}
 body.profile-page-active .vk-profile-left::-webkit-scrollbar,body.profile-page-active .vk-profile-main::-webkit-scrollbar,body.profile-page-active .vk-profile-right::-webkit-scrollbar,
 body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-left::-webkit-scrollbar,body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-main::-webkit-scrollbar,body:has(#kovcheg-page-content .vk-profile-page) .vk-profile-right::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}
@media (max-width:900px){.admin-back-to-site{margin:8px 12px}}
/* KOVCHEG CMS 3.0. */
html.kovcheg-soft-navigating{cursor:default!important}
html.kovcheg-soft-navigating #kovcheg-page-content{opacity:1!important;pointer-events:auto!important;filter:none!important}
html.kovcheg-soft-navigating::before{height:2px!important;width:22%!important;animation-duration:.5s!important}
#kovcheg-page-content{transition:none!important}
.media-soft-loading [data-kovcheg-page-content]{opacity:1!important;pointer-events:auto!important;filter:none!important}

@media (min-width:1001px){
 .topbar.topbar-100{display:grid!important;grid-template-columns:minmax(300px,1fr) minmax(500px,720px) auto!important;gap:12px!important;align-items:center!important;height:58px!important;min-height:58px!important}
 .topbar-left-170{grid-column:1!important;min-width:0!important}
 .topbar-actions{grid-column:3!important;justify-self:end!important}
 .global-audio-player{position:relative!important;grid-column:2!important;left:auto!important;top:auto!important;transform:none!important;width:100%!important;max-width:720px!important;height:48px!important;margin:0!important;display:grid!important;grid-template-columns:28px 38px 28px 30px minmax(130px,1fr) minmax(150px,1.35fr) 30px 78px!important;gap:4px!important;padding:3px 4px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
}
.global-audio-player button{font-size:14px!important;background:transparent!important;color:var(--muted)!important}
.global-audio-player button:hover{background:var(--panel-2)!important;color:var(--text)!important}
.global-audio-player .global-player-play{width:36px!important;height:36px!important;border-radius:50%!important;background:var(--panel-2)!important;color:var(--text)!important}
.global-audio-player:not(.is-idle) .global-player-play{background:var(--accent)!important;color:#fff!important}
.global-audio-player .player-repeat.active{color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 12%,transparent)!important}
.global-audio-player .player-repeat.repeat-one{font-weight:900!important}
.global-player-meta{padding:0 5px!important}.global-player-meta b{font-size:12px!important}.global-player-meta small{font-size:10px!important}.global-player-meta small:empty{display:none!important}
.global-player-progress-wrap{display:grid!important;grid-template-columns:minmax(70px,1fr) auto!important;align-items:center!important;gap:6px!important;min-width:0!important}
.global-player-progress-wrap input{min-width:0!important;height:4px!important;accent-color:var(--accent)!important}
.global-player-progress-wrap time{white-space:nowrap!important;font-variant-numeric:tabular-nums!important;font-size:10px!important}
.global-player-volume{width:78px!important;min-width:0!important;accent-color:var(--accent)!important}
.global-audio-player.is-idle{opacity:.72!important}.global-audio-player.is-idle .global-player-meta small{display:none!important}
.global-audio-player.is-idle .player-repeat,.global-audio-player.is-idle .player-volume-button,.global-audio-player.is-idle .global-player-volume{opacity:.35!important}

@media (max-width:1200px) and (min-width:901px){
 .topbar.topbar-100{grid-template-columns:minmax(210px,1fr) minmax(410px,570px) auto!important}
 .brand-site-name-170{display:none!important}.topbar-left-170 .topbar-global-search{width:min(285px,27vw)!important}
 .global-audio-player{grid-template-columns:26px 36px 26px 28px minmax(90px,1fr) minmax(110px,1.2fr) 28px 58px!important}
 .global-player-volume{width:58px!important}
}
@media (max-width:900px){
 .global-audio-player{grid-template-columns:26px 34px 26px 27px minmax(0,1fr) minmax(88px,1.2fr) 27px 55px!important}
 .global-player-volume{width:55px!important}.global-player-progress-wrap time{display:none!important}
}
@media (max-width:560px){
 .global-audio-player{grid-template-columns:24px 32px 24px 26px minmax(0,1fr) 72px!important}
 .global-audio-player .player-volume-button,.global-audio-player .global-player-volume{display:none!important}
 .global-player-progress-wrap{grid-template-columns:1fr!important}
}

/* KOVCHEG CMS 3.0. */
.composer.composer-modern{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;
 align-items:end!important;gap:6px!important;width:100%!important;min-width:0!important;padding:8px 10px!important;
 background:var(--panel)!important;border-top:1px solid var(--border)!important;overflow:visible!important
}
.composer-modern .composer-context,.composer-modern .composer-attachment-strip{grid-column:1!important;width:100%!important;min-width:0!important}
.composer-modern .composer-attachment-strip{display:grid!important;gap:5px!important;padding:0!important}
.composer-modern .composer-attachment-strip:has(.file-preview:empty) .file-preview{display:none!important}
.composer-modern .composer-row{grid-column:1!important;display:flex!important;align-items:flex-end!important;gap:7px!important;min-width:0!important;width:100%!important}
.composer-modern .composer-tools{display:flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important;min-width:0!important}
.composer-modern .composer-tool{width:34px!important;height:34px!important;min-width:34px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:10px!important}
.composer-modern .composer-input-box{display:flex!important;align-items:flex-end!important;flex:1 1 auto!important;min-width:110px!important;width:auto!important}
.composer-modern .composer-input-box textarea{display:block!important;width:100%!important;min-width:0!important;min-height:42px!important;max-height:138px!important;margin:0!important;padding:10px 14px!important;border:1px solid transparent!important;border-radius:18px!important;background:var(--panel-2)!important;color:var(--text)!important;resize:none!important;overflow-y:auto!important}
.composer-modern .composer-input-box textarea:focus{border-color:color-mix(in srgb,var(--accent) 48%,transparent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)!important}
.composer-modern .send-btn{flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;border-radius:14px!important}
.composer-modern .picker{bottom:calc(100% + 7px)!important}

/* VK-like lightweight music attachment cards. */
.composer-track-selection{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important;width:100%!important;padding:2px 0!important}
.composer-track-selection[hidden]{display:none!important}
.composer-track-card{display:grid!important;grid-template-columns:34px 38px minmax(0,1fr) 30px!important;align-items:center!important;gap:7px!important;min-width:0!important;padding:5px 6px!important;border:1px solid color-mix(in srgb,var(--border) 82%,transparent)!important;border-radius:11px!important;background:color-mix(in srgb,var(--panel-2) 82%,transparent)!important}
.composer-track-play{width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:var(--accent)!important;color:#fff!important;display:grid!important;place-items:center!important;padding-left:2px!important}
.composer-track-cover{width:38px!important;height:38px!important;border-radius:9px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 45%,#2b2e67),var(--panel))!important;font-size:18px!important}
.composer-track-card>div{min-width:0!important;display:grid!important;gap:2px!important}.composer-track-card b,.composer-track-card small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.composer-track-card b{font-size:13px!important}.composer-track-card small{font-size:11px!important;color:var(--muted)!important}
.composer-track-remove{width:28px!important;height:28px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--muted)!important;font-size:18px!important}.composer-track-remove:hover{background:var(--hover)!important;color:var(--text)!important}

/* Wall comment composer with its own music picker. */
.wall-comment-form-with-music{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;width:100%!important}
.wall-comment-compose-row{display:grid!important;grid-template-columns:34px minmax(0,1fr) 40px!important;align-items:end!important;gap:7px!important;min-width:0!important}
.wall-comment-input-wrap{position:relative!important;min-width:0!important}.wall-comment-input-wrap textarea{width:100%!important;min-height:40px!important;max-height:130px!important;padding:9px 42px 9px 12px!important;border-radius:16px!important;resize:none!important}
.wall-comment-input-wrap .wall-comment-track-button{position:absolute!important;right:5px!important;bottom:5px!important;width:30px!important;height:30px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--muted)!important;display:grid!important;place-items:center!important}.wall-comment-input-wrap .wall-comment-track-button:hover{background:var(--hover)!important;color:var(--accent)!important}
.wall-comment-form-with-music>.comment-track-selection{margin-left:41px!important;width:calc(100% - 41px)!important}
.wall-comment-form-with-music .send-btn{width:40px!important;height:40px!important;border-radius:13px!important}

@media(max-width:900px){
 :root{--mobile-topbar-height:58px!important;--mobile-messenger-nav-height:64px!important}
 /* One compact header row: logo, player and account controls. */
 body.auth-shell>.topbar.topbar-100{position:fixed!important;inset:0 0 auto 0!important;z-index:9000!important;height:calc(58px + env(safe-area-inset-top))!important;min-height:calc(58px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 6px 0!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;grid-template-rows:58px!important;align-items:center!important;gap:5px!important;background:var(--topbar)!important;border-bottom:1px solid var(--border)!important}
 .topbar-left-170{grid-column:1!important;grid-row:1!important;width:44px!important;min-width:44px!important;display:flex!important;align-items:center!important;margin:0!important}.topbar-left-170 .brand{width:40px!important;height:40px!important;margin:0!important}.topbar-left-170 .brand-logo{width:40px!important;height:40px!important;border-radius:9px!important}.brand-site-name-170,.topbar-left-170 .topbar-global-search{display:none!important}
 .topbar-actions{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:2px!important;min-width:62px!important}.top-profile span,.top-profile i{display:none!important}.top-profile{padding:3px!important}.notification-bell{width:32px!important;height:32px!important}
 .global-audio-player{grid-column:2!important;grid-row:1!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:44px!important;min-height:44px!important;margin:0!important;padding:3px 5px!important;border:1px solid color-mix(in srgb,var(--border) 82%,transparent)!important;border-radius:12px!important;background:color-mix(in srgb,var(--panel-2) 86%,transparent)!important;box-shadow:none!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:26px 8px!important;column-gap:6px!important;row-gap:1px!important;overflow:hidden!important}
 .global-audio-player [data-player-prev],.global-audio-player [data-player-next],.global-audio-player [data-player-repeat],.global-audio-player [data-player-mute],.global-audio-player [data-player-volume]{display:none!important}
 .global-audio-player .global-player-play{grid-column:1!important;grid-row:1/3!important;width:34px!important;height:34px!important;align-self:center!important;border-radius:50%!important;font-size:13px!important}
 .global-player-meta{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:0!important;align-self:center!important}.global-player-meta b{font-size:11px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.global-player-meta small{display:none!important}
 .global-player-progress-wrap{grid-column:2!important;grid-row:2!important;position:static!important;display:block!important;width:100%!important;height:8px!important;min-width:0!important}.global-player-progress-wrap input{display:block!important;width:100%!important;height:3px!important;margin:2px 0 0!important}.global-player-progress-wrap time{display:none!important}
 .auth-shell #kovcheg-page-content{padding-top:calc(58px + env(safe-area-inset-top))!important}
 body.mobile-messenger-page>.topbar{position:fixed!important;top:0!important;flex:none!important}
 .auth-shell>.messenger,.messenger{height:calc(var(--mobile-viewport-height,100dvh) - 58px - env(safe-area-inset-top))!important;margin-top:calc(58px + env(safe-area-inset-top))!important;padding-bottom:calc(var(--mobile-messenger-nav-height) + env(safe-area-inset-bottom))!important}
 .messenger>.chat-list,.messenger>.conversation-shell{inset:0 0 calc(var(--mobile-messenger-nav-height) + env(safe-area-inset-bottom)) 0!important}
 .conversation-shell>.conversation,.conversation-shell .conversation{height:100%!important;max-height:100%!important;min-height:0!important}
 .conversation .composer.composer-modern{position:relative!important;inset:auto!important;z-index:80!important;flex:0 0 auto!important;max-height:min(52dvh,360px)!important;padding:6px max(6px,env(safe-area-inset-right)) 6px max(6px,env(safe-area-inset-left))!important;overflow:visible!important}
 .composer-modern .composer-row{gap:4px!important}.composer-modern .composer-tools{gap:1px!important;max-width:145px!important;overflow-x:auto!important;scrollbar-width:none!important}.composer-modern .composer-tools::-webkit-scrollbar{display:none!important}.composer-modern .composer-tool{width:30px!important;height:30px!important;min-width:30px!important;font-size:16px!important;border-radius:9px!important}.composer-modern .composer-input-box{min-width:70px!important}.composer-modern .composer-input-box textarea{min-height:40px!important;padding:9px 11px!important;border-radius:16px!important}.composer-modern .send-btn{width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important}
 .composer-track-card{grid-template-columns:32px 34px minmax(0,1fr) 28px!important;padding:4px!important}.composer-track-cover{width:34px!important;height:34px!important}.composer-track-play{width:30px!important;height:30px!important}
 .mobile-keyboard-open .messenger{padding-bottom:0!important}.mobile-keyboard-open .messenger>.chat-list,.mobile-keyboard-open .messenger>.conversation-shell{inset-bottom:0!important;bottom:0!important}.mobile-keyboard-open .conversation .composer.composer-modern{padding-bottom:max(5px,env(safe-area-inset-bottom))!important}
 .wall-comment-compose-row{grid-template-columns:30px minmax(0,1fr) 38px!important;gap:5px!important}.wall-comment-form-with-music>.comment-track-selection{margin-left:35px!important;width:calc(100% - 35px)!important}
}

@media(max-width:420px){
 .topbar-actions{min-width:56px!important}.global-audio-player{grid-template-columns:32px minmax(0,1fr)!important;padding-inline:4px!important}.global-audio-player .global-player-play{width:32px!important;height:32px!important}.topbar-left-170,.topbar-left-170 .brand,.topbar-left-170 .brand-logo{width:38px!important;min-width:38px!important;height:38px!important}
 .composer-modern .composer-tools{max-width:103px!important}.composer-modern .composer-tool{width:29px!important;height:29px!important;min-width:29px!important}.composer-modern .composer-music-button{display:grid!important}
}
.wall-comment-send{width:40px!important;height:40px!important;border:0!important;border-radius:13px!important;background:var(--accent)!important;color:#fff!important;display:grid!important;place-items:center!important;cursor:pointer!important}
.wall-comment-send:disabled{opacity:.55!important;cursor:wait!important}

/* KOVCHEG CMS 3.0. */
.content-moderation-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:1440px;margin:0 auto 14px}.content-moderation-stats>a{display:flex;align-items:center;gap:10px;padding:13px 15px;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--text);transition:.16s ease}.content-moderation-stats>a:hover,.content-moderation-stats>a.active{border-color:var(--accent);background:var(--accent-soft)}.content-moderation-stats b{font-size:24px}.content-moderation-stats span{color:var(--muted);font-size:12px}.content-moderation-search{display:grid;grid-template-columns:minmax(260px,1fr) 180px 180px auto;gap:10px;align-items:end;max-width:1440px;margin:0 auto 14px;padding:14px;background:var(--panel);border:1px solid var(--border);border-radius:16px}.content-moderation-search label{display:grid;gap:6px}.content-moderation-search label>span{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.content-moderation-list{display:grid;gap:10px;max-width:1440px;margin:0 auto}.content-moderation-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--border);border-radius:16px;background:var(--panel)}.content-moderation-card.state-blocked{border-color:color-mix(in srgb,#f2a33b 55%,var(--border));background:color-mix(in srgb,#f2a33b 7%,var(--panel))}.content-moderation-card.state-deleted{opacity:.68}.content-moderation-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--panel-2);font-size:23px}.content-moderation-info{min-width:0;display:grid;gap:3px}.content-moderation-title{display:flex;align-items:center;gap:8px;min-width:0}.content-moderation-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content-moderation-info p,.content-moderation-info small{margin:0;color:var(--muted);overflow-wrap:anywhere}.content-block-reason{color:#f2a33b!important}.content-moderation-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end}.content-moderation-actions form{margin:0}.content-moderation-actions details{position:relative}.content-moderation-actions summary{list-style:none;cursor:pointer}.content-moderation-actions summary::-webkit-details-marker{display:none}.content-moderation-actions details form{position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:260px;display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:13px;background:var(--panel);box-shadow:var(--shadow)}.btn-warning{background:#b56a00!important;color:#fff!important;border-color:#b56a00!important}.admin-content-empty{max-width:1440px;margin:0 auto;padding:28px;border:1px dashed var(--border);border-radius:16px;background:var(--panel);display:grid;gap:6px;text-align:center}.admin-content-empty span{color:var(--muted)}.library-error-banner{display:grid;gap:4px;margin:10px 0 14px;padding:12px 14px;border:1px solid color-mix(in srgb,#f2a33b 58%,var(--border));border-radius:13px;background:color-mix(in srgb,#f2a33b 10%,var(--panel));color:var(--text)}.library-error-banner span{font-size:12px;color:var(--muted)}
@media(max-width:900px){.content-moderation-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.content-moderation-search{grid-template-columns:1fr 1fr}.content-moderation-search label:first-child{grid-column:1/-1}.content-moderation-search button{width:100%}.content-moderation-card{grid-template-columns:42px minmax(0,1fr)}.content-moderation-icon{width:42px;height:42px}.content-moderation-actions{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}.content-moderation-actions details form{left:0;right:auto;width:min(280px,calc(100vw - 42px))}}
@media(max-width:520px){.content-moderation-search{grid-template-columns:1fr}.content-moderation-search label:first-child{grid-column:auto}.content-moderation-stats{gap:7px}.content-moderation-stats>a{padding:10px}.content-moderation-stats b{font-size:20px}}


/* KOVCHEG CMS 3.0. */
:root{
 --accent:#8b5cf6!important;--accent-hover:#7c3aed!important;--accent-strong:#a78bfa!important;
 --accent-soft:color-mix(in srgb,#8b5cf6 14%,var(--panel))!important;
 --ui-accent-soft:color-mix(in srgb,#8b5cf6 13%,var(--panel))!important;
 --focus-ring:0 0 0 3px color-mix(in srgb,#8b5cf6 22%,transparent)!important;
 --control-radius:14px;--control-shadow:0 8px 24px rgba(40,22,74,.16)
}
body[data-theme=dark],body[data-theme=black]{--accent:#a78bfa!important;--accent-hover:#8b5cf6!important;--accent-strong:#c4b5fd!important;--accent-soft:rgba(139,92,246,.16)!important;--ui-accent-soft:rgba(139,92,246,.15)!important}
button,.btn,.primary,.primary-action,.soft-action,.archive-button,.send-btn{border-radius:var(--control-radius)!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease!important}
.btn:not(.btn-primary):not(.btn-danger):not(.btn-warning),.soft-action,.archive-button{background:color-mix(in srgb,var(--panel-2) 93%,#8b5cf6 7%)!important;border:1px solid color-mix(in srgb,var(--border) 84%,#8b5cf6 16%)!important;color:var(--text)!important}
.btn-primary,.primary,.primary-action,.send-btn,.global-player-play,.music-page-player-play,.wall-comment-send{
 background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 54%,#d946ef 135%)!important;color:#fff!important;border:0!important;box-shadow:0 8px 22px rgba(124,58,237,.28)!important
}
.btn-primary:hover,.primary:hover,.primary-action:hover,.send-btn:hover,.global-player-play:hover,.music-page-player-play:hover:hover{transform:translateY(-1px);box-shadow:0 11px 28px rgba(124,58,237,.36)!important;filter:none!important}
input:focus,textarea:focus,select:focus{border-color:#8b5cf6!important;box-shadow:var(--focus-ring)!important}input[type=range]{accent-color:#8b5cf6!important}
.chat-item.active{background:linear-gradient(135deg,#7c3aed,#8b5cf6)!important}.avatar,.avatar-sm,.avatar-xs,.profile-avatar,.brand-mark,.logo-large{background:linear-gradient(145deg,#7c3aed,#d946ef)!important}
.notification-bell em,.chat-side em{background:#8b5cf6!important}.reactions button{background:var(--accent-soft)!important;color:var(--accent)!important}
.kovcheg-soft-navigating [data-kovcheg-page-content]{opacity:1!important;pointer-events:auto!important;filter:none!important}.kovcheg-soft-navigating{cursor:default!important}
.user-storage-editor{display:grid;gap:12px;padding:16px;border:1px solid color-mix(in srgb,var(--border) 84%,#8b5cf6 16%);border-radius:18px;background:color-mix(in srgb,var(--panel) 96%,#8b5cf6 4%);margin:14px 0}.user-storage-editor>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-storage-editor>div small{color:var(--muted)}
.global-audio-player{border-radius:18px!important;border-color:color-mix(in srgb,var(--border) 80%,#8b5cf6 20%)!important;background:color-mix(in srgb,var(--panel) 96%,#8b5cf6 4%)!important;box-shadow:0 9px 28px rgba(21,12,38,.18)!important}.global-audio-player button{border-radius:12px!important}.global-audio-player .player-repeat.active{color:#c4b5fd!important;background:rgba(139,92,246,.16)!important}
.music-page-player{border-radius:20px!important;border-color:color-mix(in srgb,var(--border) 78%,#8b5cf6 22%)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--panel) 97%,#8b5cf6 3%),color-mix(in srgb,var(--panel) 97%,#d946ef 3%))!important}

@media(max-width:760px){
 :root{--mobile-topbar-height:52px!important}
 body.auth-shell>.topbar{height:calc(52px + env(safe-area-inset-top))!important;min-height:calc(52px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 7px 0!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:5px!important;align-items:center!important;overflow:hidden!important}
 .topbar-left-170,.topbar-left-170 .brand,.topbar-left-170 .brand-logo{width:38px!important;min-width:38px!important;height:38px!important}.topbar-left-170 .brand-logo{border-radius:10px!important}.brand-site-name-170,.topbar-global-search{display:none!important}
 .global-audio-player{position:relative!important;inset:auto!important;transform:none!important;grid-column:2!important;grid-row:1!important;width:100%!important;max-width:none!important;height:40px!important;min-height:40px!important;padding:3px 4px!important;margin:0!important;display:grid!important;grid-template-columns:28px 34px 28px 26px minmax(32px,46px)!important;grid-template-rows:1fr!important;gap:2px!important;border:0!important;border-radius:15px!important;background:color-mix(in srgb,var(--panel-2) 92%,#8b5cf6 8%)!important;box-shadow:none!important;overflow:hidden!important}
 .global-audio-player [data-player-prev],.global-audio-player [data-player-next],.global-audio-player [data-player-mute]{display:grid!important;width:28px!important;height:28px!important;padding:0!important;place-items:center!important;font-size:12px!important}
 .global-audio-player .global-player-play{display:grid!important;width:34px!important;height:34px!important;padding:0!important;border-radius:50%!important;place-items:center!important;font-size:13px!important;box-shadow:0 5px 15px rgba(124,58,237,.3)!important}
 .global-audio-player [data-player-repeat],.global-player-meta,.global-player-progress-wrap{display:none!important}
 .global-audio-player [data-player-volume]{display:block!important;width:100%!important;min-width:0!important;height:3px!important;padding:0!important;margin:0!important}
 .topbar-actions{grid-column:3!important;grid-row:1!important;min-width:58px!important;gap:0!important}.notification-bell{width:30px!important;height:30px!important}.top-profile{padding:2px!important}.top-profile span,.top-profile i{display:none!important}
 #kovcheg-page-content{padding-top:calc(52px + env(safe-area-inset-top))!important}
 body.mobile-messenger-page #kovcheg-page-content{padding-top:0!important}
 body.mobile-messenger-page>.topbar{position:fixed!important;top:0!important;left:0!important;right:0!important}
 .auth-shell>.messenger,.messenger{height:calc(var(--mobile-viewport-height,100dvh) - 52px - env(safe-area-inset-top))!important;margin-top:calc(52px + env(safe-area-inset-top))!important}
 body.mobile-messenger-page.mobile-chat-active .messenger{padding-bottom:0!important}
 body.mobile-messenger-page.mobile-chat-active .messenger>.site-sidebar{display:none!important}
 body.mobile-messenger-page.mobile-chat-active .messenger>.chat-list{display:none!important}
 body.mobile-messenger-page.mobile-chat-active .messenger>.conversation-shell{inset:0!important;bottom:0!important;height:100%!important}
 body.mobile-messenger-page.mobile-chat-active .mobile-bottom-nav,body.mobile-messenger-page.mobile-chat-active [data-mobile-bottom-nav]{display:none!important}
 body.mobile-messenger-page.mobile-chat-active .conversation .composer.composer-modern{padding-bottom:max(7px,env(safe-area-inset-bottom))!important;margin-bottom:0!important;bottom:0!important}
 body.mobile-messenger-page.mobile-chat-active .messages{padding-bottom:12px!important}
}


/* KOVCHEG CMS 3.0. */
.composer-attach-wrap{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 auto!important}
.composer-attach-toggle[aria-expanded="true"]{background:var(--accent-soft)!important;color:var(--accent)!important}
.composer-attach-menu{position:absolute!important;left:0!important;bottom:calc(100% + 9px)!important;z-index:260!important;width:278px!important;max-width:min(278px,calc(100vw - 24px))!important;padding:7px!important;display:grid!important;gap:3px!important;border:1px solid color-mix(in srgb,var(--border) 86%,var(--accent) 14%)!important;border-radius:17px!important;background:var(--panel)!important;box-shadow:0 18px 48px rgba(0,0,0,.28)!important}
.composer-attach-menu[hidden]{display:none!important}
.composer-attach-action{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:9px 10px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--text)!important;text-align:left!important;cursor:pointer!important}
.composer-attach-action:hover,.composer-attach-action:focus-visible{background:var(--accent-soft)!important;color:var(--text)!important;outline:0!important}
.composer-attach-action>span:last-of-type{display:grid!important;gap:1px!important;min-width:0!important}.composer-attach-action b{font-size:13px!important}.composer-attach-action small{font-size:11px!important;color:var(--muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.composer-attach-icon{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:11px!important;background:color-mix(in srgb,var(--accent-soft) 82%,var(--panel))!important;color:var(--accent)!important;font-size:19px!important;font-weight:800!important}

@media(max-width:760px){
 :root{--mobile-topbar-height:44px!important}
 body.auth-shell>.topbar{height:calc(44px + env(safe-area-inset-top))!important;min-height:calc(44px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 4px 0!important;grid-template-columns:30px minmax(0,1fr) 50px!important;gap:3px!important;overflow:visible!important}
 .topbar-left-170,.topbar-left-170 .brand,.topbar-left-170 .brand-logo{width:30px!important;min-width:30px!important;height:30px!important}.topbar-left-170 .brand-logo{border-radius:8px!important}
 .global-audio-player{height:32px!important;min-height:32px!important;padding:2px 3px!important;grid-template-columns:21px 28px 21px 20px minmax(22px,34px)!important;gap:1px!important;border-radius:12px!important}
 .global-audio-player [data-player-prev],.global-audio-player [data-player-next],.global-audio-player [data-player-mute]{width:21px!important;height:21px!important;min-width:21px!important;font-size:10px!important;border-radius:8px!important}
 .global-audio-player .global-player-play{width:28px!important;height:28px!important;min-width:28px!important;font-size:11px!important;box-shadow:0 3px 10px rgba(124,58,237,.25)!important}
 .global-audio-player [data-player-volume]{height:2px!important}
 .topbar-actions{min-width:50px!important}.notification-bell{width:25px!important;height:25px!important}.top-profile{width:25px!important;height:25px!important;padding:0!important}.top-profile .avatar-xs{width:25px!important;height:25px!important}
 #kovcheg-page-content{padding-top:calc(44px + env(safe-area-inset-top))!important}
 body.mobile-messenger-page #kovcheg-page-content{padding-top:0!important}
 .auth-shell>.messenger,.messenger{height:calc(var(--mobile-viewport-height,100dvh) - 44px - env(safe-area-inset-top))!important;margin-top:calc(44px + env(safe-area-inset-top))!important}
 .conversation-head{position:relative!important;z-index:130!important;flex:0 0 50px!important;height:50px!important;min-height:50px!important;padding:4px max(6px,env(safe-area-inset-right)) 4px max(4px,env(safe-area-inset-left))!important;background:var(--panel)!important;border-bottom:1px solid var(--border)!important}
 .mobile-back{position:relative!important;z-index:3!important;display:grid!important;place-items:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;border-radius:12px!important;font-size:30px!important;color:var(--text)!important;background:transparent!important}
 .mobile-back:active{background:var(--accent-soft)!important;color:var(--accent)!important}
 .conversation-title h1{font-size:14px!important}.conversation-title small{font-size:10px!important}
 .composer-modern .composer-tools{max-width:128px!important;overflow:visible!important}
 .composer-attach-menu{position:fixed!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;bottom:calc(var(--mobile-keyboard-gap,0px) + 64px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;border-radius:18px!important}
 body.mobile-messenger-page.mobile-chat-active .composer-attach-menu{bottom:calc(var(--mobile-keyboard-gap,0px) + 64px + env(safe-area-inset-bottom))!important}
 .mobile-keyboard-open .composer-attach-menu{bottom:calc(var(--mobile-keyboard-gap,0px) + 58px)!important}
}
@media(max-width:360px){
 body.auth-shell>.topbar{grid-template-columns:28px minmax(0,1fr) 45px!important;padding-inline:3px!important}
 .topbar-left-170,.topbar-left-170 .brand,.topbar-left-170 .brand-logo{width:28px!important;min-width:28px!important;height:28px!important}
 .global-audio-player{grid-template-columns:19px 26px 19px 18px minmax(18px,28px)!important}.global-audio-player .global-player-play{width:26px!important;height:26px!important;min-width:26px!important}
 .topbar-actions{min-width:45px!important}.composer-modern .composer-tools{max-width:118px!important}
}


/* KOVCHEG CMS 3.0. */
body[data-theme="black"]{
 --bg:#000;--panel:#0b0b0d;--panel-2:#151518;--soft:#111114;--input:#151518;
 --text:#f4f4f6;--muted:#9a9aa2;--border:#29292e;--topbar:#08080a;
 --message-in:#18181c;--message-out:#251d31;--message-in-110:#18181c;--message-out-110:#251d31;
 --message-in-120:#18181c;--message-out-120:#251d31;--message-text-110:#f5f5f7;
 color-scheme:dark;background:#000;color:var(--text)
}
body[data-theme="dark"]{
 --message-in:#1a222b;--message-out:#29213a;--message-in-110:#1a222b;--message-out-110:#29213a;
 --message-in-120:#1a222b;--message-out-120:#29213a;--message-text-110:#f3f5f7
}
body[data-theme="light"]{
 --bg:#f3f5f8;--panel:#fff;--panel-2:#f6f7fa;--soft:#f1f2f6;--input:#fff;
 --text:#151820;--muted:#67707d;--border:#dfe3ea;--message-in:#fff;--message-out:#eee8fb;
 --message-in-110:#fff;--message-out-110:#eee8fb;--message-in-120:#fff;--message-out-120:#eee8fb;
 --message-text-110:#171923;color-scheme:light
}
body[data-theme="black"] :is(.person-card,.vk-profile-info-card,.vk-profile-stats,.vk-right-card,.weather-widget,.profile-people-card,.profile-side-card,.empty-card,.contacts-card,.settings-card,.post-card,.story-card),
body[data-theme="dark"] :is(.person-card,.vk-profile-info-card,.vk-profile-stats,.vk-right-card,.weather-widget,.profile-people-card,.profile-side-card,.empty-card,.contacts-card,.settings-card){background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}
body[data-theme="black"] :is(.person-card,.vk-profile-info-card,.vk-profile-stats,.vk-right-card,.weather-widget,.profile-people-card,.profile-side-card) :is(h1,h2,h3,b,strong,dt,dd,p,span,a),
body[data-theme="dark"] :is(.person-card,.vk-profile-info-card,.vk-profile-stats,.vk-right-card,.weather-widget,.profile-people-card,.profile-side-card) :is(h1,h2,h3,b,strong,dt,dd,p,span,a){color:inherit}
body[data-theme="black"] :is(.person-card,.vk-profile-info-card,.vk-right-card,.weather-widget) small,
body[data-theme="dark"] :is(.person-card,.vk-profile-info-card,.vk-right-card,.weather-widget) small{color:var(--muted)!important}
body[data-theme="black"] .message .bubble,body[data-theme="black"] .message.mine .bubble{background:var(--message-in-120)!important;color:var(--text)!important;border-color:var(--border)!important;filter:none!important}
body[data-theme="black"] .message.mine .bubble{background:var(--message-out-120)!important}
body[data-theme="black"] .message .bubble :is(p,span,div,a,b,strong,small,time){color:inherit}
body[data-theme="black"] .conversation,body[data-theme="black"] .messages,body[data-theme="black"] .messenger,body[data-theme="black"] .chat-panel{background:#000!important}
body[data-theme="light"] :is(.person-card,.vk-profile-info-card,.vk-profile-stats,.vk-right-card,.weather-widget,.profile-people-card,.profile-side-card){background:#fff!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:0 10px 30px rgba(25,31,45,.055)}

.emoji-picker-modern{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(390px,calc(100vw - 24px));max-height:360px;padding:8px;border:1px solid var(--border);border-radius:18px;background:var(--panel);box-shadow:0 20px 60px rgba(0,0,0,.28)}
.emoji-picker-toolbar{display:flex;gap:4px;padding:2px 2px 7px;overflow-x:auto;scrollbar-width:none}.emoji-picker-toolbar::-webkit-scrollbar{display:none}
.emoji-picker-toolbar button{flex:0 0 34px;width:34px;height:32px;border:0;border-radius:10px;background:transparent;font-size:18px;cursor:pointer}.emoji-picker-toolbar button.active{background:var(--soft)}
.emoji-grid-modern{display:grid!important;grid-template-columns:repeat(8,minmax(30px,1fr))!important;gap:2px!important;max-height:285px!important;overflow-y:auto!important;padding:2px!important}
.emoji-grid-modern button{display:grid!important;place-items:center!important;min-width:0!important;width:100%!important;height:36px!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;font-size:23px!important;line-height:1!important;cursor:pointer!important}.emoji-grid-modern button:hover{background:var(--soft)!important}
.emoji-search{display:none!important}

@media(max-width:900px){
 :root{--mobile-topbar-height:32px!important}
 body.auth-shell>.topbar,.topbar{height:32px!important;min-height:32px!important;padding:0 max(4px,env(safe-area-inset-right)) 0 max(4px,env(safe-area-inset-left))!important;gap:3px!important}
 .topbar .brand-logo{width:20px!important;height:20px!important;border-radius:5px!important}.topbar .brand-name,.top-global-search{display:none!important}
 .topbar .global-audio-player{height:26px!important;min-height:26px!important;padding:0 3px!important;gap:2px!important;border-radius:8px!important;box-shadow:none!important}
 .global-audio-player button{width:20px!important;height:20px!important;min-width:20px!important;font-size:10px!important}.global-audio-player [data-player-title],.global-audio-player [data-player-artist],.global-audio-player [data-player-progress],.global-audio-player [data-player-time],.global-audio-player [data-player-repeat],.global-audio-player [data-player-volume]{display:none!important}
 .topbar .notification-bell,.topbar .user-menu-trigger{width:22px!important;height:22px!important;min-width:22px!important}.topbar .avatar-xs{width:20px!important;height:20px!important}
 .toast-stack,.message-toast,.generic-toast,.live-message-toast,.system-update-toast,.update-ready-banner,[data-update-toast],[data-system-update-notice]{display:none!important}
 .emoji-picker-modern{position:fixed!important;left:6px!important;right:6px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:min(58dvh,430px)!important;padding:7px!important;border-radius:16px!important}
 .emoji-grid-modern{grid-template-columns:repeat(7,minmax(34px,1fr))!important;max-height:calc(min(58dvh,430px) - 48px)!important}.emoji-grid-modern button{height:39px!important;font-size:24px!important}
 .sticker-picker{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:60dvh!important;overflow:auto!important}.sticker-picker button{min-height:88px!important}.sticker-picker img{width:76px!important;height:76px!important}
}


/* KOVCHEG CMS 3.0. */
.mobile-back{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media(max-width:900px){
 .topbar-actions{justify-content:flex-end!important;overflow:visible!important}
 .mobile-user-menu-button{display:grid!important;place-items:center!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:50%!important}
 .mobile-user-menu-button>.avatar-xs{display:grid!important;visibility:visible!important;opacity:1!important;overflow:hidden!important;border-radius:50%!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--border) 75%,transparent)!important}
 .mobile-user-menu-button>.avatar-xs img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
 .mobile-user-menu-button>span:not(.avatar-xs),.mobile-user-menu-button>i{display:none!important}
 .profile-menu-wrap{position:relative!important;display:grid!important;place-items:center!important}
 .profile-dropdown{right:0!important;left:auto!important;top:calc(100% + 7px)!important}
}
@media(max-width:760px){
 .mobile-back{pointer-events:auto!important;position:relative!important;z-index:999!important}
 .conversation-head{overflow:visible!important}
}
.emoji-picker-modern{width:min(430px,calc(100vw - 20px))!important;max-height:410px!important;padding:9px!important;border-radius:18px!important}
.emoji-picker-toolbar{gap:3px!important;padding-bottom:8px!important}
.emoji-picker-toolbar button{flex-basis:36px!important;width:36px!important;height:34px!important;font-size:19px!important}
.emoji-grid-modern{grid-template-columns:repeat(10,minmax(30px,1fr))!important;gap:2px!important;max-height:330px!important;scrollbar-width:thin!important}
.emoji-grid-modern button{height:38px!important;font-size:24px!important;border-radius:9px!important}
@media(max-width:900px){
 .emoji-picker-modern{left:5px!important;right:5px!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;max-height:min(66dvh,520px)!important}
 .emoji-picker-toolbar button{flex-basis:34px!important;width:34px!important;height:32px!important;font-size:18px!important}
 .emoji-grid-modern{grid-template-columns:repeat(8,minmax(32px,1fr))!important;max-height:calc(min(66dvh,520px) - 50px)!important}
 .emoji-grid-modern button{height:40px!important;font-size:25px!important}
}
@media(max-width:380px){.emoji-grid-modern{grid-template-columns:repeat(7,minmax(32px,1fr))!important}}

/* KOVCHEG CMS 3.0. */
@media (max-width:900px){
  /* A dialog owns the full mobile viewport: no bottom site menu may leak back in. */
  body.mobile-messenger-page.mobile-chat-active .mobile-bottom-nav,
  html.mobile-chat-active .mobile-bottom-nav,
  .messenger[data-chat-id]:not([data-chat-id="0"]) .mobile-bottom-nav{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* Keep the admin control strip physically attached to the 32 px site header. */
  body:has(.admin-shell) #kovcheg-page-content{padding-top:32px!important}
  .admin-shell{padding-top:42px!important;min-height:calc(100dvh - 32px)!important}
  .admin-mobile-bar{
    top:32px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    border-top:0!important;
    border-bottom:1px solid var(--border)!important;
    border-radius:0!important;
    background:var(--topbar)!important;
    box-shadow:0 5px 16px rgba(0,0,0,.14)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .admin-content{padding-top:8px!important}
  .admin-nav{top:74px!important}
  .admin-nav-overlay{inset:74px 0 var(--admin-footer-height) 0!important}

  /* Account menu: the avatar is the trigger and the sheet always sits above the SPA. */
  .profile-menu-wrap{z-index:1900!important;overflow:visible!important}
  .mobile-user-menu-button{position:relative!important;z-index:1902!important;pointer-events:auto!important}
  .profile-dropdown{
    position:fixed!important;
    top:36px!important;
    right:max(5px,env(safe-area-inset-right))!important;
    left:auto!important;
    z-index:2000!important;
    width:min(292px,calc(100vw - 10px))!important;
    max-height:calc(100dvh - 44px)!important;
    overflow:auto!important;
    border-radius:16px!important;
    box-shadow:0 22px 70px rgba(0,0,0,.45)!important;
  }

  /* A short title is shown in full; long titles use the JS-created looping strip. */
  .global-player-meta{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  .global-player-meta>b[data-player-title]{
    display:block!important;
    min-width:0!important;
    max-width:none!important;
    overflow:hidden!important;
    color:var(--text)!important;
    font-size:10px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    text-overflow:clip!important;
  }
  .global-player-meta>b[data-player-title].track-title-short{overflow:visible!important}
  .track-title-marquee{
    display:inline-flex!important;
    align-items:center!important;
    min-width:max-content!important;
    gap:30px!important;
    will-change:transform;
    animation:kovcheg-title-loop var(--track-marquee-duration,10s) linear infinite;
  }
  .track-title-marquee>span{display:inline-block;white-space:nowrap}
  @keyframes kovcheg-title-loop{
    0%,14%{transform:translateX(0)}
    68%,82%{transform:translateX(calc(-50% - 15px))}
    100%{transform:translateX(0)}
  }
  .topbar .global-audio-player{
    grid-template-columns:20px 24px 20px minmax(34px,1fr)!important;
  }
  .global-audio-player [data-player-repeat],
  .global-audio-player [data-player-progress],
  .global-audio-player [data-player-time],
  .global-audio-player [data-player-volume],
  .global-audio-player [data-player-mute]{display:none!important}
}

/* Admin content metadata editor. */
.content-editor{position:relative}
.content-editor>summary{list-style:none;cursor:pointer}.content-editor>summary::-webkit-details-marker{display:none}
.content-editor-form{
  position:absolute;right:0;top:calc(100% + 7px);z-index:80;width:min(720px,calc(100vw - 36px));
  display:grid;gap:11px;padding:16px;border:1px solid var(--border);border-radius:18px;
  background:var(--panel);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.34)
}
.content-editor-form h3{margin:0;font-size:17px}.content-editor-form p{margin:-6px 0 2px;color:var(--muted);font-size:12px}
.content-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.content-editor-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}
.content-editor-form :is(input,select,textarea){width:100%;min-width:0;color:var(--text);background:var(--input);border:1px solid var(--border);border-radius:11px;padding:9px 10px}
.content-editor-form textarea{min-height:82px;resize:vertical}.content-editor-form .full{grid-column:1/-1}
.content-editor-cover{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.content-editor-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.content-moderation-card:has(.content-editor[open]){z-index:20}
@media(max-width:900px){
 .content-editor-form{position:fixed;left:6px;right:6px;top:78px;bottom:calc(var(--admin-footer-height) + 6px);width:auto;max-height:none;overflow:auto;border-radius:16px}
 .content-editor-grid{grid-template-columns:1fr}.content-editor-form .full{grid-column:auto}.content-editor-cover{grid-template-columns:1fr}
}


/* KOVCHEG CMS 3.0. */
.global-audio-player.is-idle .global-player-progress-wrap,.global-audio-player.has-no-track .global-player-progress-wrap,[data-player-mirror].is-idle [data-player-mirror-progress],[data-player-mirror].is-idle [data-player-mirror-time]{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
input[type="range"]{--range-pct:0%;appearance:none;-webkit-appearance:none;background:linear-gradient(90deg,var(--accent) 0 var(--range-pct),color-mix(in srgb,var(--border) 80%,transparent) var(--range-pct) 100%)!important;border-radius:999px!important;height:5px!important;outline:0!important}
input[type="range"]::-webkit-slider-runnable-track{height:5px;background:transparent;border-radius:999px}input[type="range"]::-moz-range-track{height:5px;background:transparent;border-radius:999px}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;margin-top:-5px;border:2px solid var(--panel);border-radius:50%;background:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.28)}input[type="range"]::-moz-range-thumb{width:15px;height:15px;border:2px solid var(--panel);border-radius:50%;background:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.28)}


/* KOVCHEG 2.3.5 — complete player ranges and completed-state cleanup. */
.global-audio-player.is-idle .global-player-progress-wrap,
.global-audio-player.has-no-track .global-player-progress-wrap,
.global-audio-player.is-finished .global-player-progress-wrap,
[data-player-mirror].is-idle [data-player-mirror-progress],
[data-player-mirror].is-idle [data-player-mirror-time]{display:none!important}
.global-player-progress-wrap input[type="range"],.global-player-volume,input[data-player-mirror-progress],input[data-player-mirror-volume]{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important}
.global-player-progress-wrap,.global-player-volume{min-width:0!important}
.global-player-progress-wrap input[type="range"]::-webkit-slider-runnable-track,.global-player-volume::-webkit-slider-runnable-track,input[data-player-mirror-progress]::-webkit-slider-runnable-track,input[data-player-mirror-volume]::-webkit-slider-runnable-track{width:100%!important;height:4px!important;border-radius:999px!important;background:linear-gradient(90deg,var(--accent) 0 var(--range-progress,0%),color-mix(in srgb,var(--border) 88%,transparent) var(--range-progress,0%) 100%)!important}
.global-player-progress-wrap input[type="range"]::-moz-range-track,.global-player-volume::-moz-range-track,input[data-player-mirror-progress]::-moz-range-track,input[data-player-mirror-volume]::-moz-range-track{width:100%!important;height:4px!important;border:0!important;border-radius:999px!important;background:color-mix(in srgb,var(--border) 88%,transparent)!important}
.global-player-progress-wrap input[type="range"]::-moz-range-progress,.global-player-volume::-moz-range-progress,input[data-player-mirror-progress]::-moz-range-progress,input[data-player-mirror-volume]::-moz-range-progress{height:4px!important;border-radius:999px!important;background:var(--accent)!important}

/* KOVCHEG CMS 3.0. */
.global-audio-player.has-no-track .global-player-meta,.global-audio-player.is-idle .global-player-meta,.global-audio-player.has-no-track .global-player-progress-wrap,.global-audio-player.is-idle .global-player-progress-wrap{display:none!important}
.global-audio-player.has-no-track,.global-audio-player.is-idle{grid-template-columns:auto auto auto auto 1fr auto auto!important;opacity:.78}
.modern-module-installer{display:grid;gap:12px;padding:0!important;border:0!important;background:transparent!important}
.module-drop-surface{width:100%;min-height:190px;display:grid;place-items:center;align-content:center;gap:8px;border:1px dashed color-mix(in srgb,var(--accent) 72%,var(--border));border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 8%,var(--panel)),var(--panel));color:var(--text);cursor:pointer;transition:.18s ease}
.module-drop-surface:hover,.module-drop-surface.dragging{transform:translateY(-1px);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,var(--panel))}.module-drop-surface .drop-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:26px;box-shadow:0 12px 30px color-mix(in srgb,var(--accent) 25%,transparent)}.module-drop-surface strong{font-size:20px}.module-drop-surface small{color:var(--muted)}
.module-install-queue{display:grid;gap:8px}.module-install-row{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);gap:3px;padding:13px 15px;border:1px solid var(--border);border-radius:15px;background:var(--panel)}.module-install-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.module-install-row small{color:var(--muted)}.module-install-row i{position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--accent);transition:.2s}.module-install-row.is-running i{width:72%;animation:module-install-progress 1.1s ease-in-out infinite}.module-install-row.is-done{border-color:color-mix(in srgb,#35b878 60%,var(--border))}.module-install-row.is-done i{width:100%;background:#35b878}.module-install-row.is-error{border-color:color-mix(in srgb,#e55252 60%,var(--border))}.module-install-row.is-error i{width:100%;background:#e55252}@keyframes module-install-progress{0%{transform:translateX(-45%)}50%{transform:translateX(35%)}100%{transform:translateX(110%)}}
@media(max-width:700px){.module-drop-surface{min-height:145px;border-radius:17px;padding:18px}.module-drop-surface strong{font-size:16px;text-align:center}}

/* KOVCHEG CMS 3.0. */
.global-audio-player.is-idle .global-player-progress-wrap,
.global-audio-player.has-no-track .global-player-progress-wrap,
.global-audio-player.is-idle .global-player-volume,
.global-audio-player.has-no-track .global-player-volume{display:none!important;visibility:hidden!important;pointer-events:none!important}
.global-audio-player.is-idle .global-player-meta,
.global-audio-player.has-no-track .global-player-meta{display:none!important}
.global-audio-player.is-idle,.global-audio-player.has-no-track{grid-template-columns:auto auto auto auto 1fr auto!important;min-width:170px!important}
.global-audio-player.is-idle [data-player-mute],.global-audio-player.has-no-track [data-player-mute]{margin-left:auto}
.wall-publisher.is-uploading{pointer-events:none;opacity:.82}
@media(max-width:760px){
 .mobile-bottom-nav,[data-mobile-bottom-nav]{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:2200!important;pointer-events:auto}
 html.mobile-chat-active .mobile-bottom-nav,html.mobile-chat-active [data-mobile-bottom-nav],body.mobile-chat-active .mobile-bottom-nav,body.mobile-chat-active [data-mobile-bottom-nav],.messenger[data-chat-id]:not([data-chat-id="0"])~.mobile-bottom-nav{display:none!important;pointer-events:none!important}
}


/* KOVCHEG CMS 3.0. */
html{scrollbar-gutter:stable;overflow-anchor:none}
body.auth-shell,#kovcheg-page-content,#kovcheg-page-content>.site-page-shell{min-width:0!important}
#kovcheg-page-content,.site-page-shell,.vk-profile-page,.vk-profile-grid,.vk-profile-left,.vk-profile-main,.vk-profile-right,.feed-page,.people-page-060,.settings-page-060,.weather-page-170{transition:none!important}
html.kovcheg-soft-navigating #kovcheg-page-content{opacity:1!important;pointer-events:auto!important}
html.kovcheg-layout-stable #kovcheg-page-content{animation:none!important}
.topbar.topbar-100{contain:layout paint;transform:translateZ(0)}
.global-audio-player{contain:layout paint}
.track-title-marquee{contain:layout paint;text-rendering:geometricPrecision}

@media(min-width:901px){
 body.auth-shell{overflow:hidden!important}
 body.auth-shell #kovcheg-page-content{height:calc(100dvh - var(--topbar-height,58px))!important;min-height:0!important;overflow:hidden!important}
 body.auth-shell #kovcheg-page-content>.site-page-shell{height:100%!important;min-height:0!important;overflow:hidden!important}
 body.auth-shell #kovcheg-page-content>.site-page-shell>.site-sidebar{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.auth-shell #kovcheg-page-content .vk-profile-page.profile-page-090{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;padding:14px!important;margin:0!important;width:100%!important;max-width:none!important}
 body.auth-shell #kovcheg-page-content .vk-profile-grid-090{height:100%!important;min-height:0!important;max-height:100%!important;grid-template-columns:260px minmax(420px,1fr) var(--profile-right,270px)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;overflow:hidden!important}
 body.auth-shell #kovcheg-page-content .vk-profile-left,
 body.auth-shell #kovcheg-page-content .vk-profile-main,
 body.auth-shell #kovcheg-page-content .vk-profile-right{height:100%!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-width:none!important}
 body.auth-shell #kovcheg-page-content .vk-profile-left::-webkit-scrollbar,
 body.auth-shell #kovcheg-page-content .vk-profile-main::-webkit-scrollbar,
 body.auth-shell #kovcheg-page-content .vk-profile-right::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
 body.auth-shell #kovcheg-page-content .vk-profile-left{align-content:start!important}
 body.auth-shell #kovcheg-page-content .vk-profile-main{align-content:start!important}
 body.auth-shell #kovcheg-page-content .vk-profile-right{align-content:start!important}
}
@media(max-width:900px){
 html{scrollbar-gutter:auto}
 body.auth-shell{overflow-x:hidden!important;overflow-y:auto!important}
 body.auth-shell #kovcheg-page-content{height:auto!important;min-height:calc(100dvh - var(--mobile-topbar-height,58px))!important;overflow:visible!important}
 body.auth-shell #kovcheg-page-content>.site-page-shell{height:auto!important;min-height:calc(100dvh - var(--mobile-topbar-height,58px))!important;overflow:visible!important}
 body.auth-shell #kovcheg-page-content .vk-profile-page.profile-page-090,
 body.auth-shell #kovcheg-page-content .vk-profile-grid-090,
 body.auth-shell #kovcheg-page-content .vk-profile-left,
 body.auth-shell #kovcheg-page-content .vk-profile-main,
 body.auth-shell #kovcheg-page-content .vk-profile-right{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.auth-shell #kovcheg-page-content .vk-profile-grid-090{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;align-items:start!important}
}
@media(prefers-reduced-motion:reduce){.track-title-marquee{animation:none!important;transform:none!important}}



/* KOVCHEG CMS 3.0. */
.profile-menu-wrap{position:relative!important;overflow:visible!important;z-index:2400!important}.topbar,.topbar-actions{overflow:visible!important}.profile-dropdown,[data-profile-menu]{position:absolute!important;right:0!important;top:calc(100% + 8px)!important;z-index:2410!important;min-width:240px!important;max-height:min(70dvh,560px)!important;overflow:auto!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--panel)!important;color:var(--text)!important;box-shadow:0 24px 60px rgba(0,0,0,.42)!important}.profile-dropdown[hidden],[data-profile-menu][hidden]{display:none!important}.profile-menu-button,.mobile-user-menu-button,[data-profile-menu-button]{pointer-events:auto!important;touch-action:manipulation!important;position:relative!important;z-index:2411!important}
@media(max-width:700px){.profile-dropdown,[data-profile-menu]{position:fixed!important;right:8px!important;top:calc(var(--topbar-height,44px) + 6px)!important;left:auto!important;width:min(300px,calc(100vw - 16px))!important;max-height:calc(100dvh - var(--topbar-height,44px) - 20px)!important}}


/* KOVCHEG CMS 3.0. */

html,body{overflow-anchor:auto!important}
body.auth-shell{overflow-x:hidden!important}
#kovcheg-page-content{min-width:0!important;opacity:1!important;filter:none!important;transform:none!important}
#kovcheg-page-content>.site-page-shell{width:100%!important;max-width:1440px!important;margin:0 auto!important;min-height:calc(100dvh - var(--topbar-height,58px))!important;height:auto!important;overflow:visible!important;display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;align-items:stretch!important}
#kovcheg-page-content>.site-page-shell>.site-sidebar{height:auto!important;min-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important}
#kovcheg-page-content :is(.archive-page,.media-library-page,.feed-page,.people-page-060,.settings-page-060,.weather-page-170){min-width:0!important;width:100%!important;max-width:none!important;height:auto!important;overflow:visible!important}
html.kovcheg-soft-navigating #kovcheg-page-content{pointer-events:auto!important;opacity:1!important}
@media(min-width:901px){
 body.auth-shell{overflow-y:auto!important}
 #kovcheg-page-content{height:auto!important;min-height:calc(100dvh - var(--topbar-height,58px))!important;overflow:visible!important}
 #kovcheg-page-content .vk-profile-page.profile-page-090{width:100%!important;max-width:1480px!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0 auto!important;padding:14px!important}
 #kovcheg-page-content .vk-profile-grid-090{height:calc(100dvh - var(--topbar-height,58px) - 28px)!important;min-height:520px!important;max-height:none!important;overflow:hidden!important;grid-template-columns:260px minmax(420px,1fr) var(--profile-right,270px)!important;align-items:stretch!important}
 #kovcheg-page-content .vk-profile-left,#kovcheg-page-content .vk-profile-main,#kovcheg-page-content .vk-profile-right{height:100%!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
}
@media(max-width:900px){
 #kovcheg-page-content{height:auto!important;min-height:calc(100dvh - var(--mobile-topbar-height,44px))!important;overflow:visible!important}
 #kovcheg-page-content>.site-page-shell{display:block!important;max-width:none!important;min-height:calc(100dvh - var(--mobile-topbar-height,44px))!important;height:auto!important;overflow:visible!important}
 #kovcheg-page-content>.site-page-shell>.site-sidebar{height:auto!important;min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important}
 #kovcheg-page-content .vk-profile-page.profile-page-090,#kovcheg-page-content .vk-profile-grid-090,#kovcheg-page-content .vk-profile-left,#kovcheg-page-content .vk-profile-main,#kovcheg-page-content .vk-profile-right{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 #kovcheg-page-content .vk-profile-grid-090{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important}
}


/* KOVCHEG CMS 3.0. */
html,body{min-width:0!important}
[data-kovcheg-page-content]{min-width:0!important;contain:layout style}
.kovcheg-soft-navigating [data-kovcheg-page-content]{pointer-events:auto!important;opacity:1!important;filter:none!important}
.messages{overflow-anchor:none!important}


/* KOVCHEG CMS 3.0. */

#messages,.messages{scroll-behavior:auto!important;overscroll-behavior:contain!important;overflow-anchor:auto!important}
.profile-menu-wrap{position:relative!important;overflow:visible!important;z-index:5000!important}
.topbar,.topbar-actions{overflow:visible!important}
.profile-dropdown,[data-profile-menu]{z-index:5010!important;pointer-events:auto!important}
.profile-dropdown:not([hidden]),[data-profile-menu]:not([hidden]){display:block!important;visibility:visible!important;opacity:1!important}
.profile-menu-button,.mobile-user-menu-button,[data-profile-menu-button]{pointer-events:auto!important;touch-action:manipulation!important;z-index:5011!important}
html.kovcheg-soft-navigating{cursor:default!important}html.kovcheg-soft-navigating [data-kovcheg-page-content]{pointer-events:auto!important;opacity:1!important}

/* KOVCHEG CMS 3.0. */
:root{--kovcheg-topbar-desktop:58px;--kovcheg-topbar-mobile:58px;--kovcheg-mobile-nav:58px}
.notification-bell-wrap,.profile-menu-wrap{position:relative!important;overflow:visible!important}
.notification-bell-panel,.profile-dropdown{z-index:15050!important;pointer-events:auto!important;visibility:visible!important;opacity:1!important}
.notification-bell-panel:not([hidden]),.profile-dropdown:not([hidden]){display:block!important}
.notification-bell-panel[hidden],.profile-dropdown[hidden]{display:none!important}

.message .bubble{position:relative!important;padding-top:10px!important}
.message-action-shell{position:absolute;top:5px;right:6px;z-index:70}
.message-more-button{width:30px;height:27px;padding:0;border:0;border-radius:9px;background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--muted);font-weight:900;letter-spacing:1px;display:grid;place-items:center;opacity:0;transform:translateY(-2px);transition:opacity .12s ease,background .12s ease;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.message:hover .message-more-button,.message:focus-within .message-more-button,.message-action-shell:focus-within .message-more-button{opacity:1}
.message-more-button:hover,.message-more-button[aria-expanded=true]{background:var(--panel-2);color:var(--text)}
.message-action-menu{position:absolute;right:0;top:32px;min-width:172px;padding:6px;display:grid;gap:2px;background:var(--panel);border:1px solid var(--border);border-radius:13px;box-shadow:0 18px 48px rgba(0,0,0,.28);z-index:90}
.message-action-menu[hidden]{display:none!important}
.message-action-menu button{width:100%;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:7px;border:0;background:transparent;color:var(--text);text-align:left;padding:8px 10px;border-radius:9px;white-space:nowrap}
.message-action-menu button:hover,.message-action-menu button:focus-visible{background:var(--panel-2)}
.message-action-menu button.danger{color:var(--danger)}
.message-action-menu button span{text-align:center;font-size:16px}
.message-actions{display:none!important}

.wall-comments{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important;min-width:0!important;padding:10px 12px 12px!important;overflow:visible!important}
.wall-comments-list{display:flex!important;flex-direction:column!important;gap:9px!important;width:100%!important;min-width:0!important;overflow:visible!important}
.wall-comment{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:start!important;gap:9px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;position:relative!important}
.wall-comment>.avatar-xs,.wall-comment>a>.avatar-xs{width:34px!important;height:34px!important;min-width:34px!important}
.wall-comment-body{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;padding:8px 10px!important;border-radius:12px!important;background:var(--panel-2)!important;overflow-wrap:anywhere!important}
.wall-comment-body header{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 8px!important;min-width:0!important}
.wall-comment-body header a,.wall-comment-body header b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.wall-comment-body header time{margin-left:auto!important;color:var(--muted)!important;font-size:11px!important}
.wall-comment-body p{display:block!important;width:100%!important;min-width:0!important;margin:4px 0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
.wall-comment-footer{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-top:5px!important}
.wall-comment-children{grid-column:2!important;width:auto!important;min-width:0!important;margin:7px 0 0 0!important;padding-left:12px!important;border-left:2px solid var(--border)!important;display:flex!important;flex-direction:column!important;gap:8px!important}
.wall-comment-form{display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
.wall-comment-compose-row{display:grid!important;grid-template-columns:34px minmax(0,1fr) 40px!important;align-items:end!important;gap:8px!important;width:100%!important;min-width:0!important}
.wall-comment-input-wrap{display:block!important;width:100%!important;min-width:0!important;max-width:none!important}
.wall-comment-input-wrap textarea,.wall-comment-form textarea{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:40px!important;max-height:140px!important;resize:none!important;padding:10px 12px!important;border-radius:18px!important}
.wall-comment-submit{width:40px!important;height:40px!important;min-width:40px!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important}
.wall-comment-reply-context{width:100%!important;min-width:0!important;margin-bottom:6px!important}

@media (min-width:901px){
 html,body.auth-shell{height:100%!important;overflow:hidden!important}
 body.auth-shell{display:flex!important;flex-direction:column!important;padding:0!important}
 body.auth-shell>.topbar{flex:0 0 var(--kovcheg-topbar-desktop)!important}
 body.auth-shell>#kovcheg-page-content{flex:1 1 auto!important;height:calc(100dvh - var(--kovcheg-topbar-desktop))!important;min-height:0!important;overflow:hidden!important;padding:0!important}
 #kovcheg-page-content>.site-page-shell{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;margin:0 auto!important}
 #kovcheg-page-content>.feed-shell{display:grid!important;grid-template-columns:210px minmax(0,1fr) minmax(250px,290px)!important;align-items:stretch!important}
 #kovcheg-page-content>.feed-shell>.site-sidebar,#kovcheg-page-content>.feed-shell>.feed-page,#kovcheg-page-content>.feed-shell>.feed-right-column{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
 #kovcheg-page-content>.vk-site-shell{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;align-items:stretch!important}
 #kovcheg-page-content>.vk-site-shell>.site-sidebar{height:100%!important;min-height:0!important;overflow-y:auto!important}
 #kovcheg-page-content .vk-profile-page.profile-page-090{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;padding:14px!important}
 #kovcheg-page-content .vk-profile-grid-090{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;align-items:stretch!important}
 #kovcheg-page-content .vk-profile-left,#kovcheg-page-content .vk-profile-main,#kovcheg-page-content .vk-profile-right{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
}

@media (max-width:900px){
 :root{--mobile-topbar-height:var(--kovcheg-topbar-mobile)!important}
 html{height:100%!important}
 body.auth-shell{min-height:100%!important;height:auto!important;overflow-x:hidden!important;padding-top:calc(var(--kovcheg-topbar-mobile) + env(safe-area-inset-top))!important}
 body.auth-shell>.topbar.topbar-100{position:fixed!important;top:0!important;left:0!important;right:0!important;height:calc(var(--kovcheg-topbar-mobile) + env(safe-area-inset-top))!important;min-height:calc(var(--kovcheg-topbar-mobile) + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 6px 0!important;z-index:14000!important;overflow:visible!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 82px!important;align-items:center!important;gap:5px!important}
 body.auth-shell>#kovcheg-page-content{height:auto!important;min-height:calc(100dvh - var(--kovcheg-topbar-mobile) - env(safe-area-inset-top))!important;overflow:visible!important;padding:0 0 calc(var(--kovcheg-mobile-nav) + env(safe-area-inset-bottom) + 8px)!important}
 .mobile-bottom-nav{height:calc(var(--kovcheg-mobile-nav) + env(safe-area-inset-bottom))!important;min-height:calc(var(--kovcheg-mobile-nav) + env(safe-area-inset-bottom))!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:13500!important}
 body.mobile-chat-active .mobile-bottom-nav{display:none!important}
 body.mobile-messenger-page{height:100dvh!important;overflow:hidden!important}
 body.mobile-messenger-page>#kovcheg-page-content{height:calc(100dvh - var(--kovcheg-topbar-mobile) - env(safe-area-inset-top))!important;min-height:0!important;overflow:hidden!important;padding:0!important}
 body.mobile-messenger-page:not(.mobile-chat-active)>#kovcheg-page-content{padding-bottom:calc(var(--kovcheg-mobile-nav) + env(safe-area-inset-bottom))!important}
 body.mobile-messenger-page .messenger{display:block!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;background:var(--panel)!important}
 body.mobile-messenger-page .messenger>.site-sidebar{display:none!important}
 body.mobile-messenger-page .chat-list{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 body.mobile-messenger-page .chat-items{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding-bottom:8px!important}
 body.mobile-messenger-page .conversation-shell{display:none!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 body.mobile-chat-active .messenger .chat-list{display:none!important}
 body.mobile-chat-active .messenger .conversation-shell{display:block!important}
 body.mobile-chat-active .conversation{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 body.mobile-chat-active .conversation-head{position:relative!important;top:auto!important;flex:0 0 54px!important;height:54px!important;min-height:54px!important;padding:5px 8px!important;z-index:40!important}
 body.mobile-chat-active .mobile-back{display:grid!important;place-items:center!important;flex:0 0 34px!important;width:34px!important;height:40px!important;padding:0!important;border:0!important;background:transparent!important;font-size:34px!important;line-height:1!important}
 body.mobile-chat-active .messages-wrap{display:flex!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;position:relative!important}
 body.mobile-chat-active .messages{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important;padding:9px 7px 12px!important;overscroll-behavior:contain!important}
 body.mobile-chat-active #composer,body.mobile-chat-active .read-only-composer{position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;flex:0 0 auto!important;z-index:80!important;width:100%!important;margin:0!important;padding:7px 7px max(7px,env(safe-area-inset-bottom))!important;background:var(--panel)!important;border-top:1px solid var(--border)!important}
 body.mobile-chat-active .composer-row{width:100%!important;min-width:0!important}
 .message{max-width:96%!important}
 .message-action-shell{top:4px!important;right:4px!important}
 .message-more-button{opacity:1!important;background:transparent!important;box-shadow:none!important}
 .message-action-menu{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;min-width:0!important;max-height:62dvh!important;overflow-y:auto!important;border-radius:16px!important;padding:8px!important;z-index:17000!important}
 .message-action-menu button{padding:11px 12px!important;font-size:15px!important}
 .wall-comments{padding:9px 8px 11px!important}
 .wall-comment{grid-template-columns:32px minmax(0,1fr)!important;gap:7px!important}
 .wall-comment>.avatar-xs,.wall-comment>a>.avatar-xs{width:30px!important;height:30px!important;min-width:30px!important}
 .wall-comment-body{padding:8px 9px!important}
 .wall-comment-children{padding-left:7px!important;margin-left:0!important}
 .wall-comment-compose-row{grid-template-columns:30px minmax(0,1fr) 38px!important;gap:6px!important}
 .wall-comment-compose-row>.avatar-xs{width:30px!important;height:30px!important}
 .wall-comment-submit{width:38px!important;height:38px!important;min-width:38px!important}
}

/* KOVCHEG CMS 3.0. */
.wall-comment-body>footer{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-top:5px!important}
.wall-comment-body>footer button{width:auto!important}
.comment-branch{display:block!important;width:100%!important;min-width:0!important;margin-top:7px!important}
.comment-branch-toggle{width:auto!important;max-width:100%!important}
.wall-comment-replies,.comment-branch-children{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;min-width:0!important;margin-top:7px!important;padding-left:10px!important;border-left:2px solid var(--border)!important}
.wall-comment-replies[hidden],.comment-branch-children[hidden]{display:none!important}
.wall-comment-replies .wall-comment{width:100%!important;min-width:0!important}
.wall-comment-send,.wall-comment-submit{width:40px!important;height:40px!important;min-width:40px!important;border:0!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important;background:var(--accent)!important;color:#fff!important}
@media(max-width:900px){.wall-comment-replies,.comment-branch-children{padding-left:6px!important}.wall-comment-send,.wall-comment-submit{width:38px!important;height:38px!important;min-width:38px!important}}



/* KOVCHEG CMS 3.0. */
:root{--kov-header-h:56px;--kov-mobile-nav-h:58px;--kov-app-height:100dvh;--kov-safe-bottom:env(safe-area-inset-bottom,0px)}
html{height:100%;min-height:100%;overflow:hidden!important}
body.auth-shell{height:var(--kov-app-height)!important;min-height:0!important;max-height:var(--kov-app-height)!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.auth-shell>.kov-global-header{position:fixed!important;inset:0 0 auto 0!important;height:var(--kov-header-h)!important;min-height:var(--kov-header-h)!important;z-index:50000!important;overflow:visible!important;background:var(--panel)!important;border-bottom:1px solid var(--border)!important;transform:none!important}
.kov-header-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 18px;min-width:0}
.kov-header-left{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important;height:100%!important}
.kov-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:0 0 auto!important;height:100%!important;overflow:visible!important}
.kovcheg-headless-player{display:none!important;visibility:hidden!important;width:0!important;height:0!important;position:absolute!important;overflow:hidden!important;pointer-events:none!important}
body.auth-shell>#kovcheg-page-content{position:fixed!important;inset:var(--kov-header-h) 0 0 0!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;contain:none!important;background:var(--bg)!important}
body.auth-shell.page-messenger>#kovcheg-page-content,body.auth-shell.page-admin>#kovcheg-page-content,body.auth-shell>#kovcheg-page-content:has(>.messenger),body.auth-shell>#kovcheg-page-content:has(>.admin-shell){overflow:hidden!important}
body.auth-shell #kovcheg-page-content>.messenger,body.auth-shell #kovcheg-page-content>.admin-shell{height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important}
body.auth-shell #kovcheg-page-content>.site-page-shell{min-height:100%!important;height:auto!important;max-height:none!important;margin:0 auto!important;overflow:visible!important}
body.auth-shell .feed-page,body.auth-shell .vk-profile-page,body.auth-shell .feed-shell,body.auth-shell .vk-site-shell,body.auth-shell .vk-profile-grid{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}

/* Native dropdowns: one reliable mechanism, no body-level duplicate panels. */
.kov-header-menu{position:relative!important;display:block!important;margin:0!important;padding:0!important;overflow:visible!important}
.kov-header-menu>summary{list-style:none!important;cursor:pointer!important;user-select:none!important;-webkit-tap-highlight-color:transparent!important}
.kov-header-menu>summary::-webkit-details-marker{display:none!important}
.notification-bell{position:relative!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--text)!important}
.notification-bell:hover,.kov-header-menu[open]>.notification-bell{background:var(--panel-2)!important}
.notification-bell svg{display:block!important;width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.notification-bell:before,.notification-bell:after,.notification-bell .bell-glyph{display:none!important;content:none!important}
.notification-bell em{position:absolute!important;right:-1px!important;top:0!important;display:grid!important;place-items:center!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border:2px solid var(--panel)!important;border-radius:99px!important;background:var(--accent)!important;color:#fff!important;font:700 10px/1 system-ui!important;font-style:normal!important}
.notification-bell em[hidden]{display:none!important}
.kov-header-account-button{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;height:42px!important;padding:4px 8px!important;border-radius:12px!important;color:var(--text)!important;background:transparent!important;border:0!important}
.kov-header-menu[open]>.kov-header-account-button,.kov-header-account-button:hover{background:var(--panel-2)!important}
.kov-header-account-button>span{white-space:nowrap!important;max-width:180px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.kov-header-panel{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 8px)!important;z-index:50100!important;display:block!important;width:min(390px,calc(100vw - 20px))!important;max-height:calc(var(--kov-app-height) - var(--kov-header-h) - 20px)!important;overflow:auto!important;padding:0!important;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:14px!important;box-shadow:0 20px 60px rgba(0,0,0,.36)!important;visibility:visible!important;opacity:1!important;transform:none!important}
.kov-header-menu:not([open])>.kov-header-panel{display:none!important}
.kov-header-account{width:290px!important;padding:8px!important}
.kov-header-notifications>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;background:var(--panel);border-bottom:1px solid var(--border)}
.kov-header-notifications>header div{display:grid;gap:2px}.kov-header-notifications>header small{color:var(--muted)}
.kov-header-notifications>header button{border:0;background:transparent;color:var(--accent);font-weight:700;cursor:pointer}
.kov-header-notification-list{display:grid;max-height:430px;overflow:auto}
.kov-header-account>a,.kov-header-account>form>button{width:100%;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;padding:10px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--text)!important;text-decoration:none!important;text-align:left!important}
.kov-header-account>a:hover,.kov-header-account>form>button:hover{background:var(--panel-2)!important}
.kov-header-account-profile{grid-template-columns:38px minmax(0,1fr)!important;border-bottom:1px solid var(--border)!important;border-radius:9px 9px 0 0!important}
.profile-theme-row{margin:7px 0;padding:9px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}

/* Admin fills the exact visible workspace; footer remains at its bottom. */
.admin-shell{height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:218px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
.admin-nav{height:100%!important;min-height:0!important;overflow-y:auto!important}
.admin-content{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;padding-bottom:0!important}
.admin-content>.admin-footer{position:relative!important;inset:auto!important;margin-top:auto!important;flex:0 0 auto!important;min-height:52px!important;width:auto!important}

/* Template chooser. */
.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;align-items:stretch}
.template-card{display:flex;flex-direction:column;gap:14px;padding:16px;background:var(--panel);border:1px solid var(--border);border-radius:16px}
.template-card.active{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 28%,transparent)}
.template-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.template-card header h2{margin:0}.template-card header p{margin:4px 0 0;color:var(--muted)}
.template-badge{padding:5px 9px;border-radius:99px;background:var(--accent);color:white;font-size:11px;font-weight:800}
.template-preview{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:10px;border:1px solid var(--border);background:#101d29}
.template-preview .preview-head{height:19%;background:#182b3b;border-bottom:1px solid #33495b}.template-preview .preview-side{position:absolute;left:0;top:19%;bottom:0;width:22%;background:#142532}.template-preview .preview-main{position:absolute;left:24%;right:18%;top:25%;bottom:8%;display:grid;gap:7px}.template-preview .preview-main i{display:block;border-radius:6px;background:#1b3040}.template-preview .preview-right{position:absolute;right:2%;top:25%;bottom:25%;width:14%;border-radius:6px;background:#1b3040}
.template-preview.vk{background:#edeef0}.template-preview.vk .preview-head{background:#4a76a8}.template-preview.vk .preview-side{background:#edeef0}.template-preview.vk .preview-main i,.template-preview.vk .preview-right{background:#fff;border:1px solid #dce1e6;border-radius:4px}
.template-card form{margin-top:auto}.template-card .btn{width:100%}

@media(max-width:760px){
 :root{--kov-header-h:54px;--kov-mobile-nav-h:58px}
 body.auth-shell>.kov-global-header{height:calc(var(--kov-header-h) + env(safe-area-inset-top))!important;min-height:calc(var(--kov-header-h) + env(safe-area-inset-top))!important;padding-top:env(safe-area-inset-top)!important}
 .kov-header-inner{padding:0 10px!important;gap:8px!important}
 .kov-header-left{gap:7px!important}.brand-site-name-170,.topbar-global-search{display:none!important}.brand-logo{width:38px!important;height:38px!important}
 .kov-header-actions{gap:3px!important}.notification-bell{width:40px!important;height:40px!important}.notification-bell svg{width:23px!important;height:23px!important}
 .kov-header-account-button{width:42px!important;height:42px!important;padding:3px!important;border-radius:50%!important}.kov-header-account-button>span,.kov-header-account-button>i{display:none!important}.kov-header-account-button .avatar-xs{width:36px!important;height:36px!important}
 .kov-header-panel{position:fixed!important;left:8px!important;right:8px!important;top:calc(var(--kov-header-h) + env(safe-area-inset-top) + 6px)!important;width:auto!important;max-height:calc(var(--kov-app-height) - var(--kov-header-h) - env(safe-area-inset-top) - 14px)!important}
 .kov-header-account{left:auto!important;width:min(292px,calc(100vw - 16px))!important}
 body.auth-shell>#kovcheg-page-content{top:calc(var(--kov-header-h) + env(safe-area-inset-top))!important;bottom:0!important;padding:0 0 calc(var(--kov-mobile-nav-h) + var(--kov-safe-bottom))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important}
 body.auth-shell.page-messenger>#kovcheg-page-content,body.auth-shell>#kovcheg-page-content:has(>.messenger){padding:0 0 calc(var(--kov-mobile-nav-h) + var(--kov-safe-bottom))!important;overflow:hidden!important}
 body.auth-shell.mobile-chat-active>#kovcheg-page-content{padding-bottom:0!important}
 body.auth-shell.page-admin>#kovcheg-page-content,body.auth-shell>#kovcheg-page-content:has(>.admin-shell){padding-bottom:0!important;overflow:hidden!important}
 body.auth-shell #kovcheg-page-content>.site-page-shell,body.auth-shell #kovcheg-page-content>.feed-shell,body.auth-shell #kovcheg-page-content>.vk-site-shell{display:block!important;width:100%!important;min-height:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important}
 body.auth-shell .feed-page,body.auth-shell .vk-profile-page,body.auth-shell .vk-profile-grid,body.auth-shell .vk-profile-main,body.auth-shell .feed-list{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.auth-shell .site-sidebar,body.auth-shell .feed-right-column,body.auth-shell .vk-profile-right{display:none!important}
 .mobile-bottom-nav,[data-mobile-bottom-nav]{position:fixed!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;inset:auto 0 0 0!important;width:100%!important;height:calc(var(--kov-mobile-nav-h) + var(--kov-safe-bottom))!important;min-height:calc(var(--kov-mobile-nav-h) + var(--kov-safe-bottom))!important;margin:0!important;padding:4px 6px var(--kov-safe-bottom)!important;z-index:49000!important;overflow:hidden!important;transform:none!important;background:var(--panel)!important;border-top:1px solid var(--border)!important;box-shadow:0 -5px 18px rgba(0,0,0,.18)!important}
 body.mobile-chat-active>.mobile-bottom-nav,body.mobile-chat-active>[data-mobile-bottom-nav]{display:none!important}
 .mobile-side-drawer,.mobile-drawer-overlay{position:fixed!important}.mobile-side-drawer{top:0!important;bottom:0!important;z-index:51000!important}.mobile-drawer-overlay{inset:0!important;z-index:50900!important}
 .messenger{position:relative!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
 .messenger>.chat-list{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 .chat-list .chat-items{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
 .messenger>.column-resizer{display:none!important}.messenger>.conversation-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;pointer-events:none!important;visibility:hidden!important}
 body.mobile-chat-active .messenger>.chat-list{display:none!important}body.mobile-chat-active .messenger>.conversation-shell{pointer-events:auto!important;visibility:visible!important}
 body.mobile-chat-active .conversation{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 body.mobile-chat-active .conversation-head{position:relative!important;flex:0 0 50px!important;height:50px!important;min-height:50px!important;margin:0!important;padding:4px 8px!important;z-index:4!important}
 body.mobile-chat-active .messages-wrap{position:relative!important;display:flex!important;flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden!important}
 body.mobile-chat-active .messages{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding:8px 7px 10px!important}
 body.mobile-chat-active #composer,body.mobile-chat-active .read-only-composer{position:relative!important;inset:auto!important;flex:0 0 auto!important;width:100%!important;min-height:54px!important;margin:0!important;padding:6px 7px max(6px,var(--kov-safe-bottom))!important;transform:none!important;background:var(--panel)!important;border-top:1px solid var(--border)!important;z-index:5!important}
 body.mobile-chat-active .composer-row{display:flex!important;align-items:flex-end!important;width:100%!important;min-width:0!important}.composer-input-box{min-width:0!important}.composer textarea{min-height:40px!important;max-height:120px!important}.send-btn{flex:0 0 42px!important;width:42px!important;height:42px!important}
 .admin-shell{display:block!important;height:100%!important;overflow:hidden!important}.admin-content{height:100%!important;overflow-y:auto!important;padding:18px 12px 0!important}.admin-content>.admin-footer{margin-left:-12px!important;margin-right:-12px!important}
 .template-grid{grid-template-columns:1fr!important}
}
#kovcheg-page-content .profile-banner-settings{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:12px;align-items:center;margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
#kovcheg-page-content .profile-banner-settings>div:nth-child(2){grid-column:1/-1}#kovcheg-page-content .profile-banner-settings p{margin:4px 0;color:var(--muted)}
#kovcheg-page-content .profile-banner-preview{grid-column:1/-1;min-height:170px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--panel-2),var(--accent-soft));background-position:center;background-size:cover;color:var(--muted);overflow:hidden}
#kovcheg-page-content .profile-banner-preview.has-image span{padding:7px 11px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff}
#kovcheg-page-content .profile-banner-settings form{display:flex;gap:9px;align-items:center;margin:0}#kovcheg-page-content .profile-banner-settings input[type=file]{max-width:320px}
#kovcheg-page-content .profile-public-banner{height:220px;margin-bottom:14px;border:1px solid var(--border);border-radius:16px;background-position:center;background-size:cover}
@media(max-width:700px){#kovcheg-page-content .profile-banner-settings{display:block}#kovcheg-page-content .profile-banner-settings>*+*{margin-top:10px}#kovcheg-page-content .profile-banner-settings form{display:grid}#kovcheg-page-content .profile-public-banner{height:145px;border-radius:0}}

/* Stable profile-photo editor and independently scrollable profile centre. */
body.avatar-crop-open{overflow:hidden!important;touch-action:none}
body:not([data-template="x"]) .profile-public-banner{display:none!important}
.crop-modal,.profile-avatar-editor{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:100000!important;display:grid!important;place-items:center!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:12px!important;background:rgba(8,18,28,.76)!important}
.crop-modal[hidden],.profile-avatar-editor[hidden]{display:none!important}
.crop-modal .crop-card,.profile-avatar-editor .crop-card{width:min(520px,calc(100vw - 24px))!important;max-width:520px!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;margin:auto!important;padding:clamp(14px,3vw,24px)!important;display:grid!important;gap:12px!important;position:relative!important;transform:none!important}
.crop-modal .crop-stage,.profile-avatar-editor .crop-stage{width:min(420px,calc(100vw - 64px),calc(100dvh - 260px))!important;height:auto!important;min-width:160px!important;min-height:160px!important;aspect-ratio:1!important;flex:none!important;margin:0 auto!important;position:relative!important;overflow:hidden!important}
.profile-avatar-editor .crop-stage{border-radius:12px!important}.crop-modal .crop-stage:not(.crop-square){border-radius:50%!important}
.crop-modal .crop-stage img,.profile-avatar-editor .crop-stage img{position:absolute!important;max-width:none!important;max-height:none!important;transform-origin:center!important;user-select:none!important;pointer-events:none!important}
.crop-modal .button-row,.profile-avatar-editor .button-row{justify-content:center!important}.crop-modal .btn,.profile-avatar-editor .btn{min-height:42px}.crop-modal input[type=range],.profile-avatar-editor input[type=range]{width:100%!important}
@media(min-width:761px){body.auth-shell[data-template="default"]>#kovcheg-page-content:has(>.vk-site-shell){overflow:hidden!important}body.auth-shell[data-template="default"]>#kovcheg-page-content>.vk-site-shell{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}body.auth-shell[data-template="default"] .vk-profile-page.profile-page-090{height:100%!important;min-height:0!important;overflow:hidden!important}body.auth-shell[data-template="default"] .vk-profile-grid-090{height:100%!important;min-height:0!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important}body.auth-shell[data-template="default"] .vk-profile-main{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}}
@media(max-width:520px){.crop-modal,.profile-avatar-editor{align-items:start!important;padding:8px!important}.crop-modal .crop-card,.profile-avatar-editor .crop-card{width:100%!important;max-height:calc(100dvh - 16px)!important;border-radius:14px!important}.crop-modal .crop-stage,.profile-avatar-editor .crop-stage{width:min(calc(100vw - 48px),calc(100dvh - 260px))!important;min-width:140px!important;min-height:140px!important}}
