/* ACRIR DARK THEME PROTO8 V1 */

:root {
  color-scheme: dark;
  --blue: #5B50FF;
  --blue-deep: #756CFF;
  --cyan: #3CC7E6;
  --purple: #B56BE0;
  --pink: #E36BCF;
  --sky: #192B46;
  --ink: #F4F6FB;
  --text: #F4F6FB;
  --muted: #9DA6B8;
  --line: #2A3040;
  --soft: #0E1119;
  --white: #171B26;
  --green: #43C99D;
  --orange: #F0B44E;
  --red: #FF725C;
  --shadow: 0 20px 54px rgba(0, 0, 0, .26);
}

html,
body,
.app-shell,
.main-content {
  background: #0E1119 !important;
  color: var(--ink);
}

body {
  color-scheme: dark;
}

::selection {
  background: rgba(91, 80, 255, .42);
  color: #FFFFFF;
}

/* Навигация */
.sidebar {
  background: #141822 !important;
  border-color: #272D3D !important;
  box-shadow: 14px 0 34px rgba(0, 0, 0, .10);
}

.sidebar .brand img {
  filter: brightness(0) invert(1);
  opacity: .94;
}

.nav-link {
  color: #B2BAC9 !important;
}

.nav-link:hover {
  background: #211F38 !important;
  color: #DCD9FF !important;
}

.nav-link.active {
  background: #5146F5 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 26px rgba(65, 50, 245, .25);
}

.nav-icon {
  background: rgba(126, 116, 255, .12) !important;
}

.nav-link.active .nav-icon {
  background: rgba(255, 255, 255, .15) !important;
}

.support-card {
  background: #1A2D47 !important;
  border: 1px solid #28415F;
}

.support-card strong,
.user-meta strong {
  color: #F3F5FA;
}

.support-card small,
.user-meta small {
  color: #929CAF !important;
}

.user-card .logout-button,
.icon-button {
  background: #1C2130 !important;
  color: #C7CDDA !important;
  border: 1px solid #2A3143;
}

.user-card .logout-button:hover {
  background: #352027 !important;
  border-color: #583039;
  color: #FF8B78 !important;
}

/* Основные поверхности */
.panel,
.company-pill,
.stat-card,
.ratings-list-card {
  background: #171B26 !important;
  border-color: #2A3040 !important;
  box-shadow: var(--shadow) !important;
}

.panel h1,
.panel h2,
.panel h3,
.ratings-list-card h2,
.page-header h1,
.application-header h1,
.ratings-list-header h1 {
  color: #F4F6FB;
}

.eyebrow,
.text-link,
.row-arrow {
  color: #8178FF;
}

.muted,
.breadcrumb,
.company-pill small {
  color: var(--muted) !important;
}

.tag {
  background: #222736;
  color: #B8C0D0;
}

html[data-theme="dark"] .rating-carousel-v2 .tag.light-tag,
.theme-dark .rating-carousel-v2 .tag.light-tag {
  color: white !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}

/* Кнопки */
.button.primary {
  background: #5146F5;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(65, 50, 245, .28);
}

.button.primary:hover {
  background: #665CFF;
}

.button.secondary {
  background: #1D2230 !important;
  color: #E8EAF1 !important;
  border-color: #343B4D !important;
}

.button.secondary:hover {
  background: #242A3A !important;
  border-color: #6D63FF !important;
  color: #FFFFFF !important;
}

.button.white {
  background: #F5F6FF;
  color: #3429D7;
}

/* Дашборд */
.rating-row {
  border-color: #2B3243;
}

.rating-row:hover {
  border-color: #655BFF !important;
  background: #1B2030 !important;
}

.notice-icon {
  background: #24233A !important;
  color: #8D85FF !important;
}

.notice-item small {
  color: #7F899C !important;
}

.accent-panel {
  background: #192A43 !important;
  border-color: #253B59 !important;
}

.accent-panel p {
  color: #A8B5C9 !important;
}

.progress-track,
.mini-progress > .mini-progress-track,
.weight-bar {
  background: #2A3040 !important;
}

/* Статусы */
.status.draft {
  color: #F4D66A;
  background: #3B331A;
}

.status.submitted {
  color: #8EB9FF;
  background: #182A49;
}

.status.review {
  color: #CE9CFF;
  background: #312044;
}

.status.needs_changes {
  color: #FFAD75;
  background: #3C261A;
}

.status.accepted {
  color: #6EE0B9;
  background: #17372C;
}

/* Страница рейтинга */
.summary-strip {
  background: #2A3040 !important;
  border-color: #2A3040 !important;
}

.summary-strip > div {
  background: #171B26 !important;
}

.sky-method {
  background: #1A2E4B !important;
  color: #F2F5FA !important;
  border: 1px solid #294563;
}

.fee-note {
  background: #121721 !important;
  border: 1px solid #252C3B;
}

