/* KOVCHEG RC9.20 — Unified Black/White Style. Final brand system layer. */
:root,
html,
body,
body.kov-scenario-premium-black,
body.kov-scenario-dark-navy,
body.kov-scenario-graphite,
body.kov-scenario-emerald,
body.kov-scenario-violet,
body.kov-scenario-amber{
  --color-brand-primary:#333333!important;
  --profile-accent:#333333!important;
  --kov-brand-ui-color:#333333!important;
  --kov-accent:#333333!important;
  --kov-accent-2:#3a3a3a!important;
  --kov-accent-3:#444444!important;
  --vk-accent:#333333!important;
  --social-accent:#333333!important;
  --tone-accent:#333333!important;
  --x-accent:#333333!important;
  --kc-card-3:#333333!important;
  --kov-neutral:#777777!important;
  --kov-neutral-soft:#bbbbbb!important;
  --focus-ring:#555555!important;
  --color-primary:#333333!important;
  --color-info:#555555!important;
  --color-link:#e8e8e8!important;
  accent-color:#555555!important;
}

html[data-kov-ui-tone="light"],
html[data-kov-ui-tone="light"] body{
  --color-brand-primary:#333333!important;
  --profile-accent:#333333!important;
  --kov-brand-ui-color:#333333!important;
  --kov-accent:#333333!important;
  --vk-accent:#333333!important;
  --social-accent:#333333!important;
  --color-link:#222222!important;
}

