/* modern.dark.css - dark theme of the desktop site. ASCII only (page is cp1251).
 * Active when <html data-theme="dark">. The attribute is set by the script in header.tpl
 * before the first paint: cookie d_theme (light / dark) if the user chose one in the
 * interface settings, otherwise the theme of the device. Same palette as m.dark.css.
 * Loaded after modern.css, which keeps every color in the variables of body.mod. */

html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;background:#0e1420}

html[data-theme="dark"] body.mod{
  --ac:#6a98d0;--ac-d:#7aa4d6;--btn:#ff9b4a;--btn-d:#ffae6b;--tx:#e6ebf5;--tx2:#c6cfe0;--mu:#9aa7bd;--ln:#263552;--ln2:#34466a;
  --bg:#0e1420;--card:#162033;--field:#1d2a42;--soft:#1f3358;--link:#8db4f0;--ok:#4cc98a;
}

/* --- headings and text that main.css paints black ---------------------- */

html[data-theme="dark"] body.mod :is(h3,h4,h5,h6),
html[data-theme="dark"] body.mod table.form_data tr td.comment,
html[data-theme="dark"] body.mod span.adverting h2 span.highlight{color:var(--tx)}
html[data-theme="dark"] body.mod .comment{color:var(--mu)}

/* --- rows, boxes, dialogs ---------------------------------------------- */