.service-chip,
.service-chip-tooltip {
  background: #171B26 !important;
  color: #F4F6FB !important;
  border-color: #2B3243 !important;
}

.service-chip-tooltip .service-chip-label {
  color: #F1F3F8 !important;
}

.service-chip-tooltip:hover,
.service-chip-tooltip:focus-visible,
.service-chip-tooltip[aria-expanded="true"] {
  background: #1D2230 !important;
  border-color: #655BFF !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), 0 0 0 3px rgba(91, 80, 255, .10) !important;
}

.service-chip-tooltip::after {
  background: #24233A !important;
  border-color: #3D3A64 !important;
  color: #938CFF !important;
}

.service-chip-tooltip:hover::after,
.service-chip-tooltip:focus-visible::after,
.service-chip-tooltip[aria-expanded="true"]::after {
  background: #5B50FF !important;
  border-color: #7168FF !important;
  color: #FFFFFF !important;
}

.service-tooltip-popup,
.service-tooltip-popup::after {
  background: #10141D !important;
}

.service-tooltip-popup {
  border-color: #303748 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46) !important;
}

/* Единый блок критериев */
.metric-explorer-panel {
  background: #171B26 !important;
  border-color: #2A3040 !important;
}

.metric-explorer-list {
  background: #171B26 !important;
}

.metric-explorer-table .metric-row {
  border-top-color: #2A3040 !important;
  color: #EDEFF5;
}

.metric-explorer-panel .metric-explorer-table .metric-row.metric-segment-business:not(.is-active):hover,
.metric-explorer-panel .metric-explorer-table .metric-row.metric-segment-expertise:not(.is-active):hover,
.metric-explorer-table .metric-row:not(.is-active):hover {
  background: #22253A !important;
  box-shadow: inset 0 0 0 1px rgba(126, 116, 255, .12) !important;
}

.metric-explorer-table .metric-row.metric-segment-business:not(.is-active) .metric-block {
  background: #282441 !important;
  color: #ACA6FF !important;
}

.metric-explorer-table .metric-row.metric-segment-expertise:not(.is-active) .metric-block {
  background: #1D2D43 !important;
  color: #A9C9F1 !important;
}

.metric-guide-panel {
  background: #151A27 !important;
  border-left-color: #5B50FF !important;
}

.metric-guide-head,
.metric-guide-section {
  border-color: #2B3141 !important;
}

.metric-guide-section strong,
.metric-guide-note strong {
  color: #F0F2F8 !important;
}

.metric-guide-note {
  background: #24233A !important;
  border: 1px solid #333052;
}

.metric-guide-note strong {
  color: #9992FF !important;
}

.metric-guide-scroll {
  scrollbar-color: rgba(126, 116, 255, .48) transparent !important;
}

.metric-guide-scroll::-webkit-scrollbar-thumb {
  background: rgba(126, 116, 255, .48) !important;
}

/* Каталог рейтингов */
.ratings-list-dates > div {
  background: #121722 !important;
  border: 1px solid #252C3B;
}

.ratings-list-card::before {
  background: #5B50FF !important;
}

.ratings-list-status {
  background: #282441 !important;
  color: #AAA3FF !important;
}

.ratings-list-status.status-open {
  background: #17372C !important;
  color: #6EE0B9 !important;
}

.ratings-list-status.status-verification {
  background: #3A301A !important;
  color: #F0C562 !important;
}

.ratings-list-status.status-closed {
  background: #252A35 !important;
  color: #A0A7B5 !important;
}

/* Формы и заявка */
.step:hover {
  background: #1C2230 !important;
}

.step.active {
  background: #26233F !important;
}

.step-num {
  background: #242A38 !important;
  color: #A2AABC !important;
}

.field > span,
.check {
  color: #AAB2C2 !important;
}

.field input,
.field select,
.field textarea,
.search-field input {
  background: #121722 !important;
  color: #F1F3F8 !important;
  border-color: #303748 !important;
  caret-color: #8178FF;
}

