:root {
    --fi-theme-transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.fiwork-theme-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e5e7e9;
    border-radius: 12px;
    color: #626970;
    background: #f8f8f9;
    cursor: pointer;
    transition: var(--fi-theme-transition), transform .18s ease;
}

.fiwork-theme-toggle:hover {
    color: #202124;
    background: #f1f2f3;
}

.fiwork-theme-toggle:active {
    transform: scale(.96);
}

.fiwork-theme-toggle__sun {
    display: none;
}

.fiwork-theme-toggle--mobile {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    margin-right: 8px;
}

.fiwork-mobile-menu-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #e5e7e9;
    border-radius: 12px;
    color: #626970;
    background: #f8f8f9;
    cursor: pointer;
    transition: var(--fi-theme-transition), transform .18s ease;
}

.phone-header .burger-container .fiwork-mobile-menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.phone-header .fiwork-mobile-menu-toggle.burger-icon {
    display: inline-grid;
}

.phone-header .fiwork-mobile-menu-toggle.close-menu-icon {
    display: none;
}

.phone-header.menu-activated .fiwork-mobile-menu-toggle.burger-icon {
    display: none;
}

.phone-header.menu-activated .fiwork-mobile-menu-toggle.close-menu-icon {
    display: inline-grid;
}

.fiwork-mobile-menu-toggle:hover,
.fiwork-mobile-menu-toggle:focus-visible {
    color: #202124;
    background: #f1f2f3;
}

.fiwork-mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(2, 119, 255, .2);
    outline-offset: 2px;
}

.fiwork-mobile-menu-toggle:active {
    transform: scale(.96);
}

.fiwork-mobile-menu-toggle svg {
    display: block;
    width: 19px;
    height: 19px;
}

.fiwork-theme-toggle--floating {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-basis: 40px;
    border-radius: 50%;
    box-shadow: none;
}

.fiwork-theme-tip {
    position: fixed;
    right: 96px;
    bottom: 27px;
    z-index: 98;
    max-width: 252px;
    padding: 12px 16px;
    border: 1px solid #e1e6eb;
    border-radius: 14px 14px 5px 14px;
    color: #344454;
    background: #fff;
    font-family: var(--font-family), Manrope, sans-serif;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(-.35deg);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.fiwork-theme-tip.is-hidden,
html[data-theme="dark"] .fiwork-theme-tip {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px) rotate(-.35deg);
}

.fiwork-theme-tip__arrow {
    position: absolute;
    right: -29px;
    bottom: -9px;
    width: 58px;
    height: 44px;
    overflow: visible;
    color: #63788c;
}

@media (max-width: 767px) {
    .fiwork-theme-toggle--floating,
    .fiwork-theme-tip {
        display: none;
    }
}

.burger-container {
    display: flex;
    align-items: center;
}

html[data-theme="dark"] {
    --fi-bg: #101214;
    --fi-bg-soft: #15181b;
    --fi-surface: #1a1d20;
    --fi-surface-raised: #202428;
    --fi-surface-hover: #272b30;
    --fi-border: #30353a;
    --fi-border-soft: #282d31;
    --fi-text: #f1f3f5;
    --fi-text-secondary: #b3bac2;
    --fi-text-muted: #858d96;
    --fi-accent: #4aa8f7;
    --fi-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    color-scheme: dark;
}

html[data-theme="dark"] .fiwork-theme-toggle {
    border-color: var(--fi-border);
    color: #ffd166;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-theme-toggle:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .logo-burger-login-block .burger-container {
    background: transparent;
}