html[data-theme="dark"] body.mod tr.underline_2 td{background:var(--field);border-color:var(--ln2)}
html[data-theme="dark"] body.mod :is(table#register,table#auth,table#auth_2,table#resendmail){background-color:var(--card)}
html[data-theme="dark"] body.mod hr.or:after{background:var(--card);color:var(--mu)}
html[data-theme="dark"] body.mod .info_box,
html[data-theme="dark"] body.mod p.info_box{background:#1f3a22;color:#9fd69a}
html[data-theme="dark"] body.mod .error_box{background:#432522;border-color:#a34a40;color:#f0a69c}
html[data-theme="dark"] body.mod :is(.balloonstyle,.balloon_msg,.dialog,.modal-content,.popup,#change_city,div.photo_menu_wrap){
  background-color:var(--card);color:var(--tx);border-color:var(--ln2);box-shadow:0 4px 18px rgba(0,0,0,.5)}
html[data-theme="dark"] body.mod .selector_passive{background:var(--field);border-color:var(--ln2);color:var(--tx);text-shadow:none}
html[data-theme="dark"] body.mod .nice_button.hollow{background:transparent;color:var(--ac)}

/* --- select2 (city picker) --------------------------------------------- */

html[data-theme="dark"] body.mod :is(.select2-dropdown,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple){
  background-color:var(--field);border-color:var(--ln2);color:var(--tx)}
html[data-theme="dark"] body.mod .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--tx)}
html[data-theme="dark"] body.mod .select2-container--default .select2-results__option[aria-selected=true]{background-color:var(--ln2)}
html[data-theme="dark"] body.mod .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:var(--ac);color:#fff}
html[data-theme="dark"] body.mod .select2-container--default .select2-search--dropdown .select2-search__field{background:var(--card);color:var(--tx);border-color:var(--ln2)}

/* --- colors written into the templates (style="...") ------------------- */

html[data-theme="dark"] body.mod :is([style*="background"][style*="#fff" i],[style*="background"][style*="white" i]){
  background-color:var(--card) !important}
html[data-theme="dark"] body.mod :is([style*="color:#000" i],[style*="color: #000" i],[style*="color:black" i],[style*="color: black" i]){color:var(--tx) !important}

/* --- profile tabs: the frame is drawn with images, plain strip instead -- */

html[data-theme="dark"] body.mod table.form_frame tr td[class^="ba"]{background-color:transparent;background-image:none}
html[data-theme="dark"] body.mod table.form_frame tr td.ba4{box-shadow:inset 0 -3px 0 var(--ac)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba4 h1{color:var(--tx)}

/* --- grey, green and red text of the payment pages and forms ------------ */

html[data-theme="dark"] body.mod :is(table.selector tr td span,div#payment_info p span,ul#direct_pay li span,ul#direct_pay li.disabled a,div.wmcheck ul li,div.wmcheck ol li,span.price){color:var(--mu)}
html[data-theme="dark"] body.mod :is(table.selector tr td label,ul#direct_pay li a.title,td.plus,a.title){color:#7bc861}
html[data-theme="dark"] body.mod td.minus{color:#f0746a}
html[data-theme="dark"] body.mod div[id^="gift_"]{background-color:var(--card)}

/* --- login block and social buttons (grey #595959 in main.css) ---------- */

html[data-theme="dark"] body.mod :is(p.hello,.auth_reg_switch){color:var(--mu)}
html[data-theme="dark"] body.mod #login_form td{color:var(--mu) !important}
html[data-theme="dark"] body.mod hr.or{background-color:var(--ln2) !important}
html[data-theme="dark"] body.mod a.social_button{border-color:var(--ln2);color:var(--tx)}
html[data-theme="dark"] body.mod a.social_button:is(.yandex,.mailru){background-color:var(--field)}

/* --- transactions table and colors written into the templates ----------- */

html[data-theme="dark"] body.mod table#transactions2 tr td{color:var(--tx2)}
html[data-theme="dark"] body.mod table#transactions2 tr td.plus{color:#7bc861}
html[data-theme="dark"] body.mod table#transactions2 tr td.minus{color:#f0746a}
html[data-theme="dark"] body.mod [style*="color"][style*="#488611" i]{color:#7bc861 !important}
html[data-theme="dark"] body.mod :is([style*="color"][style*="#cc3300" i],[style*="color"][style*="#cc3333" i]){color:#f0746a !important}

/* --- the arrow of the photo tooltip (two triangles in main.css) --------- */

html[data-theme="dark"] body.mod :is(.popup.left,.popup.right):before{border-bottom-color:var(--ln2)}
html[data-theme="dark"] body.mod :is(.popup.left,.popup.right):after{border-bottom-color:var(--card)}

/* 1px side lines of the tab frame (lib/tabs_table.tpl) have an inline #CCCCCC */
html[data-theme="dark"] body.mod td[style*="background-color:#cccccc" i]{background-color:var(--ln) !important}

/* the same colours for the table-free left column (lib/login.tpl) */
html[data-theme="dark"] body.mod :is(.lc_auth,.lc_guest,.lc_top,.lc_photo,.lc_stats,.lc_up,.lc_stats p,.lc_auth p.hello,.lc_guest p.hello){color:var(--mu)}
html[data-theme="dark"] body.mod .lc_form > div{color:var(--mu) !important}

/* the same for the table-free profile frame (edit_home.tpl) */
html[data-theme="dark"] body.mod div.form_frame > div[class^="ba"]{background-color:transparent}
html[data-theme="dark"] body.mod div.form_frame > div.ba4 h1{color:var(--tx)}
html[data-theme="dark"] body.mod div.form_box{background-color:var(--card);border-left-color:var(--ln);border-right-color:var(--ln)}
html[data-theme="dark"] body.mod div.form_frame{--fl:var(--ln2)}
html[data-theme="dark"] body.mod div.form_frame > div.ba4{background-color:var(--card);box-shadow:none}
html[data-theme="dark"] body.mod div.fr3{box-shadow:inset 0 0 0 3px var(--ln2)}
html[data-theme="dark"] body.mod div.pager{--pgl:#5a5e66}
html[data-theme="dark"] body.mod div.fd_r.underline_2{background:var(--field);border-color:var(--ln2)}
html[data-theme="dark"] body.mod div.fd.form_data div.fd_c.comment{color:var(--mu)}
html[data-theme="dark"] body.mod div#data div.fd_r.buttons > div.fd_c{border-top-color:var(--ln)}
html[data-theme="dark"] body.mod div#auth_2{background-color:var(--card)}
html[data-theme="dark"] body.mod div#login_form div.fd_c{color:var(--mu)}
/* photo viewer (prettyPhoto): main.css paints it white */
html[data-theme="dark"] body.mod div.pp_pic_holder .pp_content{background:var(--card)}
html[data-theme="dark"] body.mod div.pp_pic_holder .pp_details{background:var(--field)}
html[data-theme="dark"] body.mod div.pp_pic_holder :is(.currentTextHolder,.pp_orig_container,.pp_orig){color:var(--mu)}
html[data-theme="dark"] body.mod div.pp_pic_holder .pp_close{color:var(--tx2)}
html[data-theme="dark"] body.mod #hidden_about_passwd{border-color:var(--ln2);color:var(--tx)}
/* --- dark overrides generated from dating.ru own css (common.style.css, 11.style.css, css_800.css) --- */
html[data-theme="dark"] body.mod body{background-color:var(--field)}
html[data-theme="dark"] body.mod h1{color:var(--tx)}
html[data-theme="dark"] body.mod h2{color:var(--tx)}
html[data-theme="dark"] body.mod h3{color:var(--tx)}
html[data-theme="dark"] body.mod h4{color:var(--tx)}
html[data-theme="dark"] body.mod h5{color:var(--tx)}
html[data-theme="dark"] body.mod h6{color:var(--tx)}
html[data-theme="dark"] body.mod table#statistics{background-color:var(--field)}
html[data-theme="dark"] body.mod table#login tr td{color:var(--tx)}
html[data-theme="dark"] body.mod table#login tr td p{color:var(--tx)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba1{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba2{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba3{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba4{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba5{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba2_1{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba2_2{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba6{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba9{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba8{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba7{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_frame tr td.ba3_1{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_content tr td.content{background-color:var(--field)}
html[data-theme="dark"] body.mod table.form_data tr td.comment{color:var(--tx)}
html[data-theme="dark"] body.mod table#tabs_2 tr td.bc_4{background-color:var(--field)}
html[data-theme="dark"] body.mod span.adverting h2 span.highlight{color:var(--tx)}
html[data-theme="dark"] body.mod .menu_wrap{background-color:var(--field)}
html[data-theme="dark"] body.mod a.dotted{color:var(--tx)}
html[data-theme="dark"] body.mod .balloon_msg{background-color:var(--field)}
html[data-theme="dark"] body.mod table.selector tr td span{color:var(--tx)}
html[data-theme="dark"] body.mod div#payment_info p span{color:var(--tx)}
html[data-theme="dark"] body.mod .selector_passive{background-color:var(--field)}
html[data-theme="dark"] body.mod div.photo_menu_wrap{background-color:var(--field)}
html[data-theme="dark"] body.mod .dialog{background-color:var(--field)}
html[data-theme="dark"] body.mod .button.hollow{background-color:var(--field)}
html[data-theme="dark"] body.mod .dialog b{color:var(--tx)}
html[data-theme="dark"] body.mod input[type=text].auth{background-color:var(--field)}
html[data-theme="dark"] body.mod input[type=password].auth{background-color:var(--field)}
html[data-theme="dark"] body.mod p.hello{color:var(--tx)}
html[data-theme="dark"] body.mod .preview_female img{background-color:var(--field)}
html[data-theme="dark"] body.mod .preview_male img{background-color:var(--field)}
html[data-theme="dark"] body.mod .preview_na img{background-color:var(--field)}
html[data-theme="dark"] body.mod .preview_system img{background-color:var(--field)}
html[data-theme="dark"] body.mod a.social_button{color:var(--tx)}
html[data-theme="dark"] body.mod a.social_button.yandex{background-color:var(--field)}
html[data-theme="dark"] body.mod a.social_button.mailru{background-color:var(--field)}
html[data-theme="dark"] body.mod a.social_button.okru{background-color:var(--field)}
html[data-theme="dark"] body.mod a.ic-social-button{color:var(--tx)}
html[data-theme="dark"] body.mod .auth_reg_switch{color:var(--tx)}
html[data-theme="dark"] body.mod hr.or:after{background-color:var(--field);color:var(--tx)}
html[data-theme="dark"] body.mod table#login{background-color:var(--field)}
html[data-theme="dark"] body.mod table#register{background-color:var(--field)}
html[data-theme="dark"] body.mod table#auth{background-color:var(--field)}
html[data-theme="dark"] body.mod table#auth_2{background-color:var(--field)}
html[data-theme="dark"] body.mod table#resendmail{background-color:var(--field)}
html[data-theme="dark"] body.mod #login_form td{color:var(--tx)}
html[data-theme="dark"] body.mod #buy_coins_table .total{color:var(--tx)}
html[data-theme="dark"] body.mod ul#direct_pay li span{color:var(--tx)}
html[data-theme="dark"] body.mod ul#direct_pay li.disabled a{color:var(--tx)}
html[data-theme="dark"] body.mod .close:hover{color:var(--tx)}
html[data-theme="dark"] body.mod .close:focus{color:var(--tx)}
html[data-theme="dark"] body.mod #tooltip-self{color:var(--tx)}
html[data-theme="dark"] body.mod .balloonstyle{background-color:var(--field)}
html[data-theme="dark"] body.mod table#tabs tr td.tab_active{background-color:var(--field)}
html[data-theme="dark"] body.mod table#tab_content{background-color:var(--field)}
html[data-theme="dark"] body.mod table#search{background-color:var(--field)}
html[data-theme="dark"] body.mod table#search_on{background-color:var(--field)}
html[data-theme="dark"] body.mod table#search_off{background-color:var(--field)}
html[data-theme="dark"] body.mod table#meetengs{background-color:var(--field)}
html[data-theme="dark"] body.mod table#myprofile{background-color:var(--field)}

/* logo is blue text on a white box: invert it on the dark theme and drop the box */
html[data-theme="dark"] body.mod #i_logo{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}

html[data-theme="dark"] body.mod .flat{box-shadow:none}

/* --- inline light colors in dating.ru templates --- */
html[data-theme="dark"] body.mod [style*="f6f6f6" i],
html[data-theme="dark"] body.mod [style*="background-color:#fff" i],
html[data-theme="dark"] body.mod [style*="background-color: #fff" i],
html[data-theme="dark"] body.mod [style*="background:#fff" i],
html[data-theme="dark"] body.mod [style*="background: #fff" i],
html[data-theme="dark"] body.mod [style*="background-color:white" i],
html[data-theme="dark"] body.mod [style*="background: white" i],
html[data-theme="dark"] body.mod [style*="background:white" i]{background-color:var(--field) !important}
html[data-theme="dark"] body.mod [style*="color:#000" i],
html[data-theme="dark"] body.mod [style*="color: #000" i],
html[data-theme="dark"] body.mod [style*="color:black" i],
html[data-theme="dark"] body.mod [style*="color: black" i]{color:var(--tx) !important}
html[data-theme="dark"] body.mod [style*="border: 1px solid #ccc" i],
html[data-theme="dark"] body.mod [style*="border:1px solid #ccc" i]{border-color:var(--ln2) !important}

/* gif buttons drawn on a white box: drop the box on the dark theme */
html[data-theme="dark"] body.mod img[src*="/b_arrow_"]{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}

html[data-theme="dark"] body.mod table#tabs tr td.tab_active{background:none}