::selection{background:#555!important;color:#fff!important;}
::-moz-selection{background:#555!important;color:#fff!important;}

/* Absolute no-gray focus reset */
*,*::before,*::after{
  -webkit-tap-highlight-color:transparent!important;
}
*:focus,
*:focus-visible,
*:focus-within,
*:active{
  outline:0!important;
}

input,textarea,select,button,a,.btn,[role="button"],
.form-input,.form-control,.form-select,.input,.select,.textarea,
.profile-vk-wall-input,.post-wizard-textarea,.wall-embed-input,
.comment-form input,.comment-form textarea,.vk-comment-form input,.vk-comment-form textarea,
.avatar-comment-form input,.avatar-comment-form textarea,
.photo-comment-form input,.photo-comment-form textarea,
[data-comment-form] input,[data-comment-form] textarea,
.profile-perfect-form .form-input,
.auth-command-form .form-input,
.login-card .form-input{
  outline:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
}

input:focus,input:focus-visible,input:active,
textarea:focus,textarea:focus-visible,textarea:active,
select:focus,select:focus-visible,select:active,
.form-input:focus,.form-input:focus-visible,.form-input:active,
.form-control:focus,.form-control:focus-visible,.form-control:active,
.form-select:focus,.form-select:focus-visible,.form-select:active,
.input:focus,.input:focus-visible,.input:active,
.select:focus,.select:focus-visible,.select:active,
.textarea:focus,.textarea:focus-visible,.textarea:active,
.profile-vk-wall-input:focus,.profile-vk-wall-input:focus-visible,.profile-vk-wall-input:active,
.post-wizard-textarea:focus,.post-wizard-textarea:focus-visible,.post-wizard-textarea:active,
.wall-embed-input:focus,.wall-embed-input:focus-visible,.wall-embed-input:active,
.comment-form input:focus,.comment-form input:focus-visible,.comment-form input:active,
.comment-form textarea:focus,.comment-form textarea:focus-visible,.comment-form textarea:active,
.vk-comment-form input:focus,.vk-comment-form input:focus-visible,.vk-comment-form input:active,
.vk-comment-form textarea:focus,.vk-comment-form textarea:focus-visible,.vk-comment-form textarea:active,
.avatar-comment-form input:focus,.avatar-comment-form input:focus-visible,.avatar-comment-form input:active,
.avatar-comment-form textarea:focus,.avatar-comment-form textarea:focus-visible,.avatar-comment-form textarea:active,
.photo-comment-form input:focus,.photo-comment-form input:focus-visible,.photo-comment-form input:active,
.photo-comment-form textarea:focus,.photo-comment-form textarea:focus-visible,.photo-comment-form textarea:active,
[data-comment-form] input:focus,[data-comment-form] input:focus-visible,[data-comment-form] input:active,
[data-comment-form] textarea:focus,[data-comment-form] textarea:focus-visible,[data-comment-form] textarea:active,
.profile-perfect-form .form-input:focus,
.auth-command-form .form-input:focus,
.login-card .form-input:focus{
  outline:0!important;
  box-shadow:none!important;
  border-color:#555!important;
  background:#333!important;
  color:#fff!important;
}

button:focus,button:focus-visible,button:active,
a:focus,a:focus-visible,a:active,
.btn:focus,.btn:focus-visible,.btn:active,
[role="button"]:focus,[role="button"]:focus-visible,[role="button"]:active{
  outline:0!important;
  box-shadow:none!important;
}

/* Kill old azure/neutral accents across admin and user UI */
a:not(.sidebar-menu-link):not(.notification-footer),
.link,.text-link,.settings-link,
.topbar-user-dropdown a:hover,
.profile-tabs-clean a:hover,
.profile-tabs-clean a.active,
.wall-stream-tabs button.active,
.wall-wizard-step.active,
.post-wizard-step.active,
.auth-command-card a,
.login-card a{
  color:#f1f1f1!important;
}

.btn,.btn-primary,.btn-secondary,.btn-info,.btn-success,.btn-sm,
button[type="submit"],button[type="button"],input[type="submit"],
.profile-main-edit,.profile-side-button,.repost-btn,.wall-video-open,
.wall-stream-tabs button,.wall-stream-icon,.wall-post-menu,
.profile-vk-main-action,.login-submit,.auth-submit,
.notification-head .btn,.topbar-theme-choice,
.auth-provider-row button,
.page-builder-btn,.module-action-btn,
.upload-btn,.file-upload-btn,
.admin-action-btn{
  min-height:38px!important;
  border-radius:12px!important;
  border:1px solid #4a4a4a!important;
  background:#333333!important;
  background-image:none!important;
  color:#ffffff!important;
  box-shadow:none!important;
  filter:none!important;
  text-decoration:none!important;
  font-weight:800!important;
}

.btn:hover,.btn-primary:hover,.btn-secondary:hover,.btn-info:hover,.btn-success:hover,
button[type="submit"]:hover,button[type="button"]:hover,input[type="submit"]:hover,
.profile-main-edit:hover,.profile-side-button:hover,.repost-btn:hover,.wall-video-open:hover,
.wall-stream-tabs button:hover,.wall-post-menu:hover,.topbar-theme-choice:hover,
.auth-provider-row button:hover{
  background:#3c3c3c!important;
  border-color:#5a5a5a!important;
  color:#fff!important;
  transform:none!important;
  box-shadow:none!important;
}

.btn-danger,.danger,button.danger,.wall-menu-delete-form button,.btn-delete,
button.delete,button.remove{
  background:#3a2b2b!important;
  border-color:#634444!important;
  color:#ffecec!important;
}
.btn-danger:hover,.danger:hover,button.danger:hover,.wall-menu-delete-form button:hover,.btn-delete:hover{
  background:#493333!important;
  border-color:#795151!important;
}

.badge,.status-badge,.verified-badge,.profile-role-chip,.wall-visibility-badge,
.profile-vk-online,.notification-badge,.sidebar-badge,
.role-admin,.role-user,.module-status,.health-status,
.profile-pro-role-list span{
  background:#333!important;
  background-image:none!important;
  border:1px solid #555!important;
  color:#fff!important;
  box-shadow:none!important;
}

/* Profile avatar action block — no black slab, only neat grey buttons */
.profile-pro-photo-card,
.profile-photo-card{
  background:#202020!important;
  border-color:#383838!important;
  box-shadow:none!important;
}
.photo-actions-row,
.profile-avatar-upload,
.profile-avatar-delete{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin-top:10px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.photo-actions-row form,
.profile-avatar-upload form,
.profile-avatar-delete form{
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  width:100%!important;
}
.profile-side-button,
.photo-actions-row .profile-side-button,
.profile-pro-photo-card .profile-side-button,
.profile-photo-card .btn,
.profile-avatar-upload .btn,
.profile-avatar-delete .btn{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 14px!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  border:1px solid #505050!important;
  background:#333!important;
  color:#fff!important;
  box-shadow:none!important;
  outline:0!important;
}
.profile-side-button.muted,
.profile-avatar-delete .btn{
  background:#2f2f2f!important;
  color:#d7d7d7!important;
}
.profile-side-button:hover,
.profile-photo-card .btn:hover{
  background:#3d3d3d!important;
  border-color:#666!important;
}

/* Unified fields */
.form-input,.form-control,.form-select,.input,.select,.textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
textarea,select,
.profile-vk-wall-input,.post-wizard-textarea,.wall-embed-input,
.comment-form input,.comment-form textarea,.vk-comment-form input,.vk-comment-form textarea,
.auth-command-form .form-input,.login-card .form-input{
  background:#2a2a2a!important;
  border:1px solid #444!important;
  color:#f4f4f4!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.form-input::placeholder,.form-control::placeholder,input::placeholder,textarea::placeholder{
  color:#9a9a9a!important;
}

/* Cards, panels, dropdowns */
.card,.panel,.dashboard-card,.profile-vk-card,.profile-pro-header-card,.profile-pro-mini-card,
.profile-under-photo-card,.profile-side-list,.social-section,.wall-post,.wall-public-post,
.wall-post-vk,.profile-perfect-settings-card,.settings-card,.auth-command-card,.login-card,
.dropdown,.topbar-user-dropdown,.notification-dropdown,.wall-post-dropdown,.repost-card,
.share-menu-panel{
  background:#202020!important;
  background-image:none!important;
  border-color:#383838!important;
  color:#f4f4f4!important;
  box-shadow:none!important;
}
body,.admin-layout,.portal-layout-unified,.content,.portal-content-unified{
  background:#181818!important;
  color:#f4f4f4!important;
}
.sidebar,.portal-sidebar-unified,.topbar{
  background:#0f0f0f!important;
  background-image:none!important;
  border-color:#2b2b2b!important;
}

/* Post menu */
.wall-post-menu-wrap{position:relative!important;}
.wall-post-dropdown{display:none!important;position:absolute!important;right:0!important;top:calc(100% + 8px)!important;min-width:250px!important;z-index:99990!important;padding:8px!important;border-radius:14px!important;background:#202020!important;border:1px solid #444!important;box-shadow:0 20px 60px rgba(0,0,0,.45)!important;}
.wall-post-menu-wrap.is-open .wall-post-dropdown{display:block!important;}
.wall-post-dropdown button,.wall-post-dropdown form button,.post-view-counter{
  width:100%!important;text-align:left!important;justify-content:flex-start!important;background:transparent!important;border:0!important;border-radius:10px!important;color:#eee!important;min-height:38px!important;padding:0 10px!important;box-shadow:none!important;
}
.wall-post-dropdown button:hover,.wall-post-dropdown form button:hover{background:#333!important;color:#fff!important;}
.wall-post-dropdown hr{border:0!important;border-top:1px solid #3a3a3a!important;margin:6px 0!important;}

/* Share button menu */
.repost-form{position:relative!important;display:inline-flex!important;margin:0!important;}
.kov-share-menu{position:absolute!important;left:0!important;bottom:calc(100% + 8px)!important;min-width:230px!important;z-index:99995!important;display:none!important;padding:8px!important;background:#202020!important;border:1px solid #444!important;border-radius:14px!important;box-shadow:0 18px 60px rgba(0,0,0,.45)!important;}
.repost-form.is-share-open .kov-share-menu{display:block!important;}
.kov-share-menu button{width:100%!important;min-height:38px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#eee!important;text-align:left!important;justify-content:flex-start!important;padding:0 10px!important;}
.kov-share-menu button:hover{background:#333!important;color:#fff!important;}

/* Login/register unified look */
.auth-command-body,body:has(.login-card){background:#111!important;color:#f4f4f4!important;}
.login-logo,.auth-command-logo,.sidebar-logo,.profile-avatar-xl,.profile-pro-photo span,.public-profile-avatar span{
  background:#333!important;
  background-image:none!important;
  border:1px solid #555!important;
  color:#fff!important;
  box-shadow:none!important;
}
.login-card,.auth-command-card{max-width:460px!important;border-radius:18px!important;padding:30px!important;}
.auth-command-card .login-title,.login-card .login-title{color:#fff!important;}
.auth-command-card .login-subtitle,.login-card .login-subtitle,.login-powered{color:#aaa!important;}
.alert-error{background:#312323!important;border-color:#654040!important;color:#ffd0d0!important;}

/* Explicitly neutralize common gray/neutral classes */
.text-info,.text-primary,.color-primary,.color-info,
svg.text-info,svg.text-primary,.icon-primary,.icon-info,
.module-icon,.dashboard-icon,.widget-pick-icon,
.portal-widget-modern-head>span,
.wall-composer-icon,.upload-icon{
  color:#ddd!important;
  border-color:#4a4a4a!important;
  background:#333!important;
  background-image:none!important;
}
.progress,.progress-bar,.wizard-progress,.post-wizard-progress,.upload-progress{
  background:#333!important;
  background-image:none!important;
  border-color:#444!important;
}
.progress-bar,.wizard-progress span,.post-wizard-progress span,.upload-progress span{
  background:#555!important;
  background-image:none!important;
}