.field input::placeholder,
.field textarea::placeholder,
.search-field input::placeholder {
  color: #697386 !important;
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus {
  background: #171D29 !important;
  border-color: #655BFF !important;
  box-shadow: 0 0 0 4px rgba(91, 80, 255, .12) !important;
}

.field input[readonly] {
  background: #171B24 !important;
  color: #A4ADBC !important;
}

.large-check,
.dropzone {
  background: #121722 !important;
  border-color: #343B4D !important;
}

.dropzone:hover,
.dropzone.dragging {
  background: #1B2032 !important;
  border-color: #655BFF !important;
}

.choice-card > span:last-child,
.document-row,
.review-row,
.doc-requirements > div,
.empty-docs {
  background: #151A25;
  border-color: #2D3445 !important;
}

.choice-card input:checked ~ span:last-child {
  background: #25223E !important;
  border-color: #655BFF !important;
}

.file-type,
.notice-icon {
  background: #24233A !important;
}

.info-card {
  background: #192B46 !important;
  border: 1px solid #29435F;
}

.info-card p {
  color: #A8B5C8 !important;
}

.submit-zone {
  background: #121721 !important;
  border: 1px solid #252C3B;
}

/* Профиль */
.profile-count,
.profile-admin-tag,
.profile-item-mark {
  background: #282441 !important;
  color: #A9A2FF !important;
}

.profile-edit-trigger,
.profile-edit-form:not(.is-editing) .field input[readonly],
.profile-item,
.profile-add-form .field input {
  background: #171B26 !important;
  color: #F1F3F8 !important;
  border-color: #2D3445 !important;
}

.profile-edit-trigger:hover {
  background: #22253A !important;
  border-color: #655BFF !important;
  color: #B8B2FF !important;
}

.profile-edit-form.is-editing .field input {
  background: #121722 !important;
}

.profile-item.primary-item {
  background: #1D1D31 !important;
  border-color: #3D3965 !important;
}

.profile-delete {
  background: #1D2230 !important;
  color: #8F98A9 !important;
}

.profile-delete:hover {
  background: #372127 !important;
  color: #FF8A77 !important;
}

.profile-add-box,
.profile-account-add {
  background: #121722 !important;
  border-color: #3A4256 !important;
}

.profile-add-box[open],
.profile-add-box:not([open]):hover,
.profile-account-add:hover {
  background: #1D1D31 !important;
  border-color: #655BFF !important;
}

.profile-add-summary-close {
  background: #222736 !important;
  color: #A7AFBF !important;
}

.profile-add-box[open] summary:hover .profile-add-summary-close {
  background: #2B3141 !important;
  color: #F4F6FB !important;
}

.profile-primary-badge {
  background: #282441 !important;
  border-color: #403B68 !important;
  color: #AAA3FF !important;
}

/* Админка */
.admin-table {
  background: #2A3040 !important;
  border-color: #2A3040 !important;
}

.admin-tr {
  background: #171B26 !important;
}

.admin-th {
  background: #121722 !important;
  color: #8F98AA !important;
}

.admin-tr select {
  background: #121722 !important;
  color: #EEF0F6 !important;
  border-color: #303748 !important;
}

.search-field {
  background: #121722;
  border-color: #303748 !important;
}

/* Системные сообщения */
.alert.error {
  background: #37211F !important;
  color: #FF9C8C !important;
  border-color: #60302A !important;
}

.alert.success {
  background: #17332B !important;
  color: #75DDBB !important;
  border-color: #285847 !important;
}

.toast {
  background: #252B39 !important;
  color: #F7F8FB !important;
  border: 1px solid #373F52;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .42) !important;
}

/* Логин: темная правая часть, фирменный hero остается насыщенным */
.login-page {
  background: #0E1119 !important;
  color: #F4F6FB;
}

.login-panel {
  background: #111620 url('/static/img/pattern-light.jpg') center/cover no-repeat !important;
}

.login-panel::after {
  background: rgba(14, 17, 25, .94) !important;
}

.login-heading h2 {
  color: #F4F6FB;
}

.divider span {
  background: #111620 !important;
}

.demo-access {
  background: rgba(23, 27, 38, .92) !important;
  border-color: #303748 !important;
}

.demo-access code {
  background: #282441 !important;
  color: #B2ACFF !important;
}

.login-legal {
  color: #737D90 !important;
}

/* Полоса прокрутки Safari/Chromium */
*::-webkit-scrollbar-track {
  background: #0E1119;
}

*::-webkit-scrollbar-thumb {
  background: #343B4D;
  border: 2px solid #0E1119;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #454E64;
}

@media (max-width: 960px) {
  .sidebar {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
  }

  .metric-guide-panel {
    border-left: 0 !important;
    border-top-color: #5B50FF !important;
  }
}

/* ACRIR DARK THEME TOGGLE V1 */
.theme-toggle {
  background: #1C2130 !important;
  color: #E9ECF3 !important;
  border-color: #2D3446 !important;
  box-shadow: none;
}

.theme-toggle:hover {
  background: #242A3A !important;
  border-color: #5D55C8 !important;
}

.theme-toggle-icon {
  background: #292642 !important;
  color: #A69FFF !important;
}

.login-theme-toggle {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26) !important;
}

/* DNMR HERO APPLICATION DARK ALIGN V2 */
.rating-hero-action {
  background: rgba(18, 20, 32, .72) !important;
  border-color: rgba(255, 255, 255, .15) !important;
  color: #F4F6FB !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28) !important;
}

.rating-hero-action .eyebrow {
  color: rgba(255, 255, 255, .72) !important;
}

.rating-hero-action > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .72) !important;
}

