/* N-INFO dark-theme audit layer. Loaded after section styles. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#171a1e;--surface:#22262b;--surface-2:#2a2f35;--surface-3:#30353b;
  --text:#f2f3f4;--text-secondary:#c4c8cd;--text-muted:#9fa5ad;
  --border:#383e45;--brand-soft:rgba(243,107,33,.16);
}
html[data-theme="dark"] body,
html[data-theme="dark"] body.ninfo-geo-shell,
html[data-theme="dark"] .wrapper,
html[data-theme="dark"] .wrapper-inner,
html[data-theme="dark"] .content-box,
html[data-theme="dark"] #content-box{background:#171a1e;color:#f2f3f4}
html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .breadcrumb a{color:#aeb4bb}
html[data-theme="dark"] .breadcrumb li,
html[data-theme="dark"] .breadcrumb li span,
html[data-theme="dark"] .breadcrumb li [itemprop="item"],
html[data-theme="dark"] .breadcrumb li [itemprop="name"]{color:#aeb4bb!important}
html[data-theme="dark"] .breadcrumb li:last-child,
html[data-theme="dark"] .breadcrumb li:last-child span,
html[data-theme="dark"] .breadcrumb li:last-child [itemprop="item"],
html[data-theme="dark"] .breadcrumb li:last-child [itemprop="name"]{color:#eef1f3!important}
html[data-theme="dark"] .breadcrumb li+li:before{color:#6f7780!important}
html[data-theme="dark"] body.ninfo-geo-shell:has(.nnews__grid) .section-desc,
html[data-theme="dark"] body.ninfo-geo-shell:has(.nnews__grid) .section-desc p{
  border-color:#3b4249!important;background:transparent!important;color:#dfe3e6!important
}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color-scheme:dark}
html[data-theme="dark"] option{background:#25292e;color:#f2f3f4}

/* Header, drawers, footer and shared overlays. */
html[data-theme="dark"] .hdr,html[data-theme="dark"] .hdr__top,
html[data-theme="dark"] .hdr__main,html[data-theme="dark"] .hdr__chipbar,
html[data-theme="dark"] .drawer,html[data-theme="dark"] .geo__panel,
html[data-theme="dark"] .footer{border-color:#383e45;background:#1d2024;color:#f2f3f4}
html[data-theme="dark"] .hdr__search,html[data-theme="dark"] .hdr__search input,
html[data-theme="dark"] .hdr__search select{border-color:#3b4148;background:#292d32;color:#f2f3f4}
html[data-theme="dark"] .chip,html[data-theme="dark"] .hdr__chip-toggle{border-color:#3b4148;background:#25292e;color:#d9dcdf}

/* Main page. */
html[data-theme="dark"] .portal-home,html[data-theme="dark"] .portal-section,
html[data-theme="dark"] .portal-home--v1 .portal-news,
html[data-theme="dark"] .portal-home--v1 .portal-market,
html[data-theme="dark"] .portal-home--v1 .portal-classifieds{border-color:#343a41;background:#171a1e;color:#f2f3f4}
html[data-theme="dark"] .portal-product,html[data-theme="dark"] .portal-demo-grid>a,
html[data-theme="dark"] .portal-event-grid>a,html[data-theme="dark"] .portal-news-tabs a,
html[data-theme="dark"] .portal-industry-place{color:#f2f3f4}
html[data-theme="dark"] .portal-product__image,html[data-theme="dark"] .portal-demo-image,
html[data-theme="dark"] .portal-news-tabs__thumb{background:#292e34}
html[data-theme="dark"] .portal-demo-grid>a,html[data-theme="dark"] .portal-news-tabs,
html[data-theme="dark"] .portal-industry-card{border-color:#394047;background:#22262b}
html[data-theme="dark"] .portal-industry-place{border-color:#343a41;background:#252a30}
html[data-theme="dark"] .portal-industry-place:hover{background:#2d333a}
html[data-theme="dark"] .portal-industry-place__logo,html[data-theme="dark"] .portal-industry-carousel__arrow{border-color:#3b424a;background:#2a2f35;color:#f2f3f4}
html[data-theme="dark"] .portal-industry-place>b{background:#3a3f45;color:#f2f3f4}

/* Classified board, detail, authentication and submission. */
html[data-theme="dark"] .classified-board,html[data-theme="dark"] .classified-detail,
html[data-theme="dark"] .classified-cabinet,html[data-theme="dark"] .classified-profile{color:#f2f3f4}
html[data-theme="dark"] .classified-card,html[data-theme="dark"] .classified-viewed_sidebar,
html[data-theme="dark"] .classified-detail-info,html[data-theme="dark"] .classified-detail-question,
html[data-theme="dark"] .classified-seo,html[data-theme="dark"] .classified-profile-settings__card,
html[data-theme="dark"] .classified-category-picker,html[data-theme="dark"] .classified-catalog-filters,
html[data-theme="dark"] .classified-report-modal form,html[data-theme="dark"] .classified-empty,
html[data-theme="dark"] .classified-board.classified-board_auth{border-color:#3a4047;background:#22262b;color:#f2f3f4;box-shadow:none}
html[data-theme="dark"] .classified-card__title,html[data-theme="dark"] .classified-card__link,
html[data-theme="dark"] .classified-detail-info__heading{color:#f2f3f4}
html[data-theme="dark"] .classified-detail-info__heading{background:#22262b}
html[data-theme="dark"] .classified-detail-info__heading:hover{background:#292e34}
html[data-theme="dark"] .classified-board_auth .classified-board__auth-btn,
html[data-theme="dark"] .classified-color-palette__item,html[data-theme="dark"] .classified-catalog-filters input,
html[data-theme="dark"] .classified-catalog-filters select,html[data-theme="dark"] .classified-catalog-filters__save,
html[data-theme="dark"] .classified-cabinet-item__actions button{border-color:#41474f;background:#292e34;color:#f2f3f4}
html[data-theme="dark"] .classified-auth-close,html[data-theme="dark"] .classified-cabinet-nav a,
html[data-theme="dark"] .classified-cabinet-tabs b,html[data-theme="dark"] .classified-form__progress span{background:#2d3238;color:#c9cdd2}
html[data-theme="dark"] .classified-title-suggestions,html[data-theme="dark"] .classified-search-suggestions{border-color:#424850;background:#24282d;color:#f2f3f4;box-shadow:0 16px 42px rgba(0,0,0,.42)}
html[data-theme="dark"] .classified-title-suggestions__item{border-color:#383e45;background:#24282d;color:#f2f3f4}
html[data-theme="dark"] .classified-title-suggestions__item:hover,html[data-theme="dark"] .classified-search-suggestions__item.is-active{background:#30353b}
html[data-theme="dark"] .classified-detail-question__field textarea{border-color:#41474e;background:#292e34;color:#f2f3f4}
html[data-theme="dark"] .classified-detail-question__prompts button{border-color:#74472e;background:#38291f;color:#ffb181}
html[data-theme="dark"] .classified-thread{background:#1c2024}
html[data-theme="dark"] .classified-thread article{background:#2b3036;color:#f2f3f4}
html[data-theme="dark"] .classified-thread article.is-outgoing{background:#3b2b21}

/* Classified search toolbar and detail: prevent light surfaces and low-contrast inherited text. */
html[data-theme="dark"] .classified-avito-search.classified-avito-search_v2,
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__query,
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__field,
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__field input,
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__city,
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__city select{
  border-color:#3c434a!important;background:#24292f!important;color:#f2f3f4!important
}
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__field input::placeholder{color:#9fa6ad!important;opacity:1}
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__icon,
html[data-theme="dark"] .classified-avito-search_v2 .classified-avito-search__city-icon{color:#ff873d!important}
html[data-theme="dark"] .classified-detail__aside{
  border-color:#3a4148!important;background:#22262b!important;color:#f2f3f4!important;box-shadow:none!important
}
html[data-theme="dark"] .classified-detail__price,
html[data-theme="dark"] .classified-detail__aside strong,
html[data-theme="dark"] .classified-detail__aside b{color:#f2f3f4!important}
html[data-theme="dark"] .classified-detail__aside small,
html[data-theme="dark"] .classified-detail__meta{color:#aeb4bb!important}
html[data-theme="dark"] .classified-detail__message-btn,
html[data-theme="dark"] .classified-detail__share{
  border-color:#41484f!important;background:#292e34!important;color:#f2f3f4!important
}
html[data-theme="dark"] .classified-detail__message-btn:hover,
html[data-theme="dark"] .classified-detail__share:hover{border-color:#6b472f!important;background:#382a21!important;color:#ff9a5a!important}
html[data-theme="dark"] .classified-detail-info dd,
html[data-theme="dark"] .classified-detail-info dt,
html[data-theme="dark"] .classified-detail-info p,
html[data-theme="dark"] .classified-detail-info li{color:#dfe2e5!important}
html[data-theme="dark"] .classified-recommendations__heading,
html[data-theme="dark"] .classified-recommendations__heading span{color:#f2f3f4!important}
html[data-theme="dark"] .classified-detail__gallery-main,
html[data-theme="dark"] .classified-detail__gallery-main-img,
html[data-theme="dark"] .classified-detail__gallery-thumb{background:#252a30!important}
html[data-theme="dark"] .classified-detail__gallery-nav{border-color:#444b52!important;background:rgba(34,38,43,.92)!important;color:#f2f3f4!important}

/* Cars: catalogue, detail, account and add form. */
html[data-theme="dark"] .auto-market,html[data-theme="dark"] .auto-detail,
html[data-theme="dark"] .auto-add,html[data-theme="dark"] .auto-cabinet,
html[data-theme="dark"] .auto-profile{background:#171a1e;color:#f2f3f4}
html[data-theme="dark"] .auto-search,html[data-theme="dark"] .auto-search--drom,
html[data-theme="dark"] .auto-search-main,html[data-theme="dark"] .auto-advanced,
html[data-theme="dark"] .auto-card,html[data-theme="dark"] .auto-drom-card,
html[data-theme="dark"] .auto-feature-card,html[data-theme="dark"] .auto-seller,
html[data-theme="dark"] .auto-add-panel,html[data-theme="dark"] .auto-profile-head,
html[data-theme="dark"] .auto-report,html[data-theme="dark"] .auto-trust-dialog{border-color:#394047;background:#22262b;color:#f2f3f4}
html[data-theme="dark"] .auto-search select,html[data-theme="dark"] .auto-search input,
html[data-theme="dark"] .auto-drom-results__head select,html[data-theme="dark"] .auto-add-grid input,
html[data-theme="dark"] .auto-add-grid select,html[data-theme="dark"] .auto-add-grid textarea{border-color:#414850;background:#292e34;color:#f2f3f4;box-shadow:none}
html[data-theme="dark"] .auto-city-tabs a,html[data-theme="dark"] .auto-condition-tabs a,
html[data-theme="dark"] .auto-search-more button,html[data-theme="dark"] .auto-add-steps button,
html[data-theme="dark"] .auto-owner-list nav a,html[data-theme="dark"] .auto-owner-list nav button,
html[data-theme="dark"] .auto-drom-card__aside>button{border-color:#41474e;background:#2d3238;color:#d9dcdf}
html[data-theme="dark"] .auto-card a,html[data-theme="dark"] .auto-drom-card a,
html[data-theme="dark"] .auto-feature-card,html[data-theme="dark"] .auto-seller>a{color:#f2f3f4}
html[data-theme="dark"] .auto-map-canvas,html[data-theme="dark"] .auto-photo-drop{background:#252a30}
html[data-theme="dark"] .auto-advanced,html[data-theme="dark"] .auto-search.auto-search--drom,
html[data-theme="dark"] .auto-specs,html[data-theme="dark"] .auto-description,
html[data-theme="dark"] .auto-location,html[data-theme="dark"] .auto-similar,
html[data-theme="dark"] .auto-add-success,html[data-theme="dark"] .auto-add-login{border-color:#3b4249;background:#22262b;color:#f2f3f4}
html[data-theme="dark"] .auto-advanced input,html[data-theme="dark"] .auto-advanced select{border-color:#414850;background:#292e34;color:#f2f3f4}
html[data-theme="dark"] .auto-city-tabs>a,html[data-theme="dark"] .auto-city-more>span,
html[data-theme="dark"] .auto-pagination a,html[data-theme="dark"] .auto-detail-favorite,
html[data-theme="dark"] .auto-carousel-arrow,html[data-theme="dark"] .auto-gallery-main button{border-color:#414850;background:#2b3036;color:#f2f3f4}
html[data-theme="dark"] .auto-gallery-main:before,html[data-theme="dark"] .auto-gallery-main img,
html[data-theme="dark"] .auto-key-facts>div,html[data-theme="dark"] .auto-ad{background:#292e34;color:#c7cbd0}
html[data-theme="dark"] .auto-filter-chips a{background:#2b3036;color:#d8dbdf}

/* Auto catalogue: keep carousel, filters and list on one continuous canvas. */
html[data-theme="dark"] .auto-market .auto-feature-card,
html[data-theme="dark"] .auto-market .auto-search-main,
html[data-theme="dark"] .auto-market .auto-drom-card{
    border-color:transparent;
    background:transparent;
    box-shadow:none;
}
html[data-theme="dark"] .auto-market .auto-search.auto-search--drom{
    border-color:#343a41;
    background:#1c2025;
    box-shadow:none;
}
html[data-theme="dark"] .auto-market .auto-search--drom select,
html[data-theme="dark"] .auto-market .auto-search--drom input,
html[data-theme="dark"] .auto-market .auto-drom-results__head select{
    border-color:#3c434b;
    background:#24292f;
    color:#f1f3f5;
}
html[data-theme="dark"] .auto-market .auto-search--drom select:hover,
html[data-theme="dark"] .auto-market .auto-search--drom input:hover{
    border-color:#59616a;
}
html[data-theme="dark"] .auto-market .auto-search--drom select:focus,
html[data-theme="dark"] .auto-market .auto-search--drom input:focus{
    border-color:#f36b21;
    box-shadow:0 0 0 3px rgba(243,107,33,.15);
}
html[data-theme="dark"] .auto-market .auto-city-tabs>a,
html[data-theme="dark"] .auto-market .auto-city-more>span{
    border-color:#3a4148;
    background:#20252a;
    color:#d8dce0;
}
html[data-theme="dark"] .auto-market .auto-city-tabs>a:hover,
html[data-theme="dark"] .auto-market .auto-city-tabs>a.is-active{
    border-color:#f36b21;
    background:#39271e;
    color:#ff9b61;
}
html[data-theme="dark"] .auto-market .auto-condition-tabs{border-color:#343a41}
html[data-theme="dark"] .auto-market .auto-condition-tabs a{background:transparent;color:#abb1b7}
html[data-theme="dark"] .auto-market .auto-condition-tabs a:hover,
html[data-theme="dark"] .auto-market .auto-condition-tabs a.is-active{color:#f2f3f4}
html[data-theme="dark"] .auto-market .auto-drom-results__head,
html[data-theme="dark"] .auto-market .auto-drom-card{border-bottom-color:#343a41}
html[data-theme="dark"] .auto-market .auto-drom-card:hover{background:#1c2025}
html[data-theme="dark"] .auto-market .auto-drom-card__image,
html[data-theme="dark"] .auto-market .auto-feature-card__image{background:#20252a}
html[data-theme="dark"] .auto-market .auto-drom-card__info p{color:#c0c5ca}
html[data-theme="dark"] .auto-market .auto-drom-card__info small,
html[data-theme="dark"] .auto-market .auto-feature-card small{color:#9299a1}
html[data-theme="dark"] .auto-market .auto-drom-card__aside>button{border:1px solid #3a4148;background:#24292f;color:#f36b21}
html[data-theme="dark"] .auto-market .auto-drom-card__aside>button:hover,
html[data-theme="dark"] .auto-market .auto-drom-card__aside>button[aria-pressed=true]{border-color:#704126;background:#38271e;color:#ff8b4a}
html[data-theme="dark"] .auto-market .auto-carousel-arrow{border:1px solid #414850;background:#24292f;color:#f2f3f4;box-shadow:0 5px 18px rgba(0,0,0,.42)}

/* Realty: search, cards, filters, detail and forms. */
html[data-theme="dark"] .realty{color:#f2f3f4}
html[data-theme="dark"] .realty-search form,
html[data-theme="dark"] .realty-search__select,html[data-theme="dark"] .realty-search__query,
html[data-theme="dark"] .realty-search__city,
html[data-theme="dark"] .realty-filters,html[data-theme="dark"] .realty-seller,
html[data-theme="dark"] .realty-detail main>section,html[data-theme="dark"] .realty-submit-form section,
html[data-theme="dark"] .realty-empty{border-color:#3b4249;background:#22262b;color:#f2f3f4;box-shadow:none}
html[data-theme="dark"] .realty-search select,html[data-theme="dark"] .realty-search input,
html[data-theme="dark"] .realty-filter-field select,html[data-theme="dark"] .realty-filter-field input,
html[data-theme="dark"] .realty-filter-rooms span,html[data-theme="dark"] .realty-results-head button,
html[data-theme="dark"] .realty-results-head select,html[data-theme="dark"] .realty-form-grid input,
html[data-theme="dark"] .realty-form-grid select,html[data-theme="dark"] .realty-form-grid textarea{border-color:#414850!important;background:#292e34!important;color:#f2f3f4!important}
html[data-theme="dark"] .realty-detail dl div,
html[data-theme="dark"] .realty-photo-input,html[data-theme="dark"] .realty-gallery,
html[data-theme="dark"] .realty-map,html[data-theme="dark"] .realty-detail-map{border-color:#3b4249;background:#292e34;color:#f2f3f4}
html[data-theme="dark"] .realty-card__title,html[data-theme="dark"] .realty-categories a{color:#f2f3f4}
html[data-theme="dark"] .realty-ad:not(.realty-ad_brand){border-color:#3b4249;background:#24292f;color:#aeb4bb}
html[data-theme="dark"] .realty-article__lead{background:#38291f;color:#f2f3f4}

/* Realty submission controls. Explicit input types are required for Safari:
   its native number-field paint may otherwise remain white. */
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid input:not([type="file"]),
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid input[type="number"],
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid input[type="text"],
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid input[type="tel"],
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid select,
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid textarea{
  border-color:#454c54!important;
  background-color:#292e34!important;
  background-image:none!important;
  color:#f3f5f7!important;
  -webkit-text-fill-color:#f3f5f7!important;
  box-shadow:none!important;
  color-scheme:dark!important;
}
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid input[type="number"]{
  -webkit-appearance:none!important;
  appearance:none!important;
}
html[data-theme="dark"][data-ninfo-theme="dark"] body .realty-submit-page .realty-submit-form .realty-form-grid input:-webkit-autofill{
  -webkit-box-shadow:0 0 0 1000px #292e34 inset!important;
  box-shadow:0 0 0 1000px #292e34 inset!important;
  -webkit-text-fill-color:#f3f5f7!important;
}

/* Realty catalogue: keep photography visible and remove gray slabs. */
html[data-theme="dark"] .realty-search{
  background:transparent!important;
}
html[data-theme="dark"] .realty-categories a{
  border-color:#3b4249!important;
  background-color:#292e34!important;
  color:#fff!important;
}
html[data-theme="dark"] .realty-categories a::before{
  background:linear-gradient(90deg,rgba(12,15,18,.58),rgba(12,15,18,.06) 82%)!important;
}
html[data-theme="dark"] .realty-card{
  border-color:#343a41!important;
  background:transparent!important;
  color:#f2f3f4!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .realty-card:hover{background:#1c2025!important}
html[data-theme="dark"] .realty-sidebar>section{
  border-color:#3b4249!important;
  background:transparent!important;
  color:#eef1f4!important;
}
html[data-theme="dark"] .realty-sidebar>section h2,
html[data-theme="dark"] .realty-sidebar>section p,
html[data-theme="dark"] .realty-viewed-card,
html[data-theme="dark"] .realty-viewed-card__body strong,
html[data-theme="dark"] .realty-viewed-card__body b{color:#eef1f4!important}
html[data-theme="dark"] .realty-viewed-card__image{background:#292e34!important;color:#f58220!important}
html[data-theme="dark"] .realty-filters{
  border-color:#343a41!important;
  background:transparent!important;
  box-shadow:none!important;
}

html[data-theme="dark"] .classified-subcategory-chips a,
html[data-theme="dark"] .classified-form__category-summary>a{border-color:#414850;background:#292e34;color:#dadddf}
html[data-theme="dark"] .classified-form__category-summary{background:#24292f}
html[data-theme="dark"] .classified-viewed__photo,
html[data-theme="dark"] .classified-grid_unified .classified-card__photo{background:#292e34;color:#aeb4bb;box-shadow:none}
html[data-theme="dark"] .classified-card_promo_highlight{background:#3a3023}
html[data-theme="dark"] .classified-card_promo_vip{background:#3b2b21}

/* Classified latest cards stay visually open in dark mode. */
html[data-theme="dark"] .classified-avito-latest .classified-grid_unified .classified-card,
html[data-theme="dark"] .classified-board_home .classified-avito-latest .classified-card{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .classified-avito-latest .classified-grid_unified .classified-card:hover,
html[data-theme="dark"] .classified-board_home .classified-avito-latest .classified-card:hover{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .classified-avito-latest .classified-card__price,
html[data-theme="dark"] .classified-grid_unified .classified-card__price{
  color:#f4f6f8!important;
}

/* News and legacy news/sidebar cards. */
html[data-theme="dark"] .nnews,html[data-theme="dark"] .nnews .section,
html[data-theme="dark"] .news-list,html[data-theme="dark"] .news-detail{background:#171a1e;color:#f2f3f4}
html[data-theme="dark"] .nnews .card,html[data-theme="dark"] .nnews .feed-controls,
html[data-theme="dark"] .news-feed-item,html[data-theme="dark"] .section-news,
html[data-theme="dark"] .section-news__text-box{border-color:#3a4047;background:#22262b;color:#f2f3f4}
html[data-theme="dark"] .nnews a,html[data-theme="dark"] .news-feed-item a,
html[data-theme="dark"] .section-news__title-link{color:#f2f3f4}
html[data-theme="dark"] .nnews .chip,html[data-theme="dark"] .section-subnav__link{border-color:#3c434a;background:#292e34;color:#dadddf}

/* Regional news pages use the same open card surface as the Novokuznetsk feed. */
html[data-theme="dark"] .nnews--geo .news-card{
  border-color:transparent!important;
  background:transparent!important;
  color:#eef1f4!important;
  box-shadow:none!important;
}

/* News detail: readable article copy and a fully dark comment surface. */
html[data-theme="dark"] .borderbx:has(.news-detail),
html[data-theme="dark"] .news-detail,
html[data-theme="dark"] .news-detail__comments,
html[data-theme="dark"] .news-comments{
  border-color:#3b4249!important;background:#171a1e!important;color:#f2f3f4!important
}
html[data-theme="dark"] .news-detail>p,
html[data-theme="dark"] .news-detail .news-body,
html[data-theme="dark"] .news-detail .news-body p,
html[data-theme="dark"] .news-detail .news-body li,
html[data-theme="dark"] .news-detail h2,
html[data-theme="dark"] .news-detail h3,
html[data-theme="dark"] .news-vk-follow__text{
  color:#eef1f3!important
}
html[data-theme="dark"] .news-vk-follow{
  border-color:#4a4039!important;background:#2c2723!important;color:#eef1f3!important
}
html[data-theme="dark"] .news-vk-follow--max{
  border-color:#46405f!important;background:#272432!important;color:#eef1f3!important
}
html[data-theme="dark"] .news-comments__form,
html[data-theme="dark"] .news-comments__list,
html[data-theme="dark"] .news-comments__item,
html[data-theme="dark"] .news-comments__thread,
html[data-theme="dark"] .news-comments__replies{
  border-color:#3b4249!important;background:#22262b!important;color:#eef1f3!important
}
html[data-theme="dark"] .news-comments__form-title,
html[data-theme="dark"] .news-comments__author,
html[data-theme="dark"] .news-comments__text,
html[data-theme="dark"] .news-comments__empty,
html[data-theme="dark"] .news-comments p{
  color:#eef1f3!important
}
html[data-theme="dark"] .news-comments__textarea,
html[data-theme="dark"] .news-comments__input{
  border-color:#4a5159!important;background:#292e34!important;color:#f7f8f9!important;caret-color:#f36b21!important;box-shadow:none!important
}
html[data-theme="dark"] .news-comments__textarea:focus,
html[data-theme="dark"] .news-comments__input:focus{
  border-color:#f36b21!important;box-shadow:0 0 0 3px rgba(243,107,33,.16)!important;outline:0!important
}
html[data-theme="dark"] .news-comments__hint,
html[data-theme="dark"] .news-comments__reply-preview,
html[data-theme="dark"] .news-comments__quote,
html[data-theme="dark"] .news-comments__item.is-target{
  border-color:#4a5159!important;background:#292e34!important;color:#cfd4d9!important
}
html[data-theme="dark"] .news-comments__date,
html[data-theme="dark"] .news-comments__reply-to,
html[data-theme="dark"] .news-comments__quote-label{color:#aeb5bc!important}
html[data-theme="dark"] .news-comments__reply-btn,
html[data-theme="dark"] .news-comments__permalink,
html[data-theme="dark"] .news-comments__reply-cancel{color:#f58220!important}
html[data-theme="dark"] .news-comments__admin-btn{
  border-color:#626a73!important;background:#30363c!important;color:#dce0e4!important
}
html[data-theme="dark"] .news-comments__vote-btn:hover{background:#343a41!important;color:#eef1f3!important}

/* Empty news ad rail must remain invisible until widgets or RYA are mounted. */
html[data-theme="dark"] body.ninfo-geo-shell:is(:has(.nnews__grid),:has(.news-detail)) #sidebar-box,
html[data-theme="dark"] body.ninfo-geo-shell:is(:has(.nnews__grid),:has(.news-detail)) #sidebar-box:empty{
  border:0!important;background:transparent!important;box-shadow:none!important
}

/* Profile, cabinet, messages, reviews and chat widget. */
html[data-theme="dark"] .classified-cabinet-profile,html[data-theme="dark"] .classified-profile__head,
html[data-theme="dark"] .classified-profile__feedback,html[data-theme="dark"] .classified-profile__reviews,
html[data-theme="dark"] .classified-profile__listings,html[data-theme="dark"] .classified-reviews-summary,
html[data-theme="dark"] .classified-reviews-list article,html[data-theme="dark"] .classified-messages,
html[data-theme="dark"] .ninfo-chat__window{border-color:#3b4148;background:#22262b;color:#f2f3f4;box-shadow:none}
html[data-theme="dark"] .classified-cabinet-profile__avatar,html[data-theme="dark"] .classified-profile-avatar-upload,
html[data-theme="dark"] .classified-profile__avatar{border-color:#3b4148;background:#292e34;color:#f58220}
html[data-theme="dark"] .classified-messages__dialog,html[data-theme="dark"] .classified-messages__conversation-head,
html[data-theme="dark"] .classified-messages__composer,html[data-theme="dark"] .classified-messages__bulk,
html[data-theme="dark"] .ninfo-chat__dialog,html[data-theme="dark"] .ninfo-chat__composer,
html[data-theme="dark"] .ninfo-chat__prompts,html[data-theme="dark"] .ninfo-chat__bulk{border-color:#3b4148;background:#24282d;color:#f2f3f4}
html[data-theme="dark"] .classified-messages__conversation,html[data-theme="dark"] .ninfo-chat__body{background:#1b1f23}
html[data-theme="dark"] .classified-messages__dialog:hover,html[data-theme="dark"] .classified-messages__dialog.is-active,
html[data-theme="dark"] .ninfo-chat__dialog:hover{background:#30353b}
html[data-theme="dark"] .classified-messages__search input,html[data-theme="dark"] .classified-messages__composer input,
html[data-theme="dark"] .ninfo-chat__composer input{border-color:#414850;background:#2a2f35;color:#f2f3f4}
html[data-theme="dark"] .ninfo-chat__window header button,html[data-theme="dark"] .ninfo-chat__window header .ninfo-chat__all-link,
html[data-theme="dark"] .ninfo-chat__filters button,html[data-theme="dark"] .ninfo-chat__bulk button,
html[data-theme="dark"] .classified-messages__filters button,html[data-theme="dark"] .classified-messages__bulk button{background:#30353b;color:#dadddf}
html[data-theme="dark"] .ninfo-chat__message{background:#30353b;color:#f2f3f4}
html[data-theme="dark"] .ninfo-chat__message.is-mine,html[data-theme="dark"] .classified-messages__message.is-mine{background:#3b2b21}

/* Personal area: remove light controls and cards in dark mode. */
html[data-theme="dark"] .classified-personal-page,
html[data-theme="dark"] .classified-personal-layout,
html[data-theme="dark"] .classified-personal-content,
html[data-theme="dark"] .classified-board_cabinet,
html[data-theme="dark"] .classified-cabinet-content{
  color:#eef1f4!important;
}
html[data-theme="dark"] .classified-cabinet-nav a,
html[data-theme="dark"] .classified-cabinet-subnav a,
html[data-theme="dark"] .classified-cabinet-tabs b,
html[data-theme="dark"] .classified-messages__filters button,
html[data-theme="dark"] .classified-messages__bulk button{
  border-color:#3f464e!important;background:#292e34!important;color:#d9dde1!important;box-shadow:none!important
}
html[data-theme="dark"] .classified-cabinet-nav a:hover,
html[data-theme="dark"] .classified-cabinet-subnav a:hover{
  border-color:#545d66!important;background:#333940!important;color:#fff!important
}
html[data-theme="dark"] .classified-cabinet-nav a.is-active,
html[data-theme="dark"] .classified-cabinet-subnav a.is-active,
html[data-theme="dark"] .classified-cabinet-tabs a.is-active{
  border-color:#f58220!important;background:#f58220!important;color:#fff!important
}
html[data-theme="dark"] .classified-cabinet-tabs{
  border-color:#3b4249!important
}
html[data-theme="dark"] .classified-cabinet-tabs a{color:#aeb5bc!important}
html[data-theme="dark"] .classified-cabinet-card,
html[data-theme="dark"] .classified-cabinet-item,
html[data-theme="dark"] .classified-profile-settings__card,
html[data-theme="dark"] .classified-drafts-list article,
html[data-theme="dark"] .classified-saved-searches article,
html[data-theme="dark"] .classified-orders article,
html[data-theme="dark"] .classified-message-item{
  border-color:#3b4249!important;background:#22272d!important;color:#eef1f4!important;box-shadow:none!important
}
html[data-theme="dark"] .classified-profile-settings__card>h2,
html[data-theme="dark"] .classified-saved-searches article>a,
html[data-theme="dark"] .classified-message-item,
html[data-theme="dark"] .classified-card__title{color:#eef1f4!important}
html[data-theme="dark"] .classified-profile-settings__card>p,
html[data-theme="dark"] .classified-cabinet-item__meta,
html[data-theme="dark"] .classified-saved-searches article span,
html[data-theme="dark"] .classified-message-item time{color:#aeb5bc!important}
html[data-theme="dark"] .classified-cabinet-item__actions button,
html[data-theme="dark"] .classified-cabinet-card__actions button,
html[data-theme="dark"] .classified-cabinet-card__actions a:not(.classified-board__btn_primary),
html[data-theme="dark"] .classified-profile-settings .classified-board__btn:not(.classified-board__btn_primary),
html[data-theme="dark"] .classified-drafts-list button,
html[data-theme="dark"] .classified-saved-searches button{
  border-color:#454c54!important;background:#2b3036!important;color:#dce0e4!important;box-shadow:none!important
}

/* Afisha, weather, Sheregesh and company catalogue. */
html[data-theme="dark"] .afisha-page,html[data-theme="dark"] .weather-page,
html[data-theme="dark"] .sg-hub{background:#171a1e;color:#f2f3f4}
html[data-theme="dark"] .afisha-card,html[data-theme="dark"] .weather-now,
html[data-theme="dark"] .weather-day-card,html[data-theme="dark"] .weather-panel,
html[data-theme="dark"] .weather-summary-card,html[data-theme="dark"] .weather-hourly__slot,
html[data-theme="dark"] .weather-page__seo,html[data-theme="dark"] .sg-hub__lead,
html[data-theme="dark"] .company-card,html[data-theme="dark"] .catalog-detail,
html[data-theme="dark"] .item-views{border-color:#3b4249;background:#22262b;color:#f2f3f4}
html[data-theme="dark"] .weather-tabs__nav,html[data-theme="dark"] .weather-three-day,
html[data-theme="dark"] .section-subnav{border-color:#3b4249;background:#24292f;color:#f2f3f4}
html[data-theme="dark"] .afisha-card a,html[data-theme="dark"] .weather-page a,
html[data-theme="dark"] .sg-hub a,html[data-theme="dark"] .company-card a{color:#f2f3f4}

/* Afisha metadata and showtimes must not flash white in dark mode. */
html[data-theme="dark"] .afisha-tag{
  border:1px solid #414850!important;
  background:#2a2f35!important;
  color:#d9dde1!important;
}
html[data-theme="dark"] .afisha-card__showtimes,
html[data-theme="dark"] .afisha-card__details{border-color:#3b4249!important}
html[data-theme="dark"] .afisha-showtime{
  border:1px solid #3b4249!important;
  background:#252a30!important;
  color:#eef1f4!important;
}
html[data-theme="dark"] .afisha-showtime__venue,
html[data-theme="dark"] .afisha-showtime__cinema{color:#eef1f4!important}
html[data-theme="dark"] .afisha-time{
  border-color:#704126!important;
  background:#30363d!important;
  color:#ff873d!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .afisha-time:hover,
html[data-theme="dark"] .afisha-time:focus-visible{
  border-color:#f36b21!important;
  background:#3a2b22!important;
  color:#fff!important;
}
html[data-theme="dark"] .afisha-card__genres,
html[data-theme="dark"] .afisha-card__director,
html[data-theme="dark"] .afisha-card__photo,
html[data-theme="dark"] .afisha-card__details{color:#aeb5bc!important}
html[data-theme="dark"] .afisha-subnav__link,
html[data-theme="dark"] .content-box .afisha-subnav__link,
html[data-theme="dark"] .content-box .afisha-subnav__link:visited{
  border-color:#3c434a!important;background:#252a30!important;color:#dfe3e6!important
}
html[data-theme="dark"] .afisha-subnav__link:hover,
html[data-theme="dark"] .afisha-subnav__link:focus-visible{
  border-color:#6f4931!important;background:#33271f!important;color:#ff9a5a!important
}
html[data-theme="dark"] .afisha-subnav__link.is-active,
html[data-theme="dark"] .content-box .afisha-subnav__link.is-active,
html[data-theme="dark"] .content-box .afisha-subnav__link.is-active:visited{
  border-color:#f36b21!important;background:#f36b21!important;color:#fff!important
}

/* Frequent legacy template surfaces and sidebars. */
html[data-theme="dark"] #sidebar-box,html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sidebar-item,html[data-theme="dark"] .side-block,
html[data-theme="dark"] .catalog-section,html[data-theme="dark"] .catalog-item,
html[data-theme="dark"] .detail-block,html[data-theme="dark"] .tabs-block,
html[data-theme="dark"] .tabs_content,html[data-theme="dark"] .form-wrapper,
html[data-theme="dark"] .modal-content{border-color:#3b4249;background:#22262b;color:#f2f3f4}
html[data-theme="dark"] .table,html[data-theme="dark"] table{--bs-table-bg:#22262b;--bs-table-color:#f2f3f4;--bs-table-border-color:#3b4249}

/* Preserve branded semantic states while removing white flashes. */
html[data-theme="dark"] :focus-visible{outline-color:#f58220}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#888f98}

/* News pagination: calm dark controls with a branded active page. */
html[data-theme="dark"] .nnews__pager .bx-pagination-container ul li span{
  border:1px solid #3b4249!important;background:#252a30!important;color:#d9dde1!important;box-shadow:none!important
}
html[data-theme="dark"] .nnews__pager .bx-pagination-container ul li a:hover span{
  border-color:#59616a!important;background:#30363d!important;color:#fff!important
}
html[data-theme="dark"] .nnews__pager .bx-pagination-container ul li.bx-active span{
  border-color:#f36b21!important;background:#f36b21!important;color:#fff!important
}
html[data-theme="dark"] .nnews__pager .bx-pagination-container ul li.bx-pag-prev:not(:has(a)) span,
html[data-theme="dark"] .nnews__pager .bx-pagination-container ul li.bx-pag-next:not(:has(a)) span{
  border-color:#30363c!important;background:#202429!important;color:#747b83!important
}

/* Final dark-theme cleanup: home tiles must sit on the page canvas, not gray cards. */
html[data-theme="dark"] .portal-home .portal-product,
html[data-theme="dark"] .portal-home .portal-event-grid>a,
.portal-home--dark .portal-product,
.portal-home--dark .portal-event-grid>a,
html[data-theme="dark"] .portal-home .portal-product:hover,
html[data-theme="dark"] .portal-home .portal-event-grid>a:hover,
.portal-home--dark .portal-product:hover,
.portal-home--dark .portal-event-grid>a:hover{
  border-color:transparent!important;background:transparent!important;box-shadow:none!important
}
html[data-theme="dark"] .portal-home .portal-event-grid>a>strong,
html[data-theme="dark"] .portal-home .portal-event-grid>a>small,
html[data-theme="dark"] .portal-home .portal-product>*{
  background:transparent!important
}

/* Legacy text pages and the shared news sidebar. */
html[data-theme="dark"] .content-box,
html[data-theme="dark"] .content-box p,
html[data-theme="dark"] .content-box li,
html[data-theme="dark"] .content-box b,
html[data-theme="dark"] .content-box strong,
html[data-theme="dark"] .content-box h1,
html[data-theme="dark"] .content-box h2,
html[data-theme="dark"] .content-box h3{
  color:#eef1f4!important
}
html[data-theme="dark"] .content-box a{color:#ff873d!important}
html[data-theme="dark"] #sidebar-box,
html[data-theme="dark"] #sidebar-box .sidebar__inner,
html[data-theme="dark"] #sidebar-box .sidebar-news-box,
html[data-theme="dark"] #sidebar-box .sidebar-news,
html[data-theme="dark"] #sidebar-box .sidebar-news__item,
html[data-theme="dark"] #sidebar-box .sidebar-news__text-box,
html[data-theme="dark"] #sidebar-box .sidebar-news__link-box{
  background:transparent!important;color:#eef1f4!important
}
html[data-theme="dark"] #sidebar-box .title{border-color:#353b42!important;color:#eef1f4!important}
html[data-theme="dark"] #sidebar-box .sidebar-news__link-link{color:#eef1f4!important}
html[data-theme="dark"] #sidebar-box .sidebar-news__date{color:#aeb5bd!important}

/* Company directory cards: remove white rectangles and restore text contrast. */
html[data-theme="dark"] .catalog-section-list__box,
html[data-theme="dark"] .catalog-section-list__row,
html[data-theme="dark"] .catalog-section-list__col,
html[data-theme="dark"] .catalog-section-list__text,
html[data-theme="dark"] .catalog-section-list__img{
  border-color:#353b42!important;background:transparent!important;color:#eef1f4!important;box-shadow:none!important
}
html[data-theme="dark"] .catalog-section-list__link-title,
html[data-theme="dark"] .catalog-section-list__text-title,
html[data-theme="dark"] .catalog-section-list__text-desc{
  color:#eef1f4!important
}

/* Weather: readable hours and a continuous dark canvas below the forecast. */
html[data-theme="dark"] .weather-page,
html[data-theme="dark"] .weather-tabs,
html[data-theme="dark"] .weather-tabs__panels,
html[data-theme="dark"] .weather-tab,
html[data-theme="dark"] .weather-days,
html[data-theme="dark"] .weather-news{
  background:#171a1e!important;color:#eef1f4!important
}
html[data-theme="dark"] .weather-hourly__time,
html[data-theme="dark"] .weather-hourly__wind,
html[data-theme="dark"] .weather-hourly__precip,
html[data-theme="dark"] .weather-day-card__date,
html[data-theme="dark"] .weather-day-card__weekday,
html[data-theme="dark"] .weather-day-card__label,
html[data-theme="dark"] .weather-day-card__meta,
html[data-theme="dark"] .weather-panel__title,
html[data-theme="dark"] .weather-news__title{
  color:#eef1f4!important
}
html[data-theme="dark"] .weather-now__details li{
  border-color:#414850!important;
  background:#292e34!important;
  color:#eef1f4!important;
}
html[data-theme="dark"] .weather-now__details span{color:#aeb5bc!important}
html[data-theme="dark"] .weather-now__details strong,
html[data-theme="dark"] .weather-now__label{color:#f2f4f6!important}
html[data-theme="dark"] .weather-hourly{
  border-color:#3b4249!important;
  background:#22262b!important;
  color:#eef1f4!important;
}
html[data-theme="dark"] .weather-hourly__head{
  border-color:#414850!important;
  background:#292e34!important;
  color:#c6ccd2!important;
}
html[data-theme="dark"] .weather-hourly__row{
  border-color:#3b4249!important;
  background:#22262b!important;
  color:#eef1f4!important;
}
html[data-theme="dark"] .weather-hourly__item:nth-child(even){background:#262b31!important}
html[data-theme="dark"] .weather-hourly__temp{color:#fff!important}

/* Home weather: the outer container must merge with the section and footer. */
html[data-theme="dark"] .portal-home .portal-weather,
.portal-home--dark .portal-weather{
  background:#171a1e!important
}
html[data-theme="dark"] .portal-home .portal-weather .portal-container,
.portal-home--dark .portal-weather .portal-container{
  border:0!important;background:transparent!important;box-shadow:none!important
}

html[data-theme="dark"] #arrup{
  border-color:#f58220!important;background:#24282e!important;color:#f58220!important;box-shadow:0 6px 18px rgba(0,0,0,.28)!important
}
html[data-theme="dark"] #arrup:hover{
  background:#2e3339!important;color:#ff984f!important
}

/* Home news tabs: keep the outline, remove the gray card fill. */
html[data-theme="dark"] .portal-home .portal-news-tabs,
.portal-home--dark .portal-news-tabs,
html[data-theme="dark"] .portal-home .portal-news-tabs__nav,
html[data-theme="dark"] .portal-home .portal-news-tabs__panel,
.portal-home--dark .portal-news-tabs__nav,
.portal-home--dark .portal-news-tabs__panel{
  background:transparent!important;box-shadow:none!important
}

.portal-weather__head>a{
  display:inline-flex!important;align-items:center!important;gap:6px;line-height:1.2!important
}
.portal-weather__head>a i{
  display:inline-flex;align-items:center;justify-content:center;color:#f58220!important;line-height:1!important
}

/* Shared sidebar news: one clean image/date/title grid. */
#sidebar-box .sidebar-news__item{
  display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:start;width:100%;margin:0 0 14px!important
}
#sidebar-box .sidebar-news__img-box{
  width:72px;height:72px;margin:0!important;overflow:hidden;border-radius:8px
}
#sidebar-box .sidebar-news__img-box>a,
#sidebar-box .sidebar-news__img-img{
  display:block;width:100%;height:100%
}
#sidebar-box .sidebar-news__img-img{object-fit:cover}
#sidebar-box .sidebar-news__text-box{min-width:0;padding-top:1px}
#sidebar-box .sidebar-news__date{margin:0 0 5px!important;line-height:1.15}
#sidebar-box .sidebar-news__link-link{
  display:-webkit-box;overflow:hidden;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:3
}

/* News detail tables, topic tags and the latest-news list. */
html[data-theme="dark"] .news-detail .outage-table,
html[data-theme="dark"] .news-detail .outage-table th,
html[data-theme="dark"] .news-detail .outage-table td{
  border-color:#424950!important;background:#22272d!important;color:#eef1f4!important
}
html[data-theme="dark"] .news-detail .outage-table th{
  background:#2d333a!important;color:#fff!important
}
html[data-theme="dark"] .news-detail .outage-table tbody tr:nth-child(even) td{
  background:#272c32!important
}
html[data-theme="dark"] .news-detail__tags-title{color:#eef1f4!important}
html[data-theme="dark"] .news-detail__tags-link{
  border-color:#414850!important;background:#272c32!important;color:#dfe3e7!important;border-radius:999px!important
}
html[data-theme="dark"] .news-detail__tags-link:hover{
  border-color:#f58220!important;background:#322820!important;color:#ff914d!important
}
html[data-theme="dark"] .news-feed-block--detail,
html[data-theme="dark"] .news-feed-block--detail .news-feed-list,
html[data-theme="dark"] .news-feed-block--detail .news-feed-item,
html[data-theme="dark"] .news-feed-block--detail .section-news__text-box{
  background:transparent!important;box-shadow:none!important
}
@media (max-width:767px){
  html[data-theme="dark"] .news-detail .outage-table tr{
    border-color:#424950!important;background:#22272d!important;box-shadow:none!important
  }
  html[data-theme="dark"] .news-detail .outage-table td,
  html[data-theme="dark"] .news-detail .outage-table tbody tr:nth-child(even) td{
    border-color:#3b4249!important;background:transparent!important;color:#eef1f4!important
  }
  html[data-theme="dark"] .news-detail .outage-table td::before{color:#aeb5bd!important}
  html[data-theme="dark"] .news-detail .outage-table td:nth-child(1){color:#fff!important}
}