html[data-theme="dark"] .burger-container .fiwork-theme-toggle--mobile {
    border-color: var(--fi-border);
    color: #ffd166;
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .burger-container .fiwork-theme-toggle--mobile:hover,
html[data-theme="dark"] .burger-container .fiwork-theme-toggle--mobile:focus-visible {
    border-color: #454b52;
    color: #ffe08a;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .burger-container .fiwork-mobile-menu-toggle {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    filter: none;
}

html[data-theme="dark"] .burger-container .fiwork-mobile-menu-toggle:hover,
html[data-theme="dark"] .burger-container .fiwork-mobile-menu-toggle:focus-visible {
    border-color: #454b52;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-theme-toggle__moon {
    display: none;
}

html[data-theme="dark"] .fiwork-theme-toggle__sun {
    display: block;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    color: var(--fi-text);
    background: var(--fi-bg);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .main-block,
html[data-theme="dark"] .main-block.main-block--category-page,
html[data-theme="dark"] .computer-header--air,
html[data-theme="dark"] .computer-header--air.computer-header--category-air {
    background-color: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-block > .main-container {
    background-color: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .main-block > .main-container:has(> .community-blog) {
    --blog-bg: var(--fi-bg);
    --blog-card: var(--fi-surface);
    --blog-text: var(--fi-text);
    --blog-muted: var(--fi-text-secondary);
    --blog-line: var(--fi-border);
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__nav {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__aside {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__main {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__right {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__right-create {
    border: 1px solid #24975d;
    color: #fff;
    background: #24975d;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__right-create:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__right-create:focus-visible {
    border-color: #2cab6b;
    color: #fff;
    background: #2cab6b;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comments {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comments > h3 {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment > header {
    border-color: transparent;
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment header > a {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__author {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__author:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__author:focus-visible {
    color: #8bc8ff;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment header span,
html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__article,
html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__reactions {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__text:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__text:focus-visible {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comment__reactions b {
    color: #ff8f9b;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-popular-comments__empty {
    color: var(--fi-text-secondary);
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__nav a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a > em {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a:is(:hover, :focus-visible) > span {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a.is-active {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__nav a.is-active > span {
    color: #72d990;
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__topics {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics > p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics a:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics a:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics a.is-active {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics .community-topic-avatar {
    border: 1px solid var(--fi-border);
    color: #a6d3ff;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics .community-topic-avatar--all {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics-toggle {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics-toggle:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__topics-toggle:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog .community-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__bar {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__date > label {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__date > label:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__date > label:focus-within {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__date select {
    color-scheme: dark;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__rates b {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__rates strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__rates small,
html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__rates .is-unavailable {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__title strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__title span {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles {
    border-color: var(--fi-border);
    background: var(--fi-border-soft);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles > a {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles > a:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles > a:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles > a > span {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles > a strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__articles > a small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-digest__empty {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__tabs :is(a, span) {
    color: var(--fi-text-secondary);
    border-bottom-color: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__tabs a:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__tabs a:focus-visible {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__tabs :is(a, span).is-active {
    color: #72d990;
    border-bottom-color: #24975d;
}

html[data-theme="dark"] body.fiwork-page-blog .community-blog__feed {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__feed .community-post {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__avatar {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__avatar span {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__author :is(div > a, .community-post__author-name > a) {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__author-name > a:hover {
    color: #8bc8ff;
}

html[data-theme="dark"] body.fiwork-page-blog
    :is(.community-post__author time, .community-post__author-meta) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__author-category,
html[data-theme="dark"] body.fiwork-page-blog
    .community-post__category {
    color: #72d990;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__author-category::after {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__subscribe {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__subscribe:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-post__subscribe:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__subscribe.is-subscribed {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post :is(h2, h2 a) {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post h2 a:hover {
    color: #8bc8ff;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body :is(h1, h2, h3, h4, h5, h6, strong, b) {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body :is(.community-article__lead, .community-article__content, p, li, figcaption) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body a {
    color: #72d990;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body a:hover {
    color: #91e5aa;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body blockquote {
    border-left-color: #3fbf78;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body :is(code, pre) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body :is(hr, table, th, td) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-article__body th {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post :is(.community-post__body p, .community-post__summary, .community-post__leading-image) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__summary.is-collapsed::after {
    background: linear-gradient(90deg, rgba(26, 29, 32, 0), var(--fi-surface) 78%);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__summary a {
    color: #72d990;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__leading-image img {
    border-color: var(--fi-border);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__read-more {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__read-more:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-post__read-more:focus-visible {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post__footer {
    color: var(--fi-text-muted);
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action.is-active {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action--like.is-liked {
    color: #ff8f9b;
    background: rgba(225, 72, 89, .14);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action--views,
html[data-theme="dark"] body.fiwork-page-blog
    .community-post-action--views:hover {
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-share__menu {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-share__menu :is(button, a) {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-post-share__menu :is(button, a):hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-post-share__menu :is(button, a):focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__empty {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__empty strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-blog__empty p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block.main-block--login-page {
    background: var(--fi-bg);
}

html[data-theme="dark"] .main-block--login-page .login-container {
    border-color: var(--fi-border);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] .main-block--login-page .login-block {
    color: var(--fi-text);
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .main-block--login-page
    :is(.login-form-heading h2, .checkbox-container label) {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--login-page
    :is(.login-form-heading p, .login-register-box) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--login-page
    .input-containers-wrapper .input-container {
    border-color: transparent;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .main-block--login-page
    .input-containers-wrapper .input-container:focus-within {
    border-color: var(--fi-accent);
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .12);
}

html[data-theme="dark"] .main-block--login-page
    .input-containers-wrapper .input-container.filled {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .main-block--login-page
    .input-containers-wrapper input {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--login-page
    .input-containers-wrapper input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--login-page
    .password-eye-container img {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .main-block--login-page
    :is(.alternative-container .horizontal-line, .login-register-box) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .main-block--login-page
    .login-by-social-sites-container a {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--login-page
    .login-by-social-sites-container a:hover {
    border-color: #454c53;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .main-block--login-page
    .login-by-social-sites-container img[src*="login-apple.svg"] {
    filter: brightness(0) invert(.92);
}

html[data-theme="dark"] .main-block--login-page .login-register-box a {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--login-page .login-register-box a:hover {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .main-block--register-page .role-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--register-page .role-card:hover {
    border-color: #426a90;
}

html[data-theme="dark"] .main-block--register-page .role-circle {
    border-color: #59616a;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .main-block--register-page .role-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--register-page .role-subtitle {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--register-page
    .role-radio:checked + .role-card {
    border-color: var(--fi-accent);
    color: var(--fi-text);
    background: #172a3a;
    box-shadow: 0 0 0 1px rgba(74, 168, 247, .12);
}

html[data-theme="dark"] .main-block--register-page
    .role-radio:checked + .role-card .role-circle {
    border-color: var(--fi-accent);
}

html[data-theme="dark"] .main-block--register-page
    .role-radio:checked + .role-card .role-circle::after {
    background: var(--fi-accent);
}

html[data-theme="dark"] .main-block--register-page
    :is(.input-description, .personal-data-agreement-container label) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--register-page .form-message.success {
    border-color: rgba(74, 207, 137, .3);
    color: #79dca8;
    background: rgba(35, 195, 102, .12);
}

html[data-theme="dark"] .main-block--register-page .form-message.error {
    border-color: rgba(255, 99, 106, .3);
    color: #ff9da3;
    background: rgba(225, 72, 89, .13);
}

html[data-theme="dark"] .main-block.main-block--publication-create,
html[data-theme="dark"] body:has(.client-job-create-page) :is(.main-block, .main-container) {
    background: var(--fi-bg);
}

html[data-theme="dark"] .client-job-create-page {
    background: transparent;
}

html[data-theme="dark"] .client-job-create-container {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] .main-block--publication-create > .main-container,
html[data-theme="dark"] .client-job-create-page {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents,
html[data-theme="dark"] :is(.client-job-publish-card, .client-job-tip-card) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-footer .client-job-create-actions {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .client-job-create-submit:disabled,
html[data-theme="dark"] .client-job-create-submit:disabled:hover {
    color: #78838d;
    background: #252b30;
}

html[data-theme="dark"] :is(.client-job-section-head h2, .client-job-publish-card h3) {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(
    .client-job-section-head p,
    .client-job-publish-card > p,
    .client-job-tip-card p
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-section-head > span {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .client-job-create-intro {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-intro h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-title-icon {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-info {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .client-job-create-info a {
    color: #6eb8f5;
}

html[data-theme="dark"] .client-job-create-info a:hover {
    color: #8ac9fb;
}

html[data-theme="dark"] .client-job-create-back {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-back:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-back .chevron-left-icon {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .client-job-create-form :is(
    .setup-bank-form > .single-input,
    .setup-bank-form > .form-group,
    .setup-bank-form > .setup-bank-form-item,
    .setup-bank-form > .single-flex-input,
    .client-job-subcategory-stage
) {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-create-form .setup-bank-form
    > .setup-bank-form-item.setup-bank-form-item-icon {
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] .client-job-create-form .client-job-budget-input-wrap {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .client-job-create-form .client-job-budget-input-wrap #budget_display {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background-color: #14181b !important;
    background-image: none !important;
    box-shadow: none;
    color-scheme: dark;
}

html[data-theme="dark"] .client-job-create-form .client-job-budget-input-wrap
    #budget_display .client-job-budget-value {
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .client-job-create-form .client-vacancy-fields {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-fields__heading > span {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-fields__heading p,
html[data-theme="dark"] .client-job-create-form
    .client-vacancy-field-heading span,
html[data-theme="dark"] .client-job-create-form
    .client-vacancy-control small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-job-create-form
    :is(.client-vacancy-field-heading label, .client-vacancy-control > span) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-templates button {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-templates button:hover {
    border-color: #367a58;
    color: #72d990;
    background: #1b2b23;
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-fields :is(.form--control, .form-control) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background-color: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-fields :is(.form--control, .form-control):focus {
    border-color: #367a58;
    color: var(--fi-text);
    background-color: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(54, 122, 88, .2);
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-fields :is(.form--control, .form-control)::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-job-create-form
    .client-vacancy-money em {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-form
    .client-job-content-type-card span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form
    .client-job-content-type-card:hover span {
    border-color: #41484f;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-job-create-form
    .client-job-content-type-card input:focus-visible + span {
    border-color: #4aa8f0;
    box-shadow: 0 0 0 3px rgba(74, 168, 240, .18);
}

html[data-theme="dark"] .client-job-create-form
    .client-job-content-type-card input:checked + span {
    border-color: #4aa8f0;
    color: #96cdf9;
    background: #1b2d3c;
}

html[data-theme="dark"] .client-job-create-form
    .client-job-content-type-card:hover input:checked + span {
    border-color: #66b7f4;
    color: #b1dbfb;
    background: #203749;
}

html[data-theme="dark"] .client-job-create-form
    .client-job-simple-task-payment__formula {
    border-color: #345744;
    color: #72d990;
    background: #18271f;
    box-shadow: none;
}

html[data-theme="dark"] .client-job-create-form .client-job-budget-input-wrap #budget_display:focus,
html[data-theme="dark"] .client-job-create-form .client-job-budget-input-wrap #budget_display:focus-within {
    border-color: #367a58;
    color: var(--fi-text);
    background-color: #14181b !important;
    background-image: none !important;
    box-shadow: 0 0 0 4px rgba(54, 122, 88, .2);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-type-switch {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-type-switch span {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-type-switch label:hover span {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-type-switch input:checked + span {
    border-color: #426a54;
    color: var(--fi-text);
    background: #1b2b23;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-type-switch__icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-type-switch input:checked + span .client-job-type-switch__icon {
    color: #72d990;
}

html[data-theme="dark"] .client-job-create-form .client-job-plus-access {
    border-color: #554a29;
    background: linear-gradient(135deg, #211f18 0%, #262216 100%);
}

html[data-theme="dark"] .client-job-create-form .client-job-audience-field {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form .client-job-audience-field__head strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-form .client-job-audience-field__head small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-job-create-form .client-job-audience-chip span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-create-form .client-job-audience-chip:hover span {
    border-color: #4c555d;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-job-create-form .client-job-audience-chip input:checked + span {
    border-color: #397451;
    color: #8fe0aa;
    background: #183024;
}

html[data-theme="dark"] .client-job-create-form .client-job-plus-access__icon {
    color: #f1c553;
    background: #3b3219;
}

html[data-theme="dark"] .client-job-create-form .client-job-plus-access__copy strong {
    color: #f5e9c7;
}

html[data-theme="dark"] .client-job-create-form .client-job-plus-access__copy small {
    color: #b9aa82;
}

html[data-theme="dark"] .client-job-create-form .client-job-plus-access__switch > span[aria-hidden="true"] {
    border-color: #51492f;
    background: #3b382d;
}

html[data-theme="dark"] .client-job-create-form .client-job-plus-access__switch input:checked + span[aria-hidden="true"] {
    border-color: #d2a52d;
    background: #d2a52d;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    :is(.label-title, label) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    :is(.form--control, .form-control, .form-message) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    color-scheme: dark;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    :is(.form--control, .form-control, .form-message)::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    :is(.form--control, .form-control, .form-message):focus {
    border-color: #367a58;
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(54, 122, 88, .2);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    :is(.form--control, .form-control)[readonly] {
    color: var(--fi-text-muted);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-subcategory-stage .fiwork-type-container label {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .client-job-subcategory-stage .fiwork-type-container :is(label:hover, input:checked + label) {
    border-color: #367a58;
    color: #72d990;
    background: #1b2b23;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .editor-container {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .toolbar.ql-toolbar.ql-snow {
    border-bottom-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .editor .ql-editor {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .ql-snow :is(.ql-stroke, .ql-thin) {
    stroke: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .ql-snow .ql-fill {
    fill: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .photo-uploaded {
    border-color: #48515a;
    color: #79bdf5;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .photo-uploaded-flex {
    color: #79bdf5;
    background: transparent;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .photo-uploaded:hover .photo-uploaded-flex {
    color: #96cdf9;
    background: #1b2d3c;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .photo-uploaded.is-loading .photo-uploaded-flex {
    color: #96cdf9;
    background: #1b2d3c;
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .photo-uploaded-icon {
    color: currentColor;
}

html[data-theme="dark"] .client-job-edit-page .client-job-edit-revision-note {
    border-color: #65491f;
    color: #e2c38e;
    background: #241d13;
}

html[data-theme="dark"] .client-job-edit-page .client-job-edit-revision-note__icon {
    color: #e0a84d;
    background: #332618;
}

html[data-theme="dark"] .client-job-edit-page .client-job-edit-revision-note strong {
    color: #f3d49f;
}

html[data-theme="dark"] .client-job-edit-page .client-job-edit-revision-note p {
    color: #d5ba8b;
}

html[data-theme="dark"] .client-job-edit-form .client-job-type-switch label:hover span {
    border-color: transparent;
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .client-job-edit-form .client-job-type-switch input:checked + span,
html[data-theme="dark"] .client-job-edit-form .client-job-type-switch label:hover input:checked + span {
    border-color: #426a54;
    color: var(--fi-text);
    background: #1b2b23;
}

html[data-theme="dark"] .client-job-edit-form .remove-attachment-wrap {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-edit-form .setup-bank-form-item-icon > .input-icon {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-edit-form .client-job-edit-cancel {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-edit-form .client-job-edit-cancel:hover {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-job-edit-form .note-editor.note-frame {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-edit-form .note-toolbar {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-job-edit-form .note-editable {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

/* /freelancer/project/create-project */
html[data-theme="dark"] body:has(.main-block--service-create),
html[data-theme="dark"] body:has(.main-block--service-create) .main-block,
html[data-theme="dark"] body:has(.main-block--service-create) .main-container {
    background: var(--fi-bg);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-block {
    border-color: var(--fi-border);
    background: var(--fi-surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .main-block--service-create .back-to-fiworks,
html[data-theme="dark"] .main-block--service-create .create-fiwork-info {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-info {
    border-color: #29465d;
    color: #b7c9d8;
    background: #16232e;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-info__icon {
    color: #79bdf5;
}

html[data-theme="dark"] .main-block--service-create .project-moderation-revision-note {
    border-color: #65491f;
    color: #e2c38e;
    background: #241d13;
}

html[data-theme="dark"] .main-block--service-create .project-moderation-revision-note__icon {
    color: #e0a84d;
}

html[data-theme="dark"] .main-block--service-create .project-moderation-revision-note strong {
    color: #f3d49f;
}

html[data-theme="dark"] .main-block--service-create .project-moderation-revision-note p {
    color: #d5ba8b;
}

html[data-theme="dark"] .main-block--service-create .back-to-fiworks:hover,
html[data-theme="dark"] .main-block--service-create .create-fiwork-intro h1,
html[data-theme="dark"] .main-block--service-create .client-job-create-title-row h1,
html[data-theme="dark"] .main-block--service-create .create-fiwork-step-header,
html[data-theme="dark"] .main-block--service-create .create-fiwork-step.active .create-fiwork-step-header,
html[data-theme="dark"] .main-block--service-create .create-fiwork-step-stage .step-stage-name {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create .back-to-fiworks img {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-title-icon {
    border-color: var(--fi-border);
    color: #72d990;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-form-container {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create .project-language-switch {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create .project-language-switch .project-language-option {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create .project-language-switch .project-language-option:hover {
    color: var(--fi-text);
    background: #20262a;
}

html[data-theme="dark"] .main-block--service-create
    .project-language-switch .project-language-option.is-selected {
    color: #9de3b1;
    background: #24302a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .main-block--service-create
    .project-language-more summary:hover,
html[data-theme="dark"] .main-block--service-create
    .project-language-more[open] summary {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .project-language-more.is-selected summary {
    color: #9de3b1;
    background: #24302a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .main-block--service-create
    .project-language-more__menu {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .main-block--service-create
    .project-language-switch .project-language-more__menu .project-language-more__option {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .project-language-switch .project-language-more__menu .project-language-more__option:hover {
    color: var(--fi-text);
    background: #20262a;
}

html[data-theme="dark"] .main-block--service-create
    .project-language-switch .project-language-more__menu .project-language-more__option.is-selected {
    color: #9de3b1;
    background: #24302a;
}

html[data-theme="dark"] .main-block--service-create
    .project-language-more__menu .project-language-more__english-option.is-selected {
    color: #9de3b1;
    background: #24302a;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount:not(:empty) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .subcat-stage .step-stage-name {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .subcat-stage .step-stage-form {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container + .fiwork-type-container {
    border-color: #293037;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container label {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container label::before {
    border-color: #59636d;
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container label:hover {
    color: var(--fi-text);
    background: #19201d;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container input:focus-visible + label {
    box-shadow: inset 0 0 0 2px rgba(77, 145, 105, .55);
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container input:checked + label {
    color: #9de3b1;
    background: #19251f;
}

html[data-theme="dark"] .main-block--service-create
    #subcategory_steps_mount .fiwork-type-container input:checked + label::before {
    border-color: #53bd79;
    box-shadow: 0 0 0 3px rgba(83, 189, 121, .12);
}

html[data-theme="dark"] .portfolio-page-digest .my-portfolio-nav,
html[data-theme="dark"] .my-portfolio-nav {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
    box-shadow: none;
}

html[data-theme="dark"] .portfolio-page-digest .my-portfolio-nav-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .portfolio-page-digest .my-portfolio-nav-copy > p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .portfolio-page-digest .my-portfolio-nav-action,
html[data-theme="dark"] .portfolio-page-digest .my-portfolio-nav-action:hover,
html[data-theme="dark"] .portfolio-page-digest .my-portfolio-nav-action:focus-visible {
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .my-portfolio-nav span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .my-portfolio-nav a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .my-portfolio-nav a:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .my-portfolio-nav .home-icon {
    filter: brightness(0) invert(.78);
}

html[data-theme="dark"] .my-portfolio-nav .separator-icon {
    opacity: .42;
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .portfolio-page-digest.my-portfolio-block
    .my-portfolio-content {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
    box-shadow: none;
}

html[data-theme="dark"] .my-portfolio-content
    .dashboard-blog-digest__title {
    color: #e7ebed;
}

html[data-theme="dark"] .my-portfolio-content
    .dashboard-blog-digest__title-icon {
    border: 1px solid #30483a;
    color: #7cdda0 !important;
    background: #19271f !important;
}

html[data-theme="dark"] .my-portfolio-content
    .dashboard-blog-digest__title-icon svg {
    color: inherit;
    stroke: currentColor;
}

html[data-theme="dark"] .my-portfolio-content
    .my-portfolio-header h3 {
    color: #e7ebed !important;
}

html[data-theme="dark"] .my-portfolio-content
    .my-portfolio-header .seen-container {
    border-color: var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .my-portfolio-content
    .my-portfolio-header .seen-icon {
    opacity: .76;
    filter: brightness(0) invert(.78);
}

html[data-theme="dark"] .my-portfolio-content
    .my-portfolio-content-wrapper .portfolio-elem {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .my-portfolio-content .my-portfolio-empty-card h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .my-portfolio-content .my-portfolio-empty-card p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .portfolio-page-digest
    .aside-block .import-portfolio-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: #14181b !important;
    box-shadow: none;
}

html[data-theme="dark"] .portfolio-page-digest
    .aside-block .import-portfolio-block h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .portfolio-page-digest
    .aside-block .import-portfolio-block p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .portfolio-page-digest
    .import-from-other-platforms .platform {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .portfolio-page-digest
    .import-from-other-platforms .platform:hover,
html[data-theme="dark"] .portfolio-page-digest
    .import-from-other-platforms .platform:focus-visible {
    border-color: #4d9169;
    color: #9de3b1;
    background: #1b2b23;
}

html[data-theme="dark"] .portfolio-page-digest
    .import-from-other-platforms .import-platform-description {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .portfolio-page-digest
    .import-from-other-platforms .platform-icon[src*="kwork-icon.svg"] {
    content: url("/img/my-portfolio-page/kwork-icon-dark.svg");
}

html[data-theme="dark"] .portfolio-page-digest
    .import-from-other-platforms .pointer-icon {
    opacity: .72;
    filter: brightness(.72);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-aside-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    :is(.create-fiwork-aside-card__title, .create-fiwork-hint-card strong) {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    :is(.create-fiwork-aside-card > p, .create-fiwork-hint-card p) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-page-aside .create-fiwork-aside-step {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-page-aside .create-fiwork-aside-step.active {
    color: #9de3b1;
    background: #18271f;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-page-aside .create-fiwork-aside-step.filled {
    color: #72b787;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-page-aside .create-fiwork-aside-step-num-container {
    color: var(--fi-text-secondary);
    background: #343a40;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-page-aside .create-fiwork-aside-step.active
    .create-fiwork-aside-step-num-container {
    color: #fff;
    background: #27824b;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-page-aside .create-fiwork-aside-step.filled
    .create-fiwork-aside-step-num-container {
    color: #d9f7e2;
    background: #315e40;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-header .create-fiwork-step-num-container {
    color: var(--fi-text-secondary);
    background: #343a40;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step.active
    .create-fiwork-step-header .create-fiwork-step-num-container {
    color: #fff;
    background: #27824b;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step.filled
    .create-fiwork-step-header .create-fiwork-step-num-container {
    color: #d9f7e2;
    background: #315e40;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-hint-card__icon {
    color: #96cdf9;
    background: #1b2d3c;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-hint-card__content {
    scrollbar-color: #48515a transparent;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-hint-card__content label {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-hint-card__content :is(p, .li-element) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-checklist li {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--service-create
    :is(.create-fiwork-step + .create-fiwork-step,
        .create-fiwork-step-stages,
        .create-fiwork-step-stage.create-fiwork-step-upload-cover,
        .continue-to-next-step,
        .create-fiwork-step-content .price-and-options-table-container) {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .main-block--service-create
    :is(.create-fiwork-step-enter-name .step-stage-form textarea,
        .create-fiwork-step-select-section .step-stage-form select,
        .create-fiwork-step-content input,
        .create-fiwork-step-content select,
        .create-fiwork-step-content textarea) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background-color: #14181b;
    color-scheme: dark;
}

html[data-theme="dark"] .main-block--service-create
    :is(.create-fiwork-step-enter-name .step-stage-form textarea,
        .create-fiwork-step-content input,
        .create-fiwork-step-content textarea)::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    :is(.create-fiwork-step-enter-name .step-stage-form textarea,
        .create-fiwork-step-select-section .step-stage-form select,
        .create-fiwork-step-content input,
        .create-fiwork-step-content select,
        .create-fiwork-step-content textarea):focus {
    border-color: #367a58 !important;
    color: var(--fi-text);
    background-color: #14181b;
    box-shadow: 0 0 0 3px rgba(54, 122, 88, .2) !important;
}

html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion svg {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion.is-loading svg {
    color: #96cdf9;
}

html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion.is-success {
    color: #9de3b1;
}

html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion.is-success svg {
    color: #72d990;
}

html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion.is-error,
html[data-theme="dark"] .main-block--service-create
    .category-ai-suggestion.is-error svg {
    color: #f6a6a0;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-enter-name .word-interval.is-valid {
    color: #72d990;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-enter-name .word-interval.is-invalid,
html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-enter-name .word-interval.is-duplicate {
    color: #f6a6a0;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .upload-cover-container {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .upload-cover-container:hover {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .upload-cover-primary {
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .upload-cover-primary:hover {
    background: #171d1a;
}

html[data-theme="dark"] .main-block--service-create
    .upload-cover-container .fiwork-gallery-upload-section {
    border-top-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .upload-cover-container label,
html[data-theme="dark"] .main-block--service-create
    .fiwork-gallery-upload-header h4 {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .upload-cover-container p,
html[data-theme="dark"] .main-block--service-create
    .fiwork-gallery-upload-header p,
html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .char-counter {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .char-counter {
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .char-counter.is-invalid {
    color: #ee9696;
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .char-counter.is-limit {
    color: #e7bd76;
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-upload-cover .fiwork-ai-cover-button {
    border-color: #345744;
    color: #72d990;
    background: rgba(32, 36, 40, .96);
    box-shadow: none;
}

html[data-theme="dark"] .main-block--service-create .fiwork-gallery-slot {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create .fiwork-gallery-slot:hover {
    border-color: #367a58;
    background: #18271f;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-gallery-slot-plus {
    color: #9de3b1;
    background: #1b2b23;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-backdrop {
    background: rgba(3, 6, 8, .82);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-dialog {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-header {
    border-bottom-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-close {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-close:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-body,
html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-actions {
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-stage {
    border-color: var(--fi-border);
    background: #0c0f11;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-help {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-actions {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-actions
    .fiwork-cover-cropper-secondary.continue-to-next-step-button {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-actions
    .fiwork-cover-cropper-secondary.continue-to-next-step-button:hover,
html[data-theme="dark"] .main-block--service-create
    .fiwork-cover-cropper-actions
    .fiwork-cover-cropper-secondary.continue-to-next-step-button:focus-visible {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .editor-container,
html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .editor {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .editor .ql-editor {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form
    :is(#fiworkDescriptionEditor, #fiworkCustomerDescriptionEditor) .ql-editor {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .editor .ql-editor.ql-blank::before {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .toolbar {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .ql-snow :is(.ql-stroke, .ql-thin) {
    stroke: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-files-and-description-form .ql-snow .ql-fill {
    fill: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-content .price-and-options-table {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-content .price-and-options-table :is(th, td) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-content .price-and-options-table thead th,
html[data-theme="dark"] .main-block--service-create
    .price-and-options-table tbody tr td:first-child {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .ui-price-hint {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .ui-price-hint strong {
    color: #9de3b1;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-content .fiwork-price-and-options-table-wrapper {
    border-color: var(--fi-border);
    background: var(--fi-surface);
    scrollbar-color: #48515a transparent;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants {
    background: rgb(16 16 16 / 90%);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants h3,
html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants p {
    color: #fff;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch > span:first-child,
html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch.active > span:last-child {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch.active > span:first-child {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch .slider {
    background: #48515a;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-in-three-variants-switch input:checked + .slider {
    background: #3e9b61;
}

html[data-theme="dark"] .main-block--service-create
    .create-fiwork-step-content .price-and-options-table
    tbody tr:hover td:not(:first-child) {
    background: #1d2125;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table :is(
        .fiwork-option-name-input,
        select,
        .ui-price-input,
        .ui-option-text,
        .ui-option-number
    ) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background-color: #14181b;
    color-scheme: dark;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table :is(
        .fiwork-option-name-input,
        select,
        .ui-option-text,
        .ui-option-number
    ):focus {
    border-color: #4d9169 !important;
    background-color: #14181b;
    box-shadow: 0 0 0 3px rgba(77, 145, 105, .2) !important;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .fiwork-option-name-input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .ui-price-hint {
    color: var(--fi-text-muted);
    background: #171c20;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .ui-price-error {
    color: #ee9696;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .ui-opt-check span {
    border-color: #48515a;
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .ui-opt-check input:checked + span {
    border-color: #3e9b61;
    background: #3e9b61;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .add-own-option-button {
    color: #9de3b1;
    background: #1b2b23;
}

html[data-theme="dark"] .main-block--service-create
    .price-and-options-table .add-own-option-button:hover {
    color: #b8ebc7;
    background: #203629;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-price-and-options-table-wrapper::-webkit-scrollbar-thumb {
    background: #48515a;
}

html[data-theme="dark"] .main-block--service-create .fiwork-draft-modal-dialog {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-draft-modal-header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-draft-modal-text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-job-create-form .setup-wrapper-contents-item
    .fiwork-upload-loader {
    border-color: rgba(121, 189, 245, .22);
    border-top-color: #79bdf5;
}

html[data-theme="dark"] .client-job-create-form
    .publication-attachment-card {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-job-create-form
    .publication-attachment-card__preview {
    color: #79bdf5;
    background: #1b2d3c;
}

html[data-theme="dark"] .client-job-create-form
    .publication-attachment-card__content strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-job-create-form
    :is(.publication-attachment-card__content span, .publication-attachments-summary) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-job-create-form
    .publication-attachment-card__remove {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-job-create-form
    .publication-attachment-card__remove:hover {
    color: #ff9da3;
    background: rgba(225, 72, 89, .14);
}

html[data-theme="dark"] .client-job-create-form
    #job_title_char_length_check .text-muted {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] body.fiwork-page-blog .blog-compose-modal {
    color: var(--fi-text);
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] body.fiwork-page-blog .blog-compose {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 28px 84px rgba(0, 0, 0, .52);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__topbar {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__identity > img {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__identity strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__topic {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__topic select {
    color-scheme: dark;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__icon-button {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__icon-button:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__icon-button:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__errors {
    border-bottom: 1px solid rgba(225, 72, 89, .26);
    color: #ff9aa4;
    background: rgba(225, 72, 89, .12);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__scroll {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose :is(.blog-compose__title, .blog-compose__excerpt) {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__title {
    border-color: transparent !important;
    color: var(--fi-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    caret-color: #72d990;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__title:is(:hover, :focus, :active) {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__title::placeholder,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__excerpt::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__title::placeholder {
    color: var(--fi-text-muted) !important;
    opacity: 1;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__title::selection {
    color: #fff;
    background: rgba(35, 195, 102, .42);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__excerpt {
    border-color: transparent !important;
    color: var(--fi-text-secondary) !important;
    background: transparent !important;
    background-color: transparent !important;
    caret-color: #72d990;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__excerpt:is(:hover, :focus, :active) {
    border-color: transparent !important;
    color: var(--fi-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__excerpt::placeholder {
    color: var(--fi-text-muted) !important;
    opacity: 1;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose textarea.blog-compose__excerpt::selection {
    color: #fff;
    background: rgba(35, 195, 102, .42);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-toolbar.ql-snow {
    border-bottom-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: rgba(26, 29, 32, .96);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell.blog-editor-shell {
    border-color: transparent;
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell :is(.ql-container.ql-snow, .ql-editor) {
    border-color: transparent !important;
    color: var(--fi-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-editor.ql-blank::before {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-snow .ql-stroke {
    stroke: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-snow .ql-fill {
    fill: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-snow :is(.ql-picker, .ql-picker-label) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-snow .ql-picker-options {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-toolbar button:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-toolbar button:focus,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-toolbar button.ql-active {
    color: #72d990;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-toolbar button:is(:hover, :focus, .ql-active) .ql-stroke {
    stroke: #72d990;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-toolbar button:is(:hover, :focus, .ql-active) .ql-fill {
    fill: #72d990;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-tooltip {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-tooltip input[type="text"] {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-editor::selection,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__editor-shell .ql-editor *::selection {
    color: #fff;
    background: rgba(35, 195, 102, .42);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__footer {
    border-top-color: var(--fi-border-soft);
    color: var(--fi-text-secondary);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__hint {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__actions .is-draft {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__actions .is-draft:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__actions .is-draft:focus-visible {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__actions .is-publish {
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__actions .is-publish:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-compose__actions .is-publish:focus-visible {
    color: #fff;
    background: #2cab6b;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading {
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(105, 183, 255, .14), transparent 30%),
        linear-gradient(120deg, #15191d, #202b32 66%, #294c42);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading span {
    color: #b8c0c8;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading h1 {
    color: #fff;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading p {
    color: rgba(241, 243, 245, .72);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading > a {
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading > a:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__heading > a:focus-visible {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors {
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors article {
    border-bottom: 1px solid var(--fi-border-soft);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors article:last-child {
    border-bottom-color: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors article:hover {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors article > a {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors img {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors button {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors button:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors button:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__authors button.is-subscribed {
    border-color: rgba(35, 195, 102, .28);
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-subscriptions__tabs span.is-active {
    color: #72d990;
    border-bottom-color: #24975d;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__avatar {
    border-color: var(--fi-surface);
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 1px var(--fi-border);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions a {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions a:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions a:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions a.is-primary {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions a.is-primary:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__actions a.is-primary:focus-visible {
    border-color: #2cab6b;
    color: #fff;
    background: #2cab6b;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__follow {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__follow:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__follow:focus-visible {
    border-color: #2cab6b;
    color: #fff;
    background: #2cab6b;
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__follow.is-subscribed {
    border-color: rgba(35, 195, 102, .28);
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__follow.is-subscribed:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .community-author-card__follow.is-subscribed:focus-visible {
    border-color: rgba(86, 207, 132, .42);
    color: #8ee4b4;
    background: rgba(35, 195, 102, .2);
}

html[data-theme="dark"] body.fiwork-page-blog .blog-comments {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog
    :is(.blog-comments__form > img, .blog-comment > img) {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__form textarea {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
    caret-color: #72d990;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__form textarea::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__form textarea:focus {
    border-color: #3f815e !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(35, 195, 102, .11) !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__form button {
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__form button:hover:not(:disabled),
html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__form button:focus-visible:not(:disabled) {
    color: #fff;
    background: #2cab6b;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__login {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__login:hover,
html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__login:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comment {
    border-top-color: var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comment > div > header {
    color: var(--fi-text);
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comment header strong {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comment header time {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comment p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comment--reply {
    border-top-color: var(--fi-border-soft);
}

html[data-theme="dark"] body.fiwork-page-blog
    .blog-comments__empty {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-container:has(> .fi-category-hub--digest),
html[data-theme="dark"] .main-container:has(> .category-services-digest) {
    border-color: var(--fi-border) !important;
    background-color: var(--fi-surface) !important;
}

html[data-theme="dark"] .fi-category-hub--digest {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub__header {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub__header h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub__header p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-list {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-list__title {
    border-bottom-color: var(--fi-border);
    color: var(--fi-text);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-list__subtitle {
    color: var(--fi-text);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-list__link {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fi-category-hub--digest :is(
    .fi-category-hub-list__subtitle,
    .fi-category-hub-list__link
):hover {
    color: var(--fi-accent);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-cards {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
    box-shadow: none;
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-card__title {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-card:hover {
    border-color: #48515a;
    background: var(--fi-surface-raised);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .fi-category-hub--digest .fi-category-hub-card:hover .fi-category-hub-card__title {
    color: #73b9f5;
}

html[data-theme="dark"] body.fiwork-creators-page {
    background: var(--fi-bg);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-nav .fi-category-hub-list__subtitle {
    color: #73b9f5;
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-nav .fi-category-hub-list__link:hover {
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fi-creators-hub :is(
    .fi-creators-hero,
    .fi-creators-section,
    .fi-creators-info-card,
    .subscribers-box,
    .faq-section
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-hero {
    background: linear-gradient(135deg, var(--fi-bg-soft) 0%, #182330 100%);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-hero::before {
    background: radial-gradient(circle, rgba(74, 168, 245, .18) 0%, rgba(74, 168, 245, 0) 68%);
}

html[data-theme="dark"] .fi-creators-hub :is(
    .fi-creators-hero h2,
    .fi-creators-section h2,
    .fi-creators-info-card h2,
    .subscribers-box h2,
    .faq-section h2
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .fi-creators-hub :is(
    .fi-creators-hero__copy > p,
    .fi-creators-section__head p,
    .fi-creators-info-card p,
    .subscribers-box p
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-eyebrow {
    color: #8bc7f8;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-hero blockquote {
    border-left-color: #4aa8f5;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fi-creators-hub :is(.hiw-card, .faq-item) {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .fi-creators-hub .hiw-card:hover {
    border-color: #48515a;
    background: var(--fi-surface-raised);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .fi-creators-hub .hiw-img-container {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fi-creators-hub .hiw-card p,
html[data-theme="dark"] .fi-creators-hub .faq-question {
    color: var(--fi-text);
}

html[data-theme="dark"] .fi-creators-hub .hiw-card__number {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fi-creators-hub .subscribers-box {
    background: linear-gradient(135deg, #182633 0%, #17212b 100%);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-contact {
    border-color: #4aa8f5;
    color: #8bc7f8;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fi-creators-hub .fi-creators-contact:hover {
    border-color: #73b9f5;
    color: #b9ddfb;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fi-creators-hub .faq-question::after {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fi-creators-hub .faq-answer p {
    border-top-color: var(--fi-border);
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .category-services-digest.services-block {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .category-services-digest .services-header {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .category-services-digest .services-header .mini-nav a {
    color: #73b9f5;
}

html[data-theme="dark"] .category-services-digest .services-header .mini-nav a:hover {
    color: #9dd0fb;
}

html[data-theme="dark"] .category-services-digest .services-header .mini-nav__separator {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .category-services-digest .services-header .services-num-block {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .category-services-digest .services-header .service-num,
html[data-theme="dark"] .category-services-digest.services-block > h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .category-services-digest .services-subcategories-block {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .category-services-digest .services-subcategories-block .subcategory-elem {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .category-services-digest .services-subcategories-block .subcategory-elem:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .category-services-digest .services-subcategories-block .subcategory-elem.selected {
    border-color: #328bd8;
    color: #fff;
    background: #247fc7;
}

html[data-theme="dark"] .category-services-digest .services-filter-container,
html[data-theme="dark"] .category-services-digest .mobile-filter-content {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .category-services-digest .mobile-filter-toggle {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .category-services-digest .rubric-block h3,
html[data-theme="dark"] .category-services-digest .filter-header {
    color: var(--fi-text);
}

html[data-theme="dark"] .category-services-digest .tree ul {
    border-left-color: var(--fi-border);
}

html[data-theme="dark"] .category-services-digest .tree a.tree-item,
html[data-theme="dark"] .category-services-digest .tree li.selected > a.tree-item {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .category-services-digest .tree a.tree-item:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .category-services-digest .tree a.tree-item.is-current,
html[data-theme="dark"] .category-services-digest .tree a.tree-item[aria-current="page"] {
    color: var(--fi-accent);
    background: transparent;
}

html[data-theme="dark"] .category-services-digest .tree ul:has(> li > a.tree-item.is-current),
html[data-theme="dark"] .category-services-digest .tree ul:has(> li > a.tree-item[aria-current="page"]) {
    border-left-color: var(--fi-accent);
}

html[data-theme="dark"] .category-services-digest .tree a.tree-item.is-current .tree-item__icon,
html[data-theme="dark"] .category-services-digest .tree a.tree-item[aria-current="page"] .tree-item__icon {
    color: var(--fi-accent);
}

html[data-theme="dark"] .category-services-digest .filter-block {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .category-services-digest .filter-param-container :is(label, span),
html[data-theme="dark"] .category-services-digest .price-filter-slider-block .input-box p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .category-services-digest .filter-param-container label::before {
    border-color: #59616a;
    background: var(--fi-surface);
}

html[data-theme="dark"] .category-services-digest .price-filter-slider-block .input-box {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .category-services-digest .price-filter-slider-block .input-box .currency {
    color: var(--fi-text);
}

html[data-theme="dark"] .category-services-digest .fi-rating-filter .list {
    color: #59616a;
}

html[data-theme="dark"] .category-services-digest .reset-this-filter {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .main-block {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .main-container {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-block:has(> .main-container > .profile-details-page),
html[data-theme="dark"] .main-block:has(> .main-container > .company-profile-page),
html[data-theme="dark"] .main-container:has(> .profile-details-page),
html[data-theme="dark"] .main-container:has(> .company-profile-page) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-community-main > .freelancer-main-info,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-portfolio-digest,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-reviews-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-info-container {
    border-color: transparent !important;
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-community-main__edit {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-community-main__edit:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-trophies-container {
    border-color: var(--fi-border) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-trophies-container .achievement-tooltip {
    background: #202428 !important;
    background-color: #202428 !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-trophies-container .achievement-tooltip::after {
    border-color: transparent transparent #202428 transparent;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-content-tabs .company-profile-tabs__list {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-content-tabs .company-profile-tabs__item {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-content-tabs .company-profile-tabs__item:hover,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-content-tabs .company-profile-tabs__item.is-active {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .freelancer-avatar-container {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info :is(
    .freelancer-name,
    .freelancer-name-string,
    .freelancer-position,
    .about-freelancer-container h2
) {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info :is(
    .freelancer-username,
    .about-freelancer-container p,
    .project-to-do-description
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .freelancer-skills span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .freelancer-skills span:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .profile-actions-container :is(
    .like-container,
    .service-report-button,
    .share-icon-container
) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .profile-actions-container :is(
    .like-container,
    .service-report-button,
    .share-icon-container
):hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .about-freelancer-container .show-full-text,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info .profile-about-toggle {
    color: var(--fi-accent);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-main-info
    .project-to-do-description.is-mobile-collapsed::after {
    background: linear-gradient(180deg, rgba(26, 29, 32, 0), var(--fi-surface) 86%);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .freelancer-portfolio-header {
    border-bottom-color: var(--fi-border) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .freelancer-portfolio-header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .freelancer-portfolio-nav-elem {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .freelancer-portfolio-nav-elem:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .freelancer-portfolio-nav-elem.active {
    border-color: #328bd8;
    color: #fff;
    background: #247fc7;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .add-portfolio-button {
    border-color: #454b52;
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .add-portfolio-button:hover {
    border-color: #5a626b;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .add-portfolio-button:focus-visible {
    outline-color: rgba(74, 168, 247, .42);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .add-portfolio-button__icon {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-portfolio-digest .add-portfolio-button:hover .add-portfolio-button__icon {
    border-color: #5a626b;
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .my-services-block > h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: none;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container:hover {
    border-color: #464d54 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container :is(.ad-part1, .freelancer-container) {
    background: transparent;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container .freelancer-username {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container .service-data-container {
    border-top-color: var(--fi-border) !important;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container :is(
        .rating-stars p,
        .service-price-text
    ) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container .service-price-num {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container .white-like-button .white-like-icon {
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    background: rgba(10, 12, 14, .7);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .my-services-container .ad-container .ad-banner.liked .white-like-icon {
    color: #ff858a;
    background: rgba(255, 77, 79, .16);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .is-user-online .user-offline {
    border-color: #454b52;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .is-user-online .user-online {
    border-color: #36b875;
    color: #69d39a;
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .user-offline-container .tooltip-text {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .user-offline-container .tooltip-text h4 {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .user-offline-container .tooltip-text::after {
    border-color: transparent transparent var(--fi-surface-raised) transparent;
}

html[data-theme="dark"] .add-work-modal-block {
    background: rgba(0, 0, 0, .76);
}

html[data-theme="dark"] .add-work-modal-block .add-work-modal-container {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .add-work-modal-block .add-work-modal-header {
    border-bottom-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-modal-header h3, .add-work-name-label-container label, .add-work-details-header label,
        .load-works-header h3, .load-cover-header h3, .loaded-cover-desc-content h3) {
    color: var(--fi-text);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-modal-title > span, .add-work-name-counter, .load-works-container p,
        .load-cover-container p, .loaded-cover-desc-content .work-section, .work-visits span) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .add-work-modal-block .add-work-modal-close {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .add-work-modal-block .add-work-modal-close:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-name-container, .add-work-details-container, .load-works-container, .load-cover-container) {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .add-work-modal-block .add-work-modal-description {
    border-color: #294254;
    color: #b5c6d5;
    background: #1b2b36;
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-name-label-container span, .add-work-details-header .optional-to-do) {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-details-header .required-to-do, .load-cover-header span) {
    color: #ff9da3;
    background: rgba(225, 72, 89, .14);
}

html[data-theme="dark"] .add-work-modal-block .load-works-header span.done {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-name-input, .add-work-details-controls select,
        #portfolio-category-children select, .attach-work-to-portfolio-container select) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background-color: var(--fi-surface-raised);
    box-shadow: none;
    color-scheme: dark;
}

html[data-theme="dark"] .add-work-modal-block .add-work-name-input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.add-work-name-input, .add-work-details-controls select,
        #portfolio-category-children select, .attach-work-to-portfolio-container select):focus {
    border-color: #367a58 !important;
    box-shadow: 0 0 0 3px rgba(54, 122, 88, .22) !important;
}

html[data-theme="dark"] .add-work-modal-block .portfolio-category-hint {
    color: #a9cdb7;
    background: #1b2b23;
}

html[data-theme="dark"] .add-work-modal-block .add-work-elem {
    border-color: #48515a;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .add-work-modal-block .add-work-elem:hover {
    border-color: #367a58;
    background: #173426;
}

html[data-theme="dark"] .add-work-modal-block .add-work-elem span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.preview-work-img-container, .loaded-cover-desc) {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .add-work-modal-block
    :is(.preview-work-img-container .delete-icon, .preview-work-img-container .resize-icon) {
    background: rgba(32, 36, 40, .94);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .add-work-modal-block .add-work-modal-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: #48515a;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .profile-rating-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-success-details {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo :is(
    .freelancer-rating h4,
    .freelancer-level-popover .user-level
) {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-rating-content p,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-rating-data {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-rating-data-container {
    border-color: var(--fi-border) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-rating-data .label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-rating-data .percentage {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .freelancer-rating-data .quantity {
    color: #69d37c;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .ecological-contribution-tooltip {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .ecological-contribution-tooltip:hover,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .ecological-contribution-tooltip:focus-visible {
    color: #6db9f5;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .ecological-contribution-tooltip__bubble,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .ecological-contribution-tooltip__bubble::after {
    border-color: #3b4249;
    background: #11161b;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .block-freelancer {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .toggle-label {
    min-width: 0;
    margin-right: 14px;
    display: inline-block !important;
    flex: 1 1 auto;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--fi-text-secondary) !important;
    white-space: nowrap;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .block-freelancer .slider {
    border: 1px solid #454b52;
    background: #343a40;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .block-freelancer .slider::before {
    top: 50%;
    bottom: auto;
    background: #dfe3e7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .34);
    transform: translateY(-50%);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .block-freelancer input:checked + .slider {
    border-color: #36b875;
    background: #24975d;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .block-freelancer input:checked + .slider::before {
    transform: translate(32px, -50%);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .block-freelancer input:focus-visible + .slider {
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .2), inset 0 1px 2px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .identity-certificate {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .identity-certificate:hover {
    border-color: #48515a !important;
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .identity-certificate-text {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .profile-resume-hidden-badge {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo
    .profile-resume-digest .dashboard-blog-digest__title-icon {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .company-rating-team {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .company-rating-team__heading h3,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .company-rating-team__person > strong {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .freelancer-rating-combo .company-rating-team__heading > span {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .company-rating-team__avatar > img {
    border-color: var(--fi-surface);
    box-shadow: 0 0 0 1px #4a5158;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .company-rating-team__person:hover .company-rating-team__avatar > img,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-rating-combo .company-rating-team__person:focus-visible .company-rating-team__avatar > img {
    box-shadow: 0 0 0 2px #36b875;
}

html[data-theme="dark"] .company-profile-tabs__tooltip.is-positioned {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .company-profile-tabs__tooltip.is-positioned > button {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .company-profile-tabs__tooltip.is-positioned > button:hover,
html[data-theme="dark"] .company-profile-tabs__tooltip.is-positioned > button:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .company-profile-tabs__tooltip.is-positioned > i {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .profile-resume-modal {
    background: rgba(4, 6, 8, .76);
}

html[data-theme="dark"] .profile-resume-modal__dialog {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

html[data-theme="dark"] .profile-resume-modal__dialog::-webkit-scrollbar-thumb {
    background: #454b52;
}

html[data-theme="dark"] .profile-resume-modal__close {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .profile-resume-modal__close:hover {
    border-color: #48515a;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .profile-resume-modal__close img {
    opacity: .8;
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .profile-resume-sheet {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .profile-resume-sheet__header {
    border-bottom-color: var(--fi-border);
    color: var(--fi-text);
    background: transparent !important;
}

html[data-theme="dark"] .profile-resume-sheet__header > img {
    border: 1px solid var(--fi-border);
}

html[data-theme="dark"] .profile-resume-sheet__header span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .profile-resume-sheet__header h2,
html[data-theme="dark"] .profile-resume-section :is(h3, h4),
html[data-theme="dark"] .profile-resume-facts strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .profile-resume-sheet__header p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .profile-resume-sheet__header > a {
    border: 1px solid #315f47;
    color: #69d39a;
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .profile-resume-sheet__header > a:hover {
    border-color: #3d7859;
    color: #8be4b3;
    background: rgba(35, 195, 102, .16);
}

html[data-theme="dark"] .profile-resume-facts > div {
    border: 1px solid var(--fi-border-soft);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .profile-resume-facts span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .profile-resume-section {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .profile-resume-section > p,
html[data-theme="dark"] .profile-resume-timeline :is(strong, p),
html[data-theme="dark"] .profile-resume-education p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .profile-resume-skills span {
    border: 1px solid #284d6d;
    color: #76bcf6;
    background: #172a3a;
}

html[data-theme="dark"] .profile-resume-timeline article > span,
html[data-theme="dark"] .profile-resume-education article > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .profile-resume-languages > span {
    border: 1px solid var(--fi-border-soft);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .profile-resume-languages strong {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page) .profile-reviews-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header {
    border-bottom-color: var(--fi-border) !important;
    background: transparent !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest :is(
        .reviews-about-freelancer-header h2,
        .reviews-about-freelancer-header .stars-estimate,
        .reviewer-username,
        .freelancer-response-username
    ) {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header .reviews-count {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header .reviews-filter-action {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header .reviews-filter-action:hover,
html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header .reviews-filter-action:focus-visible {
    border-color: #36b875;
    color: #73d7a2;
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header .reviews-filter-action.active {
    border-color: #36b875;
    color: #73d7a2;
    background: rgba(35, 195, 102, .14);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-about-freelancer-header
    .reviews-filter-action[data-target="negative-review"]:is(:hover, :focus-visible, .active) {
    border-color: #8d4247;
    color: #ff858a;
    background: rgba(255, 77, 79, .11);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviewer-review {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .review-order-meta {
    border-bottom-color: var(--fi-border) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .review-order-label {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .review-order-title {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest a.review-order-title:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest :is(.reviewer-img-container, .freelancer-response-img-container) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest :is(.review-date, .freelancer-response-block .review-date) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest :is(.reviewer-review-text, .freelancer-response-text) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviewer-review-response-functions .there-is-response {
    border-color: #34495c;
    color: #aebdca;
    background: rgba(74, 168, 247, .08);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviewer-review-response-functions .open-close-response-option {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .freelancer-response-container {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .profile-review-branch::before {
    background: #4a5158;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .profile-review-branch__arc {
    border-color: #4a5158;
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .write-response-block {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .write-response-textarea {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .write-response-textarea::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-empty-state {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-empty-state__icon {
    color: #69d39a;
    background: rgba(35, 195, 102, .12);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-empty-state .reviewer-review-text {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .profile-reviews-digest .reviews-empty-state p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-container:has(> .project-preview-digest) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] body.fiwork-page-portfolio
    .main-container:has(> .portfolio-page-digest) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] body.fiwork-page-portfolio
    .main-container > .portfolio-page-digest {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .project-preview-digest {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-services-container .aside-container
    .add-new-service.community-digest.dashboard-blog-digest {
    border-color: #23c366 !important;
    color: #fff !important;
    background: #23c366 !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-services-container .aside-container
    .add-new-service.community-digest.dashboard-blog-digest:hover {
    border-color: #1fad5b !important;
    color: #fff !important;
    background: #1fad5b !important;
}

html[data-theme="dark"] .project-preview-digest .my-services-nav,
html[data-theme="dark"] .project-preview-digest .my-services-wrapper {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .project-preview-digest .my-services-nav-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .my-services-nav-copy > p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .project-preview-digest .my-services-nav-action,
html[data-theme="dark"] .project-preview-digest .my-services-nav-action:hover,
html[data-theme="dark"] .project-preview-digest .my-services-nav-action:focus-visible {
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .project-preview-digest
    .my-services-container .aside-container .import-services {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-services-container .aside-container .import-services :is(h3, p) {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card__title strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card__content > p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card .round-question-icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card .weekends-tooltip-text {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card .weekends-tooltip-text h4 {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-card .weekends-tooltip-text p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .weekend-services-switch__slider {
    background: #43494f;
}

html[data-theme="dark"] .project-preview-digest .weekend-services-switch__slider::before {
    background: #e8ecef;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .project-preview-digest
    .weekend-services-switch input:checked + .weekend-services-switch__slider {
    background: #23c366;
}

html[data-theme="dark"] .project-preview-digest
    .import-from-other-platforms .platform {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .project-preview-digest
    .import-from-other-platforms .platform:hover {
    border-color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .project-preview-digest
    .import-from-other-platforms .platform-icon[src*="kwork-icon.svg"] {
    content: url("/img/my-portfolio-page/kwork-icon-dark.svg");
}

html[data-theme="dark"] .project-preview-digest .my-services-nav {
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .project-preview-digest
    .tooltip-text.receive-orders-tooltip-text {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .project-preview-digest
    .tooltip-text.receive-orders-tooltip-text p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest
    .tooltip-text.receive-orders-tooltip-text b {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .my-services-nav-part2 .vertical-line,
html[data-theme="dark"] .project-preview-digest .my-services-wrapper-nav {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-search {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-search input {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-search input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-nav-elem {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-nav-elem:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-nav-elem .elem-count {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-nav-elem.active {
    color: #69d39a;
    border-bottom-color: #36b875;
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-nav-elem.active .elem-count {
    border-color: #36b875;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-container .my-service {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-container .my-service-container {
    background: transparent;
}

html[data-theme="dark"] .project-preview-digest .my-services-wrapper-container .my-service-container:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .project-preview-digest
    .my-services-wrapper-container .my-service-description-header {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .project-preview-digest
    .my-services-wrapper-container .my-service-description-header label {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest
    .my-services-wrapper-container .my-service-title-link:hover label {
    color: #73b9f5;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls > .question-and-description,
html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls > .my-service-pin-form > .my-service-pin-button {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: #202428 !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls > .question-and-description:hover,
html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls > .question-and-description:focus-visible,
html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls > .my-service-pin-form > .my-service-pin-button:hover,
html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls > .my-service-pin-form > .my-service-pin-button:focus-visible {
    border-color: #46515a !important;
    color: var(--fi-text) !important;
    background: #292e33 !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls .js-project-delete:hover {
    border-color: #67333d !important;
    color: #ff858a !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls .js-project-toggle:hover {
    border-color: #285b42 !important;
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls a:has(.action-duplicate-icon):hover,
html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls a:has(.edit-icon):hover {
    border-color: #294c69 !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls .my-service-pin-button:hover {
    border-color: #66512a !important;
    color: #f2c267 !important;
    background: #352b18 !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls .tooltip-text {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls .tooltip-text p {
    color: inherit !important;
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-controls .tooltip-text::after {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .project-preview-digest :is(
    .my-service-description-container .my-service-description-text,
    .my-service-description-details .my-service-description-detail .detail-icon
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .project-preview-digest
    .my-service-description-details .my-service-description-detail p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .my-service-description-container .my-service-description-sum {
    color: #69d39a;
}

html[data-theme="dark"] .project-preview-digest .my-service.draft {
    border-color: #5b5033 !important;
    background: linear-gradient(180deg, #29271f 0%, var(--fi-surface-raised) 100%) !important;
}

html[data-theme="dark"] .project-preview-digest .project-moderation-badge {
    color: #f2b268;
    background: rgba(221, 107, 32, .13);
}

html[data-theme="dark"] .project-preview-digest .my-service-message {
    border-top-color: var(--fi-border);
    background: #29271f;
}

html[data-theme="dark"] .project-preview-digest .my-service-message-text p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .my-services-empty-card h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .my-services-empty-card p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block:has(> .main-container > .manage-orders-digest) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .manage-orders-digest) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .manage-orders-digest {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] body.fiwork-page-referral,
html[data-theme="dark"] .main-block:has(> .main-container > .referral-page) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .referral-page) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .referral-page {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .referral-page .referral-hero {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .referral-page :is(
    .referral-hero h1,
    .referral-link-card h2,
    .referral-history h2,
    .referral-rules h2,
    .referral-stats strong,
    .referral-history-row strong,
    .referral-empty strong,
    .referral-rules strong
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .referral-page :is(
    .referral-eyebrow,
    .referral-hero p,
    .referral-link-card > div > span,
    .referral-history__head > div > span,
    .referral-stats article > div > span,
    .referral-history__head p,
    .referral-history-row span,
    .referral-empty p,
    .referral-rules p
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .referral-page :is(
    .referral-link-card,
    .referral-stats article,
    .referral-history,
    .referral-rules
) {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .referral-page .referral-rate,
html[data-theme="dark"] .referral-page :is(
    .referral-stat-icon,
    .referral-empty > span,
    .referral-rules article > span
) {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .referral-page .referral-rate span {
    color: #8ee4b4;
}

html[data-theme="dark"] .referral-page .referral-link-control {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .referral-page .referral-link-control:focus-within {
    border-color: #367a58;
    box-shadow: 0 0 0 3px rgba(105, 211, 154, .1);
}

html[data-theme="dark"] .referral-page .referral-link-control input {
    color: var(--fi-text);
}

html[data-theme="dark"] .referral-page :is(
    .referral-history__head,
    .referral-history-row
) {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .referral-page .referral-history-row > div:last-child strong {
    color: #69d39a;
}

/* Profile settings */
html[data-theme="dark"] .main-block:has(> .main-container > .settings-page-digest) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .settings-page-digest) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .settings-page-digest.profile-settings-block {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-back-link {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .settings-page-digest .settings-back-link:hover {
    color: #69b7ff;
}

html[data-theme="dark"] .settings-page-digest .settings-page-intro {
    border-color: var(--fi-border) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-page-title-icon {
    border-color: #3b4650;
    color: #a7afb8;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .settings-page-digest :is(
    .settings-page-intro h1,
    .user-name,
    .settings-title,
    .settings-subtitle,
    .settings-part h2,
    .settings-part h3,
    .settings-part h4,
    .settings-panel h2,
    .settings-panel h3,
    .settings-panel h4,
    .field-title,
    .input-title,
    .routine-title,
    .privacy-settings-option strong,
    .requiredInfo-block strong
) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    .settings-page-info,
    .user-username,
    .settings-description,
    .field-description,
    .input-description,
    .description,
    .hint,
    .help-text,
    .privacy-settings-option p,
    .requiredInfo-block p
) {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    .aside-block .user-settings-block,
    .profile-settings-content > .settings-panel,
    .settings-access,
    .settings-profile,
    .settings-privacy,
    .settings-verification .settings-container
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #1a1d20 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-container, .email-container, .time-container) > label {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-input, .email-input, .time-select) {
    border-color: #3a4148 !important;
    color: #f1f3f5 !important;
    background: #15181b !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-input, .email-input, .time-select):hover {
    border-color: #4b545d !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .time-select:focus {
    border-color: #37698f !important;
    background: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-input, .email-input) input {
    color: #d4d9de !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-input, .email-input).is-locked {
    border-color: #282d31 !important;
    background: #171a1d !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-input, .email-input) .edit-icon {
    background: #202428 !important;
    filter: grayscale(1) invert(.78);
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-input, .email-input) .edit-icon:hover {
    background: #172a3a !important;
    filter: invert(65%) sepia(70%) saturate(800%) hue-rotate(175deg);
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    :is(.phone-edit-hint, .email-edit-hint) {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .time-select {
    color-scheme: dark;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .time-select option {
    color: #f1f3f5;
    background: #202428;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .change-password-container :is(.repeat-password, .new-password) {
    border-color: #3a4148 !important;
    color: var(--fi-text);
    background: #15181b !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .change-password-container :is(.repeat-password, .new-password):focus-within {
    border-color: #37698f !important;
    background: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .change-password-container :is(.repeat-password, .new-password) input {
    color: #f1f3f5 !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .change-password-container .seen-icon {
    filter: grayscale(1) invert(.72);
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .save-button-container input[type="submit"] {
    border-color: #24975d !important;
    color: #fff !important;
    background: #24975d !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .save-button-container {
    border-top-color: #30353a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .save-button-container input[type="submit"]:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .save-button-container input[type="submit"]:focus-visible {
    border-color: #2db46f !important;
    background: #2db46f !important;
    box-shadow: 0 0 0 3px rgba(105, 211, 154, .12) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .delete-account {
    border-color: #884452 !important;
    color: #ff858a !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .delete-account:hover {
    border-color: #a95464 !important;
    color: #ffabb0 !important;
    background: #48252d !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .error_msg_container :is(.alert, div:not(.alert)) {
    border-color: #67333d !important;
    color: #ffabb0 !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field > span {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field select {
    border-color: #3a4148 !important;
    color: #f1f3f5 !important;
    background-color: #15181b !important;
    box-shadow: none !important;
    color-scheme: dark;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field select:hover {
    border-color: #4b545d !important;
    background-color: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field select:focus {
    border-color: #37698f !important;
    background-color: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field select option {
    color: #f1f3f5;
    background: #202428;
}

html[data-theme="dark"] .settings-page-digest .language-currency-field small {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest .currency-source-note {
    border-color: #294c69 !important;
    color: var(--fi-text);
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest .currency-source-note strong {
    color: #73b9f5 !important;
}

html[data-theme="dark"] .settings-page-digest .currency-source-note span {
    color: #b3bac2 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #1a1d20 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active .settings-container {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #1a1d20 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .description h2 {
    color: #f1f3f5 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .description p {
    color: #b3bac2 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #191d1f !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box:hover {
    border-color: #367a58 !important;
    background: #202428 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box.active {
    border-color: #367a58 !important;
    background: #173426 !important;
    box-shadow: 0 0 0 3px rgba(105, 211, 154, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box-text strong {
    color: #f1f3f5 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box-text small {
    color: #aeb6bf !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box-text .img-container {
    border-color: #285b42 !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .radio-box input {
    border-color: #59616a !important;
    background: #15181b !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-form-note {
    border-color: #30353a !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-form-note strong {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-form-note p {
    color: #aeb6bf !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-step {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #191d1f !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-step.is-complete {
    border-color: #285b42 !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-step__icon {
    border-color: #285b42 !important;
    color: #69d39a !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-step__content strong {
    color: #f1f3f5 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-step__content small,
html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-qr-panel p {
    color: #aeb6bf !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    :is(.identity-selfie-qr-button, .identity-selfie-mobile-capture) {
    border-color: #3a4148 !important;
    color: #d4d9de !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    :is(.identity-selfie-qr-button, .identity-selfie-mobile-capture):hover {
    border-color: #367a58 !important;
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .identity-selfie-success-check {
    border-color: #285b42 !important;
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .verification-status-card.is-failed {
    border-color: #67333d !important;
    color: #ff858a !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .verification-status-card__text :is(strong, small) {
    color: #ffabb0 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .upload-cover-container {
    border-color: #48515a !important;
    color: var(--fi-text);
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .upload-cover-container:hover {
    border-color: #367a58 !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .upload-cover-container strong {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .upload-cover-container span {
    color: #aeb6bf !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .loading-box .loading-name {
    color: #f1f3f5 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    .loading-box p {
    color: #b3bac2 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    input[type="submit"] {
    border-color: #24975d !important;
    color: #fff !important;
    background: #24975d !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    input[type="submit"]:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-verification.settings-part.settings-panel.is-active
    input[type="submit"]:focus-visible {
    border-color: #2db46f !important;
    background: #2db46f !important;
    box-shadow: 0 0 0 3px rgba(105, 211, 154, .12) !important;
}

html[data-theme="dark"] .settings-page-digest .privacy-settings-note {
    border-color: #285b42 !important;
    color: #b3bac2 !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block {
    color: #f1f3f5;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-block {
    border-color: #30353a !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-block .user-block {
    border-color: #30353a !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-avatar-container {
    background: #101214;
    box-shadow: 0 0 0 2px #30353a;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .img-container {
    border-color: #30353a !important;
    background: #101214 !important;
    box-shadow: 0 0 0 3px #191d1f;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .avatar-edit-indicator {
    border-color: #3a4148 !important;
    color: #b3bac2 !important;
    background: #202428 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .img-container:hover .avatar-edit-indicator,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .img-container:focus-within .avatar-edit-indicator {
    border-color: #37698f !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .controls-container {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #202428 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .controls-container::before {
    border-color: #30353a !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .avatar-menu-item {
    color: #d4d9de !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .avatar-menu-item:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .avatar-menu-item:focus-visible {
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .avatar-menu-item--danger:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .user-profile-container .user-avatar-container .avatar-menu-item--danger:focus-visible {
    color: #ff858a !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile #settings-profile-form {
    color: var(--fi-text);
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(.name-container, .specialty-container) label {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(.name-input, .specialty-input) {
    border-color: #3a4148 !important;
    color: var(--fi-text) !important;
    background: #15181b !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(.name-input, .specialty-input):hover {
    border-color: #4b545d !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(.name-input, .specialty-input):focus-within {
    border-color: #37698f !important;
    background: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(.name-container, .specialty-container) input {
    color: #f1f3f5 !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(.name-container, .specialty-container) input::placeholder {
    color: #737c86 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .name-input.is-locked,
html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-input.is-locked {
    border-color: #282d31 !important;
    background: #171a1d !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .name-input.is-locked input:disabled,
html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-input input[readonly] {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form :is(
        .settings-locked-hint,
        .username-settings-hint,
        .specialty-text-counter
    ) {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-prefix {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-edit {
    border-color: #294c69 !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-edit:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-edit:focus-visible {
    border-color: #37698f !important;
    color: #a6d3f8 !important;
    background: #1c3448 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-edit.is-disabled {
    border-color: #30353a !important;
    color: #69727b !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-preview,
html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-copy {
    border-color: #30353a !important;
    color: #73b9f5 !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-preview:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-copy:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-copy:focus-visible {
    border-color: #37698f !important;
    color: #a6d3f8 !important;
    background: #1c3448 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile #settings-profile-form .username-settings-copy.is-copied {
    border-color: #285b42 !important;
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container {
    border-color: transparent !important;
    color: var(--fi-text);
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container > label {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container textarea {
    border-color: #3a4148 !important;
    color: #f1f3f5 !important;
    background: #15181b !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container textarea:hover {
    border-color: #4b545d !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container textarea:focus {
    border-color: #37698f !important;
    background: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container textarea::placeholder {
    color: #737c86 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container .information-about-you-counter {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container .generate-by-ai-text {
    border: 1px solid #30353a !important;
    border-radius: 7px;
    color: #b3bac2 !important;
    background: #202428 !important;
    padding: 4px 8px;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container .generate-by-ai-text:hover {
    border-color: #37698f !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container .generate-by-ai-text.is-loading,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .information-about-you-container .generate-by-ai-text.is-typing {
    border-color: #294c69 !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container {
    border-color: transparent !important;
    color: var(--fi-text);
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container > label {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container :is(.skills-count, .add-new-skill-counter) {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill {
    border-color: #3a4148 !important;
    color: #d4d9de !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill:hover {
    border-color: #4b545d !important;
    color: #f1f3f5 !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill .controls {
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill .skill-action {
    border-color: #3a4148 !important;
    color: #aeb6bf !important;
    background: #202428 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill .skill-action:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill .skill-action:focus-visible {
    border-color: #37698f !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill .skill-action--danger:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .skills-wrapper .skill .skill-action--danger:focus-visible {
    border-color: #67333d !important;
    color: #ff858a !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-skill {
    color: #69d39a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-skill:hover {
    color: #8ee4b4 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-new-input-container {
    border-color: #3a4148 !important;
    color: var(--fi-text) !important;
    background: #15181b !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-new-input-container:hover {
    border-color: #4b545d !important;
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-new-input-container:focus-within {
    border-color: #37698f !important;
    background: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-new-input-container input[type="text"] {
    color: #f1f3f5 !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .add-new-input-container input[type="text"]::placeholder {
    color: #737c86 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .cancel-button {
    color: #aeb6bf !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .skills-container .cancel-button:hover {
    color: #f1f3f5 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button {
    color: var(--fi-text);
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .routine-container {
    border-color: #30353a !important;
    color: var(--fi-text);
    background: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .routine-header label {
    color: #e4e7eb !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .round-question-icon {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .round-question-container:hover .round-question-icon {
    color: #73b9f5 !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .round-question-description {
    border: 1px solid #30353a;
    color: #d4d9de !important;
    background: #202428 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .time-input-group > span {
    color: #aeb6bf !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button :is(.time-select-from, .time-select-to) {
    border-color: #3a4148 !important;
    color: #f1f3f5 !important;
    background-color: #15181b !important;
    color-scheme: dark;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button :is(.time-select-from, .time-select-to):hover {
    border-color: #4b545d !important;
    background-color: #191d1f !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button :is(.time-select-from, .time-select-to):focus {
    border-color: #37698f !important;
    background-color: #202428 !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button :is(.time-select-from, .time-select-to) option {
    color: #f1f3f5;
    background: #202428;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button .overall-time,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button #total-hours {
    color: #69d39a !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button input[type="submit"] {
    border-color: #24975d !important;
    color: #fff !important;
    background: #24975d !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button input[type="submit"]:hover,
html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button input[type="submit"]:focus-visible {
    border-color: #2db46f !important;
    background: #2db46f !important;
    box-shadow: 0 0 0 3px rgba(105, 211, 154, .12) !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-profile .routine-and-submit-button input[type="submit"]:disabled {
    border-color: #285b42 !important;
    color: #8aa997 !important;
    background: #173426 !important;
}

html[data-theme="dark"] .skill-edit-modal :is(
    .skill-edit-modal__close,
    .skill-edit-modal__cancel
) {
    border-color: #3a4148 !important;
    color: #aeb6bf !important;
    background: #202428 !important;
}

html[data-theme="dark"] .skill-edit-modal :is(
    .skill-edit-modal__close,
    .skill-edit-modal__cancel
):hover {
    border-color: #4b545d !important;
    color: #f1f3f5 !important;
    background: #272b30 !important;
}

html[data-theme="dark"] .skill-edit-modal .skill-edit-modal__counter {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-name {
    color: #f1f3f5 !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-username {
    color: #858d96 !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-setting {
    border-color: transparent !important;
    color: #aeb6bf !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-setting :is(
    .user-setting-text,
    .setting-icon
) {
    color: inherit !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-setting .chevron-right-icon {
    color: #69727b !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-setting:hover {
    border-color: #353b41 !important;
    color: #f1f3f5 !important;
    background: #24292d !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-setting.selected {
    border-color: #294c69 !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-setting.selected .chevron-right-icon {
    color: #73b9f5 !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-container > #open-logout-modal {
    border-color: transparent !important;
    color: #ff858a !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-container > #open-logout-modal:hover {
    border-color: #67333d !important;
    color: #ffabb0 !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    textarea,
    select,
    .select2-selection,
    .input-wrapper,
    .phone-input-wrapper
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background-color: var(--fi-bg-soft) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest :is(input, textarea)::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] .settings-page-digest :is(input, textarea, select):focus,
html[data-theme="dark"] .settings-page-digest .select2-container--focus .select2-selection {
    border-color: #4f7696 !important;
    background-color: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest :is(input, textarea, select):disabled,
html[data-theme="dark"] .settings-page-digest :is(input, textarea, select)[readonly] {
    border-color: var(--fi-border-soft) !important;
    color: var(--fi-text-muted) !important;
    background-color: #171a1d !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    .privacy-settings-option,
    .routine-container,
    .requiredInfo-block,
    .skills-wrapper,
    .skill,
    .profile-danger-zone,
    .verification-status,
    .verification-card,
    .information-about-you-container
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background-color: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .settings-page-digest .profile-danger-zone {
    border-color: #67333d !important;
    background: #2a1a1e !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    .skill-action,
    .avatar-menu-item,
    .generate-by-ai-text,
    .secondary-button,
    .cancel-button
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    .skill-action,
    .avatar-menu-item,
    .generate-by-ai-text,
    .secondary-button,
    .cancel-button
):hover {
    border-color: #48515a !important;
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .settings-page-digest :is(
    .save-button,
    .submit-button,
    input[type="submit"]
) {
    color: #fff !important;
}

html[data-theme="dark"] .settings-page-digest .settings-company-cover__picker {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .settings-page-digest .settings-company-cover__action {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: rgba(26, 29, 32, .94);
}

html[data-theme="dark"] .settings-page-digest .settings-company-cover__action:hover {
    color: #69b7ff;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(
    .skill-edit-modal,
    .verification-auth-modal,
    .settings-company-crop__dialog
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: var(--fi-shadow);
}

html[data-theme="dark"] :is(
    .skill-edit-modal,
    .verification-auth-modal,
    .settings-company-crop__dialog
) :is(h2, h3, h4, strong) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] :is(
    .skill-edit-modal,
    .verification-auth-modal,
    .settings-company-crop__dialog
) :is(p, label, small) {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] :is(
    .skill-edit-modal,
    .verification-auth-modal,
    .settings-company-crop__dialog
) :is(input, textarea) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .verification-auth-modal :is(
    .verification-auth-modal__icon,
    .verification-auth-modal__user,
    .verification-consent-box,
    .verification-consent-check
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .verification-auth-modal .verification-auth-modal__user span {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(
    .phone-modal,
    .email-modal,
    .delete-modal,
    .logout-modal
) {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: var(--fi-shadow);
}

html[data-theme="dark"] :is(
    .phone-modal,
    .email-modal,
    .delete-modal,
    .logout-modal
) :is(h3, b) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] :is(
    .phone-modal,
    .email-modal,
    .delete-modal,
    .logout-modal
) :is(p, .phone-modal-subtitle) {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .phone-modal-close {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .phone-modal-close:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(
    #cancel-phone-btn,
    #cancel-phone-code-btn,
    #cancel-email-btn,
    #cancel-email-code-btn,
    #cancel-delete-btn,
    #cancel-logout-btn
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] :is(
    #cancel-phone-btn,
    #cancel-phone-code-btn,
    #cancel-email-btn,
    #cancel-email-code-btn,
    #cancel-delete-btn,
    #cancel-logout-btn
):hover {
    border-color: #48515a !important;
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] :is(.delete-modal-icon, .logout-modal-icon) {
    color: #ff858a;
    background: #371d23;
}

@media (max-width: 820px) {
    html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-block {
        border-color: transparent !important;
        background: transparent !important;
    }

    html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-tabs .user-setting {
        border-color: var(--fi-border) !important;
        color: #aeb6bf !important;
        background: #191d1f !important;
    }

    html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-tabs .user-setting:hover {
        border-color: #48515a !important;
        color: #f1f3f5 !important;
        background: #24292d !important;
    }

    html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-tabs .user-setting.selected {
        border-color: #294c69 !important;
        color: #73b9f5 !important;
        background: #172a3a !important;
    }

    html[data-theme="dark"] .settings-page-digest .aside-block .user-settings-container > #open-logout-modal {
        border-color: #67333d !important;
        color: #ff858a !important;
        background: #371d23 !important;
    }
}

html[data-theme="dark"] body:has(.client-tasks-page),
html[data-theme="dark"] .main-block:has(> .main-container > .client-tasks-page) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .client-tasks-page) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .client-tasks-page {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .client-tasks-hero {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-tasks-title h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-tasks-title p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-tasks-filter-panel {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-tasks-type-select {
    border-color: var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-tasks-type-select:focus-within {
    border-color: #319567;
    box-shadow: 0 0 0 3px rgba(49, 149, 103, .13);
}

html[data-theme="dark"] .client-tasks-type-select select {
    color: var(--fi-text-secondary);
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color-scheme: normal;
}

html[data-theme="dark"] .client-tasks-table {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-tasks-table__header {
    border-bottom-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-tasks-table__header > div {
    border-right-color: var(--fi-border-soft);
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-task-card {
    border-bottom-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-task-card:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-task-card__main,
html[data-theme="dark"] .client-task-card__stats,
html[data-theme="dark"] .client-task-card__stat {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .client-task-card__stat {
    background: transparent;
}

html[data-theme="dark"] :is(.client-tasks-type-nav__item, .client-tasks-tabs__item) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.client-tasks-type-nav__item, .client-tasks-tabs__item):hover,
html[data-theme="dark"] :is(.client-tasks-type-nav__item, .client-tasks-tabs__item):focus {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(.client-tasks-type-nav__item, .client-tasks-tabs__item).active {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .client-tasks-tabs__item b {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-tasks-tabs__item.active b {
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .client-tasks-tabs__item.active,
html[data-theme="dark"] .client-tasks-tabs__item:hover,
html[data-theme="dark"] .client-tasks-tabs__item:focus {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] :is(.client-task-card, .client-tasks-type-empty, .fiwork-tasks-empty) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] :is(.client-task-card__title a, .client-task-card__stat strong, .client-tasks-type-empty strong, .fiwork-tasks-empty__title) {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-task-card__pin {
    color: #f2b84b;
}

html[data-theme="dark"] :is(.client-task-card__meta span, .client-task-card__stat span, .client-tasks-type-empty span, .fiwork-tasks-empty__desc) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-task-card__attention {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .client-task-card__attention i {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-task-card__attention:hover,
html[data-theme="dark"] .client-task-card__attention:focus {
    color: #69d39a;
}

@media (max-width: 767.98px) {
    html[data-theme="dark"] .client-tasks-digest :is(
        .order-in-block,
        .order-in-table-wrapper,
        .order-in-table,
        .table-body,
        .search_result
    ) {
        background: transparent !important;
    }

    html[data-theme="dark"] .manage-orders-digest .order-in-table .table-row {
        border-color: var(--fi-border) !important;
    }

    html[data-theme="dark"] .manage-orders-digest
        .order-in-table .table-row .table-cell {
        border-bottom-color: var(--fi-border-soft) !important;
    }

    html[data-theme="dark"] .client-tasks-order-table .table-body .client-task-card {
        border-color: var(--fi-border) !important;
    }

    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card > .client-task-card__main,
    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card__stats {
        border-color: var(--fi-border-soft) !important;
    }

    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card__stat + .client-task-card__stat {
        border-color: var(--fi-border-soft) !important;
    }

    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card .client-task-card__stat {
        border-color: var(--fi-border) !important;
        color: var(--fi-text-secondary);
        background: var(--fi-bg-soft);
    }

    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card .client-task-card__stat strong {
        color: var(--fi-text);
    }

    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card .client-task-card__stat small {
        color: var(--fi-text-muted);
    }

    html[data-theme="dark"] .client-tasks-order-table
        .client-task-card .client-task-card__stat-value {
        border-left-color: var(--fi-border);
    }
}

html[data-theme="dark"] .client-task-card__kicker span {
    border-color: transparent;
    color: var(--fi-text-secondary);
    background: transparent;
}

@media (max-width: 991.98px) {
    html[data-theme="dark"] .client-tasks-table {
        border: 0;
        background: transparent;
    }
}

html[data-theme="dark"] .client-tasks-action {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-tasks-action:hover,
html[data-theme="dark"] .client-tasks-action:focus {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .client-tasks-reserve-modal.swal2-container {
    background: rgba(4, 7, 9, .72);
}

html[data-theme="dark"] .client-tasks-reserve-modal__popup.swal2-popup {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .client-tasks-reserve-modal__title.swal2-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-tasks-top-up-swal,
html[data-theme="dark"] .client-tasks-top-up-swal p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-tasks-top-up-total {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .client-tasks-reserve-modal__input.swal2-input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b !important;
    box-shadow: none;
    color-scheme: dark;
}

html[data-theme="dark"] .client-tasks-reserve-modal__input.swal2-input:focus {
    border-color: #319567;
    box-shadow: 0 0 0 3px rgba(49, 149, 103, .16);
}

html[data-theme="dark"] .client-tasks-reserve-modal__confirm {
    color: #fff;
    background: #23c366;
    box-shadow: none;
}

html[data-theme="dark"] .client-tasks-reserve-modal__confirm:hover,
html[data-theme="dark"] .client-tasks-reserve-modal__confirm:focus {
    background: #1faa59;
}

html[data-theme="dark"] .client-tasks-reserve-modal__cancel {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-tasks-reserve-modal__cancel:hover,
html[data-theme="dark"] .client-tasks-reserve-modal__cancel:focus {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-tasks-reserve-modal__popup
    .swal2-validation-message {
    color: #ff9b9f;
    background: #351d22;
}

html[data-theme="dark"] .client-tasks-reserve-modal__popup
    .swal2-validation-message::before {
    background: #ef4444;
}

@media (max-width: 767.98px) {
    html[data-theme="dark"] .client-tasks-reserve-modal__popup.swal2-popup {
        border-bottom: 0;
        box-shadow: 0 -18px 52px rgba(0, 0, 0, .52);
    }
}

html[data-theme="dark"] body:has(.bookmarks-page),
html[data-theme="dark"] .main-block:has(> .main-container > .bookmarks-page) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .bookmarks-page) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .bookmarks-page {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .bookmarks-page__header {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .bookmarks-page__title {
    color: var(--fi-text);
}

html[data-theme="dark"] .bookmarks-tabs__item {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .bookmarks-tabs__item:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .bookmarks-tabs__item.active {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .bookmarks-tabs__count {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .bookmarks-tabs__item.active .bookmarks-tabs__count {
    color: #187a49;
    background: #fff;
}

html[data-theme="dark"] :is(.bookmarks-service-card.ad-container, .bookmarks-seller-card, .bookmarks-empty) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .bookmarks-service-card:hover,
html[data-theme="dark"] .bookmarks-seller-card:hover {
    border-color: #48515a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .bookmarks-service-card__image,
html[data-theme="dark"] .bookmarks-service-card__image-inner {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] :is(.bookmarks-service-card__title a, .bookmarks-service-card .freelancer-username, .bookmarks-seller-card__name, .bookmarks-empty__title) {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(.bookmarks-seller-card__username, .bookmarks-empty__text, .bookmarks-service-card .rating-text, .bookmarks-service-card .service-price-text) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .bookmarks-service-card__data {
    border-top-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .bookmarks-service-card .service-price-num {
    color: var(--fi-text);
}

html[data-theme="dark"] .bookmarks-remove {
    border-color: var(--fi-border);
    color: #ff858a;
    background: rgba(24, 27, 31, .9);
}

html[data-theme="dark"] .bookmarks-empty__icon {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest {
    --order-bg: var(--fi-bg);
    --order-card: var(--fi-surface-raised);
    --order-border: var(--fi-border);
    --order-border-soft: var(--fi-border);
    --order-text: var(--fi-text);
    --order-muted: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .order-track-digest__header {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .order-track-digest__heading h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .order-track-digest__heading p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-back-link {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-back-link:hover {
    border-color: #435263;
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-arbitration-button {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-arbitration-button:hover {
    border-color: #435263;
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-arbitration-button.is-open {
    border-color: rgba(245, 158, 11, .3);
    color: #f0b45e;
    background: rgba(245, 158, 11, .1);
}

html[data-theme="dark"] .order-track-digest :is(
    .header-note,
    .order-status-info-block,
    .orders-table-block,
    .order-chat,
    .order-status-block,
    .order-help-block,
    .order-note-block,
    .order-section-block,
    .order-actions-block
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .orders-table-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .order-track-digest .orders-table-block :is(
    .order-header,
    .my-orders,
    .order-badges-row
) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .order-track-digest .orders-table-block .order-img-container {
    border: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .orders-table-block :is(
    .order-header h2,
    .order-header h2 a,
    .orders-table-row,
    .regular-basis-question,
    .regular-basis-step,
    .fiwork-order-summary-description h3,
    .fiwork-order-description
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .orders-table-block :is(
    .my-orders-breadcrumbs,
    .order-time
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .orders-table-block .my-orders-breadcrumbs :is(a, span:last-child),
html[data-theme="dark"] .order-track-digest .orders-table-block .table-cell-order-name {
    color: #73b9f5;
}

html[data-theme="dark"] .order-track-digest .orders-table-header {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .orders-table-block .price-cell {
    color: #23c366;
}

html[data-theme="dark"] .order-track-digest .orders-table-row {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .orders-table-row:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-summary-details {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .regular-basis-offer {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .order-track-digest .orders-table-block :is(
    .arrow-right-gray,
    .arrow-down-blue
) {
    filter: brightness(0) saturate(100%) invert(72%) sepia(8%) saturate(414%) hue-rotate(172deg) brightness(94%);
}

html[data-theme="dark"] .order-track-digest .orders-table-block svg.arrow-right-gray {
    color: var(--fi-text-muted);
    filter: none;
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar :is(
    .order-status-block,
    .order-help-block
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar :is(
    .order-status-title,
    .sidebar-block-title,
    .help-header,
    .help-content,
    .order-seller-details,
    .countdown-container
) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar :is(
    .order-status-title,
    .sidebar-block-title,
    .help-header-string,
    .help-content h3,
    .help-content p,
    .seller-name,
    .seller-username,
    .step-text,
    .countdown-container label,
    .countdown .divider,
    .order-price-value,
    .order-rejection-time-value
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar :is(
    .order-status,
    .order-price,
    .order-auto-rejection,
    .order-delivery,
    .order-revision,
    .order-seller-info,
    .offline-time,
    .additional-help,
    .bloc-time .count-title
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .seller-img-container {
    border: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .step:not(:last-child)::before {
    background: var(--fi-border);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .step-icon {
    border-color: var(--fi-border);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .step.completed:not(:last-child)::before,
html[data-theme="dark"] .order-track-digest .order-track-sidebar .step.completed .step-icon {
    border-color: var(--order-green-step);
    background: var(--order-green-step);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .step.active .step-icon {
    border-color: var(--order-green-step);
    background: rgba(132, 183, 71, .14);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .figure {
    box-shadow: 0 5px 12px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .figure span {
    color: #f5f7fa;
    background: #111418;
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .sidebar-help-chevron {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .order-track-sidebar .order-help-block:hover .sidebar-help-chevron {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .date-chat-value {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .date-chat .horizontal-line {
    background: var(--fi-border);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list :is(
    .order-message-header,
    .message-text-container p,
    .fiwork-order-chat-file-name,
    .fiwork-order-chat-video-link
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list :is(
    .order-message-time,
    .fiwork-order-chat-file-size,
    .fiwork-order-chat-video-link span
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list .message-text-container {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list :is(
    .fiwork-order-chat-file-link,
    .fiwork-order-chat-archive-link,
    .fiwork-order-chat-empty
) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list :is(
    .fiwork-order-chat-file-link,
    .fiwork-order-chat-archive-link
):hover {
    border-color: #435263;
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list .fiwork-order-chat-file-badge {
    color: #8fc5f4;
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list .fiwork-order-chat-file-thumb,
html[data-theme="dark"] .order-track-digest .fiwork-order-chat-list .fiwork-order-chat-video {
    border-color: var(--fi-border);
    background: #111418;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-history-toggle {
    border-color: rgba(33, 150, 243, .28);
    color: #73b9f5;
    background: rgba(33, 150, 243, .1);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-history-toggle:hover {
    border-color: rgba(33, 150, 243, .42);
    color: #9bcdf7;
    background: rgba(33, 150, 243, .16);
}

html[data-theme="dark"] .order-track-digest .message-to-customer {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .message-to-customer-input-container {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-client-instruction-prompt {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-client-instruction-prompt p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-client-instruction-prompt {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-client-instruction-prompt p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-client-instruction-button {
    border-color: #23c366;
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-client-instruction-button:hover {
    border-color: #20ad5c;
    background: #20ad5c;
}

html[data-theme="dark"] .order-track-digest .message-to-customer-input {
    color: var(--fi-text);
    caret-color: #73b9f5;
    background: transparent;
}

html[data-theme="dark"] .order-track-digest .message-to-customer-input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .message-to-customer-help {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .message-to-customer :is(
    .order-chat-icon-button,
    .cp-button,
    .send-message-button
) {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .message-to-customer :is(
    .order-chat-icon-button,
    .cp-button,
    .send-message-button
):hover,
html[data-theme="dark"] .order-track-digest .message-to-customer :is(
    .cp-button.is-open,
    .send-message-button.active
) {
    color: #8fc5f4;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-toolbar-note {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-files {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-files-label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-file-pill {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-file-pill-type {
    color: #9bcdf7;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-file-pill-preview {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-file-pill.has-error {
    border-color: rgba(247, 90, 90, .42);
    color: #ff9a9a;
    background: rgba(247, 90, 90, .1);
}

html[data-theme="dark"] .order-track-digest .message-to-customer :is(
    .fiwork-order-chat-file-pill-size,
    .fiwork-order-chat-files-hint,
    .fiwork-order-chat-file-pill-remove
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-file-pill-remove:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .stickers-container {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .stickers-container h3 {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .message-to-customer .fiwork-order-chat-upload-loader {
    color: #8fc5f4;
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .order-track-digest .message-text-container {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .order-track-digest .message-text-container :is(
    p,
    span,
    strong,
    b
) {
    color: inherit;
}

html[data-theme="dark"] .order-track-digest .message-text-container a {
    color: #73b9f5;
}

html[data-theme="dark"] .order-track-digest .message-text-container a:hover {
    color: #9bcdf7;
}

html[data-theme="dark"] .order-track-digest .simple-message-container.is-failed .message-text-container {
    border-color: rgba(247, 90, 90, .45) !important;
    color: #ffb0b0;
    background: rgba(247, 90, 90, .08) !important;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card {
    border-color: rgba(35, 195, 102, .28);
    color: var(--fi-text);
    background: rgba(35, 195, 102, .08);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card-sender {
    color: #65d994;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card-text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card-files-title {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card-text a {
    color: #73b9f5;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-card-text a:hover {
    color: #9bcdf7;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-seller-note {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-seller-note :is(
    strong,
    b
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-instruction-seller-note a {
    color: #73b9f5;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-title {
    border-bottom-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-title:hover,
html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-title:focus-visible {
    color: #8fc5f4;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-body {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary) !important;
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-body :is(
    h3,
    h4,
    strong,
    b
) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-body :is(
    p,
    span,
    li,
    small
) {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-more-work-body a {
    color: #73b9f5 !important;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected {
    border-color: rgba(247, 90, 90, .34);
    color: var(--fi-text);
    background: rgba(247, 90, 90, .08);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected
    .fiwork-order-extra-options-card-title,
html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected
    .fiwork-order-extra-options-item-title,
html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected
    .fiwork-order-extra-options-summary strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected :is(
    .fiwork-order-extra-options-card-subtitle,
    .fiwork-order-extra-options-info,
    .fiwork-order-extra-options-item-meta,
    .fiwork-order-extra-options-summary-line
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected
    .fiwork-order-extra-options-badge.is-rejected {
    color: #ffaaaa;
    background: rgba(247, 90, 90, .16);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected
    .fiwork-order-extra-options-item {
    border-color: rgba(247, 90, 90, .2);
    background: rgba(18, 21, 25, .54);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-rejected a {
    color: #8fc5f4;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-empty {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-empty :is(
    strong,
    b
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-chat-empty a {
    color: #73b9f5;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted {
    border-color: rgba(35, 195, 102, .32);
    color: var(--fi-text);
    background: rgba(35, 195, 102, .08);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted
    .fiwork-order-extra-options-card-title,
html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted
    .fiwork-order-extra-options-item-title,
html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted
    .fiwork-order-extra-options-summary strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted :is(
    .fiwork-order-extra-options-card-subtitle,
    .fiwork-order-extra-options-info,
    .fiwork-order-extra-options-item-meta,
    .fiwork-order-extra-options-summary-line
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted
    .fiwork-order-extra-options-badge.is-accepted {
    color: #78e3a5;
    background: rgba(35, 195, 102, .16);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted
    .fiwork-order-extra-options-item {
    border-color: rgba(35, 195, 102, .2);
    background: rgba(18, 21, 25, .54);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-extra-options-card.is-accepted a {
    color: #8fc5f4;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-card {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest :is(
    .fiwork-order-submitted-files-title,
    .fiwork-order-submitted-autocheck
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-autocheck span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-card .fiwork-order-chat-link {
    color: #73b9f5;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-card .fiwork-order-chat-link:hover {
    color: #9bcdf7;
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-actions .btn-outline-1 {
    border-color: rgba(115, 185, 245, .42);
    color: #8fc5f4;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .fiwork-order-submitted-actions .btn-outline-1:hover {
    border-color: #73b9f5;
    color: #acd8fb;
    background: rgba(33, 150, 243, .14);
    box-shadow: none;
}

html[data-theme="dark"] .order-track-digest .order-status-info-content {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .order-status-info-content h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .order-track-digest .order-status-info-content p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .order-track-digest .order-status-info-content .vertical-line {
    background: #d89436;
}

html[data-theme="dark"] .order-track-digest .order-status-info-content .block-inwork-info {
    border-color: rgba(216, 148, 54, .3);
    color: #e8bb7c;
    background: rgba(216, 148, 54, .1);
}

html[data-theme="dark"] .order-track-digest .order-status-info-content .btn-outline-1 {
    border-color: rgba(115, 185, 245, .42);
    color: #8fc5f4;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .order-track-digest .order-status-info-content .btn-outline-gray {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .add-task-modal-window-container {
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(5px);
}

html[data-theme="dark"] .add-task-modal-window {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .46);
}

html[data-theme="dark"] .add-task-modal-window .add-task-modal-header {
    border-bottom: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] .add-task-modal-window .add-task-modal-header h2,
html[data-theme="dark"] .add-task-modal-window-content .tasks-container h3,
html[data-theme="dark"] .task-current-period-container :is(
    .task-current-period label,
    .add-task-period label
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .add-task-modal-window-content,
html[data-theme="dark"] .add-task-modal-window-footer {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .add-task-modal-window-content .attention-container p,
html[data-theme="dark"] .add-task-modal-window-content .tasks-container .tip {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .add-task-modal-window-content .tasks-container,
html[data-theme="dark"] .task-current-period-container {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .add-task-modal-window-content :is(
    .task-name-input-container,
    .task-price-input-section,
    .add-task-period-container
) {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .add-task-modal-window-content :is(
    .task-name-input,
    .task-price-input,
    .select-task-period
) {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .add-task-modal-window-content :is(
    .task-name-input,
    .task-price-input
)::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .add-task-modal-window-content :is(
    .task-number,
    .task-name-input-length,
    .select-task-period
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .add-task-period .add-task-period-container::after {
    border-color: var(--fi-text-muted);
}

html[data-theme="dark"] .task-current-period-container .task-current-period-value {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .add-task-modal-window-content .task-remove-button:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .add-task-modal-window-content .tasks-container .add-task-button {
    color: #55d88c;
}

html[data-theme="dark"] .add-task-modal-window-footer .cancel-button {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .add-task-modal-window-footer .cancel-button:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .add-task-modal-window-footer .save-button {
    border-color: #23c366;
    color: #55d88c;
    background: transparent;
}

html[data-theme="dark"] .add-task-modal-window-footer .save-button:hover {
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .add-task-modal-window-footer .add-and-pay-button {
    border-color: #23c366;
    background: #23c366;
    color: #fff;
}

html[data-theme="dark"] .add-task-modal-window :is(
    .close-add-task-modal-window,
    .clock-icon
) {
    filter: brightness(0) saturate(100%) invert(73%) sepia(7%) saturate(349%) hue-rotate(169deg) brightness(91%);
}

html[data-theme="dark"] .add-task-modal-window .task-price-currency {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .add-task-modal-window .task-price-input-section.empty .task-price-currency {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .add-task-modal-window :is(
    .circular-close-icon,
    .task-remove-button svg
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .add-task-modal-window :is(
    .circular-close-icon,
    .task-remove-button svg
):hover {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-order-instruction-modal {
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(5px);
}

html[data-theme="dark"] .fiwork-order-instruction-modal-content {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .46);
}

html[data-theme="dark"] .fiwork-order-instruction-modal-header,
html[data-theme="dark"] .fiwork-order-instruction-modal-footer {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .fiwork-order-instruction-modal-header h3,
html[data-theme="dark"] .fiwork-order-instruction-field label,
html[data-theme="dark"] .fiwork-order-requirements-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-order-instruction-modal-close::before,
html[data-theme="dark"] .fiwork-order-instruction-modal-close::after {
    background: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-order-instruction-modal-close:hover::before,
html[data-theme="dark"] .fiwork-order-instruction-modal-close:hover::after {
    background: var(--fi-text);
}

html[data-theme="dark"] .fiwork-order-instruction-modal-body {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .fiwork-order-instruction-info {
    border: 1px solid rgba(33, 150, 243, .22);
    color: var(--fi-text-secondary);
    background: rgba(33, 150, 243, .08);
}

html[data-theme="dark"] .fiwork-order-requirements-card {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-order-requirements-content :is(
    p,
    li,
    span
) {
    color: inherit;
}

html[data-theme="dark"] .fiwork-order-requirements-toggle,
html[data-theme="dark"] .fiwork-order-instruction-upload-button {
    color: #73b9f5;
}

html[data-theme="dark"] .fiwork-order-instruction-upload-icon {
    color: #73b9f5;
}

html[data-theme="dark"] .fiwork-order-instruction-field textarea {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
    caret-color: #73b9f5;
}

html[data-theme="dark"] .fiwork-order-instruction-field textarea::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-order-instruction-field textarea:focus {
    border-color: #4ca8f2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .fiwork-order-instruction-counter,
html[data-theme="dark"] .fiwork-order-instruction-upload-hint {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-order-instruction-file-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-order-instruction-file-type {
    color: #9bcdf7;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .fiwork-order-instruction-file-preview {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-order-instruction-file-name {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-order-instruction-file-copy small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-order-instruction-file-card button {
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] .fiwork-order-instruction-file-card button:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-order-instruction-submit {
    border-color: #23c366;
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .fiwork-order-instruction-submit:hover {
    border-color: #20ad5c;
    background: #20ad5c;
}

html[data-theme="dark"] #orderArbitrationModal.fiwork-order-arbitration-modal.show {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-window {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-close {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-close:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-featured-icon {
    color: #f0b45e;
    background: rgba(245, 158, 11, .12);
    box-shadow: inset 0 0 0 8px rgba(245, 158, 11, .06);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-featured-icon img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(72%) saturate(555%) hue-rotate(346deg) brightness(100%);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-header h2,
html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-field span {
    color: var(--fi-text);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-header p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-fields {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #orderArbitrationModal :is(
    .fiwork-order-arbitration-field select,
    .fiwork-order-arbitration-field textarea
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    caret-color: #f0b45e;
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-field textarea::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #orderArbitrationModal :is(
    .fiwork-order-arbitration-field select,
    .fiwork-order-arbitration-field textarea
):focus {
    border-color: #d89436;
    box-shadow: 0 0 0 3px rgba(216, 148, 54, .14);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-cancel {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-cancel:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-submit {
    border-color: #d89436;
    color: #fff;
    background: #d89436;
}

html[data-theme="dark"] #orderArbitrationModal .fiwork-order-arbitration-submit:hover {
    border-color: #bd7d29;
    background: #bd7d29;
}

html[data-theme="dark"] .manage-orders-digest .order-search {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .manage-orders-digest .order-search h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .manage-orders-digest .order-search-field {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .manage-orders-digest .order-search-field input {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .manage-orders-digest .order-search-field input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .manage-orders-digest .order-filter-count {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-theme="dark"] .manage-orders-digest .order-list-toolbar {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .manage-orders-digest
    .order-filter-count .order-filter-option {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .manage-orders-digest
    .order-filter-count .order-filter-option:hover {
    border-color: #48515a !important;
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .manage-orders-digest
    .order-filter-count .order-filter-option .count {
    color: var(--fi-text-secondary) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .manage-orders-digest
    .order-filter-count .order-filter-option.selected {
    border-color: #285b42 !important;
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] .manage-orders-digest
    .order-filter-count .order-filter-option.selected .count {
    color: #fff !important;
    background: #24975d !important;
}

html[data-theme="dark"] .manage-orders-digest
    :is(.order-in-block, .order-in-table-wrapper, .order-in-table, .table-body, .search_result) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .manage-orders-digest .order-in-table .table-header {
    border-bottom-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .table-header > div {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .manage-orders-digest .order-in-table .table-row {
    border-bottom-color: var(--fi-border-soft);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .manage-orders-digest .order-in-table .table-row:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .table-row .table-cell,
html[data-theme="dark"] .manage-orders-digest
    .order-in-table :is(.order-title, .customer-name) {
    color: var(--fi-text);
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .order-status .order-status-link {
    border-color: #294c69;
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .order-status .order-status-link:hover {
    border-color: #37698f;
    color: #a6d3f8;
    background: #1c3448;
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .order-status .accept_and_change_order_status {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .order-status .accept_and_change_order_status:hover {
    border-color: #367a58;
    color: #8ee4b4;
    background: #1c422f;
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .order-status .order-status-link--danger {
    border-color: #67333d;
    color: #ff858a;
    background: #371d23;
}

html[data-theme="dark"] .manage-orders-digest
    .order-in-table .order-status .order-status-link--danger:hover {
    border-color: #884452;
    color: #ffabb0;
    background: #48252d;
}

html[data-theme="dark"] .manage-orders-digest .orders-pagination {
    border-top-color: var(--fi-border);
    background: transparent !important;
}

html[data-theme="dark"] .manage-orders-digest
    .orders-pagination .page-link {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .manage-orders-digest
    .orders-pagination .page-link:hover,
html[data-theme="dark"] .manage-orders-digest
    .orders-pagination .page-link:focus-visible {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .manage-orders-digest
    .orders-pagination .page-item.active .page-link {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .manage-orders-digest
    .orders-pagination .page-item.disabled .page-link {
    border-color: var(--fi-border-soft);
    color: var(--fi-text-muted);
    background: var(--fi-surface);
}

html[data-theme="dark"] .manage-orders-digest.reviews-page .reviews-page-subtitle,
html[data-theme="dark"] .manage-orders-digest.reviews-page .review-date {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .manage-orders-digest.reviews-page .review-feedback,
html[data-theme="dark"] .manage-orders-digest.reviews-page .review-mobile-feedback-text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .manage-orders-digest.reviews-page
    :is(.review-feedback-empty, .review-mobile-feedback-label) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .manage-orders-digest.reviews-page
    .review-rating-pill.is-positive {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .manage-orders-digest.reviews-page
    .review-rating-pill.is-negative {
    color: #ff8f9b;
    background: rgba(225, 72, 89, .14);
}

/* Orders-style analytics dashboard. */
html[data-theme="dark"] .analytics-page {
    --analytics-text: var(--fi-text);
    --analytics-muted: var(--fi-text-secondary);
    --analytics-border: var(--fi-border);
    --analytics-soft: var(--fi-bg-soft);
    --analytics-blue: #69b7ff;
    --analytics-green: #56cf84;
    --analytics-red: #ff7f8a;
    --analytics-yellow: #f4b95e;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .analytics-page .analytics-header {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .analytics-page .analytics-header h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .analytics-page .analytics-hero {
    border-color: rgba(105, 183, 255, .27);
    background: linear-gradient(135deg, rgba(33, 150, 243, .14), rgba(35, 195, 102, .08) 50%, var(--fi-surface-raised) 100%);
}

html[data-theme="dark"] .analytics-page .analytics-eyebrow {
    color: #8bc8ff;
    background: rgba(33, 150, 243, .16);
}

html[data-theme="dark"] .analytics-page .analytics-hero__signals span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: rgba(21, 24, 27, .72);
}

html[data-theme="dark"] .analytics-page .analytics-hero__signals b,
html[data-theme="dark"] .analytics-page :is(
    .analytics-score-card h3,
    .analytics-card strong,
    .analytics-panel h2,
    .analytics-donut-values b,
    .analytics-donut strong,
    .analytics-insight strong,
    .analytics-progress__caption b,
    .analytics-progress__bar strong,
    .analytics-total__grid strong
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .analytics-page .analytics-score-card {
    border-color: rgba(105, 183, 255, .24);
    background: rgba(26, 29, 32, .88);
}

html[data-theme="dark"] .analytics-page .analytics-score {
    background: conic-gradient(var(--analytics-blue) calc(var(--score) * 1%), var(--fi-border) 0);
}

html[data-theme="dark"] .analytics-page .analytics-score::after,
html[data-theme="dark"] .analytics-page .analytics-donut::after {
    background: var(--fi-surface);
}

html[data-theme="dark"] .analytics-page :is(
    .analytics-card,
    .analytics-panel,
    .analytics-insight,
    .analytics-progress__item,
    .analytics-total
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .analytics-page .analytics-card--primary {
    border-color: rgba(105, 183, 255, .34);
    background: linear-gradient(135deg, rgba(33, 150, 243, .14), var(--fi-surface-raised) 64%);
}

html[data-theme="dark"] .analytics-page .analytics-line-chart {
    border: 1px solid var(--fi-border-soft);
    background: linear-gradient(180deg, var(--fi-bg-soft), var(--fi-surface));
}

html[data-theme="dark"] .analytics-page .analytics-line-chart__grid {
    stroke: rgba(179, 186, 194, .22);
}

html[data-theme="dark"] .analytics-page .analytics-line-chart__axis {
    stroke: rgba(179, 186, 194, .45);
}

html[data-theme="dark"] .analytics-page .analytics-line-chart__point {
    fill: var(--fi-surface);
}

html[data-theme="dark"] .analytics-page .analytics-chart-tooltip {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: rgba(32, 36, 40, .97);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .analytics-page .analytics-chart-tooltip strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .analytics-page .analytics-bars span {
    background: var(--fi-border);
}

html[data-theme="dark"] .analytics-page .analytics-bars span.has-value {
    background: color-mix(in srgb, var(--chart-accent) 72%, var(--fi-surface));
}

html[data-theme="dark"] .analytics-page .analytics-donut {
    background: conic-gradient(var(--donut-color) calc(var(--value) * 1%), var(--fi-border) 0);
}

html[data-theme="dark"] .analytics-page .analytics-donut-values span {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] .analytics-page .analytics-progress__bar {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .analytics-page .analytics-total {
    background: linear-gradient(135deg, rgba(33, 150, 243, .11), var(--fi-surface-raised));
}

html[data-theme="dark"] .analytics-page .analytics-total__grid article {
    border-color: var(--fi-border);
    background: rgba(21, 24, 27, .72);
}

html[data-theme="dark"] .analytics-page .is-good {
    color: #72d990 !important;
}

html[data-theme="dark"] .analytics-page > .analytics-footer {
    background: transparent !important;
    background-color: transparent !important;
}

/* Orders-style wallet page. */
html[data-theme="dark"] .wallet-page {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .wallet-page .wallet-page-header {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .wallet-page .wallet-page-header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .wallet-page .wallet-page-header p,
html[data-theme="dark"] .wallet-page .wallet-summary-card__label,
html[data-theme="dark"] .wallet-page .wallet-summary-card small,
html[data-theme="dark"] .wallet-page .operations-table-header p,
html[data-theme="dark"] .wallet-page .cash-payment p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .wallet-page .wallet-summary-card {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .wallet-page .wallet-summary-card--balance {
    border-color: rgba(86, 207, 132, .34);
    background: linear-gradient(135deg, rgba(35, 195, 102, .13), var(--fi-surface-raised) 66%);
}

html[data-theme="dark"] .wallet-page .wallet-summary-card::before {
    background: rgba(86, 207, 132, .08);
}

html[data-theme="dark"] .wallet-page .wallet-summary-card strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .wallet-page .fill-get-money-container .fill-balance {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .wallet-page .fill-get-money-container .fill-balance:hover {
    border-color: #2cab6b;
    background: #2cab6b;
}

html[data-theme="dark"] .wallet-page .fill-get-money-container .get-money {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .wallet-page
    .fill-get-money-container .get-money:hover:not(.is-disabled) {
    border-color: #454c53;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .wallet-page
    .fill-get-money-container .get-money .send-message-icon {
    filter: brightness(0) invert(.85);
}

html[data-theme="dark"] .wallet-page .cash-payment {
    border-color: rgba(105, 183, 255, .24);
    background: rgba(33, 150, 243, .08);
}

html[data-theme="dark"] .wallet-page .cash-payment h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .wallet-page .operations-table-wrapper {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .wallet-page .operations-table-header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .wallet-page .operations-search-block .search-input-block {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .wallet-page .operations-search-block .search-icon {
    filter: brightness(0) invert(.68);
}

html[data-theme="dark"] .wallet-page .operations-search-block input {
    color: var(--fi-text);
}

html[data-theme="dark"] .wallet-page .operations-search-block input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .wallet-page .report-input-block .download-report {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .wallet-page .report-input-block .download-report:hover,
html[data-theme="dark"] .wallet-page .report-input-block .download-report:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .wallet-page .operations-in-stock-table {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .wallet-page .operations-in-stock-table .table-header {
    border-bottom-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .table-header div {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .wallet-page .operations-in-stock-table .table-row,
html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .table-row:nth-child(2n) {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .wallet-page .operations-in-stock-table .table-row:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .description-cell .purse-history-link {
    color: #7cbdff;
}

html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .table-row .done {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .table-row :is(.in-process, .pickup-complete) {
    color: #7cbdff;
    background: rgba(33, 150, 243, .13);
}

html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .table-row .unassigned {
    color: #f4b95e;
    background: rgba(242, 169, 59, .13);
}

html[data-theme="dark"] .wallet-page
    .operations-in-stock-table .table-row .is-cancelled {
    color: #ff8f9b;
    background: rgba(225, 72, 89, .14);
}

html[data-theme="dark"] .wallet-page .amount-positive {
    color: #72d990;
}

html[data-theme="dark"] .wallet-page .amount-negative {
    color: #ff8f9b;
}

html[data-theme="dark"] .wallet-page .deposit-history-pagination .page-link {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .wallet-page
    .deposit-history-pagination .page-link:hover,
html[data-theme="dark"] .wallet-page
    .deposit-history-pagination .page-link:focus-visible {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .wallet-page
    .deposit-history-pagination .page-item.active .page-link {
    border-color: #24975d;
    color: #fff;
    background: #24975d;
}

html[data-theme="dark"] .wallet-page
    .deposit-history-pagination .page-item.disabled .page-link {
    border-color: var(--fi-border-soft);
    color: var(--fi-text-muted);
    background: var(--fi-surface);
}

html[data-theme="dark"] .earn-choice-modal {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-choice-modal__backdrop {
    background: rgba(4, 6, 8, .76);
}

html[data-theme="dark"] .earn-choice-modal__dialog {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}

html[data-theme="dark"] .earn-choice-modal__close {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .earn-choice-modal__close:hover {
    background: #30363c !important;
}

html[data-theme="dark"] .earn-choice-modal__close::before,
html[data-theme="dark"] .earn-choice-modal__close::after {
    background: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-choice-modal__kicker {
    color: #69d39a;
}

html[data-theme="dark"] .earn-choice-modal__head h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-choice-modal__head p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-choice-modal .earn-choice-option {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .earn-choice-modal .earn-choice-option:hover,
html[data-theme="dark"] .earn-choice-modal .earn-choice-option:focus-visible {
    border-color: #367a58 !important;
    color: var(--fi-text);
    background: var(--fi-surface-hover) !important;
    outline: 0;
}

html[data-theme="dark"] .earn-choice-modal .earn-choice-option strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-choice-modal .earn-choice-option small {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-choice-modal
    .earn-choice-option__icon.is-blue {
    color: #73b9f5;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .earn-choice-modal
    .earn-choice-option__icon.is-green {
    color: #69d39a;
    background: rgba(35, 195, 102, .14);
}

html[data-theme="dark"] .earn-choice-modal
    .earn-choice-option__icon.is-yellow {
    color: #f2b268;
    background: rgba(245, 158, 11, .14);
}

html[data-theme="dark"] .earn-choice-modal
    .earn-choice-option__icon.is-red {
    color: #ff858a;
    background: rgba(255, 77, 79, .13);
}

html[data-theme="dark"] .earn-choice-modal .earn-choice-remember {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-choice-modal .earn-choice-remember input {
    color-scheme: dark;
}

html[data-theme="dark"] body.fiwork-page-earn {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .vacancy-intent-bar__inner {
    border-color: var(--fi-border);
    background: rgba(26, 29, 32, .94);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .vacancy-intent-switch a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .vacancy-intent-switch a:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .vacancy-intent-switch a.is-active {
    color: #fff;
    background: #2196f3;
}

html[data-theme="dark"] .vacancy-region-switcher > summary {
    color: var(--fi-text);
}

html[data-theme="dark"] .vacancy-region-switcher > summary:hover,
html[data-theme="dark"] .vacancy-region-switcher[open] > summary {
    color: #fff;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .vacancy-region-switcher__menu,
html[data-theme="dark"] .vacancy-region-confirmation {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .vacancy-region-confirmation::before {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .vacancy-region-switcher__menu > strong,
html[data-theme="dark"] .vacancy-region-confirmation > strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .vacancy-region-switcher__menu > div > a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .vacancy-region-switcher__menu > div > a:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .vacancy-region-switcher__menu > div > a.is-active {
    color: #69bdfd;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .vacancy-region-switcher__search {
    border-color: var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .vacancy-region-switcher__search input {
    color: var(--fi-text);
}

html[data-theme="dark"] .vacancy-region-confirmation button {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .vacancy-region-confirmation button.is-primary {
    border-color: #2196f3;
    color: #fff;
    background: #2196f3;
}

html[data-theme="dark"]
    .main-block:has(> .main-container > .earn-section-digest) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"]
    .main-container:has(> .earn-section-digest) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .earn-section-digest.freelancer-proposals-page {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-head:not(.vacancy-market-head) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-head.vacancy-market-head {
    border-color: rgba(0, 0, 0, .48) !important;
    box-shadow:
        inset 1px 0 rgba(0, 0, 0, .42),
        0 10px 30px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-head.vacancy-market-head::after {
    opacity: 1;
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head .freelancer-proposals-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head.vacancy-market-head .freelancer-proposals-title {
    color: #fff;
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head-copy > p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head.vacancy-market-head .freelancer-proposals-head-copy > p {
    color: rgba(255, 255, 255, .72);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head .vacancy-head-action--resume {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head .vacancy-head-action--resume:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head.vacancy-market-head .vacancy-head-action--resume {
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head.vacancy-market-head .vacancy-head-action--resume:hover {
    border-color: rgba(255, 255, 255, .62);
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head .freelancer-proposals-my-link {
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .earn-section-digest
    .freelancer-proposals-head .freelancer-proposals-my-link:hover {
    color: #fff;
    background: #1fad5b;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .earn-section-digest .simple-tasks-head {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: none;
}

html[data-theme="dark"] .earn-section-digest .simple-tasks-head h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .simple-tasks-head p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-connects {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-connects-head {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-market-connects-head strong,
    .jobs-market-connects-date strong
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-connects-bar {
    background: #343a40;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-connects-bar span {
    background: #2196f3;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-connects-date {
    border-left-color: var(--fi-border);
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-menu {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-button {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-button span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-button strong {
    color: #73b9f5;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-button::after {
    border-color: #73b9f5;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-dropdown {
    border-color: var(--fi-border) !important;
    background: var(--fi-surface-raised);
    box-shadow: var(--fi-shadow);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-dropdown button {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-view-dropdown
    button:is(.active, :hover, :focus-visible) {
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-market-layout,
    .jobs-market-content,
    .search_job_result,
    .jobs-market-list
) {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .jobs-market-page .freelancer-proposals-tabs {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .jobs-market-page .freelancer-proposals-tab {
    border-color: transparent;
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .jobs-market-page .freelancer-proposals-tab:hover {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .jobs-market-page .freelancer-proposals-tab.active {
    border-color: rgba(35, 195, 102, .25);
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .jobs-market-page
    .freelancer-proposals-tab__icon {
    color: #f5b642;
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-market-left-rail,
    .jobs-market-left
) {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-filter-panel,
    .jobs-market-stats
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .jobs-market-page .jobs-filter-section {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-filter-title,
    .jobs-market-stats strong
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .jobs-market-page .jobs-filter-switch {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .jobs-market-page .jobs-filter-switch span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page
    .jobs-filter-switch input:checked + span {
    color: #69d39a;
    background: var(--fi-surface-hover);
    box-shadow: none;
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-filter-rubric,
    .jobs-filter-check
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-filter-rubric:hover,
    .jobs-filter-rubric.active,
    .jobs-filter-more:hover,
    .jobs-filter-reset:hover
) {
    color: #69d39a;
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-filter-rubric em,
    .jobs-filter-check em
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page .jobs-filter-input {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .jobs-market-page .jobs-filter-input:focus {
    border-color: #4d91c7 !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .12) !important;
}

html[data-theme="dark"] .jobs-market-page
    .jobs-filter-input-clear::before,
html[data-theme="dark"] .jobs-market-page
    .jobs-filter-input-clear::after {
    background: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page :is(
    .jobs-filter-more,
    .jobs-filter-reset
) {
    color: #73b9f5;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-stats div {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page
    .jobs-market-stats div span:last-child {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-stats {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised) !important;
    box-shadow: none;
}

html[data-theme="dark"] .jobs-market-page .jobs-market-stats-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-stats-title svg {
    border: 1px solid var(--fi-border);
    border-radius: 10px;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .jobs-market-page
    .jobs-market-stats > div > span:first-child {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page
    .jobs-market-stats > div > span:last-child {
    color: var(--fi-text);
    font-weight: 700;
}

@media (max-width: 899.98px) {
    html[data-theme="dark"] .jobs-market-page .freelancer-proposals-tabs {
        border-color: transparent !important;
        background: transparent !important;
    }

    html[data-theme="dark"] .jobs-market-page .freelancer-proposals-tab {
        border-color: var(--fi-border);
        background: var(--fi-surface-raised);
    }
}

html[data-theme="dark"] .jobs-market-page .task-card {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .jobs-market-page .task-card:hover {
    border-color: #37698f !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .jobs-market-page .task-card-title a {
    color: #62d981;
}

html[data-theme="dark"] .jobs-market-page .task-card-description {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page .task-card-price {
    border-color: var(--fi-border);
    color: #62d981;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .jobs-market-page .task-card-price :is(span, small) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page .task-card-client-info {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page .task-card-client-info a {
    color: #73b9f5;
}

html[data-theme="dark"] .jobs-market-page .task-card-dot {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page .task-card-tags a {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .jobs-market-page .task-card-tags a:hover {
    border-color: #37698f;
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .jobs-market-page .task-card-meta {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .jobs-market-page .task-card-review-button {
    border-color: #23c366;
    color: #62d981;
    background: transparent;
}

html[data-theme="dark"] .jobs-market-page .task-card-review-button:hover {
    border-color: #62d981;
    color: #7ee29a;
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .jobs-market-page :is(
    .task-card-buttons a.task-card-complaint-button,
    .task-card-complaint-button
) {
    border-color: var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .jobs-market-page :is(
    .task-card-buttons a.task-card-complaint-button:hover,
    .task-card-complaint-button:hover
) {
    border-color: #4b535c;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-empty {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-empty h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .jobs-market-page .jobs-market-empty p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .jobs-market-page .task-card-review-badge--interesting {
    color: #62d981;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .jobs-market-page :is(
    .task-card-review-badge--low-price,
    .task-card-review-badge--rules-violation
) {
    color: #ff8b80;
    background: rgba(247, 74, 87, .13);
}

html[data-theme="dark"] .jobs-market-page
    .task-card-review-badge--unclear-description {
    color: #e8c86a;
    background: rgba(232, 200, 106, .13);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-card, .earn-vacancies-empty) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card:hover {
    border-color: #37698f !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-card h2, .earn-vacancies-empty h2) {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-card p, .earn-vacancies-empty p) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__type {
    color: #73b9f5;
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__requirements,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__reward,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__reward-time,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__reward-action,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__client > a,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__client > span,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__link {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__requirements strong,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__client :is(a, span) span {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__reward-price span,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__link > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__reward-price strong {
    color: #69d39a;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__reward-action:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__footer {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__link a {
    color: #73b9f5;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__verification {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__verification > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__verification > p {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__status.is-muted {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-completion-card {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-completion-card h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(
        .simple-task-completion-card > p,
        .simple-task-completion-card__main > p,
        .simple-task-completion-card__meta span,
        .simple-task-completion-card__proof span
    ) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-completion-card__proof, .simple-task-completion-card__side) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-completion-card__proof strong, .simple-task-completion-card__side strong) {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-completion-card__side strong {
    color: #69d39a;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-completion-card__side :is(span, small) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-completion-card__description-toggle {
    color: #69d39a;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-completion-card__description-toggle:hover {
    color: #8ae4b2;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .client-content-submission__status {
    color: #73b9f5;
    background: rgba(33, 150, 243, .16);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .client-content-submission__status.is-approved {
    color: #69d39a;
    background: rgba(35, 195, 102, .16);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .client-content-submission__status.is-revision {
    color: #f2c66d;
    background: rgba(255, 176, 32, .16);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .client-content-submission__status.is-rejected {
    color: #ff8585;
    background: rgba(229, 73, 73, .16);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .client-content-submission__status:is(.is-expired, .is-canceled) {
    color: var(--fi-text-muted);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-submit textarea, .simple-task-submit__input) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.simple-task-submit textarea, .simple-task-submit__input):focus {
    border-color: #42b978 !important;
    box-shadow: 0 0 0 2px rgba(66, 185, 120, .15);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__file {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__file:hover {
    border-color: #42b978;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    :is(.fiwork-upload-preview, .fiwork-upload-file-preview) {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .fiwork-upload-file-preview {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__current-file-item {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__remove-file {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__remove-file:hover {
    color: #ff8585;
    background: rgba(229, 73, 73, .16);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__deadline {
    border-color: #285c3d;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__review-note {
    border-color: #66552f;
    color: #e8c879;
    background: #332b1c;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-card__review-note :is(span, p) {
    color: inherit;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__cancel {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-content
    .simple-task-submit__cancel:hover {
    color: var(--fi-text) !important;
    background: #353b41 !important;
}

html[data-theme="dark"] .simple-task-cancel-modal {
    color: var(--fi-text);
}

html[data-theme="dark"] .simple-task-cancel-modal__backdrop {
    background: rgba(0, 0, 0, .72);
}

html[data-theme="dark"] .simple-task-cancel-modal__dialog {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .simple-task-cancel-modal__content h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .simple-task-cancel-modal__content p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .simple-task-cancel-modal__close {
    color: var(--fi-text-muted);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .simple-task-cancel-modal__close:hover {
    background: #353b41;
}

html[data-theme="dark"] .simple-task-cancel-modal__close::before,
html[data-theme="dark"] .simple-task-cancel-modal__close::after {
    background: var(--fi-text-muted);
}

html[data-theme="dark"] .simple-task-cancel-modal__icon {
    color: #ff8585;
    background: rgba(229, 73, 73, .16);
}

html[data-theme="dark"] .simple-task-cancel-modal__secondary {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .simple-task-cancel-modal__secondary:hover {
    border-color: var(--fi-border-strong);
    color: var(--fi-text);
    background: #353b41;
}

html[data-theme="dark"] .simple-task-cancel-modal__primary {
    border-color: #e85c5c;
    color: #fff;
    background: #d94a4a;
}

html[data-theme="dark"] .simple-task-cancel-modal__primary:hover {
    border-color: #f06b6b;
    background: #e35656;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter
    :is(input, select) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
    color-scheme: dark;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter
    :is(input, select):hover {
    border-color: var(--fi-border-strong) !important;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter
    :is(input, select):focus {
    border-color: #42b978 !important;
    box-shadow: 0 0 0 2px rgba(66, 185, 120, .14);
    outline: 0;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter
    input::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter button {
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter button:hover {
    background: #1eae5a;
}

html[data-theme="dark"] .earn-section-digest
    .vacancy-aggregator-filter .vacancy-filter-open {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest
    .vacancy-aggregator-filter .vacancy-filter-open:hover {
    border-color: var(--fi-border-strong);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter > a {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-filter > a:hover {
    color: var(--fi-text);
    background: #353b41;
}

html[data-theme="dark"] .vacancy-filter-modal__dialog,
html[data-theme="dark"] .vacancy-filter-modal__footer {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #1a1d20;
}

html[data-theme="dark"] .vacancy-filter-modal__header,
html[data-theme="dark"] .vacancy-filter-group,
html[data-theme="dark"] .vacancy-filter-modal__footer {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .vacancy-filter-modal__header h2,
html[data-theme="dark"] .vacancy-filter-group legend,
html[data-theme="dark"] .vacancy-filter-switch strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .vacancy-filter-modal__header p,
html[data-theme="dark"] .vacancy-filter-switch small {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .vacancy-filter-modal__icon {
    border-color: var(--fi-border);
    color: #4dd384;
    background: var(--fi-surface-raised);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .vacancy-filter-group {
    border-color: var(--fi-border);
    background: #202428;
}

html[data-theme="dark"] .vacancy-filter-modal__header button,
html[data-theme="dark"] .vacancy-filter-option {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .vacancy-filter-modal__header button:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .vacancy-filter-option i,
html[data-theme="dark"] .vacancy-filter-salary label,
html[data-theme="dark"] .vacancy-filter-periods span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .vacancy-filter-option input:checked + i {
    border-color: #27c366;
    background: #27c366;
}

html[data-theme="dark"] .vacancy-filter-salary input {
    color: var(--fi-text);
}

html[data-theme="dark"] .vacancy-filter-periods input:checked + span {
    border-color: #27c366;
    color: #69d99a;
    background: rgba(39, 195, 102, .14);
}

html[data-theme="dark"] .vacancy-filter-modal__footer a {
    color: #69bdfd;
    background: transparent;
}

html[data-theme="dark"] .earn-section-digest .vacancy-employer-circles__head h2 {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .vacancy-employer-circle {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .vacancy-employer-circle__avatar {
    border-color: var(--fi-surface-raised);
    box-shadow: 0 0 0 1px var(--fi-border);
}

html[data-theme="dark"] .earn-section-digest .vacancy-employer-circle:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest
    .vacancy-employer-circle:hover .vacancy-employer-circle__avatar {
    box-shadow: 0 0 0 2px var(--fi-border-strong);
}

html[data-theme="dark"] .earn-section-digest .vacancy-employer-circle.is-active {
    color: #69d39a;
}

html[data-theme="dark"] .earn-section-digest
    .vacancy-employer-circle.is-active .vacancy-employer-circle__avatar {
    box-shadow: 0 0 0 3px #42b978;
}

html[data-theme="dark"] .earn-section-digest .vacancy-employer-circle__tooltip {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: #252a2f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .earn-section-digest .vacancy-source-chips {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .vacancy-source-chips > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .vacancy-source-chips a {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest .vacancy-source-chips a:hover {
    border-color: var(--fi-border-strong);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .vacancy-source-chips a.active {
    border-color: #285c3d;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .earn-section-digest .vacancy-source-chips a.active:hover {
    border-color: #34754e;
    color: #8ae4b2;
    background: #1c402e;
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-seo {
    border-top-color: var(--fi-border);
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-seo > svg {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .vacancy-aggregator-seo h2 {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    :is(.freelancer-proposals-tabs, .jobs-filter-panel, .jobs-market-stats) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .freelancer-proposals-tab {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .freelancer-proposals-tab:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .freelancer-proposals-tab.active {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-section {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    :is(.jobs-filter-title, .jobs-filter-rubric, .jobs-market-stats strong) {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    :is(.jobs-filter-rubric em, .jobs-market-stats div) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-rubric:hover,
html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-rubric.active {
    color: #69d39a;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__values > span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__values em {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__values strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__track {
    background: #353b41;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__control {
    color: #69d39a;
    background: transparent !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__control input[type="range"] {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__control .simple-task-price-range__track {
    background: #353b41;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__control .simple-task-price-range__track span {
    background: #42b978;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__control input[type="range"]::-webkit-slider-thumb {
    background: #42b978;
    border-color: var(--fi-surface-raised);
    box-shadow: 0 2px 9px rgba(66, 185, 120, .32);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-price-range__control input[type="range"]::-moz-range-thumb {
    background: #42b978;
    border-color: var(--fi-surface-raised);
    box-shadow: 0 2px 9px rgba(66, 185, 120, .32);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-filter-toggle {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-filter-toggle:hover {
    border-color: var(--fi-border-strong);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-filter-toggle > em {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .simple-task-filter-toggle__chevron {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    :is(.jobs-filter-check, .jobs-filter-more, .jobs-filter-reset) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    :is(.jobs-filter-more, .jobs-filter-reset):hover {
    color: #69d39a;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list > li {
    background: transparent;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list .jobs-filter-rubric {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list .jobs-filter-rubric:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list .jobs-filter-rubric.active {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list :is(.jobs-filter-rubric, .jobs-filter-check) em {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list .jobs-filter-check {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .earn-section-digest .freelancer-proposals-left-rail
    .jobs-filter-list .jobs-filter-check:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .computer-header--air .nav-part1-container {
    border-color: var(--fi-border);
    background: rgba(26, 29, 32, .97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .computer-header--air .nav-part2-container {
    border-top-color: var(--fi-border-soft);
}

html[data-theme="dark"] .computer-header--air .nav-part2 li > a,
html[data-theme="dark"] .computer-header--air .nav-category-icon {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .computer-header--air .nav-part2 li:hover > a {
    color: var(--fi-text);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .search-service-input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .search-service-input:hover,
html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .search-service-input:focus {
    border-color: #41474e;
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .09);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .search-service-input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .computer-header--air .header-ai-search__badge {
    border-color: #284d6d;
    color: #76bcf6;
    background: #172a3a;
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-menu-link,
html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-replenish {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-menu-link:hover {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .user-header--modern .header__user-menu-link .fiwork-header-orders-count,
html[data-theme="dark"] .user-header--modern .header__user-menu-link .fiwork-header-count-badge,
html[data-theme="dark"] .user-header--modern .header__user-menu-link .fiwork-header-action-count {
    box-shadow: 0 0 0 2px #191d1f;
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-notification,
html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-balance,
html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-logo,
html[data-theme="dark"] .fiwork-theme-toggle--floating {
    border-color: #2b2b2b;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .computer-header--air .user-header--modern
    .notification-active-icon {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .computer-header--air .user-header--modern
    .notification-active-icon__dot {
    border-color: var(--fi-surface-raised);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-summ {
    color: var(--fi-text);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-first-name {
    color: var(--fi-text);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-logo .header__user-icon {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .computer-header--air .registration-and-login-block .register-button {
    border-color: #315b7d;
    color: #6eb8f5;
    background: #172a3a;
}

html[data-theme="dark"] .computer-header--air .registration-and-login-block .register-button:hover {
    border-color: #4385bb;
    color: #8ac9fb;
    background: #1b3245;
}

html[data-theme="dark"] .header-language-selector__toggle {
    color: var(--fi-text);
}

html[data-theme="dark"] .header-language-selector__toggle:hover,
html[data-theme="dark"] .header-language-selector[open] .header-language-selector__toggle {
    color: #fff;
    background: #202428;
}

html[data-theme="dark"] .header-language-selector__menu {
    border-color: #2b3035;
    background: #171a1d;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .header-language-selector__option {
    color: #e7e9eb;
}

html[data-theme="dark"] .header-language-selector__option strong {
    color: #8e989f;
}

html[data-theme="dark"] .header-language-selector__option:hover,
html[data-theme="dark"] .header-language-selector__option.is-active {
    color: #81c6ff;
    background: #1e3040;
}

html[data-theme="dark"] .header-language-selector__option.is-active strong {
    color: #65b8fb;
}

html[data-theme="dark"] .header-logo,
html[data-theme="dark"] .mobile-logo-icon {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .computer-header--air .header-blog-label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .mega-menu,
html[data-theme="dark"] .header-search-suggestions,
html[data-theme="dark"] .user-header-menu,
html[data-theme="dark"] .user-header-menu-container,
html[data-theme="dark"] .notification-list,
html[data-theme="dark"] .fiwork-header-chat-dropdown,
html[data-theme="dark"] .beta-tooltip {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: var(--fi-shadow) !important;
}

html[data-theme="dark"] .mega-menu a,
html[data-theme="dark"] .mega-menu h4,
html[data-theme="dark"] .header-search-suggestion-link,
html[data-theme="dark"] .user-header-menu a,
html[data-theme="dark"] .notification-list-elem {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .mega-menu a:hover,
html[data-theme="dark"] .header-search-suggestion-link:hover,
html[data-theme="dark"] .user-header-menu a:hover,
html[data-theme="dark"] .notification-list-elem:hover {
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .mega-menu-column.with-border {
    border-left-color: var(--fi-border);
}

html[data-theme="dark"] .user-header .notification-list,
html[data-theme="dark"] .user-header--modern .notification-list {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .4) !important;
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .user-header .notification-list-elem,
html[data-theme="dark"] .user-header--modern .notification-list-elem {
    border-top-color: var(--fi-border-soft);
    color: var(--fi-text-secondary) !important;
    background: transparent !important;
}

html[data-theme="dark"] .user-header .notification-list-elem.active,
html[data-theme="dark"] .user-header--modern .notification-list-elem.active {
    color: var(--fi-text) !important;
    background: transparent !important;
}

html[data-theme="dark"] .user-header .notification-list-elem:hover,
html[data-theme="dark"] .user-header--modern .notification-list-elem:hover {
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .notification-list-elem .notification-time {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] .user-header--modern .notification-list__header {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] .user-header--modern .notification-list__heading strong,
html[data-theme="dark"] .user-header--modern .notification-list-elem__text,
html[data-theme="dark"] .user-header--modern .notification-list__empty strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .user-header--modern .notification-list__clear {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .user-header--modern .notification-list__clear:hover,
html[data-theme="dark"] .user-header--modern .notification-list__clear:focus-visible {
    color: #76bcf6;
    background: #172a3a;
}

html[data-theme="dark"] .user-header--modern .notification-list__body {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .user-header--modern
    .notification-list__body::-webkit-scrollbar-thumb {
    background: #454b52;
}

html[data-theme="dark"] .user-header--modern .notification-list-elem__icon {
    border: 1px solid #284d6d;
    color: #76bcf6;
    background: #172a3a;
}

html[data-theme="dark"] .user-header--modern .notification-list-elem__chevron {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .user-header--modern
    .notification-list-elem:hover .notification-list-elem__chevron,
html[data-theme="dark"] .user-header--modern
    .notification-list-elem:focus-visible .notification-list-elem__chevron {
    color: #76bcf6;
}

html[data-theme="dark"] .user-header--modern .notification-list__empty-icon {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .user-header--modern .notification-list__empty > span:last-child {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .notification-list::-webkit-scrollbar-track {
    background: transparent;
}

html[data-theme="dark"] .notification-list::-webkit-scrollbar-thumb {
    border-color: transparent;
    background: #454b52;
}

html[data-theme="dark"] .notification-list::-webkit-scrollbar-thumb:hover {
    background: #59616a;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .44) !important;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__list {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__list::-webkit-scrollbar {
    width: 6px;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #454b52;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__item {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__item:hover,
html[data-theme="dark"] .fiwork-header-chat-dropdown__item:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    outline: none;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__item:focus-visible {
    box-shadow: inset 0 0 0 1px #3b6d94;
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__avatar {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__title {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__preview,
html[data-theme="dark"] .fiwork-header-chat-dropdown__empty {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-header-chat-dropdown__badge {
    border: 1px solid #4385bb;
    color: #fff;
    background: #247fc7;
}

html[data-theme="dark"] .user-header--modern .user-header-menu-container,
html[data-theme="dark"] .user-header--modern .user__list,
html[data-theme="dark"] .user-header--modern .user__list-hide {
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .user-header--modern .user__list-box {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .user-header--modern :is(.user-name, .user__list-checkbox > span) {
    color: var(--fi-text);
}

html[data-theme="dark"] .user-header--modern .user-username {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .user-header--modern :is(
    .user__list-roles,
    .underlineBorder
) {
    border-color: var(--fi-border) !important;
}

html[data-theme="dark"] .user-header--modern .user__list-roles {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .user-header--modern .user__list-role {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .user-header--modern .user__list-role:hover,
html[data-theme="dark"] .user-header--modern .user__list-role.selected {
    color: #fff;
    background: #247fc7;
}

html[data-theme="dark"] .user-header--modern .user__list-checkbox .slider {
    border-color: #454b52;
    background: #343a40;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .user-header--modern .user__list-checkbox .slider::before {
    background: #dfe3e7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .user-header--modern .user__list-checkbox .switch input:checked + .slider {
    border-color: #36b875;
    background: #24975d;
}

html[data-theme="dark"] .user-header--modern .fiwork-account-context button {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .user-header--modern .fiwork-account-context button:hover {
    border-color: #3b6d94 !important;
    color: #76bcf6 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .user-header--modern .fiwork-account-context__target-icon {
    color: #76bcf6 !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .user-header--modern .fiwork-account-context__switch-icon {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] .user-header--modern .fiwork-account-context button:hover
    .fiwork-account-context__switch-icon {
    color: #76bcf6 !important;
}

html[data-theme="dark"] .user-header--modern .premium-container {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .user-header--modern .user__list-link,
html[data-theme="dark"] .user-header--modern .exit {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .user-header--modern .user__list-link:hover {
    color: #76bcf6 !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .user-header--modern .exit:hover {
    color: #ff858a !important;
    background: rgba(255, 77, 79, .1) !important;
}

html[data-theme="dark"] .user-header--modern .receive-orders-tooltip-text {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .user-header--modern .receive-orders-tooltip-text :is(p, b) {
    color: inherit;
}

html[data-theme="dark"] .messenger-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .messenger-block :is(
    .messenger-aside,
    .search-in-message-block,
    .messenger-container,
    .messenger-content,
    .message-content-header,
    .control-panel-container,
    .control-panel,
    .inbox-quick-replies
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .messenger-block .messenger-container {
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .messenger-block .messenger-aside {
    border-right-color: var(--fi-border) !important;
}

html[data-theme="dark"] .messenger-block .search-in-message-block,
html[data-theme="dark"] .messenger-block .message-content-header {
    border-bottom-color: var(--fi-border) !important;
}

html[data-theme="dark"] .messenger-block .search-in-message-container,
html[data-theme="dark"] .messenger-block .chat-search-container {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .search-in-message-container .search-icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block :is(
    .search-in-message-input,
    .chat-search-input,
    .control-panel textarea
) {
    color: var(--fi-text) !important;
    background: transparent !important;
}

html[data-theme="dark"] .messenger-block :is(
    .search-in-message-input,
    .chat-search-input,
    .control-panel textarea
)::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .search-in-message-block
    :is(.sound-control svg, .inbox-create-group-button),
html[data-theme="dark"] .messenger-block .contact-functional-panel .fiwork-chat-panel-icon,
html[data-theme="dark"] .messenger-block .chat-search-container .close-chat-search {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .search-in-message-block .inbox-create-group-button:hover,
html[data-theme="dark"] .messenger-block .search-in-message-block .inbox-create-group-button:focus-visible,
html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .img-button:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .contact-container {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .contact-container:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .contact-container.selected-contact {
    background: #172a3a;
    box-shadow: inset 3px 0 0 #328bd8;
}

html[data-theme="dark"] .messenger-block .contact-container :is(
    .contact-name-last-date h4,
    .contact-last-message
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .contact-container .contact-name-last-date span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block :is(
    .contact-container .avatar-container,
    .message-content-header .contact-avatar,
    .custom-message .cm-avatar-container
) {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block :is(
    .fiwork-official-check,
    .message-content-header .contact-avatar .user-contact-status
) {
    border-color: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .welcome-modal {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .welcome-modal :is(h3, p) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .message-content-header .contact-username h4,
html[data-theme="dark"] .messenger-block .custom-message .cm-username-and-message h4 {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block :is(
    .message-content-header .contact-username span,
    .message-content-header .active-time,
    .custom-message .cm-time,
    .messages-container .time-message
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .messages-container .custom-line {
    border-color: var(--fi-border);
    background: var(--fi-border);
}

html[data-theme="dark"] .messenger-block
    .custom-message .cm-username-and-message .cm-message {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block
    .messages-container .custom-message.cm-system
    .cm-username-and-message .cm-message.system-bubble {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__intro {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__intro strong,
html[data-theme="dark"] .messenger-block .inbox-order-lock__item-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__item {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__item:hover {
    border-color: #48515a;
    background: var(--fi-surface-hover);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__item-meta {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block :is(
    .inbox-order-lock__item-arrow,
    .inbox-order-lock__nav
) {
    color: var(--fi-accent);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__nav {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__nav:hover {
    border-color: #328bd8;
    color: #fff;
    background: #247fc7;
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__nav.is-disabled:hover {
    border-color: var(--fi-border);
    color: var(--fi-accent);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__list {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__list::-webkit-scrollbar-track {
    background: transparent;
}

html[data-theme="dark"] .messenger-block .inbox-order-lock__list::-webkit-scrollbar-thumb {
    border-color: transparent;
    background: #454b52;
}

html[data-theme="dark"] .daily-coin-modal__overlay {
    background: rgba(4, 6, 8, .72);
}

html[data-theme="dark"] .daily-coin-modal__dialog {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .daily-coin-modal__close {
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .daily-coin-modal__close:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .daily-coin-modal__copy h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .daily-coin-modal__copy p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .daily-coin-modal__reward {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .daily-coin-modal__reward[data-state="current"] {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .daily-coin-modal__reward[data-state="claimed"] {
    border-color: var(--fi-border-soft);
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .daily-coin-modal__footer {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .daily-coin-modal__claim {
    color: #fff;
    background: #2196f3;
}

html[data-theme="dark"] .daily-coin-modal__claim:hover {
    background: #1689e8;
}

html[data-theme="dark"] .daily-coin-modal.is-claimed .daily-coin-modal__claim {
    background: #13a875;
}

html[data-theme="dark"] .freelancer-reviews-container {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .freelancer-reviews-container :is(
    .freelancer-avatar-stars-container,
    .freelancer-progressbar-container
) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .freelancer-reviews-container
    .freelancer-avatar-name-container .img-container {
    border: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .freelancer-reviews-container
    .freelancer-avatar-name-container .freelancer-name {
    color: var(--fi-text);
}

html[data-theme="dark"] .freelancer-reviews-container
    .freelancer-avatar-name-container .freelancer-username,
html[data-theme="dark"] .freelancer-reviews-container
    .freelancer-stars-container .reviews-count,
html[data-theme="dark"] .freelancer-reviews-container .freelancer-progress p,
html[data-theme="dark"] .freelancer-reviews-container
    .freelancer-progress .progress-text,
html[data-theme="dark"] .freelancer-reviews-container .receive-orders-text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .freelancer-reviews-container
    .freelancer-progress .progress-bar {
    background: #353b41;
}

html[data-theme="dark"] .freelancer-reviews-container .tooltip-text {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .freelancer-reviews-container
    .tooltip-text :is(h4, p) {
    color: inherit;
}

html[data-theme="dark"] .freelancer-reviews-container
    .receive-orders-container .slider {
    border: 1px solid #454b52;
    background: #353b41;
}

html[data-theme="dark"] .freelancer-reviews-container
    .receive-orders-container .slider::before {
    background: #d9dde1;
}

html[data-theme="dark"] .freelancer-reviews-container
    .receive-orders-container input:checked + .slider {
    border-color: #1c9f45;
    background: #22a94f;
}

html[data-theme="dark"] .dashboard-profile-digest > .dashboard-ai-digest,
html[data-theme="dark"] .ai-agent-container.dashboard-ai-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .dashboard-profile-digest > .dashboard-ai-digest:hover,
html[data-theme="dark"] .ai-agent-container.dashboard-ai-digest:hover {
    border-color: #48515a !important;
    color: var(--fi-text);
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .dashboard-ai-digest .ai-agent-text,
html[data-theme="dark"] .dashboard-ai-digest:hover .ai-agent-text {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-ai-digest .img-container {
    border: 1px solid var(--fi-border);
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .dashboard-ai-digest:hover .img-container {
    border-color: #48515a;
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .dashboard-ai-digest .ai-agent-icon g path {
    stroke: var(--fi-accent) !important;
}

html[data-theme="dark"] .dashboard-ai-digest .ai-agent-text img {
    filter: invert(1);
    opacity: .72;
}

html[data-theme="dark"] .dashboard-profile-digest > .dashboard-activities-digest,
html[data-theme="dark"] .freelancer-activities-container.dashboard-activities-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .dashboard-activities-digest .activity-link {
    color: var(--fi-text-secondary);
    text-decoration: none;
}

html[data-theme="dark"] .dashboard-activities-digest figure {
    border: 1px solid transparent;
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .dashboard-activities-digest figure:hover,
html[data-theme="dark"] .dashboard-activities-digest
    .activity-link:hover figure {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .dashboard-activities-digest
    :is(.activity-link, figure[role="button"]):focus-visible {
    outline: 2px solid rgba(74, 168, 247, .55);
    outline-offset: 2px;
}

html[data-theme="dark"] .dashboard-activities-digest figcaption {
    color: inherit;
}

html[data-theme="dark"] .dashboard-activities-digest :is(
    .activity-icon,
    .radar
) {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
}

html[data-theme="dark"] .dashboard-profile-digest > .dashboard-messages-digest,
html[data-theme="dark"] .freelancer-messages-container.dashboard-messages-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-header {
    border-bottom-color: var(--fi-border);
    background: transparent;
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-header a {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-header a:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .dashboard-messages-digest .freelancer-message {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-message:last-child {
    border-bottom-color: transparent;
}

html[data-theme="dark"] .dashboard-messages-digest
    a.freelancer-message:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .dashboard-messages-digest
    .user-messaging-avatar {
    border: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .dashboard-messages-digest
    .user-messaging-username-and-date h4 {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-messages-digest :is(
    .user-messaging-username-and-date span,
    .user-message-and-num .message
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-messages-digest
    .user-message-and-num .message-num {
    color: #fff;
    background: #22a94f;
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-content {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-content::-webkit-scrollbar-track {
    background: transparent;
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-content::-webkit-scrollbar-thumb {
    border-color: transparent;
    background: #454b52;
}

html[data-theme="dark"] .dashboard-messages-digest
    .freelancer-messages-content::-webkit-scrollbar-thumb:hover {
    background: #59616a;
}

html[data-theme="dark"] .dashboard-widget.dashboard-widget--balance {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .dashboard-widget.dashboard-widget--balance:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .dashboard-widget--balance :is(
    .dashboard-widget__amount,
    .dashboard-widget__money,
    .dashboard-widget__currency,
    .dashboard-widget__title
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-widget--balance .dashboard-widget__text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .dashboard-widget--balance .dashboard-widget__arrow,
html[data-theme="dark"] .dashboard-widget--balance .dashboard-widget__info {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-widget--balance
    .dashboard-widget__info path {
    fill: currentColor !important;
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--balance:focus-visible {
    outline: 2px solid rgba(74, 168, 247, .55);
    outline-offset: 3px;
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--balance.dashboard-widget--wallet-balance {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--balance.dashboard-widget--wallet-balance:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .dashboard-widget--wallet-balance :is(
    .dashboard-widget__amount,
    .dashboard-widget__money,
    .dashboard-widget__currency,
    .dashboard-widget__title
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-widget--wallet-balance
    .dashboard-widget__text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .dashboard-widget--wallet-balance
    .dashboard-widget__arrow {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-widget--wallet-balance
    .dashboard-widget__info {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-widget--wallet-balance
    .dashboard-widget__info path {
    fill: currentColor !important;
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--wallet-balance:focus-visible {
    outline: 2px solid rgba(74, 168, 247, .55);
    outline-offset: 3px;
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--banner.dashboard-widget--promo {
    border: 1px solid #3a3f45;
    color: var(--fi-text);
    background:
        radial-gradient(circle at 82% 18%, rgba(143, 104, 214, .2), transparent 34%),
        linear-gradient(120deg, #211f27 0%, #29262b 52%, #302d24 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--banner.dashboard-widget--promo:hover {
    border-color: #4b5158;
    color: var(--fi-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .dashboard-widget--promo
    .dashboard-widget__content h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-widget--promo
    .dashboard-widget__content p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .dashboard-widget--promo
    .dashboard-widget__round-arrow {
    border: 1px solid #454b52;
    color: var(--fi-text);
    background: rgba(32, 36, 40, .92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .dashboard-widget--promo:hover
    .dashboard-widget__round-arrow {
    border-color: #59616a;
    background: #2b3035;
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--promo.dashboard-widget--premium {
    border-color: #3f444a;
    color: #fff;
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, .12), transparent 33%),
        linear-gradient(120deg, #090a0c 0%, #202226 54%, #4a4d52 100%) !important;
}

html[data-theme="dark"] .dashboard-widget--premium
    .dashboard-widget__content p {
    color: rgba(241, 243, 245, .72);
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--promo.dashboard-widget--plus {
    border: 0;
    color: #fff5d9;
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 207, 99, .16), transparent 30%),
        linear-gradient(120deg, #17130c 0%, #30240f 56%, #6d4710 100%) !important;
}

html[data-theme="dark"] .dashboard-widget--plus .dashboard-widget__content h3 {
    color: #fff6dd;
}

html[data-theme="dark"] .dashboard-widget--plus .dashboard-widget__content p {
    color: rgba(255, 241, 207, .68);
}

html[data-theme="dark"] .dashboard-widget--plus .dashboard-widget__eyebrow {
    color: #efc65c;
}

html[data-theme="dark"] .dashboard-widget--plus .dashboard-widget__round-arrow {
    border-color: rgba(255, 223, 142, .24);
    color: #f0c967;
    background: rgba(25, 20, 12, .88);
}

html[data-theme="dark"] :is(.profile-details-page, .company-profile-page)
    .freelancer-main-info .freelancer-avatar-container--plus {
    border: 0;
    outline-color: #d9a514;
    background: transparent;
}

html[data-theme="dark"]
    .dashboard-widget.dashboard-widget--promo:focus-visible {
    outline: 2px solid rgba(74, 168, 247, .55);
    outline-offset: 3px;
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat:hover,
html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat:focus-visible {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat:focus-visible {
    outline-color: rgba(74, 168, 247, .42);
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat__content strong {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat__content span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat__arrow {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat:hover .client-dashboard-stat__arrow,
html[data-theme="dark"] :is(
    .client-dashboard-stats,
    .freelancer-dashboard-stats
) .client-dashboard-stat:focus-visible .client-dashboard-stat__arrow {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-dashboard-stat__icon {
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .client-dashboard-stat--vacancies
    .client-dashboard-stat__icon,
html[data-theme="dark"] .freelancer-dashboard-stat--services
    .client-dashboard-stat__icon {
    color: #5fca91;
    background: #172b23;
}

html[data-theme="dark"] :is(
    .client-dashboard-stat--quick,
    .freelancer-dashboard-stat--proposals
) .client-dashboard-stat__icon {
    color: #e4b457;
    background: #30291a;
}

html[data-theme="dark"] :is(
    .client-dashboard-stat--projects,
    .freelancer-dashboard-stat--portfolio
) .client-dashboard-stat__icon {
    color: #ad8aee;
    background: #29223a;
}

html[data-theme="dark"] .year-sellings-header h2 {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .year-sellings-header h2 strong {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__trigger {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__trigger:hover,
html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__trigger:focus-visible,
html[data-theme="dark"] .year-sellings-header
    .earnings-period-select.is-open .earnings-period-select__trigger {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__trigger:focus-visible {
    outline: 2px solid rgba(74, 168, 247, .45);
    outline-offset: 1px;
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__menu {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__option {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__option:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .year-sellings-header
    .earnings-period-select__option.is-active {
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .year-sellings-header .line {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"]
    .fiwork-activity-graph.dashboard-activity-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .dashboard-activity-digest__header {
    border-bottom-color: var(--fi-border);
    background: transparent;
}

html[data-theme="dark"] .dashboard-activity-digest__header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-activity-digest__header
    .dashboard-blog-digest__title-icon {
    border-color: var(--fi-border);
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .dashboard-activity-digest__legend {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-activity-digest
    .fiwork-activity-graph-container {
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] .dashboard-activity-digest
    .fiwork-activity-graph-wrapper {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .dashboard-activity-digest
    :is(.months, .days) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-activity-digest
    :is(.squares li, .dashboard-activity-digest__legend i)[data-level="0"] {
    border: 1px solid #30363d;
    background: #21262d;
}

html[data-theme="dark"] .dashboard-activity-digest
    :is(.squares li, .dashboard-activity-digest__legend i)[data-level="1"] {
    border-color: #0e4429;
    background: #0e4429;
}

html[data-theme="dark"] .dashboard-activity-digest
    :is(.squares li, .dashboard-activity-digest__legend i)[data-level="2"] {
    border-color: #006d32;
    background: #006d32;
}

html[data-theme="dark"] .dashboard-activity-digest
    :is(.squares li, .dashboard-activity-digest__legend i)[data-level="3"] {
    border-color: #26a641;
    background: #26a641;
}

html[data-theme="dark"] .dashboard-activity-digest
    :is(.squares li, .dashboard-activity-digest__legend i)[data-level="4"] {
    border-color: #39d353;
    background: #39d353;
}

html[data-theme="dark"] .dashboard-activity-digest .squares li:hover {
    outline: 2px solid rgba(115, 185, 245, .5);
    outline-offset: 1px;
}

html[data-theme="dark"] #tooltipGraph {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] #tooltipGraph b {
    color: var(--fi-text);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .dashboard-blog-digest__header {
    border-bottom-color: var(--fi-border);
    background: transparent;
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .dashboard-blog-digest__header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .dashboard-blog-digest__title-icon {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .dashboard-blog-digest__header > a {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .dashboard-blog-digest__header > a:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__articles {
    border-color: var(--fi-border);
    background: var(--fi-border);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__articles > a {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__articles > a:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__articles > a > span {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__articles strong {
    color: var(--fi-text);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__articles small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__empty {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"]
    section.community-digest.dashboard-blog-digest
    .community-digest__empty :is(strong, span) {
    color: inherit;
}

html[data-theme="dark"]
    .new-in-stock-block.dashboard-market-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .dashboard-market-digest .new-in-stock-header {
    border-bottom-color: var(--fi-border);
    background: transparent;
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-header h2 .projects-in-day {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-market-digest
    .dashboard-blog-digest__title-icon {
    border: 1px solid var(--fi-border);
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-header .see-more-container {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-header .see-more-container:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-header .see-more-container img {
    filter: invert(1);
    opacity: .68;
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table-wrapper {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .dashboard-market-digest .new-in-stock-table {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .table-header {
    border-bottom: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .table-header div {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .table-row {
    border-bottom-color: var(--fi-border-soft);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .table-row:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .project-name,
html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .user-avatar-name-container {
    color: var(--fi-text);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .project-name:hover {
    color: #73b9f5;
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table :is(.project-nav, .suggestion-nums) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .user-avatar-container {
    border: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .budget-count {
    color: #5fca91;
}

html[data-theme="dark"] .dashboard-market-digest
    .new-in-stock-table .budget-count:hover {
    color: #7bddaa;
}

html[data-theme="dark"] .dashboard-market-digest .new-in-stock-empty {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-block {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-block-header {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-wallet-mode-switch {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-wallet-mode-switch__option {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-wallet-mode-switch__option:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-wallet-mode-switch__option.is-active {
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-block-description p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .close-modal-grey-icon {
    border-color: var(--fi-border);
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .close-modal-grey-icon:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .close-modal-grey-icon img,
html[data-theme="dark"] .fill-balance-modal-block-container
    .chevron-down-icon {
    filter: invert(1);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        label,
        .sum-description,
        .sum-description-text,
        .result-sum,
        .payment-method-text
    ) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        .result-sum-text,
        .transaction_fee_amount,
        .transaction_total_amount,
        .currency_symbol
    ) {
    color: var(--fi-text);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        .enter-sum,
        .select-payment-method,
        .fiwork-wallet-withdraw-select
    ) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        .enter-sum,
        .fiwork-wallet-withdraw-select
    )::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        .enter-sum,
        .select-payment-method,
        .fiwork-wallet-withdraw-select
    ):hover {
    border-color: #48515a;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        .enter-sum,
        .fiwork-wallet-withdraw-select
    ):focus {
    border-color: #23c366;
    box-shadow: 0 0 0 3px rgba(35, 195, 102, .16);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .select-payment-list {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-elem {
    border-color: transparent;
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-elem:hover {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-elem.selected {
    border-color: #328bd8;
    color: #73b9f5;
    background: #172a3a;
    box-shadow: none;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-elem__icon--method {
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-elem__body small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .balance-popup__commission-tooltip {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .balance-popup__content-result {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form--withdraw .withdraw-summary-row {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .withdraw-summary-row label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .withdraw-summary-row :is(
        .result-sum,
        .result-sum-text,
        .sum-description,
        .sum-description-text
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-save-withdraw-method {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-save-withdraw-method:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-save-withdraw-method:focus-within {
    border-color: #23b960;
    box-shadow: 0 0 0 3px rgba(35, 185, 96, .14);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-save-withdraw-method:has(input:checked) {
    border-color: #277a4b;
    color: var(--fi-text);
    background: #172b23;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-save-withdraw-method input {
    accent-color: #23b960;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment {
    color: #fff;
    background: #23b960;
    box-shadow: none;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment:hover {
    background: #1fa653;
}

html[data-theme="dark"] .messenger-block .chat-message-translation {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .chat-message-translation summary {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .chat-message-translation summary::before,
html[data-theme="dark"] .messenger-block .chat-message-translation > div {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .messaging-blocked,
html[data-theme="dark"] .messenger-block :is(.ticket-closed, .ticket-support-panel) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .messenger-block :is(
    .ticket-closed-header,
    .ticket-closed-description
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .ticket-support-note {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block
    .custom-message .controls-container.message-actions-container {
    border: 0 !important;
    color: var(--fi-text-secondary);
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .messenger-block
    .custom-message .message-actions-container .message-action-btn,
html[data-theme="dark"] .messenger-block
    .custom-message.cm-me .message-actions-container .message-action-btn {
    border: 1px solid var(--fi-border) !important;
    color: var(--fi-text-secondary) !important;
    background: rgba(32, 36, 40, .92) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .messenger-block
    .custom-message .message-actions-container .message-action-btn:hover,
html[data-theme="dark"] .messenger-block
    .custom-message .message-actions-container .message-action-btn:focus-visible {
    border-color: #37698f !important;
    color: #73b9f5 !important;
    background: #172a3a !important;
    outline: none;
}

html[data-theme="dark"] .messenger-block
    .custom-message .message-actions-container .message-action-btn.js-message-delete:hover,
html[data-theme="dark"] .messenger-block
    .custom-message .message-actions-container .message-action-btn.js-message-delete:focus-visible {
    border-color: #67333d !important;
    color: #ff858a !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .messenger-block [data-inbox-conversation-menu] {
    border-color: transparent !important;
    color: var(--fi-text-secondary) !important;
    background: transparent !important;
}

html[data-theme="dark"] .messenger-block [data-inbox-conversation-menu]:hover,
html[data-theme="dark"] .messenger-block [data-inbox-conversation-menu]:focus-visible {
    border-color: var(--fi-border) !important;
    color: #73b9f5 !important;
    background: var(--fi-surface-hover) !important;
    outline: none;
}

html[data-theme="dark"] .inbox-conversation-menu {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .inbox-conversation-menu__item {
    color: var(--fi-text-secondary) !important;
    background: transparent !important;
}

html[data-theme="dark"] .inbox-conversation-menu__item:hover,
html[data-theme="dark"] .inbox-conversation-menu__item:focus-visible {
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
    outline: none;
}

html[data-theme="dark"] .inbox-conversation-menu__item .inbox-conversation-menu__icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .inbox-conversation-menu__item:hover
    .inbox-conversation-menu__icon,
html[data-theme="dark"] .inbox-conversation-menu__item:focus-visible
    .inbox-conversation-menu__icon {
    color: #73b9f5;
}

html[data-theme="dark"] .inbox-conversation-menu__item.is-danger {
    color: #ff858a !important;
}

html[data-theme="dark"] .inbox-conversation-menu__item.is-danger
    .inbox-conversation-menu__icon {
    color: #ff858a;
}

html[data-theme="dark"] .inbox-conversation-menu__item.is-danger:hover,
html[data-theme="dark"] .inbox-conversation-menu__item.is-danger:focus-visible {
    color: #ffabb0 !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .inbox-conversation-modal__overlay {
    background: rgba(0, 0, 0, .66);
}

html[data-theme="dark"] .inbox-conversation-modal__dialog {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .inbox-conversation-modal__close {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .inbox-conversation-modal__close:hover,
html[data-theme="dark"] .inbox-conversation-modal__close:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    outline: none;
}

html[data-theme="dark"] .inbox-conversation-modal__avatar {
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 2px var(--fi-border);
}

html[data-theme="dark"] .inbox-conversation-modal__header {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .inbox-conversation-modal__eyebrow {
    color: #73b9f5;
}

html[data-theme="dark"] .inbox-conversation-modal__profile {
    color: var(--fi-text);
}

html[data-theme="dark"] .inbox-conversation-modal__header h3 {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .inbox-conversation-modal__header p {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .inbox-conversation-modal__profile:hover h3,
html[data-theme="dark"] .inbox-conversation-modal__profile:focus-visible h3 {
    color: #73b9f5 !important;
}

html[data-theme="dark"] .inbox-conversation-modal__profile:focus-visible {
    border-radius: 10px;
    outline: 2px solid rgba(115, 185, 245, .28);
    outline-offset: 4px;
}

html[data-theme="dark"] .inbox-conversation-stats span,
html[data-theme="dark"] .inbox-conversation-action {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .inbox-conversation-stats b {
    color: var(--fi-text);
}

html[data-theme="dark"] .inbox-conversation-action:hover,
html[data-theme="dark"] .inbox-conversation-action:focus-visible {
    border-color: #37698f;
    color: #73b9f5;
    background: #172a3a;
    outline: none;
}

html[data-theme="dark"] .inbox-info-tabs {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .inbox-info-tab {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .inbox-info-tab:hover {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .inbox-info-tab.is-active {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] :is(
    .inbox-info-attachment-card,
    .inbox-conversation-person,
    .inbox-attachment-card,
    .inbox-conversation-form .inbox-user-checkbox
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] :is(
    .inbox-info-attachment-card,
    .inbox-conversation-person,
    .inbox-attachment-card,
    .inbox-conversation-form .inbox-user-checkbox
):hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(
    .inbox-info-attachment-card,
    .inbox-conversation-person,
    .inbox-attachment-card,
    .inbox-user-checkbox
) strong {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(
    .inbox-info-attachment-card,
    .inbox-conversation-person,
    .inbox-attachment-card,
    .inbox-user-checkbox
) small {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .inbox-info-attachment-icon,
html[data-theme="dark"] .inbox-attachment-card__preview {
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .inbox-conversation-form label,
html[data-theme="dark"] .inbox-user-checkbox-field__label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .inbox-conversation-loading {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .inbox-conversation-form .inbox-user-checkbox.is-selected {
    border-color: #367a58;
    background: #173426;
    box-shadow: inset 0 0 0 1px rgba(105, 211, 154, .1);
}

html[data-theme="dark"] .inbox-user-checkbox__mark {
    border-color: #59616a;
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .inbox-user-checkbox.is-selected .inbox-user-checkbox__mark {
    border-color: #24975d;
    background: #24975d;
}

html[data-theme="dark"] .inbox-conversation-secondary {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .inbox-conversation-secondary:hover,
html[data-theme="dark"] .inbox-conversation-secondary:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    outline: none;
}

html[data-theme="dark"] .messenger-block .inbox-quick-replies {
    border-top-color: var(--fi-border) !important;
}

html[data-theme="dark"] .messenger-block :is(.inbox-quick-reply, .inbox-quick-replies__manage) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block :is(
    .inbox-quick-reply:hover,
    .inbox-quick-reply.is-custom,
    .inbox-quick-replies__manage:hover
) {
    border-color: #315f47;
    color: #69d39a;
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .messenger-block .inbox-quick-replies-editor {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .messenger-block .inbox-quick-replies-editor
    :is(.inbox-quick-replies-editor__item, form) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .messenger-block .inbox-quick-replies-editor__item span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .inbox-quick-replies-editor textarea,
html[data-theme="dark"] .messenger-block .inbox-quick-replies-editor__actions button {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .messenger-block .inbox-plus-auto-reply { border-top-color: var(--fi-border) !important; }
html[data-theme="dark"] .messenger-block .inbox-plus-auto-reply__head strong { color: var(--fi-text); }
html[data-theme="dark"] .messenger-block .inbox-plus-auto-reply__head small { color: var(--fi-text-muted); }

html[data-theme="dark"] .messenger-block .message-compose-context {
    border-color: var(--fi-border);
    border-left-color: #4aa8f7;
    color: var(--fi-text);
    background: #171c21;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .messenger-block .message-compose-context-label {
    color: #73b9f5;
}

html[data-theme="dark"] .messenger-block .message-compose-context-text {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .message-compose-context-close {
    border: 1px solid var(--fi-border-soft);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .message-compose-context-close:hover,
html[data-theme="dark"] .messenger-block .message-compose-context-close:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    outline: none;
}

html[data-theme="dark"] .messenger-block .message-compose-context-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .16);
}

html[data-theme="dark"] .messenger-block .upload-zone {
    border-top-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .messenger-block .upload-zone .file-card {
    border-color: var(--fi-border);
    background: #14181b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .messenger-block .upload-zone .file-card:hover,
html[data-theme="dark"] .messenger-block .upload-zone .file-card:focus-within {
    border-color: #4b6f8b;
}

html[data-theme="dark"] .messenger-block .upload-zone .file-card .content-container {
    background: #14181b;
}

html[data-theme="dark"] .messenger-block .upload-zone .file-name {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .upload-zone .btn-remove {
    border: 1px solid #495159;
    color: var(--fi-text);
    background: #252b30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .messenger-block .upload-zone .btn-remove:hover,
html[data-theme="dark"] .messenger-block .upload-zone .btn-remove:focus-visible {
    border-color: #77505a;
    background: #4a252d;
    outline: none;
}

html[data-theme="dark"] .messenger-block .upload-zone .btn-remove img {
    filter: brightness(0) invert(1);
    opacity: .9;
}

html[data-theme="dark"] .messenger-block .upload-zone .progress-bar {
    background: repeating-linear-gradient(
        -45deg,
        #23c366,
        #23c366 10px,
        #1f2b25 10px,
        #1f2b25 20px
    );
    background-size: 28px 28px;
}

html[data-theme="dark"] .messenger-block .individual-order-message {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .messenger-block .individual-order-message .individual-order-message-header {
    border-bottom: 1px solid #29465f;
    color: var(--fi-text);
    background: #17242e;
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-card-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-status-text.is-pending {
    border-color: #675726;
    color: #f1cd70;
    background: #302919;
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-status-text.is-accepted {
    border-color: #315d43;
    color: #8fe0aa;
    background: #1b2b23;
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-status-text.is-cancelled {
    border-color: #67333d;
    color: #ff9b9f;
    background: #371d23;
}

html[data-theme="dark"] .messenger-block .individual-order-message .individual-order-message-content {
    background: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .individual-order-message
    .individual-order-message-content .individual-order-details {
    border: 1px solid var(--fi-border-soft);
    background: #14181b;
}

html[data-theme="dark"] .messenger-block .individual-order-message-content
    .individual-order-details .part1 {
    color: #73b9f5;
}

html[data-theme="dark"] .messenger-block .individual-order-message-content
    .individual-order-details .part1:hover,
html[data-theme="dark"] .messenger-block .individual-order-message-content
    .individual-order-details .part1:focus-visible {
    color: #9bcfff;
}

html[data-theme="dark"] .messenger-block .individual-order-message-content
    .individual-order-details .part2 .order-time {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .individual-order-message-content
    .individual-order-details .part2 .order-price {
    color: #8fe0aa;
}

html[data-theme="dark"] .messenger-block .individual-order-message .individual-order-conditions,
html[data-theme="dark"] .messenger-block .individual-order-message .offer-subtitle {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .individual-order-message .individual-order-description {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .individual-order-message .payment-methods-details,
html[data-theme="dark"] .messenger-block .no-thanks-container .get-offer-container .offer-time {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .individual-order-message-content .individual-order-summary {
    border-top: 1px solid var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .individual-order-message-content
    .individual-order-summary span:last-child {
    color: #8fe0aa;
}

html[data-theme="dark"] .messenger-block .individual-order-message-footer {
    border-top: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .individual-order-message-footer p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block :is(
    .no-thanks-container .no-thanks-button,
    .individual-order-message-footer .cancel-button
) {
    border-color: #495159;
    color: var(--fi-text-secondary);
    background: #252b30;
    box-shadow: none;
}

html[data-theme="dark"] .messenger-block :is(
    .no-thanks-container .no-thanks-button,
    .individual-order-message-footer .cancel-button
):hover,
html[data-theme="dark"] .messenger-block :is(
    .no-thanks-container .no-thanks-button,
    .individual-order-message-footer .cancel-button
):focus-visible {
    border-color: #77505a;
    color: #ffb0b3;
    background: #4a252d;
    outline: none;
}

html[data-theme="dark"] .messenger-block .individual-order-message-footer .repeat-order-button {
    border-color: #23c366;
    color: #72d990;
    background: transparent;
}

html[data-theme="dark"] .messenger-block .no-thanks-container
    .get-offer-container .buy-for-price-button {
    border-color: #23c366;
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .messenger-block .no-thanks-container
    .get-offer-container .buy-for-price-button:hover,
html[data-theme="dark"] .messenger-block .no-thanks-container
    .get-offer-container .buy-for-price-button:focus-visible {
    border-color: #1eae5a;
    background: #1eae5a;
    outline: none;
}

@media (max-width: 767px) {
    html[data-theme="dark"] .messenger-block .individual-order-message-content
        .individual-order-details .part2 .order-time {
        border-color: var(--fi-border);
        background: var(--fi-surface-raised);
    }

    html[data-theme="dark"] .messenger-block .individual-order-message-content
        .individual-order-details .part2 .order-price {
        border-color: #315d43;
        background: #1b2b23;
    }
}

html[data-theme="dark"] .messenger-block .forbidden-word-warning.chat-warning {
    border-color: #68592f;
    color: #e6d7a8;
    background: #29271f;
}

html[data-theme="dark"] .messenger-block .respond-in-24-hours .inbox-respond-tooltip-text {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .messenger-block .respond-in-24-hours
    .inbox-respond-tooltip-text::before {
    border-color: transparent transparent var(--fi-surface-raised) transparent;
}

html[data-theme="dark"] .messenger-block .respond-in-24-hours
    .inbox-respond-tooltip-text :is(h4, p) {
    color: inherit;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .control-panel-buttons :is(
    .cp-button,
    .send-message-button
) {
    border: 1px solid var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised) !important;
    box-shadow: none;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons :is(
    .icon-sticker,
    .icon-send,
    .icon-microphone
) {
    background-color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .control-panel-buttons :is(
    .cp-button,
    .send-message-button
):hover,
html[data-theme="dark"] .messenger-block .control-panel-buttons :is(
    .cp-button,
    .send-message-button
):focus-visible,
html[data-theme="dark"] .messenger-block .control-panel-buttons .cp-button.is-open {
    border-color: #37698f !important;
    color: #73b9f5;
    background: #172a3a !important;
    outline: none;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons :is(
    .cp-button,
    .send-message-button
):hover :is(.icon-sticker, .icon-send, .icon-microphone),
html[data-theme="dark"] .messenger-block .control-panel-buttons :is(
    .cp-button,
    .send-message-button
):focus-visible :is(.icon-sticker, .icon-send, .icon-microphone),
html[data-theme="dark"] .messenger-block .control-panel-buttons
    .cp-button.is-open .icon-sticker {
    background-color: #73b9f5;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-voice-mode:not(.is-recording) {
    border-color: var(--fi-border) !important;
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-voice-mode:not(.is-recording):hover,
html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-voice-mode:not(.is-recording):focus-visible {
    border-color: #37698f !important;
    background: #172a3a !important;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-voice-mode:not(.is-recording)
    .icon-microphone {
    background-color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-voice-mode:not(.is-recording):hover
    .icon-microphone,
html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-voice-mode:not(.is-recording):focus-visible
    .icon-microphone {
    background-color: #73b9f5;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.active {
    border-color: #285b42 !important;
    background: #173426 !important;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.active .icon-send {
    background-color: #69d39a;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-recording {
    border-color: #67333d !important;
    background: #371d23 !important;
}

html[data-theme="dark"] .messenger-block .control-panel-buttons
    .send-message-button.is-recording .icon-microphone {
    background-color: #ff858a;
}

html[data-theme="dark"] .messenger-block .attach-file-label {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .attach-file-label:hover,
html[data-theme="dark"] .messenger-block .attach-file-label:focus-within {
    color: #73b9f5;
}

html[data-theme="dark"] .messenger-block .stickers-container {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .messenger-block .stickers-container h3 {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .messenger-block .stickers-wrapper img:hover {
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .messenger-block :is(
    .contacts-block,
    .messages-container
)::-webkit-scrollbar-thumb {
    background: #454b52;
}

html[data-theme="dark"] .phone-header,
html[data-theme="dark"] .logo-burger-login-block,
html[data-theme="dark"] .mobile-navigation-menu,
html[data-theme="dark"] .mobile-menu {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] :where(.fiwork-footer, .footer-area, .footer-container, footer:not(.community-post__footer)) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background-color: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] :where(.fiwork-footer, .footer-area, .footer-container) :where(h2, h3, h4, strong, a) {
    color: var(--fi-text-secondary);
}

/* Resume editor: use the same dark digest shell as the Earn section. */
html[data-theme="dark"] body.fiwork-page-resume-create,
html[data-theme="dark"] .main-block:has(> .main-container > .resume-create-page) {
    color: var(--fi-text);
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-block:has(> .main-container > .resume-create-page) {
    min-height: calc(100vh - 260px);
    padding-right: 20px;
    padding-left: 20px;
    align-items: flex-start;
}

html[data-theme="dark"] .main-container:has(> .resume-create-page) {
    width: 100%;
    max-width: 1240px;
    margin: 24px auto;
    padding: 8px;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible !important;
    border: 1px solid var(--fi-border) !important;
    border-radius: 18px;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .resume-create-page {
    width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .resume-create-shell {
    max-width: none;
}

html[data-theme="dark"] :is(
    .resume-form-card,
    .resume-publish-card,
    .resume-tip-card
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .resume-repeater-row {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] :is(
    .resume-create-intro h1,
    .resume-form-card__head h2,
    .resume-publish-card h3,
    .resume-field > span,
    .resume-public-toggle strong
) {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(
    .resume-create-breadcrumb,
    .resume-create-intro p,
    .resume-form-card__head p,
    .resume-publish-card p,
    .resume-tip-card p,
    .resume-about-actions > span
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .resume-create-breadcrumb a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .resume-location-field > label {
    color: var(--fi-text);
}

html[data-theme="dark"] .resume-location-results {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: var(--fi-shadow);
}

html[data-theme="dark"] .resume-location-option {
    color: var(--fi-text);
}

html[data-theme="dark"] :is(
    .resume-location-option:hover,
    .resume-location-option.is-active
) {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] :is(
    .resume-location-option small,
    .resume-location-empty,
    .resume-location-combobox > svg
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .resume-create-intro__icon {
    border-color: var(--fi-border);
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] :is(
    .resume-create-intro > a,
    .resume-row-remove
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .resume-form-card__head > span {
    color: #5bd27c;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .resume-form-card__head button {
    color: #62d981;
    background: rgba(35, 195, 102, .12);
}

@media (max-width: 899.98px) {
    html[data-theme="dark"] .main-block:has(> .main-container > .resume-create-page) {
        padding-right: 12px;
        padding-left: 12px;
    }

    html[data-theme="dark"] .main-container:has(> .resume-create-page) {
        margin: 14px auto;
        padding: 6px;
        border-radius: 16px;
    }

    html[data-theme="dark"] .resume-create-page {
        padding: 12px;
    }
}

html[data-theme="dark"] :where(
    .community-digest,
    .dashboard-blog-digest,
    .community-blog__main,
    .community-blog__aside,
    .community-blog__right,
    .freelancer-main-info,
    .freelancer-info-container,
    .freelancer-portfolio-block,
    .reviews-about-freelancer-block,
    .profile-reviews-digest,
    .profile-portfolio-digest,
    .profile-rating-digest,
    .identity-certificate,
    .services-block,
    .service-main-digest,
    .about-service-digest,
    .service-variant-digest,
    .service-price-digest,
    .freelancer-profile-digest,
    .safe-deal-digest,
    .ask-freelancer-digest,
    .my-orders-block,
    .new-in-stock-block,
    .freelancer-activities-container,
    .freelancer-messages-container,
    .ai-agent-container,
    .settings-part,
    .settings-panel,
    .business-team-card,
    .business-team-panel,
    .business-team-modal__dialog,
    .modal-content,
    .modal-dialog,
    .modal-window,
    .accordion-item
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background-color: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-theme="dark"]
    .freelancer-info-container.community-blog__main.dashboard-profile-digest {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] :where(
    .community-digest,
    .dashboard-blog-digest,
    .community-blog__main,
    .freelancer-main-info,
    .freelancer-info-container,
    .freelancer-portfolio-block,
    .profile-reviews-digest,
    .services-block,
    .settings-panel,
    .business-team-modal__dialog
) :where(h1, h2, h3, h4, h5, strong, b) {
    color: var(--fi-text);
}

html[data-theme="dark"] :where(
    .community-digest,
    .dashboard-blog-digest,
    .community-blog__main,
    .freelancer-main-info,
    .freelancer-info-container,
    .freelancer-portfolio-block,
    .profile-reviews-digest,
    .services-block,
    .settings-panel,
    .business-team-modal__dialog
) :where(p, small, time, label, figcaption) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] :where(
    .reviewer-review,
    .freelancer-response-container,
    .community-post,
    .community-author-card,
    .dashboard-widget,
    .portfolio-elem,
    .service-card,
    .project-card,
    .business-team-member-card,
    .privacy-settings-option,
    .routine-container,
    .filter-block,
    .services-filter-container,
    .requiredInfo-block
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background-color: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] :where(
    .similar-to-search-block,
    .additional-services-block,
    .home-swiper-section
) {
    border-color: var(--fi-border) !important;
}

html[data-theme="dark"] :where(
    .similar-to-search-block,
    .additional-services-block
) :where(.ad-container, .home-swiper-skeleton-card) {
    border-color: #353b41 !important;
    background-color: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] :where(
    .similar-to-search-block,
    .additional-services-block
) .ad-container:hover {
    border-color: #464d54 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] :where(
    .similar-to-search-block,
    .additional-services-block
) :where(.service-data-container, .home-swiper-skeleton-footer) {
    border-top-color: var(--fi-border) !important;
}

html[data-theme="dark"] :where(
    .similar-to-search-block,
    .additional-services-block
) :where(h2, h3, .freelancer-username, .service-price-num) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .similar-to-search-header .arrow-right-small-icon {
    color: var(--fi-text);
}

html[data-theme="dark"] :where(
    .similar-to-search-block,
    .additional-services-block
) :where(.rating-text, .service-price-text, .rating-stars p) {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .similar-to-search-block .shadow {
    background: linear-gradient(90deg, rgba(26, 29, 32, 0) 0%, #101214 100%);
}

html[data-theme="dark"] :where(
    .home-swiper-skeleton-media,
    .home-swiper-skeleton-line,
    .home-swiper-skeleton-avatar
) {
    background: linear-gradient(90deg, #252a2f 0%, #30363c 50%, #252a2f 100%);
    background-size: 220% 100%;
}

html[data-theme="dark"] :where(
    .similar-to-search-controls,
    .carousel-controls
) img {
    filter: brightness(0) invert(.78);
}

html[data-theme="dark"] .carousel-controls,
html[data-theme="dark"] .carousel-controls button,
html[data-theme="dark"] .similar-to-search-controls,
html[data-theme="dark"] .similar-to-search-controls button {
    background: transparent;
}

html[data-theme="dark"] .carousel-controls button,
html[data-theme="dark"] .similar-to-search-controls button {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .carousel-controls button:hover,
html[data-theme="dark"] .similar-to-search-controls button:hover {
    color: var(--fi-accent);
    background: rgba(74, 168, 247, .1);
}

html[data-theme="dark"] .carousel-controls button:disabled,
html[data-theme="dark"] .carousel-controls button.swiper-button-disabled,
html[data-theme="dark"] .similar-to-search-controls button:disabled,
html[data-theme="dark"] .similar-to-search-controls button.swiper-button-disabled {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .services-nav-container3 {
    border-color: var(--fi-border) !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .services-nav-container3 h3 {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .services-nav-container3 p {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .services-nav-container3 input[type="button"] {
    border: 1px solid #338fdc;
    color: #fff;
    background: #2196f3;
}

html[data-theme="dark"] .services-nav-container3 input[type="button"]:hover,
html[data-theme="dark"] .services-nav-container3 input[type="button"]:focus {
    border-color: #59adf2;
    color: #fff;
    background: #1687df;
}

html[data-theme="dark"] .services-nav-container1 .service-nav-elem {
    border: 1px solid #343a40;
    color: var(--fi-text);
    background-color: #202428;
}

html[data-theme="dark"] .services-nav-container1 .service-nav-elem span {
    color: var(--fi-text) !important;
    text-shadow: none;
}

html[data-theme="dark"] .services-nav-container1 .service-nav-elem:hover {
    border-color: #454c53;
    color: #fff;
    background-color: #272c31;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .home-opportunities__header h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .home-opportunities__header p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .introduce-logos .logo-container .vc-ru {
    opacity: .3;
}

html[data-theme="dark"] .introduce-logos .logo-container .vc-ru path {
    fill: #a0a0a0;
}

html[data-theme="dark"] .start-earning-steps-container {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .start-earning-banner-container {
    background: #1a1d20;
}

html[data-theme="dark"] .start-earning-banner-text .become-freelancer {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .start-earning-banner-text .become-freelancer:hover {
    border-color: #41474e;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .start-earning-banner-text .become-freelancer span,
html[data-theme="dark"] .start-earning-banner-text .become-freelancer .arrow-right-blue-icon {
    color: var(--fi-text);
}

html[data-theme="dark"] .start-earning-steps-container h3,
html[data-theme="dark"] .start-earning-step p {
    color: var(--fi-text);
}

html[data-theme="dark"] .start-earning-step .start-earning-step-num {
    color: #9b95ff;
    background: rgba(111, 103, 255, .16);
}

html[data-theme="dark"] .start-earning-step2 .start-earning-step-num {
    color: #ff9574;
    background: rgba(255, 102, 54, .15);
}

html[data-theme="dark"] .start-earning-step3 .start-earning-step-num {
    color: #ff8585;
    background: rgba(227, 68, 68, .15);
}

html[data-theme="dark"] .start-earning-step4 .start-earning-step-num {
    color: #69db76;
    background: rgba(35, 189, 51, .15);
}

html[data-theme="dark"] .additional-apps-block {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .additional-apps-text h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .additional-apps-text p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .additional-apps-intro p {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .additional-apps-platforms a {
    border-radius: 13px;
    outline: 1px solid var(--fi-border);
    outline-offset: -1px;
    transition: outline-color .18s ease, opacity .18s ease;
}

html[data-theme="dark"] .additional-apps-platforms a:hover {
    outline-color: #4a5158;
}

html[data-theme="dark"] #fiwork-auth-overlay.active {
    background: rgba(4, 6, 8, .68);
}

html[data-theme="dark"] #modal__login.modal {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] #modal__login .modal__close {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__login .modal__close:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #modal__login .modal__close path {
    fill: currentColor;
}

html[data-theme="dark"] #modal__login .modal__form-title,
html[data-theme="dark"] #modal__login .bottomBox__title,
html[data-theme="dark"] #modal__login .checkbox__box label {
    color: var(--fi-text);
}

html[data-theme="dark"] #modal__login .modal__form-subTitle,
html[data-theme="dark"] #modal__login .fiwork-auth-captcha-note,
html[data-theme="dark"] #modal__login .modal__privacy {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #modal__login .modal__form-input {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] #modal__login .modal__form-input:focus {
    border-color: var(--fi-accent) !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .12);
}

html[data-theme="dark"] #modal__login .modal__form-input::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] #modal__login .modal__form-checkbox {
    accent-color: var(--fi-accent);
}

html[data-theme="dark"] #modal__login .fiwork-auth-password-icon {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] #modal__login .modal__login-forgot {
    color: var(--fi-accent);
}

html[data-theme="dark"] #modal__login .modal__login-forgot:hover {
    color: #87c7fc;
}

html[data-theme="dark"] #modal__login .bottomBox {
    border-top: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #modal__login .bottomBox__social-item {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__login .bottomBox__social-item:hover {
    border-color: #454c53;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #modal__login .bottomBox__social-item img[src*="login-apple.svg"] {
    filter: brightness(0) invert(.92);
}

html[data-theme="dark"] #modal__login .modal__login-regBtn {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__login .modal__login-regBtn:hover {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] #modal__login .modal__privacy a:hover {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #modal__login .fiwork-auth-message-block .form-message.error {
    color: #ff9a9a;
    background: rgba(239, 68, 68, .13);
}

html[data-theme="dark"] #modal__reg.modal {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] #modal__reg .modal__close {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__reg .modal__close:hover {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #modal__reg .modal__close path {
    fill: currentColor;
}

html[data-theme="dark"] #modal__reg .modal__form-title,
html[data-theme="dark"] #modal__reg .bottomBox__title,
html[data-theme="dark"] #modal__reg .role-title {
    color: var(--fi-text);
}

html[data-theme="dark"] #modal__reg .modal__form-subTitle,
html[data-theme="dark"] #modal__reg .role-subtitle,
html[data-theme="dark"] #modal__reg .fiwork-auth-captcha-note,
html[data-theme="dark"] #modal__reg .modal__privacy {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #modal__reg .modal__form-input {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] #modal__reg .modal__form-input:focus {
    border-color: var(--fi-accent) !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .12);
}

html[data-theme="dark"] #modal__reg .modal__form-input::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] #modal__reg .fiwork-auth-password-icon {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] #modal__reg .role-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #modal__reg .role-card:hover {
    border-color: #4d5964;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__reg .role-circle {
    border-color: #59616a;
}

html[data-theme="dark"] #modal__reg .role-radio:checked + .role-card {
    border-color: var(--fi-accent);
    background: rgba(74, 168, 247, .11);
}

html[data-theme="dark"] #modal__reg .role-radio:checked + .role-card .role-circle {
    border-color: var(--fi-accent);
}

html[data-theme="dark"] #modal__reg .role-radio:checked + .role-card .role-circle::after {
    background: var(--fi-accent);
}

html[data-theme="dark"] #modal__reg .bottomBox {
    border-top: 1px solid var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #modal__reg .bottomBox__social-item {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__reg .bottomBox__social-item:hover {
    border-color: #454c53;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #modal__reg .bottomBox__social-item img[src*="login-apple.svg"] {
    filter: brightness(0) invert(.92);
}

html[data-theme="dark"] #modal__reg .modal__privacy a:hover {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #modal__reg .fiwork-auth-inline-message,
html[data-theme="dark"] #modal__reg .fiwork-auth-message-block .form-message.error {
    border-color: rgba(239, 68, 68, .45);
    color: #ff9a9a;
    background: rgba(239, 68, 68, .13);
}

html[data-theme="dark"] .social-sites-container .footer-social-link {
    color: #7f8892;
}

html[data-theme="dark"] .social-sites-container .twitter-icon {
    --footer-twitter-bg: #737c86;
}

html[data-theme="dark"] .social-sites-container .vk-icon {
    --footer-vk-fill: #737c86;
}

html[data-theme="dark"] .social-sites-container .dzen-icon {
    --footer-dzen-bg: #737c86;
}

html[data-theme="dark"] .social-sites-container .telegram-icon {
    --footer-telegram-bg: #737c86;
}

html[data-theme="dark"] .social-sites-container .skolkovo-icon {
    --footer-skolkovo-bg: #737c86;
    --footer-skolkovo-mark: #1a1d20;
    --footer-skolkovo-text: #aab2ba;
}

html[data-theme="dark"] .social-sites-container .footer-social-link:hover .twitter-icon {
    --footer-twitter-bg: #4d5660;
}

html[data-theme="dark"] .social-sites-container .footer-social-link:hover .vk-icon {
    --footer-vk-fill: #4a9cf6;
}

html[data-theme="dark"] .social-sites-container .footer-social-link:hover .dzen-icon {
    --footer-dzen-bg: #4d5660;
}

html[data-theme="dark"] .social-sites-container .footer-social-link:hover .telegram-icon {
    --footer-telegram-bg: #35a9e8;
}

html[data-theme="dark"] .social-sites-container .footer-social-link:hover .skolkovo-icon {
    --footer-skolkovo-bg: #b2ed52;
    --footer-skolkovo-mark: #28312e;
    --footer-skolkovo-text: #b2ed52;
}

html[data-theme="dark"] :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
    textarea,
    select,
    .select2-selection,
    [contenteditable="true"]
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background-color: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] :where(
    input,
    textarea
)::placeholder {
    color: var(--fi-text-muted) !important;
    opacity: 1;
}

html[data-theme="dark"] :where(
    hr,
    .profile-border-bottom,
    .underlineBorder,
    .dashboard-blog-digest__header,
    .reviews-about-freelancer-header,
    .freelancer-portfolio-header,
    .review-order-meta
) {
    border-color: var(--fi-border-soft) !important;
}

html[data-theme="dark"] :where(
    .pagination,
    .dropdown-menu,
    .select2-dropdown,
    .tooltip-text,
    .controls-container
) {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: var(--fi-shadow);
}

html[data-theme="dark"] a {
    text-decoration-color: currentColor;
}

html[data-theme="dark"] ::selection {
    color: #fff;
    background: #247fc7;
}

html[data-theme="dark"] * {
    scrollbar-color: #454b52 var(--fi-bg-soft);
}

html[data-theme="dark"] *::-webkit-scrollbar-track {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
    border: 2px solid var(--fi-bg-soft);
    border-radius: 999px;
    background: #454b52;
}

/* Service page: title, breadcrumbs and actions header. */
html[data-theme="dark"] .service-main-digest .main-content-header {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface-raised) !important;
    box-shadow: none;
}

html[data-theme="dark"] .service-main-digest .main-content-header :is(h1, h2) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .service-main-digest .main-content-header .mini-nav a {
    color: #69b7ff;
}

html[data-theme="dark"] .service-main-digest .main-content-header .mini-nav a:hover {
    color: #93cbff;
}

html[data-theme="dark"] .service-main-digest .main-content-header .mini-nav__separator {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .service-main-digest .main-content-header :is(
    .like-container,
    .share-icon-container,
    .service-report-button
) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-main-digest .main-content-header :is(
    .share-icon-container,
    .service-report-button
):hover {
    border-color: rgba(105, 183, 255, .52);
    color: #69b7ff;
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .service-main-digest .main-content-header .like-container:hover,
html[data-theme="dark"] .service-main-digest .main-content-header .like-container.is-active {
    border-color: rgba(255, 107, 107, .48);
    color: #ff8585;
    background: rgba(255, 77, 79, .12);
}

/* Service page: package accordion in the aside column. */
html[data-theme="dark"] .aside-accordion-nav.aside-accordion-block {
    color: var(--fi-text);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header {
    border-bottom-color: transparent;
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header:hover {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header.active {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header p {
    color: var(--fi-text);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header .service-price {
    color: #72c858;
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header .plus {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-header .plus img {
    filter: brightness(0) invert(.78);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-body {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-body .order-details h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest .accordion-body .order-detail {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .aside-accordion-block .service-price-digest :is(
    .select-additional-services,
    .order-now-container
) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services-header,
html[data-theme="dark"] .aside-accordion-block .additional-service-block p {
    color: var(--fi-text);
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services-header p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services-header p > .simple-text {
    border-color: var(--fi-text-muted);
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services .additional-service-block {
    border-color: var(--fi-border-soft);
    background: transparent;
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services .additional-service-block:hover {
    background: rgba(255, 255, 255, .025);
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services .additional-service-block.selected {
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .aside-accordion-block .additional-service-block .additional-service-price {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .aside-accordion-block .additional-service-block.selected .additional-service-price {
    color: #72d38e;
    background: rgba(35, 195, 102, .16);
}

html[data-theme="dark"] .aside-accordion-block .additional-service-checkbox {
    accent-color: #23c366;
}

html[data-theme="dark"] .aside-accordion-block .close-open-options div {
    color: #69b7ff;
}

/* Service page: verification and seller-report cards. */
html[data-theme="dark"] .service-details-page .verification-block > :is(
    .documents-verified-container,
    .rush-order-block
) {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    box-shadow: none;
    transition: border-color .18s ease, background-color .18s ease;
}

html[data-theme="dark"] .service-details-page .verification-block .documents-verified-container.verification-container {
    border-color: rgba(71, 164, 235, .28);
    background: rgba(33, 150, 243, .11);
}

html[data-theme="dark"] .service-details-page .verification-block .documents-verified-container.unverification-container {
    border-color: rgba(244, 105, 105, .27);
    background: rgba(239, 68, 68, .09);
}

html[data-theme="dark"] .service-details-page .verification-block .rush-order-block.verification-container {
    border-color: rgba(76, 201, 121, .27);
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .service-details-page .verification-block > :is(
    .documents-verified-container,
    .rush-order-block
):hover {
    border-color: #4a5159;
    background-color: var(--fi-surface-raised);
}

html[data-theme="dark"] .service-details-page .verification-block :is(
    .verification-container,
    .unverification-container
) :is(h3, p) {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .verification-block .verification-block-content p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .verification-block .chevron-right {
    filter: brightness(0) invert(.72);
}

/* Service page: seller profile card. */
html[data-theme="dark"] .service-details-page .freelancer-profile-digest.freelancer-profile-data-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-info-container {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-info-container .freelancer-avatar-container {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-info-content .freelancer-name {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-info-content .freelancer-name:hover,
html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-username:hover {
    color: #69b7ff;
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest :is(
    .freelancer-profile-username,
    .freelancer-profile-presence,
    .freelancer-profile-info-content .in-site-from,
    .freelancer-profile-registration-date,
    .freelancer-profile-stat
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-presence.is-online {
    color: #63d787;
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-level {
    color: #69b7ff;
    background: rgba(33, 150, 243, .13);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-registration-date,
html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-stat + .freelancer-profile-stat,
html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-verified-container {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest :is(
    .freelancer-profile-registration-date,
    .freelancer-profile-stat
) > svg {
    color: #84919b;
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-stat > strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-stat > small .is-positive {
    color: #72d38e;
    background: rgba(35, 195, 102, .15);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-stat > small .is-negative {
    color: #ff8f9e;
    background: rgba(247, 34, 87, .14);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .send-message-to-freelancer {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .send-message-to-freelancer:hover {
    border-color: #4a5159;
    color: #69b7ff;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .send-message-to-freelancer .blue-messaging-icon {
    filter: brightness(1.25);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest .freelancer-profile-verified-content p,
html[data-theme="dark"] .service-details-page .freelancer-profile-digest .orders-finished-container p {
    color: var(--fi-text-secondary);
}

/* Service page: safe-deal guarantees card. */
html[data-theme="dark"] .service-details-page .safe-deal-digest.safe-deal-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest .money-back-guarantee-block {
    border-top-color: var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest :is(
    .safe-deal-container,
    .money-back-guarantee-block
) p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest :is(
    .safe-deal-container,
    .money-back-guarantee-block
) img {
    filter: brightness(1.12) saturate(.92);
}

/* Service page: ask-the-seller card. */
html[data-theme="dark"] .service-details-page .ask-freelancer-digest.ask-freelancer-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest.ask-freelancer-block h3 {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .ask-freelancer-textarea textarea {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .ask-freelancer-textarea textarea::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .ask-freelancer-textarea textarea:focus {
    border-color: #4f7696 !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .1);
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .ask-freelancer-textarea .send-message-icon {
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .ask-freelancer-textarea .send-message-icon:hover {
    color: #69b7ff;
    background: rgba(33, 150, 243, .13);
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .question-templates .question-template {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-details-page .ask-freelancer-digest .question-templates .question-template:hover {
    border-color: #4a5159;
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    opacity: 1;
}

/* Service page: service description and order requirements. */
html[data-theme="dark"] .service-details-page .about-service-digest.about-this-service-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .about-service-digest.about-this-service-block > h2 {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .about-service-digest :is(
    .description-text,
    .requiredInfo-text
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .about-service-digest :is(
    .description-text,
    .requiredInfo-text
) :is(p, li) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .about-service-digest :is(
    .description-text,
    .requiredInfo-text
) :is(strong, b, h2, h3, h4) {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .about-service-digest :is(
    .description-text,
    .requiredInfo-text
) a {
    color: #69b7ff;
}

html[data-theme="dark"] .service-details-page .about-service-digest :is(
    .description-text,
    .requiredInfo-text
) a:hover {
    color: #93cbff;
}

html[data-theme="dark"] .service-details-page .about-service-digest :is(
    .description-text,
    .requiredInfo-text
) li::marker {
    color: #72c858;
}

html[data-theme="dark"] .service-details-page .about-service-digest .requiredInfo-block {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .service-details-page .about-service-digest .requiredInfo-title {
    color: var(--fi-text);
}

/* Service page: image-slider navigation. */
html[data-theme="dark"] .service-details-page .slider-controls > :is(
    .slider-button-prev,
    .slider-button-next
) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: rgba(34, 38, 42, .9);
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .slider-controls > :is(
    .slider-button-prev,
    .slider-button-next
):hover {
    border-color: rgba(105, 183, 255, .42);
    color: #69b7ff;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .service-details-page .slider-screen-wrapper.full-screen-wrapper .slider-controls > :is(
    .slider-button-prev,
    .slider-button-next
) {
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
    background: rgba(25, 28, 32, .78);
}

html[data-theme="dark"] .service-details-page .slider-screen-wrapper:not(.full-screen-wrapper) :is(
    .slider-screen-container,
    .service-photo-slider,
    .swiper-main,
    .swiper-wrapper,
    .swiper-slide
) {
    background-color: #454b52 !important;
}

html[data-theme="dark"] .service-details-page .slider-screen-wrapper:not(.full-screen-wrapper) .swiper-main .swiper-slide {
    outline: 1px solid #454b52;
    outline-offset: -1px;
    backface-visibility: hidden;
}

html[data-theme="dark"] .service-details-page .slider-screen-wrapper:not(.full-screen-wrapper) .swiper-main .swiper-slide::before {
    background-color: #454b52;
}

/* Service page: send-message modal. */
html[data-theme="dark"] #projectSendMessageModal.send-message-modal-block-container {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-close {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-close img {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-header {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-header p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-block-freelancer {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-block-freelancer .img-container {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-block-freelancer .freelancer-info .freelancer-name {
    color: var(--fi-text);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-block-freelancer .freelancer-info .working-hours {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-textarea {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
    box-shadow: none;
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-textarea::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] #projectSendMessageModal .send-message-modal-block-textarea:focus {
    border-color: #4f7696 !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .11);
}

html[data-theme="dark"] #projectSendMessageModal .add-file-area-container {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #projectSendMessageModal .add-file-area span {
    color: #69b7ff;
}

html[data-theme="dark"] #projectSendMessageModal .add-file-area-container p,
html[data-theme="dark"] #projectSendMessageModal .attached-files-title {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #projectSendMessageModal .attached-file-item {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #projectSendMessageModal .attached-file-preview {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #projectSendMessageModal .attached-file-preview.is-file {
    background: linear-gradient(135deg, #263646 0%, #293e55 100%);
}

html[data-theme="dark"] #projectSendMessageModal .attached-file-extension {
    color: #69b7ff;
}

html[data-theme="dark"] #projectSendMessageModal .attached-file-name {
    color: var(--fi-text);
}

html[data-theme="dark"] #projectSendMessageModal .attached-file-meta {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #projectSendMessageModal .attached-files-list::-webkit-scrollbar-track {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #projectSendMessageModal .attached-files-list::-webkit-scrollbar-thumb {
    border: 0;
    background: #555d65;
}

html[data-theme="dark"] #projectSendMessageModal .alert-danger {
    border-color: rgba(247, 34, 87, .28);
    color: #ff9aab;
    background: rgba(247, 34, 87, .12);
}

/* Service page: package comparison table. */
html[data-theme="dark"] .service-details-page .service-variant-digest.select-service-variant-block {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .service-variant-digest.select-service-variant-block > h2 {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table table {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table :is(th, td) {
    border-color: var(--fi-border-soft);
    color: var(--fi-text-secondary);
    background: var(--fi-surface);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table th {
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table :is(th, td):first-child {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table tr:nth-child(even),
html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table tr:nth-child(even) td {
    border-color: var(--fi-border-soft);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table .price-row td {
    border-color: var(--fi-border) !important;
    color: var(--fi-text-secondary);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table .price-row td:first-child {
    border-color: var(--fi-border) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table .price-row td strong {
    color: #72c858;
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table .active {
    border-color: rgba(105, 183, 255, .58);
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table .grey-checkmark {
    filter: brightness(0) invert(.66);
}

html[data-theme="dark"] .service-details-page .service-variant-digest .order-btn {
    color: #fff;
    background: #25c366;
}

html[data-theme="dark"] .service-details-page .service-variant-digest .order-btn:hover {
    color: #fff;
    background: #1fad5b;
}

/* Service page: report-service modal. */
html[data-theme="dark"] #service-report-modal-overlay.service-report-modal-overlay {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-modal {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-modal__close {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-modal__close:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-modal__icon {
    border-color: var(--fi-border);
    color: #69b7ff;
    background: var(--fi-bg-soft);
    box-shadow: none;
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-modal__header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-modal__header p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-reason {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-reason:hover {
    border-color: #4a5159;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-reason:has(input:checked) {
    border-color: rgba(105, 183, 255, .5);
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-reason input {
    accent-color: #2196f3;
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-reason strong {
    color: var(--fi-text);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-reason small {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-comment > span {
    color: var(--fi-text);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-comment textarea {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-bg-soft) !important;
    box-shadow: none;
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-comment textarea::placeholder {
    color: var(--fi-text-muted) !important;
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-comment textarea:focus {
    border-color: #4f7696 !important;
    background: var(--fi-surface-raised) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .11);
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-submit {
    color: #fff;
    background: #27c366;
}

html[data-theme="dark"] #service-report-modal-overlay .service-report-submit:hover,
html[data-theme="dark"] #service-report-modal-overlay .service-report-submit:focus-visible {
    color: #fff;
    background: #1ab95a;
}

/* Seller and buyer dashboards: AI assistant modal. */
html[data-theme="dark"] .fiwork-ai-modal {
    background: rgba(0, 0, 0, .72);
}

html[data-theme="dark"] .fiwork-ai-dialog {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .fiwork-ai-header {
    border-bottom-color: var(--fi-border-soft);
    background: linear-gradient(180deg, var(--fi-surface-raised) 0%, var(--fi-surface) 100%);
}

html[data-theme="dark"] .fiwork-ai-orb {
    background: #20364a;
}

html[data-theme="dark"] .fiwork-ai-orb::before {
    content: none;
}

html[data-theme="dark"] .fiwork-ai-title h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-ai-title p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-ai-close {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-ai-close img {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .fiwork-ai-close:hover,
html[data-theme="dark"] .fiwork-ai-close:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-ai-close:hover img,
html[data-theme="dark"] .fiwork-ai-close:focus-visible img {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .fiwork-ai-body {
    background: var(--fi-surface);
    scrollbar-color: var(--fi-border) var(--fi-surface);
}

html[data-theme="dark"] .fiwork-ai-action {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-ai-action:hover {
    border-color: #46515d;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-ai-action.is-active {
    border-color: rgba(105, 183, 255, .72);
    background: rgba(33, 150, 243, .12);
    box-shadow: inset 0 0 0 1px rgba(105, 183, 255, .08);
}

html[data-theme="dark"] .fiwork-ai-action__icon {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-ai-action.is-active .fiwork-ai-action__icon {
    background: rgba(33, 150, 243, .16);
}

html[data-theme="dark"] .fiwork-ai-action strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-ai-action small {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-ai-field > span {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-ai-field :is(textarea, select) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-ai-field textarea::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-ai-field :is(textarea, select):focus {
    border-color: #4f8fc5;
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .fiwork-ai-run {
    border-color: #2388e8;
    color: #fff;
    background: #2388e8;
}

html[data-theme="dark"] .fiwork-ai-run:hover:not(:disabled),
html[data-theme="dark"] .fiwork-ai-run:focus-visible:not(:disabled) {
    border-color: #3298f5;
    color: #fff;
    background: #3298f5;
}

html[data-theme="dark"] .fiwork-ai-loader {
    border-color: rgba(105, 183, 255, .28);
    background: rgba(33, 150, 243, .09);
}

html[data-theme="dark"] .fiwork-ai-loader__mark {
    background: rgba(33, 150, 243, .14);
}

html[data-theme="dark"] .fiwork-ai-loader strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-ai-loader p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-ai-result {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-ai-result__header {
    border-bottom-color: var(--fi-border-soft);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-ai-result__header span {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-ai-result__header button {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-ai-result__header button:hover,
html[data-theme="dark"] .fiwork-ai-result__header button:focus-visible {
    border-color: #454c53;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-ai-result__header button.is-copied,
html[data-theme="dark"] .fiwork-ai-suggestions button.is-copied,
html[data-theme="dark"] .fiwork-ai-suggestions button:first-child.is-copied {
    border-color: rgba(54, 196, 105, .38);
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .fiwork-ai-result pre {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-ai-suggestions button {
    color: #7cbdff;
    background: rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .fiwork-ai-suggestions button:hover,
html[data-theme="dark"] .fiwork-ai-suggestions button:focus-visible {
    color: #a6d3ff;
    background: rgba(33, 150, 243, .2);
}

html[data-theme="dark"] .fiwork-ai-suggestions button:first-child {
    color: #fff;
    background: #2388e8;
}

/* Seller and buyer dashboards: radar modal. */
html[data-theme="dark"] .fiwork-radar-modal {
    background: rgba(0, 0, 0, .72);
}

html[data-theme="dark"] .fiwork-radar-dialog {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .fiwork-radar-header {
    border-bottom-color: var(--fi-border-soft);
    background: linear-gradient(180deg, var(--fi-surface-raised) 0%, var(--fi-surface) 100%);
}

html[data-theme="dark"] .fiwork-radar-icon {
    background: #20364a;
}

html[data-theme="dark"] .fiwork-radar-title h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-radar-title p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-radar-close {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-radar-close img {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .fiwork-radar-close:hover,
html[data-theme="dark"] .fiwork-radar-close:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-radar-close:hover img,
html[data-theme="dark"] .fiwork-radar-close:focus-visible img {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .fiwork-radar-body {
    background: var(--fi-surface);
    scrollbar-color: var(--fi-border) var(--fi-surface);
}

html[data-theme="dark"] .fiwork-radar-field span {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-radar-field :is(textarea, select) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
    color-scheme: dark;
}

html[data-theme="dark"] .fiwork-radar-field textarea::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-radar-field :is(textarea, select):focus {
    border-color: #4f8fc5;
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .12);
}

html[data-theme="dark"] .fiwork-radar-more {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-radar-more span {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-radar-more img {
    filter: brightness(0) invert(.72);
}

html[data-theme="dark"] .fiwork-radar-more:hover,
html[data-theme="dark"] .fiwork-radar-more:focus-visible {
    border-color: #454c53;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-radar-button--ghost {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-radar-button--ghost:hover,
html[data-theme="dark"] .fiwork-radar-button--ghost:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-radar-button--primary {
    border-color: #2388e8;
    color: #fff;
    background: #2388e8;
}

html[data-theme="dark"] .fiwork-radar-button--primary:hover:not(:disabled),
html[data-theme="dark"] .fiwork-radar-button--primary:focus-visible:not(:disabled) {
    border-color: #3298f5;
    color: #fff;
    background: #3298f5;
}

html[data-theme="dark"] .fiwork-radar-loader {
    border-color: rgba(105, 183, 255, .28);
    background: rgba(33, 150, 243, .09);
}

html[data-theme="dark"] .fiwork-radar-loader__scope {
    border-color: rgba(105, 183, 255, .3);
    background:
        radial-gradient(circle, rgba(105, 183, 255, .34) 0 4px, transparent 5px),
        repeating-radial-gradient(circle, transparent 0 12px, rgba(105, 183, 255, .16) 13px 14px);
}

html[data-theme="dark"] .fiwork-radar-loader__scope::before {
    border-color: rgba(105, 183, 255, .24);
}

html[data-theme="dark"] .fiwork-radar-loader strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-radar-loader p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-radar-result-note {
    border-color: rgba(54, 196, 105, .3);
    background: rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .fiwork-radar-result-note span {
    color: #72d990;
}

html[data-theme="dark"] .fiwork-radar-result-note p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-radar-performer {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-radar-performer-avatar {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-radar-performer-top h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-radar-performer-top a {
    color: #7cbdff;
}

html[data-theme="dark"] .fiwork-radar-verified {
    color: #72d990;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .fiwork-radar-meta span {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-radar-performer-info > p {
    color: var(--fi-text-secondary);
}

/* Inbox: individual offer modal. */
html[data-theme="dark"] #offer_modal_block.individual-order-suggestion-modal-block {
    background: rgba(4, 6, 8, .76);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-modal-container {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .52);
    scrollbar-color: #4a5158 var(--fi-surface);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-modal-container::-webkit-scrollbar-track {
    background: var(--fi-surface);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-modal-container::-webkit-scrollbar-thumb {
    border-color: var(--fi-surface);
    background: #4a5158;
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header {
    border-bottom-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header span {
    color: #6db9f5;
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header h3,
html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-modal-container label {
    color: var(--fi-text);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header .x-close-icon {
    border: 1px solid var(--fi-border-soft);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header .x-close-icon:hover,
html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header .x-close-icon:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header .x-close-icon img {
    filter: brightness(0) invert(1);
    opacity: .78;
}

html[data-theme="dark"] #offer_modal_block .offer-mode-tabs {
    border-color: var(--fi-border);
    background: #14181b;
}

html[data-theme="dark"] #offer_modal_block .offer-mode-tabs button {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #offer_modal_block .offer-mode-tabs button:hover,
html[data-theme="dark"] #offer_modal_block .offer-mode-tabs button:focus-visible {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #offer_modal_block .offer-mode-tabs button.is-active {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-description {
    border-color: #29465f;
    background: #17242e;
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-description > i {
    color: #72baf5;
    background: #20394d;
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-description p {
    color: var(--fi-text);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-description ol,
html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-description div > span,
html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-text-length,
html[data-theme="dark"] #offer_modal_block .offer-individual__item-price-description {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-text-container textarea,
html[data-theme="dark"] #offer_modal_block .input-with-icon-container,
html[data-theme="dark"] #offer_modal_block select,
html[data-theme="dark"] #offer_modal_block .enter-price-input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] #offer_modal_block .input-with-icon-container input,
html[data-theme="dark"] #offer_modal_block .input-with-icon-container select {
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] #offer_modal_block :is(input, textarea)::placeholder {
    color: #747d86;
    opacity: 1;
}

html[data-theme="dark"] #offer_modal_block select option {
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] #offer_modal_block .input-with-icon-container img {
    filter: brightness(0) invert(1);
    opacity: .55;
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-text-container textarea:focus,
html[data-theme="dark"] #offer_modal_block input:focus,
html[data-theme="dark"] #offer_modal_block select:focus {
    border-color: #4aa8f7;
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .16);
}

html[data-theme="dark"] #offer_modal_block .offer-service-summary {
    border-color: #29465f;
    color: var(--fi-text-secondary);
    background: #17242e;
}

html[data-theme="dark"] #offer_modal_block .offer-service-summary strong {
    color: var(--fi-text);
}

html[data-theme="dark"] #offer_modal_block .offer-service-summary span {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #offer_modal_block .offer-service-empty {
    border-color: #604c28;
    color: #e8c675;
    background: #2b2519;
}

html[data-theme="dark"] #offer_modal_block .offer-individual__item-price-description strong {
    color: #72d990;
}

html[data-theme="dark"] #offer_modal_block .kwork-price-explanation {
    color: #6db9f5;
}

html[data-theme="dark"] #offer_modal_block .kwork-price-explanation:hover,
html[data-theme="dark"] #offer_modal_block .kwork-price-explanation:focus-visible {
    color: #9bcfff;
}

html[data-theme="dark"] #offer_modal_block .offer-commission-tooltip__bubble,
html[data-theme="dark"] #offer_modal_block .offer-commission-tooltip__bubble::after {
    border-color: #3c444c;
    background: #11161b;
}

html[data-theme="dark"] #offer_modal_block .submit-individual-order-suggestion-modal {
    background: #23c366;
    box-shadow: none;
}

html[data-theme="dark"] #offer_modal_block .submit-individual-order-suggestion-modal:hover {
    background: #1eae5a;
}

@media (max-width: 767px) {
    html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-header::before {
        background: #515960;
    }
}

/* Inbox: phone confirmation modal. */
html[data-theme="dark"] .phone-modal-block .modal-overlay {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
}

html[data-theme="dark"] .phone-modal-block .modal {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .phone-modal-block .modal h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .phone-modal-block .modal p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .phone-modal-block .rules label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .phone-modal-block .rules input[type="checkbox"] {
    accent-color: #23c366;
}

html[data-theme="dark"] .phone-modal-block .x-close-icon {
    color: var(--fi-text-secondary);
    filter: none;
}

html[data-theme="dark"] .phone-modal-block .x-close-icon:hover {
    color: var(--fi-text);
    filter: none;
}

html[data-theme="dark"] .phone-modal-block .btn-cancel {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .phone-modal-block .btn-cancel:hover,
html[data-theme="dark"] .phone-modal-block .btn-cancel:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .phone-modal-block .btn-accept {
    border-color: #23c366;
    color: #fff;
    background: #23c366;
    box-shadow: none;
}

html[data-theme="dark"] .phone-modal-block .btn-accept:hover:not(:disabled),
html[data-theme="dark"] .phone-modal-block .btn-accept:focus-visible:not(:disabled) {
    border-color: #1eae5a;
    color: #fff;
    background: #1eae5a;
}

html[data-theme="dark"] .phone-modal-block .btn-accept:disabled {
    border-color: #315940;
    color: rgba(255, 255, 255, .58);
    background: #254a33;
    cursor: not-allowed;
    opacity: 1;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-toggle {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-toggle:hover,
html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-toggle[aria-expanded="true"] {
    border-color: #365c44;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-toggle small,
html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-toggle > svg {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-toggle[aria-expanded="true"] > svg {
    color: #72d990;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container {
    border-color: #365c44;
    background: #171c20;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-option {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container :is(.option-name-input, select) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background-color: #14181b;
    box-shadow: none;
    color-scheme: dark;
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container :is(.option-name-input, select):focus {
    border-color: #4d9169;
    box-shadow: 0 0 0 3px rgba(77, 145, 105, .2);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container .option-name-input::placeholder,
html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container .option-name-count-container {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container .js-remove-paid-option {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container .js-remove-paid-option:hover {
    color: #f6a6a0;
    background: rgba(217, 45, 32, .14);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container .add-more {
    border-color: #365c44;
    color: #9de3b1;
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create
    .fiwork-editional-options-container .add-more:hover {
    border-color: #4d9169;
    color: #b8efc7;
    background: #1b2b23;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-container {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .46);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-icon {
    border-color: var(--fi-border);
    color: #72d990;
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-header p,
html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-prop-counter,
html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .round-question-icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-header .close-add-fiwork-option-modal-block {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-header .close-add-fiwork-option-modal-block:hover {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-prop-description label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-prop-input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
    box-shadow: none;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-prop-input:focus {
    border-color: #4d9169;
    box-shadow: 0 0 0 3px rgba(77, 145, 105, .2);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-prop-input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-checkbox label {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: #14181b;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-checkbox label:hover {
    border-color: #4d9169;
    color: #9de3b1;
    background: #19231e;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .option-checkbox input:checked + label {
    border-color: #4d9169;
    color: #9de3b1;
    background: #1b2b23;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .submit-modal-form {
    color: #fff;
    background: #3e9b61;
}

html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .submit-modal-form:hover,
html[data-theme="dark"] .main-block--service-create
    .add-fiwork-option-modal-wrapper .submit-modal-form:focus-visible {
    background: #46a96b;
}

html[data-theme="dark"] .footer-mobile-menu {
    border-top: 1px solid var(--fi-border-soft);
    background: #14181b;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .footer-mobile-menu .footer-mobile-elem {
    border-top-color: transparent;
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] .footer-mobile-menu .footer-mobile-elem:hover,
html[data-theme="dark"] .footer-mobile-menu .footer-mobile-elem:focus-visible {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .footer-mobile-menu .footer-mobile-elem.active {
    border-top-color: var(--fi-accent);
    color: var(--fi-accent);
}

html[data-theme="dark"] .footer-mobile-menu .footer-mobile-avatar {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .footer-mobile-menu .fiwork-header-orders-count,
html[data-theme="dark"] .footer-mobile-menu .fiwork-header-count-badge,
html[data-theme="dark"] .footer-mobile-menu .fiwork-header-action-count {
    color: #fff;
    background: #258cf4;
    box-shadow: 0 0 0 2px #14181b;
}

html[data-theme="dark"] .phone-header .mobile-navigation-menu {
    border-right: 1px solid var(--fi-border-soft);
    background: #14181b !important;
    box-shadow: 14px 0 34px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .mobile-navigation-menu .menu,
html[data-theme="dark"] .mobile-navigation-menu #menu-main .main-menu-search-and-login {
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] .mobile-navigation-menu :is(
    button,
    .mobile-menu-nav-link
) {
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .mobile-navigation-menu :is(
    button,
    .mobile-menu-nav-link
):hover,
html[data-theme="dark"] .mobile-navigation-menu :is(
    button,
    .mobile-menu-nav-link
):focus-visible {
    color: var(--fi-text);
}

html[data-theme="dark"] .mobile-navigation-menu .mobile-menu-nav-link--logout {
    color: #f07878;
}

html[data-theme="dark"] .mobile-navigation-menu .header {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .mobile-navigation-menu .header h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .mobile-navigation-menu .back {
    background-color: var(--fi-surface-hover);
}

html[data-theme="dark"] .mobile-navigation-menu :is(
    .menu-icon,
    .information-cirlce-icon,
    .login-icon,
    .question-icon
) {
    filter: brightness(0) invert(.78);
}

html[data-theme="dark"] .mobile-navigation-menu svg:is(
    .menu-icon,
    .information-cirlce-icon,
    .login-icon,
    .question-icon
) {
    color: currentColor;
    filter: none;
}

html[data-theme="dark"] #menu-categories .catalog-elem-img-container svg.menu-icon {
    color: #69b5f4;
}

html[data-theme="dark"] #menu-categories .catalog-elem-next-container svg.menu-icon,
html[data-theme="dark"] .mobile-navigation-menu .header svg.back {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #menu-main .main-menu-search-and-login .main-menu-login-container,
html[data-theme="dark"] #menu-main .mobile-menu-profile-card,
html[data-theme="dark"] #menu-main .mobile-menu-work-status {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] #menu-main .mobile-menu-profile-avatar {
    border: 1px solid var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #menu-main :is(
    .mobile-menu-profile-name,
    .mobile-menu-work-status .receive-orders-text
) {
    color: var(--fi-text);
}

html[data-theme="dark"] #menu-main :is(
    .mobile-menu-profile-username,
    .mobile-menu-wallet-label
) {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #menu-main .mobile-menu-role-switch {
    background: #101416;
}

html[data-theme="dark"] #menu-main .mobile-menu-role-option {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #menu-main .mobile-menu-role-option:hover {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #menu-main .mobile-menu-role-option.selected {
    color: #72bdfb;
    background: var(--fi-surface-raised);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link .menu-icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link:hover,
html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link:focus-visible {
    color: #72bdfb;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link--logout {
    color: #f07878;
}

html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link--logout:hover,
html[data-theme="dark"] #menu-main .main-menu-links--auth .mobile-menu-nav-link--logout:focus-visible {
    color: #ff9797;
    background: rgba(240, 120, 120, .1);
}

html[data-theme="dark"] #menu-main .mobile-menu-work-status .slider {
    background: #4a5158;
}

html[data-theme="dark"] #menu-main .mobile-menu-work-status .slider::before {
    background: #e7eaed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] #menu-main .mobile-menu-work-status .switch input:checked + .slider {
    background: #23c366;
}

html[data-theme="dark"] #menu-main .need-help-container,
html[data-theme="dark"] #menu-main .need-help-container--wallet {
    border: 1px solid var(--fi-border-soft);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] #menu-main .need-help-container .need-help-question,
html[data-theme="dark"] #menu-main .need-help-container--wallet .need-help-question strong {
    color: var(--fi-text);
}

html[data-theme="dark"] #menu-main .need-help-container .need-help-button {
    border-color: var(--fi-border);
    color: #72bdfb;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #menu-main .need-help-container .need-help-button:hover,
html[data-theme="dark"] #menu-main .need-help-container .need-help-button:focus-visible {
    border-color: #426f96;
    color: #9bd0fc;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] #menu-categories .catalog-elem {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] #menu-categories .catalog-elem-name h4 {
    color: var(--fi-text);
}

html[data-theme="dark"] #menu-categories .catalog-elem-name p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .mobile-app-install-modal-overlay {
    background: rgba(4, 6, 8, .76);
}

html[data-theme="dark"] .mobile-app-install-modal {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .52);
}

html[data-theme="dark"] .mobile-app-install-modal__close {
    border: 1px solid var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .mobile-app-install-modal__close:hover,
html[data-theme="dark"] .mobile-app-install-modal__close:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .mobile-app-install-modal__icon {
    border-color: #3695ec;
    background: #177de5;
    box-shadow: 0 10px 28px rgba(23, 125, 229, .24);
}

html[data-theme="dark"] .mobile-app-install-modal__eyebrow {
    color: #72bdfb;
}

html[data-theme="dark"] .mobile-app-install-modal__content h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .mobile-app-install-modal__content p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .mobile-app-install-modal__later {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .mobile-app-install-modal__later:hover,
html[data-theme="dark"] .mobile-app-install-modal__later:focus-visible {
    border-color: #454c53;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .mobile-app-install-modal__never {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .mobile-app-install-modal__never:hover,
html[data-theme="dark"] .mobile-app-install-modal__never:focus-visible {
    color: var(--fi-text-secondary);
}

/* Mobile home header */
@media (max-width: 768px) {
    html.fiwork-home-root[data-theme="dark"] {
        background-color: #192b3b;
    }

    html[data-theme="dark"] body.fiwork-page-home {
        background-color: #192b3b !important;
        background-image: linear-gradient(
            to bottom,
            #192b3b 0,
            #192b3b calc(env(safe-area-inset-top, 0px) + 108px),
            var(--fi-bg) calc(env(safe-area-inset-top, 0px) + 108px),
            var(--fi-bg) 100%
        ) !important;
        background-repeat: no-repeat !important;
    }

    html[data-theme="dark"] .phone-header.phone-header--home {
        border-bottom: 0;
        color: var(--fi-text);
        background:
            radial-gradient(circle 90px at 90% 88%, rgba(78, 167, 242, .2) 0, rgba(78, 167, 242, 0) 100%),
            radial-gradient(circle 98px at 5% 112%, rgba(33, 150, 243, .17) 0, rgba(33, 150, 243, 0) 100%),
            linear-gradient(180deg, #192b3b 0%, #192b3b 18%, #1b3449 58%, #173b57 100%) !important;
        box-shadow: none;
    }

    html[data-theme="dark"] .phone-header.phone-header--home::before {
        background: #192b3b;
    }

    html[data-theme="dark"] .phone-header--home .logo-burger-login-block,
    html[data-theme="dark"] .phone-header--home .logo-burger-login-block .burger-container {
        border-bottom: 0;
        background: transparent !important;
        box-shadow: none;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-theme-toggle--mobile {
        border-color: var(--fi-border-soft);
        color: #ffd166;
        background: var(--fi-surface) !important;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-theme-toggle--mobile:hover,
    html[data-theme="dark"] .phone-header--home .fiwork-theme-toggle--mobile:focus-visible {
        border-color: #414850;
        background: var(--fi-surface-hover) !important;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search {
        border: 1px solid var(--fi-border-soft);
        color: var(--fi-text-muted);
        background: var(--fi-surface) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search:focus-within {
        border-color: #3f8fce;
        box-shadow: 0 0 0 3px rgba(74, 168, 247, .12);
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search input {
        color: var(--fi-text);
        background: transparent !important;
        box-shadow: none !important;
        caret-color: var(--fi-accent);
        color-scheme: normal;
        -webkit-appearance: none;
        appearance: none;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search input::placeholder {
        color: var(--fi-text-muted);
        opacity: 1;
    }

    html[data-theme="dark"] .phone-header--home
        .fiwork-mobile-header-search input.fiwork-mobile-search-typewriter::placeholder {
        color: #7894ad;
        opacity: 1;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-search-icon {
        color: #9ba4ad;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-search-sparkles {
        color: #62b0f7;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search.has-value .fiwork-mobile-search-submit,
    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search.has-value .fiwork-mobile-search-submit:hover,
    html[data-theme="dark"] .phone-header--home .fiwork-mobile-header-search.has-value .fiwork-mobile-search-submit:focus {
        color: #fff;
        background: #258cf4 !important;
    }

    html[data-theme="dark"] .phone-header--home .fiwork-mobile-search-suggestions {
        border-color: var(--fi-border);
        color: var(--fi-text);
        background: var(--fi-surface-raised) !important;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
    }

    html[data-theme="dark"] .phone-header--home .header-search-suggestions-title {
        color: var(--fi-text-muted);
    }

    html[data-theme="dark"] .phone-header--home .header-search-suggestion-link,
    html[data-theme="dark"] .phone-header--home .header-search-suggestion-link mark {
        color: var(--fi-text-secondary) !important;
    }

    html[data-theme="dark"] .phone-header--home .header-search-suggestion-link:hover,
    html[data-theme="dark"] .phone-header--home .header-search-suggestion-link:focus-visible {
        color: var(--fi-text) !important;
        background: var(--fi-surface-hover) !important;
    }
}

/* Mobile homepage */
@media (max-width: 768px) {
    html[data-theme="dark"] .fiwork-home-page,
    html[data-theme="dark"] .fiwork-mobile-home {
        color: var(--fi-text);
        background: var(--fi-bg) !important;
    }

    html[data-theme="dark"] .fiwork-mobile-home .home-action-bento__main--mobile .home-action-bento__main-copy > strong {
        color: #f2f6f9;
    }

    html[data-theme="dark"] .fiwork-mobile-home .home-action-bento__main--mobile .home-action-bento__main-copy > small {
        color: #aebdca;
    }

    html[data-theme="dark"] .fiwork-mobile-home .home-action-bento__main--mobile .home-action-bento__button {
        border-color: rgba(130, 184, 230, .22);
        color: #dceaf5;
        background: rgba(255, 255, 255, .1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    }

    html[data-theme="dark"] .fiwork-mobile-home .home-action-bento__main--mobile .home-action-bento__button svg {
        color: #fff;
        background: #3d9bef;
    }

    html[data-theme="dark"] .fiwork-mobile-chips a {
        border: 1px solid var(--fi-border-soft);
        color: var(--fi-text-secondary);
        background: var(--fi-surface);
    }

    html[data-theme="dark"] .fiwork-mobile-chips a.active {
        border-color: #258cf4;
        color: #fff;
        background: #258cf4;
    }

    html[data-theme="dark"] .fiwork-mobile-category {
        color: var(--fi-text-secondary);
    }

    html[data-theme="dark"] .fiwork-mobile-category-icon {
        border: 1px solid var(--fi-border-soft);
        background: var(--fi-surface);
    }

    html[data-theme="dark"] .fiwork-mobile-category:hover,
    html[data-theme="dark"] .fiwork-mobile-category:focus-visible {
        color: var(--fi-text);
    }

    html[data-theme="dark"] .fiwork-mobile-home .home-sections-menu--mobile {
        border-color: #343a40;
        background: #202428;
    }

    html[data-theme="dark"] .home-opportunities--mobile .home-opportunities__header h2,
    html[data-theme="dark"] .fiwork-mobile-section-head h2 {
        color: var(--fi-text);
    }

    html[data-theme="dark"] .home-opportunities--mobile .home-opportunities__header p {
        color: var(--fi-text-muted);
    }

    html[data-theme="dark"] .home-opportunities--mobile .home-opportunity-card {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    }

    html[data-theme="dark"] .fiwork-mobile-section-head a {
        color: #62b0f7;
    }

    html[data-theme="dark"] .fiwork-mobile-service-card {
        border-color: var(--fi-border);
        color: var(--fi-text);
        background: var(--fi-surface);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    }

    html[data-theme="dark"] .fiwork-mobile-service-image {
        background: var(--fi-surface-raised);
    }

    html[data-theme="dark"] .fiwork-mobile-service-seller > img {
        border: 1px solid var(--fi-border);
        background: var(--fi-surface-raised);
    }

    html[data-theme="dark"] .fiwork-mobile-service-name {
        color: var(--fi-text-secondary);
    }

    html[data-theme="dark"] .fiwork-mobile-service-meta {
        color: var(--fi-text-muted);
    }

    html[data-theme="dark"] .fiwork-mobile-service-meta strong {
        color: #69cf8e;
    }

    html[data-theme="dark"] .fiwork-mobile-marketplace-loader::after {
        border-color: #343c43;
        border-top-color: #62b0f7;
    }

    html[data-theme="dark"] .fiwork-mobile-earn {
        border: 1px solid #284965;
        background: linear-gradient(135deg, #172a3a 0%, #1c3b55 100%);
    }

    html[data-theme="dark"] .fiwork-mobile-earn::after {
        border-color: #285b82;
        opacity: .55;
    }

    html[data-theme="dark"] .fiwork-mobile-earn h2 {
        color: #f2f6f9;
    }

    html[data-theme="dark"] .fiwork-mobile-earn a {
        color: #fff;
        background: #258cf4;
    }

    html[data-theme="dark"] .fiwork-mobile-steps {
        border-color: var(--fi-border);
        color: var(--fi-text);
        background: var(--fi-surface);
    }

    html[data-theme="dark"] .fiwork-mobile-steps h2 {
        color: var(--fi-text);
    }

    html[data-theme="dark"] .fiwork-mobile-step p {
        color: var(--fi-text-secondary);
    }

    html[data-theme="dark"] .fiwork-mobile-step:nth-child(1) span {
        color: #aaa5ff;
        background: #292747;
    }

    html[data-theme="dark"] .fiwork-mobile-step:nth-child(2) span {
        color: #ff9a78;
        background: #3a2925;
    }

    html[data-theme="dark"] .fiwork-mobile-step:nth-child(3) span {
        color: #f18b8b;
        background: #3b2629;
    }

    html[data-theme="dark"] .fiwork-mobile-step:nth-child(4) span {
        color: #78d487;
        background: #203728;
    }
}

html[data-theme="dark"] .fiwork-home-desktop .home-action-bento__button {
    border-color: rgba(130, 184, 230, .22);
    color: #dceaf5;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] .fiwork-home-desktop .home-action-bento__button svg {
    color: #fff;
    background: #3d9bef;
}

html[data-theme="dark"] .fiwork-home-desktop .home-feature-chips.home-sections-menu {
    border-color: #343a40;
    background: #202428;
}

/* Single-level mobile cards: keep the page wrapper visually neutral. */
@media (max-width: 768px) {
    html[data-theme="dark"] .main-container:has(> .project-preview-digest),
    html[data-theme="dark"] .main-container:has(> .manage-orders-digest),
    html[data-theme="dark"] body.fiwork-page-portfolio
        .main-container:has(> .portfolio-page-digest) {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] .project-preview-digest,
    html[data-theme="dark"] .manage-orders-digest,
    html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest {
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 899.98px) {
    html[data-theme="dark"] .main-container:has(> .earn-section-digest) {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] .earn-section-digest.freelancer-proposals-page {
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fiwork-theme-toggle,
    html[data-theme="dark"] body {
        transition: none;
    }
}

html[data-theme="dark"] .fiwork-catalog-page__header h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-catalog-page__header p {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-catalog-card {
    border-color: rgba(255, 255, 255, .06);
    color: #d8cbff;
    background: #302a42;
}

html[data-theme="dark"] .fiwork-catalog-card:nth-child(4n + 2) {
    color: #b8ddff;
    background: #20384d;
}

html[data-theme="dark"] .fiwork-catalog-card:nth-child(4n + 3) {
    color: #ffe0a1;
    background: #453722;
}

html[data-theme="dark"] .fiwork-catalog-card:nth-child(4n + 4) {
    color: #ffc5d9;
    background: #442b36;
}

/* Rewards tasks */
html[data-theme="dark"] .main-block.main-block--rewards-task {
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .rewards-task-digest) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .rewards-task-digest {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .rewards-task-digest .rewards-page__hero,
html[data-theme="dark"] .rewards-task-panel,
html[data-theme="dark"] .rewards-task-digest .rewards-task-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .rewards-task-digest .rewards-page__hero h1,
html[data-theme="dark"] .rewards-task-panel__head h2,
html[data-theme="dark"] .rewards-task-digest .rewards-task-card h2,
html[data-theme="dark"] .rewards-task-digest .rewards-task-empty h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-task-digest .rewards-page__hero p,
html[data-theme="dark"] .rewards-task-panel__head p,
html[data-theme="dark"] .rewards-task-digest .rewards-task-card__description,
html[data-theme="dark"] .rewards-task-digest .rewards-task-empty p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-task-digest .rewards-page__back {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-task-digest .rewards-page__back:hover,
html[data-theme="dark"] .rewards-task-digest .rewards-page__back:focus-visible {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .rewards-task-panel__head {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .rewards-task-panel__count {
    color: #8fe0aa;
    background: #183024;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-card:hover {
    border-color: #48515a;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-card.is-done {
    border-color: #315d43;
    background: #1b2b23;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-card.is-pending {
    border-color: #594c29;
    background: #282318;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-card.is-rejected {
    border-color: #674039;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-card__type,
html[data-theme="dark"] .rewards-task-digest .rewards-task-card__hint {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-card__coin {
    border-color: #554a29;
    color: #efc966;
    background: #2c2415;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-report textarea {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-report textarea::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-report textarea:focus {
    border-color: #426a54;
    box-shadow: 0 0 0 3px rgba(35, 195, 102, .12);
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-status {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-status--done {
    color: #8fe0aa;
    background: #183024;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-status--pending {
    color: #e5c66e;
    background: #332b18;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-status--rejected {
    color: #f2a69b;
    background: #3a2925;
}

html[data-theme="dark"] .rewards-task-digest .rewards-task-empty {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-task-list-section__head h2,
html[data-theme="dark"] .rewards-task-row__title {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-task-list-section__head p,
html[data-theme="dark"] .rewards-task-row__description {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-task-list-section {
    border-color: var(--fi-border);
    background: rgba(28, 32, 35, .94);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .rewards-task-list-section__head {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .rewards-task-progress__icon {
    color: #8fe0aa;
    background: #183024;
}

html[data-theme="dark"] .rewards-task-progress__copy strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-task-progress__copy small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .rewards-task-progress__meter {
    background: #30363b;
}

html[data-theme="dark"] .rewards-task-progress__value {
    color: #8fe0aa;
}

html[data-theme="dark"] .rewards-task-row {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .rewards-task-row:hover,
html[data-theme="dark"] .rewards-task-row[open] {
    border-color: #48515a;
}

html[data-theme="dark"] .rewards-task-row.is-done {
    border-color: #315d43;
}

html[data-theme="dark"] .rewards-task-row.is-pending {
    border-color: #594c29;
}

html[data-theme="dark"] .rewards-task-row.is-rejected {
    border-color: #674039;
}

html[data-theme="dark"] .rewards-task-row__state {
    color: #83bff2;
    background: #1d3040;
}

html[data-theme="dark"] .rewards-task-row.is-done .rewards-task-row__state {
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .rewards-task-row.is-rejected .rewards-task-row__state {
    color: #f2a69b;
    background: #3a2925;
}

html[data-theme="dark"] .rewards-task-row__meta,
html[data-theme="dark"] .rewards-task-row__reward small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .rewards-task-row__reward {
    border-left-color: var(--fi-border);
}

html[data-theme="dark"] .rewards-task-row__reward > span {
    color: #efc966;
}

html[data-theme="dark"] .rewards-task-row__chevron,
html[data-theme="dark"] .rewards-task-row__hint {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-task-row__details {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .main-block.main-block--rewards-task {
    background:
        radial-gradient(circle at 50% -160px, rgba(65, 158, 235, .11), transparent 390px),
        var(--fi-bg) !important;
}

html[data-theme="dark"] .main-block--rewards-task > .main-container,
html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest,
html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest .rewards-page__hero {
    border-color: transparent;
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] .rewards-task-page-title__icon {
    color: #83bff2;
    background: #1d3040;
}

html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest .rewards-page__hero h1 {
    color: var(--fi-text);
}

html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest .rewards-page__hero p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest .rewards-page__back {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: rgba(28, 32, 35, .88);
}

html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest .rewards-page__back:hover,
html[data-theme="dark"] .main-block--rewards-task .rewards-task-digest .rewards-page__back:focus-visible {
    border-color: #48515a;
    color: #8bc7f8;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .main-block--rewards-task .rewards-task-row {
    box-shadow: none;
}

html[data-theme="dark"] .main-block--rewards-task .rewards-task-row:hover,
html[data-theme="dark"] .main-block--rewards-task .rewards-task-row[open] {
    box-shadow: none;
}

@media (max-width: 768px) {
    html[data-theme="dark"] .rewards-task-digest {
        background: transparent !important;
    }
}

/* Rewards shop */
html[data-theme="dark"] .main-block:has(> .main-container > .rewards-shop-digest) {
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .rewards-shop-digest) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .rewards-shop-digest {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .rewards-shop-digest .rewards-page__hero,
html[data-theme="dark"] .rewards-shop-panel,
html[data-theme="dark"] .rewards-shop-purchases-panel,
html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-page__hero h1,
html[data-theme="dark"] .rewards-shop-panel__head h2,
html[data-theme="dark"] .rewards-shop-purchases-panel > h2,
html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card h2,
html[data-theme="dark"] .rewards-shop-digest .rewards-task-empty h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-page__hero p,
html[data-theme="dark"] .rewards-shop-panel__head p,
html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card__body > p,
html[data-theme="dark"] .rewards-shop-digest .rewards-task-empty p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-balance {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-balance small,
html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card__meta,
html[data-theme="dark"] .rewards-shop-digest .rewards-shop-order div span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-balance strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-shop-panel__head,
html[data-theme="dark"] .rewards-shop-purchases-panel > h2,
html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card__footer {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .rewards-shop-panel__count {
    color: #8fe0aa;
    background: #183024;
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card:hover {
    border-color: #48515a;
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card__image {
    border-bottom-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card__image em {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: rgba(32, 36, 40, .92);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-price {
    color: #efc966;
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-card .rewards-task-button:disabled {
    color: var(--fi-text-muted);
    background: #353b41;
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-order {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-shop-order > p {
    border-top-color: var(--fi-border);
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-shop-digest .rewards-task-empty {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-shop-modal__backdrop {
    background: rgba(4, 6, 8, .72);
}

html[data-theme="dark"] .rewards-shop-modal__dialog {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .rewards-shop-modal__dialog h2,
html[data-theme="dark"] .rewards-shop-modal label {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-shop-modal__dialog > p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-shop-modal__close {
    color: var(--fi-text-muted);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .rewards-shop-modal textarea {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] .rewards-shop-modal textarea::placeholder {
    color: var(--fi-text-muted);
}

@media (max-width: 768px) {
    html[data-theme="dark"] .rewards-shop-digest {
        background: transparent !important;
    }
}

/* Rewards giveaways */
html[data-theme="dark"] .main-block:has(> .main-container > .rewards-gifts-digest) {
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-container:has(> .rewards-gifts-digest) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .rewards-gifts-digest {
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-page__hero,
html[data-theme="dark"] .rewards-gifts-panel,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card.is-featured {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-page__hero h1,
html[data-theme="dark"] .rewards-gifts-panel__head h2,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card h2,
html[data-theme="dark"] .rewards-gifts-digest .rewards-task-empty h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-page__hero p,
html[data-theme="dark"] .rewards-gifts-panel__head p,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card__body > p,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card.is-featured .rewards-gift-card__body > p,
html[data-theme="dark"] .rewards-gifts-digest .rewards-task-empty p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-shop-balance {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-shop-balance small {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-shop-balance strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-gifts-panel__head {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .rewards-gifts-panel__count {
    color: #8fe0aa;
    background: #183024;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card:hover {
    border-color: #48515a;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card__image,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card.is-featured .rewards-gift-card__image {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card__image span {
    border-color: var(--fi-border);
    color: #efc966;
    background: rgba(32, 36, 40, .92);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-prize-details,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-card.is-featured .rewards-gift-buy {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-prize-details small,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-buy > span,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-buy > small,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-buy > .rewards-gift-buy__cost {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-prize-details p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-timer {
    border-color: #594c29;
    background: #282318;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-timer > small,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-timer__units span,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-timer__units i {
    color: #bca765;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-timer__units strong,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-timer__finished {
    color: #efc966;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-buy label,
html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-buy__cost strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-buy input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-task-button:disabled {
    color: var(--fi-text-muted);
    background: #353b41;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-tickets {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-tickets summary {
    color: #6db9f5;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-tickets span {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-result {
    border-color: #315d43;
    color: var(--fi-text-secondary);
    background: #1b2b23;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-gift-result strong {
    color: #8fe0aa;
}

html[data-theme="dark"] .rewards-gifts-digest .rewards-task-empty {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
}

@media (max-width: 768px) {
    html[data-theme="dark"] .rewards-gifts-digest {
        background: transparent !important;
    }
}

/* Informational, payment and legal pages */
html[data-theme="dark"] body.fiwork-info-page,
html[data-theme="dark"] body.fiwork-info-page > .main-block {
    color: var(--fi-text);
    background: var(--fi-bg);
}

html[data-theme="dark"] body.fiwork-info-page > .main-block > .main-container {
    border-color: var(--fi-border);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content,
html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content > h2:first-child {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(h1, h2, h3),
html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(p, li) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(b, strong) {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content a,
html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-content a:hover,
html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-content a:focus-visible {
    color: #73b9f5;
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container h3 {
    border-bottom-color: var(--fi-border);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-content a {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-content a:hover,
html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-content a:focus-visible {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] body.fiwork-withdraw-methods-page .terms-of-service-nav-content a[href$="/withdraw-methods"],
html[data-theme="dark"] body.fiwork-paymethod-page .terms-of-service-nav-content a[href$="/paymethod"],
html[data-theme="dark"] body.fiwork-faq-page .terms-of-service-nav-content a[href$="/faq"],
html[data-theme="dark"] body.fiwork-support-page .terms-of-service-nav-content a[href$="/support"],
html[data-theme="dark"] body.fiwork-choices-page .terms-of-service-nav-content a[href$="/choices"],
html[data-theme="dark"] body.fiwork-terms-page .terms-of-service-nav-content a[href$="/docs/terms"]:first-child,
html[data-theme="dark"] body.fiwork-privacy-page .terms-of-service-nav-content a[href$="/docs/privacy"],
html[data-theme="dark"] body.fiwork-requisites-page .terms-of-service-nav-content a[href$="/docs/requesits"] {
    color: #8bc7f8;
    background: rgba(74, 168, 245, .13);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container label {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container .search-input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: #14181b;
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container .search-input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-container .search-input:focus {
    border-color: #4aa8f5;
    box-shadow: 0 0 0 3px rgba(74, 168, 245, .15);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-hero,
    .fiwork-pay-hero,
    .fiwork-faq-hero,
    .fiwork-support-hero,
    .fiwork-doc-hero
) {
    border-color: #304558;
    background: linear-gradient(135deg, #172330 0%, #18212a 58%, #17251f 100%);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-hero h1,
    .fiwork-pay-hero h1,
    .fiwork-faq-hero h1,
    .fiwork-support-hero h1,
    .fiwork-doc-hero h1
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-hero p,
    .fiwork-pay-hero p,
    .fiwork-faq-hero p,
    .fiwork-support-hero p,
    .fiwork-doc-hero p
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-card,
    .fiwork-pay-card,
    .fiwork-support-card,
    .fiwork-support-list-item,
    .fiwork-faq-item,
    .fiwork-doc-card,
    .fiwork-withdraw-note,
    .fiwork-pay-note,
    .fiwork-faq-contact,
    .fiwork-doc-note
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface);
    box-shadow: none;
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-card h3,
    .fiwork-pay-card h3,
    .fiwork-support-card strong,
    .fiwork-support-list-item h3,
    .fiwork-faq-section-title,
    .fiwork-faq-item summary,
    .fiwork-doc-card h3
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-card p,
    .fiwork-pay-card p,
    .fiwork-support-card span,
    .fiwork-support-list-item p,
    .fiwork-faq-answer p,
    .fiwork-doc-card p
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-icon,
    .fiwork-pay-icon
) {
    color: #73b9f5;
    background: rgba(74, 168, 245, .12);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content .fiwork-withdraw-icon {
    color: #74d59a;
    background: rgba(35, 195, 102, .12);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content :is(
    .fiwork-withdraw-tag,
    .fiwork-pay-tag,
    .fiwork-pay-badge
) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content .fiwork-withdraw-highlight {
    border-color: #315d43;
    color: #8fe0aa;
    background: #1b2b23;
}

html[data-theme="dark"] .fiwork-info-page .terms-of-service-content .fiwork-faq-item summary::after {
    border-color: #73b9f5;
}

@media (max-width: 960px) {
    html[data-theme="dark"] .fiwork-info-page .terms-of-service-nav-content a {
        border-color: var(--fi-border);
        background: var(--fi-surface);
    }
}

@media (max-width: 767px) {
    html[data-theme="dark"] body.fiwork-info-page > .main-block > .main-container {
        background: var(--fi-surface);
    }
}

@media (min-width: 1025px) {
    html[data-theme="dark"] .fiwork-onboarding-guide__backdrop {
        background: rgb(0 0 0 / 68%);
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__panel,
    html[data-theme="dark"] .fiwork-onboarding-guide__success,
    html[data-theme="dark"] .fiwork-onboarding-guide__choice,
    html[data-theme="dark"] .fiwork-onboarding-guide__step {
        color: #f5f7fa;
        background: #17191c;
        border-color: #30343a;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__heading p,
    html[data-theme="dark"] .fiwork-onboarding-guide__choice-copy small,
    html[data-theme="dark"] .fiwork-onboarding-guide__step-content p {
        color: #9ca6b1;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__close,
    html[data-theme="dark"] .fiwork-onboarding-guide__back,
    html[data-theme="dark"] .fiwork-onboarding-guide__choice-arrow,
    html[data-theme="dark"] .fiwork-onboarding-guide__step-toggle > svg {
        color: #aeb7c0;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__close:hover,
    html[data-theme="dark"] .fiwork-onboarding-guide__back:hover,
    html[data-theme="dark"] .fiwork-onboarding-guide__choice:hover {
        color: #fff;
        background: #22262b;
        border-color: #41474f;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__progress {
        background: #2a2e33;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__step.is-open {
        border-color: #454c55;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__step-number {
        color: #d6dde4;
        background: #292e34;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__success-icon,
    html[data-theme="dark"] .fiwork-onboarding-guide__recommended {
        color: #7addaa;
        background: #193b2b;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__choice:nth-child(1) .fiwork-onboarding-guide__choice-icon {
        color: #75b6ff;
        background: #17324f;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__choice:nth-child(2) .fiwork-onboarding-guide__choice-icon {
        color: #bca0ff;
        background: #31274a;
    }

    html[data-theme="dark"] .fiwork-onboarding-guide__choice:nth-child(3) .fiwork-onboarding-guide__choice-icon {
        color: #ffd076;
        background: #47371d;
    }
}