.rating-hero-action .big-progress strong {
  color: #FFFFFF !important;
}

.rating-hero-action .big-progress span {
  color: rgba(255, 255, 255, .66) !important;
}

.rating-hero-action .progress-track {
  background: rgba(255, 255, 255, .18) !important;
}

.rating-hero-action .progress-track i {
  background: #FFFFFF !important;
}

.rating-hero-action .button.primary {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: #4132F5 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24) !important;
}

.rating-hero-action .button.primary:hover {
  background: #F1EFFF !important;
  border-color: #F1EFFF !important;
}

.rating-hero-action .button.secondary {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #FFFFFF !important;
}

.rating-hero-action .button.secondary:hover {
  background: rgba(255, 255, 255, .13) !important;
}

/* DNMR HERO APPLICATION GLASS DARK V2 */
.theme-dark .rating-hero-action,
[data-theme="dark"] .rating-hero-action {
  background: rgba(13, 17, 30, .34) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

/* DNMR HERO APPLICATION DARK REALIGN V3 */
html[data-theme="dark"] .rating-hero-action,
.theme-dark .rating-hero-action {
  background: #171B26 !important;
  border-color: rgba(255, 255, 255, .12) !important;
  color: #F4F6FB !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-theme="dark"] .rating-hero-action p,
html[data-theme="dark"] .rating-hero-action small,
html[data-theme="dark"] .rating-hero-action span,
.theme-dark .rating-hero-action p,
.theme-dark .rating-hero-action small,
.theme-dark .rating-hero-action span {
  color: #AEB5C5 !important;
}

html[data-theme="dark"] .rating-hero-action .eyebrow,
html[data-theme="dark"] .rating-hero-action h3,
html[data-theme="dark"] .rating-hero-action strong,
.theme-dark .rating-hero-action .eyebrow,
.theme-dark .rating-hero-action h3,
.theme-dark .rating-hero-action strong {
  color: #F4F6FB !important;
}

/* DNMR EMPTY APPLICATION DARK VISUAL ONLY V3 */

/* Темная тема меняет только вид, геометрия приходит из style.css. */
html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty,
.theme-dark .rating-hero-action.rating-hero-action-empty {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .button,
.theme-dark .rating-hero-action.rating-hero-action-empty .button {
  box-sizing: border-box !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* В dark theme сохраняем исходное пульсирующее свечение основной кнопки. */
html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .button.primary,
.theme-dark .rating-hero-action.rating-hero-action-empty .button.primary {
  min-height: 54px !important;
  background: #FFFFFF !important;
  border: 1px solid #FFFFFF !important;
  color: #4132F5 !important;
  animation: applicationGlow 2.4s ease-in-out infinite !important;
}

html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .application-continue-button::after,
.theme-dark .rating-hero-action.rating-hero-action-empty .application-continue-button::after {
  display: block !important;
  animation: applicationGlowRing 2.4s ease-out infinite !important;
}

/* Вторичная кнопка хорошо читается на hero, но остается вторичной. */
html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .button.secondary,
html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .button:not(.primary),
.theme-dark .rating-hero-action.rating-hero-action-empty .button.secondary,
.theme-dark .rating-hero-action.rating-hero-action-empty .button:not(.primary) {
  min-height: 46px !important;
  background: rgba(255, 255, 255, .17) !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  color: #FFFFFF !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 7px 18px rgba(0, 0, 0, .14) !important;
}

html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .button.secondary:hover,
html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty .button:not(.primary):hover,
.theme-dark .rating-hero-action.rating-hero-action-empty .button.secondary:hover,
.theme-dark .rating-hero-action.rating-hero-action-empty .button:not(.primary):hover {
  background: rgba(255, 255, 255, .24) !important;
  border-color: rgba(255, 255, 255, .95) !important;
  color: #FFFFFF !important;
}

/* Уже начатая заявка: dark theme не имеет права менять геометрию кнопок. */
html[data-theme="dark"] .rating-hero-action:not(.rating-hero-action-empty) .button,
.theme-dark .rating-hero-action:not(.rating-hero-action-empty) .button {
  box-sizing: border-box !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}

/* DNMR HERO ACTIONS STACK WIDTH SYNC DARK V4 */
@media (max-width: 1060px) {
  html[data-theme="dark"] .rating-hero-action,
  .theme-dark .rating-hero-action,
  html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty,
  .theme-dark .rating-hero-action.rating-hero-action-empty {
    justify-self: stretch !important;
    align-self: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html[data-theme="dark"] .rating-hero-action .button,
  .theme-dark .rating-hero-action .button {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* DNMR HERO COPY BREADCRUMB BADGE DARK V1 */
html[data-theme="dark"] .rating-hero .breadcrumb,
html[data-theme="dark"] .rating-hero .breadcrumb a,
html[data-theme="dark"] .rating-hero .breadcrumb span,
.theme-dark .rating-hero .breadcrumb,
.theme-dark .rating-hero .breadcrumb a,
.theme-dark .rating-hero .breadcrumb span {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .rating-hero-copy > .tag.light-tag,
.theme-dark .rating-hero-copy > .tag.light-tag {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, .18) !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 4px 14px rgba(0, 0, 0, .12) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* MULTI RATING CATALOG 2026 DARK V1 */
html[data-theme="dark"] .ratings-list-card.is-closed,
.theme-dark .ratings-list-card.is-closed {
  background: #151923 !important;
  border-color: #292F3E !important;
}

html[data-theme="dark"] .ratings-list-card .closed-rating-button.dark-surface,
.theme-dark .ratings-list-card .closed-rating-button.dark-surface {
  background: #222735 !important;
  border-color: #343B4A !important;
  color: #8F98AA !important;
}

html[data-theme="dark"] .ratings-calendar-event,
.theme-dark .ratings-calendar-event {
  background: #141923 !important;
  border-color: #2A3040 !important;
}

html[data-theme="dark"] .ratings-calendar-title span,
.theme-dark .ratings-calendar-title span {
  background: #202633 !important;
  color: #A2ABBC !important;
}

html[data-theme="dark"] .ratings-archive-divider,
.theme-dark .ratings-archive-divider {
  color: #9CA5B5 !important;
}

html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty.rating-hero-action-closed,
.theme-dark .rating-hero-action.rating-hero-action-empty.rating-hero-action-closed {
  background: rgba(15, 20, 32, .72) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24) !important;
  padding: 22px !important;
}

html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty.rating-hero-action-closed .closed-rating-button,
.theme-dark .rating-hero-action.rating-hero-action-empty.rating-hero-action-closed .closed-rating-button {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #C7CDDA !important;
  animation: none !important;
}

html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty.rating-hero-action-closed .closed-rating-button::after,
.theme-dark .rating-hero-action.rating-hero-action-empty.rating-hero-action-closed .closed-rating-button::after {
  display: none !important;
}

/* MULTI RATING UX TUNING 2026 V3 DARK */
html[data-theme="dark"] .rating-hero-action > p.closed-rating-copy,
html[data-theme="dark"] .rating-hero-action.rating-hero-action-closed > p.closed-rating-copy,
.theme-dark .rating-hero-action > p.closed-rating-copy,
.theme-dark .rating-hero-action.rating-hero-action-closed > p.closed-rating-copy {
  color: #FFFFFF !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .ratings-list-closed-copy span,
.theme-dark .ratings-list-closed-copy span {
  color: #D9DEE8 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .ratings-calendar,
.theme-dark .ratings-calendar {
  scrollbar-color: #596171 transparent;
}

html[data-theme="dark"] .ratings-calendar::-webkit-scrollbar-thumb,
.theme-dark .ratings-calendar::-webkit-scrollbar-thumb {
  background: #596171;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html[data-theme="dark"] .ratings-calendar::-webkit-scrollbar-thumb:hover,
.theme-dark .ratings-calendar::-webkit-scrollbar-thumb:hover {
  background: #717A8B;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* MULTI RATING UX TUNING 2026 V4 DARK */
html[data-theme="dark"] .ratings-list-card.is-closed .ratings-list-dates > div,
.theme-dark .ratings-list-card.is-closed .ratings-list-dates > div {
  background: #202532;
  border-color: #394151;
  box-shadow: none;
}

html[data-theme="dark"] .ratings-list-card.is-closed .ratings-list-dates span,
.theme-dark .ratings-list-card.is-closed .ratings-list-dates span {
  color: #AEB6C6;
}

html[data-theme="dark"] .ratings-list-card.is-closed .ratings-list-dates strong,
.theme-dark .ratings-list-card.is-closed .ratings-list-dates strong {
  color: #F4F6FA;
}

/* MULTI RATING UX TUNING 2026 V5 DARK */
html[data-theme="dark"] .fee-panel-tiered .fee-note-free,
.theme-dark .fee-panel-tiered .fee-note-free {
  background: rgba(67, 201, 157, .08) !important;
  border-color: rgba(67, 201, 157, .24) !important;
}

html[data-theme="dark"] .fee-panel-tiered .fee-note-free strong,
.theme-dark .fee-panel-tiered .fee-note-free strong {
  color: #69D7B1 !important;
}

/* Только визуальные свойства меняются от темы; вертикальная геометрия архива фиксирована. */
html[data-theme="dark"] .ratings-catalog-closed,
.theme-dark .ratings-catalog-closed {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transform: none !important;
  translate: none !important;
}

html[data-theme="dark"] .ratings-archive-divider,
.theme-dark .ratings-archive-divider {
  margin: 34px 0 24px !important;
  transform: none !important;
  translate: none !important;
}

html[data-theme="dark"] .ratings-list-card.is-closed,
.theme-dark .ratings-list-card.is-closed {
  transform: none !important;
  translate: none !important;
}


/* MULTI RATING UX TUNING 2026 V6 DARK */
html[data-theme="dark"] .fee-panel-tiered .fee-note-free,
.theme-dark .fee-panel-tiered .fee-note-free {
  background: #121721 !important;
  border-color: #252C3B !important;
}

html[data-theme="dark"] .fee-panel-tiered .fee-note-free strong,
.theme-dark .fee-panel-tiered .fee-note-free strong {
  color: #5B50FF !important;
}

html[data-theme="dark"] .rating-hero-closed-actions .closed-rating-detail-button,
.theme-dark .rating-hero-closed-actions .closed-rating-detail-button {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .34);
  color: rgba(255, 255, 255, .9);
}

html[data-theme="dark"] .rating-hero-closed-actions .rating-rules-button,
.theme-dark .rating-hero-closed-actions .rating-rules-button {
  background: #F7F8FA;
  border-color: #F7F8FA;
  color: var(--closed-rating-accent);
}


/* MULTI RATING HERO CENTER DARK 2026 V7 */
html[data-theme="dark"] .rating-hero-grid,
.theme-dark .rating-hero-grid {
  align-items: center !important;
}

html[data-theme="dark"] .rating-hero-copy,
.theme-dark .rating-hero-copy {
  align-self: center !important;
  justify-content: center !important;
}

html[data-theme="dark"] .rating-hero-action,
html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty,
html[data-theme="dark"] .rating-hero-closed-actions,
.theme-dark .rating-hero-action,
.theme-dark .rating-hero-action.rating-hero-action-empty,
.theme-dark .rating-hero-closed-actions {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
}

@media (max-width: 1060px) {
  html[data-theme="dark"] .rating-hero-grid,
  .theme-dark .rating-hero-grid {
    align-items: start !important;
  }

  html[data-theme="dark"] .rating-hero-copy,
  .theme-dark .rating-hero-copy,
  html[data-theme="dark"] .rating-hero-action,
  html[data-theme="dark"] .rating-hero-action.rating-hero-action-empty,
  html[data-theme="dark"] .rating-hero-closed-actions,
  .theme-dark .rating-hero-action,
  .theme-dark .rating-hero-action.rating-hero-action-empty,
  .theme-dark .rating-hero-closed-actions {
    align-self: auto !important;
  }
}

/* DNMR ACTIVE HERO DARK COLOR LOCK V11 */
/* В темной теме меняются только цвета, размеры и ширина кнопок остаются из style.css. */
html[data-theme="dark"] .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .button.primary,
.theme-dark .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .button.primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1EFFF 100%) !important;
  border-color: rgba(255, 255, 255, .96) !important;
  color: #3F30F2 !important;
  box-shadow:
    0 12px 28px rgba(10, 8, 55, .24),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  animation: none !important;
}

html[data-theme="dark"] .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .application-continue-button::after,
.theme-dark .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .application-continue-button::after {
  display: none !important;
  animation: none !important;
}

html[data-theme="dark"] .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .button.secondary,
html[data-theme="dark"] .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .button:not(.primary),
.theme-dark .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .button.secondary,
.theme-dark .rating-hero-dnmr .rating-hero-action.rating-hero-action-empty .button:not(.primary) {
  background: rgba(255, 255, 255, .13) !important;
  border-color: rgba(255, 255, 255, .62) !important;
  color: #FFFFFF !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 8px 20px rgba(7, 6, 39, .18) !important;
}
/* DNMR ACTIVE HERO DARK COLOR LOCK V11 END */

/* APPLICATION FREEFLOW + COMPANY GATE DARK V27 START */
.application-order-hint,
.application-map-head,
.application-section-card > small,
.company-sync-title small,
.company-sync-item span,
.dnmr-group-copy,
.dnmr-group-option-body small,
.company-confirm-row small {
  color: #9CA6B8 !important;
}

.application-map-rule {
  background: #131925 !important;
  border-color: #2D3445 !important;
  color: #9CA6B8 !important;
}

.application-map-rule.is-open {
  background: #13261F !important;
  border-color: #244A3D !important;
  color: #75DDBA !important;
}

.application-section-card {
  background: #151A25 !important;
  border-color: #2D3445 !important;
  color: #F1F3F8 !important;
}

.application-section-card:hover,
.application-section-card.is-active {
  border-color: #655BFF !important;
  box-shadow: 0 0 0 3px rgba(101,91,255,.08) !important;
}

.application-section-card.is-gate {
  background:
    radial-gradient(circle at 92% 12%, rgba(6,188,229,.10), transparent 38%),
    linear-gradient(135deg, #242039 0%, #181C2B 56%, #152333 100%) !important;
  border-color: #403A68 !important;
}

.application-section-card.is-locked {
  background: #121720 !important;
  color: #667083 !important;
  border-color: #242B38 !important;
}

.application-section-state {
  background: #282441 !important;
  color: #AAA3FF !important;
}

.application-section-card.is-complete .application-section-state {
  background: #17372C !important;
  color: #6EE0B9 !important;
}

.application-section-card.is-locked .application-section-state {
  background: #202631 !important;
  color: #687183 !important;
}

.application-section-badge {
  color: #8E98A9 !important;
}

.application-section-card.is-complete .application-section-badge {
  color: #6EE0B9 !important;
}

.company-sync-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(56,92,136,.26), transparent 38%),
    #141925 !important;
  border-color: #343B58 !important;
}

.company-sync-icon {
  background: #655BFF !important;
}

.company-sync-item {
  background: #10151F !important;
  border-color: #2D3445 !important;
}

.company-sync-item strong,
.dnmr-group-option-body b,
.company-confirm-row strong {
  color: #F1F3F8 !important;
}

.dnmr-group-card {
  background: linear-gradient(180deg, #151A25 0%, #121722 100%) !important;
  border-color: #2D3445 !important;
}

.dnmr-group-tag {
  background: #282441 !important;
  color: #AAA3FF !important;
}

.dnmr-group-option-body {
  background: #10151F !important;
  border-color: #303748 !important;
}

.dnmr-group-option-body::before {
  background: #121722 !important;
  border-color: #515B6E !important;
  box-shadow: inset 0 0 0 5px #121722 !important;
}

.dnmr-group-option input:checked + .dnmr-group-option-body {
  background: #25223E !important;
  border-color: #655BFF !important;
}

.dnmr-group-option input:checked + .dnmr-group-option-body::before {
  background: #655BFF !important;
  border-color: #655BFF !important;
}

.dnmr-group-details {
  border-top-color: #2D3445 !important;
}

.company-confirm-row {
  background: #10151F !important;
}

.alert.info {
  background: #172237 !important;
  color: #9FC4FF !important;
  border-color: #29446C !important;
}
/* APPLICATION FREEFLOW + COMPANY GATE DARK V27 END */


/* APPLICATION COMPANY PARTICIPATION DARK V30 START */
html[data-theme="dark"] .company-choice-group { background:rgba(16,21,31,.78) !important; border-color:#2D3445 !important; }
html[data-theme="dark"] .company-choice-group-head span,html[data-theme="dark"] .company-profile-choice-copy small { color:#9CA6B8 !important; }
html[data-theme="dark"] .company-choice-group-head strong,html[data-theme="dark"] .company-profile-choice-copy strong { color:#F1F3F8 !important; }
html[data-theme="dark"] .company-choice-group-head > small,html[data-theme="dark"] .company-profile-choice-mark { background:#282441 !important; color:#AAA3FF !important; }
html[data-theme="dark"] .company-profile-choice-box { background:#10151F !important; border-color:#303748 !important; }
html[data-theme="dark"] .company-profile-choice-check { background:#121722 !important; border-color:#515B6E !important; }
html[data-theme="dark"] .company-profile-choice-primary { background:#202631 !important; color:#8F99AA !important; }
html[data-theme="dark"] .company-profile-choice input:checked + .company-profile-choice-box { background:#25223E !important; border-color:#655BFF !important; }
html[data-theme="dark"] .company-profile-choice input:checked + .company-profile-choice-box .company-profile-choice-check { background:#655BFF !important; border-color:#655BFF !important; color:#fff !important; }
html[data-theme="dark"] .company-choice-group.has-error { border-color:#ff7474 !important; box-shadow:0 0 0 3px rgba(255,116,116,.10) !important; }
html[data-theme="dark"] .company-choice-validation { color:#ff9a9a !important; }
/* APPLICATION COMPANY PARTICIPATION DARK V30 END */

/* RATINGS ORIENTATION V32 DARK */
html[data-theme="dark"] .ratings-list-watermark,
.theme-dark .ratings-list-watermark {
  opacity: .15;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .18));
}

html[data-theme="dark"] .rating-card-dnmr .ratings-list-watermark,
.theme-dark .rating-card-dnmr .ratings-list-watermark {
  color: #756BFF;
}

html[data-theme="dark"] .rating-card-nesr .ratings-list-watermark,
.theme-dark .rating-card-nesr .ratings-list-watermark {
  color: #31AAB7;
}

html[data-theme="dark"] .rating-card-ntmsr .ratings-list-watermark,
.theme-dark .rating-card-ntmsr .ratings-list-watermark {
  color: #4C8BC2;
}


/* RATINGS GLASS DATES V33 DARK START */
html[data-theme="dark"] .ratings-list-dates > div,
.theme-dark .ratings-list-dates > div,
html[data-theme="dark"] .ratings-list-card.is-closed .ratings-list-dates > div,
.theme-dark .ratings-list-card.is-closed .ratings-list-dates > div {
  border-color: rgba(151, 160, 187, .20) !important;
  background: linear-gradient(135deg, rgba(28,34,47,.64), rgba(15,20,30,.44)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 12px 30px rgba(0,0,0,.10) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.06);
  backdrop-filter: blur(7px) saturate(1.06);
}
/* RATINGS GLASS DATES V33 DARK END */

/* APPLICATION STICKY CRITERIA RAIL DARK V39 START */
html[data-theme="dark"] .application-map-kicker,
html[data-theme="dark"] .application-section-copy > small,
html[data-theme="dark"] .application-map-foot {
  color: #9CA6B8 !important;
}

html[data-theme="dark"] .application-map-progress {
  background: #2D3445 !important;
}

html[data-theme="dark"] .application-map-foot {
  border-color: #2D3445 !important;
}

@media (min-width: 961px) {
  html[data-theme="dark"] .application-criteria-rail .application-section-card {
    background: #151A25 !important;
    border-color: #2D3445 !important;
  }

  html[data-theme="dark"] .application-criteria-rail .application-section-card:hover {
    background: #191E2B !important;
    border-color: #4E477F !important;
  }

  html[data-theme="dark"] .application-criteria-rail .application-section-card.is-gate {
    background: #181B2A !important;
  }

  html[data-theme="dark"] .application-criteria-rail .application-section-card.is-active {
    background: #242039 !important;
    border-color: #655BFF !important;
    box-shadow: inset 3px 0 0 #655BFF !important;
  }

  html[data-theme="dark"] .application-criteria-rail .application-section-card.is-complete:not(.is-active) {
    background: #131D1A !important;
    border-color: #244A3D !important;
  }
}
/* APPLICATION STICKY CRITERIA RAIL DARK V39 END */

/* APPLICATION CRITERIA WORKSPACE DARK V40 START */
html[data-theme="dark"] .application-company-gate {
  border-color: rgba(91,80,255,.30);
  background:
    radial-gradient(circle at 90% 10%, rgba(60,199,230,.08), transparent 38%),
    linear-gradient(135deg, #1c1c31 0%, #181c28 62%, #172331 100%);
}

html[data-theme="dark"] .application-company-gate:hover,
html[data-theme="dark"] .application-company-gate.is-active {
  border-color: rgba(91,80,255,.65);
}

html[data-theme="dark"] .application-company-gate-icon,
html[data-theme="dark"] .application-company-gate-status {
  background: rgba(91,80,255,.14);
}

html[data-theme="dark"] .application-send-link {
  background: #121621;
}

html[data-theme="dark"] .application-send-link:hover,
html[data-theme="dark"] .application-send-link.is-active {
  background: #201f38;
}

html[data-theme="dark"] .application-send-link.is-ready,
html[data-theme="dark"] .application-submit-summary.is-ready {
  background: rgba(67,201,157,.07);
}

@media (min-width: 961px) {
  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card {
    background: #181c27;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card:hover {
    background: #20202f;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-active {
    background: #24213d;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-complete:not(.is-active) {
    background: rgba(67,201,157,.045);
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-locked {
    background: #141821;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-active .application-section-state {
    box-shadow: inset 0 0 0 3px #24213d;
  }
}
/* APPLICATION CRITERIA WORKSPACE DARK V40 END */

/* APPLICATION CRITERIA STATES V43 DARK START */
@media (min-width: 961px) {
  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-complete .application-section-state {
    border-color: rgba(67,201,157,.22) !important;
    background: rgba(67,201,157,.17) !important;
    color: #6ee0b9 !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-complete .application-criterion-weight b {
    color: var(--blue) !important;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-complete .application-criterion-weight small {
    color: var(--muted) !important;
  }
}
/* APPLICATION CRITERIA STATES V43 DARK END */


/* APPLICATION CRITERION CONFIRM / EDIT STATES V44 DARK START */
@media (min-width: 961px) {
  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-complete {
    border-color: rgba(67,201,157,.20) !important;
    background:
      radial-gradient(circle at 90% 10%, rgba(60,199,230,.08), transparent 38%),
      linear-gradient(135deg, #1c1c31 0%, #181c28 62%, #172331 100%) !important;
  }

  html[data-theme="dark"] body.application-page .application-criteria-rail .application-section-card.is-active.is-complete {
    border-color: rgba(91,80,255,.65) !important;
    box-shadow: inset 3px 0 0 #655BFF !important;
  }

  html[data-theme="dark"] body.application-page .application-form.is-criterion-locked .field input[readonly],
  html[data-theme="dark"] body.application-page .application-form.is-criterion-locked .field select:disabled {
    background: #141821;
    border-color: #2b3140;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }
}
/* APPLICATION CRITERION CONFIRM / EDIT STATES V44 DARK END */

